Automatic addressing circuit, automatic addressing system and automatic addressing method

By designing automatic addressing circuits and systems in automotive and industrial networks, using resistor voltage dividing networks and switch control units to realize automatic address configuration of nodes solves the problems of sensor identification errors and insufficient communication rate, and improves the scalability of the system. and reliability, suitable for a variety of network environments.

CN118748671APending Publication Date: 2024-10-08盈智热管理科技(嘉兴)有限公司
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411024232.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In existing automotive and industrial networks, sensors or actuators are prone to errors when identifying their installation locations, and the communication rate of the LIN communication network is not enough to meet high-speed real-time requirements and lacks automatic addressing function.

Method used

An automatic addressing circuit and system is designed, including a main control unit, a resistor voltage dividing network and a switch control unit. It realizes automatic address configuration of nodes through voltage signals and is suitable for networks such as LIN, CAN, flexray and Ethernet.

Benefits of technology

It improves the scalability of the system, reduces maintenance costs, enhances system reliability, supports multiple communication environments, and improves resource utilization and efficiency through circuit reuse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748671A_ABST
    Figure CN118748671A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic addressing circuit, an automatic addressing system and an automatic addressing method, the circuit comprises a main control unit, a resistance voltage dividing network and a switch control unit, the resistance voltage dividing network and the switch control unit are respectively connected with the main control unit, and the resistance voltage dividing network is used for generating voltage signals of different levels at different nodes; the main control unit is used for receiving addressing requests sent by the master / slave nodes and executing an automatic addressing function mode, the automatic addressing function mode is that different voltage signals are provided for each node through a circuit network, and each node judges a target address of the node in the system according to the received voltage signals and configures the target address; and the switch control unit is used for controlling and executing corresponding switch instructions in a preset operation mode to adapt to voltage signals of different levels and ensure stable operation of the main control unit, is suitable for various circuits without communication, LIN communication, CAN communication, flexray Ethernet and the like, and can realize automatic addressing and improve the efficiency of automatic addressing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial automation, and in particular to an automatic addressing circuit, an automatic addressing system and an addressing method thereof. Background Art

[0002] In automobiles and industrial applications, there are often multiple sensors or actuators in the same local area network. The corresponding hardware can be exactly the same. In order to distinguish their installation locations and better identify and confirm them, it is necessary to assign different addresses to each sensor or controller. It is very easy to make mistakes during production and use. In this way, in the process of production, transportation and storage, the address is easy to be identified incorrectly.

[0003] Currently, LIN communication network can realize automatic addressing, while CAN, flexray, and Ethernet networks do not have automatic addressing function. The maximum communication rate of LIN is only 20kb. Because of its slow communication rate and limited data capacity, it is far from meeting the requirements of existing automobiles for high-speed real-time performance.

[0004] In view of this, it is necessary for the present invention to provide an automatic addressing method. Summary of the invention

[0005] The purpose of the present invention is to provide an automatic addressing circuit, an automatic addressing system and an addressing method thereof, which are applicable to various circuits such as no communication, LIN communication, CAN communication, flexray Ethernet, etc.

[0006] The present invention provides an automatic addressing circuit, comprising a main control unit and a resistor voltage dividing network and a switch control unit respectively connected to the main control unit.

[0007] The resistor voltage divider network is used to generate voltage signals of different levels at different nodes;

[0008] The main control unit is used to receive an addressing request from a master / slave node and execute an automatic addressing function mode, wherein the automatic addressing mode provides different voltage signals to each node through a circuit network, and each node determines the target address of the node in the system and configures it according to the received voltage signal;

[0009] The switch control unit is used to control and execute corresponding switch instructions under a preset operation mode to adapt to voltage signals of different levels to ensure stable operation of the main control unit.

[0010] Preferably, the resistor divider network adopts a binary circuit, which includes a first resistor, a second resistor and a third resistor, one end of the first resistor is connected to the input IN terminal, the other end of the first resistor is connected to the output voltage OUT, and one end of the first resistor is connected to one end of the second resistor, the other end of the second resistor is connected to one end of the third resistor, and the other end of the third resistor is grounded, wherein the input IN terminal of each node is connected to a different point of the resistor divider network, and a unique voltage value can be provided for each node, so that each node can determine its own address according to the voltage value of its access point.

