 |
21-04-2021, 07:22
|
#1
|
Registered User
Join Date: Nov 2015
Location: Ireland
Posts: 387
|
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
|
|
|
21-04-2021, 07:32
|
#2
|
Registered User
Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 181
|
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
|
|
|
21-04-2021, 09:14
|
#3
|
Registered User
Join Date: Nov 2015
Location: Ireland
Posts: 387
|
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics
Quote:
Originally Posted by Schnapsy
|
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.
|
|
|
21-04-2021, 09:33
|
#4
|
Registered User
Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,226
|
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?
|
|
|
21-04-2021, 09:43
|
#5
|
Registered User
Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 181
|
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics
Quote:
Originally Posted by AedanC
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?
|
|
|
21-04-2021, 09:58
|
#6
|
Registered User
Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,226
|
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.
|
|
|
21-04-2021, 11:37
|
#7
|
Registered User
Join Date: Nov 2015
Location: Ireland
Posts: 387
|
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
|
|
|
21-04-2021, 11:48
|
#8
|
Registered User
Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,226
|
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.
|
|
|
21-04-2021, 13:09
|
#9
|
Registered User
Join Date: Nov 2015
Location: Ireland
Posts: 387
|
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
|
|
|
21-04-2021, 13:52
|
#10
|
Registered User
Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,226
|
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.
|
|
|
21-04-2021, 15:13
|
#11
|
Registered User
Join Date: Nov 2015
Location: Ireland
Posts: 387
|
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.
|
|
|
22-04-2021, 13:02
|
#12
|
Registered User
Join Date: Aug 2014
Posts: 246
|
Re: NMEA0183 HDM, IIHDM, PCHDM and dashboard_tactics
Quote:
Originally Posted by AedanC
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.
|
|
|
 |
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|