xela144 / CANaconda

CANaconda project: CAN message viewer
GNU General Public License v3.0
10 stars 0 forks source link

Support decoding NMEA2000 fast packets #49

Open Susurrus opened 9 years ago

Susurrus commented 9 years ago

NMEA 2000 fast packets are used for many packets in NMEA2000, including some GPS messages and PGN 128275. Being able to specify the type of packet (ISO11783, NMEA200FP, STANDARD) would be useful for this. There's no reason to handle ISO11783 right now, and only parsing them instead of being able to transmit them as well would be the priority

Susurrus commented 9 years ago

A good description of the format can actually be found on the wiki page: https://en.wikipedia.org/wiki/NMEA_2000

Susurrus commented 9 years ago

Fast-packet support is also required for a bunch of Xanbus messages, like those used by the XW-MPPT60-150 p/n 865-1030 Solar Charge Controller. Specifically it outputs PGN 126990, which is a 20-byte fast-packet. See their PGN listing: http://byron.soe.ucsc.edu/wiki/autoboat/wg1/components/Xantrex?action=AttachFile&do=view&target=Xantrex_865-1030_PGNs.pdf

I've also uploaded a text log of a bunch of these packets for testing: http://pastebin.com/jPxFznm7

A description of the fast-packet protocol is here: http://www.auelectronics.com/forum/index.php?PHPSESSID=ns0k786e6jvacog3re04jh6e50&topic=421.msg1185#msg1185

And I've already submitted a PR for pulling in the metadata for PGN126990. Note that the way to handle multi-packet messages is with the type parameter. This issue tracks implementing the "fast-packet" value for "type".

Susurrus commented 9 years ago

No rush on this now, I have things implemented and working microcontroller side.