[0011] Preferably, the switch control unit includes a bypass switch and a level conversion circuit, the bypass switch is electrically connected to the level conversion circuit, wherein the bypass switch and the level conversion circuit are bipolar transistors, relays or controllable switch circuits.

[0012] The present invention also provides an automatic addressing system, including an automatic addressing module composed of a plurality of the above-mentioned automatic addressing circuits.

[0013] As preferred, it includes:

[0014] An initialization module is used to send an automatic addressing command from the master node to enter the automatic addressing function mode when the automatic addressing system has a communication capability related circuit after the system is powered on or reset.

[0015] A command sending module, used for the master node to send an addressing command to all slave nodes in the network and output a voltage signal as an input signal to the input IN terminal of the automatic addressing circuit;

[0016] The node detection and address allocation module is used to perform a disconnection operation on the switch control units of all slave nodes after receiving the addressing command to ensure that the voltage divider network can correctly provide a unique voltage value for each node, and the slave nodes determine their own assigned target addresses in the system by detecting the voltage signals of their respective access points;

[0017] The confirmation and exception handling module is used to obtain the voltage value and the assigned address detected by each slave node and send them back to the master node for confirmation. If the address assignment is correct, the master node sends an instruction to store the address to the slave node and starts normal operation under the address. If there is an exception in the address assignment, the master node sends an instruction to re-execute the above action and continue to execute;

[0018] Among them, the target voltage that is the same as the main control output voltage can be detected through the automatic addressing module.

[0019] Preferably, when the number of nodes in the network exceeds a threshold, due to the characteristics of the voltage divider network, the detection of subsequent nodes includes:

[0020] The batch addressing module is used to configure a preset number of nodes as a group for address allocation according to the batch addressing strategy. The master node informs the first batch of nodes to allocate addresses, automatically determines and records the address allocated to each node according to the monitored voltage value, and reports it to the master node for confirmation;

[0021] An address confirmation allocation module, which is used to send a command to instruct the second batch of nodes to start address allocation when the master node confirms that the address allocation of the first batch of nodes is correct, and to perform an opening operation on the switch control unit corresponding to the node to which the address has been allocated to short-circuit the resistor, thereby obtaining an updated voltage divider network, so that the next batch of nodes can be allocated addresses at different voltage levels;

[0022] A repeat allocation module is used to detect the respective voltage values ​​according to the updated voltage divider network, and determine the addresses of the second batch of nodes according to the same logic, and repeat the above steps when the number of all nodes in the network is greater than the threshold until all nodes in the network are allocated addresses;

[0023] Wherein, one address allocation includes at least a first batch of nodes and a second batch of nodes.

[0024] Preferably, it also includes: a circuit multiplexing module, which is used to determine the address corresponding to each node by measuring the voltage of each node at the access point of the circuit through the automatic addressing circuit when the automatic addressing system does not have the relevant circuit for communication capability, and the nodes corresponding to the current address allocation are less than or equal to 6 nodes.

[0025] The present invention also provides an automatic addressing method, characterized in that it is applied to the automatic addressing system as claimed in any one of claims 4 to 6, comprising the following steps:

[0026] When the automatic addressing system has the circuits related to the communication capability, after the system is powered on or reset, it enters the initialization phase and sends the automatic addressing command from the master node, thereby entering the automatic addressing function mode;

[0027] The master node sends addressing commands to all slave nodes in the network and outputs a voltage signal as an input signal to the IN terminal of the automatic addressing circuit;

[0028] After receiving the addressing command, the switch control units of all slave nodes are disconnected to ensure that the voltage divider network can correctly provide a unique voltage value for each node, and the slave nodes determine their own assigned target addresses in the system by detecting the voltage signals of their respective access points;

[0029] The voltage value and the assigned address detected by each slave node are obtained and sent back to the master node for confirmation. If the address assignment is correct, the master node sends a command to the slave node to store the address and start normal operation under the address. If there is an abnormality in the address assignment, the master node sends a command to re-execute the above action and continue to execute;

[0030] Among them, the target voltage that is the same as the main control output voltage can be detected through the automatic addressing module.

