Appendix B Data Conversion Format Of Tcp Notification Port In Can Port State - ZLG CANSwitch-AN2S2 User Manual

High-performance dual-can to ethernet switch
Table of Contents

Advertisement

CANSwitch-AN2S2
High-Performance Dual-CAN to Ethernet Switch User Manual
Appendix B Data Conversion Format of TCP Notification Port
某路CAN对应的TCP通知端口被连接后,如果此路CAN发生错误,
通知端口将向主机定时发出状态警告,TCP包数据段格式如下:
AAh
固定格式。包头AAh 00h,包尾55h
状态码
CMD
Time1 Time2 Time3 Time4 错误计数(32bit),高字节在前,即Time1为高字节
CMD
Status Description (All Are CANSwitch-AN2S2 Devices)
Value
00h
Ethernet send buffer is about to overflow
01h
Ethernet send buffer has overflowed
02h
Ethernet receive buffer is about to overflow
03h
Ethernet receive buffer has overflowed
04h
The CAN controller sends an error alarm (send error
counter > 96)
05h
The CAN controller receives an error alarm (receive
error counter > 96)
06h
CAN controller transmit error passive (transmit error
counter > 127)
07h
CAN controller receive error passive (receive error
counter > 127)
08h
CAN controller receive overflow error (overload)
09h
CAN controller bus off (bus off)
0Ah
CAN controller arbitration loss (bus congestion)
in CAN Port State
00h
CMD Time1 Time2 Time3 Time4 55h
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
80
User Manual
Time Error
Notification
Count Value
Period (s)
0
2s
0
0.5s
0
2s
0
0.5s
Number
of
2s
occurrences
Number
of
2s
occurrences
Number
of
2s
occurrences
Number
of
2s
occurrences
Number
of
2s
occurrences
Number
of
2s
occurrences
Number
of
2s
occurrences

Advertisement

Table of Contents
loading

Table of Contents