Instruction issuing method, device and equipment of intelligent electric meter and medium

By evaluating the type, timeliness, status, and network environment of meter commands from multiple dimensions, and classifying and allocating them by priority, the system solves the problems of insufficient real-time performance and reliability of traditional meter command issuance systems in smart grids, and achieves safe, stable operation and efficient processing of the power grid.

CN121585690APending Publication Date: 2026-02-27SHENZHEN STAR INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511655336.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-12
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

Traditional meter command issuance systems cannot meet the comprehensive requirements of real-time performance, reliability, and efficiency in smart grids, especially during peak electricity consumption periods and emergency situations, which can affect the safe and stable operation of the power grid.

Method used

By acquiring the instruction type, timeliness, operating status, and network environment of the electricity meter commands, multi-dimensional scores are determined, priorities are classified, and commands are assigned to corresponding queues and executors to ensure that urgent and critical commands are executed first.

Benefits of technology

It improves the safety and processing efficiency of power grid operation, reduces the risk of critical commands being blocked by ordinary commands, and enhances the overall processing capacity of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121585690A_ABST
    Figure CN121585690A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, in particular to an instruction issuing method and device of an intelligent electric meter, equipment and a medium. Obtaining an instruction type and instruction time efficiency of the electric meter instruction, and an operation state and a network environment of a target intelligent electric meter executing the electric meter instruction; according to the instruction type, the instruction time efficiency and the operation state, accurately performing priority classification on the electric meter instruction, and determining a target priority of the electric meter instruction; according to the target priority, distributing the ammeter instruction to a target queue corresponding to the target priority; and determining a target actuator, and distributing the target queue to the target actuator. According to the method, the electric meter instructions are subjected to priority classification based on multiple dimensions, the average response time of high-priority instructions is shortened, the overall processing efficiency of the system is improved, emergency key instructions can be executed preferentially, the problem that key instructions in a traditional queue are blocked by common instructions is effectively avoided, and the operation safety of a power grid is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet of Things, and in particular to a method and device for issuing instructions to a smart meter, a device and a medium. BACKGROUND

[0002] The management of meters in the current power system is facing increasingly complex challenges. The traditional meter instruction issuing system usually adopts a simple first-in-first-out queue mechanism, which has significant limitations when dealing with large-scale meter clusters. With the rapid development of smart grids, the number of meters is growing exponentially, the types of instructions are diversifying, and the urgency levels are varying. The traditional system cannot meet the comprehensive requirements of real-time performance, reliability and efficiency. These problems are particularly prominent during peak electricity consumption periods and emergency situations, seriously affecting the safe and stable operation of the power grid. Therefore, in the management of smart meters, how to improve the safe operation of the power grid has become a problem that needs to be solved. SUMMARY

[0003] In view of this, the embodiments of the present application provide a method and device for issuing instructions to a smart meter, a device and a medium to solve the problem of poor power grid operation safety in the management of smart meters.

[0004] In a first aspect, the embodiments of the present application provide a method for issuing instructions to a smart meter, which comprises: obtaining the instruction type and instruction time limit of a meter instruction, and the running state and network environment of a target smart meter that executes the meter instruction; determining the type score of the meter instruction according to the instruction type, determining the emergency level score of the meter instruction according to the instruction time limit, determining the state score of the target smart meter according to the running state, and determining the network quality score of the target smart meter according to the network environment; performing priority classification on the meter instruction according to the type score, the emergency level score, the state score and the network quality score, and determining the target priority of the meter instruction; allocating the meter instruction to a target queue corresponding to the target priority according to the target priority; determining a target executor, allocating the meter instruction in the target queue to the target executor, and sending the meter instruction to the target smart meter by the target executor, so that the target smart meter executes the meter instruction.

[0005] In a second aspect, the embodiments of the present application provide a device for issuing instructions to a smart meter, which comprises: The acquisition module is configured to acquire an instruction type and an instruction time limit of the meter instruction, and an operating state and a network environment of a target smart meter that executes the meter instruction. The determination module is configured to determine a type score of the meter instruction according to the instruction type, determine an emergency degree score of the meter instruction according to the instruction time limit, determine a state score of the target smart meter according to the operating state, and determine a network quality score of the target smart meter according to the network environment. The classification module is configured to perform priority classification on the meter instruction according to the type score, the emergency degree score, the state score, and the network quality score, and determine a target priority of the meter instruction. The allocation module is configured to allocate the meter instruction to a target queue corresponding to the target priority according to the target priority. The execution module is configured to determine a target executor, allocate the meter instruction in the target queue to the target executor, and send the meter instruction to the target smart meter by the target executor, so that the target smart meter executes the meter instruction.

