You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PGN127507 is in canboat, with recent modification from single packet to fast packet definition (canboat/canboat#243). There is an issue in SignalK to add support for the PGN (SignalK/n2k-signalk#219).
I have noticed that there is no test PGN definition in canboatjs. The following I hope supplies a test module for the PGN.
Please however note, the can message used in both the above test and the Actisense screen shot does not deliver a correct output when parsed through candumpanalyzerjs.
Note the incorrect INSTANCE and values on all subsequent fields. This reflects the issue reported here SignalK/n2k-signalk#219 and #161. As noted in issue 161, I can get correct behaviour by changing the pgns.json file and defining the length as 9. The problem of parsing fast packets with 6 or less fields seems to be a canboatjs issues and not n2k-signalk.
The text was updated successfully, but these errors were encountered:
nmbath
added a commit
to nmbath/canboatjs
that referenced
this issue
Jan 12, 2022
PGN127507 is in canboat, with recent modification from single packet to fast packet definition (canboat/canboat#243). There is an issue in SignalK to add support for the PGN (SignalK/n2k-signalk#219).
I have noticed that there is no test PGN definition in canboatjs. The following I hope supplies a test module for the PGN.
module.exports = [{
"expected": {"timestamp":"2016-02-28T19:57:02.829Z","prio":6,"src":129,"dst":255,"pgn":127507,"description":"Charger Status","fields":{"Instance":114,"Battery Instance":6,"Operating State":"Disabled","Charge Mode":"Standalone","Charger Enable/Disable":"Off"}},
"input": "2016-02-28T19:57:02.829Z,6,127507,129,255,6,72,06,08,fc,ff,ff"
}]
When run in the test harness it passes..
Please however note, the can message used in both the above test and the Actisense screen shot does not deliver a correct output when parsed through candumpanalyzerjs.
cat PGN127507-single.txt
can0 19F21381 [8] A0 06 71 00 08 FC FF FF
cat PGN127507-single.txt | ./canboat/canboatjs/bin/candumpanalyzerjs
{"canId":435295105,"prio":6,"src":129,"dst":255,"pgn":127507,"timestamp":"2021-08-26T18:10:07.989Z","fields":{"Instance":160,"Battery Instance":6,"Operating State":"Bulk","Charge Mode":7,"Charger Enable/Disable":"Off","Equalization Pending":"Off","Reserved1":"0","Equalization Time Remaining":64520},"description":"Charger Status"}
Note the incorrect INSTANCE and values on all subsequent fields. This reflects the issue reported here SignalK/n2k-signalk#219 and #161. As noted in issue 161, I can get correct behaviour by changing the pgns.json file and defining the length as 9. The problem of parsing fast packets with 6 or less fields seems to be a canboatjs issues and not n2k-signalk.
The text was updated successfully, but these errors were encountered: