A method, apparatus, system and medium for multi-data item combined meter reading

CN122578992APending Publication Date: 2026-08-14GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-29
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本申请提供了一种多数据项组合抄表方法、装置、系统及介质,能够解决现有技术中在异构电能表混合组网环境下多项数据的抄表效率低的问题

Benefits of technology

[0008]相比现有技术,上述实施例具有以下有益效果:通过设置基于响应行为的判定机制,利用预设时间内是否接收到响应报文及响应报文类型对电能表的组合抄表能力进行判定,无需依赖人工配置或预先维护设备能力信息,即可在异构电能表混合组网环境下实现对不同电能表能力的自动识别,提高了系统对电能表能力差异的适应性,并为后续自适应选择抄表方式提供可靠依据。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122578992A_ABST
    Figure CN122578992A_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, system, and medium for multi-data-item combined meter reading, belonging to the field of electricity information collection. The method includes: constructing a combined meter reading detection frame and sending the combined meter reading detection frame to each electricity meter; determining whether each electricity meter has multi-data combined meter reading function based on the response behavior of each electricity meter to the combined meter reading detection frame; if it has multi-data combined meter reading function, sending a combined meter reading command to the electricity meter to receive a first response message returned by the electricity meter according to the combined meter reading command; the first response message includes all electricity data; if it does not have multi-data combined meter reading function, sequentially sending single-item meter reading commands for each electricity data to the electricity meter to receive a second response message returned sequentially by the electricity meter; the second response message includes the corresponding single-item electricity data. This application can improve the meter reading efficiency of multiple data in a heterogeneous electricity meter hybrid network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electricity information collection, and in particular to a method, device, system and medium for multi-data item combined meter reading. Background Technology

[0002] In electricity consumption information collection systems, the collector needs to periodically acquire multiple electricity data points from the electricity meter, including power consumption, voltage, current, and power factor, to support business needs such as power grid operation monitoring, load analysis, and metering settlement. Therefore, there is an urgent need for a multi-data-item combined meter reading method to improve meter reading efficiency.

[0003] In practical applications, some electricity meters, limited by hardware performance or firmware implementation, cannot correctly parse combined meter reading requests containing multiple data identifiers. Upon receiving such requests, abnormal responses, communication timeouts, and other anomalies may occur, leading to data acquisition failure. Existing technologies typically employ either pre-configured meter capabilities manually or a uniform single-item meter reading method across the entire network. The former relies on manual maintenance, lacks flexibility, and struggles to adapt to dynamically changing network environments; the latter, while ensuring compatibility, fails to leverage the efficiency advantages of supporting combined meter reading devices, resulting in reduced overall acquisition efficiency. Therefore, in heterogeneous electricity meter hybrid network environments, improving the meter reading efficiency for multiple data points is a key technical problem that needs to be solved. Summary of the Invention

[0004] This application provides a method, device, system, and medium for multi-data item combined meter reading, which can solve the problem of low meter reading efficiency for multiple data items in the prior art under the mixed networking environment of heterogeneous energy meters.

[0005] This application provides a multi-data-item combined meter reading method in some embodiments, applied to a data collector, wherein the data collector communicates bidirectionally with several electricity meters, and the multi-data-item combined meter reading method includes: When a command to collect multiple electrical energy data is received, a combined reading detection frame is constructed and sent to each of the electrical energy meters. Based on the response behavior of each of the energy meters to the combined reading detection frame, it is determined whether each of the energy meters has the function of multiple data combination meter reading. For a first energy meter that has the function of combining multiple data for meter reading, a combined meter reading instruction is sent to the first energy meter based on all the energy data that needs to be collected, so as to receive a first response message returned by the first energy meter according to the combined meter reading instruction; wherein, the first response message includes all the energy data; For a second energy meter that does not have the function of combining multiple data for meter reading, a single data reading instruction for each of the energy data is sent to the second energy meter in sequence, so as to receive a second response message returned by the second energy meter in sequence according to each of the single data reading instructions; wherein, the second response message includes the corresponding single energy data.

[0006] Compared to existing technologies, the above embodiments have the following beneficial effects: This application constructs a combined meter reading detection frame and determines whether each energy meter has the function of combined meter reading based on its response behavior. This allows for capability differentiation among different energy meters in the same network environment. Based on the determination results, it adaptively selects either combined meter reading or single-item meter reading for different energy meters for data collection. Therefore, in a heterogeneous energy meter hybrid network environment, for energy meters with combined meter reading capabilities, a combined meter reading method can be used to reduce communication interactions and improve data collection efficiency; for energy meters without combined meter reading capabilities, a single-item meter reading method is used, avoiding abnormal responses or communication failures caused by uniformly sending combined meter reading commands. Thus, this application can be compatible with energy meters of different capabilities in a heterogeneous energy meter hybrid network and achieve on-demand matching of data collection methods for different energy meters, thereby improving the overall efficiency of multi-data meter reading.

[0007] Further, the step of determining whether each of the energy meters has multiple data combination meter reading functions based on the response behavior of each of the energy meters to the combined reading detection frame includes: For each of the aforementioned electricity meters, if a third response message is received from the electricity meter within a preset time, it is determined that the electricity meter has the function of combining multiple data for meter reading; wherein, the third response message includes a first identification code indicating that the electricity meter can correctly respond to the combined reading detection frame; For each of the aforementioned energy meters, if no response message is received from the energy meter within the preset time, or if a fourth response message is received from the energy meter, then the energy meter is determined to lack the multi-data combination meter reading function; wherein, the fourth response message includes a second identifier code indicating that the energy meter cannot recognize the combined reading detection frame.

