WCH沁恒单片机
直播中

王玲

7年用户 1448经验值
私信 关注
[问答]

ch582m OTA蓝牙传输数据异常怎么解决?

uint8_tbuf1[IAP_LEN-4]={

0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

// 0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x23,0x80,0x07,0x04,//这一串数据加进去就不行

0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x23,0x00,0x00,0x00,//这一串把0x23改成0x00数据就OK

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x27,0x00,0x40,0x85,0x46,0xa3,0x03,0xd7,0x80,0x23,0x80,0x07,0x04,0x82,0x80,0x13,0x76,0x05,0x04,0x25,0xca,0x03,0xc6,0xa7,0x00

,0x41,0x8a,0x1d,0xe2,0x23,0x80,0xd7,0x04,0x23,0x80,0xe7,0x04,0x01,0x00,0x01,0x00,0x03,0xc7,0xa7,0x00,0x13,0x67,0x07,0x01,0x23,0x85};



回帖(2)

张厉界

2022-8-19 09:50:55
嗯,ld文件是错了

按照这个吧ld文件改了,再试试。
举报

宋阳

2022-8-19 09:51:03
把主机的数据长度改为84就不会出问题了,具体原因还是不是很清楚。长度改200  自己随便丢一串字符串是不会出现通讯失败,但是遇到这个固件特殊字符串就会挂。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分