zeero added the comment:
Thanks for the advise. I'll give it a try.
So ctypes.Structure is always little endian regardless from the underlying
architecture.
I just checked on a raspberry pi 2 that should be a big endian device, and got
the same results as before.
I'm still not su
zeero added the comment:
Sorry for the inconvenience.
The format specification can be found in chapter 2.1 in
http://vector.com/portal/medien/cmc/application_notes/AN-ION-1-3100_Introduction_to_J1939.pdf
So I would write down the field contents in that order
_fields_ = [('res
New submission from zeero:
I'm implementing a CAN SAEJ1939 stack in Python and convert CAN message ids in
between integers and structures, tunneling them through a Union object with 4
bytes like what i would do in C.
I was checking that particular function and the 3 priority bits were a