Cant get autopilot data out - 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: Cant get autopilot data out (/showthread.php?tid=63) |
Cant get autopilot data out - affinite - 2016-04-26 Sorry I know this may be a generic OpenCPN question but I feel I'm amongst friends here I am "field testing" my OP installation on my boat and so far its all working just great however I cant get waypoint/route data out to my Autopilot. My Autopilot is displaying Lat/Long & COG/SOG so the serial interface is working but I don't see distance and bearing to waypoint and the autopilot sentences RMB or APB are not in the NMEA data stream as seen in NMEA Inspector. I do have an active route and the OCPN window pops up with Range and bearing to waypoint etc but it doesn't appear as an RMB sentence in the NMEA stream. Any ideas ? Thanks Steve Oh bye the way does it matter if I'm COG or SOG to speak of ? RE: Cant get autopilot data out - e-sailing - 2016-04-27 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. RE: Cant get autopilot data out - affinite - 2016-04-28 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. RE: Cant get autopilot data out - e-sailing - 2016-04-28 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***... RE: Cant get autopilot data out - affinite - 2016-04-29 e-s thanks for quick response - I'll try those settings tonight. You are right, eventually I do want to take data from my seatalk bus (I have a Seatalk/NMEA converter waiting to be connected )so as to pick up some of the data from my instruments but at this time I'm taking it step by step. My AP has an NMEA input which I previously used to send RMB sentences from OCPN on Windows laptop to the Autopilot. If I can reproduce that functionality I'll be very happy Will report back Regards RE: Cant get autopilot data out - affinite - 2016-05-01 (2016-04-29, 12:17 PM)affinite Wrote: e-s Well Ive spent two frustrating evenings on this but Im still stuck. ES, I configured exactly as you said (I assume the new OCPN connections you suggested were in addition to std OP connections) I ran an OCPN route and OP inspector showed a string of RMBs before hanging. OCPN NMEA debug window is still happily spitting RMB out but OP has gone to lunch. ES I really appreciate your help but Im surprised that this a new OP/kplex problem. Are other OP users running an autopilot succesfully ? edit: Thought I had a PSU issue. Just seen a red square top right. Pi was overheating. Now cooler but still cant send data to AP RE: Cant get autopilot data out - affinite - 2016-05-02 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 |