Branch address binding method and device and branch insulation detection system
Through the coordinated operation of the power supply switching unit and the main control unit, the communication address of the Hall element and the physical location of the detection branch are automatically bound, which solves the problems of cumbersome operation and errors caused by manual intervention in the existing technology and realizes reliable insulation detection of the high-voltage DC system.
Patent Information
- Application Number
- CN202410307559.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2025-09-16
AI Technical Summary
In high-voltage DC systems, the assignment of communication addresses for digital Hall elements and the correspondence between their physical locations in branches requires manual intervention, which is cumbersome and prone to errors.
The power supply port is switched through the power supply switching unit, and the main control unit generates a correspondence between the communication address of the Hall element and the physical position of the detection branch to achieve automatic binding.
It avoids manual intervention, simplifies the operation process, improves reliability, realizes automatic allocation and binding of Hall element communication addresses, and supports reliable insulation detection of high-voltage DC systems.
Smart Images

Figure CN120652225A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of high-voltage insulation detection, and in particular to a branch address binding method, device, and branch insulation detection system. Background Art
[0002] In a high-voltage DC system, since the positive and negative busbars are floating, if the insulation at one end of the busbar decreases, high voltage will be generated to the ground, creating a risk of electric shock. Moreover, if the insulation at the other end also decreases, a DC busbar short circuit fault will occur. Therefore, it is very necessary and important to detect the insulation of the positive and negative busbars to the ground.
[0003] Insulation testing in high-voltage DC systems involves testing both main circuits and branches. Branch circuit testing typically uses a leakage Hall effect sensor. However, with technological advancements, leakage Hall effect sensors are gradually transitioning from analog to digital. In digital Hall effect sensor solutions, since each Hall effect sensor is connected to the communication port of the main control unit, assigning communication addresses to these digital Hall effect sensors and mapping them to the physical locations of the branches presents a pressing challenge.
[0004] One of the current mainstream solutions involves manually communicating with the Hall element individually based on the branch position detected by the element to set a communication address corresponding to its physical location. Another solution is to set a different communication address for the Hall element at the factory, identify the communication address through external labeling, and establish a correspondence between the communication address and the physical location during assembly of the Hall element. However, both current solutions require manual intervention, are cumbersome, and prone to errors. Summary of the Invention
[0005] The present application provides a branch address binding method, device and branch insulation detection system, which are used to provide a solution for automatically allocating the communication address of the Hall element and corresponding to the physical location of the corresponding detection branch.
[0006] In a first aspect, the present application provides a branch address binding method, which is applied to a branch insulation detection system, wherein the branch insulation detection system includes a main control unit, a power supply switching unit, and multiple Hall elements, wherein the main control unit is respectively communicatively connected to the power supply switching unit and each Hall element, the power supply switching unit has multiple power supply ports, and the physical position of each power supply port corresponds to the physical position of each detection branch, and each Hall element corresponds to detecting the leakage current of each detection branch; the method includes:
[0007] The power supply switching unit performs a switching operation on each power supply port in response to the switching instruction, and the main control unit generates a corresponding relationship between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, thereby completing the automatic binding of the detection branch addresses;
[0008] The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
[0009] In one possible design, switching the power status of each power port one by one includes:
[0010] The power switching unit responds to the switching instruction to connect the first power port for a second time period, disconnects the first power port after the second time period, and connects another power port for the second time period, until each power port is connected and disconnected one by one, thereby completing the switching of the power supply status of all power ports;
[0011] The switching instruction is used to indicate the power-on timing of each power supply port.
[0012] In a possible design, the main control unit generates a correspondence between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, including:
[0013] The main control unit obtains the power-on timing of each power port according to the switching operation, and assigns a corresponding communication address to each Hall element according to the power-on timing of each power port and the correspondence between the physical position of each power port and the physical position of each detection branch, and obtains the correspondence between the communication address of each Hall element and the physical position of each detection branch.
[0014] In a possible design, before the power switching unit performs the switching operation on each power port in response to the switching instruction, the method further includes:
[0015] The power supply switching unit generates the switching instruction through a logic on-off circuit; or
[0016] The main control unit generates the switching instruction in response to a user instruction and sends the switching instruction to the power supply switching unit; or
[0017] The power supply switching unit generates the switching instruction in response to a manual on / off operation of each power supply port.
[0018] In one possible design, the power supply switching unit generates the switching instruction through the logic on-off circuit, including:
[0019] The power supply switching unit detects the mechanical contact operation on the logic on-off circuit and generates the switching instruction according to the mechanical contact operation, where the mechanical contact operation includes a button operation or a dial operation.
[0020] In a possible design, the main control unit is connected to each of the Hall elements via a serial port or a CAN bus.
[0021] In one possible design, if any Hall element is replaced, the method further includes:
[0022] The power supply switching unit connects to the target power port and cuts off the remaining power ports except the target power port, and resets the communication address of the replaced Hall element according to the identification information of the target power port, and the target power port is the power port corresponding to the replaced Hall element.
[0023] In one possible design, the Hall element includes a digital Hall sensor.
[0024] In a second aspect, the present application provides a branch address binding device, which is applied to a branch insulation detection system, wherein the branch insulation detection system includes a main control unit, a power supply switching unit, and multiple Hall elements, wherein the main control unit is respectively communicated with the power supply switching unit and each Hall element, the power supply switching unit has multiple power supply ports, and the physical position of each power supply port corresponds to the physical position of each detection branch, and each Hall element corresponds to detecting the leakage current of each detection branch; the device includes:
[0025] A switching module, configured to perform a switching operation on each power port in response to a switching instruction;
[0026] A binding module, configured to generate a correspondence between the communication address of each Hall element and the physical location of each detection branch according to the switching operation, thereby automatically binding the addresses of the detection branches;
[0027] The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
[0028] In one possible design, the switching module is further configured to:
[0029] In response to the switching instruction, the first power port is turned on for a second time period, and after the second time period, the first power port is turned off and another power port is turned on for the second time period, until each power port is turned on and off one by one, thereby completing the switching of the power supply status of all power ports;
[0030] The switching instruction is used to indicate the power-on timing of each power supply port.
[0031] In one possible design, the binding module is specifically configured to:
[0032] According to the switching operation, the power-on timing of each power port is obtained, and according to the power-on timing of each power port and the correspondence between the physical position of each power port and the physical position of each detection branch, each Hall element is assigned a corresponding communication address, and the correspondence between the communication address of each Hall element and the physical position of each detection branch is obtained.
[0033] In one possible design, the apparatus further includes an instruction generation module; the instruction generation module is configured to:
[0034] Generate the switching instruction through a logic on-off circuit; or
[0035] generating the switching instruction in response to a user instruction and sending the switching instruction to the power supply switching unit; or
[0036] The switching instruction is generated in response to a manual on / off operation of each power supply port.
[0037] In one possible design, the instruction generation module is further configured to:
[0038] The mechanical contact operation on the logic on-off circuit is detected, and the switching instruction is generated according to the mechanical contact operation, where the mechanical contact operation includes a button operation or a dial operation.
[0039] In a possible design, the main control unit is connected to each of the Hall elements via a serial port or a CAN bus.
[0040] In one possible design, if any Hall element is replaced, the device further includes a reset module; the reset module is configured to:
[0041] The target power port is connected and the other power ports except the target power port are cut off, and the communication address of the replaced Hall element is reset according to the identification information of the target power port, where the target power port is the power port corresponding to the replaced Hall element.
[0042] In one possible design, the Hall element includes a digital Hall sensor.
[0043] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0044] The memory stores computer-executable instructions;
[0045] The processor executes the computer-executable instructions stored in the memory to implement any possible branch address binding method provided in the first aspect.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any possible branch address binding method provided in the first aspect.
[0047] In a fifth aspect, the present application provides a computer program product, comprising computer-executable instructions, which, when executed by a processor, are used to implement any possible branch address binding method provided in the first aspect.
[0048] In the sixth aspect, the present application provides a branch insulation detection system, including a main control unit, a power supply switching unit and multiple Hall elements, the main control unit is respectively communicated with the power supply switching unit and each Hall element, the power supply switching unit has multiple power supply ports, the physical position of each power supply port corresponds to the physical position of each detection branch, and each of the Hall elements detects the leakage current of each detection branch.
[0049] The present application provides a branch address binding method, device, and branch insulation detection system. The branch address binding method is applied to the branch insulation detection system, which includes a main control unit, a power supply switching unit, and multiple Hall elements. The main control unit is communicatively connected to the power supply switching unit and each Hall element. The power supply switching unit has multiple power supply ports, each of which has a physical location corresponding to the physical location of each detection branch. Each Hall element detects leakage current in each detection branch. First, the power supply switching unit can respond to the switching instruction to perform a switching operation on each power supply port, and then the main control unit generates a corresponding relationship between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, and completes the automatic binding of the addresses of each detection branch. It provides a solution for automatically assigning communication addresses to the Hall elements of each detection branch and establishing a corresponding relationship between them and the physical positions of each detection branch. It can realize the automatic assignment of communication addresses of each Hall element and automatic binding with the physical positions of the detection branches, avoid manual participation and do not need to attach labels to the Hall elements when leaving the factory, simplify the operation process and improve operational reliability, which is conducive to the smooth implementation of branch insulation detection of digital Hall elements, and can provide a reliable and convenient Hall element communication address allocation and binding solution for insulation detection of high-voltage DC systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 A schematic structural diagram of a branch insulation detection system provided in an embodiment of the present application;
[0052] Figure 2 A flow chart of a branch address binding method provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of another branch address binding method provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of the structure of a branch address binding device provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the structure of another branch address binding device provided in an embodiment of the present application;
[0056] Figure 6 A schematic structural diagram of another branch address binding device provided in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of methods and apparatus consistent with certain aspects of the present application, as detailed in the appended claims.
[0059] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the numbers used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0060] Currently, there are two mainstream approaches to assigning communication addresses to digital Hall effect elements and mapping them to the physical locations of branch circuits. One involves manually communicating with each Hall effect element individually to set a communication address corresponding to its physical location based on the branch location detected by the element. The other involves assigning a different communication address to the Hall effect element at the factory, identifying the communication address with a label, and then establishing the correspondence between the communication address and the physical location during assembly. However, both approaches require manual intervention, are cumbersome, and prone to errors.
[0061] In response to the above-mentioned problems existing in the prior art, the present application provides a branch address binding method, device and branch insulation detection system, and the branch address binding method is applied to the branch insulation detection system. The inventive concept of the branch address binding method provided by the present application is: by mapping the physical position of each detection branch to each power supply port of the power supply switching unit, and then combining the switching of the power-on timing of each power supply port of the power supply switching unit, the communication address of the Hall element for detecting the leakage current of each detection branch is assigned one by one, thereby realizing the automatic binding of the communication address of each Hall element with the physical position of its corresponding detection branch through two-level mapping, so that the branch insulation detection system has the ability to automatically assign the communication address of each Hall element and automatically bind it with the physical position of the corresponding detection branch. Compared with the relevant technology, it can avoid manual participation and no external label is required when the Hall element leaves the factory, which can simplify the operation process and improve the operation reliability, which is conducive to the smooth implementation of branch insulation detection of digital Hall elements, and can provide a reliable and convenient Hall element communication address allocation and binding solution for insulation detection of high-voltage DC systems.
[0062] Figure 1 This is a schematic diagram of the structure of a branch insulation detection system provided in an embodiment of the present application. Figure 1 As shown, the branch insulation detection system provided in the embodiment of the present application includes: a main control unit 101, a power supply switching unit 102 and multiple Hall elements.
[0063] The main control unit 101 is respectively connected to the power supply switching unit 102 and each Hall element for communication. Each Hall element detects the leakage current of each detection branch. In other words, a Hall element is deployed on each detection branch to detect the leakage current of its detection branch. Figure 1 As shown, there are n detection branches, and each detection branch is correspondingly deployed with a Hall element, namely Hall element 1, Hall element 2 and Hall element n, etc. The value of n is a positive integer, and its specific value is determined by the detection branch in the actual working conditions.
[0064] Furthermore, the power switching unit 102 has multiple power ports, each of which corresponds to a detection branch, so that the power switching unit 102 can power the Hall element of each detection branch. In some embodiments, the physical location of each power port of the power switching unit 102 corresponds to the physical location of each detection branch. For example, power port 1 corresponds to detection branch 1, and Hall element 1 is used to detect leakage current in detection branch 1; power port 2 corresponds to detection branch 2, and Hall element 2 is used to detect leakage current in detection branch 2; power port n corresponds to detection branch n, and Hall element n is used to detect leakage current in detection branch n, etc. Figure 1 The detection branches are not shown in FIG.
[0065] As described above, the main control unit 101 is respectively communicated with the power supply switching unit 102 and each Hall element. Therefore, each Hall element can report the leakage current of the corresponding detection branch it detects to the main control unit 101. The main control unit 101 determines whether there is an insulation fault in the detection branch based on the leakage current of each detection branch, thereby realizing branch insulation detection.
[0066] In some embodiments, the main control unit 101 can be connected to each Hall element via a serial port, a CAN bus, or other communication methods. The serial port can be, for example, an RS485 serial port.
[0067] The main control unit 101 is connected to the power switching unit 102 in communication, so that the power switching unit 101 can switch the power supply status of each power port in response to the switching instruction issued by the main control unit 101. The communication connection method between the main control unit 101 and the power switching unit 102 is not limited in this embodiment of the application.
[0068] In some embodiments, each Hall element may be, for example, a digital Hall sensor.
[0069] From the description of the above embodiment, it can be seen that since each Hall element uniformly reports the leakage current of the corresponding detection branch it detects to the main control unit 101, that is, each Hall element is uniformly connected to the communication port of the main control unit 101, therefore, in order to realize branch insulation detection in the branch insulation detection system provided in the above embodiment, it is necessary to assign a communication address to each Hall element and correspond to the physical position of the detection branch. Figure 2 The illustrated embodiment proposes a branch address binding method to solve the possible implementation of allocating communication addresses to each Hall element and corresponding them to the physical location of the detection branch.
[0070] Figure 2 A flow chart of a branch address binding method provided in an embodiment of the present application, which can be applied to Figure 1 The branch circuit insulation detection system shown in Figure 1 is as follows. Figure 2 As shown, the branch address binding method provided in the embodiment of the present application includes:
[0071] S101: The power supply switching unit performs a switching operation on each power supply port in response to a switching instruction.
[0072] The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
[0073] The power switching unit performs a switching operation on each power port it has in response to the switching instruction. For example, the switching operation may be to first disconnect the power states of all power ports for a period of time and then switch the power states of each power port one by one.
[0074] In some embodiments, the power switching unit switches the power state of each power port one by one. For example, after disconnecting all power ports for a first period of time, the power switching unit responds to the switching instruction to connect the first power port, such as power port 1, for a second period of time. After the second period of time, the first power port is disconnected and connected to another power port, such as power port 2, for a second period of time. After the second period of time, the other power port is disconnected and connected to the next power port, such as power port 3, for a second period of time. And so on, until each power port is connected and then disconnected one by one for a second period of time, thereby completing the switching of the power state of all power ports. The switching instruction indicates the power-on sequence of each power port, and the power-on sequence is the order of connecting and disconnecting each power port, such as the first power port, the other power port, and the next power port.
[0075] In some embodiments, the switching instruction can be issued by the main control unit to the power switching unit, or it can be triggered by the power switching unit itself, or it can be generated by manually performing an on-off operation on the power switching unit. This embodiment of the present application does not limit this.
[0076] S102: The main control unit generates a correspondence between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, and completes automatic binding of the addresses of each detection branch.
[0077] The power supply switching unit performs a switching operation on the power supply port in response to the switching instruction, and can control the power-on status of different power supply ports. When the power supply port is connected, the connected power supply port supplies power to the Hall element on the detection branch at the physical position corresponding to its physical position. The main control unit assigns a communication address to the Hall element currently being powered. Therefore, by switching the power-on status of each power supply port one by one, the assignment of the communication address of each Hall element can be achieved one by one. The communication address of the Hall element corresponds to the physical position of the currently connected power supply port, and the physical position of each power supply port has a corresponding relationship with the physical position of each detection branch. Therefore, based on the physical position of each power supply port, the correspondence between the communication address of each Hall element and the physical position of each detection branch can be obtained, thereby realizing the automatic assignment of the communication address of each Hall element and the correspondence between the physical position of each Hall element and the physical position of each detection branch, thereby realizing the binding of the communication address of each Hall element and the physical position of each detection branch.
[0078] The branch address binding method provided in the embodiment of the present application can be applied to a branch insulation detection system, which includes a main control unit, a power supply switching unit, and multiple Hall elements. The main control unit is respectively connected to the power supply switching unit and each Hall element in communication. The power supply switching unit has multiple power supply ports, and the physical position of each power supply port has a corresponding relationship with the physical position of each detection branch. Each Hall element detects the leakage current of each detection branch. First, the power supply switching unit can perform a switching operation on each power supply port in response to a switching instruction, and then the main control unit generates a corresponding relationship between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, completing the automatic binding of each detection branch address, providing a solution for automatically assigning a communication address to the Hall element of each detection branch and establishing a corresponding relationship with the physical position of each detection branch, realizing automatic assignment of communication addresses and binding with the physical position of the detection branch, avoiding manual participation and eliminating the need for external labels on the Hall element when it leaves the factory, simplifying the operation process and improving operational reliability, facilitating the smooth implementation of branch insulation detection of digital Hall elements, and providing a reliable and convenient Hall element communication address assignment and binding solution for insulation detection of high-voltage DC systems.
[0079] Figure 3 A flow chart of another branch address binding method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the branch address binding method provided in the embodiment of the present application includes:
[0080] S201a: The power supply switching unit generates a switching instruction through a logic on-off circuit.
[0081] The power supply switching unit can generate a switching instruction through a logic on-off circuit and can then automatically perform a switching operation.
[0082] In some embodiments, possible implementations of the power supply switching unit generating a switching instruction through a logic on-off circuit include:
[0083] The power supply switching unit can detect the mechanical contact operation on the logic on-off circuit, and then generate a switching instruction based on the mechanical contact operation. For example, the mechanical contact operation can include a button operation or a dial operation. For example, the user performs a mechanical contact operation on the power supply switching unit so that the power supply switching unit generates a switching instruction, and then can initiate the switching operation in response to the switching instruction. It should be noted that the logic on-off circuit is an on-off circuit on which the user can perform mechanical contact operation, and the embodiments of the present application do not limit the specific form of the logic on-off circuit.
[0084] Alternatively, S201b: the main control unit generates a switching instruction in response to a user instruction and sends the switching instruction to the power supply switching unit.
[0085] The switching instruction can also be issued by the main control unit to the power supply switching unit. For example, the main control unit is provided with a human-machine interface, and the user can issue a user instruction on the human-machine interface. The main control unit generates a switching instruction in response to the user instruction, and then the main control unit sends the switching instruction to the power supply switching unit. Among them, the user instruction is used for the main control unit to generate a switching instruction to trigger the branch address binding method provided in the embodiment of the present application. In addition, the embodiment of the present application does not limit the specific settings and content display of the human-machine interface of the main control unit, and its function is to receive and respond to user instructions.
[0086] Alternatively, S201c: the power supply switching unit generates a switching instruction in response to the manual on / off operation of each power supply port.
[0087] In some embodiments, each power port of the power switching unit can be manually turned on and off according to a preset timing to generate a switching instruction, so that the power switching unit responds to the switching instruction and performs the switching operation to control the power status of each power port according to the preset timing.
[0088] In actual working conditions, a switching instruction may be generated by any of the above methods, so that the power supply switching unit can perform a switching operation in response to the switching instruction.
[0089] S202: The power supply switching unit performs a switching operation on each power supply port in response to the switching instruction.
[0090] The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
[0091] The power switching unit performs a switching operation on each power port it has in response to the switching instruction. For example, the switching operation may be to first disconnect the power states of all power ports for a period of time and then switch the power states of each power port one by one.
[0092] In some embodiments, the power-on state of each power port can be switched one by one. For example, after all power ports are disconnected for a first period of time, the power switching unit responds to the switching instruction to connect power port 1 for a second period of time, disconnects power port 1 after the second period of time and connects power port 2 for a second period of time, disconnects power port 2 after the second period of time and connects power port 3 for a second period of time, and so on, until each power port is connected one by one for a second period of time and then disconnected, thereby completing the switching of the power-on state of all power ports. It can be understood that the timing of connecting and disconnecting each power port one by one, that is, the power-on timing, is indicated by the switching instruction. The power-on timing described here as first connecting power port 1, then power port 2, then power port 3, and so on until all power ports are connected is only an example and does not limit the power-on timing of the power ports.
[0093] S203: The main control unit obtains the power-on timing of each power supply port according to the switching operation, and allocates a corresponding communication address to each Hall element.
[0094] The power switching unit performs switching operations, thereby controlling the power-on status of different power ports. When a power port is connected, the connected power port powers the Hall element on the detection branch at the physical location corresponding to its physical location, and the main control unit can assign a communication address to the Hall element currently being powered. Therefore, the main control unit can obtain the power-on timing of each power port based on the switching operation performed by the power switching unit, and based on this power-on timing, it can assign a corresponding communication address to the Hall element on the detection branch corresponding to the physical location of each power port.
[0095] S204: The main control unit obtains the corresponding relationship between the communication address of each Hall element and the physical position of each detection branch according to the corresponding relationship between the physical position of each power supply port and the physical position of each detection branch.
[0096] The connected power port supplies power to the Hall element on the detection branch at the physical position corresponding to its physical position, and the main control unit can assign a communication address to the Hall element currently being powered. Since the physical position of each power port corresponds to the physical position of each detection branch, it can be seen that the physical position of the detection branch corresponding to it can be obtained based on the physical position of the currently connected power port, thereby obtaining the detection branch corresponding to the connected power port, and then based on the connected power port, the corresponding relationship between the communication address of the Hall element being powered and the detection branch where the Hall element is located, that is, the physical position of the detection branch corresponding to the connected power port, is obtained. Therefore, the corresponding relationship between the communication address of each Hall element and the physical position of each detection branch can be obtained based on the corresponding relationship between the physical position of each power port and the physical position of each detection branch, thereby realizing the binding of the communication address of each Hall element with the physical position of each detection branch.
[0097] The branch address binding method provided in the embodiment of the present application controls the power-on timing of each power supply port by executing a switching operation through the power supply switching unit, and can automatically assign a communication address to each Hall element. Then, based on the correspondence between the physical position of each detection branch and the physical position of each power supply port, the correspondence between the communication address of each Hall element and the physical position of each detection branch can be obtained, thereby realizing the automatic binding of the communication address of each Hall element to the physical position of its corresponding detection branch. The branch address binding method provided in the embodiment of the present application can enable the branch insulation detection system to have the ability to automatically assign the communication address of each Hall element and automatically bind it to the physical position of the corresponding detection branch. The process can avoid manual participation, simplify the operation process and improve operational reliability.
[0098] In some embodiments, the branch address binding method provided in the embodiments of the present application can be performed during the startup and debugging phase of the branch insulation detection system, or can be re-bound after any Hall element is replaced.
[0099] In some embodiments, if any Hall element is replaced, the branch addresses of each Hall element can be re-bound using the steps shown in the above embodiment, or only the replaced Hall element can be targeted for address binding.
[0100] A possible implementation method for targeted address binding is, for example, that the power supply switching unit connects to the target power port and disconnects all other power ports except the target power port, and then resets the communication address of the replaced Hall element based on the identification information of the target power port. Furthermore, based on the correspondence between the physical location of the target power port and the physical location of its corresponding detection branch, a correspondence between the communication address of the replaced Hall element and the physical location of the detection branch is established. The target power port is the power port corresponding to the replaced Hall element, meaning that when the target power port is connected, the target power port supplies power to the replaced Hall element, thereby enabling targeted address binding after the Hall element is replaced.
[0101] Figure 4 This is a structural diagram of a branch address binding device provided in an embodiment of the present application. The branch address binding device is applied to a branch insulation detection system. The branch insulation detection system includes a main control unit, a power supply switching unit, and multiple Hall elements. The main control unit is respectively connected to the power supply switching unit and each Hall element for communication. The power supply switching unit has multiple power supply ports. The physical position of each power supply port corresponds to the physical position of each detection branch. Each Hall element detects the leakage current of each detection branch. Figure 4 As shown, the branch address binding device 400 provided in the embodiment of the present application includes:
[0102] The switching module 401 is configured to perform a switching operation on each power port in response to a switching instruction;
[0103] Binding module 402, used to generate a correspondence between the communication address of each Hall element and the physical location of each detection branch according to the switching operation, and complete automatic binding of the detection branch addresses;
[0104] The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
[0105] In one possible design, the switching module 401 is further configured to:
[0106] In response to the switching instruction, the first power port is connected for a second time, and after the second time, the first power port is disconnected and another power port is connected for a second time, until each power port is connected and disconnected one by one, thereby completing the switching of the power supply status of all power ports;
[0107] The switching instruction is used to indicate the power-on sequence of each power port.
[0108] In one possible design, the binding module 402 is specifically configured to:
[0109] The power-on timing of each power port is obtained according to the switching operation, and according to the power-on timing of each power port and the correspondence between the physical position of each power port and the physical position of each detection branch, each Hall element is assigned a corresponding communication address, and the correspondence between the communication address of each Hall element and the physical position of each detection branch is obtained.
[0110] exist Figure 4 On the basis of Figure 5 A structural diagram of another branch address binding device provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the branch address binding device 400 provided in the embodiment of the present application further includes an instruction generation module 403, which is used to:
[0111] Generate switching instructions through logical on / off circuits; or
[0112] generating a switching instruction in response to a user instruction and sending the switching instruction to the power supply switching unit; or
[0113] A switching instruction is generated in response to the manual on / off operation of each power supply port.
[0114] In one possible design, the instruction generation module 403 is further configured to:
[0115] Detect the mechanical contact operation on the logic on-off circuit and generate a switching instruction according to the mechanical contact operation. The mechanical contact operation includes button operation or dial operation.
[0116] exist Figure 5 On the basis of Figure 6 A structural diagram of another branch address binding device provided in an embodiment of the present application is shown as follows: Figure 6 As shown, the branch address binding device 400 provided in the embodiment of the present application further includes a reset module 404, which is configured to:
[0117] The target power port is connected and the other power ports are cut off. The communication address of the replaced Hall element is reset according to the identification information of the target power port. The target power port is the power port corresponding to the replaced Hall element.
[0118] The branch address binding device provided in the embodiment of the present application can execute each step of the branch address binding method in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0119] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 500 provided in the embodiment of the present application may include: a processor 501, and a memory 502 communicatively connected to the processor 501.
[0120] The memory 502 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer-executable instructions.
[0121] The memory 502 may include a high-speed RAM memory, and may also include a non-volatile memory (NoN-volatile memory), such as at least one disk memory.
[0122] The processor 501 is configured to execute computer-executable instructions stored in the memory 502 to implement a branch address binding method.
[0123] The processor 501 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0124] Optionally, the memory 502 may be independent or integrated with the processor 501. When the memory 502 is a device independent of the processor 501, the electronic device 500 may further include:
[0125] Bus 503 is used to connect processor 501 and memory 502. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be divided into address buses, data buses, control buses, etc., but this does not mean that there is only one bus or only one type of bus.
[0126] Optionally, in a specific implementation, if the memory 502 and the processor 501 are integrated on a chip, the memory 502 and the processor 501 can communicate through an internal interface.
[0127] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores computer execution instructions, and the computer execution instructions are used for each step of the method in the above embodiment.
[0128] The present application also provides a computer program product, including computer execution instructions, which implement the method in the above embodiment when executed by a processor.
[0129] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered merely as exemplary, and the true scope and spirit of the present application are indicated by the claims.
[0130] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A branch address binding method, characterized in that: Applied to a branch insulation detection system, the branch insulation detection system includes a main control unit, a power supply switching unit and multiple Hall elements, the main control unit is respectively communicated with the power supply switching unit and each Hall element, the power supply switching unit has multiple power supply ports, the physical position of each power supply port corresponds to the physical position of each detection branch, and each Hall element detects the leakage current of each detection branch; The method comprises: The power supply switching unit performs a switching operation on each power supply port in response to the switching instruction, and the main control unit generates a corresponding relationship between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, thereby completing the automatic binding of the detection branch addresses; The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
2. The branch address binding method according to claim 1, characterized in that: The step of switching the power supply status of each power supply port one by one includes: The power switching unit responds to the switching instruction to connect the first power port for a second time period, disconnects the first power port after the second time period, and connects another power port for the second time period, until each power port is connected and disconnected one by one, thereby completing the switching of the power supply status of all power ports; The switching instruction is used to indicate the power-on timing of each power supply port.
3. The branch address binding method according to claim 2, characterized in that: The main control unit generates a corresponding relationship between the communication address of each Hall element and the physical position of each detection branch according to the switching operation, including: The main control unit obtains the power-on timing of each power port according to the switching operation, assigns a corresponding communication address to each Hall element, and obtains the correspondence between the communication address of each Hall element and the physical position of each detection branch according to the correspondence between the physical position of each power port and the physical position of each detection branch.
4. The branch address binding method according to claim 3, characterized in that: Before the power supply switching unit performs the switching operation on each power port in response to the switching instruction, the method further includes: The power supply switching unit generates the switching instruction through a logic on-off circuit; or The main control unit generates the switching instruction in response to a user instruction and sends the switching instruction to the power supply switching unit; or The power supply switching unit generates the switching instruction in response to a manual on / off operation of each power supply port.
5. The branch address binding method according to claim 4, characterized in that: The power supply switching unit generates the switching instruction through the logic on-off circuit, including: The power supply switching unit detects the mechanical contact operation on the logic on-off circuit and generates the switching instruction according to the mechanical contact operation, where the mechanical contact operation includes a button operation or a dial operation.
6. The branch address binding method according to any one of claims 1 to 5, characterized in that: The main control unit is connected to each of the Hall elements via a serial port or a CAN bus.
7. The branch address binding method according to claim 6, characterized in that: If any Hall element is replaced, the method further includes: The power supply switching unit connects to the target power port and cuts off the remaining power ports except the target power port, and resets the communication address of the replaced Hall element according to the identification information of the target power port, and the target power port is the power port corresponding to the replaced Hall element.
8. The branch address binding method according to claim 1, characterized in that: The Hall element includes a digital Hall sensor.
9. A branch address binding device, characterized in that: Applied to a branch insulation detection system, the branch insulation detection system includes a main control unit, a power supply switching unit and multiple Hall elements, the main control unit is respectively communicated with the power supply switching unit and each Hall element, the power supply switching unit has multiple power supply ports, the physical position of each power supply port corresponds to the physical position of each detection branch, and each Hall element detects the leakage current of each detection branch; The device comprises: A switching module, configured to perform a switching operation on each power port in response to a switching instruction; A binding module, configured to generate a correspondence between the communication address of each Hall element and the physical location of each detection branch according to the switching operation, thereby automatically binding the addresses of the detection branches; The switching operation includes disconnecting the power supply status of all power supply ports for a first period of time and then switching the power supply status of each power supply port one by one.
10. The branch address binding device according to claim 9, characterized in that: The switching module is further configured to: In response to the switching instruction, the first power port is turned on for a second time period, and after the second time period, the first power port is turned off and another power port is turned on for the second time period, until each power port is turned on and off one by one, thereby completing the switching of the power supply status of all power ports; The switching instruction is used to indicate the power-on timing of each power supply port.
11. The branch address binding device according to claim 10, characterized in that: The binding module is specifically used to: According to the switching operation, the power-on timing of each power port is obtained, and according to the power-on timing of each power port and the correspondence between the physical position of each power port and the physical position of each detection branch, each Hall element is assigned a corresponding communication address, and the correspondence between the communication address of each Hall element and the physical position of each detection branch is obtained.
12. The branch address binding device according to claim 11, characterized in that: The apparatus further includes an instruction generation module; the instruction generation module is configured to: Generate the switching instruction through a logic on-off circuit; or generating the switching instruction in response to a user instruction and sending the switching instruction to the power supply switching unit; or The switching instruction is generated in response to a manual on / off operation of each power supply port.
13. The branch address binding device according to claim 12, characterized in that: The instruction generation module is further used to: The mechanical contact operation on the logic on-off circuit is detected, and the switching instruction is generated according to the mechanical contact operation, where the mechanical contact operation includes a button operation or a dial operation.
14. The branch address binding device according to any one of claims 9 to 13, characterized in that: If any Hall element is replaced, the device further includes a reset module; the reset module is used to: The target power port is connected and the other power ports except the target power port are cut off, and the communication address of the replaced Hall element is reset according to the identification information of the target power port, where the target power port is the power port corresponding to the replaced Hall element.
15. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the branch address binding method according to any one of claims 1 to 8.
16. A branch insulation detection system, characterized in that: It includes a main control unit, a power supply switching unit and multiple Hall elements. The main control unit is respectively communicated with the power supply switching unit and each Hall element. The power supply switching unit has multiple power supply ports. The physical position of each power supply port corresponds to the physical position of each detection branch. Each Hall element detects the leakage current of each detection branch.