Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 05-08-2023, 08:14   #1
Registered User

Join Date: Apr 2019
Posts: 614
Ignore sentences when priority source is available

We have two sources of NMEA data.

1) vesper cortex that’s always on
2) B&G system that’s on when we are underway

We leave OpenCPN on and use the Vesper Cortex data for anchor watch and AIS while anchored.

When we are underway and have the B&G system on, OpenCPN bounces around using heading data from both. This causes issues with the radar plug-in showing incorrect overlays on the chart.

It sometimes looks like OpenCPN is using the magnetic heading data from the Vesper as true heading and that’s what’s causing the issue but I’m not sure.

I’ve set the priorities to all be the B&G data but it still will bounce to the vesper randomly.

Any pointers to correct this?
crayiii is offline   Reply With Quote
Old 05-08-2023, 08:27   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,292
Re: Ignore sentences when priority source is available

crayiii...
Do you have both headings in Options=>Connect: "Adjust communication priorities.."?
If so is the B&G heading set as Prio 0? (In uppermost position while both are present)
Hakan is online now   Reply With Quote
Old 05-08-2023, 09:04   #3
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Quote:
Originally Posted by Hakan View Post
crayiii...
Do you have both headings in Options=>Connect: "Adjust communication priorities.."?
If so is the B&G heading set as Prio 0? (In uppermost position while both are present)

Yes, B&G is set to 0. It almost seems like the mag var is being set twice. I have the WMM plug-in disabled and set it to zero in the settings under units.
crayiii is offline   Reply With Quote
Old 05-08-2023, 13:40   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,292
Re: Ignore sentences when priority source is available