[0006] In a third aspect, an embodiment of the present application provides a computer device, which comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the meter instruction issuing method according to the first aspect when executing the computer program.

[0007] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable on a processor to implement the meter instruction issuing method according to the first aspect.

[0008] Compared with the prior art, the present application has the following beneficial effects: The instruction type of the meter instruction acquisition instruction and the instruction time limit, and the running state and network environment of a target smart meter executing the meter instruction; according to the instruction type, a type score of the meter instruction is determined, according to the instruction time limit, an emergency degree score of the meter instruction is determined, according to the running state, a state score of the target smart meter is determined, and according to the network environment, a network quality score of the target smart meter is determined; according to the type score, the emergency degree score, the state score and the network quality score, the meter instruction is classified in priority, and a target priority of the meter instruction is determined; according to the target priority, the meter instruction is distributed to a target queue corresponding to the target priority; a target executor is determined, the target queue is distributed to the target executor, the target executor sends the meter instruction to the target smart meter, and the target smart meter executes the meter instruction. The present application classifies the meter instruction in priority based on multiple dimensions, reduces the average response time of high-priority instructions, improves the overall processing efficiency of the system, and enables emergency critical instructions to be executed in priority, effectively avoiding the problem that critical instructions are blocked by ordinary instructions in the traditional queue, and improving the safety of power grid operation. BRIEF DESCRIPTION OF DRAWINGS

[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0010] Figure 1 is a flowchart of a meter instruction issuing method of a smart meter according to an embodiment of the present application; Figure 2 is a structural diagram of a meter instruction issuing device according to an embodiment of the present application; Figure 3 is a structural diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0011] The technical solutions of the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0012] It should be understood that the word “comprise” or variations such as “comprises” or “comprising”, when used in this specification and in the accompanying claims, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0013] It should also be understood that the term “and / or” when used in this specification and in the claims which follow, unless otherwise stated, means any conceivable combination of one or more of the associated listed items and all possible combinations.

[0014] As used in this specification and in the claims, the term “if’ can be interpreted as meaning “when,” or “once,” or “in response to a determination,” or “in response to a detection” depending on the context. Similarly, the phrase “if it is determined” or “if [a described condition or event] is detected” can be interpreted as meaning “once it is determined” or “in response to the determination” or “once [the described condition or event] is detected” or “in response to the detection [of the described condition or event],” depending on the context.

[0015] In addition, in the description of the application and in the claims which follow, the terms “first”, “second”, “third”, etc. are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0016] Reference in the specification to “one embodiment” or “some embodiments” etc. means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrases “in one embodiment”, “in some embodiments”, “in other embodiments”, “in additional embodiments” etc. in various places in the specification are not necessarily all referring to the same embodiment, although they can. The terms “comprise”, “comprises”, “comprising”, “include”, “includes”, “including” and variants thereof are meant to be construed as “including but not limited to”, unless otherwise indicated.

[0017] The command issuing method of the intelligent electric meter of the application is applied to a power system. The system adopts a master-slave cluster architecture. A master-slave replication mode is adopted between master cluster nodes. The failure of any node does not affect the overall service. A health check service periodically monitors the state of each node. When an abnormality is found, a failover mechanism is triggered. A data synchronization service ensures the data consistency between the master-slave clusters. Asynchronous replication is adopted to reduce the performance impact. For the failed command, the system automatically retries according to the failure type and the retry strategy. When the retry upper limit is exceeded, a degradation process is triggered. Through a backup channel or a simplified command, it is ensured that the key operation is completed.

[0018] To illustrate the technical solution of this application, specific embodiments are described below.

[0019] See Figure 1 This is a flowchart illustrating a method for issuing instructions to a smart meter according to an embodiment of this application. Figure 1 As shown, the method for issuing commands to the smart meter may include the following steps.

[0020] S101: Obtain the instruction type and validity period of the meter instruction, as well as the operating status and network environment of the target smart meter executing the meter instruction.

[0021] In step S101, the meter command is a standardized command used for communication, data interaction, and control operations with the smart meter. The command type clearly defines the purpose and direction of interaction between the smart meter and external devices, while the command timeliness indicates the urgency of the command. The target smart meter is the object meter executing the command. The operating status characterizes the smart meter's own working status, the accuracy of electricity metering, the stability of the power grid, and the presence of faults or safety risks, including online status, communication quality, and historical response time. The network environment refers to the network conditions of the smart meter during command reception, used to assess the impact of the network environment on command execution.