[0008] Compared with the prior art, the above embodiments have the following beneficial effects: by setting a judgment mechanism based on response behavior, the combined meter reading capability of the electricity meter is determined by whether a response message is received within a preset time and the type of the response message. Without relying on manual configuration or pre-maintenance of equipment capability information, the system can automatically identify the capabilities of different electricity meters in a heterogeneous electricity meter mixed network environment, which improves the system's adaptability to differences in electricity meter capabilities and provides a reliable basis for subsequent adaptive selection of meter reading methods.

[0009] Furthermore, the step of constructing a combined reading detection frame when receiving a command to collect multiple electrical energy data includes: Extract the data identifiers of all electrical energy data from the acquisition command; According to a preset first communication protocol format, at least two extracted data identifiers are encapsulated into a single frame request message to obtain the combined reading detection frame; wherein, the first communication format supports requesting multiple power data in a single communication handshake.

[0010] Compared with the prior art, the above embodiments have the following beneficial effects: by encapsulating at least two data identifiers into a single frame request message to construct a combined reading probe frame, the ability of the electricity meter to read multiple data items can be detected in a single communication interaction. Compared with the item-by-item detection method, the number of communication times in the detection phase is reduced, and the communication overhead is reduced, thereby improving the overall detection efficiency in large-scale electricity meter networking scenarios.

[0011] Further, the step involves sending a combined meter reading command to the first energy meter based on all the energy data to be collected, and receiving a first response message from the first energy meter according to the combined meter reading command, including: According to the first communication protocol format, all the extracted data identifiers are encapsulated into a single frame request message to obtain the combined meter reading instruction; Send the combined meter reading command to the first energy meter and set the local flag position of the first energy meter to a support state, so that the combined meter reading command can be sent directly to the first energy meter according to the support state in subsequent meter reading processes. Receive the first response message returned by the first energy meter in response to the combined meter reading command.

[0012] Compared with the prior art, the above embodiments have the following beneficial effects: by encapsulating all data identifiers into combined meter reading instructions and setting corresponding support states after determining that the electricity meter has the ability to combine multiple data readings, the combined meter reading method can be directly used for data collection in the subsequent meter reading process, avoiding repeated judgment operations, reducing the number of communication interactions, improving the data collection efficiency of electricity meters with combined meter reading capabilities, and thus improving the overall meter reading efficiency.

[0013] Further, for a second energy meter that does not have the function of combining multiple data for meter reading, the method of sequentially sending individual data reading instructions for each of the energy data to the second energy meter, and receiving a second response message sequentially returned by the second energy meter according to each individual data reading instruction, includes: For each of the aforementioned energy data, a single data meter reading instruction containing only the data identifier corresponding to the energy data is constructed according to a preset second communication protocol format; wherein, the second communication protocol format can only request a single energy data in a single communication handshake; Send each of the individual data reading instructions to the second energy meter one by one, and receive the second response message returned by the second energy meter for each individual data reading instruction.

[0014] Compared with the prior art, the above embodiments have the following beneficial effects: by constructing single-item data reading instructions one by one and acquiring data sequentially when it is determined that the electricity meter does not have the ability to combine multiple data readings, it ensures that the electricity meter that does not support combined reading can still stably complete data acquisition, avoids abnormal response or communication failure caused by sending combined reading instructions, thereby improving the system's compatibility and operational stability in a heterogeneous electricity meter hybrid networking environment.

[0015] Furthermore, after receiving the second response message returned sequentially by the second energy meter according to each of the individual data reading instructions, the method further includes: Parse each of the individual power data items in the second response message to obtain all the power data; Based on the message format of the first response message, all the power data are encapsulated to obtain a simulated first response message.

[0016] Compared with the prior art, the above embodiments have the following beneficial effects: by uniformly parsing the various data obtained from individual data meter readings and encapsulating them according to the first response message format to generate a simulated first response message, the upper-layer system does not need to distinguish the data source method when processing data, thus achieving consistency of the data interface, reducing system processing complexity, and improving the system's unified data processing capability under heterogeneous data acquisition mode.

[0017] Furthermore, the collector communicates bidirectionally with the concentrator, and upon receiving the first response message or the simulated first response message, uploads the first response message or the simulated first response message to the concentrator.

[0018] Compared with the prior art, the above embodiments have the following beneficial effects: by uploading the first response message or simulated first response message to the concentrator in a unified manner, centralized management and processing of data from different sources can be achieved, so that the concentrator side does not need to distinguish the data acquisition method to perform unified parsing and application, thereby improving the overall data processing efficiency of the system and further enhancing the system's adaptability in the heterogeneous electricity meter hybrid networking environment.

