摘要
RS485是一种常规的通信总线,多设备通信一般采用主从式通信。但具体应用时,有些从设备对主设备询问的应答时间不确定,且应答时间无法更改。为此选取了一个主设备和三个从设备组成的模型进行研究,其中三个从设备分别具有不同的特性:能定时应答主设备询问和固定波特率的从设备,能定时应答主设备询问和波特率可设的从设备,以及非确定时间应答主设备询问和波特率可设的从设备。在此基础上提出三种通用的非确定时序的主从式多设备通信协议,并搭建平台进行了测试。结果显示传统的轮询通信协议在现场应用时难以满足实时性要求高的场合,采用插值异波特率通信协议能提高非确定时序的主从式多设备通信的效率,而且避免某些从设备误收数据,同时该通信协议可以适用于其他本身不能自动仲裁的现场总线通信。
RS485 is a conventional communication bus, the multi-device communications generally use master-slave communication. But in specific applications, there are some slave equipments whose response time to master equipments' inquiries are uncertain, and their response time cannot be changed. Therefore, the paper selects a model which consists of one master equipment and three slave equipments for studying, in it three slave equipments have different features respectively: the one makes timing response to master equipment' s inquiry and has fixed baud rate, the other makes timing response to master equipment' s inquiry but its baud rate can be set, and another one responds to master equipment' s inquiry in non-deterministic timing and its baud rate can be set as well. Based on this model we propose three common non-deterministic timing master-slave multi-device communication protocols, and build a platform to test them. Result shows that the traditional polling communication protocol is difficult to satisfy the occasions with high real-time performance demand when on-site applying, and 'to use interpolation different baud rate communication protocol can improve the efficiency of master-slave multi-device communication with non-deterministic timing, and prevents some of slave equipments from mistakenly receiving data, meanwhile the protocol can be applied to other field bus communication which cannot automatically arbitrating by themselves.
出处
《计算机应用与软件》
CSCD
2016年第2期115-117,202,共4页
Computer Applications and Software