首页 新闻 会员 周边 捐助

从串口中取的数据,如果解析?

0
悬赏园豆:10 [已解决问题] 解决于 2022-12-28 16:18

COM1: 打开
COM1 Write(hex): 8(Bytes)01 03 08 93 00 08 B6 41
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 D1 00 08 16 55
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 D2 00 08 E6 55
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 D3 00 08 B7 95
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 D4 00 08 06 54
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 D5 00 08 57 94
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 D6 00 08 A7 94
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 91 00 08 17 81
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1 Write(hex): 8(Bytes)01 03 08 92 00 08 E7 81
COM1 Read(hex): 21(Bytes) 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
COM1: 关闭

问题补充:

HEX格式怎么转成十进制的格式?

EastFuture的主页 EastFuture | 初学一级 | 园豆:182
提问于:2016-03-21 13:08
< >
分享
最佳答案
0

这个我觉得应该参考链接COM口设备的说明书

16->10 http://q.cnblogs.com/q/36034/

收获园豆:10
会长 | 专家六级 |园豆:12463 | 2016-03-23 11:57
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册