A dynamic switching meter reading method and system based on batch reading method
Patent Information
- Application Number
- CN202511368673.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-24
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2045-09-24
AI Technical Summary
[0003]目前常见的抄表方法有单点轮询法和批量抄读法,单点轮询法是指信息采集系统按照预设的顺序和时间依次向每个电能终端单独发起数据读取请求的方式得到电能信息,即每个电能终端的多个数据需要单个点依次进行抄读;成功率较高但是耗时较长,采集效率低
本申请中提供了一种基于批量抄读法的动态切换抄表方法,相较于现有技术,根据抄表任务的执行过程对抄表方法进行动态切换,采用批量抄读和单点轮询抄读混合协同的抄读方式,判断抄读失败的类型切换抄读方法,既可以保证抄读成功率和抄读效率,又可以保留已成功抄读数据,避免一旦失败即全量切换导致的数据资源浪费和效率损失,还可以保证抄表数据的完整性和准确性。
Smart Images

Figure CN121037718B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power information acquisition technology, specifically to a dynamic switching meter reading method and system based on batch reading. Background Technology
[0002] With the increasing popularity of smart grids and smart meters, higher requirements have been placed on smart power monitoring and data acquisition technologies, and remote automatic meter reading technology has gradually become an important part of power management.
[0003] Currently, common meter reading methods include single-point polling and batch reading. Single-point polling refers to the information acquisition system sequentially sending data reading requests to each power terminal according to a preset order and time to obtain power information. This means that multiple data points from each power terminal need to be read sequentially from a single point. While this method has a high success rate, it is time-consuming and has low collection efficiency. Conversely, batch reading allows the information acquisition system to simultaneously read data from multiple frozen data points when reading data from each power terminal, achieving centralized and rapid data acquisition. This method significantly improves collection efficiency compared to single-point polling. However, in high-noise power grid environments, the success rate of the first packet (i.e., the initial meter reading data acquisition success rate) drops significantly. This is because there are numerous power terminals in a smart grid, and communication problems with smart meters frequently occur, leading to meter reading failures. Failed meter readings result in the discard of entire batches of data, wasting communication resources and requiring repeated meter readings, further reducing work efficiency.
[0004] Therefore, based on the above problems, it is of great significance to study how to improve the success rate and efficiency of meter reading in high-noise power grid environments. Summary of the Invention
[0005] The purpose of this invention is to provide a dynamic switching meter reading method based on batch reading, so as to solve the existing technical problems in the background art.
[0006] To solve the above-mentioned technical problems, the technical solution provided by the present invention is as follows: This application provides a dynamic meter reading switching method based on batch reading, including the following steps: Obtain data collection tasks published by the main site; Based on the data collection task, the concentrator schedules the task and issues specific meter reading tasks. Determine whether a specific meter reading task meets the conditions for the batch meter reading method; If the specific meter reading task meets the conditions for the batch meter reading method, then the batch meter reading method is executed, and data from multiple points is read simultaneously; otherwise, the single-point polling meter reading method is executed, and data from a single point is read sequentially. Receive reply messages from the communication between the concentrator and the smart meter; The parsed information is obtained by parsing the reply message. Determine whether the parsed information meets the requirements for copying; If the parsed information meets the requirements for reading, then the meter reading is completed and the reading information is stored. If the parsed information does not meet the reading requirements, the data points that did not respond correctly are obtained based on the parsed information, and the single-point reading method is performed on the data points that did not respond correctly. Receive and store the meter reading information for missing points to complete the meter reading.
[0007] Based on the above technical solution, the following steps are also included: Determine whether there are smart meter data points that have not responded to messages normally based on the parsed information; If there are smart meter data points that have not responded to messages correctly, a single-point reading supplementary reading task will be performed on the data points that have not responded to messages correctly within a preset fixed time period, and their failure information will be recorded.
[0008] Based on the above technical solution, a batch meter reading method is used to read data from multiple points. When parsing the response message information, the following steps are included: Expand the first node to the first N nodes; Determine if the failure rate exceeds the first preset threshold; if the failure rate exceeds the first preset threshold, it indicates that the batch copying has failed, triggering the re-execution instruction of the batch copying method; Determine whether the number of failed batch copying exceeds the second preset threshold; if the number of failed batch copying exceeds the second preset threshold, trigger the execution command to switch from batch copying to single-point polling copying.
[0009] Based on the above technical solution, the N nodes are set to 1 / 4 of the total number of points; the first preset threshold is 50%; and the second preset threshold is 3 times.
[0010] Based on the above technical solution, when reading single-point data using the single-point polling meter reading method, the reply message information is parsed. If the parsed information meets the reading requirements, the successful table is set to the successful status, and the failed table is set to the failed status, and then the data information of the next data point is collected.
[0011] Based on the above technical solution, the parsed information includes time stamp, data item identifier, and data field length.
[0012] Based on the above technical solution, determining whether the parsed information meets the requirements for copying includes the following steps: Determine if the timestamp of the reply message is an abnormal time and whether it meets the time requirement for copying this data point; Determine if the data item identifier matches the copied message; Determine whether the length of the data field meets the length requirement and whether there is any abnormal data within the data field.
[0013] Based on the above technical solution, the concentrator performs task scheduling and execution, including: Initial task scheduling: Based on the data acquisition task, the concentrator periodically generates a meter reading task queue and schedules communication resources according to the priority of the meter reading task to execute the meter reading task; Task scheduling during task execution: Determine whether the status of all smart meters in the specific meter reading task is not null; if yes, it means that all smart meters are in a successful state and the task ends in this cycle; if not, the meter reading task will be executed again. If a specific meter reading task meets the conditions for batch meter reading, the batch meter reading task will be executed. At the same time, the concentrator will configure the start time, end time, and time interval when sending the group meter reading message.
[0014] This application also provides a meter reading system, including: The task scheduling and publishing module is used to plan and schedule data collection tasks published by the main station, and to publish specific meter reading tasks. The first judgment module is used to determine whether a specific meter reading task meets the batch meter reading method. The meter reading execution module is used to select a meter reading method to perform meter reading based on the judgment result of the first judgment module; The communication module is used for communication and data acquisition between the master station, concentrator, and multiple smart meters; The parsing module parses the acquired data packet information; The second judgment module is used to determine whether the parsed information meets the requirements for copying. The copying module is used to select and copy the correct points based on the judgment result of the second judgment module.
[0015] This application also provides a computer-readable storage medium having a computer program, characterized in that the computer program, when executed by a processor, implements the dynamic switching meter reading method based on batch reading.
[0016] The beneficial effects of the technical solution provided by this invention are as follows: This application provides a dynamic meter reading switching method based on batch reading. Compared with the prior art, the meter reading method is dynamically switched according to the execution process of the meter reading task. It adopts a hybrid collaborative reading method of batch reading and single-point polling reading, and switches the reading method according to the type of reading failure. This can not only ensure the success rate and efficiency of reading, but also retain the successfully read data, avoiding the waste of data resources and efficiency loss caused by a full switch once a failure occurs. It can also ensure the integrity and accuracy of the meter reading data. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating the present invention; Detailed Implementation The present invention will be further described below with reference to the accompanying drawings and embodiments: In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0018] In the description of this invention, it should be understood that the terms "left", "right", "front", "rear", "top", "bottom", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0019] like Figure 1 As shown, a dynamic meter reading switching method based on batch reading includes the following steps: Obtain data collection tasks published by the main site; Based on the data collection task, the concentrator schedules the task and issues specific meter reading tasks. Determine whether a specific meter reading task meets the conditions for the batch meter reading method; Batch meter reading refers to reading data from multiple frozen points on a single electricity terminal at once. Based on the specific data collection task, a data collection scheme is configured, and the configuration of the scheme is evaluated. For example, configuring a collection task ratio of 2:1 means the task will be executed once per hour, with an execution cycle of one hour; configuring a collection scheme ratio of 1:15 means frozen data needs to be collected at 15-minute intervals. This configuration satisfies the condition that multiple points need to be read in a single task execution, thus employing the batch meter reading method.
[0020] If the specific meter reading task meets the conditions for the batch meter reading method, then the batch meter reading method is executed, and data from multiple points is read simultaneously; otherwise, the single-point polling meter reading method is executed, and data from a single point is read sequentially. Receive reply messages from the communication between the concentrator and the smart meter; The parsed information is obtained by parsing the reply message. Specifically, the parsed information includes time stamp, data item identifier, and data field length; Determine whether the parsed information meets the requirements for copying; If the parsed information meets the requirements for reading, then the meter reading is completed and the reading information is stored. To determine whether the parsed information meets the requirements for copying, the following aspects should be considered: whether the timestamp of the reply message is an abnormal time and whether it meets the time requirements for copying; whether the data item identifier is consistent with the copy message; and whether the length of the data field meets the length requirements and whether the data field contains abnormal data such as 0xFF.
[0021] If the parsed information does not meet the reading requirements, the data points that did not respond correctly are obtained based on the parsed information, and the single-point reading method is performed on the data points that did not respond correctly. Receive and store the meter reading information for missing points to complete the meter reading.
[0022] Preferably, the concentrator communicates with the smart meter via the RS-485 protocol or via a carrier wave.
[0023] This application provides a dynamic meter reading switching method based on batch reading. Compared with the prior art, the meter reading method is dynamically switched according to the execution process of the meter reading task. It adopts a hybrid collaborative reading method of batch reading and single-point polling reading, and switches the reading method according to the type of reading failure. This can not only ensure the success rate and efficiency of reading, but also retain the successfully read data, avoiding the waste of data resources and efficiency loss caused by a full switch once a failure occurs. It can also ensure the integrity and accuracy of the meter reading data.
[0024] Specifically, in the batch meter reading method, a dynamic first-node expansion mechanism is adopted. This mechanism uses the failure rate of the first N nodes to determine the communication quality of the entire batch of data, reducing invalid retries. Combining failure type information makes early warnings more accurate, improving the success rate of the first frame and the effective utilization rate of the first frame data. A hybrid batch and single-point collaborative meter reading method is employed, selecting the reading or supplementary reading method based on the failure type. Successful data is retained, and the reading method is only switched locally for missing points, reducing redundant communication and effectively improving meter reading efficiency. By improving the supplementary reading task and retry logic, timely supplementation of data from unread points is ensured, improving the completeness and accuracy of meter reading data and providing reliable data support for subsequent data analysis and decision-making. Figure 1 In the flowchart shown: Method 1 represents the single-point polling method for copying, and Method 2 represents the batch copying method.
[0025] Based on the above technical solution, the following steps are also included: Determine whether there are smart meter data points that have not responded to messages normally based on the parsed information; If there are smart meter data points that have not responded to messages correctly, a single-point reading supplementary reading task will be performed on the data points that have not responded to messages correctly within a preset fixed time period, and their failure information will be recorded.
[0026] By pre-setting fixed reading time periods for points that have not been successfully read and promptly executing supplementary reading tasks, the missing data is ensured to be supplemented in a timely manner, improving the integrity of the overall meter reading data. At the same time, the failure information of the missing points is recorded and stored, providing reliable data support for subsequent data analysis and decision-making.
[0027] Based on the above technical solution, a batch meter reading method is used to read data from multiple points. When parsing the response message information, the following steps are included: Expand the first node to the first N nodes; Determine if the failure rate exceeds the first preset threshold; if the failure rate exceeds the first preset threshold, it indicates that the batch copying has failed, triggering the re-execution instruction of the batch copying method; Determine whether the number of failed batch copying exceeds the second preset threshold; if the number of failed batch copying exceeds the second preset threshold, trigger the execution command to switch from batch copying to single-point polling copying.
[0028] Based on the above technical solution, the N nodes are set to 1 / 4 of the total number of points; the first preset threshold is 50%; and the second preset threshold is 3 times.
[0029] Preferably, this application employs a dynamic first-node expansion mechanism, expanding the traditional "first node" concept to the first N nodes. The failure rate of the first N nodes is used to determine the communication quality of the entire batch of data, deciding whether to trigger a full batch retry of the batch reading method, rather than discarding the entire batch of data upon a single node failure. This improves meter reading efficiency and reduces data resource waste. According to the improved retry and switching reading method logic, if the failure rate of the first N nodes is greater than 50%, all points are triggered to re-read using the batch reading method; if the batch reading method fails three times consecutively, a full switch to the single-point polling method is performed for reading.
[0030] Based on the above technical solution, when reading single-point data using the single-point polling meter reading method, the reply message information is parsed. If the parsed information meets the reading requirements, the successful table is set to the successful status, and the failed table is set to the failed status, and then the data information of the next data point is collected.
[0031] Based on the above technical solution, the parsed information includes a timestamp, a data item identifier, and a data field length. Determining whether the parsed information meets the copying requirements includes the following steps: determining whether the timestamp of the reply message is an abnormal time and whether it meets the time requirement for copying this data point; determining whether the data item identifier is consistent with the copying message; and determining whether the data field length meets the length requirement and whether there is any abnormal data within the data field.
[0032] Based on the above technical solution, the concentrator performs task scheduling and execution, including: Initial task scheduling: Based on the data acquisition task, the concentrator periodically generates a meter reading task queue and schedules communication resources according to the priority of the meter reading task to execute the meter reading task; Task scheduling during task execution: Determine whether the status of all smart meters in the specific meter reading task is not null; if yes, it means that all smart meters are in a successful state and the task ends in this cycle; if not, the meter reading task will be executed again. If a specific meter reading task meets the conditions for batch meter reading, the batch meter reading task will be executed. At the same time, the concentrator will configure the start time, end time, and time interval when sending the group meter reading message.
[0033] Since all data collection tasks are in an array, the task scheduling logic is to traverse the queue to find the executable task with the highest priority and execute the corresponding meter reading task.
[0034] During task execution, the status of the smart meters is assessed in real time, and task scheduling also occurs simultaneously. If all meters succeed, the task cannot be executed again within that cycle until the start of the next cycle. The task's completion signifies the end of the current cycle. If not all meters succeed, the task can be executed again within that cycle. Whether a task is executed is determined by task scheduling. Each time a task is executed, the execution count (run_cnt) increments by 1, and its priority decreases by 1. The task scheduling mechanism prioritizes the highest-priority task. When this task is scheduled, it can be executed again because it is already in an executable state.
[0035] This application also provides a meter reading system, including: The task scheduling and publishing module is used to plan and schedule data collection tasks published by the main station, and to publish specific meter reading tasks. The first judgment module is used to determine whether a specific meter reading task meets the batch meter reading method. The meter reading execution module is used to select a meter reading method to perform meter reading based on the judgment result of the first judgment module; The communication module is used for communication and data acquisition between the master station, concentrator, and multiple smart meters; The parsing module parses the acquired data packet information; The second judgment module is used to determine whether the parsed information meets the requirements for copying. The copying module is used to select and copy the correct points based on the judgment result of the second judgment module.
[0036] This application also provides a computer-readable storage medium having a computer program, characterized in that the computer program, when executed by a processor, implements the dynamic switching meter reading method based on batch reading.
[0037] The foregoing has shown and described the basic principles and main features of the present invention. It will be apparent to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments. Therefore, the embodiments should be considered as exemplary and not restrictive. The scope of the present invention is defined by the appended claims rather than the foregoing description. Therefore, it is intended that all variations falling within the meaning and scope of the equivalents of the claims be included within the present invention.
[0038] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A dynamic switching meter reading method based on batch meter reading, characterized in that, Includes the following steps: Obtain data collection tasks published by the main site; Based on the data collection task, the concentrator schedules the task and issues specific meter reading tasks. Determine whether a specific meter reading task meets the conditions for the batch meter reading method; If the specific meter reading task meets the conditions for the batch meter reading method, then the batch meter reading method is executed, and data from multiple points is read simultaneously; otherwise, the single-point polling meter reading method is executed, and data from a single point is read sequentially. Receive reply messages from the communication between the concentrator and the smart meter; The parsed information is obtained by parsing the reply message. Determine whether the parsed information meets the requirements for copying; If the parsed information meets the requirements for meter reading, then the meter reading is completed and the information is stored. If the parsed information does not meet the reading requirements, the data points that did not respond correctly are obtained based on the parsed information, and the single-point reading method is performed on the data points that did not respond correctly. Receive and store the meter reading information from data points that have not responded with correct messages, and complete the meter reading process. When using a batch meter reading method to read data from multiple points, the following steps are included when parsing the response message information: Expand the first node to the first N nodes; Determine whether the failure rate exceeds a first preset threshold; If the failure rate exceeds the first preset threshold, it indicates that the batch copying has failed, triggering the re-execution instruction of the batch copying method; Determine whether the number of failed batch copying exceeds the second preset threshold; if the number of failed batch copying exceeds the second preset threshold, trigger the execution command to switch from batch copying to single-point polling copying.
2. The dynamic switching meter reading method based on batch reading as described in claim 1, characterized in that, It also includes the following steps: Determine whether there are smart meter data points that have not responded to messages normally based on the parsed information; If there are smart meter data points that have not responded to messages correctly, a single-point reading supplementary reading task will be performed on the data points that have not responded to messages correctly within a preset fixed time period, and their failure information will be recorded.
3. The dynamic switching meter reading method based on batch reading as described in claim 1, characterized in that, The N nodes are set to 1 / 4 of the total number of nodes; the first preset threshold is 50%; the second preset threshold is 3 times.
4. The dynamic switching meter reading method based on batch reading as described in claim 1, characterized in that, When reading data from a single point using the single-point polling method, the response message information is parsed. If the parsed information meets the reading requirements, the successful table is set to a successful status, and the failed table is set to a failed status, and then the data information of the next data point is collected.
5. The dynamic switching meter reading method based on batch reading as described in claim 1, characterized in that, The parsed information includes time stamp, data item identifier, and data field length.
6. The dynamic switching meter reading method based on batch reading as described in claim 1, characterized in that, Determining whether the parsed information meets the requirements for copying includes the following steps: Determine if the timestamp of the reply message is an abnormal time and whether it meets the time requirement for copying this data point; Determine if the data item identifier matches the copied message; Determine whether the length of the data field meets the length requirement and whether there is any abnormal data within the data field.
7. The dynamic switching meter reading method based on batch reading as described in claim 1, characterized in that, The concentrator performs task scheduling and execution, including: Initial task scheduling: Based on the data acquisition task, the concentrator periodically generates a meter reading task queue and schedules communication resources according to the priority of the meter reading task to execute the meter reading task; Task scheduling during task execution: Determine whether the status of all smart meters in the specific meter reading task is not null; if yes, it means that all smart meters are in a successful state and the task ends in this cycle; if not, the meter reading task will be executed again. If a specific meter reading task meets the conditions for batch meter reading, the batch meter reading task will be executed. At the same time, the concentrator will configure the start time, end time, and time interval when sending the group meter reading message.
8. A meter reading system, characterized in that, include: The task scheduling and publishing module is used to plan and schedule data collection tasks published by the main station, and to publish specific meter reading tasks. The first judgment module is used to determine whether a specific meter reading task meets the conditions of the batch meter reading method; The meter reading execution module is used to select a meter reading method based on the judgment result of the first judgment module. If the specific meter reading task meets the conditions of the batch meter reading method, the batch meter reading method is executed, and data from multiple points is read at the same time. If it does not meet the conditions, the single-point polling meter reading method is executed, and data from a single point is read sequentially. The communication module is used for communication and message acquisition between the master station, concentrator, and multiple smart meters; The parsing module is used to parse the acquired reply message information to obtain parsed information; it adopts a batch meter reading method to read data from multiple points, and expands the first node to the first N nodes when parsing the reply message information; it determines whether the failure rate exceeds the first preset threshold. If the failure rate exceeds the first preset threshold, it indicates that the batch copying has failed, triggering the instruction to re-execute the batch copying method; determine whether the number of batch copying failures exceeds the second preset threshold; if the number of batch copying failures exceeds the second preset threshold, trigger the instruction to switch from batch copying to single-point polling copying. The second judgment module is used to determine whether the parsed information meets the requirements for copying. If the parsed information meets the requirements for meter reading, then the meter reading is completed and the information is stored. The data re-copying module is used to select data points for which incorrect response messages were not correctly copied based on the judgment result of the second judgment module. If the parsed information does not meet the reading requirements, the data points that did not respond correctly are obtained based on the parsed information, and the single-point reading method is performed on the data points that did not respond correctly. Receive and store the meter reading information from data points that have not responded correctly, and complete the meter reading.
9. A computer-readable storage medium having a computer program, characterized in that, When the computer program is executed by the processor, it implements the dynamic switching meter reading method based on batch reading as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for testing electricity consumption information acquisition system, and master station
CN102468984A
Rapid dense information acquisition method
CN113724485A
Concentrator data acquisition method and concentrator
CN118038656A