eCAN_UserManual_Eng_DM v1.0.1

eCAN
User Manual
34
REC (Rx Error Counter)
It is the reception error counter.
It consists of 2bytes, which are delivered by converting values from 0~255 to hex, and each hex value to ASCII.
If REC = 200, 0xC8(200) 0x4338(C8)
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.
It consists of 2bytes, which are delivered by converting values from 0~255 to hex, and each hex value to ASCII.
If TEC = 200, 0xC8 (200) 0x4338 (C8)
If CAN message sent successfully TEC = Tech-1
When transmitter detects an error and send the Error Flag TEX= TEC +8
LEC
It is Last Error Code, displaying the last error.
Value
Description
0x3030
No Error
0x3031
Stuff Error. occurs when a message containing the same 5 consecutive bits is received
0x3032
Form Error. occurs when a message is received outside the specified format
0x3033
Ack Error. occurs when the relative device did not Ack for the message sent
0x3034
Bit Error. occurs when a High (Bit1) value is sent but the level of the bus is LOW
0x3035
Bit Error. occurs when a High (Bit0) value is sent but the level of the bus is HIGH
0x3036
CRC Error. Occurs when the CRC value of the received message and the inspected value
do not match
The table below summarizes the explanation above.
TYPE
Status
REC
TEC
LEC
CR
1Byte
1Byte
2Byte
2Byte
2Byte
1Byte
0x31~0x36
Error Passive
0x37
Bus off State