[0022] In this embodiment, instruction requests from external devices, such as those submitted by a client, are received through a designated communication interface. The instruction request includes the instruction type, validity period, and target smart meter. The instruction type can include emergency power outage instructions, regular meter reading instructions, etc. The validity period can be one minute, one hour, etc. The smart meter's operating status is determined based on factors such as online status, communication quality, and historical response time, directly reflecting whether the smart meter's hardware and software are functioning properly, thus avoiding disruptions to use due to device malfunctions. Operating status can include "good online," "moderate online," and "offline." The network environment can be determined by real-time monitoring of network latency, packet loss rate, bandwidth utilization, etc., and can be categorized as "excellent network," "good network," and "poor network."

[0023] In this embodiment, the instruction type and validity period of the meter instruction, as well as the operating status and network environment of the target smart meter executing the meter instruction, are obtained to evaluate the priority of the meter instruction from different dimensions, thereby determining the execution order of the meter instruction based on the priority of the meter instruction.

[0024] S102: Determine the type score of the meter instruction based on the instruction type, determine the urgency score of the meter instruction based on the instruction timeliness, determine the status score of the target smart meter based on the operating status, and determine the network quality score of the target smart meter based on the network environment.

[0025] In step S102, the following steps are taken: First, the type score of the meter instruction is determined based on the instruction type; different scores are assigned to different types of instructions. Second, the urgency score of the meter instruction is determined based on the instruction duration; different scores are assigned to different durations. Third, the status score of the target smart meter is determined based on the operating status; different scores are assigned to different operating states. Finally, the network quality score of the target smart meter is determined based on the network environment; different scores are assigned to different network environments.

[0026] In this embodiment, the type score of the meter instruction is determined according to the instruction type. The type score can be classified according to the degree of danger of the meter instruction. For example, an emergency power outage instruction is a control instruction received by the smart meter in extreme scenarios to quickly cut off the power supply to the user side, ensuring grid safety or preventing the accident from escalating. The type score of the emergency power outage instruction can be set relatively high. The fault handling instruction is second only to the emergency power outage instruction, and its type score is lower than that of the emergency power outage instruction. The regular meter reading instruction is the safest instruction, and its type score is the lowest.

[0027] The urgency score of a meter command is determined based on its execution time. This can be achieved using a decay function model. A shorter execution time corresponds to a higher urgency score, while a longer execution time corresponds to a lower urgency score. The decay function model is a mathematical model describing the gradual weakening of a physical quantity, signal, or substance with changes in time, distance, concentration, etc. Common models can be categorized into exponential decay models, power-law decay models, and linear decay models based on whether the decay rate is constant. In this embodiment, an exponential decay model is used to calculate the corresponding urgency score. However, other models can be used, and this embodiment is not limited to any particular model.

[0028] The status score of the target smart meter is determined based on its operating status. The status score is determined based on the communication quality; the better the communication quality, the higher the status score, and the worse the communication quality, the lower the status score.

[0029] Based on the network environment, determine the network quality score of the target smart meter. The network quality score is determined by the network latency; the shorter the network latency, the higher the network quality score, and the longer the network latency, the lower the network quality score.

[0030] It should be noted that the type score, urgency score, state score and network quality score are of the same order of magnitude, such as between 0 and 1 or between 1 and 10, so as to facilitate the fusion of scores from different dimensions and improve the reliability of the fusion of scores from the same dimension.

[0031] In this embodiment, the type score, urgency score, status score, and network quality score of the meter command are determined respectively, so as to comprehensively determine the priority of the meter command based on the scores of different dimensions, thereby improving the accuracy of the meter command priority determination.

[0032] Optionally, the operational status includes online status, communication quality, and historical response time; Based on the operating status, determine the status score of the target smart meter, including: Determine the status score of the online status based on the online status; Based on communication quality, a communication score is determined for the communication quality. Determine the response score based on the historical response time; The state score of the target smart meter is obtained by weighted summation of the state score, communication score, and response score.

[0033] In this implementation, the operational status is used to assess whether the smart meter itself is working properly, including online status, communication quality, and historical response time. Online status determines whether the target smart meter is connected to the network. This can be achieved by periodically sending "heartbeat packets"; if the smart meter returns an "online response," it is considered online; otherwise, it is marked as offline. Communication quality quantifies the stability of the communication link and the accuracy of data transmission, i.e., assessing whether data can be reliably transmitted. For example, communication quality is determined by signal strength; a stronger signal indicates better copper wire quality, and a weaker signal indicates poorer communication quality. Historical response time is an efficiency indicator of the smart meter's processing and feedback of meter commands, i.e., assessing whether data interaction is timely. A shorter historical response time indicates more timely data interaction, and a longer historical response time indicates less timely data interaction.

