Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 22-04-2016, 07:32   #1
Registered User

Join Date: Nov 2014
Location: Suffolk Yacht Harbour, UK
Boat: Jeanneau Sunfast 32
Posts: 28
OPCPN not outputing autopilot sentences

I have OpenCPN on RPi and a separate RPi acting as a multiplexer with incoming data sources. All works well but when I set a route and make a new output port (tried TCP, UDP, FIFO) the nmea debug window only shows a repeat of the incoming data and no EC sentences. I have tried with various filters and without filter.

Why cannot I get the EC output?
__________________

__________________
StuartGunn is offline   Reply With Quote
Old 22-04-2016, 09:26   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

Stuart
We could say you haven't set up the Connection properly...(but that is not always the case.) Why don't you detail in this thread what your best settings are or provide screenshots, and give us a reference to the User Manual Page (and sub-paragraph) that you used to create the connection.

---I assume you have been reading the manual under Options > Connections ?
__________________

__________________
rgleason is online now   Reply With Quote
Old 22-04-2016, 11:46   #3
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,968
Re: OPCPN not outputing autopilot sentences

Stuart...
To get NMEA sentences output to the AP (AutoPilot) you need to:
- The connection to AP has to admit output.
- The route must be activated. (Point the route, right click, Activate. Or use the right click function "Navigate to here")
- When a route is active for navigation a small message box with navigation and route info will be shown.
- When all these conditions are fullfilled ECRMB, ECRMC, ECAPB etc.. will be sent to all output connections and shown in the NMEA debug window, in blue, if opened from the connection tab in options.

All as described in the wiki.

Håkan
__________________
Hakan is offline   Reply With Quote
Old 22-04-2016, 12:20   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

Hakan,
You know, there is nowhere in the documentation that describes it as clearly as you have.

A search for autopilot
Route to Autopilot | Official OpenCPN Homepage
These are some detailed charts I made for how Opencpn turns at waypoints.
(Most likely place to put your notes)
Connections | Official OpenCPN Homepage

Is there some possibility of expanding this explanation a little? Then I can add it at the top of Route to Autopilot | Official OpenCPN Homepage
and we can have links to the specific screens in
Connections | Official OpenCPN Homepage
or show a connections screen that has been setup for Autopilot.

StuartGunn, perhaps you can join in this effort as you get setup, taking screenshots of the settings that work for you and posting to this thread. I will include them in the documentation. You will have helped others get started.
__________________
rgleason is online now   Reply With Quote
Old 22-04-2016, 12:45   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

I found one other unfinished page under Supplimentary Hardware
Autopilot Integration | Official OpenCPN Homepage

Perhaps the Description should go here????
With links to the other pages.
__________________
rgleason is online now   Reply With Quote
Old 22-04-2016, 13:54   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,968
Re: OPCPN not outputing autopilot sentences

But most vital info for to use a route and a AP are found here:
Marks and Routes | Official OpenCPN Homepage
Heading: Active Route Console Window - Showing Active Leg Data
And a link in above test pointing to:
Route to Autopilot | Official OpenCPN Homepage

Rather clear to me although the theoretical description for "Route to AP" is more of a master degree in its details. But for sure handy for those interested.
__________________
Hakan is offline   Reply With Quote
Old 23-04-2016, 02:54   #7
Registered User

Join Date: Nov 2014
Location: Suffolk Yacht Harbour, UK
Boat: Jeanneau Sunfast 32
Posts: 28
Re: OPCPN not outputing autopilot sentences

Thanks to all for the replies and I will go through the suggestions. First to clear up what I have done:

