• 中文核心期刊
  • 中国科技核心期刊
  • RCCSE中国核心学术期刊

基于群呼和队列应答策略提高RS485总线通信效率

柏思忠

柏思忠. 基于群呼和队列应答策略提高RS485总线通信效率[J]. 煤矿安全, 2022, 53(6): 126-130.
引用本文: 柏思忠. 基于群呼和队列应答策略提高RS485总线通信效率[J]. 煤矿安全, 2022, 53(6): 126-130.
BAI Sizhong. Improving communication efficiency of RS485 bus based on group call and queue response strategy[J]. Safety in Coal Mines, 2022, 53(6): 126-130.
Citation: BAI Sizhong. Improving communication efficiency of RS485 bus based on group call and queue response strategy[J]. Safety in Coal Mines, 2022, 53(6): 126-130.

基于群呼和队列应答策略提高RS485总线通信效率

Improving communication efficiency of RS485 bus based on group call and queue response strategy

  • 摘要: 针对提高RS485总线通信效率的问题,分析了提高波特率、控制收发控时序、多主通信和软件改善通信策略4方面措施的优劣势,提出了一种RS485总线通信群呼和队列应答策略;该策略是一种总线通信软件策略,不改变任何硬件,利用群呼和顺序应答减少主机呼叫次数,设置优先队列减少从机响应时间,利用简化编码减少信息无变化的数据帧长度进一步缩短轮询周期,大幅度提高通信效率。通过分站和传感器之间RS485通信试验,和传统方式相比大大缩短轮询周期和传感器传递紧急信息时的响应时间。
    Abstract: Aiming at the problem of improving the communication efficiency of RS485 bus, this paper analyzes the advantages and disadvantages of four measures: increasing baud rate, controlling transceiver control timing, multi-master communication and software improvement communication strategy, and proposes a strategy of group call and queue response for RS485 bus communication. This strategy is a bus communication software strategy, which does not change any hardware, uses group call and sequential response to reduce the number of host calls, sets priority queue to reduce the slave response time, uses simplified coding to reduce the data frame length without changing information, further shortens the polling cycle and greatly improves the communication efficiency. Through the RS485 communication test between substation and sensors, compared with the traditional method, the polling cycle and the response time of sensor transmitting emergency information are greatly shortened.
  • [1] 彭韬,刘根利,杨宝军,等.RS485通信最优波特率研究[J].无线互联科技,2020(3):1-2.

    PENG Tao, LIU Genli, YANG Baojun, et al. Research on optimal baud rate of RS485 communication[J]. Wireless Internet Technology, 2020(3): 1-2.

    [2] 卢超.基于RS485总线网络的高速数字采编系统设计与实验[D].太原:中北大学,2019:14.

    LU Chao. Design and experiment of high-speed digital acquisition and editing system based on RS485 bus network[D]. Taiyuan: North University of China, 2019: 14.

    [3] 陈航,严帅,刘胜,等.基于RS485总线的分布式高精度数据采集系统[J].仪表技术与传感器,2021(2):71-74.

    CHEN Hang, YAN Shuai, LIU Sheng, et al. Distributed high-precision data acquisition system based on RS485 bus[J]. Instrument Technique and Sensor, 2021(2): 71-74.

    [4] 景程,赵国军.非确定时序的多设备异波特率串行通信的研究[J].计算机应用与软件,2016,33(2):115.

    JING Cheng, ZHAO Guojun. Research on multi-device serial communication in different baud rates with non-deterministic time sequence[J]. Computer Applications and Software, 2016, 33(2): 115.

    [5] 范洁,熊政,王黎明,等.RS485通信及相位差结合的电能表相位识别方法[J].电子设计工程,2019,27(19):69-72.

    FAN Jie, XIONG Zheng, WANG Liming, et al. Phase recognition of watt-hour meter based on RS485 communication and phase difference[J]. Electronic Design Engineering, 2019, 27(19): 69-72.

    [6] 刘希高,刘志民,吕一鸣,等.基于磁隔离技术的RS485隔离中继器的研制[J].仪表技术与传感器,2016(6):48-51.

    LIU Xigao, LIU Zhimin, LYU Yiming, et al. Development of RS485 isolation repeaters based on magnetic coupling isolation technology[J]. Instrument Technique and Sensor, 2016(6): 48-51.

    [7] 郭佳欣,单彦虎,任勇峰,等.一种提高RS422/RS485可靠性通信方法的研究[J].科学技术与工程,2017, 19(9):206-213.

    GUO Jiaxin, SHAN Yanhu, REN Yongfeng, et al. A Study on improving RS422/RS485 reliability communication method[J]. Science Technology and Engineering, 2017, 19(9): 206-213.

    [8] 邓昊,冯兴乐,俞东松.RS485自适应数据结构的时序控制设计[J].单片机与嵌入式系统应用,2019(6):49-53.

    DENG Hao, FENG Xingle, YU Dongsong. Design of RS485 direction control based on adaptive data structure[J]. Microcontrollers & Embedded Systems, 2019(6): 49-53.

    [9] 闻海忠.RS485自动换向控制的三种常用方法[J].今日电子,2018(8):57-59.

    WEN Haizhong. Three common methods of RS485 automatic commutation control[J]. Electronic Products, 2018(8): 57-59.

    [10] 胡明飞,杨艳,漆静群,等.基于RS485的多主机通信协议的设计[J].自动化与仪表,2015(7):22-24.

    HU Mingfei, YANG Yan, QI Jingqun, et al. Design of multi-master communication protocol based on RS485[J]. Automation & Instrumentation, 2015(7): 22-24.

    [11] 李周利,骆丹妮,赵学敏.具有仲裁机制的RS485总线设计[J].现代电子技术,2017,40(16):177-179.

    LI Zhouli, LUO Danni, ZHAO Xuemin. Design of RS485 bus with arbitration mechanism[J]. Modern Electronics Technique, 2017, 40(16): 177-179.

    [12] 于鑫,马强,朱亮.一种实现多主机协商控制RS485从机设备的方法[J].电子质量,2021(1):106-111.

    YU Xin, MA Qiang, ZHU Liang. Method for realizing multi-host negotiation to control RS485 slave equipment[J]. Electronics Quality, 2021(1): 106-111.

    [13] 韩路平,骆丹妮.RS485工业控制网络的设计[J].工业控制计算机,2017,30(11):32-33.
    [14] 陈品富,刘以军,宋春晖,等.采用自适应召唤策略提高RS485总线上的数据传输效率[J].电力系统保护与控制,2011,39(14):133-137.

    CHEN Pinfu, LIU Yijun, SONG Chunhui, et al. Improving the efficiency of data transmission on RS485 bus by adaptive call method[J]. Power System Protection and Control, 2011, 39(14): 133-137.

    [15] 刘喜增,金湘亮.RS485总线信号反射分析及传感器采集系统设计[J].仪表技术与传感器,2017(5):53.

    LIU Xizeng, JIN Xiangliang. RS485 bus signal reflection analysis and sensor capture system design[J]. Instrument Technique and Sensor, 2017(5): 53.

    [16] 赵亮,张吉礼.提高RS485总线通信可靠性的优化设计方法[J].大连理工大学学报,2015,55(4):393.

    ZHAO Liang, ZHANG Jili. Optimized design method for enhancing reliable communication of RS485 fieldbus[J]. Journal of Dalian University of Technology, 2015, 55(4): 393.

  • 期刊类型引用(3)

    1. 张琨,张忍杰,任建喜,刘政,宋嘉炜. 冲击荷载作用下煤岩力学特性研究及能量演化特征. 煤炭技术. 2024(02): 1-5 . 百度学术
    2. 任智敏,吕梦蛟,王神虎,王禹,张广太. 大断面六边形巷道周边应力分布及其支架设计. 采矿与岩层控制工程学报. 2023(06): 28-42 . 百度学术
    3. 赵凌云,魏元龙,刘伟,张雄. 汪家寨煤岩各向异性的力学特性研究. 地下空间与工程学报. 2022(S2): 603-610 . 百度学术

    其他类型引用(5)

计量
  • 文章访问数:  71
  • HTML全文浏览量:  0
  • PDF下载量:  7
  • 被引次数: 8
出版历程
  • 发布日期:  2022-06-19

目录

    /

    返回文章
    返回