[0034] Based on online status, a status score is determined. A better online status results in a higher score, and a worse online status results in a lower score. The offline status has the lowest score. Based on communication quality, a communication score is determined. Better communication quality results in a higher score, and worse communication quality results in a lower score. Based on historical response time, a response time score is determined. Shorter historical response times result in a higher score, and longer historical response times result in a lower score. The status score, communication score, and response score are weighted and summed to obtain the status score of the target smart meter. Different weight values ​​are assigned to the status score, communication score, and response score, and the weighted sum is obtained based on these weight values. For example, weight values ​​of 0.2, 0.5, 0.3, etc., can be assigned to the status score, communication score, and response score respectively; different weight values ​​are not limited in this embodiment.

[0035] In this embodiment, the state score of the target smart meter is obtained by weighted summation of the state score, communication score, and response score. The corresponding state scores are calculated from different dimensions to improve the accuracy of the state score.

[0036] Optionally, the network environment includes network latency, packet loss rate, and bandwidth utilization; Based on the network environment, determine the network quality score of the target smart meter, including: Determine the latency score based on network latency; Determine the packet loss score based on the packet loss rate; Determine the broadband utilization score based on the broadband utilization rate; The network quality score of the target smart meter is obtained by weighting and summing the delay score, packet loss score, and broadband utilization score.

[0037] In this embodiment, network latency is used to measure the timeliness of data transmission and consists of three parts: transmission latency, processing latency, and queuing latency. The shorter the network latency, the more timely the data transmission is considered, and the higher the corresponding latency score. Conversely, the longer the network latency, the less timely the data transmission is considered, and the lower the corresponding latency score. Packet loss rate is used to measure the reliability of data transmission. The lower the packet loss rate, the more reliable the data transmission is considered, and the higher the corresponding packet loss score. Conversely, the higher the packet loss rate, the less reliable the data transmission is considered, and the lower the corresponding packet loss score. Bandwidth utilization is used to measure the efficiency of network resource usage. The higher the bandwidth utilization rate, the more efficient the network resource usage is considered, and the higher the corresponding bandwidth utilization score. Conversely, the higher the bandwidth utilization rate, the less efficient the network resource usage is considered, and the lower the corresponding bandwidth utilization score.

[0038] The network quality score of the target smart meter is obtained by weighted summation of the delay score, packet loss score, and broadband utilization score. Different weight values ​​are set according to the importance of the delay score, packet loss score, and broadband utilization score, such as 0.3, 0.4, and 0.3 respectively, or other weight values, which are not limited in this embodiment.

[0039] In this embodiment, the network quality score of the target smart meter is calculated based on the delay score, packet loss score, and broadband utilization score, thereby improving the accuracy of the network quality score.

[0040] S103: Based on the type score, urgency score, status score, and network quality score, classify the meter commands by priority and determine the target priority of the meter commands.

[0041] In step S103, the meter commands are classified by priority according to type score, urgency score, status score and network quality score, that is, the priority of the meter commands is determined so that the corresponding meter commands can be executed in order of priority.

[0042] In this embodiment, when prioritizing meter commands based on type score, urgency score, status score, and network quality score, these scores can be added together to obtain a target score. The priority level corresponding to the target score is then determined based on the magnitude of the target score. For example, if the target score is 5, and priorities include high, medium, and low priorities, where the high priority interval is [7, 10], the medium priority interval is (4, 7), and the low priority interval is [1, 4], then the target priority corresponding to the target score is medium priority.

[0043] In this embodiment, the type score, urgency score, status score and network quality score are integrated to determine the target priority of the meter command. By considering the scores of different dimensions, the accuracy of the target priority is improved.

[0044] Optionally, meter commands are prioritized based on type score, urgency score, status score, and network quality score to determine the target priority of the meter commands, including: Determine the target weight values ​​for type score, urgency score, status score, and network quality score; Based on the target weight value, the type score, urgency score, state score and network quality score are weighted and summed to calculate the target score; Based on the target score, the electricity meter commands are classified by priority to determine the target priority of the electricity meter commands.

[0045] In this embodiment, target weight values ​​are determined for the type score, urgency score, status score, and network quality score. The magnitude of the target weight values ​​can be determined based on the importance of different dimensions, or by other methods. For example, if the urgency of the meter command is relatively important, a larger weight value is assigned to the urgency score. Other methods can also be used to determine the corresponding target weight values; this embodiment does not impose any limitations on this.