[0031] Preferably, when the number of nodes in the network exceeds a threshold, due to the characteristics of the voltage divider network, the detection of subsequent nodes includes the following steps:

[0032] According to the batch addressing strategy, a preset number of nodes are configured as a group for address allocation. The master node informs the first batch of nodes to allocate addresses, and automatically determines and records the address allocated to each node based on the monitored voltage value, and reports it to the master node for confirmation;

[0033] When the master node confirms that the address allocation of the first batch of nodes is correct, it will send a command to instruct the second batch of nodes to start address allocation, and perform an opening operation on the switch control unit corresponding to the node that has been allocated the address to short-circuit the resistor, thereby obtaining an updated voltage divider network, so that the next batch of nodes can be allocated addresses at different voltage levels;

[0034] The respective voltage values ​​are detected according to the updated voltage divider network, and the addresses of the second batch of nodes are determined according to the same logic. When the number of all nodes in the network is greater than the threshold, the above steps are repeated until all nodes in the network are assigned addresses;

[0035] Wherein, one address allocation includes at least a first batch of nodes and a second batch of nodes.

[0036] Preferably, the method further includes: when the automatic addressing system does not have a circuit related to communication capability, the address corresponding to each node is determined by measuring the voltage at the access point of each node on the circuit through the automatic addressing circuit, and the number of nodes corresponding to the current address allocation is less than or equal to 6 nodes.

[0037] With respect to the prior art, the present invention has the following beneficial effects:

[0038] 1. Improve system scalability: Through the automatic addressing mechanism, new nodes can be easily added to the system without manual configuration or changing the addresses of existing nodes. This greatly improves the scalability of the system, especially in large or changing network environments;

[0039] 2. Reduce maintenance costs: Automatic addressing reduces the need for manual intervention, thereby reducing the complexity and cost of system maintenance. System administrators do not need to manually assign and record the address of each node, reducing the possibility of errors;

[0040] 3. Enhance system reliability: The automatic addressing system ensures that each node can obtain a unique address through precise voltage division and detection mechanism. This mechanism reduces the possibility of address conflicts and errors, thereby improving system reliability;

[0041] 4. Support multiple communication environments: The automatic addressing scheme of the present invention is applicable to multiple circuits such as no communication, LIN communication, CAN communication, FlexRay and Ethernet, which makes it widely used in different electronic devices and network configurations.

[0042] 5. Circuit reuse and efficiency improvement: In circuits without communication capabilities, the automatic addressing circuit can also be reused for other functions, such as wake-up signals or voltage sampling, which improves resource utilization and reduces system costs.

[0043] 6. The design of the automatic addressing system of the present invention simplifies the hardware requirements of the nodes because the nodes no longer need complex logic to handle address allocation. This helps to simplify system design, shorten development time, and may reduce hardware costs. Through batch addressing strategies and circuit reuse, the automatic addressing system of the present invention can adapt to networks of different sizes and types, and can maintain efficient operation even when there are a large number of nodes or limited resources. The design of the resistor divider network and the switch control unit ensures the accuracy of voltage sampling, and addresses can be accurately allocated even at the end nodes on the network, which is crucial to ensuring the overall performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a principle block diagram of the automatic addressing circuit in an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of the steps of the automatic addressing method in an embodiment of the present invention;

[0046] Among them, 1-main control unit, 2-resistance voltage divider network, 3-switch control unit. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Embodiment 1

[0049] See also Figure 1 As shown, the present invention provides an automatic addressing circuit, including a main control unit 11 and a resistor voltage divider network 2 and a switch control unit 3 respectively connected to the main control unit 1, wherein the resistor voltage divider network 2 is used to generate voltage signals of different levels at different nodes; the main control unit 1 is used to receive addressing requests from master / slave nodes and execute an automatic addressing function mode, wherein the automatic addressing mode provides different voltage signals to each node through a circuit network, and each node determines the target address of the node in the system and configures it according to the received voltage signal; the switch control unit 3 is used to control and execute corresponding switch instructions in a preset operation mode to adapt to voltage signals of different levels, so as to ensure the stable operation of the main control unit 1. The main control unit 1 may be an MCU or a logic processing circuit.