[0019] Another embodiment of this application provides a multi-data-item combined meter reading device, applied to a data collector, wherein the data collector communicates bidirectionally with several energy meters, and the multi-data-item combined meter reading device includes: a detection module, a judgment module, a first execution module and a second execution module; The detection module is used to construct a combined reading detection frame and send the combined reading detection frame to each of the energy meters when it receives a command to collect multiple energy data. The determination module is used to determine whether each of the energy meters has multiple data combination meter reading functions based on the response behavior of each of the energy meters to the combined reading detection frame. The first execution module is configured to send a combined meter reading instruction to the first energy meter based on all the energy data to be collected for the first energy meter having the function of combining multiple data for meter reading, and to receive a first response message returned by the first energy meter according to the combined meter reading instruction; wherein, the first response message includes all the energy data; The second execution module is configured to send individual data reading instructions for each of the energy data to a second energy meter that does not have the function of reading multiple data combinations in sequence, and to receive a second response message returned by the second energy meter in sequence according to each individual data reading instruction; wherein the second response message includes the corresponding individual energy data.

[0020] Another embodiment of this application provides a multi-data-item combined meter reading system, including: a concentrator, a plurality of collectors, and a plurality of electricity meters; wherein each of the collectors implements the multi-data-item combined meter reading method of any embodiment of this application.

[0021] Another embodiment of this application provides a computer-readable storage medium item, including: a stored computer program, which, when the computer program is running, controls the device where the computer-readable storage medium is located to perform the steps of the multi-data-item combined meter reading method of this application. Attached Figure Description

[0022] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 This is a flowchart illustrating a multi-data-item combined meter reading method provided in some embodiments of this application; Figure 2 This is a schematic diagram of a combined copy detection frame structure provided in some embodiments of this application; Figure 3 This is a schematic diagram of the structure of a multi-data-item combined meter reading device provided in some embodiments of this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0026] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0029] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0030] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" 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 mechanical connection or an electrical connection; 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. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0031] In practical applications, some electricity meters, limited by hardware performance or firmware implementation, cannot correctly parse combined meter reading requests containing multiple data identifiers. When receiving such requests, abnormal responses, communication timeouts, and other anomalies may occur, leading to data acquisition failure. Existing technologies typically employ strategies such as pre-configuring electricity meter capabilities manually or uniformly adopting a single-item meter reading method across the entire network. The former relies on manual maintenance, lacks flexibility, and is difficult to adapt to dynamically changing network environments; while the latter, although ensuring compatibility, fails to leverage the efficiency advantages of supporting combined meter reading devices, resulting in a reduction in overall data acquisition efficiency.

[0032] Please refer to Figure 1 To address the problem of improving meter reading efficiency for multiple data items in a heterogeneous electricity meter network environment, this application provides a multi-data-item combined meter reading method applied to a data collector that communicates bidirectionally with several electricity meters. The multi-data-item combined meter reading method includes the following steps S101 to S104: S101: When a command to collect multiple energy data is received, a combined reading detection frame is constructed and sent to each of the energy meters.

[0033] Preferably, in some embodiments of this application, the data collector is connected to the corresponding electricity meter via an RS485 bus to aggregate electricity data.

[0034] Preferably, in some embodiments of this application, the acquisition instructions for the plurality of electrical energy data are issued by the concentrator, and the concentrator and the acquisition device communicate bidirectionally through a bidirectional communication network, wherein the electrical energy data includes, but is not limited to, data such as power value, voltage, current, and power factor.

[0035] Preferably, in some embodiments of this application, the concentrator sends collection instructions to each collector via a bidirectional communication network using network broadcasting, thereby achieving unified scheduling and control of the entire network's collection tasks. The collection instructions are constructed based on pre-set periodic collection tasks, specifically including information such as the task duration period, a list of energy data items to be collected, a node reporting period, and a task sequence number. The task duration period defines the execution time range of the current collection task, the node reporting period indicates the data reporting interval for each collector or its subordinate nodes, and the task sequence number distinguishes and manages different batches of collection tasks. Furthermore, the concentrator can calculate the number of data reports each node needs to perform within the entire task period based on the relationship between the task duration period and the node reporting period, and, combined with the current network scale, the amount of data collected, and the communication load, rationally plan channel resources, such as determining the beacon period length and the corresponding time slot allocation scheme. Based on this, the concentrator generates corresponding information collection entries according to the list of energy data items to be collected. It organizes the data identifiers corresponding to multiple energy data items into a data identifier list, and encapsulates this list along with task cycle parameters, reporting cycle parameters, and task sequence numbers to form a central beacon frame for broadcast. This central beacon frame is then sent out as a collection command. The central beacon frame not only carries the specific content of the collection task but also includes communication scheduling information for each collector, such as allocating corresponding reporting time slots or forwarding sequences to different collectors, thereby avoiding communication conflicts and improving network utilization. After receiving the central beacon frame, each collector can further perform corresponding data collection operations on the energy meters it manages based on the information collection entries and scheduling parameters carried within, and complete data reporting according to the allocated time slots, thus achieving orderly execution and efficient completion of the collection task in a multi-node environment.

