A method, device and electronic equipment for refreshing power distribution link configuration

By orderly sorting and state determination of refresh controls in the distribution link, the display contradictions of power distribution link configuration during refresh is solved, and the accurate and unified display of power distribution link configuration is achieved.

CN119765654APending Publication Date: 2025-04-04SHENZHEN KSTAR SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411972249.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The status acquisition periods of each control in the power distribution link are different, resulting in conflicts in the display status of the front and rear links during refreshing, resulting in display contradictions and errors.

Method used

By receiving a refresh request, get the queues of all controls to be refreshed and sort them from small to large in line order. Then, determine the queue is not empty, obtain the first control to be refreshed, determine its status based on its type (switch control or wire control) and the bound state or the status of the upper line, and store it in the result set. Repeat this process until the queue is empty, and finally refresh the distribution link configuration according to the result set.

Benefits of technology

By orderly arranging the controls to be refreshed, we ensure the uniformity and accuracy of state acquisition and refresh, avoid the display contradiction of distribution link configuration, and ensure the correct display of distribution link configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119765654A_ABST
    Figure CN119765654A_ABST
Patent Text Reader

Abstract

The present invention discloses a distribution link configuration refresh method, device and electronic device. The distribution link configuration refresh method comprises: receiving a refresh request, and obtaining a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line sequence; judging whether the queue is empty, if not, obtaining the first control to be refreshed in the queue; judging the type of the first control to be refreshed, if the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper line and storing it in a result set; if the first control to be refreshed is a wire control, determining the state of the first control to be refreshed according to the wire state bound to the wire control or the state of the upper line and storing it in a result set. The distribution link configuration refresh method provided by the present invention is conducive to avoiding contradictions in the display of the distribution link configuration and ensuring the correct display of the distribution link configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power monitoring technology, and in particular to a distribution link configuration refresh method, device and electronic equipment. Background Art

[0002] The dynamic environment monitoring system is a computer control system that performs telemetry, telesignaling, teleadjustment and remote control of various power-related controls distributed in the distribution line, monitors their operating parameters in real time, diagnoses and handles faults, records and analyzes relevant data, and performs centralized monitoring and maintenance of equipment. A distribution link diagram is configured in the dynamic environment monitoring system to display the power transmission of the distribution line and the status of each control. Among them, the distribution link diagram is a display diagram of the distribution line, which contains various controls of the distribution line.

[0003] However, the collection cycle of the status of each control in the distribution line is different. When the distribution link is refreshed according to the status of each control, there is a conflict between the display status of the previous and next links, which also makes the distribution link configuration prone to display contradictions and display errors. Summary of the invention

[0004] The present invention provides a distribution link configuration refresh method, device and electronic device to avoid the problem of display contradiction in the distribution link configuration and ensure that the distribution link configuration is correctly displayed.

[0005] According to one aspect of the present invention, a method for refreshing a power distribution link configuration is provided, and the method for refreshing a power distribution link configuration comprises:

[0006] Receiving a refresh request, and obtaining a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line order;

[0007] Determine whether the queue is empty, and if not, obtain the first control to be refreshed in the queue;

[0008] Determine the type of the first control to be refreshed, if the first control to be refreshed is a switch control, determine the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and store it in the result set;

[0009] If the first control to be refreshed is a wire control, the state of the first control to be refreshed is determined according to the state of the wire bound to the wire control or the state of the upper-level line and is stored in the result set.

[0010] Optionally, if the first control to be refreshed is a wire control, determining the state of the first control to be refreshed according to the state of the wire bound to the wire control or the state of the upper-level line and storing it in the result set includes:

[0011] If the wire state is displayed as a voltage value, determining the display state of the first control to be refreshed according to the voltage value and storing it in a result set;

[0012] If the wire state is displayed as an upper-level line, the state of the first control to be refreshed is determined according to the state of the upper-level line and stored in a result set.

[0013] Optionally, if the wire state is displayed as a voltage value, determining the display state of the wire control according to the voltage value and storing it in a result set includes:

[0014] Obtaining voltage data of the wire bound to the wire control;

[0015] If the voltage data is equal to zero, determining that the display state of the first control to be refreshed is no power and storing it in the result set;

[0016] If the voltage data is not equal to zero, it is determined that the display state of the first control to be refreshed is powered and stored in the result set.

