摘要
针对常规串行通信处理方法无法满足有序用电测控系统对数据传输快速性和高效性要求的问题,提出了一种基于状态诊断的串行通信轮询处理方法。主设备在每个轮询周期中向每个从设备只发送一次查询命令,再依据多个轮询周期的轮询结果判断每个从设备的通信状态,然后根据待轮询从设备的通信状态执行不同的通信处理操作。测试结果证明,在保证通信可靠性的情况下,该方法缩短了轮询周期,避免了对通信故障从设备的无效通信,提高了数据传输的快速性和高效性。
To solve the problem that traditional serial bus communication can not meet the requirements of quickness and high efficiency of data transmission in ordered power measurement and control system, a method of serial communication polling processing based on state diagnosis is presented. Master device polls each slave device only once in every polling cycle. According to several acknowledgments from each slave device, master device determines its communication state and then gives different operations. The test result shows that the method decreases the invalid query to s/ave devices in communication failures and reduces the polling cycles as well as improves quickness and high efficiency of data transmission under the condition of guaranteeing com- munication reliability.
作者
朱敏
盛晓燕
陆苏月
ZHU Min;SHENG Xiao-yan;LU Su-yue(School of Electrical Engineering and Automation, Hefei University of Technology, Hefei 230009, Chin)
出处
《测控技术》
CSCD
2017年第11期119-123,共5页
Measurement & Control Technology
关键词
串行通信
有序用电
状态诊断
实时性
可靠性
serial communication
ordered power utilization
state diagnosis
real-time
reliability