Posts: 341
Threads: 0
Joined: Apr 2016
Reputation:
23
2016-04-27, 10:32 PM
(This post was last modified: 2016-04-27, 10:33 PM by e-sailing.)
Have you add a connection in Opencpn to send the Autopilot data to kplex?
It should be something like this (Net 127.0.0.1:10110 1 UDP Output In:None, Out: None)
to send the Autopilot data from opencpn to kplex.
and in .kplex.conf you should have something like this
"
###end of OpenPlotter GUI settings
###Manual settings
[serial]
name=ap
direction=both
ifilter=+GP***:+EC***
optional=yes
filename=/dev/ttyOP_AP
baud=4800
"
The filter is very important. Otherwise all data is pushed into low speed communication.
Posts: 229
Threads: 57
Joined: Mar 2016
Reputation:
7
2016-04-28, 03:38 PM
(This post was last modified: 2016-04-28, 05:16 PM by affinite.)
Thanks eS
I didn't realize that an additional output from OCPN would be required.
(I assumed that OP/kplex dealt with all I/O to all devices)
Anyway, I tried what you suggested but it didn't work for me. In fact OP Inspector hangs once the new UDP output port in OCPN is enabled.
Posts: 341
Threads: 0
Joined: Apr 2016
Reputation:
23
2016-04-28, 11:51 PM
(This post was last modified: 2016-04-28, 11:58 PM by e-sailing.)
Well i did simulate it.
1. The problem is that you can get recursiv loops.
So you need a different data stream to opencpn then the 10110 standard. To avoid loops this stream must have an ofilter=-EC***.
Normaly you wouldn't connect AP only for output. You also want data from the AP (heading, rudder). Then to keep AP happy don't throw all GP*** to it. Give him wind, (heading) and of course **RMB.
My setting is:
Net localhost:10112 1 TCP Input In:None, Out: None
Net 127.0.0.1:10110 1 UDP Output In:None, Out: Send RMB
In OP i deleted my AP out of Inputs or Outputs and pressed "Apply changes" then pressed "Advanced"
and searched at the end ot the file "###Manual settings". There i inserted
"
[tcp]
name=opencpn
direction=out
mode=server
ofilter=-EC***
port=10112
[serial]
name=ap
direction=both
optional=yes
ofilter=+EC***:+GPGGA:+GPRMC:+**MWV:+**V**:+**HDM:-all
filename=/dev/ttyOP_AP
baud=4800
"
I saved file and exit. Started openplotter and pressed "Restart" on "NMEA0183" page.
I restarted opencpn and made a route right clicked on the route and activated it.
Then i opened Inspector and watched ECRMBs between GP***...
Posts: 229
Threads: 57
Joined: Mar 2016
Reputation:
7
e-sailing
an apology for saying that your solution hadn't worked.
I deleted all settings and restarted and it worked !!!!!
I must have typed something incorrectly somewhere.
Thankyou so much.
Sailoog - it might be worth noting this fix for others wishing to take autopilot route data into Openplotter