[0017] Optionally, if the wire state is displayed as an upper-level line, determining the state of the first control to be refreshed according to the state of the upper-level line and storing it in a result set includes:

[0018] Determining the type of the upper level line;

[0019] If the type of the upper-level line association is an upper-level switch control, determining the state of the first control to be refreshed according to the state of the upper-level switch control and storing it in a result set;

[0020] If the type of the upper-level line association is an upper-level wire control, the state of the first control to be refreshed is determined according to the state of the upper-level wire control and stored in a result set.

[0021] Optionally, if the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and storing it in the result set includes:

[0022] The on / off state of the switch bound to the switch control is detected, and the state of the first control to be refreshed is determined according to the on / off state of the bound switch and the state of the upper-level circuit and is stored in a result set.

[0023] Optionally, if the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and storing it in the result set includes:

[0024] Determining the type of the upper level line;

[0025] If the type of the upper-level circuit is an upper-level switch control, the state of the first control to be refreshed is determined according to the on-off state of the switch bound to the switch control and the state of the upper-level switch control and is stored in a result set;

[0026] If the type of the upper-level circuit is an upper-level wire control, the state of the first control to be refreshed is determined according to the on-off state of the switch bound to the switch control and the state of the upper-level wire control and is stored in a result set.

[0027] Optionally, all controls to be refreshed have unique numbers, and if the wire state is displayed as an upper-level line, the state of the first control to be refreshed is determined according to the state of the upper-level line and stored in a result set, including:

[0028] If the wire state is displayed as the number of the parent line, the state of the first control to be refreshed is determined according to the state of the parent line and stored in the result set.

[0029] Optionally, the determining whether the queue is empty further includes:

[0030] If so, get the result set and refresh the interface.

[0031] According to another aspect of the present invention, a distribution link configuration refresh device is also provided, and the distribution link configuration refresh device comprises:

[0032] An acquisition module, used for receiving a refresh request, and acquiring a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line order;

[0033] A judging module, used for judging whether the queue is empty, and if not, obtaining the first control to be refreshed in the queue;

[0034] A first determination module, configured to determine the type of the first control to be refreshed, and if the first control to be refreshed is a switch control, determine the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit, and store the state in a result set;

[0035] The second determination module is used to determine the state of the first control to be refreshed according to the state of the wire bound to the wire control or the state of the upper-level line if the first control to be refreshed is a wire control, and store it in a result set.

[0036] According to another aspect of the present invention, there is also provided an electronic device, the electronic device comprising:

[0037] at least one processor; and

[0038] a memory communicatively connected to the at least one processor; wherein,

[0039] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the distribution link configuration refresh method described in any of the above embodiments.

[0040] The power distribution link configuration refresh method provided by the present invention comprises the following steps: when obtaining a queue of all controls to be refreshed, all controls to be refreshed are sorted in ascending order according to the line sequence; after judging that the queue is not empty, the first control to be refreshed in the queue is obtained; the type of the control to be refreshed is judged, if the control to be refreshed is a switch control, the state of the control to be refreshed is determined according to the switch state bound to the switch control and the state of the upper line and stored in a result set; if the control to be refreshed is a wire control, the state of the control to be refreshed is determined according to the state of the wire bound to the wire control or the state of the upper line of the wire control and stored in a result set; the operation is repeated until the queue is judged to be empty, which means that the states of all controls to be refreshed in the queue have been obtained and stored in the result set; when the display states of all controls to be refreshed in the control list are determined, the power distribution link configuration is refreshed according to the display states of all controls to be refreshed in the result set. The present invention arranges the overall controls to be refreshed in order, so that when obtaining the controls to be refreshed, the process proceeds sequentially from the starting end to the back end of the circuit. At the same time, the various configuration controls are associated with each other, and the status of the controls can refer to the status of their associated upper-level circuit controls, thereby ensuring overall uniformity and accuracy, which is beneficial to avoiding the problem of contradictory display of distribution link configurations and ensuring that the distribution link configurations are correctly displayed.

[0041] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 is a flow chart of a power distribution link configuration refresh method provided by an embodiment of the present invention;

[0044] Figure 2 is a flow chart of another power distribution link configuration refresh method provided by an embodiment of the present invention;

[0045] Figure 3 is a flow chart of another power distribution link configuration refresh method provided by an embodiment of the present invention;