[0050] In this embodiment, the resistor voltage divider network 2 adopts a binary circuit, and the binary circuit includes a first resistor, a second resistor and a third resistor, one end of the first resistor is connected to the input IN terminal, the other end of the first resistor is connected to the output voltage OUT, and one end of the first resistor is connected to one end of the second resistor, the other end of the second resistor is connected to one end of the third resistor, and the other end of the third resistor is grounded, wherein the input IN terminal of each node is connected to a different point of the resistor voltage divider network 2, and a unique voltage value can be provided for each node, so that each node can determine its own address according to the voltage value of its access point. It can be understood that the resistor voltage divider network 2 used in this embodiment: by using a voltage divider network composed of resistors R1, R2 and R3, different voltage levels can be generated. These voltage levels are used to provide unique voltage signals to each module, so that each module can determine its own address according to the received voltage. The resistance value of R1 can be adjusted as needed, and does not have to be equal to 1 / 2*(R2+R3), providing design flexibility.

[0051] In this embodiment, the switch control unit 3 includes a bypass switch U1 and a level conversion circuit U2, wherein the bypass switch U1 is electrically connected to the level conversion circuit U2, wherein the bypass switch U1 and the level conversion circuit U2 are bipolar transistors, relays or other controllable switch circuits. It can be understood that U1, as a bypass switch, can short-circuit R1 when addressing is not required, thereby reducing power consumption and simplifying the circuit. U2 is used to control the switch of U1 and protect the MCU or logic processing circuit. These components increase the controllability and safety of the system.

[0052] See also Figure 1 As shown, the specific example of the module composed of the above automatic addressing circuit is as follows: In the figure, R1 = 1 / 2*(R2+R3), which adopts a binary circuit. In actual application, R1 may not be equal to 1 / 2*(R2+R3), as long as the resistance value is defined by yourself. The voltage division of R2 and R3 is to ensure that the voltage input to the MCU or logic processing circuit does not exceed the rated input voltage. The values ​​of R2 and R3 and the voltage division value can be matched according to the actual situation. As long as the circuit allows, voltage division can also be omitted, so that R2 and R3 are combined into one resistor. Figure 1 U1 is a bypass switch. When U1 is turned on, the resistor R1 can be short-circuited. U2 is a level conversion circuit to better control U1 and protect the MCU or logic processing circuit. According to actual needs, the polarity of U1 and U2 is not specified here. U1 and U2 are not necessary. U1 and U2 can also be bipolar transistors, relays or other controllable switch circuits.

[0053] Embodiment 2

[0054] The embodiment of the present invention also provides an automatic addressing system, including several automatic addressing modules composed of the automatic addressing circuits as described in the first embodiment connected in series, all modules are connected in series, the OUT of the previous circuit is connected to the IN of the next circuit, and all modules are treated with a common power supply and a common ground. Among them, the "IN" of the first circuit is controlled by the main control unit. When the system is powered on or reset, the main control unit will start an automatic addressing program and start this process by setting the voltage of the "IN" signal. Subsequently, each node determines its own address by reading the voltage it sees, and sends the information back to the main control unit for confirmation. This process has a high degree of automation, which reduces the need for manual configuration and reduces configuration problems caused by human errors.

[0055] In this embodiment, the automatic addressing system includes:

[0056] An initialization module is used to send an automatic addressing command from the master node to enter the automatic addressing function mode when the automatic addressing system has a communication capability related circuit after the system is powered on or reset.

[0057] A command sending module, used for the master node to send an addressing command to all slave nodes in the network and output a voltage signal as an input signal to the input IN terminal of the automatic addressing circuit;

[0058] The node detection and address allocation module is used to perform a disconnection operation on the switch control units 3 of all slave nodes after receiving the addressing command to ensure that the voltage divider network can correctly provide a unique voltage value for each node, and the slave nodes determine their own assigned target addresses in the system by detecting the voltage signals of their respective access points;

[0059] The confirmation and exception handling module is used to obtain the voltage value and the assigned address detected by each slave node and send them back to the master node for confirmation. If the address assignment is correct, the master node sends an instruction to store the address to the slave node and starts normal operation under the address. If there is an exception in the address assignment, the master node sends an instruction to re-execute the above action and continue to execute;

