Extensible relay control method and system for intelligent electric energy meter
By introducing a scalable relay control method in the smart meter relay control system, and using competition mechanisms and feedback mechanisms to coordinate the expectations of multiple control tasks, the problem that the existing technology relay control is difficult to adapt to the multi-task environment is solved, and unified control and efficient management of relays are realized.
Patent Information
- Application Number
- CN202411880517.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-15
AI Technical Summary
It is difficult for existing smart meter relay control systems to achieve coordinated and unified control of relays in a multi-task environment, resulting in difficult control results to adapt to user needs, affecting the rapid deployment and efficient application of smart meters.
A scalable relay control method is proposed. Through the hierarchical architecture of logic units, integrated units and execution units, the control expectations of multiple control tasks are obtained, the preset competition mechanism is used to conduct competition processing, the relay control command is generated, and the expectations of each task are adjusted through the feedback mechanism to achieve unified control of the relay.
It realizes coordinated and unified control of relays, improves the flexibility and accuracy of control, can widely adapt to different power usage scenarios and needs, and improves the intelligence level and comprehensive benefits of power meter cost control management.
Smart Images

Figure CN119828536A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of relay control of smart electric meters, in particular to a relay control system and method for multiple sources. Background Art
[0002] The sources of control of smart electricity meter relays are rich and varied, including safety protection, power control, electricity theft detection, remote commands, local fee control, user behavior, etc., which jointly determine the control results of the relays.
[0003] Different users have very different requirements for relay control based on their own power usage environment, safety considerations, and management models. For example, industrial power usage scenarios may focus more on fast and accurate protection against overload and overvoltage conditions to ensure the safe operation of large equipment; while commercial power usage environments may focus on flexible switching between remote commands and local fee control to facilitate fee management and operational regulation. This makes the design of relay control system software solutions extremely difficult, requiring comprehensive consideration of a large number of complex logical relationships and conditional judgments.
[0004] Moreover, with the development of the power market and the dynamic changes in user power demand, once user demand changes, the original relay control system software is often difficult to adapt and has to be redesigned and developed. This not only consumes a lot of manpower, material resources and time costs, but also seriously affects the rapid deployment and efficient application of smart energy meters in different fields, limits the further improvement of the intelligent management level of the power industry, and is difficult to meet the growing demand for refined power control and management.
[0005] Therefore, how to achieve coordinated and unified control of relays in a multi-task environment, balance the requirements of various tasks, and improve the flexibility and accuracy of control is a technical problem that needs to be solved urgently. Summary of the invention
[0006] The purpose of the present invention is to propose a scalable relay control method and system for a smart electric energy meter in order to solve the problem of how to achieve the coordination and unification of relays in a multi-control task environment.
[0007] The technical solution of the present invention is:
[0008] The present invention provides a scalable relay control method for a smart electric energy meter, the method comprising the following steps:
[0009] Acquire control expectations of at least two control tasks, where the control expectations include one of a switch-on expectation, a switch-on expectation, and a switch-on permission expectation;
[0010] According to a preset competition mechanism, the control expectations of the at least two control tasks are subjected to competition processing to obtain a relay control command, wherein the relay control command includes one of a switch-on command and a switch-off command, and the control task that successfully competes is recorded as a source of occurrence;
[0011] Feeding back the relay control command to the at least two control tasks;
[0012] Sending the relay control command to the relay execution unit to control the on and off of the relay;
[0013] The actual on-off state of the relay is acquired, and the actual on-off state is fed back to the at least two control tasks.
[0014] Furthermore, the competition mechanism includes: the priority of the switch-off expectation is higher than the switch-on expectation, and the switch-on expectation is higher than the switch-on permission expectation.
[0015] Further, when any of the at least two control tasks has a power-off expectation, the relay control command is a power-off command;
[0016] When none of the at least two control tasks has a switch-on expectation and at least one has a switch-on expectation, the relay control command is a switch-on command;
[0017] When the at least two control tasks have no expectation of closing the switch or no expectation of closing the switch, and at least one of the at least two control tasks has an expectation of allowing closing the switch, the relay control command is a command to maintain the current state of the relay.
[0018] When the at least two control tasks have no expectation of closing the switch, no expectation of closing the switch, and no expectation of allowing closing the switch, the relay control command is a command to maintain the current state of the relay.
[0019] A system used in a scalable relay control method for a smart electric energy meter includes a logic unit, an integration unit and an execution unit;
[0020] The logic unit is provided with a plurality of control tasks, which operate independently of each other and output control task expectations respectively;
[0021] The integrated unit is used to obtain the expectations of each control task, determine the final relay control command through the internal competition mechanism, and feed it back to the logic unit, and record the control task that successfully competes as the occurrence source;
[0022] The execution unit is used to execute the received command and feed back the execution result to the logic unit.
[0023] Furthermore, the control task expectation includes a switch-on expectation, a switch-on expectation, and a switch-on permission expectation;
[0024] The power-off expectation is to expect the relay to be disconnected, cut off the circuit, and not allow the power supply to be restored;
[0025] The closing expectation is to expect the relay to close and restore power supply;
[0026] The closing permission is expected to allow power supply to be restored when the relay is opened.
[0027] Furthermore, the relay control command is notified by the execution unit to drive the service to execute the relay action, which is divided into two categories: a switch-on command and a switch-off command; the switch-on command refers to the relay disconnection action, and the switch-on command refers to the relay closing action.
[0028] Furthermore, the logic unit is composed of relatively independent control tasks, and each task outputs its own control expectation; according to user needs, the design of the control task can be changed, deleted or added.
[0029] Furthermore, the logic unit divides the control tasks into security protection control tasks, remote command control tasks and local fee control tasks.
[0030] Furthermore, the integrated unit is used to process various control task expectations from the logic unit, and generate a relay command based on the control task expectations according to a competition mechanism; there is a priority between the three control task expectations, and the expectation of opening the switch is greater than the expectation of closing the switch, which is greater than the expectation of allowing closing the switch.
[0031] Furthermore, the priority between each control task is designed according to user needs; the preferred priority between control tasks is that the security protection control task is greater than the remote command control task and greater than the local fee control control task.
[0032] Beneficial effects of the present invention:
[0033] The present invention divides the relay control system into a logic unit, an integration unit, and an execution unit; the control tasks inside the logic unit run independently of each other and output control task expectations respectively; the integration unit is responsible for integrating the control expectations of each task, determining the final relay control command through an internal competition mechanism, and feeding it back to the logic unit; the execution unit executes according to the received command, and feeds back the execution result to the logic unit; the present invention has high scalability, convenient and flexible application, can be widely adapted to different power usage scenarios and needs, and effectively improves the intelligence level and comprehensive benefits of electricity meter fee control management.
[0034] The scalable relay control method of the present invention obtains the control expectations of multiple control tasks, including the expectation of switching on, the expectation of switching on, and the expectation of allowing switching on, and processes the control expectations in competition according to a preset competition mechanism to obtain a relay control command; the control command is fed back to each control task to adjust the expectation, and sent to a relay execution unit to control the on and off of the relay; the actual state of the relay is obtained and fed back to the control task to further adjust the expectation. The present invention coordinates the expectations of multiple control tasks through a competition mechanism to avoid conflicts and realize unified control of relays; at the same time, each task adjusts its expectations in a timely manner through a feedback mechanism, thereby improving the flexibility and accuracy of control and effectively solving the problem of multi-task collaborative control of relays.
[0035] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.
[0037] Figure 1 A principle block diagram of a scalable relay control system for a smart electric energy meter according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0038] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0039] Example 1
[0040] The present invention provides a scalable relay control method for a smart electric energy meter, the method comprising the following steps:
[0041] Acquire control expectations of at least two control tasks, where the control expectations include one of a switch-on expectation, a switch-on expectation, and a switch-on permission expectation;
[0042] According to a preset competition mechanism, the control expectations of the at least two control tasks are subjected to competition processing to obtain a relay control command, wherein the relay control command includes one of a switch-on command and a switch-off command, and the control task that successfully competes is recorded as a source of occurrence;
[0043] Feeding back the relay control command to the at least two control tasks, so that each control task adjusts its own control expectation based on the relay control command;
[0044] Sending the relay control command to the relay execution unit to control the on and off of the relay;
[0045] The actual on-off state of the relay is obtained, and the actual on-off state is fed back to the at least two control tasks, so that each control task further adjusts its own control expectation.
[0046] In one example, the relay control system needs to realize three functions: safety protection, remote command, and local fee control. Then the logic unit divides the control tasks into safety protection control tasks, remote command control tasks, and local fee control control tasks.
[0047] Safety protection control task, when unsafe factors (such as overheating, overvoltage, overload, etc.) are detected, the output is expected to be disconnected. If there are no unsafe factors, the output is expected to be closed.
[0048] The remote command control task receives commands from the main station, including direct power-on, delayed power-on, direct power-on, and power-on permission commands; the direct power-on command triggers the output power-on expectation; the delayed power-on command outputs the power-on expectation after the delay time is up; the direct power-on command triggers the output power-on expectation; the power-on permission command triggers the output power-on expectation.
[0049] The task of the local fee control control unit is to judge the account status according to the remaining amount in the table and the multi-level segmented amount threshold. If the account is overdrawn, the output is the expectation of disconnection, and after recharging, the output is the expectation of closing the circuit breaker.
[0050] The integrated unit stipulates that the priority between control tasks is that safety protection is greater than remote command and greater than local fee control. If any control task expects to switch off, the relay command is integrated as switching off, and the source records the reason for switching off; if there is no expectation of switching off, and any control task expects to close the switch, the relay command is integrated as closing the switch, and the source records the reason for closing the switch; the expectation of closing the switch is allowed, and so on.
[0051] The integrated unit processes the received control task expectations in competition according to the preset competition mechanism to obtain the relay control command; the integrated control command is fed back to each control task, and each control task comprehensively processes its own expectations according to the integration result.
[0052] For example, during the safety protection shutdown, if a remote closing command is received, in the relay control system of the present invention, the safety protection control task will expect to shutdown, and after receiving the remote closing command, the remote command control task will expect to close the circuit breaker. In this case, the output control command at the integration layer will be shutdown, and the source of occurrence will be recorded as safety protection.
[0053] If you want to implement the following function: during the safety protection shutdown period, abandon the received remote closing command, then when the control command is fed back to the logic unit, the safety protection control task will maintain the shutdown expectation, and the remote command control task will abandon the closing expectation.
[0054] If you want to implement the following function: during the safety protection shutdown period, the received remote closing command is temporarily suspended. Then when the control command is fed back to the logic unit, the safety protection control task maintains the shutdown expectation, and the remote command control task maintains the closing expectation, and continues to participate in the integration of the control command.
[0055] The relay control command is sent to the relay execution unit to control the on and off of the relay; the actual state of the relay is detected, and when the actual state of the relay is inconsistent with the control command, the malfunction is recorded through a non-volatile storage medium to facilitate tracing by relevant departments.
[0056] Example 2
[0057] Figure 1 A principle block diagram of a scalable relay control system for a smart electric energy meter according to an embodiment of the present invention is shown.
[0058] like Figure 1 As shown, the present invention provides a system used in a scalable relay control method for a smart electric energy meter, comprising a logic unit, an integration unit and an execution unit;
[0059] Specifically, the logic unit is provided with a plurality of control tasks, which run independently of each other and output the control task expectations respectively; specifically, it is composed of relatively independent control tasks, and each task outputs its own control expectation. According to customer needs, the design of the control task can be flexibly changed and easily expanded. The expectations of each control task are only related to the internal requirements of the task. When the internal requirements of the control task change, only the internal design of the control task needs to be modified; when deleting or adding new requirements, only the control task needs to be deleted or added.
[0060] The integrated unit is used to obtain the expectations of each control task, determine the final relay control command through an internal competition mechanism, and feed it back to the logic unit, and record the control task that successfully competes as the occurrence source.
[0061] Specifically, there is a priority between the expectations of the three control tasks, and the expectation of opening the switch is greater than the expectation of closing the switch, which is greater than the expectation of allowing closing the switch. The priority between each control task can be flexibly designed according to customer needs. The relay command finally generated will be fed back to each control task in the logic unit, and each control task will decide whether to change its own expectations or remain unchanged based on the current relay command. At the same time, the integration layer records the control unit that successfully competes, that is, the source of occurrence, which can be used to inform the user of the reason for the relay action in a visual way, such as displaying the reason for the relay action through a display interface. The competition principle remains unchanged. When only the internal requirements of the control task change, the integrated unit does not need to be changed; when a control task is deleted or added, only the expected number managed by the integrated unit changes.
[0062] The execution unit is used to execute the received command and feed back the execution result to the logic unit.
[0063] Specifically, the relay is notified to act according to the relay command generated by the integration layer. After the hardware action is successful, the execution result is fed back to each control task of the logic unit. Each control task decides whether to change its own expectations or remain unchanged based on the execution result. In addition, the execution unit manages the actual state of the relay and monitors whether the relay is in the open or closed state in real time. It can be used to notify the user of the actual state of the relay in a visual way; it can also be used to monitor whether the actual state of the relay is consistent with the relay command, and record false operations, etc.
[0064] When requirements are changed, deleted, or added, the execution unit does not need to make any changes.
[0065] When new requirements are added, such as the need to implement power theft protection function, it is only necessary to add a power theft protection control task in the logic unit and specify the priority of the power theft protection function in the integrated unit, so as to quickly implement function expansion without changing the system architecture.
[0066] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.
Claims
1. A scalable relay control method for a smart energy meter, characterized in that: The method comprises the following steps: Acquiring control expectations of at least two control tasks, where the control expectations include one of a switch-on expectation, a switch-on expectation, and a switch-on permission expectation; According to a preset competition mechanism, the control expectations of the at least two control tasks are subjected to competition processing to obtain a relay control command, wherein the relay control command includes one of a switch-on command and a switch-off command, and the control task that successfully competes is recorded as a generation source; Feeding back the relay control command to the at least two control tasks; Sending the relay control command to the relay execution unit to control the on and off of the relay; The actual on / off state of the relay is acquired, and the actual on / off state is fed back to the at least two control tasks.
2. The scalable relay control method for a smart electric energy meter according to claim 1, characterized in that: The competition mechanism includes: the priority of the switch-off expectation is higher than the switch-on expectation, and the switch-on expectation is higher than the switch-on permission expectation.
3. The scalable relay control method for a smart electric energy meter according to claim 2, characterized in that: When any one of the at least two control tasks has a power-off expectation, the relay control command is a power-off command; When none of the at least two control tasks have a switch-off expectation and at least one has a switch-on expectation, the relay control command is a switch-on command; When the at least two control tasks have no switch-on expectation or switch-on expectation and at least one has a switch-on permission expectation, the relay control command is a relay current state maintaining command. When the at least two control tasks do not have a switch-on expectation, a switch-on expectation, or a switch-on permission expectation, the relay control command is a relay current state maintaining command.
4. A system used in the scalable relay control method for a smart electric energy meter according to any one of claims 1 to 3, characterized in that: Includes logic unit, integration unit and execution unit; The logic unit is provided with a plurality of control tasks, which operate independently of each other and output control task expectations respectively; The integrated unit is used to obtain the expectations of each control task, determine the final relay control command through the internal competition mechanism, and feed it back to the logic unit, recording the control task that successfully competes as the source of occurrence; The execution unit is used to execute the received command and feed back the execution result to the logic unit.
5. The scalable relay control system for a smart electric energy meter according to claim 4, characterized in that: The control task expectation includes a switch-on expectation, a switch-on expectation, and a switch-on permission expectation; The power-off expectation is to expect the relay to be disconnected, cut off the circuit, and not allow power to be restored; The closing expectation is to expect the relay to close and restore power supply; The closing permission is expected to allow power supply to be restored when the relay is disconnected.
6. The scalable relay control system for a smart electric energy meter according to claim 4, characterized in that: The relay control command is notified by the execution unit to drive the service to execute the relay action, which is divided into two categories: opening command and closing command; the opening command refers to the relay disconnection action, and the closing command refers to the relay closing action.
7. The scalable relay control system for a smart electric energy meter according to claim 4, characterized in that: The logic unit is composed of relatively independent control tasks, and each task outputs its own control expectation; according to user needs, the design of the control task can be changed, deleted or added.
8. The scalable relay control system for a smart electric energy meter according to claim 7, characterized in that: The logic unit divides the control tasks into security protection control tasks, remote command control tasks and local fee control control tasks.
9. The scalable relay control system for a smart electric energy meter according to claim 5, characterized in that: The integrated unit is used to process various control task expectations from the logic unit, and generate a relay command based on the control task expectations according to a competition mechanism; there is a priority between the three control task expectations, and the opening expectation is greater than the closing expectation, which is greater than the closing permission expectation.
10. The scalable relay control system for a smart electric energy meter according to claim 8, characterized in that: The priority between each control task is designed according to user needs; the preferred priority between control tasks is that the security protection control task is higher than the remote command control task and higher than the local fee control task.