OpenMarine
[OP2] Output NMEA0183 data through serial port - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: [OP2] Output NMEA0183 data through serial port (/showthread.php?tid=2291)



[OP2] Output NMEA0183 data through serial port - emilecantin - 2020-01-31

Hi all,

I've got a Garmin chartplotter / depth sounder (the ECHOMAP 45CV) which has a NMEA0183 interface, which is connected through a USB Serial adapter to my Raspberry PI running OpenPlotter 2.

The input side works properly; I see the depth data coming into SignalK.

However, this device is able to display AIS data, which I was able to do under OpenPlotter 1 using Kplex.

How do I do that in OpenPlotter 2? The data I want is available from the SignalK output plugin on TCP port 10110, but I want to send it out through a serial port.

I'll also need to be able to do that with my VHF radio, so I have GPS position for DSC distress call.

Any ideas?


RE: [OP2] Output NMEA0183 data through serial port - abarrow - 2020-01-31

Until an OP2 version of Kplex is ready, have you tried using OpenCPN? You can define output streams there. You can also install Kplex on your RPI4 directly using apt (sudo apt install kplex). You'd have to get it going manually, though. That means creating a config file and setting it up so that it starts when your RPI starts. Probably the easiest way to do that would be inserting a command in /etc/rc.local to start kplex with your config file.


RE: [OP2] Output NMEA0183 data through serial port - emilecantin - 2020-02-01

Oh yeah, I didn't think about using OpenCPN! I think I'll try that. I had a lot of issues with kplex and serial ports, both with OpenPlotter as well as standalone. The connection seemed pretty fragile, and I had to restart it manually every time.


RE: [OP2] Output NMEA0183 data through serial port - emilecantin - 2020-02-01

Okay, I just tried that, and it works pretty well. Even unconnecting an re-connecting the USB-Serial dongle worked perfectly; it reconnected automatically. One slight issue, though, is that I can't connect the input to SignalK anymore, I have to go through OpenCPN. Anyway, it does solve the issue for my VHF radio; I don't need any inputs from that one.

I guess I'll have to wait for Kplex to come out. I hope they fix the serial port issue by that time; it was pretty annoying.