[0060] Among them, the target voltage that is the same as the main control output voltage can be detected through the automatic addressing module.

[0061] Those skilled in the art can understand that, in a system with a communication circuit, whether a node needs to perform an addressing operation can be determined by the master node, or the slave node can actively propose the need for addressing. Preferably, after the system is powered on again, during the system initialization phase, the master node actively sends an addressing command to enter the automatic addressing function mode. The advantage of this is that it avoids system errors caused by interchanging or replacing slave nodes during maintenance; the disadvantage is that it will increase the initialization time each time the system is powered on, and the user can define it according to actual needs.

[0062] When addressing is required, the master node sends an automatic addressing command on the network and outputs a fixed voltage or a voltage signal equal to the power supply voltage to the "IN" of the first circuit. After receiving the addressing command, all slave nodes disconnect U1. At this time, module 1 will be able to detect the same voltage as the master output voltage, module 2 will detect 1 / 2 of the master output voltage, module 3 will detect 1 / 4 of the master output voltage, module 4 will detect 1 / 8 of the master input voltage, and so on. Each module can determine its position in the system based on the voltage it detects, and thus assign a suitable address to itself. For example, the address of module 1 is 0X01, and the address of module 2 is 0X02... After the slave node assigns the address, it sends the voltage it detects and its address to the master node on the network for confirmation. If it is confirmed that there is no problem, the master node sends a command to let the slave node remember the address it has identified and work at. If it is confirmed that there is a problem, repeat the above actions.

[0063] In order to improve the detection accuracy, it is recommended to use resistors with an accuracy higher than 1% for R1, R2, R3, etc. in the network. However, when there are many nodes in the network, the voltage detected by the subsequent nodes may be relatively low, which may easily lead to misjudgment. At this time, a mechanism can be defined to allocate addresses once every N nodes (depending on the actual situation, it can be other numbers). In this embodiment, when the number of nodes in the network exceeds the threshold, due to the characteristics of the voltage divider network, the detection of subsequent nodes includes:

[0064] The batch addressing module is used to configure a preset number of nodes as a group for address allocation according to the batch addressing strategy. The master node informs the first batch of nodes to allocate addresses, automatically determines and records the address allocated to each node according to the monitored voltage value, and reports it to the master node for confirmation;

[0065] An address confirmation allocation module is used to send a command to instruct the second batch of nodes to start address allocation when the master node confirms that the address allocation of the first batch of nodes is correct, and to perform an opening operation on the switch control unit 3 corresponding to the node to which the address has been allocated to short-circuit the resistor, thereby obtaining an updated voltage divider network, so that the next batch of nodes can be allocated addresses at different voltage levels;

[0066] A repeated allocation module is used to detect the respective voltage values ​​according to the updated voltage divider network, and determine the addresses of the second batch of nodes according to the same logic. When the number of all nodes in the network is greater than a threshold, the above steps are repeated until all nodes in the network are assigned addresses; wherein, one address allocation includes at least the first batch of nodes and the second batch of nodes, for example, for every group of 4 nodes, the first batch allocates nodes 1-4, and the second batch allocates nodes 5-8. In this way, in order to cope with the problem of low voltage that may be caused by a large number of nodes, a batch addressing strategy is proposed, that is, address allocation is performed once for every certain number of nodes, such as 4 nodes. This not only ensures the accuracy of address allocation, but also improves the scalability of the system.

[0067] When the above detection of subsequent nodes is specifically implemented, the address is allocated once for every 4 nodes, or other numbers can be determined according to the actual situation. The timing at this time is that the master node informs that the address of node 1-4 is allocated at this time. Node 1-4 automatically remembers the address it should be allocated to according to the monitored voltage, and reports it to the master node for confirmation. The master node receives the information that 1-4 is correctly allocated to the address, and will send a command to currently allocate the address of nodes 5-8. At this time, node 1-4 turns on the U1 bypass switch, and R1 of the 1-4 node module is in a short-circuit state. Node module 5 will detect the same voltage as the main control output voltage, module 6 will detect 1 / 2 voltage of the main control output, module 7 will detect 1 / 4 voltage of the main control output, and module 8 will detect 1 / 8 voltage of the main control input, and repeat the above address allocation logic. If there are more than 8 nodes in the network, repeat the above steps until the address allocation is completed.

