xela144 / CANaconda

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

Allow for transmitting NMEA2000 messages #34

Closed xela144 closed 10 years ago

xela144 commented 10 years ago

For example PGN127245 for commanding the rudder angle.

xela144 commented 10 years ago

Some of the N2K messages have body size that does not end on a byte boundary. Should we just assume that it does end on the next largest byte? Example with a 3-bit lookup table that makes message length 43 bits. Should we assume this message size is 48/8 = 6 bytes.

PGN: 130306 - Wind Data

Field #1: SID Bits: 8 Field #2: Wind Speed Bits: 16 Field #3: Wind Angle Bits: 16 Field #4: Reference Bits: 3 Type: Lookup table Signed: false Lookup: 0=True (referenced to North) Lookup: 1=Magnetic Lookup: 2=Apparent Lookup: 3=True (boat referenced)

xela144 commented 10 years ago

For parsing messages, it does not matter if the all the bits are accounted for in the body string.

On the other hand, for encoding messages, offsets should be accounted for and all blank spots on the body array string be filled in with "don't cares", or 1's.

xela144 commented 10 years ago

This was done a few weeks back. 8a57b91