linux-can / socketcand

Server to access CAN sockets over ASCII protocol
169 stars 43 forks source link

Update docs to reflect actual implementation. #27

Closed faisal-shah closed 1 year ago

faisal-shah commented 1 year ago

Correct the documentation to describe the data bytes of < send > and < frame >

For < send >, it's supposed to be lowercase unpadded (%hhx) with spaces in-between data bytes: https://github.com/linux-can/socketcand/blob/master/state_raw.c#L158-L171

And on the receive side (< frame > message), the data is padded uppercase (%02X) without spaces in between: https://github.com/linux-can/socketcand/blob/master/state_raw.c#L125-L135