eCAN_UserManual_Eng_DM v1.0.1

eCAN
User Manual
31
TYPE
ID
DLC
DATA
1Byte
4Byte
1Byte
8Byte
Ex) STD DATA, ID=123, DLC=6, Data=0x31 0x32 0x33 0x34 0x35 0x36
Send - 04 00 00 01 23 06 31 32 33 34 35 36 00 00 (hex)
Receive - 04 00 00 01 23 06 31 32 33 34 35 36 00 00 (hex)
eCAN Error Frame Structure
Status represents the current state and its values are described in the table below.
Set Type to 1byte, the minimum value.
Bus off State gets Clear when you terminate the socket connection and reconnect.
REC (Rx Error Counter)
It is the reception error counter.
If CAN message received successfully REC = REC -1
When the receiver detects an error and sends the Error Flag REC = REC + 1
When the receiver first detects an error and sends the Error Flag REC= REC + 8
TEC (Tx Error Counter)
It is the send error counter.
If CAN message transmitted successfully TEC = Tec-1
When the transmitter detects an error and sends the Error Flag TEX= TEC +8
Value
Description
0x00
Error Active
0x01
Error Passive
0x02
Error counter reached limit of 96
0x03
Error Passive, Error counter reached limit of 96
0x04
Bus off State
0x05
Error Passive, Bus off State
0x06
Error counter reached limit of 96, Bus off State
0x07
Error Passive, Error counter reached limit of 96, Bus off State