An automatic addressing method and system based on bus sensing device nodes
By automatically identifying and addressing bus sensor nodes through the main control board, the problems of complex and costly manual addressing of sensor nodes are solved, thus simplifying the addressing process and reducing costs.
Patent Information
- Application Number
- CN202410524885.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-04-29
AI Technical Summary
In existing technologies, setting the address of bus sensor nodes is complex and costly, and manual addressing is prone to errors, which increases the complexity and cost of construction.
The main control board sends broadcast commands to read the internal GUID and type of each sensor node in sequence, and automatically addresses them by combining voltage drop or resistance value to gradually determine the node order and perform automatic addressing in the system.
It enables automated addressing of sensor nodes, simplifies the addressing process, reduces costs and complexity, improves operational efficiency, and avoids errors caused by manual addressing.
Smart Images

Figure CN118353874B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system busbar sensing technology, specifically to an automatic addressing method and system based on busbar sensing device nodes. Background Technology
[0002] Monitoring busbar temperature, temperature rise, and water immersion are key functional highlights of digital busbar trunking products. The current mainstream solution involves adding various sensors to traditional busbar trunking hardware to collect non-electrical data and upload it to a monitoring system. This allows staff to monitor the busbar trunking's temperature, temperature rise, and water immersion in real time. However, this requires manual input of the address information of each node into the system's location map for accurate mapping and subsequent monitoring of busbar trunking temperature and other data within the system.
[0003] Setting and entering the addresses of these nodes often requires additional work such as setting up sensor node addresses and conducting on-site debugging, significantly increasing the manpower, time, and financial costs of on-site construction. Furthermore, sensor node addressing is often done manually by drawing location sketches on-site to record the address of each installed node, and then entering them one by one into the system's location map. Incorrect addressing can cause significant interference with subsequent data monitoring, increasing the complexity and cost of troubleshooting. Summary of the Invention
[0004] Purpose of the invention: In order to overcome the shortcomings of the prior art, an automatic addressing method based on bus sensor node is provided to solve the problems of complex and costly manual setting of sensor node addresses and system addressing of nodes.
[0005] Technical solution: According to a first aspect of the present invention, an automatic addressing method based on bus sensing device nodes is provided, the method comprising the following steps:
[0006] S1 sets up each sensor node according to the structure of the actual installed line. The structure of the line includes: a main line and several branch lines.
[0007] S2 determines the internal identifier GUID for each sensor node and the index TYPE used to distinguish the node type, TYPE = 0, 1, 2, ..., n, where n ≥ 0. Specifically, the sensor nodes are classified into node types according to the structure of the installation line, including: head node, end node, trunk / branch line main node, and branch node. The head node is the parent node itself, with TYPE = m and m > 0; the end node has one parent node and zero child nodes, with TYPE = 0; the trunk / branch line main node has one parent node and one child node, i.e., TYPE = 1; the branch node has one parent node and more than one child node, with TYPE = t and t > 1.
[0008] The S3 main control board sends a broadcast command to traverse each sensor node, sequentially read the internal code GUID of each node and determine the current sensor node type TYPE, and address the relevant nodes on the main line according to the judgment method based on the value of the index TYPE; the main control board is used to obtain the node order on the current loop by judging the voltage drop or resistance value, and each node sends back the node code GUID, the node type index TYPE and the characteristic value VALUE to the main control board, where the characteristic value VALUE is the voltage and / or resistance value of the current node;
[0009] After the main control board in S4 completes the addressing of the relevant nodes on the main line, it processes and addresses the relevant nodes on the branch line in sequence according to the obtained addressing order of the relevant nodes on the main line.
[0010] S5 automatically addresses the installed sensor nodes according to the actual installation route, draws the predecessor parent node and successor child node of each node, and finally re-addresses the nodes according to the agreed rules, and corresponds one-to-one with the location nodes on the system installation route map.
[0011] Furthermore, including:
[0012] Step S3 specifically includes the following steps:
[0013] The main control board in S31 sends a broadcast command to obtain the GUID, index TYPE, and current node characteristic value VALUE of each sensor node. After receiving the start command, each sensor node performs an initialization operation, which includes clearing the original address, clearing the signal indicator mark, and opening the main line / branch line resistor.
[0014] After obtaining the node information of the entire line, the main control board in S32 sends a first addressing instruction. The relevant nodes on the main line receive the instruction and determine whether their own node characteristic value has reached the threshold voltage V. 主 ,
[0015] If the condition is met, the node returns its own GUID and TYPE to the main control board, performs its own addressing settings, and reports itself to the main control board as the first node.
[0016] Otherwise, move to the next trunk / branch master node and perform the above condition judgment until the first node is found and addressed.
[0017] The main control board in step S33 continues to issue a second addressing instruction, using the conditional judgment in step S31, until the second node is found and addressed.
[0018] The main control board in S34 repeatedly sends out main line addressing instructions until all nodes that meet the conditions on the line have responded, thus completing the addressing of the relevant nodes in the main line. When the end node is encountered during traversal, it is also considered that the main line has been addressed.
[0019] Furthermore, including:
[0020] Step S4 specifically includes the following steps:
[0021] After the main control board completes the addressing of the relevant nodes on the main line, if there is a branch node A with the smallest address on the main line, then proceed to step S42; otherwise, the addressing is completed and the process ends.
[0022] S42 Calculates the index TPYE = m corresponding to the least-addressed branch node A. A And m A >1, meaning that the trunk node has m successor branches. A -1 path, and sequentially address the nodes attached to the corresponding branch line;
[0023] S43 sequentially addresses the other branch nodes existing on the main line;
[0024] S44 returns the smallest incompletely addressed branch node C on the next main branch, with the corresponding index TPYE = m. C And m C >1, Repeat the process for all m nodes under node C. C -1 channel is activated until the main control board completes the numbering of all branch nodes on the main line and all nodes mounted on each branch below it.
[0025] Furthermore, including:
[0026] Step S42 specifically includes the following steps:
[0027] S421 describes the first path A, the successor branch of branch node A. 分1 If the circuit is activated and all other branch paths are closed, then the mainline node corresponding to the first branch under branch node A is addressed using the following method:
[0028] After the main control board obtains the node information, it sends an addressing command. When the relevant child node receives the command, it determines that its own node characteristic value has reached the threshold voltage V. 分 When the node returns its own GUID and TYPE information to the main control board, it performs its own numbering operation and reports itself to the main control board as the first child node, and sets the addressing completed indicator light and bypasses the node resistor to facilitate the numbering of subsequent nodes.
[0029] The main control board repeatedly issues addressing instructions until all eligible nodes on the line have responded. Then, it records the node sequence and the numbers of all child nodes on the line, repeating this process until the first branch A under branch node A is completed. 分1 The mainline nodes are addressed, and the main control board records the first branch A under branch node A. 分1 The secondary branch node that exists above;
[0030] S422 determines whether a secondary branch node exists. If it exists, then the first branch A of branch node A is... 分1 The smallest numbered secondary branch node A 分1A Number the first branch line below;
[0031] S423 repeats the above steps until the smallest numbered branch node A on the main line and all its sub-nodes m are completed. A -1. Perform the addressing of nodes attached to the branch line; otherwise, terminate the addressing of the first branch.
[0032] Furthermore, including:
[0033] Among them, the threshold voltage V 主 and V 分 It is a reference value derived from the hardware circuit design, and this application does not limit its specific data.
[0034] On the other hand, the present invention also provides an automatic addressing system based on bus sensing device nodes, the system comprising:
[0035] The node setting module is used to set each sensor node according to the structure of the actual installed line. The structure of the line includes: a main line and several branch lines.
[0036] The node classification module is used to determine the internal identifier GUID corresponding to each sensor node and the index TYPE used to distinguish the node type, TYPE = 0, 1, 2, ..., n, where n ≥ 0. Specifically, the sensor nodes are classified into node types according to the structure of the installation line, including: head node, end node, trunk / branch line main node, and branch node. The head node is the parent node itself, with TYPE = m and m > 0; the end node has one parent node and zero child nodes, with TYPE = 0; the trunk / branch line main node has one parent node and one child node, i.e., TYPE = 1; and the branch node has one parent node and more than one child node, with TYPE = t and t > 1.
[0037] The mainline node addressing module is used to send broadcast commands through the main control board, traverse each sensor node, sequentially read the internal code GUID of each node and determine the current sensor node type TYPE, and address the relevant nodes on the mainline according to the judgment method based on the value of the index TYPE; the main control board is used to obtain the node order on the current loop by judging the voltage drop or resistance value, and each node sends back the node code GUID, the node type index TYPE and the characteristic value VALUE to the main control board, where the characteristic value VALUE is the voltage and / or resistance value of the current node;
[0038] The branch line node addressing module is used to complete the addressing of relevant nodes on the main line through the main control board, and then process and address the relevant nodes on the branch line in sequence according to the obtained addressing order of relevant nodes on the main line.
[0039] The corresponding module is used to automatically address the installed sensor nodes according to the actual installation line, draw the predecessor parent node and successor child node of each node, and finally re-address the nodes according to the agreed rules, and correspond one-to-one with the location nodes on the system installation route map.
[0040] Furthermore, including:
[0041] The mainline node addressing module specifically includes:
[0042] The initialization unit is used to send a broadcast command through the main control board to obtain the GUID, index TYPE and current node characteristic value VALUE of each sensor node. After receiving the start command, each sensor node performs an initialization operation, which includes clearing the original address, clearing the signal indicator mark, and opening the main line / branch line resistor.
[0043] The judgment unit is used to obtain the entire line node information through the main control board, and then send a first addressing instruction. The relevant nodes on the main line receive the instruction and determine whether their own node characteristic value has reached the threshold voltage V. 主 ,
[0044] If the condition is met, the node returns its own GUID and TYPE to the main control board, performs its own addressing settings, and reports itself to the main control board as the first node.
[0045] Otherwise, move to the next trunk / branch master node and perform the above condition judgment until the first node is found and addressed.
[0046] The addressing unit is used to continue issuing a second addressing instruction through the main control board, using the condition judgment in the judgment unit until the second node is found and addressed.
[0047] The iterative unit is used to repeatedly issue mainline addressing instructions through the main control board until all nodes that meet the conditions on the line have responded, thus completing the addressing of the relevant nodes in the mainline. When the end node is encountered during traversal, it is also considered that the mainline has been addressed.
[0048] Furthermore, including:
[0049] The branch line node addressing module specifically includes:
[0050] The minimum branch node determination unit is used to determine whether, after the main control board completes the addressing of relevant nodes on the main line, if there is a minimum branch node A on the main line, then the minimum branch node addressing unit is entered; otherwise, the addressing is completed and the process ends.
[0051] The minimum branch node addressing unit is used to address the branch node A with the minimum address as specified by the index TPYE = m. A And m A >1, meaning that the trunk node has m successor branches. A -1 path, and sequentially address the nodes attached to the corresponding branch line;
[0052] Other branch node addressing units are used to sequentially address other branch nodes existing on the main line;
[0053] Other mainline node addressing units are used to return the smallest incompletely addressed branch node C on the next mainline, and the corresponding index TPYE = m C And m C >1, Repeat the process for all m nodes under the current node C. C -1 channel is activated until the main control board completes the numbering of all branch nodes on the main line and all nodes mounted on each branch below it.
[0054] Furthermore, including:
[0055] The minimum branch node addressing unit specifically includes:
[0056] The first path A, which is the successor branch of node A 分1 If the circuit is activated and all other branch paths are closed, then the mainline node corresponding to the first branch under branch node A is addressed using the following method:
[0057] After the main control board obtains the node information, it sends an addressing command. When the relevant child node receives the command, it determines that its own node characteristic value has reached the threshold voltage V. 分When the node returns its own GUID and TYPE information to the main control board, it performs its own numbering operation and reports itself to the main control board as the first child node, and sets the addressing completed indicator light and bypasses the node resistor to facilitate the numbering of subsequent nodes.
[0058] The main control board repeatedly issues addressing instructions until all eligible nodes on the line have responded. Then, it records the node sequence and the numbers of all child nodes on the line, repeating this process until the first branch A under branch node A is completed. 分1 The mainline nodes are addressed, and the main control board records the first branch A under branch node A. 分1 The secondary branch node that exists above;
[0059] Determine if a secondary branch node exists. If it exists, then proceed with the first branch A of branch node A. 分1 The smallest numbered secondary branch node A 分1A Number the first branch line below;
[0060] Repeat the above scheme until the smallest branch node A on the main line and all its m nodes are completed. A -1. Perform the addressing of nodes attached to the branch line; otherwise, terminate the addressing of the first branch.
[0061] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0062] This invention automates the addressing of sensor nodes sequentially according to the circuit structure. The addressing method is simple and does not miss any node, thereby reducing costs and complexity and improving operating efficiency. Attached Figure Description
[0063] Figure 1 This is a flowchart of the automatic addressing method described in an embodiment of the present invention;
[0064] Figure 2 This is an example diagram of the node structure described in an embodiment of the present invention;
[0065] Figure 3 This is an example diagram of the addressing method described in an embodiment of the present invention;
[0066] Figure 4 This is an example diagram of a busbar node layout according to an embodiment of the present invention;
[0067] Figure 5 This is an example diagram of the layout of a bus node after addressing, as described in an embodiment of the present invention.
[0068] Figure 6 This is a flowchart illustrating the automatic addressing process of branch nodes according to an embodiment of the present invention. Detailed Implementation
[0069] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0070] Example 1
[0071] like Figure 1 As shown, the present invention provides an automatic addressing method based on busbar sensing device nodes, the method comprising the following steps:
[0072] S1 sets up each sensor node according to the structure of the actual installed line. The structure of the line includes: a main line and several branch lines.
[0073] like Figure 2 As shown, each node is connected sequentially according to the busbar routing and current flow direction. Each node is sequentially mounted after the node above it, meaning each node has a parent node; except for the first node, its parent node is itself. Furthermore, each node can have multiple branch nodes in addition to the main line, meaning each node can have multiple child nodes. Each node has components such as voltage divider resistors added to its branches to make the characteristic values of the nodes on the main path significantly different from the characteristic values of nodes on other branches. This embodiment does not limit the significant differences, including but not limited to voltage and resistance values. In one circuit structure of this embodiment, the voltage value of each node on the main path decreases from 3.3V, while the voltage value of each node on the branch path decreases from 2.4V. Each node has the function of receiving hardware pulses or other methods to open a specified loop in its subsequent branches, i.e., bypass or open-circuit functionality.
[0074] S2 determines the internal identifier GUID for each sensor node and the index TYPE used to distinguish the node type, TYPE = 0, 1, 2, ..., n, where n ≥ 0. Specifically:
[0075] The sensor nodes are classified into node types according to the structure of the installation line, including: head node, end node, trunk / branch line main node, and branch node. The head node is the parent node itself, with TYPE = m and m > 0. The end node has one parent node and zero child nodes, with TYPE = 0. The trunk / branch line main node has one parent node and one child node, with TYPE = 1. The branch node has one parent node and more than one child node, with TYPE = t and t > 1.
[0076] Specifically, in this embodiment, each sensor node has its own unique internal identifier GUID to ensure that there are no duplicate GUIDs during automatic identification. This GUID is set at the factory. Furthermore, each sensor node has a type-related hardware feature to distinguish whether it is a mainline node on a bus or a branch node on a branch line.
[0077] If the number of subsequent child nodes of each node is 0-n, then the hardware type of the node is denoted as TYPE=n. n=0 indicates that there are no subsequent child nodes, that is, the node is the end node of the main line / branch line;
[0078] When n=1, it means that the subsequent child node has only one path, so the node is a main line node or a trunk line node, or simply a main line node; when n>1, it means that the subsequent child node has multiple paths, so the node is a branch node of the main line or a branch node of the trunk line, or simply a branch node.
[0079] Thus, there are four types of sensor nodes: (1) Head node, i.e., the parent node is itself, TYPE=n, n>0; (2) End node, i.e., it has one parent node and 0 child nodes, TYPE=0; (3) Main / branch line node, i.e., it has one parent node and one child node, TYPE=1; (4) Branch node, i.e., it has one parent node and more than one child node, TYPE=n, n>1. Among them, branch nodes and end nodes need to be equipped with components such as voltage divider resistors and tail resistors according to specific hardware to achieve certain voltage drop, resistance and other characteristic values of nodes on the line according to the main line and branch line, so as to facilitate the search of all nodes on the line.
[0080] like Figure 3 As shown: Each node can have multiple subsequent child nodes, including one main outgoing line and multiple branch outgoing lines.
[0081] D1 is the trunk node and also the first node. Its only successor child node is D2, and D1's TYPE = 1.
[0082] D2 is a branch node with three successor child nodes. D3 is the successor mainline child node on the mainline where D2 is located, and D4 and D5 are child nodes on the first and second branches under node D2, respectively. D2's TYPE = 3.
[0083] D3, D4, and D5 have no successor children and are terminal nodes; their TYPE = 0.
[0084] The S3 main control board sends a broadcast command to traverse each sensor node, sequentially read the internal GUID of each node and determine the current sensor node type TYPE, and address the relevant nodes on the main line according to the judgment method based on the value of the TYPE index. The main control board is used to obtain the node order on the current loop by judging the voltage drop or resistance value, and each node sends back the node GUID, the node type index TYPE, and the characteristic value VALUE to the main control board. The characteristic value VALUE is the voltage and / or resistance value of the current node.
[0085] Specifically: At the beginning of the entire path, there is a hardware device, which is not limited to, a concentrator, processor, or main control board, etc. This hardware device is responsible for the automatic numbering function on the bus lines, and is referred to as the main control board below. The main control board is used to sequentially obtain the node order on the current loop by judging the voltage drop or resistance value, and each node can send back the node code GUID, node type TYPE, and characteristic value VALUE to the main control board.
[0086] In this embodiment, the main control board sends a broadcast command to traverse each sensor node, sequentially read the internal code GUID of each node and determine the type TYPE of the current sensor node. The node type can be identified based on the T value, and the main line node and branch node on the current loop can be identified. That is, TYPE=1 is the main line node and TPYE>1 is the branch node. The resistor of the main line node can be turned off in sequence or not limited to this method, and the main line node can be numbered.
[0087] Step S3 specifically includes:
[0088] The S31 main control board sends a broadcast command to obtain the GUID, TYPE, and characteristic value of each node, that is, to search for all node information on the entire bus. After receiving the "start addressing" command, each node performs initialization operations, including but not limited to clearing the original number, clearing the signal indicator mark, and opening the main line / branch line resistor.
[0089] After the S32 main control board obtains the information of all line nodes, it sends an addressing command, issuing the command "Address mainline node 1". When a mainline node receives the command, it determines whether its own node characteristic value meets the threshold V. 主For example, in a certain circuit structure, when the node's own voltage reaches the mainline node determination threshold voltage of 3.3V, it returns its own GUID and TYPE information to the main control board. Simultaneously, it performs a self-numbering operation and reports to the main control board that it is node number 1. This includes, but is not limited to, setting its own TAG_ID to 1, setting the addressing completion indicator light, and bypassing the node resistor to facilitate subsequent node numbering. This application does not limit the threshold voltage; it has different values depending on the circuit structure. In one circuit case, V... 主 =3.3V.
[0090] The S33 main control board continues to issue the "mainline node addressing node 2" command. When a node that meets the conditions receives the command, it reports to the main control board that it is node 2, and the steps are the same as S32.
[0091] The S34 main control board repeatedly issues mainline addressing commands until all nodes that meet the conditions on the line have responded. Then, it records the node sequence of the line and the numbers of all branch nodes on the line, thus completing the mainline addressing work. When the end node (TYPE=0) is encountered, the line can also be considered to have been addressed.
[0092] S4 Figure 6 As shown, after the main control board completes the addressing of the relevant nodes on the main line, it processes and addresses the relevant nodes on the branch line in sequence according to the obtained addressing order of the relevant nodes on the main line.
[0093] Specifically: After the main control board completes the addressing of the main line nodes, it processes the branch nodes with TPYE>1 on the main line in sequence according to the obtained line node number order, and assigns the corresponding branch node number by means of methods not limited to turning off the resistor or sending pulse hardware.
[0094] Step S4 specifically includes:
[0095] After the S41 main control board completes the mainline addressing, it finds the branch node with the smallest number on the mainline (if it exists, it enters the branch line addressing process; if it does not exist, it means there is only a mainline node, so the entire bus node addressing is complete). It then performs open-circuit processing on the remaining unprocessed branch nodes. That is, the branch node needs to record whether the mainline and branch lines attached to its node have been numbered before the branch node is considered to be fully numbered. This is to start the branch line numbering work under the branch node with the smallest number. Since the child nodes on the mainline of the branch node have already been numbered in the previous round of mainline numbering process, the branch line numbering starts directly from the first child node attached to the first branch of the branch node. At this time, the first child node on the first branch can be regarded as the first node of this line.
[0096] Assume there exists a branch node A with the smallest number on the current main line, and A's TPYE = m A m A >1 means that the successor branches of this trunk node are m. A -1 path, because by convention each node, except for the terminal node, has one successor main path branch and multiple side path branches, therefore the branch node A must have at least 2 child nodes.
[0097] First, connect the first path of the successor branch of branch node A, that is, connect the subsequent main path branch A of node A. 主 The addressing of the main loop nodes has been completed in the previous round, and the remaining m A If the node attached to the -1 branch is unaddressed and all other branches are closed, then the subsequent child nodes attached to the first branch under branch node A are numbered according to steps S32-S34. At this time, the eigenvalue threshold should be V. 分 Repeat until the first branch A under that branch node A is completed. 分1 The mainline nodes are addressed, and the newly numbered nodes are configured according to the rules after addressing. This includes bypassing subsequent branch resistors, setting indicator lights, and so on. The main control board records the first branch A under this branch node A. 分1 The secondary branch nodes exist on the circuit; this application does not limit the threshold voltage, and the value varies depending on the circuit structure. In one circuit case, the threshold voltage V 分 = 2.4V, and V under possible conditions 分 =V 主 .
[0098] If a secondary branch node exists, follow steps S41, S32-S34 to process the first branch A of branch node A. 分1 The smallest numbered secondary branch node A 分1A Number the first branch line and repeat the steps until the smallest numbered branch node A on the main line and all its branches m are completed. A Addressing of nodes mounted on the -1 branch line.
[0099] S43 Following steps S3, S41, and S42, for the second smallest branch node B on the main line, B's TYPE = m B m B >1, perform operations on all m under it. B Addressing of -1 branch line nodes;
[0100] S54 returns the smallest unaddressed branch node C on the next main branch, and repeats this process for all m nodes under node C. C-1 channel is activated until the main control board completes the numbering of all branch nodes on the main line and all nodes mounted on each branch.
[0101] S5 automatically addresses the installed sensor nodes according to the actual installation route, draws the predecessor parent node and successor child node of each node, and finally re-addresses the nodes according to the agreed rules, and corresponds one-to-one with the location nodes on the system installation route map.
[0102] Example 2
[0103] On the other hand, the present invention also provides an automatic addressing system based on bus sensing device nodes, the system comprising:
[0104] The node setting module is used to set each sensor node according to the structure of the actual installed line. The structure of the line includes: a main line and several branch lines.
[0105] The node classification module is used to determine the internal identifier GUID corresponding to each sensor node and the index TYPE used to distinguish the node type, TYPE = 0, 1, 2, ..., n, where n ≥ 1. Specifically, the sensor nodes are classified into node types according to the structure of the installation line, including: head node, end node, trunk / branch line main node, and branch node. The head node is the parent node itself, with TYPE = m and m > 0; the end node has one parent node and zero child nodes, with TYPE = 0; the trunk / branch line main node has one parent node and one child node, i.e., TYPE = 1; and the branch node has one parent node and more than one child node, with TYPE = t and t > 1.
[0106] The mainline node addressing module is used to send broadcast commands through the main control board, traverse each sensor node, sequentially read the internal code GUID of each node and determine the current sensor node type TYPE, and address the relevant nodes on the mainline according to the judgment method based on the value of the index TYPE; the main control board is used to obtain the node order on the current loop by judging the voltage drop or resistance value, and each node sends back the node code GUID, the node type index TYPE and the characteristic value VALUE to the main control board, where the characteristic value VALUE is the voltage and / or resistance value of the current node;
[0107] The branch line node addressing module is used to complete the addressing of relevant nodes on the main line through the main control board, and then process and address the relevant nodes on the branch line in sequence according to the obtained addressing order of relevant nodes on the main line.
[0108] The corresponding module is used to automatically address the installed sensor nodes according to the actual installation line, draw the predecessor parent node and successor child node of each node, and finally re-address the nodes according to the agreed rules, and correspond one-to-one with the location nodes on the system installation route map.
[0109] Furthermore, this embodiment includes:
[0110] The mainline node addressing module specifically includes:
[0111] The initialization unit is used to send a broadcast command through the main control board to obtain the GUID, index TYPE and current node characteristic value VALUE of each sensor node. After receiving the start command, each sensor node performs an initialization operation, which includes clearing the original address, clearing the signal indicator mark, and opening the main line / branch line resistor.
[0112] The judgment unit is used to obtain the entire line node information through the main control board, and then send a first addressing instruction. The relevant nodes on the main line receive the instruction and determine whether their own node characteristic value has reached the threshold voltage V. 主 ,
[0113] If the condition is met, the node returns its own GUID and TYPE to the main control board, performs its own addressing settings, and reports itself to the main control board as the first node.
[0114] Otherwise, move to the next trunk / branch master node and perform the above condition judgment until the first node is found and addressed.
[0115] The addressing unit is used to continue issuing a second addressing instruction through the main control board, using the condition judgment in the judgment unit until the second node is found and addressed.
[0116] The iterative unit is used to repeatedly issue mainline addressing instructions through the main control board until all nodes that meet the conditions on the line have responded, thus completing the addressing of the relevant nodes in the mainline. When the end node is encountered during traversal, it is also considered that the mainline has been addressed.
[0117] Furthermore, this embodiment includes:
[0118] The branch line node addressing module specifically includes:
[0119] The minimum branch node determination unit is used to determine whether, after the main control board completes the addressing of relevant nodes on the main line, if there is a minimum branch node A on the main line, then the minimum branch node addressing unit is entered; otherwise, the addressing is completed and the process ends.
[0120] The minimum branch node addressing unit is used to address the branch node A with the minimum address as specified by the index TPYE = m. A And m A >1, meaning that the trunk node has m successor branches. A -1 path, and sequentially address the nodes attached to the corresponding branch line;
[0121] Other branch node addressing units are used to sequentially address other branch nodes existing on the main line;
[0122] Other mainline node addressing units are used to return the smallest incompletely addressed branch node C on the next mainline, and the corresponding index TPYE = m C And m C >1, Repeat the process for all m nodes under the current node C. C -1 channel is activated until the main control board completes the numbering of all branch nodes on the main line and all nodes mounted on each branch below it.
[0123] Furthermore, this embodiment also includes:
[0124] The minimum branch node addressing unit specifically includes:
[0125] The first path A, which is the successor branch of node A 分1 If the circuit is activated and all other branch paths are closed, then the mainline node corresponding to the first branch under branch node A is addressed using the following method:
[0126] After the main control board obtains the node information, it sends an addressing command. When the relevant child node receives the command, it determines that its own node characteristic value has reached the threshold voltage V. 分 When the node returns its own GUID and TYPE information to the main control board, it performs its own numbering operation and reports itself to the main control board as the first child node, and sets the addressing completed indicator light and bypasses the node resistor to facilitate the numbering of subsequent nodes.
[0127] The main control board repeatedly issues addressing instructions until all eligible nodes on the line have responded. Then, it records the node sequence and the numbers of all child nodes on the line, repeating this process until the first branch A under branch node A is completed. 分1 The mainline nodes are addressed, and the main control board records the first branch A under branch node A. 分1 The secondary branch node that exists above;
[0128] Determine if a secondary branch node exists. If it exists, then proceed with the first branch A of branch node A. 分1 The smallest numbered secondary branch node A 分1ANumber the first branch line below;
[0129] Repeat the above scheme until the smallest branch node A on the main line and all its m nodes are completed. A -1. Perform the addressing of nodes attached to the branch line; otherwise, terminate the addressing of the first branch.
[0130] like Figure 4 and Figure 5 As shown, to more clearly illustrate the solution of this application, the following example is provided: In the same power distribution circuit, the embodiments of the present invention provide...
[0131] 1. The voltage and resistance values of each node have the characteristics of the main line and the branch line. For example, it is not limited to the same voltage value of the main line, but the voltage drop at the branch point.
[0132] 2. Each node is capable of transmitting Dx back to the main control board, namely the node GUID, TYPE, and VALUE, which are the agreed voltage value, resistance value, or other characteristic values T that can distinguish the trunk line and branch line.
[0133] 3. The main control board sends a broadcast command and sequentially reads the GUID, TYPE, and T values returned by each node. The node type can be identified based on the T value, allowing identification of each node on the current mainline loop. The resistors of the mainline nodes can be switched off sequentially, or not limited to this method, thus numbering the mainline nodes. After numbering the mainline nodes, the original sequence numbers {D1, D4, D6, D7, D12} are changed to {A1, A2, A3, A4, A5}. Furthermore, A1 (D1), A2 (D4), and A3 (D6) are branch nodes, with 1, 1, and 2 branches (excluding the mainline branches of these branch nodes) respectively.
[0134] 4. The main control board, according to the line sequence, processes the successor branch numbering for the smallest unnumbered branch node A1 (D1) on the main line. It opens other branch nodes A2 (D4) and A3 (D6) using hardware methods, not limited to turning off resistors or sending pulses, to enable the first path of the successor branch of node A1 (D1), while closing all other paths. This is done according to operation 3 (operation 3 requires modifying the threshold V when processing branch numbering). 主 For V 分 Perform the numbering of the first branch line under this branch node, and obtain the new numbering of the child node with the original sequence number {D2, D3} as {A6, A7}.
[0135] 5. Repeat steps 3 and 4 to traverse all subsequent branches of A2(D4), complete the successor branch numbering of the second branch node A2(D4) on the main line, and obtain the new number A8 for the child node with the original sequence number D5.
[0136] 6. Following steps 3 and 4, connect the first path of the successor branch of the last branch node A3 (D6) with TYPE>1 on the main line, and close the other paths to obtain the new number A9 for the child node with the original sequence number D8.
[0137] 7. Repeat step 6 to enable the second successor branch of branch node A3(D6), while closing other branches. This will result in the new numbers {A10, A11} for the child nodes whose original sequence numbers are {D9, D10}, and A10(D9) will become the new branch node on the second successor branch of branch node A3(D6).
[0138] 8. Repeat step 6, sequentially connecting and numbering the successor branches under the new branch node A10 (D9) until the new numbering of the branches under this node is completed, and the new number of the child node with the original sequence number D11 is obtained as A12.
[0139] 12. The node number on the entire line is the node number at the corresponding location on the line location map of the system.
[0140] 13. The nodes are numbered automatically according to the final sorted order [D1, D4, D6, D7, D12, D2, D3, D5, D8, D9, D10, D11], which corresponds to nodes A1-A12 on the system location map. Therefore, automatically numbering the sensor nodes sequentially according to the line structure reduces cost and complexity, and improves operational efficiency.
[0141] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.
[0142] Obviously, those skilled in the art can make various modifications and variations to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Therefore, if these modifications and variations to the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention also intends to include these modifications and variations.
Claims
1. An automatic addressing method based on busbar sensing device nodes, characterized in that: The method includes the following steps: S1 sets up each sensor node according to the structure of the actual installed line. The structure of the line includes: a main line and several branch lines. S2 determines the internal identifier GUID for each sensor node and the index TYPE used to distinguish the node type, TYPE = 0, 1, 2, ..., n, where n ≥ 0. Specifically, the sensor nodes are classified into node types according to the structure of the installation line, including: head node, end node, trunk / branch line main node, and branch node. The head node is the parent node itself, with TYPE = m and m > 0. The end node has one parent node and zero child nodes, with TYPE = 0. The trunk / branch line main node has one parent node and one child node, i.e., TYPE = 1. The branch node has one parent node and more than one child node, with TYPE = t and t > 1. The S3 main control board sends a broadcast command to traverse each sensor node, sequentially read the internal code GUID of each node and determine the current sensor node type TYPE, and address the relevant nodes on the main line according to the judgment method based on the value of the index TYPE; the main control board is used to obtain the node order on the current loop by judging the voltage drop or resistance value, and each node sends back the node code GUID, the node type index TYPE and the characteristic value VALUE to the main control board, where the characteristic value VALUE is the voltage and / or resistance value of the current node; After the main control board in S4 completes the addressing of the relevant nodes on the main line, it processes and addresses the relevant nodes on the branch line in sequence according to the obtained addressing order of the relevant nodes on the main line. S5 automatically addresses the installed sensor nodes according to the actual installation route, draws the predecessor parent node and successor child node of each node, and finally re-addresses the nodes according to the agreed rules, and corresponds one-to-one with the location nodes on the system installation route map.
2. The automatic addressing method based on busbar sensing device nodes according to claim 1, characterized in that: Step S3 specifically includes the following steps: The main control board in S31 sends a broadcast command to obtain the GUID, index TYPE, and current node characteristic value VALUE of each sensor node. After receiving the start command, each sensor node performs an initialization operation, which includes clearing the original address, clearing the signal indicator mark, and opening the main line / branch line resistor. After obtaining the node information of the entire line, the main control board in S32 sends a first addressing instruction. The relevant nodes on the main line receive the instruction and determine whether their own node characteristic value has reached the threshold voltage V. 主 , If the condition is met, the node returns its own GUID and TYPE to the main control board, performs its own addressing settings, and reports itself to the main control board as the first node. Otherwise, move to the next trunk / branch master node and perform the above condition judgment until the first node is found and addressed. The main control board in step S33 continues to issue a second addressing instruction, using the conditional judgment in step S31, until the second node is found and addressed. The main control board in S34 repeatedly sends out main line addressing instructions until all nodes that meet the conditions on the line have responded, thus completing the addressing of the relevant nodes in the main line. When the end node is encountered during traversal, it is also considered that the main line has been addressed.
3. The automatic addressing method based on busbar sensing device nodes according to claim 2, characterized in that: Step S4 specifically includes the following steps: After the main control board completes the addressing of the relevant nodes on the main line, if there is a branch node A with the smallest address on the main line, then proceed to step S42; otherwise, the addressing is completed and the process ends. S42 Calculates the index TPYE = m corresponding to the least-addressed branch node A. A And m A >1, meaning that the trunk node has m successor branches. A -1 path, and sequentially address the nodes attached to the corresponding branch line; S43 sequentially addresses the other branch nodes existing on the main line; S44 returns the smallest incompletely addressed branch node C on the next main branch, with the corresponding index TPYE = m. C And m C >1, Repeat the process for all m nodes under node C. C -1 channel is activated until the main control board completes the numbering of all branch nodes on the main line and all nodes mounted on each branch below it.
4. The automatic addressing method based on busbar sensing device nodes according to claim 3, characterized in that: Step S42 specifically includes the following steps: S421 describes the first path A, the successor branch of branch node A. 分1 If the circuit is activated and all other branch paths are closed, then the mainline node corresponding to the first branch under branch node A is addressed using the following method: After the main control board obtains the node information, it sends an addressing command. When the relevant child node receives the command, it determines that its own node characteristic value has reached the threshold voltage V. 分 When the node returns its own GUID and TYPE information to the main control board, it performs its own numbering operation and reports itself to the main control board as the first child node, and sets the addressing completed indicator light and bypasses the node resistor to facilitate the numbering of subsequent nodes. The main control board repeatedly issues addressing instructions until all eligible nodes on the line have responded. Then, it records the node sequence and the numbers of all child nodes on the line, repeating this process until the first branch A under branch node A is completed. 分1 The mainline nodes are addressed, and the main control board records the first branch A under branch node A. 分1 The secondary branch node that exists above; S422 determines whether a secondary branch node exists. If it exists, then the first branch A of branch node A is... 分1 The smallest numbered secondary branch node A 分1A Number the first branch line below; S423 repeats the above steps until the smallest numbered branch node A on the main line and all its sub-nodes m are completed. A -1. Perform the addressing of nodes attached to the branch line; otherwise, terminate the addressing of the first branch.
5. An automatic addressing system based on busbar sensing device nodes, characterized in that: The system includes: The node setting module is used to set each sensor node according to the structure of the actual installed line. The structure of the line includes: a main line and several branch lines. The node classification module is used to determine the internal identifier GUID corresponding to each sensor node and the index TYPE used to distinguish the node type, TYPE = 0, 1, 2, ..., n, where n ≥ 0. Specifically, the sensor nodes are classified into node types according to the structure of the installation line, including: head node, end node, trunk / branch line main node, and branch node. The head node is the parent node itself, with TYPE = m and m > 0; the end node has one parent node and zero child nodes, with TYPE = 0; the trunk / branch line main node has one parent node and one child node, i.e., TYPE = 1; and the branch node has one parent node and more than one child node, with TYPE = t and t > 1. The mainline node addressing module is used to send broadcast commands through the main control board, traverse each sensor node, sequentially read the internal code GUID of each node and determine the current sensor node type TYPE, and address the relevant nodes on the mainline according to the judgment method based on the value of the index TYPE; the main control board is used to obtain the node order on the current loop by judging the voltage drop or resistance value, and each node sends back the node code GUID, the node type index TYPE and the characteristic value VALUE to the main control board, where the characteristic value VALUE is the voltage and / or resistance value of the current node; The branch line node addressing module is used to complete the addressing of relevant nodes on the main line through the main control board, and then process and address the relevant nodes on the branch line in sequence according to the obtained addressing order of relevant nodes on the main line. The corresponding module is used to automatically address the installed sensor nodes according to the actual installation line, draw the predecessor parent node and successor child node of each node, and finally re-address the nodes according to the agreed rules, and correspond one-to-one with the location nodes on the system installation route map.
6. The automatic addressing system based on bus sensing device nodes according to claim 5, characterized in that: The mainline node addressing module specifically includes: The initialization unit is used to send a broadcast command through the main control board to obtain the GUID, index TYPE and current node characteristic value VALUE of each sensor node. After receiving the start command, each sensor node performs an initialization operation, which includes clearing the original address, clearing the signal indicator mark, and opening the main line / branch line resistor. The judgment unit is used to obtain the entire line node information through the main control board, and then send a first addressing instruction. The relevant nodes on the main line receive the instruction and determine whether their own node characteristic value has reached the threshold voltage V. 主 , If the condition is met, the node returns its own GUID and TYPE to the main control board, performs its own addressing settings, and reports itself to the main control board as the first node. Otherwise, move to the next trunk / branch master node and perform the above condition judgment until the first node is found and addressed. The addressing unit is used to continue issuing a second addressing instruction through the main control board, using the condition judgment in the judgment unit until the second node is found and addressed. The iterative unit is used to repeatedly issue mainline addressing instructions through the main control board until all nodes that meet the conditions on the line have responded, thus completing the addressing of the relevant nodes in the mainline. When the end node is encountered during traversal, it is also considered that the mainline has been addressed.
7. The automatic addressing system based on bus sensing device nodes according to claim 6, characterized in that: The branch line node addressing module specifically includes: The minimum branch node determination unit is used to determine whether, after the main control board completes the addressing of relevant nodes on the main line, if there is a minimum branch node A on the main line, then the minimum branch node addressing unit is entered; otherwise, the addressing is completed and the process ends. The minimum branch node addressing unit is used to address the branch node A with the minimum address as specified by the index TPYE = m. A And m A >1, meaning that the trunk node has m successor branches. A -1 path, and sequentially address the nodes attached to the corresponding branch line; Other branch node addressing units are used to sequentially address other branch nodes existing on the main line; Other mainline node addressing units are used to return the smallest incompletely addressed branch node C on the next mainline, and the corresponding index TPYE = m C And m C >1, Repeat the process for all m nodes under the current node C. C -1 channel is activated until the main control board completes the numbering of all branch nodes on the main line and all nodes mounted on each branch below it.
8. The automatic addressing system based on bus sensing device nodes according to claim 7, characterized in that: The minimum branch node addressing unit specifically includes: The first path A, which is the successor branch of node A 分1 If the circuit is activated and all other branch paths are closed, then the mainline node corresponding to the first branch under branch node A is addressed using the following method: After the main control board obtains the node information, it sends an addressing command. When the relevant child node receives the command, it determines that its own node characteristic value has reached the threshold voltage V. 分 When the node returns its own GUID and TYPE information to the main control board, it performs its own numbering operation and reports itself to the main control board as the first child node, and sets the addressing completed indicator light and bypasses the node resistor to facilitate the numbering of subsequent nodes. The main control board repeatedly issues addressing instructions until all eligible nodes on the line have responded. Then, it records the node sequence and the numbers of all child nodes on the line, repeating this process until the first branch A under branch node A is completed. 分1 The mainline nodes are addressed, and the main control board records the first branch A under branch node A. 分1 The secondary branch node that exists above; Determine if a secondary branch node exists. If it exists, then proceed with the first branch A of branch node A. 分1 The smallest numbered secondary branch node A 分1A Number the first branch line below; Repeat the above scheme until the smallest branch node A on the main line and all its m nodes are completed. A -1. Perform the addressing of nodes attached to the branch line; otherwise, terminate the addressing of the first branch.
Citation Information
Patent Citations
Wireless sensor network security routing method based on IPv6 addressing
CN104811934A
Automatic addressing method and system for serial port equipment
CN117609116A