[0046] The target weight values ​​include the target weight values ​​for the type score, urgency score, status score, and network quality score. For example, the target weight values ​​for the type score, urgency score, status score, and network quality score are 0.5, 0.3, and 0.2, respectively, or other weight values; this embodiment does not limit the specific weight values. Based on the target weight values, the type score, urgency score, status score, and network quality score are weighted and summed to calculate the target score. Based on the target score, the meter commands are prioritized to determine the target priority. For example, if the target score is 5, and the priority includes high priority, medium priority, and low priority, where the interval score corresponding to high priority is [7, 10], the interval score corresponding to medium priority is (4-7), and the interval score corresponding to low priority is [1-4], then the target priority corresponding to the target score is medium priority.

[0047] In this embodiment, target weight values ​​for type score, urgency score, status score, and network quality score are determined, taking into account the importance of different dimensions. The target scores are calculated, which improves the accuracy of the target scores and thus improves the accuracy of determining the target priority of the meter instructions.

[0048] S104: Based on the target priority, assign the meter command to the target queue corresponding to the target priority.

[0049] In step S104, the target queue corresponds to the target priority, including high priority queue, medium priority queue and low priority queue, etc. The target queue is used to store the tasks that execute the meter instructions, so as to release the corresponding tasks to the executor.

[0050] In this embodiment, the target queue includes a high-priority queue, a medium-priority queue, and a low-priority queue. When the meter instruction is assigned to the target queue corresponding to the target priority, if the target priority of the meter instruction is high, the meter instruction is assigned to the high-priority queue; if the target priority of the meter instruction is medium, the meter instruction is assigned to the medium-priority queue; and if the target priority of the meter instruction is low, the meter instruction is assigned to the low-priority queue.

[0051] Based on target priority, meter commands are assigned to the target queue corresponding to that priority. During the assignment process, if the target queue has not reached its capacity threshold, the meter command is directly added to the tail of the queue. If the target queue has reached its capacity threshold, an overflow handling strategy is executed. This strategy prioritizes discarding the earliest non-urgent meter command that entered the queue. Non-urgent meter commands are those with a target score less than a preset discard threshold. If there are no non-urgent meter commands in the target queue, an alarm is triggered, and the meter commands are temporarily stored in a temporary buffer, to be automatically enqueued when the target queue becomes available.

[0052] It should be noted that the target queue includes a high-priority queue, a medium-priority queue, and a low-priority queue. When scanning each queue, the high-priority queue is scanned first, then the medium-priority queue, and finally the low-priority queue. This is to facilitate the sequential allocation of executors to the tasks in the high-priority queue, medium-priority queue, and low-priority queue. The executors are allocated to the high-priority queue first, then to the medium-priority queue, and finally to the low-priority queue.

[0053] In this embodiment, meter commands are assigned to target queues corresponding to target priorities based on target priorities. This ensures that high-risk and time-sensitive meter commands can be assigned to high-priority queues for priority execution, avoiding being blocked by low-priority commands. This ensures rapid response in scenarios such as fault handling and safety management, and reduces risks.

[0054] S105: Determine the target executor, allocate the meter instructions in the target queue to the target executor, and the target executor sends the meter instructions to the target smart meter, so that the target smart meter executes the meter instructions.

[0055] In step S105, the target actuator sends the meter instruction to the corresponding target smart meter according to the order of the meter release instructions in the target queue, so that the target smart meter executes the meter instruction.

[0056] In this embodiment, after the meter instructions are assigned to the corresponding target queue, the scheduling engine first scans the tasks in the high-priority queue to extract the corresponding meter instructions to be executed. If the target queue is a high-priority queue, the scheduling engine extracts all high-priority tasks and configures corresponding executors for each high-priority task. All high-priority tasks include the meter instructions to be executed. If the target queue is a medium-priority queue, the scheduling engine scans the high-priority queue until all high-priority tasks are extracted, then configures corresponding executors for each high-priority task, and then scans all medium-priority tasks in the medium-priority queue. All medium-priority tasks include the meter instructions to be executed.

[0057] After extracting the meter command to be executed, the target executor is determined to assign the corresponding executor to the meter command. The target executor can be determined based on the execution load, selecting the executor with the lowest load as the target executor. For example, one of the executors with a load below a preset load threshold can be selected as the target executor.

[0058] The meter instructions in the target queue are allocated to the target executor. The target executor then sends the meter instructions to the target smart meter, causing the target smart meter to execute the instructions. After executing the instructions, the target smart meter sends the execution result back to the client.

