26
8.3.10
Setting Acceptance Mask
The acceptance mask, in conjunction with the acceptance code (M), defines which
CAN message frames (i.e. of a specific ID or range of CAN IDs) will be passed to the
serial interface. The acceptance mask value corresponds to bits within a range of valid
CAN IDs for either standard or extended CAN frames. This command is only active if
the CAN channel is initiated and not opened.
Set Acceptance Mask (m) command should be executed
prior
to Set Acceptance Code
(M).
Note
:
The CAN channel will revert to its prior state after execution. For example, if the
channel is open when this command is executed, the channel will update the setting
and return to the open state.
Command
Response Function
miii[CR]
[CR]
Set acceptance mask for standard CAN frame (11
bit) identifier
miiiiiiii[CR]
[CR]
Set acceptance mask for extended CAN frame (29
bit) identifier
iii = standard 11-bit CAN mask (0x000 through 0x7FF)
iiiiiiii = extended 29-bit CAN mask (0x00000000 through 0x1FFFFFFF)
A value of “0” in a bit location indicates that the bit location ID value is to be
ignored
when filtering messages.
Default is to pass all frames (acceptance mask = 0x000 for standard messages and
0x00000000 for extended messages)
Example: m700[CR] set acceptance mask to check bits 10, 9 and 8 against the filter.
Bits 7 through 0 are ignored as “don’t care”. Use the acceptance mask in conjunction
with the acceptance code, which is explained next.
Содержание USB-2CAN-M
Страница 1: ...Titan Electronics Inc Web www titan tw USB 2CAN M USB CAN SI M USER S MANUAL 2019 Edition ...
Страница 5: ...4 9 6 13 Using the API in Python 70 9 6 14 Using the API in LabVIEW 71 ...
Страница 36: ...35 Connected to XXX kbits s firmware version VXXXX and operation mode at the bottom of the main panel ...
Страница 43: ...42 ...
Страница 62: ...61 Sample Command CAN_Status 2508 Checks the status bits of device connected to channel with the handle 2508 ...
Страница 66: ...65 break Status CAN_Close Handle printf Test finish n return 0 ...