[0046] Figure 4 is a flow chart of another power distribution link configuration refresh method provided by an embodiment of the present invention;

[0047] Figure 5 is a schematic diagram of a power distribution link configuration refresh device provided by an embodiment of the present invention;

[0048] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can 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 that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] The embodiment of the present invention provides a distribution link configuration refresh method. The distribution link configuration refresh method is applied to dynamic environment monitoring. In this embodiment, the display state of the current level control is continuously determined by the display state of the upper level control, which is conducive to avoiding display contradictions of the distribution link configuration and ensuring the display accuracy of the distribution link configuration. Figure 1 1 is a flow chart of a method for refreshing a power distribution link configuration provided by an embodiment of the present invention. Figure 1 , the power distribution link configuration refresh method includes:

[0052] S110, receiving a refresh request, and obtaining a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line order;

[0053] It should be noted that the position of each control in the distribution line corresponds to the position of each device in the circuit (for example, the switch control corresponds to the switch, and the wire control corresponds to the wire), and the direction of power conduction in the distribution link is consistent with the direction of the circuit. In other words, when power is conducted in the distribution link, it first passes through the first control in the distribution link, and finally passes through the last control in the distribution link. When the server receives a refresh request, that is, when the distribution link configuration is refreshed according to the request, the line sequence of the distribution link is obtained, and all controls to be refreshed are sorted from small to large according to the line sequence of the distribution link. When sorting, starting from the starting end control, the subsequent controls are sorted in sequence along the direction of power transmission, so as to obtain an orderly arranged control queue of the distribution link; then, according to the refresh request, the status of the controls to be refreshed is collected one by one according to the line sequence.

[0054] S120, determining whether the queue is empty, and if not, obtaining the first control to be refreshed in the queue;

[0055] It should be noted that when the distribution link is refreshed, the display status of all controls to be refreshed in the distribution link needs to be determined. When determining the status of a control to be refreshed, first take it out of the queue of controls to be refreshed, and store it in the result set after determining its status; therefore, each time the status of a control to be refreshed is determined, the queue of controls to be refreshed will have one less control to be refreshed. If the status of all controls to be refreshed is determined, the queue of controls to be refreshed is empty. When the number of controls in the control queue is not zero, it indicates that the display status of at least one control in the distribution link has not been determined. At this time, the first control to be refreshed in the queue is obtained according to the line order to determine the display status of the control; when the number of controls in the control queue is zero, it indicates that the display status of all controls in the distribution link has been determined. At this time, the front-end interface is refreshed according to the display status of all controls in the result set.

[0056] S130, determining the type of the first control to be refreshed, if the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit, and storing the state in a result set;

[0057] It should be noted that after obtaining the first control to be refreshed in the queue in line order, it is necessary to first determine the type of the control to be refreshed; the controls in the power distribution link can be divided into two types: switch controls and wire controls. The switch control indicates that it is bound to a switch, and its state is determined by the bound switch. The wire control indicates that it is bound to a wire, and its state is determined by the bound wire. More specifically, when the control to be refreshed is a switch control, it has two binding properties: a switch expression and an upper-level line expression. The switch expression is used to obtain the real-time on-off state of the switch to which it is bound, and the upper-level line expression is used to bind the upper-level control of the switch control. The real-time values ​​of these two properties determine the display mode of the switch control. Therefore, the state of the switch control to be refreshed can be determined according to the state of the switch bound to it and the state of the upper-level line, and the judgment result can be stored in the result set.

[0058] S140: If the first control to be refreshed is a wire control, determine the state of the first control to be refreshed according to the state of the wire bound to the wire control or the state of the upper-level line and store it in a result set.

[0059] It should be noted that when the control to be refreshed is a wire control, since the wire control is bound to the wire, the wire can be the starting control in the line (for example, it is at the frontmost starting node in the line, in which case there is no upper-level control), or it can be following a certain control (in this case there is an upper-level control), so it has two binding attributes: the upper-level line expression, which is used to bind the upper-level control number of the switch, and the other is the (current) expression, which is used to bind the voltage value of the section of wire. These two are mutually exclusive attributes and can only bind one of them. Therefore, the state of the wire control to be refreshed can be determined according to the state of the wire bound to it or the state of its upper-level line, and the judgment result is stored in the result set. This method can be run in the server, and the interface can be refreshed regularly on the web page. When refreshing, the information of all power distribution controls on the page can be used as parameters and transmitted to the server through the Http protocol. After receiving the request, the server will process the incoming information, analyze the collected data, give the data of the relevant controls, and return it to the front end of the web page. The front end then refreshes the page according to the returned data.