[0036] Preferably, in some embodiments of this application, a Proxy Coordinator (PCO) is further provided between the collector and the concentrator to perform data forwarding and communication scheduling functions between the two, thereby achieving efficient data transmission in a hierarchical network environment. Specifically, after receiving the central beacon frame broadcast by the concentrator through a two-way communication network, the PCO parses the collection task information carried therein. The collection task information includes the task duration, the list of power data items to be collected, the node reporting cycle, and the task sequence number, etc. Simultaneously, the PCO allocates communication resources to its managed lower-level collectors according to the time slot allocation information or scheduling parameters contained in the central beacon frame. Based on this, the PCO can combine local cache or historical collection results to pre-organize the data item reading operation corresponding to the collection task, generate the corresponding proxy beacon frame, and forward or reconstruct the information collection items and data identifier list in the central beacon frame before sending them to its lower-level collectors. The proxy beacon frame also carries the task cycle, data item list and scheduling information, and the time slot allocation can be further refined according to the network scale managed by the PCO, so that different collectors can complete the data collection and reporting operations of the electricity meter within their respective allocated time slots, avoiding communication conflicts.

[0037] Preferably, in some embodiments of this application, during the data uplink process, after each data collector completes data collection from the electricity meter, it uploads the combined meter reading message or the simulated combined message obtained by encapsulating a single meter reading to the PCO. The PCO summarizes the data from multiple data collectors and can use a batch confirmation mechanism to uniformly confirm the reporting results of each data collector, reducing the communication overhead caused by node-by-node confirmation. Subsequently, the PCO forwards the summarized data messages to the concentrator according to the predetermined routing strategy and the allocated uplink time slots. Furthermore, when the concentrator detects that some data collectors have missing data or reporting anomalies, it can issue a supplementary data collection command through the PCO, which coordinates the corresponding data collector to re-execute data collection and reporting, thereby improving the overall data integrity and transmission reliability of the system. By introducing the PCO node, hierarchical forwarding and scheduling management between the concentrator and the data collectors is realized, effectively reducing communication conflicts, improving data transmission efficiency, and enhancing the scalability and stability of the system in a large-scale networking environment.

[0038] Furthermore, in some embodiments of this application, the step of constructing a combined reading detection frame when receiving a command to collect multiple electrical energy data includes: Extract the data identifiers of all electrical energy data from the acquisition command; According to a preset first communication protocol format, at least two extracted data identifiers are encapsulated into a single frame request message to obtain the combined reading detection frame; wherein, the first communication format supports requesting multiple power data in a single communication handshake.

[0039] Preferably, in some embodiments of this application, when the collector receives a collection instruction for multiple electrical energy data, it first parses the collection instruction and extracts the data identifiers corresponding to all electrical energy data items involved in this collection task. The data identifiers are used to uniquely represent various data items in the electricity meter, such as electricity, voltage, current, and power factor. Based on this, the collector encapsulates the data identifiers according to a preset first communication protocol format. The first communication protocol format supports requesting multiple data items simultaneously during a single communication handshake. Specifically, the collector combines at least two extracted data identifiers in a predetermined order and constructs a corresponding single-frame request message. This single-frame request message is used as a combined read probe frame. The single-frame request message includes a frame start symbol, an electricity meter address field, a control code field, a data length field, multiple data identifier fields, a check field, and a frame end symbol. The control code is used to instruct the electricity meter to perform a data read operation, and the data length field indicates the byte length of the data identifier field. After constructing the combined reading probe frame using the above method, the collector sends the message to the target energy meter, thereby triggering read requests for multiple data items simultaneously during a single communication interaction. Furthermore, when the energy meter has the capability for combined reading of multiple data items, it can return a response message containing multiple data identifiers and their corresponding data values ​​based on the combined reading probe frame; conversely, when the energy meter does not have this capability, it may return an error flag or not respond. By employing the above-mentioned construction method of the combined reading probe frame based on multi-data identifier encapsulation, not only can the number of communication interactions be reduced, but the combined reading capability of the energy meter can also be determined synchronously during the actual data reading process, thus providing a basis for the adaptive selection of subsequent meter reading methods.

[0040] Preferably, in some embodiments of this application, reference is made to Figure 2 The combined reading detection frame includes: a 68H start character, a 6-byte BCD encoded energy meter address, a 68H start character, a control code C0=0x01 (reading multiple data identifiers), a data length L (number of data identifiers × 4 bytes), multiple data identifiers (i.e., DI), a check code CS, and a tail character 16H.

[0041] This application constructs a combined reading probe frame by encapsulating at least two data identifiers into a single frame request message, enabling the detection of the ability to read multiple data items from an energy meter in a single communication interaction. Compared with the item-by-item detection method, this reduces the number of communications during the detection phase and lowers communication overhead, thereby improving the overall detection efficiency in large-scale energy meter networking scenarios.

[0042] S102: Determine whether each of the energy meters has multiple data combination meter reading functions based on the response behavior of each energy meter to the combined reading detection frame.

[0043] Furthermore, in some embodiments of this application, the step of determining whether each of the energy meters has a multi-data combination meter reading function based on the response behavior of each of the energy meters to the combined reading detection frame includes: For each of the aforementioned electricity meters, if a third response message is received from the electricity meter within a preset time, it is determined that the electricity meter has the function of combining multiple data for meter reading; wherein, the third response message includes a first identification code indicating that the electricity meter can correctly respond to the combined reading detection frame; For each of the aforementioned energy meters, if no response message is received from the energy meter within the preset time, or if a fourth response message is received from the energy meter, then the energy meter is determined to lack the multi-data combination meter reading function; wherein, the fourth response message includes a second identifier code indicating that the energy meter cannot recognize the combined reading detection frame.

