摘要
在RS485总线中,主机和从机通常使用固定的波特率进行通信;而在实际应用中,波特率的大小和传输的距离是成反比的,波特率越高传输的距离越短,误码率增加越大。为避免波特率过高通信不可靠的问题,根据硬件波特率自适应的机制,文章采用从机数量来计算最优的波特率的方式进行主从机通信。经过实验验证,可提高RS485通信系统的稳定性。
In the RS485 bus, the communication between the master and the slave usually uses a fixed baud rate for communication. In actual applications, the size of the baud rate is inversely proportional to the transmission distance. The higher the baud rate, the higher the transmission rate. The shorter the distance and the bit error rate will increase, in order to avoid the problem that the baud rate is too high and the communication is unreliable, according to the hardware adaptive baud rate mechanism, the master baud rate is calculated based on the number of slaves. After experimental verification, this solution can improve the stability of RS485 communication system.
作者
彭韬
刘根利
杨宝军
翟渊
Peng Tao;Liu Genli;Yang Baojun;Zhai Yuan(School of Intelligent Technology and Engineering,Chongqing University of Science&Technology,Chongqing 401331,China)
出处
《无线互联科技》
2020年第3期1-2,共2页
Wireless Internet Technology
基金
重庆市技术创新与应用发展项目(产业类重点研发),项目编号:cstc2018jszx-cyzdX0112
重庆市技术创新与应用示范项目(产业类重点研发),项目编号:cstc2018jszx-cyzdX0188。