OpenMarine
Kplex Configuration - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=2)
+--- Thread: Kplex Configuration (/showthread.php?tid=3117)



Kplex Configuration - Eric D - 2020-11-30

hello all 

I need for my own python application to have some PTY port to catch NMEA data.

So I proceed like that on Kplex manual setting : 

   ###end of OpenPlotter GUI settings

   ###Manual settings

   [pty]
   name=rend_voiles
   mode=master
   direction=out
   filename=/tmp/virtcom
   baud=4800
   #ofilter=~WIMWV/5:~GPRMC/5:-all
   [pty]
   name=Enr_rend
   mode=master
   direction=out
   filename=/tmp/virtcom1
   baud=4800
   #ofilter=~WIMWV/5:~GPRMC/5:-all

etc.

After I click on restart and Apply Change and Restart again

When I see on /tmp folder : no virtcomx files , and no data in my applications or in Opencpn application

If I click on Diagnostic : I can see the Kplex in data and in the /tmp folder I can see the new virtcomx files.

And all apllications work correctly ...


My question : why it does work just after the Pi initialisation ?

thank you in advance for the answer

Eric D


RE: Kplex Configuration - PaddyB - 2020-11-30

Does it have to go though a virtual com port? Could python get the data using UDP or a websocket? NMEA already goes out those. Or filter just the message you are interested in and send them using node red?


RE: Kplex Configuration - Eric D - 2020-11-30

I think yes it certainely possible , but i copy the pgm and the configuration from my raspi 3. I would like to know why it does work in raspi 4 ....


RE: Kplex Configuration - PaddyB - 2020-12-01

(2020-11-30, 09:10 PM)Eric D Wrote: I think yes it certainely possible , but i copy the pgm and the configuration from my raspi 3. I would like to know why it does work in raspi 4 ....

No sure, does it work in node red?


RE: Kplex Configuration - Eric D - 2020-12-01

sorry i don't use node red, i don't test it.
today just before opening opencpn, I run a "kplex -f .kplex.conf", it works but it's not very "clean" !