[0060] The power distribution link configuration refresh method provided by the present invention comprises the following steps: when obtaining a queue of all controls to be refreshed, all controls to be refreshed are sorted in ascending order according to the line sequence; after judging that the queue is not empty, the first control to be refreshed in the queue is obtained; the type of the control to be refreshed is judged, if the control to be refreshed is a switch control, the state of the control to be refreshed is determined according to the switch state bound to the switch control and the state of the upper line and stored in a result set; if the control to be refreshed is a wire control, the state of the control to be refreshed is determined according to the state of the wire bound to the wire control or the state of the upper line of the wire control and stored in a result set; the operation is repeated until the queue is judged to be empty, which means that the states of all controls to be refreshed in the queue have been obtained and stored in the result set; when the display states of all controls to be refreshed in the control list are determined, the power distribution link configuration is refreshed according to the display states of all controls to be refreshed in the result set. The present invention arranges the overall controls to be refreshed in order, so that when obtaining the controls to be refreshed, the process proceeds sequentially from the starting end to the back end of the circuit. At the same time, the various configuration controls are associated with each other, and the status of the controls can refer to the status of their associated upper-level circuit controls, thereby ensuring overall uniformity and accuracy, which is beneficial to avoiding the problem of contradictory display of distribution link configurations and ensuring that the distribution link configurations are correctly displayed.

[0061] Specifically, refer to Figure 2 , is a flowchart of another distribution link configuration refresh method provided by an embodiment of the present invention, wherein if the first control to be refreshed is a wire control, the state of the first control to be refreshed is determined according to the state of the wire bound to the wire control or the state of the upper-level line and stored in a result set, including:

[0062] S141, if the wire state is displayed as a voltage value, determining the display state of the first control to be refreshed according to the voltage value and storing it in a result set;

[0063] S142: If the wire state is displayed as an upper-level line, determine the state of the first control to be refreshed according to the state of the upper-level line and store it in a result set.

[0064] It should be noted that the display status of the wire control depends on the status of the wire to which it is bound or the display status of its parent line. When the wire control to be refreshed displays a voltage value, it means that it is a starting control, and the status of the wire control can be determined based on the status of the wire to which it is bound, and the result is stored in the result set; when the wire control to be refreshed is displayed as a parent line, it means that it is not a starting control, and the status of its parent line can be obtained to determine the status of its wire control, and the result is stored in the result set.

[0065] Specifically, if the wire state is displayed as a voltage value, determining the display state of the wire control according to the voltage value and storing it in a result set includes:

[0066] Obtaining voltage data of the wire bound to the wire control;

[0067] If the voltage data is equal to zero, determining that the display state of the first control to be refreshed is no power and storing it in the result set;

[0068] If the voltage data is not equal to zero, it is determined that the display state of the first control to be refreshed is powered and stored in the result set.

[0069] It should be noted that when the wire control to be refreshed is the starting control of the power distribution link, there is no upper-level control on the input side of the wire. At this time, the display state of the wire control can be judged according to the voltage of the wire bound to the wire control itself. When there is power transmission in the bound wire, there is a certain voltage on the wire, and the voltage is related to the voltage of the power transmitted by the wire; when there is no power transmission in the wire, there is no voltage on the wire, that is, the voltage of the wire is zero. In other words, when the voltage data of the bound wire is zero, it can be determined that the display state of the wire control is no electricity, and the result is stored in the result set; when the voltage data of the bound wire is not zero, it can be determined that the display state of the wire control is electricity, and the result is stored in the result set.

[0070] Specifically, if the wire state is displayed as an upper-level line, determining the state of the first control to be refreshed according to the state of the upper-level line and storing it in a result set includes:

[0071] Determining the type of the upper level line;

[0072] If the type of the upper-level circuit is an upper-level switch control, determining the state of the first control to be refreshed according to the state of the upper-level switch control and storing it in a result set;

