样例数据包:
5b0000005a020000006912000000000b1000000000000000b8d3423633323635000000000000000000000000000212020000002400070c07e20e223806d7dc4d0185820f005200000079a079015006c2000c000300000000bcfd5d
- 参考表2解析数据包(5b0000005a020000006912000000000b1000000000000000b8d3423633323635000000000000000000000000000212020000002400070c07e20e223806d7dc4d0185820f005200000079a079015006c2000c000300000000bcfd5d)
5b —> 头标识
00 00 00 5a 02 —> 转义为 00 00 00 5a —>数据长度 (Unit32_t) -> 90(0x5a)
00 00 00 69 -> 报文序列号 a(Unit32_t) —> 105(0x69)
12 00 —> 业务数据类型(Unit16_t) —> 0x1200
00 00 00 0b —> 下级平台接入码 —> 11(0x0b)
10 00 00 —> 协议版本号(3个字节) —> v16.0.0
00 —> 报文加密标识位 —> 不加密
00 00 00 00 —> 数据加密密钥(Unit32_t)
b8d3423633323635000000000000000000000000000212020000002400070c07e20e223806d7dc4d0185820f005200000079a079015006c2000c00030