数据格式
Estimated reading time: 1 minute
消息数据格式是24字节固定大小的数据,包括头、命令、参数和脚。
Byte Offset | Type | Byte Length | Value |
---|---|---|---|
0-1 | Header | 2 | Byte[0] 0x2A [*]: (fixed value) Byte[1] 0x53 [S]: (fixed value) |
2 | Message Type | 1 | 0x43 [C]: Control 0x45 [E]: Enquiry 0x41 [A]: Answer 0x4E [N]: Notify |
3-6 | Command | 4 | |
7-22 | Parameters | 16 | |
23 | Footer | 1 | 0x0A [LF]: (fixed value) |
开头
每个消息都有固定的开头(0x2A 0x53),它标识消息的开头。
消息类型
有4种消息类型。
Message Type | Value | Message Direction | Description |
---|---|---|---|
Control | 0x43 [C] | Client to Display | Used to control or change values on the Display Answer message is used to reply |
Enquiry | 0x45 [E] | Client to Display | Used to control or change values on the Display Answer message is used to reply |
Answer | 0x41 [A] | Display to Client | Used to send a reply back to the client from the Display |
Notify | 0x4E [N] | Display to Client | Used to send an event to the client from the Display |
命令和参数
每个命令由4 - cc格式的4个ASCII字符标识,并具有参数。 命令和参数的详细信息请参阅 Simpe IP control Commands.
页脚
每个消息都有固定的页脚(0x0A),它标识消息的结尾。
Last modified: 15 Feb 2019