[0068] The automatic addressing system used in this embodiment also includes: a circuit multiplexing module, which is used to determine the address corresponding to each node by measuring the voltage of each node at the access point on the circuit through the automatic addressing circuit when the automatic addressing system does not have a communication capability related circuit, and the number of nodes corresponding to the current address allocation is less than or equal to 6 nodes. It can be understood that in a circuit without communication, the above circuit can also be used for address / function) allocation. At this time, each node only needs to collect the voltage on its own addressing line to determine which node it is, so as to allocate a suitable address (function) to itself. Because there is no communication negotiation mechanism, under this application condition, it is not recommended to use address allocation of more than 6 nodes to avoid address allocation errors caused by inaccurate voltage sampling of the terminal node module. Addressing can be the first time the device is powered on after installation, and everyone uniformly performs addressing operations and remembers their respective addresses. There is no need to perform addressing operations in the future; when the device is repaired and replaced, or a new device is added, the newly added device can send an addressing request on the bus because it has no address, thereby performing a new address allocation. In order to further reduce the system cost, we can reuse the addressing line with the wake-up and voltage sampling circuits. After all child nodes have correctly found their own addresses, U1 can be turned on and resistor R1 can be short-circuited. At this time, the loss on the addressing line is extremely low, and the voltage detected by all nodes is approximately equal to the voltage output by the main node, so it can be used for wake-up function. By adopting this automatic addressing technology, the system can automatically identify and configure each connected device or node, greatly simplifying the configuration and maintenance of the system. In addition, by optimizing power management and reducing unnecessary power consumption, this technical solution also helps to improve the overall energy efficiency and reliability of the system. Such a design is particularly suitable for complex systems that require a large number of computing nodes and change frequently, such as data centers, intelligent building control systems, etc.

[0069] Embodiment 3

[0070] Based on the same concept, the present invention also provides an automatic addressing method, which is applied to the automatic addressing system as described in the second embodiment. Figure 2 As shown, the following steps are included:

[0071] S1: When the automatic addressing system has communication capability-related circuits, after the system is powered on or reset, it enters the initialization phase, and sends an automatic addressing command from the master node to enter the automatic addressing function mode; in the system initialization phase, the main control unit sends an addressing command and starts the automatic addressing process by controlling the voltage of the IN signal.

[0072] S2: The master node sends an addressing command to all slave nodes in the network and outputs a voltage signal as the input signal of the automatic addressing circuit input IN terminal; each module determines its own address through the detected voltage value and sends this information back to the master node for confirmation. This process is automated, reducing the need for manual configuration and the possibility of error.

[0073] S3: After receiving the addressing command, the switch control units 3 of all slave nodes are disconnected to ensure that the voltage divider network can correctly provide a unique voltage value for each node, and the slave nodes determine their own assigned target addresses in the system by detecting the voltage signals of their respective access points; this embodiment can use resistors with an accuracy higher than 1% to improve the accuracy of voltage detection. In order to deal with the problem of low voltage that may be caused by a large number of nodes, a batch addressing strategy is proposed, that is, address allocation is performed once for every certain number of nodes, such as 4 nodes, which not only ensures the accuracy of address allocation, but also improves the scalability of the system. The following switch control unit 3 is U1. When addressing is not required, the control element U1 short-circuits the resistor R1 to reduce power consumption. During the addressing process, U1 is disconnected to ensure accurate voltage division and detection.

[0074] S4: The voltage value detected by each slave node and the assigned address are obtained and sent back to the master node for confirmation. If the address assignment is correct, the master node sends a command to the slave node to store the address and start normal operation under the address. If there is an abnormality in the address assignment, the master node sends a command to re-execute the above action and continue to execute;

[0075] S5: When the automatic addressing system does not have a circuit related to communication capability, the voltage of each node at the access point of the circuit is measured by the automatic addressing circuit to determine the address corresponding to each node, and the number of nodes corresponding to the current address allocation is less than or equal to 6 nodes; wherein, the target voltage that is the same as the main control output voltage can be detected by the automatic addressing module, and even in a circuit without communication capability, the address allocation can be achieved by monitoring the voltage on the addressing line. In addition, by multiplexing the addressing line for wake-up and voltage sampling functions, the cost and complexity of the system can be further reduced.

