![NANOTEC ZK-USB-CAN-1 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/nanotec/zk-usb-can-1/zk-usb-can-1_operating-instructions-manual_3241517017.webp)
4 Protocol description
After activation of the filter, the following messages would be shown, e.g.:
:>17D 8 0 0 0 0 0 0 0 0
:>47D 4 0 1 1 0
4.1.15 Command Notification
Syntax:
set notification [n]
Where [n] is 0 to 3:
■
0 - Received RAW CAN messages are not displayed.
■
1 (default) - Only received RAW CAN messages that do not relate to the current SDO transfer are
displayed.
■
2 - All received RAW CAN messages are displayed.
■
3 - All received and sent RAW CAN messages are displayed.
Example
// Request: Set notification = 0
set notification 0
// Response: “OK”
OK
4.1.16 Command for CAN Error list
Syntax:
info CAN_ERR
Returns a message in the CAN_ERR format: [REC] [TEC] [LEC] [BOFF] [EPVF] [EWGF]
Where:
■
[REC] - Error counter (receive error)
■
[TEC] - Least significant byte of the error counter (transmit error)
■
[LEC] - Last error code:
□
0: No error
□
1: Stuff Error
□
2: Form Error
□
3: Acknowledgment Error
□
4: Bit recessive Error
□
5: Bit dominant Error
□
6: CRC Error
□
7: Reserved
■
[BOFF] - CAN bus OFF flag (0 or 1)
■
[EPVF] - CAN bus error passive flag (0 or 1)
■
[EWGF] - CAN bus error warning flag (0 or 1)
Example
// Request: Get info for a CAN error
info CAN_ERR
//Response CAN_ERR: [REC] [TEC] [LEC] [BOFF] [EPVF] [EWGF]
CAN_ERR: 0 0 0 0 0 0
Version: 1.0.0
17