[0059] It should be noted that if the execution of a meter command by the target smart meter fails, the meter command needs to be rescanned. The number of rescans needs to be checked against a preset threshold. If the number of rescans is less than the threshold, the corresponding meter command is rescanned in the target queue, and a new target executor is assigned to the meter command. If the number of rescans reaches the preset threshold, the execution result of the meter command is marked as a failure, and the result is sent back to the client.

[0060] In this embodiment, a target executor is determined, and the meter instructions in the target queue are allocated to the target executor to avoid sending the meter instructions to the executor with a large load, thereby affecting the execution efficiency of the meter instructions.

[0061] Optionally, the target actuator is determined, including: Obtain the network status and execution load of each actuator; Each executor is evaluated based on network status and execution load to obtain an evaluation value for each executor; The actuator corresponding to the one with the highest evaluation value is determined as the target actuator.

[0062] In this embodiment, the network status and execution load of each executor are obtained. The network status can include online status, offline status, and busy status. The execution load refers to the tasks that have been received and are yet to be executed by the executor. Each executor is evaluated based on its network status and execution load to obtain an evaluation value for each executor. The higher the evaluation value, the more likely the executor is to be identified as the target executor.

[0063] The actuator's status score is determined based on network conditions; for example, online, offline, and busy statuses correspond to scores of 10, 0, and 5, respectively. The actuator's load score is determined based on execution load; for example, a load of 0-30% is worth 10, 30%-70% is worth 5, and 70%-100% is worth 2. The status score and load score are added together to obtain the corresponding actuator's evaluation value. The actuator with the highest evaluation value is selected as the target actuator.

[0064] In this embodiment, the optimal actuator can be dynamically selected to handle meter execution based on real-time network status and load dynamic adjustment, thereby reducing task queuing time and improving system throughput.

[0065] Optionally, obtaining the evaluation value for each actuator also includes: Obtain the actuator position of each actuator and the meter position of the target smart meter; The distance between each actuator position and the meter position is calculated based on the position of each actuator and the position of the meter. Each actuator is evaluated based on the data network status, execution load, and distance to obtain an evaluation value for each actuator.

[0066] In this embodiment, the actuator position of each actuator and the meter position of the target smart meter are obtained. Based on the actuator position and meter position, the distance between each actuator position and the meter position is calculated. Each actuator is evaluated based on network status, execution load, and distance to obtain an evaluation value for each actuator. A higher evaluation value indicates that the actuator is more likely to be identified as the target actuator.

[0067] The actuator's status score is determined based on network conditions. For example, online, offline, and busy statuses correspond to scores of 10, 0, and 5, respectively. The load score is determined based on the execution load. For example, a load of 0-30% is worth 10, 30%-70% is worth 5, and 70%-100% is worth 2. The distance score is determined based on distance. For example, a distance within the first range is worth 10, a distance within the second range is worth 5, and a distance within the third range is worth 2. The distance within the first range is less than the distance within the second range, and the distance within the second range is less than the distance within the third range; that is, the greater the distance, the smaller the score. The status score, load score, and distance score are added together to obtain the corresponding actuator evaluation value. The actuator with the highest evaluation value is determined as the target actuator.

[0068] In this embodiment, taking geographical location into account enables local scheduling, reduces communication expenses, and lowers system operating costs.

[0069] This application acquires the instruction type and validity period of meter commands, as well as the operating status and network environment of the target smart meter executing the command. Based on the instruction type, it determines the type score; based on the validity period, it determines the urgency score; based on the operating status, it determines the status score of the target smart meter; and based on the network environment, it determines the network quality score of the target smart meter. Based on the type score, urgency score, status score, and network quality score, the meter commands are prioritized to determine the target priority. Based on the target priority, the meter commands are assigned to the target queue corresponding to the target priority. The target executor is determined, the target queue is assigned to the target executor, and the target executor sends the meter commands to the target smart meter, enabling the target smart meter to execute the meter commands. This application prioritizes meter commands based on multiple dimensions, reducing the average response time of high-priority commands, improving the overall system processing efficiency, and allowing urgent and critical commands to be executed first. This effectively avoids the problem of critical commands being blocked by ordinary commands in traditional queues, thus improving the safety of power grid operation.