[0076] In this embodiment, when the number of nodes in the network exceeds a threshold, due to the characteristics of the voltage divider network, the detection of subsequent nodes includes the following steps:

[0077] According to the batch addressing strategy, a preset number of nodes are configured as a group for address allocation. The master node informs the first batch of nodes to allocate addresses, and automatically determines and records the address allocated to each node based on the monitored voltage value, and reports it to the master node for confirmation. For systems with a large number of nodes, in order to avoid misjudgment caused by low voltage, a batch addressing strategy can be adopted. Only a certain number of nodes are allocated addresses each time, and the unallocated nodes keep U1 closed.

[0078] When the master node confirms that the address allocation of the first batch of nodes is correct, it will send a command to instruct the second batch of nodes to start address allocation, and perform an opening operation on the switch control unit 3 corresponding to the node to which the address has been allocated to short-circuit the resistor, thereby obtaining an updated voltage divider network, so that the next batch of nodes can be assigned addresses at different voltage levels;

[0079] The respective voltage values ​​are detected according to the updated voltage divider network, and the addresses of the second batch of nodes are determined according to the same logic. When the number of all nodes in the network is greater than the threshold, the above steps are repeated until all nodes in the network are assigned addresses; wherein, one address allocation includes at least the first batch of nodes and the second batch of nodes.

[0080] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An automatic addressing circuit, characterized in that: It includes a main control unit and a resistor voltage divider network and a switch control unit respectively connected to the main control unit. The resistor voltage divider network is used to generate voltage signals of different levels at different nodes; The main control unit is used to receive an addressing request from a master / slave node and execute an automatic addressing function mode, wherein the automatic addressing mode provides different voltage signals to each node through a circuit network, and each node determines the target address of the node in the system and configures it according to the received voltage signal; The switch control unit is used to control and execute corresponding switch instructions under a preset operation mode to adapt to voltage signals of different levels to ensure stable operation of the main control unit.

2. The automatic addressing circuit according to claim 1, characterized in that: The resistor voltage divider network adopts a binary circuit, which includes a first resistor, a second resistor and a third resistor, one end of the first resistor is connected to the input IN terminal, the other end of the first resistor is connected to the output voltage OUT, and one end of the first resistor is connected to one end of the second resistor, the other end of the second resistor is connected to one end of the third resistor, and the other end of the third resistor is grounded, wherein the input IN terminal of each node is connected to a different point of the resistor voltage divider network, and a unique voltage value can be provided for each node, so that each node can determine its own address according to the voltage value of its access point.

3. The automatic addressing circuit according to claim 1, characterized in that: The switch control unit includes a bypass switch and a level conversion circuit, wherein the bypass switch is electrically connected to the level conversion circuit, wherein the bypass switch and the level conversion circuit are bipolar transistors, relays or controllable switch circuits.

4. An automatic addressing system, characterized in that: An automatic addressing module comprising a plurality of automatic addressing circuits as claimed in any one of claims 1 to 3 connected in series.

5. The automatic addressing system according to claim 4, characterized in that: include: An initialization module is used to send an automatic addressing command from the master node to enter the automatic addressing function mode when the automatic addressing system has a communication capability related circuit after the system is powered on or reset. A command sending module, used for the master node to send an addressing command to all slave nodes in the network and output a voltage signal as an input signal to the input IN terminal of the automatic addressing circuit; The node detection and address allocation module is used to perform a disconnection operation on the switch control units of all slave nodes after receiving the addressing command to ensure that the voltage divider network can correctly provide a unique voltage value for each node, and the slave nodes determine their own assigned target addresses in the system by detecting the voltage signals of their respective access points; The confirmation and exception handling module is used to obtain the voltage value and the assigned address detected by each slave node and send them back to the master node for confirmation. If the address assignment is correct, the master node sends an instruction to store the address to the slave node and starts normal operation under the address. If there is an exception in the address assignment, the master node sends an instruction to re-execute the above action and continue to execute; Among them, the target voltage that is the same as the main control output voltage can be detected through the automatic addressing module.

