-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V0038版LOD串口1输出异常 #18
Comments
波形图看每个数据字节都是完整的吗?不是的话贴一下图。 |
有可复现的代码吗?这里测一下 |
这段代码是我们产品的一部分,不太好拆出来,复现概率比较大,开机前几包数据都没什么问题。我们的串口初始化为9600, 8, N, 1,使能了P0_5作为485OE使能信号,有效电平为1,启用了发送完成callback和接收数据callback,在收到AT指令处理回复、modbus报文收发中都出现了这个现象,甚至有连续12包modbus报文都被截断导致读取失败。 |
有没有调用过rtos.sleep? |
没有 |
没有复现方法,这个比较难分析 |
你好,经过测试,我们整理了可以复现该现象的代码。 |
485? DTU固件? |
不是DTU固件,可以复现问题的脚本我附在附件里了,同样的代码在air720上可以正常运行,air202上输出会被截断 |
更新V0038版内核后串口1输出不正常,从示波器上看,数据输出过程中会被打断,一包10字节的数据输出会被拆成3~4段,造成输出数据错误
The text was updated successfully, but these errors were encountered: