串口通信协议解析
我需要解析一个设备的串口通信数据,下面是其中的5条:
02 40 20 20 20 20 4c 43 50 43 03 5c
02 40 43 48 49 4e 30 30 30 30 32 30 03 4e
02 40 43 48 49 4e 30 30 30 30 30 30 30 30 03 4c
02 40 43 48 49 4e 30 30 30 30 30 30 31 31 03 4c
02 40 43 48 49 4e 30 30 30 30 35 30 03 49
第一个字节的02是起始标志,倒数第二个字节的03是结束标志,中间的是数据内容,我现在需要知道的是最后一个字节的内容是怎么得来的。
在文档中有这么一段描述:
For all the connection kinds a master protocol derived from IBM 2848 is used for the data link level between the two units.
The 2848 belongs to the poll/sel protocols family where one unit is master and the other slave. Besides, this protocol has the following features:
• messages characters in the 32 126 range
• half duplex
• transparent error recovery
• flow control
上文讲的这个IBM 2848应该就是这个通信协议的出处,有没有大神知道呢。希望各位不吝赐教,谢谢!