我的LD2450运行在esp32的板子上,uart的波特率已经设置为256000,程序可以收到数据,但是接收的内容跟文档不符合,这是什么原因 。
这是256000波特率的返回。
b'xaaxffx03x00Yx80x06x81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00ax80x08x81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00jx80tx81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00rx80x0bx81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00zx80x0cx81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00x81x80rx81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00x89x80x0ex81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00x90x80x0fx81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00x96x80x11x81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00x9dx80x12x81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00xa3x80x13x81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxccxaaxffx03x00xa9x80x14x81x00x00hx01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00Uxcc'
后来我改了波特率为 9600返回值为
b'x83x83x83x83x83x83x83x83x81x81x81x81'
不知道什么原因没有返回55cc结尾的正常返回。