[0073] If the type of the upper-level line association is an upper-level wire control, the state of the first control to be refreshed is determined according to the state of the upper-level wire control and stored in a result set.

[0074] It should be noted that the types of upper-level circuits can be divided into upper-level switch controls and upper-level wire controls. The states of upper-level switch controls include: switch closed with power, switch closed without power, switch disconnected with power, and switch disconnected without power; the states of upper-level wire controls include power on and power off. Exemplarily, when the upper-level circuit is an upper-level switch control: if the state of the upper-level switch control is switch closed with power, it can be regarded as the upper-level circuit being in a power-on state, that is, there is power flowing in this section of the circuit, and at this time, the state of the wire control to be refreshed itself is power on; if the state of the upper-level switch control is one of the three: switch closed with power off, switch disconnected with power, and switch disconnected without power, it can be regarded as the upper-level circuit being in a power-off state, that is, there is no power flowing in this section of the circuit, and at this time, the state of the wire control to be refreshed itself is power off. When its superior circuit is the superior switch control: if the superior switch control is in the state of the switch closed and energized, it can be regarded as the superior circuit is in the energized state, that is, the circuit has power flowing, and the state of the wire control to be refreshed is energized; if the superior switch control is in the state of the switch closed and no power, the switch is open and energized, and the switch is open and no power, it can be regarded as the superior circuit is in the state of no power, that is, the circuit has no power flowing, and the state of the wire control to be refreshed is no power. When its superior circuit is the superior wire control: if the superior wire control is in the state of power, that is, the circuit has power flowing, and the state of the wire control to be refreshed is in the state of power; if the superior wire control is in the state of no power, that is, the circuit has no power flowing, and the state of the wire control to be refreshed is no power. After judging the state of the wire control to be refreshed, store the result in the result set.

[0075] Specifically, if the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and storing it in the result set includes:

[0076] The on / off state of the switch bound to the switch control is detected, and the state of the first control to be refreshed is determined according to the on / off state of the bound switch and the state of the upper-level circuit and is stored in a result set.

[0077] It should be noted that the on-off state of the switch bound to the switch control to be refreshed plus the state of the upper-level circuit can be used as the basis for judging the state of the switch control to be refreshed. The on-off state of the switch can be divided into closed and powered off. When the bound switch is in the closed state, it can be regarded as having power flowing through the switch: if the upper-level circuit has power, the state of the switch control to be refreshed itself is the switch closed with power; when the upper-level circuit has no power, the state of the switch control to be refreshed itself is the switch closed with no power; when the bound switch is in the disconnected state, it can be regarded as having no power flowing through the switch: if the upper-level circuit has power, the state of the switch control to be refreshed itself is the switch disconnected with power; when the upper-level circuit has no power, the state of the switch control to be refreshed itself is the switch disconnected with power. After determining the state of the switch control according to the state of the switch bound to the switch control to be refreshed and the state of the upper-level circuit, the result is stored in the result set.

[0078] Specifically, refer to Figure 3 , is a flow chart of another distribution link configuration refresh method provided by an embodiment of the present invention, if the first control to be refreshed is a switch control, the state of the first control to be refreshed is determined according to the switch state bound to the switch control and the state of the upper-level line and stored in the result set, including:

[0079] S131, determining the type of the upper level line;

[0080] S132: If the type of the upper-level circuit is an upper-level switch control, determine the state of the first control to be refreshed according to the on / off state of the switch bound to the switch control and the state of the upper-level switch control, and store it in a result set;

[0081] S133: If the type of the upper-level circuit is an upper-level wire control, determine the state of the first control to be refreshed according to the on-off state of the switch bound to the switch control and the state of the upper-level wire control, and store it in a result set.