[0070] Please see Figure 2 , Figure 2 This is a schematic diagram of a command issuing device for a smart meter according to an embodiment of this application. This command issuing device for a smart meter corresponds one-to-one with the command issuing method for the smart meter in the above embodiments. Please refer to [link / reference] for details. Figure 1 as well as Figure 1 The relevant descriptions in the corresponding embodiments are shown below. For ease of explanation, only the parts relevant to this embodiment are shown. See also... Figure 1 The instruction issuing device 20 for smart meters includes: an acquisition module 21, a determination module 22, a classification module 23, an allocation module 24, and an execution module 25.

[0071] The acquisition module 21 is used to acquire the instruction type and validity period of the meter instruction, as well as the operating status and network environment of the target smart meter executing the meter instruction.

[0072] The determination module 22 is used to determine the type score of the meter instruction based on the instruction type, the urgency score of the meter instruction based on the instruction timeliness, the status score of the target smart meter based on the operating status, and the network quality score of the target smart meter based on the network environment.

[0073] The classification module 23 is used to classify the electricity meter commands according to the type score, urgency score, status score and network quality score, and determine the target priority of the electricity meter commands.

[0074] The allocation module 24 is used to allocate meter commands to the target queue corresponding to the target priority according to the target priority.

[0075] The execution module 25 is used to determine the target executor, allocate the meter instructions in the target queue to the target executor, and the target executor sends the meter instructions to the target smart meter so that the target smart meter executes the meter instructions.

[0076] Optionally, the determining module 22 includes: The first determining unit is used to determine the status score of the online status based on the online status.

[0077] The second determining unit is used to determine the communication score of the communication quality based on the communication quality.

[0078] The third determining unit is used to determine the response score of the historical response time based on the historical response time.

[0079] The first weighting unit is used to perform a weighted summation of the state score, communication score, and response score to obtain the state score of the target smart meter.

[0080] Optionally, the determining module 22 includes: The second determining unit is used to determine the delay score of the network delay based on the network delay.

[0081] The third determining unit is used to determine the packet loss score based on the packet loss rate.

[0082] The fourth determining unit is used to determine the broadband utilization score based on the broadband utilization rate.

[0083] The second weighting unit is used to perform a weighted summation of the delay score, packet loss score, and broadband utilization score to obtain the network quality score of the target smart meter.

[0084] Optionally, the classification module 23 includes: The fifth determining unit is used to determine the target weight values ​​for the type score, urgency score, status score, and network quality score.

[0085] The calculation unit is used to calculate the target score by weighting and summing the type score, urgency score, state score and network quality score according to the target weight value.

[0086] The classification unit is used to classify the meter commands according to the target score and determine the target priority of the meter commands.

[0087] Optionally, the execution module 25 includes: The acquisition unit is used to acquire the network status and execution load of each executor.

[0088] The evaluation unit is used to evaluate each actuator based on the network status and execution load, and obtain an evaluation value for each actuator.

[0089] The sixth determining unit is used to determine the actuator corresponding to the maximum evaluation value as the target actuator.

[0090] Optionally, the evaluation unit includes: The acquisition subunit is used to acquire the actuator position of each actuator and the meter position of the target smart meter.

[0091] The calculation subunit is used to calculate the distance between each actuator position and the meter position based on each actuator position and the meter position.

[0092] The evaluation subunit is used to evaluate each actuator based on the data network status, execution load, and distance, and obtain an evaluation value for each actuator.

[0093] It should be noted that the information interaction and execution process between the above-mentioned units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.

[0094] Figure 3 This is a schematic diagram of the structure of a computer device provided in one embodiment of this application. For example... Figure 3 As shown, the computer device of this embodiment includes: at least one processor ( Figure 3 Only one is shown in the diagram), a memory, and a computer program stored in the memory and executable on at least one processor, wherein the processor executes the computer program to implement the steps in any of the above-described instruction delivery method embodiments.

[0095] This computer device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that... Figure 3 The examples of computer devices are merely examples and do not constitute a limitation on computer devices. Computer devices may include more or fewer components than shown in the illustration, or combinations of certain components, or different components, such as network interfaces, displays, and input devices.

[0096] The processor referred to can be a CPU, but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0097] Memory includes readable storage media, internal memory, etc., wherein internal memory can be the RAM of a computer device, providing an environment for the operation of the operating system and computer-readable instructions stored in the readable storage media. The readable storage media can be the hard drive of a computer device, or in other embodiments, it can be an external storage device of the computer device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, memory can include both internal storage units and external storage devices of the computer device. Memory is used to store the operating system, applications, bootloader, data, and other programs, such as program code for computer programs. Memory can also be used to temporarily store data that has been output or will be output.

[0098] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the above method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code, a recording medium, a computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0099] The implementation of all or part of the processes in the methods of the above embodiments can also be accomplished by a computer program product. When the computer program product is run on a computer device, it enables the computer device to execute the steps in the above method embodiments.