[0044] Preferably, in some embodiments of this application, after sending a combined reading probe frame to each energy meter, the data collector monitors and analyzes the response behavior of each energy meter to determine whether the corresponding energy meter has the function of multiple data combination meter reading. Specifically, for each energy meter, after sending the combined reading probe frame, the data collector starts a preset response timing mechanism and listens for the response message returned by the energy meter within a preset time window. When a response message returned by the energy meter is received within the preset time, the data collector first performs an integrity check on the response message, including the correctness of the check code, the legality of the frame structure, and the consistency of the data field length, and further analyzes the correspondence between the control code flag bit (i.e., the first identifier code) and the data identifier in the response message. When the response message contains multiple data identifiers and their corresponding data values, and the control code flag bit indicates a normal response state, the response message can be determined to be the first response message, and it can be determined that the corresponding energy meter can correctly parse and execute the combined reading probe frame, thereby determining that the energy meter has the function of multiple data combination meter reading.

[0045] Accordingly, if no response message is received from the target energy meter within a preset time, the energy meter is considered to have failed to respond effectively to the combined reading probe frame. Alternatively, if a response message is received, and parsing reveals that the message contains abnormal identification information, error control codes (i.e., second identification codes), incorrect data length, or only returns a single data item, thus failing to meet the characteristics of a combined reading response, the response message is identified as a second response message. The second response message indicates that the energy meter cannot recognize or does not support the combined reading probe frame. In both cases, the energy meter is determined to lack the function of combined data reading. Through this comprehensive judgment method based on response timing and message content, the combined reading capability of heterogeneous energy meters can be automatically identified without pre-configuring energy meter capability information, thereby providing a basis for selecting an appropriate data acquisition method.

[0046] This application establishes a judgment mechanism based on response behavior to determine the combined meter reading capability of electricity meters by using whether a response message is received within a preset time and the type of the response message. Without relying on manual configuration or pre-maintenance of equipment capability information, it can automatically identify the capabilities of different electricity meters in a heterogeneous electricity meter mixed network environment, improve the system's adaptability to differences in electricity meter capabilities, and provide a reliable basis for subsequent adaptive selection of meter reading methods.

[0047] S103: For a first energy meter that has the function of combining multiple data for meter reading, a combined meter reading instruction is sent to the first energy meter based on all the energy data that needs to be collected, so as to receive a first response message returned by the first energy meter according to the combined meter reading instruction; wherein, the first response message includes all the energy data.

[0048] Furthermore, in some embodiments of this application, the step of sending a combined meter reading command to the first energy meter based on all the energy data to be collected, and receiving a first response message returned by the first energy meter according to the combined meter reading command, includes: According to the first communication protocol format, all the extracted data identifiers are encapsulated into a single frame request message to obtain the combined meter reading instruction; Send the combined meter reading command to the first energy meter and set the local flag position of the first energy meter to a support state, so that the combined meter reading command can be sent directly to the first energy meter according to the support state in subsequent meter reading processes. Receive the first response message returned by the first energy meter in response to the combined meter reading command.

[0049] Preferably, in some embodiments of this application, when it is determined from the combined reading detection results that the target energy meter has the function of combined reading of multiple data, the collector sends a combined reading instruction to the energy meter based on all the energy data to be collected, so as to achieve the one-time acquisition of multiple data. Specifically, the collector first extracts the data identifiers corresponding to all the energy data involved in this task from the collection instruction, and uniformly encapsulates the data identifiers according to the preset first communication protocol format. All data identifiers are written into the data field of a single frame request message in a predetermined order, and a complete message structure is constructed, including a frame start symbol, an energy meter address field, a control code field, a data length field, multiple data identifier fields, a check field, and a frame end symbol, thereby forming a combined reading instruction. Among them, the control code is used to instruct the energy meter to perform a data reading operation, and the data length field is used to indicate the byte length occupied by the data identifier field. After constructing the combined meter reading command, the data collector sends the command to the corresponding electricity meter and sets a combined meter reading support flag locally for the meter. This flag records that the meter has been determined to support the combined meter reading function, allowing for direct use of the combined meter reading method in subsequent periodic meter readings without repeating the capability detection process. Subsequently, the data collector receives the response message from the electricity meter and verifies and parses it. If the response message contains multiple data identifiers and their corresponding data values, it is processed and stored as the first response message. Through this method, for electricity meters with combined meter reading capabilities, all target energy data can be acquired in a single communication interaction, significantly reducing the number of communication attempts and signaling overhead, improving data acquisition efficiency. Furthermore, the local flag mechanism avoids duplicate judgments, further reducing the system's operational burden.

[0050] This application, after determining that an electricity meter has the capability to combine multiple data readings, encapsulates all data identifiers into combined reading instructions and sets corresponding support states, enabling data collection to be directly performed using the combined reading method during subsequent meter reading processes. This avoids repeated determination operations, reduces the number of communication interactions, improves the data collection efficiency of electricity meters with combined reading capabilities, and thus enhances the overall meter reading efficiency.

[0051] S104: For a second energy meter that does not have the function of combining multiple data for meter reading, send a single data reading instruction for each of the energy data to the second energy meter in sequence, so as to receive a second response message returned by the second energy meter in sequence according to each of the single data reading instructions; wherein, the second response message includes the corresponding single energy data.

