OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4882|回复: 0

请教高手串口通讯校验码的问题

[复制链接]

1

主题

2

帖子

0

精华

新手上路

积分
41
金钱
41
注册时间
2020-12-14
在线时间
13 小时
发表于 2021-2-26 18:21:31 | 显示全部楼层 |阅读模式
手机APP 数据
7E 06 10 7B 3F
7E 06 14 3B 1A 0D
7E 06 0A C8 E5 0D
7E 06 10 7B 3F
7E 06 0A C8 E5 0D
7E 06 10 7B 3F
单片机数据
7E 08 50 01 01 2A 33 0D
7E 0A 54 00 00 02 08 4B 3F
7E 3B 4A 00 00 07 35 00 00 8E AC 00 00 00 00 00 00 01 5F 00 00 6F 3F 00 03 23 00 00 C5 89 00 00 00 3F 01 9F 60 00 00 58 00 00 00 02 44 00 00 02 09 00 00 00 00 00 45 27 0D
7E 08 50 01 01 2A 33 0D
7E 3B 4A 00 00 07 35 00 00 8E AC 00 00 00 00 00 00 01 5F 00 00 6F 3F 00 03 23 00 00 C5 89 00 00 00 3F 01 9F 60 00 00 58 00 00 00 02 44 00 00 02 09 00 00 00 00 00 45 27 0D
7E 08 50 01 01 2A 33 0D
7E 39 4B 00 00 14 3F 00 00 64 00 00 00 64 00 00 14 3F 00 00 64 00 00 00 64 00 00 03 3F 00 03 3F 00 03 3F 00 00 32 00 00 00 32 00 00 0E 10 00 01 00 55 3F
7E 3B 4A 00 00 07 35 00 00 8E AC 00 00 00 00 00 00 01 5F 00 00 6F 3F 00 03 23 00 00 C5 89 00 00 00 3F 01 9F 60 00 00 58 00 00 00 02 44 00 00 02 09 00 00 00 00 00 45 27 0D
7E 39 4B 00 00 14 3F 00 00 64 00 00 00 64 00 00 14 3F 00 00 64 00 00 00 64 00 00 03 3F 00 03 3F 00 03 3F 00 00 32 00 00 00 32 00 00 0E 10 00 01 00 55 3F
7E 08 50 01 01 2A 33 0D
手机APP第二次修改参数后的数据
7E 06 0A C8 E5 0D
7E 06 10 7B 3F
7E 06 0A C8 E5 0D
7E 06 10 7B 3F
7E 06 0B D8 C4 0D//这个数据有变化
7E 06 0A C8 E5 0D
7E 06 0B D8 C4 0D
7E 06 10 7B 3F
7E 06 0A C8 E5 0D
7E 06 14 3B 1A 0D
7E 06 0B D8 C4 0D
7E 06 0A C8 E5 0D
7E 06 10 7B 3F
7E 06 0A C8 E5 0D
单片机数据
7E 39 4B 00 00 2A 3F 00 00 64 00 00 00 64 00 00 14 3F 00 00 64 00 00 00 64 00 00 08 66 00 00 03 3F 00 03 3F 00 00 32 00 00 00 32 00 00 0E 10 00 01 00 39 45 0D
7E 08 50 01 01 2A 33 0D
7E 3B 4A 00 00 07 35 00 00 7F 3F 00 00 00 00 00 01 3B 00 00 64 33 00 00 03 23 00 01 91 D4 00 00 00 3F 01 3F 00 00 60 00 00 00 02 25 00 00 02 08 00 00 00 00 00 30 74 0D
7E 0A 54 00 00 02 08 4B 3F
7E 39 4B 00 00 2A 3F 00 00 64 00 00 00 64 00 00 14 3F 00 00 64 00 00 00 64 00 00 08 66 00 00 03 3F 00 03 3F 00 00 32 00 00 00 32 00 00 0E 10 00 01 00 39 45 0D
7E 3B 4A 00 00 07 35 00 00 7F 3F 00 00 00 00 00 01 3B 00 00 64 33 00 00 03 23 00 01 91 D4 00 00 00 3F 01 3F 00 00 60 00 00 00 02 25 00 00 02 08 00 00 00 00 00 30 74 0D
7E 08 50 01 01 2A 33 0D
7E 3B 4A 00 00 07 35 00 00 7F 3F 00 00 00 00 00 01 3B 00 00 64 33 00 00 03 23 00 01 91 D4 00 00 00 3F 01 3F 00 00 60 00 00 00 02 25 00 00 02 08 00 00 00 00 00 30 74 0D
7E 08 50 01 01 2A 33 0D
7E 39 4B 00 00 2A 3F 00 00 64 00 00 00 64 00 00 14 3F 00 00 64 00 00 00 64 00 00 08 66 00 00 03 3F 00 03 3F 00 00 32 00 00 00 32 00 00 0E 10 00 01 00 39 45 0D
7E 3B 4A 00 00 07 35 00 00 83 80 00 00 00 00 00 00 01 44 00 00 67 1F 00 00 03 23 00 01 91 D4 00 00 00 3F 01 3F 00 00 60 00 00 00 02 35 00 00 02 08 00 00 00 00 00 2A 3F
7E 39 4B 00 00 2A 3F 00 00 64 00 00 00 64 00 00 14 3F 00 00 64 00 00 00 64 00 00 08 66 00 00 03 3F 00 03 3F 00 00 32 00 00 00 32 00 00 0E 10 00 01 00 39 45 0D
7E 08 50 01 01 2A 33 0D
请教高手这个是那种校验方式
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-25 11:23

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表