44
©2017 Guangzhou ZHIYUAN Electronics
Date: 2017/08/04
User Manual
V1.02
C
Guangzhou ZHIYUAN Electronics Co., Ltd.
High performance 2-channel WiFi-to-CAN Converter
CANWiFi-200T User Manual
The following example is the representation for a standard data frame with the ID of
0x0001, which includes 8 bytes of data (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
and 0x07):
0xfe 0xfd 0x00 0x08 0x00 0x00 0x00 0x01 0x00 0x01 0x02 0x03 0x04 0x05 0x06
0x07 0x00 0x00 0x00 0x0a
When users send CAN frames through PC, it should not exceed the maximum CAN
transmission traffic of device. For example, if a standard data frame is sent at
1000Kbps baud rate, the maximum CAN transmission speed is 10000 frame/s. Even
if PC can send data at a high speed, the CAN device is not able to do that; and the
buffer will overflow even though there is a large buffer in the device. In addition, the
CANWIFI-200T device has limited WIFI transmission ability; therefore it is
recommended that the CAN frames sent by each CAN per second should not exceed
5800 frames.
7.2 Data conversion format of the TCP notification port for the
CAN status of CANWiFi-200T
AAh
00h CMD
Time1 Time2 Time3 Time4
55h
After the TCP notification port corresponded to a CAN channel is
connected, it will send status warning to the host when any CAN
error occurs. The format of TCP package data section is as follows:
Fixed format. AAh 00h for package header, 55h for package tail.
CMD
Status code
Time1 Time2 Time3 Time4
Error count (32 bit). High byte in front, i.e., Time1
is high byte.
CMD Value
Meaning of the status
(CANWiFi-200T device)
Time Error
Count Value
Notification
Cycle (second)
01h
The transmit buffer of Ethernet will overflow.
0
2s
02h
The transmit buffer of Ethernet has overflowed.
0
0.5s
03h
The receive buffer of Ethernet will overflow.
0
2s
04h
The receive buffer of Ethernet has overflowed.
0
0.5s
05h
CAN controller transmission error alarm
(transmission error count > 96)
Frequency
2s
06h
CAN controller reception error alarm (reception
error count > 96)
Frequency
2s
07h
CAN controller transmission error passive
(transmission error count > 127)
Frequency
2s