If the B&G true heading is correct I don't understand why it's not used as prio 0. (Unless it's not received faster than every 10 seconds)

If you set the variation manually to zero you'll of course have a problem unless in a zone without variation. Why disable WMM? I'd enabled it if I've received a magnetic heading.
Old devices can transmit a false variation if the inbound WMM-table is outdated. Can that be the cause? (Try to set its variation manually to 0.0, if possible, then WMM will "take over")
Hakan is online now   Reply With Quote
Old 05-08-2023, 13:42   #5
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Quote:
Originally Posted by Hakan View Post
If the B&G true heading is correct I don't understand why it's not used as prio 0. (Unless it's not received faster than every 10 seconds)

If you set the variation manually to zero you'll of course have a problem unless in a zone without variation. Why disable WMM? I'd enabled it if I've received a magnetic heading.
Old devices can transmit a false variation if the inbound WMM-table is outdated. Can that be the cause? (Try to set its variation manually to 0.0, if possible, then WMM will "take over")

It looks like OpenCPN is honoring the priority settings perfectly. It’s the radar plug-in that seems to ignore it.
crayiii is offline   Reply With Quote
Old 05-08-2023, 23:30   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,292
Re: Ignore sentences when priority source is available

And what's the radar plugin settings for heading in preferences?

Since you're using NMEA0183 heading data into OCPN I think all three checkboxes concerning heading should be disabled.
Hakan is online now   Reply With Quote
Old 06-08-2023, 02:56   #7
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Quote:
Originally Posted by Hakan View Post
And what's the radar plugin settings for heading in preferences?

Since you're using NMEA0183 heading data into OCPN I think all three checkboxes concerning heading should be disabled.

Yes, all the check boxes are unchecked. For now, I just disable the Vesper Cortex source when underway and when anchored, enable that source for the anchor watch.

I did a video with the radar info box next to the dashboard heading (M and T) and you can see the radar bouncing between the sources but the dashboard remaining stable. Unfortunately, it doesn’t look like I can post a video here.
crayiii is offline   Reply With Quote
Old 06-08-2023, 06:09   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,292
Re: Ignore sentences when priority source is available

crayiii..
What I know the radar plugin should use the same prioritized heading data as used by OCPN core.

In first hand true heading, Hdt, if available. (Note: watchdog for no data here is 5 seconds)
Second magn heading, Hdm, + WMM correction.

Q- You're using latest radar plugin, v.5.5.x, I suppose?
Q- The B&G hdt is hopefully received more frequently than 5 seconds?
Hakan is online now   Reply With Quote
Old 06-08-2023, 06:17   #9
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Quote:
Originally Posted by Hakan View Post
crayiii..
What I know the radar plugin should use the same prioritized heading data as used by OCPN core.

In first hand true heading, Hdt, if available. (Note: watchdog for no data here is 5 seconds)
Second magn heading, Hdm, + WMM correction.

Q- You're using latest radar plugin, v.5.5.x, I suppose?
Q- The B&G hdt is hopefully received more frequently than 5 seconds?

Yes, we are using the latest plug-in. The B&G heading is sending updates very quickly when I view the NMEA stream. It almost looks like the plug-in is applying a correction to a true heading so it’s getting corrected twice. Again, it’s only doing that with the Vesper Cortex source.

The Vesper Cortex sends its own internal heading over NMEA unless it receives a heading from the B&G (when we turn the nav system on), then it repeats the B&G as the heading. I think that’s where the issue arises.

For some reason I can’t get the plug-in to ignore the Vesper Cortex heading data when the B&G data is available.
crayiii is offline   Reply With Quote
Old 06-08-2023, 06:24   #10
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,292
Re: Ignore sentences when priority source is available

I can't say I can follow your description about what the Vertex system supplying.

Maybe a NMEA debug window copy of the hdt, hdm from Vertex and B&G?
Hakan is online now   Reply With Quote
Old 06-08-2023, 06:53   #11
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Quote:
Originally Posted by Hakan View Post
I can't say I can follow your description about what the Vertex system supplying.

Maybe a NMEA debug window copy of the hdt, hdm from Vertex and B&G?
The first part of the stream is with the B&G system on and the Vesper was repeating the B&G data. I've noted where I shut the B&G system off and the Vesper began sending it's internal heading data.

B&G - 192.168.8.202
Vesper - 192.168.8.175


<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,160.9,,,15.1,W*03<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:21 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,158.0,0.0,E,15.1,W*6A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.0,,,15.1,W*0B<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.1,,,15.1,W*0A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.1,,,15.1,W*0A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.1,,,15.1,W*0A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.1,,,15.1,W*0A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.1,,,15.1,W*0A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.1,,,15.1,W*0A<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.2,,,15.1,W*09<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.2,,,15.1,W*09<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.2,,,15.1,W*09<0x0D><0x0A>
<GREEN>09:33:22 (TCP:192.168.8.175:39150) $AIHDG,161.2,,,15.1,W*09<0x0D><0x0A>

********TURNED OFF B&G*********

<GREEN>09:33:23 (TCP:192.168.8.175:39150) $AIHDG,159.6,0.0,E,15.1,W*6D<0x0D><0x0A>
<GREEN>09:33:24 (TCP:192.168.8.175:39150) $AIHDG,158.9,0.0,E,15.1,W*63<0x0D><0x0A>
<GREEN>09:33:25 (TCP:192.168.8.175:39150) $AIHDG,160.1,0.0,E,15.1,W*60<0x0D><0x0A>
<GREEN>09:33:26 (TCP:192.168.8.175:39150) $AIHDG,159.3,0.0,E,15.1,W*68<0x0D><0x0A>
<GREEN>09:33:27 (TCP:192.168.8.175:39150) $AIHDG,159.8,0.0,E,15.1,W*63<0x0D><0x0A>
<GREEN>09:33:28 (TCP:192.168.8.175:39150) $AIHDG,161.3,0.0,E,15.1,W*63<0x0D><0x0A>
<GREEN>09:33:29 (TCP:192.168.8.175:39150) $AIHDG,160.3,0.0,E,15.1,W*62<0x0D><0x0A>
<GREEN>09:33:30 (TCP:192.168.8.175:39150) $AIHDG,161.1,0.0,E,15.1,W*61<0x0D><0x0A>

Here is the stream capturing both the B&G heading and the Vesper which is repeating the B&G heading. It looks like the Vesper is sending true heading that it's getting from the B&G system an repeating it with the variation so OpenCPN applies the variation to an already corrected heading value.

That said, I would have thought OpenCPN would ignore the Vesper since it's a lower priority than the B&G.

<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.6,,,15.0,W*02<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.8,,,15.1,W*0C<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.8,,,15.1,W*0C<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
<GREEN>09:40:50 (TCP:192.168.8.202:10110) $IIHDG,176.7,,,15.0,W*03<0x0D><0x0A>
<GREEN>09:40:51 (TCP:192.168.8.175:39150) $AIHDG,191.9,,,15.1,W*0D<0x0D><0x0A>
crayiii is offline   Reply With Quote
Old 06-08-2023, 07:08   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Ignore sentences when priority source is available

Would nmeaconverter help?
rgleason is offline   Reply With Quote
Old 06-08-2023, 07:14   #13
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Here are two photos taken about a second apart.

You can see the radar interface bouncing between the two heading sources.

Click image for larger version

Name:	IMG_1845.jpg
Views:	46
Size:	427.1 KB
ID:	279232
Click image for larger version

Name:	IMG_1844.jpg
Views:	40
Size:	429.4 KB
ID:	279233
crayiii is offline   Reply With Quote
Old 06-08-2023, 08:47   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,292
Re: Ignore sentences when priority source is available

caryiii...
message HDG shall contain a magnetic heading and if available info about deviation and variation. See here for info.
It seems Vesper is reporting a heading adjusted by variation i.e. true heading. That's not correct as I see it.
I'd suggest you filter out HDG from the Vesper - 192.168.8.175 connection. (For anchor watch you'd not need a heading?)
Hakan is online now   Reply With Quote
Old 06-08-2023, 09:00   #15
Registered User

Join Date: Apr 2019
Posts: 614
Re: Ignore sentences when priority source is available

Quote:
Originally Posted by Hakan View Post
caryiii...
message HDG shall contain a magnetic heading and if available info about deviation and variation. See here for info.
It seems Vesper is reporting a heading adjusted by variation i.e. true heading. That's not correct as I see it.
I'd suggest you filter out HDG from the Vesper - 192.168.8.175 connection. (For anchor watch you'd not need a heading?)

I submitted a ticket with Vesper and will filter it in OpenCPN. I do wonder why the radar plug-in picks it up though.

Thank you for the help!
crayiii is offline   Reply With Quote
Reply

Tags
enc


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
Which NMEA Sentences Does an Autopilot Use ? svpresent Marine Electronics 8 02-05-2020 16:42
Reducing sail priority Dexterbase Seamanship & Boat Handling 29 07-03-2014 01:24
Gear Priority: Mexico > Panama > Caribbean Jim Wilson Atlantic & the Caribbean 27 28-05-2009 09:51
should we change our priority's philip van praag Multihull Sailboats 30 13-09-2007 07:20

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.