首页> 外国专利> RS485 COMMUNICATION SYSTEM AND METHOD CAPABLE OF AVOIDING CONFLICT BETWEEN MASTER DEVICE AND SLAVE DEVICE

RS485 COMMUNICATION SYSTEM AND METHOD CAPABLE OF AVOIDING CONFLICT BETWEEN MASTER DEVICE AND SLAVE DEVICE

机译:避免主设备和从设备之间冲突的RS485通信系统和方法

摘要

Disclosed in the present invention are an RS485 communication system and method capable of avoiding a conflict between a master device and a slave device, relating to the field of RS485 communication. Said method comprises the following steps: when detecting that a slave device is powered on, a master device packing, within its own time slot, the current time of the master device and a timestamp into time synchronization data and sending same to the powered-on slave device; after receiving the time synchronization data sent by the master device, the slave device performing packing and updating its own time and the timestamp according to the time synchronization data after the packing, until the synchronization is successful; the slave device sending within its own time slot response data, indicating the synchronization is successful, to the master device; after receiving the response data sent by the slave device, the master device performing packing, and confirming, according to the response data after the packing, that the time synchronization of the master device and slave device has been successful; and the master device and slave device sending data within their own idle time slots, avoiding conflicts. The present invention can allow the master device and the slave device to send data within their own time slots, effectively improving the real-time performance and reliability of the device.
机译:本发明公开了一种能够避免主设备与从设备之间发生冲突的RS485通信系统和方法,涉及RS485通信领域。所述方法包括以下步骤:当检测到从设备上电时,主设备在其自身的时隙内将主设备的当前时间和时间戳打包为时间同步数据,并发送给上电。从设备;从设备接收到主设备发送的时间同步数据后,根据打包后的时间同步数据进行打包并更新自己的时间和时间戳,直到同步成功为止。从设备在自己的时隙内向主设备发送指示同步成功的响应数据;主设备接收到从设备发送的响应数据后,进行打包,并根据打包后的响应数据确认主设备和从设备的时间同步成功;主设备和从设备在自己的空闲时隙内发送数据,避免冲突。本发明可以允许主设备和从设备在它们自己的时隙内发送数据,从而有效地提高了设备​​的实时性能和可靠性。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号