[0052] Furthermore, in some embodiments of this application, the step of sequentially sending individual data reading instructions for each of the energy data to a second energy meter that does not have the function of combining multiple data readings, and receiving a second response message sequentially returned by the second energy meter according to each individual data reading instruction, includes: For each of the aforementioned energy data, a single data meter reading instruction containing only the data identifier corresponding to the energy data is constructed according to a preset second communication protocol format; wherein, the second communication protocol format can only request a single energy data in a single communication handshake; Send each of the individual data reading instructions to the second energy meter one by one, and receive the second response message returned by the second energy meter for each individual data reading instruction.

[0053] Preferably, in some embodiments of this application, when it is determined from the combined reading detection results that the target energy meter does not have the function of combined multi-data reading, the collector completes the data collection by reading each data item one by one for the energy meter. Specifically, the collector first extracts the corresponding data identifiers one by one according to the various energy data required in the collection task, and constructs single-data reading instructions according to the preset second communication protocol format. The second communication protocol format is used to request only one data item in a single communication interaction. Its message structure also includes a frame start symbol, an energy meter address field, a control code field, a data length field, a single data identifier field, a check field, and a frame end symbol. The data field contains only one data identifier, which is used to instruct the energy meter to return the corresponding data value. After completing the construction of each single-data reading instruction, the collector sends the single-data reading instructions to the target energy meter one by one in a predetermined order, and starts a response listening mechanism after each transmission to receive the response message returned by the energy meter within a preset time. For each individual data reading command, the energy meter returns a corresponding second response message, which includes the data value corresponding to the data identifier and related status information. The collector verifies and parses each second response message, sequentially caching the acquired energy data locally until the acquisition of all data items is completed. Through this item-by-item reading method, even when the energy meter does not support combined reading, the complete acquisition of all energy data can still be guaranteed, avoiding abnormal responses or communication failures caused by sending combined reading commands. This ensures the stable operation of the system and the reliability of data acquisition in mixed network environments with different types of energy meters.

[0054] This application, by constructing individual data reading commands one by one and acquiring data sequentially when it is determined that the electricity meter does not have the ability to combine multiple data readings, ensures that the electricity meter that does not support combined reading can still stably complete data acquisition, avoids abnormal response or communication failure caused by sending combined reading commands, and thus improves the compatibility and operational stability of the system in a heterogeneous electricity meter mixed network environment.

[0055] Furthermore, in some embodiments of this application, after receiving the second response message returned sequentially by the second energy meter according to each of the individual data reading instructions, the method further includes: Parse each of the individual power data items in the second response message to obtain all the power data; Based on the message format of the first response message, all the power data are encapsulated to obtain a simulated first response message.

[0056] Preferably, in some embodiments of this application, after the collector receives multiple second response messages sequentially returned by the energy meter through item-by-item reading, it also performs unified parsing and reconstruction processing on the second response messages. Specifically, the collector first performs a legality check on each second response message, including the correctness of the check code, the integrity of the message structure, and the consistency of the data length. After the check passes, it extracts the corresponding data identifier and its data value from each second response message, and organizes and caches each data according to the preset data item order in the collection task, thereby obtaining a complete set of multiple energy data. On this basis, in order to ensure that the upper-level system does not need to distinguish the data source method when processing data, the collector further encapsulates all the energy data obtained above in a unified manner according to the established message format of the first response message. Specifically, the collector constructs a message structure consistent with the combined reading response message, including a frame start character, an energy meter address field, a control code field, a data length field, and a data field composed of multiple data identifiers combined with data values, and recalculates the corresponding check code, finally generating a frame simulating the first response message. The simulated first response message is consistent in structure and format with the combined reading response message directly returned by the electricity meter. This means that when receiving data, the upper-level node or concentrator does not need to distinguish whether the message comes from combined reading or single-item reading reconstruction, thereby achieving data interface unification, reducing system processing complexity, and ensuring that the data interaction method is consistent with the combined reading scenario even in electricity meter scenarios that do not support combined reading, thus improving the overall compatibility and consistency of the system.

[0057] This application generates a simulated first response message by uniformly parsing the various data obtained from individual data meter readings and encapsulating them according to the first response message format. This allows the upper-layer system to process data without distinguishing the data source method, achieving consistency of the data interface, reducing system processing complexity, and improving the system's ability to uniformly process data under heterogeneous data acquisition modes.

[0058] Furthermore, in some embodiments of this application, the collector communicates bidirectionally with the concentrator, and upon receiving the first response message or the simulated first response message, uploads the first response message or the simulated first response message to the concentrator.

[0059] Preferably, in some embodiments of this application, after the concentrator receives the first response message or simulated first response message uploaded by each collector, it performs unified access processing and parsing on the first response message. Specifically, the concentrator first performs integrity verification on the received data message, including checksum verification, frame structure validity verification, and data length consistency judgment. After confirming the message is valid, it parses the address field in the message to determine the corresponding energy meter or collector node identifier, and matches and classifies the collection task to which the message belongs in combination with the task sequence number. Since the simulated first response message is consistent with the first response message in message structure, the concentrator does not need to distinguish the data source method during the parsing process. It extracts each data identifier and its corresponding data value in the message data field according to a unified data parsing process, thereby obtaining complete multiple energy data.