6. The automatic addressing system according to claim 4, characterized in that: When the number of nodes in the network exceeds the threshold, due to the characteristics of the voltage divider network, the detection of subsequent nodes includes: The batch addressing module is used to configure a preset number of nodes as a group for address allocation according to the batch addressing strategy. The master node informs the first batch of nodes to allocate addresses, automatically determines and records the address allocated to each node according to the monitored voltage value, and reports it to the master node for confirmation; An address confirmation allocation module, which is used to send a command to instruct the second batch of nodes to start address allocation when the master node confirms that the address allocation of the first batch of nodes is correct, and to perform an opening operation on the switch control unit corresponding to the node to which the address has been allocated to short-circuit the resistor, thereby obtaining an updated voltage divider network, so that the next batch of nodes can be allocated addresses at different voltage levels; A repeat allocation module is used to detect the respective voltage values ​​according to the updated voltage divider network, and determine the addresses of the second batch of nodes according to the same logic, and repeat the above steps when the number of all nodes in the network is greater than the threshold until all nodes in the network are allocated addresses; Wherein, one address allocation includes at least a first batch of nodes and a second batch of nodes.

7. The automatic addressing system according to claim 4, characterized in that: Also includes: The circuit multiplexing module is used to determine the address corresponding to each node by measuring the voltage of each node at the access point of the circuit through the automatic addressing circuit when the automatic addressing system does not have the relevant circuit of communication capability, and the nodes corresponding to the current address allocation are less than or equal to 6 nodes.

8. An automatic addressing method, characterized in that: The automatic addressing system as claimed in any one of claims 4 to 6 comprises the following steps: When the automatic addressing system has the circuits related to the communication capability, after the system is powered on or reset, it enters the initialization phase and sends the automatic addressing command from the master node, thereby entering the automatic addressing function mode; The master node sends addressing commands to all slave nodes in the network and outputs a voltage signal as an input signal to the IN terminal of the automatic addressing circuit; After receiving the addressing command, the switch control units of all slave nodes are disconnected to ensure that the voltage divider network can correctly provide a unique voltage value for each node, and the slave nodes determine their own assigned target addresses in the system by detecting the voltage signals of their respective access points; The voltage value and the assigned address detected by each slave node are obtained and sent back to the master node for confirmation. If the address assignment is correct, the master node sends a command to the slave node to store the address and start normal operation under the address. If there is an abnormality in the address assignment, the master node sends a command to re-execute the above action and continue to execute; Among them, the target voltage that is the same as the main control output voltage can be detected through the automatic addressing module.

9. The automatic addressing method according to claim 8, characterized in that: When the number of nodes in the network exceeds the threshold, due to the characteristics of the voltage divider network, the detection of subsequent nodes includes the following steps: According to the batch addressing strategy, a preset number of nodes are configured as a group for address allocation. The master node informs the first batch of nodes to allocate addresses, and automatically determines and records the address allocated to each node based on the monitored voltage value, and reports it to the master node for confirmation; When the master node confirms that the address allocation of the first batch of nodes is correct, it will send a command to instruct the second batch of nodes to start address allocation, and perform an opening operation on the switch control unit corresponding to the node that has been allocated the address to short-circuit the resistor, thereby obtaining an updated voltage divider network, so that the next batch of nodes can be allocated addresses at different voltage levels; The respective voltage values ​​are detected according to the updated voltage divider network, and the addresses of the second batch of nodes are determined according to the same logic. When the number of all nodes in the network is greater than the threshold, the above steps are repeated until all nodes in the network are assigned addresses; Wherein, one address allocation includes at least a first batch of nodes and a second batch of nodes.

10. The automatic addressing method according to claim 8, characterized in that: Also includes: When the automatic addressing system does not have a communication capability related circuit, the address corresponding to each node is determined by measuring the voltage of each node's access point on the circuit through the automatic addressing circuit, and the nodes corresponding to the current address allocation are less than or equal to 6 nodes.

Citation Information

Cited By

  • Addressing-to-non-addressing conversion device and alarm system

    CN119363512A

  • MCU network address automatic generation circuit supporting hot plug

    CN120658712A

  • Storage battery online monitoring management device and working method thereof

    CN120971966A