完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我已经启用了BM78中的流量控制,但似乎不起作用。当流量控制被禁用时,RTS引脚总是高的。当它被启用(通过使用UI工具和重新编程EEPROM)时,RTS引脚高,当模块没有连接,然后低到连接时。然而,即使在高速发送数据到模块中,它仍然保持低电平。到达的数据大多是OK,但有时会损坏。在到达的数据中,重复出现的多达12个字节的相同序列。我已经检查了与PC连接到RXD引脚,数据进入BM78是正确的。我在460 kbAd发送一个270字节的块,然后在几个地方出现错误。在屏幕截图中,我重复了很多次,每个块之间有一个短暂的暂停。我还测试了流量控制禁用和逆CTS感在我的MCU。这产生了相同类型的错误。我已经请求支持,但是还没有任何答案。我只是对手动模式有了一个想法。将数据作为命令发送并等待确认可能会更好。在这种情况下,缓冲区可能不会溢出。有人知道缓冲区的大小吗?库尔特M
以上来自于百度翻译 以下为原文 I have enabled flow control in the BM78, but it doesn't seem to work. When flow control is disabled, RTS pin is always high. When it is enabled (by using UI tool and reprogramming EEPROM), RTS pin is high when module is not connected and then goes low when connected. However, it stays low even if send data at high speed into the module. The data that arrives is mostly OK, but sometimes corrupted. In the arriving data there are identical sequences of up to 12 bytes that occurs repeatedly. I have checked simultaneously with a PC connected to RXD pin that data entering BM78 is correct. I am sending a block of 270 bytes at 460 kbaud, and then the errors occurs at several places. In the screenshots, I have repeated this a number of times with a short pause between each block. I did also test with flow control disabled and inverse CTS sense on my MCU. This produced the same type of errors. I have asked support about this, but has not got any answers yet. I just had an idea about the manual pattern. It might work better to send data as a command and wait for acknowledgement. In that case, the buffer might not overflow. Is there anybody that has an idea about buffer size? Kurt M. Attached Image(s) |
|
相关推荐
1个回答
|
|
我的问题似乎是在我的MCU中使用的分数波特率分频器。当我跳过这一点时,一切似乎都与BM78一起工作。从我的微控制器与分数波特率分配器的传输数据看起来是好的范围。几乎没有一个完整的字符抖动,可能是1/10位的时间为个别位转换。我怀疑BM78内部的UART在某种程度上是敏感的。流量控制工作,RTS很高,但BM78似乎有一个相当大的缓冲区,应该首先填补。
以上来自于百度翻译 以下为原文 My problems seems to be the fractional baud rate divider that I am using in my MCU. When I skip that, everything seems to work with the BM78. The transmitted data from my MCU with fractional baud rate divider enabled looked OK on scope. Almost no jitter for a complete character, maybe 1/10 of a bit time for individual bit transitions. I suspect that the UART inside the BM78 is sensitive in some way. Flow control works, RTS goes high, but the BM78 seems to have a rather large buffer that should be filled first. |
|
|
|
只有小组成员才能发言,加入小组>>
5132 浏览 9 评论
1985 浏览 8 评论
1914 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3153 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2213 浏览 5 评论
702浏览 1评论
593浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
476浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
608浏览 0评论
499浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-5 09:44 , Processed in 1.557024 second(s), Total 46, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号