Gaston - I need some help with the XDR plugin. ...

I need some help with the XDR plugin for Pitch and Roll from my Airmar PB200. I receive the following sentences on signalk-server:eventes:connection:pb200:nmea0183 Oct 10 19:02:07 2025-10-10T17:02:07.941Z signalk-server:events:connection:PB200:nmea0183 $YXXDR,A,3.9,D,PTCH,A,1.0,D,ROLL\*56 Oct 10 19:02:08 2025-10-10T17:02:08.218Z signalk-server:events:connection:PB200:nmea0183 $YXXDR,C,,C,WCHR,C,,C,WCHT,C,,C,HINX,P,1.0085,B,STNP\*47 I tried to follow the documentation here: https://www.npmjs.com/package/xdr-parser-plugin. It says to check the TCP port for raw messages. If I check the server log signalk-server:interfaces:tcp:nmea0183, I don't see any messages. Is this where I should check for raw-messages? I also attached a screenshot how I configured the plugin.
No description
No description
14 Replies
Karl-Erik Gustafsson
There is something wrong with incoming nmea XDR datas. Backslash is somehow extra char as checksum match OK if backslash is not there?!? $YXXDR,A,3.9,D,PTCH,A,1.0,D,ROLL\*56 Correct checksum is 0A $YXXDR,A,3.9,D,PTCH,A,1.0,D,ROLL\*0A Without backslash sentence is OK $YXXDR,A,3.9,D,PTCH,A,1.0,D,ROLL*56 Same with the other sentence. Is Validate Checksum ON in Data Connection?
Gaston
GastonOP2mo ago
Yes, it's on.
No description
Gaston
GastonOP2mo ago
If I disable Validate checkum: Oct 12 13:16:12 2025-10-12T11:16:12.188Z signalk-server:events:connection:PB200:nmea0183 $YXXDR,A,4.0,D,PTCH,A,0.9,D,ROLL*50 But I don't get a navigation.attitude.pitch . Did I fill in the fields in the XDR Parser the right way?
Karl-Erik Gustafsson
Will test this in my XDR plugin too tomorrow.
Gaston
GastonOP2mo ago
Hi Karl-Erik, Did you get a chance to check on the plugin?
Karl-Erik Gustafsson
Sorry for long response and good that you pinged 🙂 Here is test results and working fine. Tested with UDP input and NetCat. echo '$YXXDR,A,4.0,D,PTCH,A,0.9,D,ROLL*50' | nc -u 192.168.0.100 7000
No description
No description
No description
No description
Gaston
GastonOP2mo ago
I took over your settings for the plugin, but nothing showed up here. Should I see the plugin under plugin activity on the dashboard page?
No description
Gaston
GastonOP2mo ago
Ok. I get data now!
Gaston
GastonOP2mo ago
Besides the 'validate checksum' I think I know what else has confused me. This box says to use the first field of the quadruple, and is named 'units'. I used the 3th field, because I thought units meant 'radians' or 'degrees' (which is the third field) and therefore I used a 'D' instead of an 'A'. There is no error message for this error I think.
No description
Gaston
GastonOP2mo ago
And in my search for a solution I have used uppercase X instead of lowercasex and also for pi / PI which gives an error message that wasn't really helping. But it's all working now. Thanks for your help.
No description
No description
Karl-Erik Gustafsson
Good that it is working now 👍
Gaston
GastonOP2mo ago
I am not sure if the code is still maintained, but if so, I think it would be good to change 'units' to 'transducer type'. But that's probably only useful for people like me that don't read that it should be the 'first field'. If GaryWSmith does not maintain the plugin anymore, would it be possible to create a copy and make a new plugin?
Karl-Erik Gustafsson
Lets give him little bit time to react and if no actions, then we can release updates from fork.
Gaston
GastonOP3w ago
I agree. No response from GaryWSmith. I'm afraid he left the building.

Did you find this page helpful?