1. I have a setup on the boat and I am using a simple setup at home to test the further development.
2. On the boat I am using 2 RPis :
a: one is connected via usb/RS232 to a SeaTalk converter, a GPS/AIS, and a wind instrument; it runs KPLEX and successfully outputs through wifi and an ethernet cable to the chartplotter RPi;
b: the second RPi is the chartplotter sitting inside an HDMIPI screen and receiving data from the first RPi through eth0; it works well and OpenCPN correctly receives data
c: I can receive nmea on Android tablet and run mobile OpenCPN on that
3. at home I have 2 RPi connected by ethernet cable. I have inputs from a GPS dongle (with view of the sky) and from barometer, temperature, and humidity sensors.
4. I can successfully ping both ways between the RPis
5. I can run KPLEX on each RPi and send GPS or sensor messages both ways, combine them and send them back. I have tested with GPS on one RPi and sensors on the other and with both on one.Thus my basic communications setup seems to work OK
6. I am trying to prepare for outputting autopilot messages on the boat and replicating it at home. I have OpenCPN running on one RPi and KPLEX on the other with GPS and sensor inputs. Open CPN runs fine and receives all data and filters as required. I have set up separate outputs on OpenCPN trying TCP, UDP, and FIFO file. The output works fine for retransmitting incoming sentences such as GPRMC but when I activate a route it does not send EC messages.
7. I also have a receive TCP or UDP on the KPLEX RPi and this only shows the retransmitted data (rapid loops can be developed. Very occasionally I see EC messages on the KPLEX machine but this is mainly when I am shutting something down.
8. Both RPi are v2 and run at less than maximum capacity.
__________________
StuartGunn is offline   Reply With Quote
Old 23-04-2016, 03:06   #8
Registered User

Join Date: Nov 2014
Location: Suffolk Yacht Harbour, UK
Boat: Jeanneau Sunfast 32
Posts: 28
Re: OPCPN not outputing autopilot sentences

Additional to post I just made:
I have tried with 2-way comms through one address and port and tried separate input and output through different ports.

I was running OpenCPN 4.0 and in case there was a bug I just downloaded and compiled 4.2 but no difference. I am obviously doing something simple wrong
__________________
StuartGunn is offline   Reply With Quote
Old 23-04-2016, 12:43   #9
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,968
Re: OPCPN not outputing autopilot sentences

Stuart..
Your path of connections through IP net and other are beside my experience. I'm on the old fashion serial talks. Maybe some Linux guru here?
__________________
Hakan is offline   Reply With Quote
Old 23-04-2016, 17:18   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

Will pm muttnik.
__________________
rgleason is online now   Reply With Quote
Old 23-04-2016, 17:23   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

Maybe we need to use Wireshark. Muttnik will confirm or have some suggestions I think.
__________________
rgleason is online now   Reply With Quote
Old 23-04-2016, 17:46   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

Note this Tracker Item.
FS#1557 : NMEA Autopilot Select NMEA Talker ID

Perhaps Bdbcat or Pavel knows something about it?
__________________
rgleason is online now   Reply With Quote
Old 23-04-2016, 17:50   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

You don't happen to have Options box open when testing do you?
Note this from version 4.0 Stable Tracker.. it might apply to 4.2 as well.
FS#1916 : RMB/APB not sent when options dialog is open
__________________
rgleason is online now   Reply With Quote
Old 23-04-2016, 21:08   #14
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OPCPN not outputing autopilot sentences

Folks...

Just tried a simple test with O4.2, linux.

Seems to work fine. Pix attached.
Perhaps try the simplest config, as I did. No NMEA input at all, and just sending all output (unfiltered) to a UDP port. The NMEA debug window shows active $EC messages flying by...

Dave
Attached Thumbnails
Click image for larger version

Name:	apout.jpg
Views:	118
Size:	406.2 KB
ID:	123057  
__________________
bdbcat is online now   Reply With Quote
Old 24-04-2016, 04:42   #15
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,423
Re: OPCPN not outputing autopilot sentences

Thanks bdbcat. This morning I realized that simplify would be the route to go. I'm still learning.
__________________

__________________
rgleason is online now   Reply With Quote
Reply

Tags
autopilot, enc

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MWV sentences not working in dashboard conachair OpenCPN 13 16-12-2017 12:21
NMEA AIS Sentences with Tag block. O 4.0 Do not show AIS targets. Gilletarom OpenCPN 4 08-12-2015 11:35
OpenCPN 3.3.xxxx and plugins : NMEA sentences list ? Gilletarom OpenCPN 17 01-05-2014 07:02
OpenCPN not sending NMEA autopilot sentences. Islander OpenCPN 6 16-04-2014 08:02
Which NMEA Sentences Does an Autopilot Use ? svpresent Marine Electronics 7 17-09-2010 03:21



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 16:22.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.