[0082] It should be noted that the types of upper-level circuits can be divided into upper-level switch controls and upper-level wire controls. The states of upper-level switch controls include: switch closed with power, switch closed without power, switch disconnected with power, and switch disconnected without power; the states of upper-level wire controls include power on and power off. Exemplarily, when the bound switch is in a closed state and its upper-level circuit is an upper-level switch control: if the state of the upper-level switch control is switch closed with power, it can be regarded as the upper-level circuit being in a power-on state, that is, there is power flowing in this section of the circuit, and at this time the state of the switch control to be refreshed itself is switch closed with power; if the state of the upper-level switch control is one of the three: switch closed with power, switch disconnected with power, and switch disconnected without power, it can be regarded as the upper-level circuit being in a power-off state, that is, there is no power flowing in this section of the circuit, and at this time the state of the switch control to be refreshed itself is switch closed with power. When the bound switch is in the open state and its upper circuit is the upper switch control: if the state of the upper switch control is the switch closed with power, it can be regarded as the upper circuit is in the power state, that is, the circuit has power flowing, and the state of the switch control to be refreshed is the switch disconnected with power; if the state of the upper switch control is one of the three: the switch closed with no power, the switch disconnected with power, and the switch disconnected with no power, it can be regarded as the upper circuit is in the powerless state, that is, the circuit has no power flowing, and the state of the switch control to be refreshed is the switch disconnected with power. When the bound switch is in the closed state and its upper circuit is the upper wire control: if the state of the upper wire control is power, that is, the circuit has power flowing, and the state of the switch control to be refreshed is the switch closed with power; if the state of the upper wire control is no power, that is, the circuit has no power flowing, and the state of the switch control to be refreshed is the switch closed with power. After determining the state of the switch control according to the state of the upper circuit and the state of the switch bound to the switch control to be refreshed, the result is stored in the result set.

[0083] Specifically, all controls to be refreshed have unique numbers, and if the wire state is displayed as an upper-level line, the state of the first control to be refreshed is determined according to the state of the upper-level line and stored in the result set, including:

[0084] If the wire state is displayed as the number of the parent line, the state of the first control to be refreshed is determined according to the state of the parent line and stored in the result set.

[0085] It should be noted that each control has a unique number. When judging the status of the control to be refreshed, if it displays the number of the parent circuit, it means that the status of the control to be refreshed needs to be judged based on the status of its parent circuit. Exemplarily, when the control to be refreshed is a wire control to be refreshed, when judging its status, if the number of the parent circuit is displayed, it means that the wire control to be refreshed is not the starting control of the distribution link. At this time, the display status of the wire control is determined and recorded according to the status of the parent circuit; if the voltage value is displayed, it means that the wire control to be refreshed is the starting control of the distribution link. At this time, the display status of the wire can be determined according to the voltage value and stored in the result set. When the control to be refreshed is a switch control to be refreshed, similarly, the status of its parent circuit can be obtained through the number it displays and then its status can be determined, which will not be repeated here.

[0086] Specifically, refer to Figure 4 , is a flow chart of another power distribution link configuration refresh method provided by an embodiment of the present invention, wherein the determining whether the queue is empty further includes:

[0087] S150: If yes, obtain the result set and refresh the interface.

[0088] It should be noted that when the queue is judged to be empty, it means that there are no controls to be refreshed in the queue, and the status of all controls has been obtained in the result set. At this time, the configuration interface of the distribution link can be refreshed and displayed according to the result set. This method can be run on the server, and the interface can be refreshed regularly on the web page. When refreshing, the information of all distribution controls on the page can be used as parameters and transmitted to the server through the Http protocol. After receiving the request, the server will process the incoming information, analyze it in combination with the collected data, and give the data of the relevant controls and return it to the front end of the web page. The front end will then refresh the page according to the returned data.

[0089] An embodiment of the present invention also provides a power distribution link configuration refresh device. Figure 5 Schematic diagram of a power distribution link configuration refresh device provided by an embodiment of the present invention. Figure 5 The power distribution link configuration refreshing device 100 includes: an acquisition module 110 , a judgment module 120 , a first determination module 130 , and a second determination module 140 .

[0090] The acquisition module 110 is used to receive a refresh request and acquire a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line order;

[0091] The judging module 120 judges whether the queue is empty, and if not, obtains the first control to be refreshed in the queue;

[0092] A first determination module 130 is used to determine the type of the first control to be refreshed. If the first control to be refreshed is a switch control, the state of the first control to be refreshed is determined according to the switch state bound to the switch control and the state of the upper-level circuit and is stored in a result set;

[0093] The second determination module 140 is used to determine the state of the first control to be refreshed according to the state of the wire bound to the wire control or the state of the upper-level line if the first control to be refreshed is a wire control, and store it in a result set.

[0094] Among them, the distribution link configuration refreshing device 100 provided in this embodiment has the beneficial effects of the distribution link configuration refreshing method provided in any of the above embodiments, which will not be repeated here.