[0060] Preferably, in some embodiments of this application, the concentrator can summarize and verify the integrity of the data reported by each collector according to the task sequence number and the preset task duration period. For example, it can determine whether all the data from each electricity meter has been returned within the corresponding reporting period. If some electricity meters are found to have missing data, reporting timeouts, or data anomalies, a corresponding supplementary collection task can be generated, and a supplementary collection instruction can be reissued through the original communication path (including the path via the proxy coordination node) to trigger the corresponding collector to re-execute the data collection and reporting operation. At the same time, the concentrator can also uniformly store multiple received electricity data and provide standardized data interfaces to the upper-level master station system as needed for subsequent data analysis, metering settlement, or operation monitoring. Through the above processing method, the concentrator can uniformly manage and schedule data from different collection paths without distinguishing the collection method, which not only improves data processing efficiency but also enhances the data consistency and overall operational reliability of the system in a heterogeneous electricity meter hybrid network environment.

[0061] This application achieves centralized management and processing of data from different sources by uniformly uploading the first response message or simulated first response message to the concentrator. This allows the concentrator to perform unified parsing and application without distinguishing between data acquisition methods, thereby improving the overall data processing efficiency of the system and further enhancing the system's adaptability in a heterogeneous electricity meter hybrid network environment.

[0062] In summary, the multi-data-item combined meter reading method provided in this application has the following advantages compared to the prior art: This application constructs a combined reading probe frame and determines whether each energy meter has the function of multi-data-item combined meter reading based on its response behavior, thereby differentiating the capabilities of different energy meters in the same network environment. Based on the determination result, it adaptively selects either combined meter reading or single-item meter reading mode for different energy meters for data collection. Therefore, in a heterogeneous energy meter hybrid network environment, for energy meters with combined meter reading capabilities, the combined meter reading mode can be used to reduce the number of communication interactions and improve data collection efficiency; for energy meters without combined meter reading capabilities, the single-item meter reading mode is used to avoid abnormal responses or communication failures caused by uniformly sending combined reading commands. Thus, this application can be compatible with energy meters of different capabilities in a heterogeneous energy meter hybrid network and realize on-demand matching of data collection methods for different energy meters, thereby improving the overall efficiency of multi-data-item meter reading.

[0063] like Figure 3 As shown, based on the above method embodiments, an embodiment of this application provides a data item combination meter reading device, which is applied to a data collector. The data collector communicates bidirectionally with several electricity meters. The multi-data item combination meter reading device includes: a detection module 201, a judgment module 202, a first execution module 203, and a second execution module 204. The detection module 201 is used to construct a combined reading detection frame and send the combined reading detection frame to each of the energy meters when it receives a command to collect multiple energy data. The determination module 202 is used to determine whether each of the energy meters has multiple data combination meter reading functions based on the response behavior of each of the energy meters to the combined reading detection frame. The first execution module 203 is configured to send a combined meter reading instruction to the first energy meter based on all the energy data to be collected for the first energy meter having the function of combining multiple data for meter reading, and to receive a first response message returned by the first energy meter according to the combined meter reading instruction; wherein, the first response message includes all the energy data. The second execution module 204 is used to send individual data reading instructions for each of the energy data to a second energy meter that does not have the function of reading multiple data combinations in sequence, so as to receive a second response message returned by the second energy meter in sequence according to each of the individual data reading instructions; wherein, the second response message includes the corresponding individual energy data.

[0064] In summary, the multi-data-item combined meter reading device provided in this application has the following advantages compared to the prior art: This application constructs a combined reading detection frame and determines whether each energy meter has the function of multi-data combined meter reading based on its response behavior, thereby differentiating the capabilities of different energy meters in the same network environment. Based on the determination result, it adaptively selects combined meter reading or single-item meter reading mode for different energy meters for data collection. Therefore, in a heterogeneous energy meter mixed network environment, for energy meters with combined meter reading capabilities, the combined meter reading mode can be used to reduce the number of communication interactions and improve data collection efficiency; for energy meters without combined meter reading capabilities, the single-item meter reading mode is used to avoid abnormal responses or communication failures caused by uniformly sending combined reading commands. Thus, this application can be compatible with energy meters of different capabilities in a heterogeneous energy meter mixed network and realize on-demand matching of data collection methods for different energy meters, thereby improving the overall efficiency of multi-data meter reading.

[0065] It is understood that the above-described device embodiments correspond to the method embodiments of this application, and can implement the multi-data-item combined meter reading method provided by any of the above-described method embodiments of this application.

[0066] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided in this application, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0067] Based on the above embodiments of the multi-data-item combined meter reading method, another embodiment of this application provides a multi-data-item combined meter reading system, including: a concentrator, a plurality of collectors, and a plurality of electricity meters; wherein, each of the collectors implements the multi-data-item combined meter reading method of any embodiment of this application.

[0068] Based on the above embodiments of the multi-data-item combined meter reading method, another embodiment of this application provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the multi-data-item combined meter reading method of any embodiment of this application.

[0069] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete this application. The one or more module units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0070] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0071] The processor can be a Central Processing Unit (CPU), or 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. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0072] Based on the above-described method embodiments, another embodiment of this application provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the multi-data-item combined meter reading method described in any of the above-described method embodiments of this application.

[0073] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, 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 can also 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 various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

Claims

