Trying to set up a workflow under Windows 8.1 64 in order to get N2K data into OCPN using Signal K the following things are running:
- Actisense NGT-1 with Canboat (Cygwin version) is running and pipes CANBOAT JSON data into a file:
Rem NGT has to be at 115200 Bd
actisense-serial -r -p /dev/ttyS9 | analyzer -json >> can-jason.txt
{"timestamp":"2015-05-24-11:04:45.054","prio":0,"src":0,"dst":0,"pgn":262161,"description":"Actisense: Operating mode","fields":{"SID":1,"Model ID":14,"Serial ID":110741,"Error ID":0,"Operating Mode":2}}
{"timestamp":"2015-05-24-11:04:45.056","prio":0,"src":0,"dst":0,"pgn":262384,"description":"Actisense: Startup status","fields":{"SID":1,"Model ID":14,"Serial ID":110741,"Error ID":0,"Firmware version":2.196,"Reset status":0}}
{"timestamp":"2015-05-24-11:04:45.056","prio":4,"src":43,"dst":255,"pgn":129039,"description":"AIS Class B Position Report","fields":{"Message ID":18,"Repeat Indicator":"Initial","User ID":211585630,"Longitude":01.9211100,"Latitude":41.2587983,"Position Accuracy":"High","RAIM":"in use","Time Stamp":"29","SOG":0.00,"Communication State":"393222","AIS Transceiver information":"Own information not broadcast","Regional Application":0,"Regional Application":0,"Unit type":"CS","Integrated Display":"No","DSC":"Yes","Band":"entire marine band","Can handle Msg 22":"Yes","AIS mode":"Autonomous","AIS communication state":"ITDMA"}}
{"timestamp":"2015-05-24-11:04:45.056","prio":2,"src":35,"dst":255,"pgn":130306,"description":"Wind Data","fields":{"SID":142,"Wind Speed":1.95,"Wind Angle":159.6,"Reference":"Apparent"}}
{"timestamp":"2015-05-24-11:04:45.056","prio":2,"src":35,"dst":255,"pgn":127251,"description":"Rate of Turn","fields":{"SID":102,"Rate":-0.0097000}}
{"timestamp":"2015-05-24-11:04:45.056","prio":2,"src":35,"dst":255,"pgn":127250,"description":"Vessel Heading","fields":{"SID":223,"Heading":61.6,"Deviation":0.0,"Variation":-0.2,"Reference":"Magnetic"}}
......
- The Signal-K server is running on the same PC and delivers NMEA data from the demo file via tcp into OpenCPN where those are correctly rendered.
The following will
not work under Windows (not even with the complete correct path to n2k-signalk):
actisense-serial /dev/actisense | analyzer -json 2>/dev/null | n2k-signalk
So the missing links for me:
- getting the n2k-signalk part running
- pumping this stream into the server
Eager to learn!
Hubert