串口通信协议解析

zh199225 2019-02-15 07:03:06
我需要解析一个设备的串口通信数据,下面是其中的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应该就是这个通信协议的出处,有没有大神知道呢。希望各位不吝赐教,谢谢!


...全文
519 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zh199225 2019-02-15
  • 打赏
  • 举报
回复
我已经找到算法了,是异或校验得到的校验码。

1,737

社区成员

发帖
与我相关
我的任务
社区描述
网络协议与配置相关内容讨论专区
网络协议网络安全tcp/ip 技术论坛(原bbs)
社区管理员
  • 网络协议与配置社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