ni / nixnet-python

NI-XNET Python API
https://nixnet.readthedocs.io/en/latest/
MIT License
25 stars 22 forks source link

Incorrect Frame ID Mask #266

Closed shmaller closed 5 years ago

shmaller commented 5 years ago

In types.py line 183, _FRAME_ID_MASK is set to 0x3FF. This is only a 10-bit mask. As a result, an error is thrown prompting to set an extended ID bit when using 11-bit ID such as 0x400 (which is a valid standard frame).

Changing the _FRAME_ID_MASK to 0x7FF (11-bits) rectifies the issue.

epage commented 5 years ago

Here is some documentation listing the ID is 11 bits http://zone.ni.com/reference/en-XX/help/372841T-01/nixnet/canframes/