[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0101] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0102] In the embodiments provided in this application, it should be understood that the disclosed apparatus / computer devices and methods can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0103] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0104] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for issuing commands to a smart meter, characterized in that, The instruction issuance method includes: Obtain the instruction type and validity period of the meter instruction, as well as the operating status and network environment of the target smart meter to execute the meter instruction; Based on the instruction type, determine the type score of the meter instruction; based on the instruction timeliness, determine the urgency score of the meter instruction; based on the operating status, determine the status score of the target smart meter; and based on the network environment, determine the network quality score of the target smart meter. Based on the type score, the urgency score, the status score, and the network quality score, the meter commands are prioritized to determine the target priority of the meter commands. According to the target priority, the meter command is assigned to the target queue corresponding to the target priority; A target executor is determined, and the meter instructions in the target queue are allocated to the target executor. The target executor sends the meter instructions to the target smart meter, so that the target smart meter executes the meter instructions.

2. The instruction issuance method as described in claim 1, characterized in that, The operational status includes online status, communication quality, and historical response time; Determining the state score of the target smart meter based on its operating state includes: Based on the online status, determine the status score of the online status; Based on the communication quality, a communication score is determined for the communication quality. Based on the historical response time, determine the response score for the historical response time; The state score, communication score, and response score are weighted and summed to obtain the state score of the target smart meter.

3. The instruction issuance method as described in claim 1, characterized in that, The network environment includes network latency, packet loss rate, and bandwidth utilization. Determining the network quality score of the target smart meter based on the network environment includes: Based on the network latency, determine the latency score of the network latency; Based on the packet loss rate, determine the packet loss score of the packet loss rate; Based on the broadband utilization rate, determine the broadband utilization score of the broadband utilization rate; The network quality score of the target smart meter is obtained by weighted summing of the delay score, the packet loss score, and the broadband utilization score.

4. The instruction issuance method as described in claim 1, characterized in that, The step of prioritizing the meter commands based on the type score, urgency score, status score, and network quality score, and determining the target priority of the meter commands, includes: Determine the target weight values ​​for the type score, the urgency score, the status score, and the network quality score; Based on the target weight value, the type score, the urgency score, the state score, and the network quality score are weighted and summed to calculate the target score. Based on the target score, the meter commands are classified by priority to determine the target priority of the meter commands.

5. The instruction issuance method as described in claim 1, characterized in that, The determination of the target actuator includes: Obtain the network status and execution load of each actuator; Each executor is evaluated based on the network status and the execution load to obtain an evaluation value for each executor; The actuator corresponding to the maximum evaluation value is determined as the target actuator.

6. The instruction issuance method as described in claim 5, characterized in that, The process of obtaining the evaluation value for each actuator also includes: Obtain the actuator position of each actuator and the meter position of the target smart meter; The distance between each actuator position and the electricity meter position is calculated based on the position of each actuator and the position of the electricity meter. Each actuator is evaluated based on the network status, the execution load, and the distance to obtain an evaluation value for each actuator.

7. A command issuing device for a smart meter, characterized in that, The instruction issuing device includes: The acquisition module is used to acquire the instruction type and validity period of the meter instruction, as well as the operating status and network environment of the target smart meter executing the meter instruction; The determination module is used to determine the type score of the meter instruction based on the instruction type, the urgency score of the meter instruction based on the instruction timeliness, the status score of the target smart meter based on the operating status, and the network quality score of the target smart meter based on the network environment. The classification module is used to classify the meter instructions by priority based on the type score, the urgency score, the status score and the network quality score, and to determine the target priority of the meter instructions. The allocation module is used to allocate the meter command to the target queue corresponding to the target priority according to the target priority; An execution module is used to determine a target executor, allocate meter instructions in the target queue to the target executor, and the target executor sends the meter instructions to the target smart meter, so that the target smart meter executes the meter instructions.

8. The instruction issuing device as described in claim 7, characterized in that, The operating status includes online status, communication quality, and historical response time; the determining module includes: The first determining unit is used to determine the state score of the online state based on the online state. The second determining unit is used to determine the communication score of the communication quality based on the communication quality. The third determining unit is used to determine the response score of the historical response time based on the historical response time. The first weighting unit is used to perform a weighted summation of the state score, the communication score, and the response score to obtain the state score of the target smart meter.

9. A computer device, characterized in that, The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the instruction issuing method for a smart meter as described in any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the instruction issuance method for the smart meter as described in any one of claims 1 to 6.