1. A method for meter reading combining multiple data items, characterized in that, Applied to a data collector, which communicates bidirectionally with several electricity meters, the multi-data-item combined meter reading method includes: When a command to collect multiple electrical energy data is received, a combined reading detection frame is constructed and sent to each of the electrical energy meters. Based on the response behavior of each of the energy meters to the combined reading detection frame, it is determined whether each of the energy meters has the function of multiple data combination meter reading. For a first energy meter that has the function of combining multiple data for meter reading, a combined meter reading instruction is sent to the first energy meter based on all the energy data that needs to be collected, so as to receive a first response message returned by the first energy meter according to the combined meter reading instruction; wherein, the first response message includes all the energy data; For a second energy meter that does not have the function of combining multiple data for meter reading, a single data reading instruction for each of the energy data is sent to the second energy meter in sequence, so as to receive a second response message returned by the second energy meter in sequence according to each of the single data reading instructions; wherein, the second response message includes the corresponding single energy data.

2. The multi-data-item combined meter reading method as described in claim 1, characterized in that, The step of determining whether each energy meter has multiple data combination meter reading functions based on the response behavior of each energy meter to the combined reading detection frame includes: For each of the aforementioned electricity meters, if a third response message is received from the electricity meter within a preset time, it is determined that the electricity meter has the function of combining multiple data for meter reading; wherein, the third response message includes a first identification code indicating that the electricity meter can correctly respond to the combined reading detection frame; For each of the aforementioned energy meters, if no response message is received from the energy meter within the preset time, or if a fourth response message is received from the energy meter, then the energy meter is determined to lack the multi-data combination meter reading function; wherein, the fourth response message includes a second identifier code indicating that the energy meter cannot recognize the combined reading detection frame.

3. The multi-data-item combined meter reading method as described in claim 1, characterized in that, When a command to collect multiple electrical energy data is received, a combined reading and detection frame is constructed, including: Extract the data identifiers of all electrical energy data from the acquisition command; According to a preset first communication protocol format, at least two extracted data identifiers are encapsulated into a single frame request message to obtain the combined reading detection frame; wherein, the first communication format supports requesting multiple power data in a single communication handshake.

4. The multi-data-item combined meter reading method as described in claim 3, characterized in that, The process involves sending a combined meter reading command to the first energy meter based on all the required energy data, and receiving a first response message from the first energy meter according to the combined meter reading command, including: According to the first communication protocol format, all the extracted data identifiers are encapsulated into a single frame request message to obtain the combined meter reading instruction; Send the combined meter reading command to the first energy meter and set the local flag position of the first energy meter to a support state, so that the combined meter reading command can be sent directly to the first energy meter according to the support state in subsequent meter reading processes. Receive the first response message returned by the first energy meter in response to the combined meter reading command.

5. The multi-data-item combined meter reading method as described in claim 4, characterized in that, For a second energy meter that does not have the function of combining multiple data for meter reading, a single data reading instruction for each of the energy data is sent sequentially to the second energy meter, and a second response message is received sequentially returned by the second energy meter according to each of the single data reading instructions, including: For each of the aforementioned energy data, a single data meter reading instruction containing only the data identifier corresponding to the energy data is constructed according to a preset second communication protocol format; wherein, the second communication protocol format can only request a single energy data in a single communication handshake; Send each of the individual data reading instructions to the second energy meter one by one, and receive the second response message returned by the second energy meter for each individual data reading instruction.

6. The multi-data-item combined meter reading method as described in claim 1, characterized in that, After receiving the second response message returned sequentially by the second energy meter according to each of the individual data reading instructions, the method further includes: Parse each of the individual power data items in the second response message to obtain all the power data; Based on the message format of the first response message, all the power data are encapsulated to obtain a simulated first response message.

7. The multi-data-item combined meter reading method as described in claim 6, characterized in that, The collector communicates bidirectionally with the concentrator, and upon receiving the first response message or the simulated first response message, uploads the first response message or the simulated first response message to the concentrator.

8. A multi-data-item combined meter reading device, characterized in that, The multi-data-item combined meter reading device is applied to a data collector that communicates bidirectionally with several electricity meters. The data collector includes a detection module, a judgment module, a first execution module, and a second execution module. The detection module is used to construct a combined reading detection frame and send the combined reading detection frame to each of the energy meters when it receives a command to collect multiple energy data. The determination module is used to determine whether each of the energy meters has multiple data combination meter reading functions based on the response behavior of each of the energy meters to the combined reading detection frame. The first execution module is configured to send a combined meter reading instruction to the first energy meter based on all the energy data to be collected for the first energy meter having the function of combining multiple data for meter reading, and to receive a first response message returned by the first energy meter according to the combined meter reading instruction; wherein, the first response message includes all the energy data; The second execution module is configured to send individual data reading instructions for each of the energy data to a second energy meter that does not have the function of reading multiple data combinations in sequence, and to receive a second response message returned by the second energy meter in sequence according to each individual data reading instruction; wherein the second response message includes the corresponding individual energy data.

9. A multi-data-item combined meter reading system, characterized in that, include: The device comprises a concentrator, several data collectors, and several electricity meters; wherein each of the data collectors implements a multi-data-item combined meter reading method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a multi-data-item combined meter reading method as described in any one of claims 1 to 7.