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 21-04-2021, 07:22   #1
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Hello,


Is it a requirement that a NMEA0183 HDM (Magnetic Heading) is prefixed by II for OpenCpn Dashboard_Tactics to recognise it? I can't get it to respond to PCHDM but it does respond to IIHDM correctly. I would have expected it to ignore the talker ID.



Thanks,


Aedan
AedanC is offline   Reply With Quote
Old 21-04-2021, 07:32   #2
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 242
Images: 3
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

You can try it with NmeaConverter, t is possible to use wildcards in the identifiers.
https://opencpn.org/OpenCPN/plugins/nmeaconvert.html
Schnapsy is offline   Reply With Quote
Old 21-04-2021, 09:14   #3
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Quote:
Originally Posted by Schnapsy View Post
You can try it with NmeaConverter, t is possible to use wildcards in the identifiers.
https://opencpn.org/OpenCPN/plugins/nmeaconvert.html

Thanks Schnapsy, I have done something like that as an experiment by another means, I was hoping to find a more elegant solution to switch between two incoming HDM streams but I might have to do that or something similar.
AedanC is offline   Reply With Quote
Old 21-04-2021, 09:33   #4
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

OpenCPN should ignore the talker ID if the sentence is correct. Is the PH sentence being accepted in the NMEA Debug Window? That would help in determining whether to start looking the PI code or the OpenCPN code.

Could you post some sample sentences from both devices here?
Dsanduril is offline   Reply With Quote
Old 21-04-2021, 09:43   #5
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 242
Images: 3
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Quote:
Originally Posted by AedanC View Post
Thanks Schnapsy, I have done something like that as an experiment by another means, I was hoping to find a more elegant solution to switch between two incoming HDM streams but I might have to do that or something similar.
I quickly looked in the DashTactics dashboard_pi.cpp and only the HDM expression is retained, in fact "--HDM" .
Maybe it's a checksum problem?
Schnapsy is offline   Reply With Quote
Old 21-04-2021, 09:58   #6
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

That was my thought, possible checksum problem, have seen that from some vendors.

There's a decent NMEA checksum tool at https://nmeachecksum.eqth.net/. You have to grab the right parts of the sentence from the Debug window (between, but not including the $ and the *) and then you can check against the checksum in the sentence you have.
Dsanduril is offline   Reply With Quote
Old 21-04-2021, 11:37   #7
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Thanks everyone for your ideas.


I have checked the PC version in the checksum checker pointed to above and it passes. The OpenCpn NMEA monitor window also colours it green. The PC version is being generated by my code so I can alter it as required, but I can't use the II talker ID for what I want to do.


Schnapsy, thanks for looking at the code. Is there any possibility there is a pre-filter elsewere that requires a smaller set of talker IDs, eg just GP and II?



Here are some samples, two that work and two that don't.


Version from my B&G instruments, works:


$IIHDM,076,M*3D


Version from my code, works:


$IIHDM,289.7,M*26


Other versions from my code that don't work:


$PCHDM,289.7,M*35
$PCHDM,289,M*2C


Any ideas gratefully received.


Thanks,


Aedan
AedanC is offline   Reply With Quote
Old 21-04-2021, 11:48   #8
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Just as a test, what happens if you set your TalkerID to "HC"? That is a valid NMEA Talker ID (Heading - Magnetic Compass) and is recognized in the OpenCPN expanded ID routine. There are no valid (in the expanded ID routine) talkers that begin with "P". I think it should be ignored, but using a known Talker ID would be a good test point.

You could also try "YX" (transducer - undefined) and "CC" (Computer - Programmed Calculation).

I don't know if any of those would work, but if they do it points to an issue with an unknown identifier.
Dsanduril is offline   Reply With Quote
Old 21-04-2021, 13:09   #9
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

I tried HC and it works find. I chose PC randomly as I thought the talker ID would be ignored but just now I have read that P* is vendor specific. It was a bad random choice.


Thanks everyone for all your help, hopefully I can help one of you out with something someday.


Aedan
AedanC is offline   Reply With Quote
Old 21-04-2021, 13:52   #10
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Thanks for the report back. Interesting that the expanded identifier is not ignored. With the proliferation of new Talker IDs I've seen of late might need to look into the code to see why it is not accepted.
Dsanduril is offline   Reply With Quote
Old 21-04-2021, 15:13   #11
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

When looking into that do bear in mind that anything starting with P is a special case as it’s vendor specific. It may well be legitimate to ignore P???? sentences, I’ll leave it open for discussion.
AedanC is offline   Reply With Quote
Old 22-04-2021, 13:02   #12
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics

Quote:
Originally Posted by AedanC View Post
When looking into that do bear in mind that anything starting with P is a special case as it’s vendor specific. It may well be legitimate to ignore P???? sentences, I’ll leave it open for discussion.
Correct Aedan, it is defined in OpenCPN Dashboard, at this line. Consequently, also in dashboard_tactics. It allows, among other manufacturers NKE to define its own performance records.
Canne is offline   Reply With Quote
Reply

Tags
nmea


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
OpenCPN Heading (HDM) Dashboard precision ian5142 OpenCPN 14 11-09-2020 16:27
For Sale: Newmar HDM 30 Battery Charger/Converter 120v AC shore power to 12v DC redpointist Classifieds Archive 0 18-01-2016 10:25
Custom NMEA Sentences-convert HDG in HDM Madden OpenCPN 3 25-05-2015 20:21
nmea2000, nmea0183, ST and WIFI for openCPN? blubaju OpenCPN 3 13-03-2015 01:03
OpenCPN and external NMEA0183 alarms FWallenwein OpenCPN 3 06-05-2012 15:31

Advertise Here


All times are GMT -7. The time now is 21:08.


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.