[0095] Figure 6 : is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0096] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0097] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0098] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a distribution link configuration refresh method.

[0099] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0100] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for refreshing a power distribution link configuration, characterized in that: include: Receiving a refresh request, and obtaining a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line order; Determine whether the queue is empty, and if not, obtain the first control to be refreshed in the queue; Determine the type of the first control to be refreshed, if the first control to be refreshed is a switch control, determine the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and store it in the result set; If the first control to be refreshed is a wire control, the state of the first control to be refreshed is determined according to the state of the wire bound to the wire control or the state of the upper-level line and is stored in the result set.

2. The power distribution link configuration refresh method according to claim 1, characterized in that: If the first control to be refreshed is a wire control, determining the state of the first control to be refreshed according to the state of the wire bound to the wire control or the state of the upper-level line and storing it in the result set includes: If the wire state is displayed as a voltage value, determining the display state of the first control to be refreshed according to the voltage value and storing it in a result set; If the wire state is displayed as an upper-level line, the state of the first control to be refreshed is determined according to the state of the upper-level line and stored in a result set.

3. The power distribution link configuration refresh method according to claim 2, characterized in that: If the wire state is displayed as a voltage value, determining the display state of the wire control according to the voltage value and storing it in a result set includes: Obtaining voltage data of the wire bound to the wire control; If the voltage data is equal to zero, determining that the display state of the first control to be refreshed is no power and storing it in the result set; If the voltage data is not equal to zero, it is determined that the display state of the first control to be refreshed is powered and stored in the result set.

4. The power distribution link configuration refresh method according to claim 2, characterized in that: If the wire state is displayed as an upper-level line, determining the state of the first control to be refreshed according to the state of the upper-level line and storing it in a result set includes: Determining the type of the upper level line; If the type of the upper-level circuit is an upper-level switch control, determining the state of the first control to be refreshed according to the state of the upper-level switch control and storing it in a result set; If the type of the upper-level line association is an upper-level wire control, the state of the first control to be refreshed is determined according to the state of the upper-level wire control and stored in a result set.

5. The power distribution link configuration refresh method according to claim 1, characterized in that: If the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and storing it in the result set includes: The on / off state of the switch bound to the switch control is detected, and the state of the first control to be refreshed is determined according to the on / off state of the bound switch and the state of the upper-level circuit and is stored in a result set.

6. The power distribution link configuration refresh method according to claim 5, characterized in that: If the first control to be refreshed is a switch control, determining the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit and storing it in the result set includes: Determining the type of the upper level line; If the type of the upper-level circuit is an upper-level switch control, the state of the first control to be refreshed is determined according to the on-off state of the switch bound to the switch control and the state of the upper-level switch control and is stored in a result set; If the type of the upper-level circuit is an upper-level wire control, the state of the first control to be refreshed is determined according to the on-off state of the switch bound to the switch control and the state of the upper-level wire control and is stored in a result set.

7. The power distribution link configuration refresh method according to claim 2, characterized in that: All controls to be refreshed have unique numbers. If the wire state is displayed as an upper-level line, the state of the first control to be refreshed is determined according to the state of the upper-level line and stored in the result set, including: If the wire state is displayed as the number of the parent line, the state of the first control to be refreshed is determined according to the state of the parent line and stored in the result set.

8. The power distribution link configuration refresh method according to claim 1, characterized in that: The determining whether the queue is empty further includes: If so, get the result set and refresh the interface.

9. A distribution link configuration refresh device, characterized in that: include: An acquisition module, used for receiving a refresh request, and acquiring a queue of all controls to be refreshed according to the refresh request; wherein all controls to be refreshed in the queue are sorted from small to large according to the line order; A judgment module, judging whether the queue is empty, and if not, obtaining the first control to be refreshed in the queue; A first determination module, configured to determine the type of the first control to be refreshed, and if the first control to be refreshed is a switch control, determine the state of the first control to be refreshed according to the switch state bound to the switch control and the state of the upper-level circuit, and store the state in a result set; The second determination module is used to determine the state of the first control to be refreshed according to the state of the wire bound to the wire control or the state of the upper-level line if the first control to be refreshed is a wire control, and store it in a result set.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the distribution link configuration refresh method according to any one of claims 1 to 8.