Address allocation method, apparatus, device, and storage medium
CN116708377BActive Publication Date: 2026-08-28GUANGDONG PHNIX ECO ENERGY SOLUTION +1
Patent Information
- Application Number
- CN202310555002.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2043-05-16
AI Technical Summary
Technical Problem
[0004]本申请提供一种地址分配方法,能够通过重发机制保证数据的稳定传输,从而解决了从机地址分配失败的问题
Benefits of technology
[0051]基于本申请提供的方法,主机节点发送广播地址设置指令,从机结点响应指令将自身通信地址设置为预设值,主机节点向每个从机节点发送第一常规指令,从机节点响应指令延迟随机数时间返回自身的CPUID操作码,若主机节点未接收到CPUID操作码,则重复预置次数发送第一常规指令,主机节点接收CPUID操作码并向从机发送第二常规指令,若主机节点未接收到从机节点对于第二常规指令的响应,则重复预置次数发送第二常规指令,从机节点接收指令修改自身的通信地址编号,通过在地址分配过程中添加重发机制,从而降低主机在与从机通信过程中指令传输失败的概率,进而增强从机地址分配的可靠性。
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN116708377B_ABST
Abstract
The application relates to the communication technical field, discloses a kind of address allocation method, device, equipment and storage medium.The method comprises: host node sends broadcast address setting instruction, slave node responds instruction and sets its own communication address to preset value;Host node sends first normal instruction to each slave node;Slave node responds instruction, and CPUID operation code of its own is returned with delay random number time;If host node does not receive CPUID operation code, resend first normal instruction for preset number of times;Host node receives CPUID operation code and sends second normal instruction to slave;If host node does not receive the response of slave node to second normal instruction, repeat preset number of times to send second normal instruction;Slave node receives instruction and modifies the communication address number of itself, and the application adds resend mechanism in the process of allocating address for slave, to reduce the probability of instruction transmission failure in the communication process between host and slave, to enhance the reliability of slave address allocation.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Patent Citations
Automatic bus address configuration method and system for realizing method
CN110688336A
Method and system for locally realizing automatic address allocation of RS485 slave equipment
CN111147619A