摘要
针对标准Modbus协议发送信息前需要知道对方地址,提出一种改进方案,设计出能自主寻址的类Modbus协议。该方案在主节点中设置子地址表,并且定时更新表信息,使主节点能够及时知晓新子节点的加入和旧子节点的断开等信息。为了降低寻址时系统的负载量和数据的冲突概率,采用时间槽的机制发送信息,并根据数据量确定时间槽。采用带ACK的CS-MA/CA机制报告子节点的存在,并对相关的请求/应答帧进行了设计。
For the standard Modbus protocol need to know each other' s address before sending information, given an improved program, let the master node can find the address itself. The program set sub-address table in the master node and time updated address table information, so that the master node knew the new children nodes joined, the children nodes disconnected and other information in time. Used the time slot mechanism to send information to guarantee the minimal opportunity of confliction of the transmitting data, and chose the time slot based on the amount of data. Used CSMA/CA with the ACK mechanism to reported the existence of children nodes, and designed the request /response frame.
出处
《科学技术与工程》
北大核心
2012年第6期1412-1415,共4页
Science Technology and Engineering