Showing posts with label serial port. Show all posts
Showing posts with label serial port. Show all posts

Saturday, June 2, 2012

NMEA Stream re-broadcast

The NMEA Console (available at http://code.google.com/p/fullnmeaconsole/) is now fully aware of several communication channels, other than Serial port.
The data can be read from a Serial Port, UDP, or RMI. You can also replay NMEA Data, logged previously (the console has logging capabilities).
The data read from one of the channels above can be re-broadcasted on RMI, UDP, and XML over HTTP (there is a default html page displaying the data).
All the data are also cached in some HashMap, which means that any program living in the same JVM (or reaching it through RMI) can access them, without having to re-damp them (the damping factor is set at the "server" level, the one reading the data first). That is the case of all the modules coming with the console (Star Finder, Planetarium, Google Locator, etc).
If you have a wireless network (like Home Network) setup in the boat, then several machines can share the same data...
The next step would be to write a pugin for OpenCPN, so it can also re-broadcast the NMEA data... But that's another story, this is all in C++.
I also want to port the console (and more) on Android, to be able to display it on a table. The Tide application has been tested already, it's working good.
Keep posted, more to come!

Friday, November 18, 2011

Java-Pactor Communication

I managed to establish the communication between Java code on the laptop and the SCS Pactor modem that is connected to the SSB, I've written a simple and basic character mode console that works on both Linux and Windows.
I will create a Google Code project, but in short, here are the parameters to set to the serial port:
Baud Rate: 57600 bps
Data bits: 8
Stop bits: 1
parity : none
RTS/CTS in [ ]
RTS/CTS out [x]
XON/XOFF in [ ]
XON/XOFF out [ ]
RTS : [x]
CTS : [ ]
DSR : [ ]
CD : [ ]
DTR : [x]
RI : [ ]
Notice the RTS/CTS in, that remains unchecked.
I want to be able to read Navtex data, and receive faxes in the future. That would imply some signal processing (FFT and this kind of things). That sounds interesting...