July 21, 2017

OpenPlotter V1, NMEA data FROM file

Updated 2021-02-23 !

newer post in the same subject !!

For Openplotter V2 check here

To test Openplotter, (OP), together with OpenCPN,(OC), without connecting to the navigation network on board there are two features 
  • Using the NMEA generators, found in the OP "Tools" menu 
  • Use log files which are stored within the SignalK application.

The generators are explained in the documentation and here will be a description how to use the log files from OP.

Connect to the Rpi.

As said before SignalK, SK, is the engine in OP so we start with terminating that process so we can redirect SK to the log files.

OP V 1.x.x
Open a Terminal window "Application menu => Accessories => Terminal" and type 


sudo systemctl stop signalk.service
sudo systemctl stop signalk.socket

then start the SK server with NMEA0183(N1)

signalk-server --sample-nmea0183-data

and it will show 

Using default configuration path: /home/pi/.signalk
Using sample data from /usr/lib/node_modules/signalk-server/samples/plaka.log
signalk-server running at 0.0.0.0:3000

Leave this session running, start OC and You will be sailing in the south of Finland.

If You want to test NMEA2000 data start the server with 

signalk-server --sample-n2k-data

and it will show 


Using default configuration path: /home/pi/.signalk
Using sample data from /usr/lib/node_modules/signalk-server/samples/aava-n2k.data

signalk-server running at 0.0.0.0:3000

Please note that if You want to see Your position in OC with this N2K sample file, it is a little more complicated since OC just can use N1 as input;
  • In OP, click on the SK bottle in the upper row and SK dashboard will show
  • Log in, upper right corner
  • Go to "Server => Plugin Config" and click on "Convert Signal K to NMEA0183"
  • Enable/activate the SK plug in "Signal K to NMEA0183"
  • Mark the sentences You want to transfer and click on "Submit"
  • Check Your position in OC
When You want to terminate the test environment, just restart the RPi.

OP V 0.10.0

Open a Terminal window "Application menu => Accessories => Terminal" and type 

pkill -f signalk-server

then start SK with the NMEA0183, N1, log file

cd .config/signalk-server-node
bin/nmea-from-file

And something like this will appear

signalk-server running at 0.0.0.0:3000
Error reading /home/pi/.config/signalk-server-node/public/mapcache

Leave this session running, start OP and check the N1 data with "OP => Signal K => SK Diagnostic".

Since You are not using KPLEX and the N1 output from SK is sent out as TCP on port 10110, You must add a new connection in OP; "Options => Connections => Add Connection" 
  • Network, TCP, localhost, 10110 and click on "Apply
Open OC and You will be sailing in the south of Finland with data from 

.config/signalk-server-node/samples/plaka.log

If You are more interested in NMEA2000, N2K, data, change 

bin/nmea-from-file

above to

bin/n2k-from-file

And now You will be using the data from 

.config/signalk-server-node/samples/aava-n2k.data

Please note that if You want to see Your position in OC with this N2K sample file, it is a little more complicated since OC just can use N1 as input;
  • Enable/activate the SK plug in "Signal K to NMEA0183"
  • Mark the sentences You want to transfer
  • Add the new connection, mentioned above, in OC; "Options => Connections => Add Connection" 
    • Network, TCP, localhost, 10110 and click on "Apply"
  • Check Your position in OC
Or
  • Go to the "Tools" Meny and click on "NMEA 0183 generator" and create Your own N1 sentences
  • Start with the RMC sentence where You pick the data from Signal K value
  • For example the Latitude value is populated from 
    • Signal K value
    • -- vessel(self)
    • -- group(navigation)
    • -- key(position.latitude)
    • -- format(lat: ddmm.mm)
  • Continue with all the values within the sentence and save it
  • Check the data You have created using tab "NMEA 0183" 
  • Mark the "system_b" row and click on "Diagnostic"
  • A new window will open showing the RMC sentence
  • Check Your position in OC
When You want to terminate the test environment, just restart the RPi.


And here a post how to record navigation data

No comments:

Post a Comment

Feel free to leave a comment ! ... but due to a lot of spam comments I have to moderate them. Will reply ASAP !