Network Frame Format - ZLG CANDTU-200UWGR User Manual

Can bus message records and wireless data transmission equipment
Table of Contents

Advertisement

CANDTU-200UWGR
CAN Bus Message Recording and Wireless Data Transmission Equipment User Manual

4.2.17 Network Frame Format

错误!未找到引用源。 shows the network message communication protocol format.
Special attention: All network packet data are sent and received in big-endian mode.
首部
帧头标志
0xAA
报文类型
[1]
1 byte
校验和
[2]
1 byte
数据段长度
1 byte
附注:
[1]:报文类型如下所示
0x01:CAN报文
0x02:GPS定位数据
0x03:TICK心跳包
0x04:设备ID号
Figure 4.35 Network transmission encryption
数据部分
网络报文(大端模式)
CAN报文数据
心跳包数据
心跳字符
"0"
时间戳
4 bytes
报文ID
4 bytes
报文信息
2 bytes
通道号
1 byte
数据长度
1 byte
报文数据
8 bytes
[2]:校验为所有数据的校验,
校验算法: 对所有数据进行按
位异或运算
Figure 4.36 Network frame protocol format
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
37
设备ID数据
GPS定位数据
纬度
[3]
4 bytes
ID序列号
8 bytes
经度
4 bytes
速度
4 bytes
时间
12 bytes
[3]:GPS定位数据中经度、纬
度、速度均为 float 类型,
时间格式如下:
struct time {
uint16_t year;
uint16_t mon;
uint16_t day;
uint16_t hour;
uint16_t min;
uint16_t sec;
};
User Manual

Advertisement

Table of Contents
loading

Table of Contents