Meter reading method and device, computer device and storage medium

By dividing the concentrator identifier and allocating a thread pool for meter reading, the problem of low efficiency in traditional meter reading is solved, and a more efficient meter reading process is achieved.

CN116249032BActive Publication Date: 2026-07-31SHENZHEN POWER SUPPLY BUREAU
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN POWER SUPPLY BUREAU
Filing Date
2023-01-03
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In traditional meter reading methods, the sequence of markers on the concentrator makes the meter reading process inefficient and time-consuming.

Method used

By acquiring meter reading tasks for the target area, multiple concentrator identifiers are divided and combined communication methods are determined to form multiple meter reading combinations. A thread pool is then allocated to each combination, and the thread pool is used to perform meter reading.

Benefits of technology

It improved the speed of generating meter reading instructions and processing meter reading information, thereby increasing meter reading efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116249032B_ABST
    Figure CN116249032B_ABST
Patent Text Reader

Abstract

This application relates to a meter reading method, apparatus, computer equipment, storage medium, and computer program product. The method includes: obtaining a meter reading task corresponding to a target area; based on the meter reading task, obtaining multiple concentrator identifiers in the target area, and combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to a combination of a first communication method between the concentrator and the main station corresponding to the concentrator identifier, and a second communication method between the concentrator and the meter; based on the combined communication methods corresponding to the concentrator identifiers, dividing the multiple concentrator identifiers to obtain multiple meter reading combinations; determining a thread pool corresponding to each meter reading combination; and performing meter reading on the meter reading combination based on the thread pool corresponding to the meter reading combination. This method can improve meter reading efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power technology, and in particular to a meter reading method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] With the development of power technology, the number of electricity meters is increasing day by day. In order to read the readings of electricity meters, automatic meter reading technology has emerged. Automatic meter reading technology refers to the process of automatically reading the readings of electricity meters based on a host and a concentrator.

[0003] In traditional technology, the readings of the meters connected to each concentrator are recorded sequentially according to the order of the concentrator labels. The entire meter reading process takes a lot of time, resulting in low meter reading efficiency. Summary of the Invention

[0004] Therefore, it is necessary to provide a meter reading method, device, computer equipment, computer-readable storage medium, and computer program product that can improve meter reading efficiency in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a meter reading method. The method includes:

[0006] Obtain the meter reading tasks corresponding to the target area;

[0007] Based on the meter reading task, multiple concentrator identifiers in the target area are obtained, as well as the combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the main station, and the second communication method between the concentrator and the electricity meter.

[0008] Based on the combined communication method corresponding to the concentrator identifier, the multiple concentrator identifiers are divided to obtain multiple meter reading combinations;

[0009] Determine the thread pool corresponding to each of the meter reading combinations;

[0010] Meter reading is performed on the meter combination based on the thread pool corresponding to the meter combination to be read.

[0011] In one embodiment, determining the thread pool corresponding to each of the meter-to-be-read combinations includes:

[0012] For the meter reading combination, obtain the combined communication method corresponding to the concentrator identifier in the meter reading combination;

[0013] Obtain the number of meters connected to each concentrator corresponding to each concentrator identifier in the meter reading combination;

[0014] The number of meters corresponding to each concentrator identifier is counted to obtain the total number of meters to be read for the combination of meters to be read.

[0015] Based on the combined communication method and the total number of meters to be read, determine the number of threads corresponding to the combination of meters to be read;

[0016] Based on the number of threads, the thread pool corresponding to the combination of meters to be read is obtained.

[0017] In one embodiment, determining the number of threads corresponding to the combination of meters to be read, based on the combined communication method and the total number of meters to be read, includes:

[0018] Based on the combined communication method, obtain the target mapping relationship between the number of meter readings and the number of threads corresponding to the combined communication method;

[0019] Based on the total number of meters to be read, the number of threads corresponding to the combination of meters to be read is obtained from the target mapping relationship.

[0020] In one embodiment, obtaining multiple concentrator identifiers in the target area, and the combined communication method corresponding to the concentrator identifiers, includes:

[0021] Obtain multiple concentrator identifiers in the target area;

[0022] For each of the concentrator identifiers, obtain the first communication method between the concentrator and the main station corresponding to the concentrator identifier, and the second communication method between the concentrator and the electricity meter connected to the concentrator;

[0023] Based on the first communication method and the second communication method corresponding to the concentrator identifier, the combined communication method corresponding to the concentrator identifier is obtained.

[0024] In one embodiment, the step of reading the meters based on the thread pool corresponding to the meter group to be read includes:

[0025] Based on the concentrator identifier in the meter reading group, the meter reading instruction corresponding to each concentrator identifier is generated through the thread pool corresponding to the meter reading group.

[0026] Send the meter reading instruction to the corresponding concentrator identifier;

[0027] Obtain the meter reading information sent by each of the concentrators in the meter reading group;

[0028] The meter reading information is processed based on the thread pool corresponding to the meter reading group to obtain the meter reading data for each meter.

[0029] In one embodiment, obtaining the meter reading information sent by each concentrator in the meter reading group includes:

[0030] The concentrator in the meter reading assembly obtains the communication address of the electricity meter connected to the concentrator, and generates a meter reading instruction for the electricity meter based on the communication address.

[0031] The concentrator sends the meter reading command to the corresponding electricity meter and obtains the response information of the electricity meter based on the meter reading command.

[0032] The concentrator generates meter reading information based on the response information and sends the meter reading information.

[0033] Receive meter reading information sent by each of the concentrators in the meter reading group.

[0034] In one embodiment, the step of dividing the multiple concentrator identifiers based on the combined communication methods corresponding to the concentrator identifiers to obtain multiple meter reading combinations includes:

[0035] The concentrator identifiers with the same combined communication method are divided into a meter reading group, resulting in multiple meter reading groups.

[0036] Secondly, this application also provides a meter reading device. The device includes:

[0037] The acquisition module is used to acquire meter reading tasks corresponding to the target area;

[0038] The combination module is used to obtain multiple concentrator identifiers in the target area and the combined communication methods corresponding to the concentrator identifiers based on the meter reading task; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the master station, and the second communication method between the concentrator and the meter.

[0039] The partitioning module is used to partition the multiple concentrator identifiers based on the combined communication methods corresponding to the concentrator identifiers, thereby obtaining multiple meter reading combinations;

[0040] The determination module is used to determine the thread pool corresponding to each of the meter-to-be-read combinations;

[0041] The meter reading module is used to read meters from the combination of meters to be read based on the thread pool corresponding to the combination of meters to be read.

[0042] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0043] Obtain the meter reading tasks corresponding to the target area;

[0044] Based on the meter reading task, multiple concentrator identifiers in the target area are obtained, as well as the combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the main station, and the second communication method between the concentrator and the electricity meter.

[0045] Based on the combined communication method corresponding to the concentrator identifier, the multiple concentrator identifiers are divided to obtain multiple meter reading combinations;

[0046] Determine the thread pool corresponding to each of the meter reading combinations;

[0047] Meter reading is performed on the meter combination based on the thread pool corresponding to the meter combination to be read.

[0048] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0049] Obtain the meter reading tasks corresponding to the target area;

[0050] Based on the meter reading task, multiple concentrator identifiers in the target area are obtained, as well as the combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the main station, and the second communication method between the concentrator and the electricity meter.

[0051] Based on the combined communication method corresponding to the concentrator identifier, the multiple concentrator identifiers are divided to obtain multiple meter reading combinations;

[0052] Determine the thread pool corresponding to each of the meter reading combinations;

[0053] Meter reading is performed on the meter combination based on the thread pool corresponding to the meter combination to be read.

[0054] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0055] Obtain the meter reading tasks corresponding to the target area;

[0056] Based on the meter reading task, multiple concentrator identifiers in the target area are obtained, as well as the combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the main station, and the second communication method between the concentrator and the electricity meter.

[0057] Based on the combined communication method corresponding to the concentrator identifier, the multiple concentrator identifiers are divided to obtain multiple meter reading combinations;

[0058] Determine the thread pool corresponding to each of the meter reading combinations;

[0059] Meter reading is performed on the meter combination based on the thread pool corresponding to the meter combination to be read.

[0060] The aforementioned meter reading method, apparatus, computer equipment, storage medium, and computer program product acquire meter reading tasks corresponding to a target area, acquire multiple concentrator identifiers in the target area based on the meter reading tasks, and acquire the combined communication methods corresponding to the concentrator identifiers, divide the multiple concentrator identifiers based on the combined communication methods corresponding to the concentrator identifiers to obtain multiple meter reading combinations, determine the thread pool corresponding to each meter reading combination, and perform meter reading on the meter reading combination based on the thread pool corresponding to the meter reading combination. By classifying the concentrator identifiers in the target area according to their corresponding combined communication methods, the concentrator identifiers in different meter reading combinations have different communication methods between the concentrator, the host, and the meter. These different communication methods result in different communication durations, and the number of concentrator identifiers in each meter reading combination also varies. This difference in the number of concentrator identifiers and their corresponding combined communication methods leads to variations in the amount of meter reading information received by the host within the same timeframe. Furthermore, the number of concentrator identifiers also affects the number of meter reading instructions the host needs to generate. By determining a thread pool for each meter reading combination, appropriate threads can be allocated to each combination, improving the speed of meter reading instruction generation and meter reading information processing, thereby increasing meter reading efficiency. Moreover, using multiple thread pools to simultaneously read multiple meter reading combinations can further enhance meter reading efficiency. Attached Figure Description

[0061] Figure 1 This is a diagram illustrating the application environment of the meter reading method in one embodiment;

[0062] Figure 2 This is a flowchart illustrating a meter reading method in one embodiment;

[0063] Figure 3 This is a flowchart illustrating the thread pool determination steps in one embodiment;

[0064] Figure 4This is a flowchart illustrating the meter reading steps for a meter reading combination in one embodiment;

[0065] Figure 5 This is a flowchart illustrating the steps for obtaining meter reading information in one embodiment;

[0066] Figure 6 This is a structural block diagram of a meter reading device in one embodiment;

[0067] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0068] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0069] The table search method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with concentrator 104 via a network. A data storage system can store the data that concentrator 104 needs to process. The data storage system can be integrated into terminal 102 or placed in the cloud or on other network servers. The terminal and concentrator are used to execute the meter reading method provided in this embodiment. For example, the terminal obtains the meter reading task corresponding to the target area, obtains multiple concentrator identifiers in the target area based on the meter reading task, and the combined communication methods corresponding to the concentrator identifiers. Based on the combined communication methods corresponding to the concentrator identifiers, the multiple concentrator identifiers are divided to obtain multiple meter reading combinations. A thread pool corresponding to each meter reading combination is determined, and meter reading is performed on the meter reading combination based on the thread pool corresponding to the meter reading combination. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Concentrator 104 can be implemented using an independent concentrator or a concentrator cluster composed of multiple concentrators.

[0070] In one embodiment, such as Figure 2 As shown, a meter reading method is provided. This method can be applied to computer equipment, which can be a terminal or a server. The method can be executed independently by the terminal or server, or it can be implemented through interaction between the terminal and the server. This embodiment uses the application of this method to a computer device as an example for illustration, including steps 202 to 210.

[0071] Step 202: Obtain the meter reading task corresponding to the target area.

[0072] The target area refers to the region where meter readings are to be performed. This target area can be the region where the electricity provider supplies electricity. It can be understood as a target area containing multiple concentrators, each connected to multiple meters, resulting in a large number of meters in the target area. A meter reading task refers to a task received by the computer equipment, instructing it to read the meter readings. Meter reading tasks can be entered by operators via a terminal or automatically triggered based on a preset time. For example, a meter reading task corresponding to the target area might be automatically generated on the 30th of each month.

[0073] For example, a computer device acquires the meter reading task corresponding to a target area.

[0074] Step 204: Based on the meter reading task, obtain multiple concentrator identifiers in the target area, as well as the combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to the combination of the first communication method between the concentrator and the main station corresponding to the concentrator identifier, and the second communication method between the concentrator and the meter.

[0075] A concentrator is a central connection point device that connects terminals, computers, or communication equipment. The concentrator serves as the central point for cable convergence. In areas with a high density of electricity meters, to reduce communication lines, the meters are typically connected to the concentrator first, and then the concentrator communicates with the computer equipment via a network. The concentrator identifier is a string that corresponds uniquely to each concentrator. The concentrator identifier can consist of letters, numbers, symbols, etc. The combined communication method refers to the combination of the first communication method between the concentrator and the master station, and the second communication method between the concentrator and the electricity meter. This can be understood as the combined communication method including both the communication between the concentrator and the master station and the communication between the concentrator and the electricity meter.

[0076] For example, after the computer device obtains the meter reading task, it obtains the target area from the meter reading task, then obtains all the concentrator identifiers included in the target area, and obtains the combined communication method corresponding to the concentrator identifier.

[0077] In one embodiment, after the computer device obtains the meter reading task, it obtains the target area from the meter reading task, then obtains all concentrator identifiers included in the target area, obtains the first communication method and the second communication method corresponding to the concentrator identifier, and combines the first communication method and the second communication method corresponding to the concentrator identifier according to a preset method to obtain the combined communication method corresponding to the concentrator identifier.

[0078] Step 206: Based on the combined communication method corresponding to the concentrator identifier, divide the multiple concentrator identifiers to obtain multiple combinations of meters to be read.

[0079] Here, the meter reading combination refers to a set consisting of multiple concentrator identifiers. This can be understood as the meter reading combination including multiple concentrator identifiers, each concentrator identifier corresponding to a combined communication method with the same attributes.

[0080] For example, the computer device divides multiple concentrator identifiers into multiple meter reading combinations based on the combined communication method corresponding to the concentrator identifier.

[0081] In one embodiment, the computer device classifies the combined communication methods corresponding to the concentrator identifier, for example, into wireless + wired and wired + wired, to obtain the category corresponding to the concentrator identifier, and divides several concentrator identifiers of the same category into a meter reading combination.

[0082] Step 208: Determine the thread pool corresponding to each meter reading combination.

[0083] A thread pool is a collection of multiple threads.

[0084] For example, the computer device determines the thread pool corresponding to each group of meters to be read.

[0085] Step 210: Based on the thread pool corresponding to the meter reading combination, perform meter reading for the meter reading combination.

[0086] Meter reading refers to recording the readings of electricity meters. It can be understood as recording the data on electricity usage from the meters.

[0087] For example, the computer device performs meter readings on the meter combination to be read through a thread pool corresponding to the combination of meters to be read.

[0088] In the above meter reading method, the meter reading task corresponding to the target area is obtained, multiple concentrator identifiers in the target area and the combined communication methods corresponding to the concentrator identifiers are obtained based on the meter reading task, the multiple concentrator identifiers are divided based on the combined communication methods corresponding to the concentrator identifiers to obtain multiple meter reading combinations, the thread pool corresponding to each meter reading combination is determined, and the meter reading is performed on the meter reading combination based on the thread pool corresponding to the meter reading combination. By classifying the concentrator identifiers in the target area according to their corresponding combined communication methods, the concentrator identifiers in different meter reading combinations have different communication methods between the concentrator, the host, and the meter. These different communication methods result in different communication durations, and the number of concentrator identifiers in each meter reading combination also varies. This difference in the number of concentrator identifiers and their corresponding combined communication methods leads to variations in the amount of meter reading information received by the host within the same timeframe. Furthermore, the number of concentrator identifiers also affects the number of meter reading instructions the host needs to generate. By determining a thread pool for each meter reading combination, appropriate threads can be allocated to each combination, improving the speed of meter reading instruction generation and meter reading information processing, thereby increasing meter reading efficiency. Moreover, using multiple thread pools to simultaneously read multiple meter reading combinations can further enhance meter reading efficiency.

[0089] In one embodiment, such as Figure 3 As shown, the thread pool corresponding to each meter reading combination includes:

[0090] Step 302: For the meter reading combination, obtain the combination communication method corresponding to the concentrator identifier in the meter reading combination.

[0091] For example, the computer device obtains the combined communication method corresponding to each meter reading combination. The combined communication method corresponding to the meter reading combination is the combined communication method corresponding to the concentrator identifier in the meter reading combination.

[0092] Step 304: Obtain the number of meters connected to each concentrator corresponding to each concentrator identifier in the meter reading combination.

[0093] The number of meters refers to the total number of meters connected to a concentrator.

[0094] For example, the computer device sequentially obtains the concentrator identifier in the meter reading combination, and then obtains the number of meters corresponding to the concentrator identifier.

[0095] Step 306: Count the number of meters corresponding to each concentrator identifier to obtain the total number of meters to be read for the combination of meters to be read.

[0096] The total number of meters to be read refers to the total number of meters connected to all concentrators corresponding to the concentrator identifiers in a meter reading group.

[0097] For example, the computer device adds up the number of meters corresponding to the concentrator identifier in the meter reading combination to obtain the total number of meters to be read for the meter reading combination.

[0098] Step 308: Based on the combined communication method and the total number of meters to be read, determine the number of threads corresponding to the combination of meters to be read.

[0099] In this context, a thread refers to the smallest unit of computation that an operating system can schedule. The number of threads refers to the number of threads allocated to the meter reading group.

[0100] For example, the computer device determines the number of threads corresponding to the meter reading combination based on the combined communication method corresponding to the meter reading combination and the total number of meters to be read.

[0101] Step 310: Based on the number of threads, obtain the thread pool corresponding to the combination of meters to be read.

[0102] For example, the computer device allocates a certain number of threads to the meter reading group based on the number of threads corresponding to the meter reading group, and forms the threads into a thread pool corresponding to the meter reading group.

[0103] In this embodiment, the thread pool corresponding to each meter reading combination is determined based on the communication method and the total number of meters to be read. Different communication methods and total numbers of meters to be read result in different amounts of meter reading information received by the host within the same time period. By determining the thread pool corresponding to each meter reading combination, an appropriate number of threads can be allocated to each combination, thereby improving the generation speed of meter reading instructions and the processing speed of meter reading information, and thus improving the efficiency of meter reading.

[0104] In one embodiment, determining the number of threads corresponding to the combination of meter readings, based on the combined communication method and the total number of meters to be read, includes:

[0105] Based on the combined communication method, obtain the target mapping relationship between the number of meters read and the number of threads corresponding to the combined communication method; based on the total number of meters to be read, obtain the number of threads corresponding to the combination of meters to be read from the target mapping relationship.

[0106] The mapping relationship refers to a file that records the correspondence between the number of meters read and the number of threads. The mapping relationship can be a table, text, or other formatted file. Multiple mapping relationships exist, each associated with a specific combination of communication methods. The mapping relationship is derived by analyzing multiple meter reading data and experimental data to determine the most efficient correspondence between the number of meters read and the number of threads. The number of meters read refers to a range of meters. This can be understood as the number of meters to be read within a given range requiring the same number of threads.

[0107] For example, the computer device obtains the combined communication method corresponding to the combination of meters to be read and the total number of meters to be read, obtains the target mapping relationship corresponding to the combined communication method, and obtains the number of threads corresponding to the total number of meters to be read from the target mapping relationship.

[0108] In one embodiment, the computer device obtains a set of mapping relationships based on the meter reading task. The set of mapping relationships includes multiple combined communication methods. Each combined communication method is associated with and stored in a mapping relationship. The device obtains the combined communication method corresponding to the combination of meters to be read and the total number of meters to be read. The device then obtains the target mapping relationship associated with the combined communication method from the set of mapping relationships and obtains the number of threads corresponding to the total number of meters to be read from the target mapping relationship.

[0109] In this embodiment, the target mapping relationship is determined according to the combined communication method. The target mapping relationship is the mapping relationship that matches the combined communication method. The number of threads corresponding to the total number of meters to be read is obtained from the target mapping relationship. This number of threads is the one with the highest reading efficiency for the combination of meters to be read. The combination of meters to be read is then read using the number of threads with the highest reading efficiency, thereby improving the reading efficiency of the combination of meters to be read.

[0110] In one embodiment, obtaining multiple concentrator identifiers in the target area, and the corresponding combined communication methods for the concentrator identifiers, includes:

[0111] Obtain multiple concentrator identifiers in the target area; for each concentrator identifier, obtain the first communication method between the concentrator and the master station corresponding to the concentrator identifier, and the second communication method between the concentrator and the electricity meter connected to the concentrator; based on the first and second communication methods corresponding to the concentrator identifier, obtain the combined communication method corresponding to the concentrator identifier.

[0112] The first communication method refers to the communication between the concentrator and the master station. This can be GPRS (General Packet Radio Service) radio transmission or medium-voltage carrier transmission, among other methods. The second communication method refers to the communication between the concentrator and the connected electricity meter. This can be low-voltage power line carrier transmission or low-power wireless transmission, among other methods.

[0113] For example, the computer device obtains multiple concentrator identifiers in the target area, then obtains the first communication method between the concentrator and the main station corresponding to each concentrator identifier, and the second communication method between the concentrator and the electricity meter connected to the concentrator. The first and second communication methods corresponding to the same concentrator are combined to obtain the combined communication method corresponding to the concentrator identifier.

[0114] In this embodiment, the first communication method and the second communication method corresponding to the same concentrator are combined to obtain the combined communication method corresponding to the concentrator identifier. The combined communication method includes the first communication method and the second communication method. It takes into account both the impact of different communication methods between the concentrator and the master station on the communication speed, and the impact of different communication methods between the concentrator and the electricity meter connected to the concentrator on the communication speed. This provides accurate basic data for determining the target mapping relationship based on the combined communication method.

[0115] In one embodiment, such as Figure 4 As shown, based on the thread pool corresponding to the meter reading group, the meter reading process for the meter reading group includes:

[0116] Step 402: Based on the concentrator identifier in the meter reading combination, generate meter reading instructions corresponding to each concentrator identifier through the thread pool corresponding to the meter reading combination.

[0117] The concentrator identifier is a string that corresponds uniquely to each concentrator. It can be the concentrator's communication address or a string associated with that address. The meter reading instruction is a command sent from the computer to the concentrator, instructing it to read data from the connected electricity meters.

[0118] For example, in a computer device, a thread pool corresponding to the meter reading combination obtains the concentrator identifier in the meter reading combination, and multiple threads in the thread pool simultaneously generate meter reading instructions corresponding to each concentrator identifier based on the concentrator identifier.

[0119] Step 404: Send the meter reading instruction to the corresponding concentrator identifier.

[0120] For example, the computer device sends the meter reading instruction to the corresponding concentrator identifier.

[0121] Step 406: Obtain the meter reading information sent by each concentrator in the meter reading group.

[0122] Meter reading information refers to the response information sent by the concentrator to the computer device based on the meter reading command. It can be understood as a message encapsulated according to the communication protocol between the computer device and the concentrator, which includes the meter reading data.

[0123] For example, a computer device receives meter reading information sent by each concentrator in the meter reading group.

[0124] Step 408: Process the meter reading information based on the thread pool corresponding to the meter reading combination to obtain the meter reading data for each meter.

[0125] Meter reading data refers to the data recorded by the electricity meter regarding electricity usage. This can be understood as the data obtained by computer equipment decapsulating the received meter reading information to record electricity usage.

[0126] For example, multiple threads in a thread pool corresponding to the meter reading combination in a computer device process multiple meter reading information simultaneously to obtain meter reading data for each meter.

[0127] In this embodiment, multiple threads in the thread pool corresponding to the meter reading combination simultaneously generate meter reading instructions corresponding to the concentrator identifier based on the concentrator identifier, which improves the generation efficiency of meter reading instructions. Multiple threads in the thread pool corresponding to the meter reading combination simultaneously process multiple meter reading information to obtain meter reading data corresponding to each meter, which improves the processing efficiency of meter reading information and thus improves the efficiency of meter reading.

[0128] In one embodiment, such as Figure 5 As shown, obtaining the meter reading information sent by each concentrator in the meter reading group includes:

[0129] Step 502: Obtain the communication address of the electricity meter connected to the concentrator through the concentrator in the meter reading combination, and generate the meter reading instruction corresponding to the electricity meter based on the communication address.

[0130] The communication address refers to the address of the electricity meter. This can be understood as a unique string that corresponds one-to-one with the meter, serving as a unique identifier for the meter and used for communication with the concentrator. For example, 00013310. The meter read command is a command sent by the concentrator to the connected meters, instructing the meters to return the recorded electricity usage data to the concentrator.

[0131] For example, in the meter reading combination, the concentrator corresponding to the concentrator identifier obtains the communication address corresponding to the connected meter, and then generates the meter reading instruction corresponding to the meter based on the communication address corresponding to the meter.

[0132] Step 504: Send the meter reading command to the corresponding electricity meter through the concentrator and obtain the meter's response information based on the meter reading command.

[0133] The response information refers to the information sent by the electricity meter to the concentrator it is connected to. This response information contains data recording electricity usage. In other words, the response information is information encapsulated based on the communication protocol between the concentrator and the electricity meter, resulting in data about recorded electricity usage.

[0134] For example, in the meter reading group, the concentrator corresponding to the concentrator identifier sends a meter reading command to the corresponding electricity meter. After receiving the meter reading command, the corresponding electricity meter obtains the data on the recorded electricity usage, generates response information based on the recorded electricity usage data and the communication protocol between the electricity meter and the concentrator, and then sends the response information to the concentrator connected to it. The concentrator obtains the response information of the electricity meter based on the meter reading command.

[0135] Step 506: The concentrator generates meter reading information based on the response information and sends the meter reading information.

[0136] Meter reading information refers to information obtained by encapsulating data on electricity usage based on the communication protocol between the concentrator and computer equipment.

[0137] For example, the concentrator corresponding to the concentrator identifier in the meter reading group processes the response information to obtain the data of recorded electricity usage. Then, based on the communication protocol between the concentrator and the computer device, the data of recorded electricity usage is encapsulated to obtain meter reading information, and the meter reading information is sent to the computer device.

[0138] Step 508: Receive meter reading information sent by each concentrator in the meter reading group.

[0139] For example, the computer device receives meter reading information sent by the concentrator corresponding to each concentrator identifier in the meter reading group.

[0140] In this embodiment, the concentrator communicates with the electricity meter connected to it to obtain the data on the electricity usage recorded in the meter, ensuring the accuracy of the meter reading data. Based on the meter reading data, meter reading information is generated, thereby improving the accuracy of the meter reading information.

[0141] In one embodiment, based on the combined communication method corresponding to the concentrator identifier, multiple concentrator identifiers are divided to obtain multiple meter reading combinations, including:

[0142] Concentrators with the same combined communication method are grouped into a single meter reading group, resulting in multiple meter reading groups.

[0143] For example, a computer device can divide concentrator identifiers with the same combined communication method into a group of meters to be read, resulting in multiple groups of meters to be read.

[0144] In this embodiment, the concentrators corresponding to the concentrator identifiers in the same meter-to-read combination have the same combined communication method. This can be understood as the communication rate between the concentrator and the host, and the communication rate between the concentrator and the meter, being the same. The target mapping relationship is determined based on the combined communication method corresponding to the meter-to-read combination, which fully considers the communication rate between the concentrator and the host, as well as the communication rate between the concentrator and the meter.

[0145] In one exemplary embodiment, the meter reading method includes the following steps:

[0146] The computer equipment acquires the meter reading task corresponding to the target area, obtains the target area from the meter reading task, acquires all concentrator identifiers included in the target area, and then acquires the first communication method between the concentrator and the main station corresponding to each concentrator identifier, as well as the second communication method between the concentrator and the connected meters. The first and second communication methods corresponding to the same concentrator are combined to obtain the combined communication method corresponding to the concentrator identifier. Concentrator identifiers with the same combined communication method are grouped into a meter reading group, resulting in multiple meter reading groups. For each meter reading group, the computer equipment acquires the number of meters connected to the concentrator corresponding to each concentrator identifier in the meter reading group, and adds up the number of meters corresponding to each concentrator identifier in the meter reading group to obtain the total number of meters to be read for that meter reading group.

[0147] The computer device obtains a set of mapping relationships, which includes multiple combined communication methods. Each combined communication method is associated with and stored in a mapping relationship. It obtains the combined communication method and the total number of meters to be read for the combination of meters to be read. It obtains the target mapping relationship associated with the combined communication method from the above mapping relationship set. It obtains the number of threads corresponding to the total number of meters to be read from the above target mapping relationship. Based on the number of threads corresponding to the combination of meters to be read, it allocates a certain number of threads to the combination of meters to be read and forms a thread pool corresponding to the combination of meters to be read.

[0148] In the computer device, a thread pool corresponding to the meter-to-be-read combination obtains the concentrator identifier within that combination. Multiple threads in the thread pool simultaneously generate meter reading instructions corresponding to each concentrator identifier. The computer device then sends these instructions to the concentrator corresponding to the chosen concentrator identifier. The concentrator corresponding to the concentrator identifier in the meter-to-be-read combination obtains the communication address of the connected meter and generates a meter reading instruction based on that address. The corresponding meter, upon receiving the reading instruction, retrieves the recorded electricity usage data. Based on this data and the communication protocol between the meter and the concentrator, it generates response information and sends it to the connected concentrator. The concentrator receives the meter's response information based on the reading instruction, processes it to obtain the recorded electricity usage data, encapsulates this data using the communication protocol between the concentrator and the computer device, and obtains the meter reading information, which is then sent to the computer device.

[0149] The computer equipment receives meter reading information sent by each concentrator in the meter reading group, and multiple threads in the thread pool corresponding to the meter reading group process multiple meter reading information simultaneously to obtain the meter reading data corresponding to each meter and complete the meter reading task.

[0150] The above meter reading method involves obtaining the meter reading task corresponding to the target area, obtaining multiple concentrator identifiers in the target area based on the meter reading task, and obtaining the combined communication methods corresponding to the concentrator identifiers, dividing the multiple concentrator identifiers based on the combined communication methods corresponding to the concentrator identifiers to obtain multiple meter reading combinations, determining the thread pool corresponding to each meter reading combination, and performing meter reading on the meter reading combination based on the thread pool corresponding to the meter reading combination. By classifying the concentrator identifiers in the target area according to their corresponding combined communication methods, the concentrator identifiers in different meter reading combinations have different communication methods between the concentrator, the host, and the meter. These different communication methods result in different communication durations, and the number of concentrator identifiers in each meter reading combination also varies. This difference in the number of concentrator identifiers and their corresponding combined communication methods leads to variations in the amount of meter reading information received by the host within the same timeframe. Furthermore, the number of concentrator identifiers also affects the number of meter reading instructions the host needs to generate. By determining a thread pool for each meter reading combination, appropriate threads can be allocated to each combination, improving the speed of meter reading instruction generation and meter reading information processing, thereby increasing meter reading efficiency. Moreover, using multiple thread pools to simultaneously read multiple meter reading combinations can further enhance meter reading efficiency.

[0151] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0152] Based on the same inventive concept, this application also provides a meter reading device for implementing the meter reading method described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more meter reading device embodiments provided below can be found in the limitations of the meter reading method above, and will not be repeated here.

[0153] In one embodiment, such as Figure 6 As shown, a meter reading device is provided, including: an acquisition module 602, a combination module 604, a division module 606, a determination module 608, and a meter reading module 610, wherein:

[0154] Module 602 is used to acquire meter reading tasks corresponding to the target area;

[0155] The combination module 604 is used to acquire multiple concentrator identifiers in the target area and the combined communication methods corresponding to the concentrator identifiers based on the meter reading task; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the master station, and the second communication method between the concentrator and the electricity meter.

[0156] The partitioning module 606 is used to partition multiple concentrator identifiers based on the combined communication methods corresponding to the concentrator identifiers, thereby obtaining multiple combinations of meters to be read.

[0157] Module 608 is used to determine the thread pool corresponding to each combination of meters to be read.

[0158] The meter reading module 610 is used to read meters for the meter combination based on the thread pool corresponding to the meter combination to be read.

[0159] In one embodiment, the determining module 608 is further configured to: for a meter reading combination, obtain the combined communication method corresponding to the concentrator identifier in the meter reading combination; obtain the number of meters connected to the concentrator corresponding to each concentrator identifier in the meter reading combination; count the number of meters corresponding to each concentrator identifier to obtain the total number of meters to be read for the meter reading combination; determine the number of threads corresponding to the meter reading combination based on the combined communication method and the total number of meters to be read; and obtain the thread pool corresponding to the meter reading combination based on the number of threads.

[0160] In one embodiment, the determining module 608 is further configured to: obtain a target mapping relationship between the number of meters read and the number of threads corresponding to the combined communication method based on the combined communication method; and obtain the number of threads corresponding to the combination of meters to be read from the target mapping relationship based on the total number of meters to be read.

[0161] In one embodiment, the combination module 604 is further configured to: obtain multiple concentrator identifiers in the target area; for each concentrator identifier, obtain a first communication method between the concentrator and the main station corresponding to the concentrator identifier, and a second communication method between the concentrator and the electricity meter connected to the concentrator; and obtain a combined communication method corresponding to the concentrator identifier based on the first and second communication methods corresponding to the concentrator identifier.

[0162] In one embodiment, the meter reading module 610 is further configured to: generate a meter reading instruction corresponding to each concentrator identifier based on the concentrator identifier in the meter reading group, through the thread pool corresponding to the meter reading group; send the meter reading instruction to the concentrator corresponding to the concentrator identifier; obtain the meter reading information sent by each concentrator in the meter reading group; and process the meter reading information based on the thread pool corresponding to the meter reading group to obtain the meter reading data corresponding to each meter.

[0163] In one embodiment, the meter reading module 610 is further configured to: obtain the communication address corresponding to the electricity meter connected to the concentrator through the concentrator in the meter reading group, and generate a meter reading instruction corresponding to the electricity meter based on the communication address; send the meter reading instruction to the corresponding electricity meter through the concentrator, and obtain the response information of the electricity meter based on the meter reading instruction; generate meter reading information through the concentrator based on the response information, and send the meter reading information; and receive the meter reading information sent by each concentrator in the meter reading group.

[0164] In one embodiment, the partitioning module 606 is further configured to: partition concentrator identifiers with the same combined communication method into a meter reading group, thereby obtaining multiple meter reading groups.

[0165] Each module in the aforementioned meter reading device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0166] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a meter reading method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0167] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0168] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0169] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0170] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0171] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0172] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0173] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A meter reading method, characterized in that, The method includes: Obtain the meter reading tasks corresponding to the target area; Based on the meter reading task, multiple concentrator identifiers in the target area are obtained, as well as the combined communication methods corresponding to the concentrator identifiers; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the main station, and the second communication method between the concentrator and the electricity meter. Based on the combined communication method corresponding to the concentrator identifier, the multiple concentrator identifiers are divided to obtain multiple meter reading combinations; each meter reading combination includes multiple concentrator identifiers, and the combined communication method corresponding to each concentrator identifier has the same attributes. For the meter reading combination, the following steps are taken: First, obtain the combined communication method corresponding to the concentrator identifier in the meter reading combination; second, obtain the number of meters connected to each concentrator identifier in the meter reading combination; third, count the number of meters corresponding to each concentrator identifier to obtain the total number of meters to be read for the meter reading combination; fourth, determine the number of threads corresponding to the meter reading combination based on the combined communication method and the total number of meters to be read; and fifth, obtain the thread pool corresponding to the meter reading combination based on the number of threads. Meter reading is performed on the meter combination based on the thread pool corresponding to the meter combination to be read.

2. The method of claim 1, wherein, The target area refers to the area where the meter reading is to be performed.

3. The method of claim 1, wherein, The determination of the number of threads corresponding to the combination of meters to be read, based on the combined communication method and the total number of meters to be read, includes: Based on the combined communication method, obtain the target mapping relationship between the number of meter readings and the number of threads corresponding to the combined communication method; Based on the total number of meters to be read, the number of threads corresponding to the combination of meters to be read is obtained from the target mapping relationship.

4. The method of claim 1, wherein, The step of obtaining multiple concentrator identifiers in the target area, and the combined communication methods corresponding to the concentrator identifiers, includes: Obtain multiple concentrator identifiers in the target area; For each of the concentrator identifiers, obtain the first communication method between the concentrator and the main station corresponding to the concentrator identifier, and the second communication method between the concentrator and the electricity meter connected to the concentrator; Based on the first communication method and the second communication method corresponding to the concentrator identifier, the combined communication method corresponding to the concentrator identifier is obtained.

5. The method according to claim 1, characterized in that, The step of reading meters for the meter group based on the thread pool corresponding to the meter group to be read includes: Based on the concentrator identifier in the meter reading group, the meter reading instruction corresponding to each concentrator identifier is generated through the thread pool corresponding to the meter reading group. Send the meter reading instruction to the corresponding concentrator identifier; Obtain the meter reading information sent by each of the concentrators in the meter reading combination; The meter reading information is processed based on the thread pool corresponding to the meter reading combination to obtain the meter reading data for each meter.

6. The method of claim 5, wherein, The step of obtaining the meter reading information sent by each of the concentrators in the meter reading group includes: The concentrator in the meter reading assembly obtains the communication address of the electricity meter connected to the concentrator, and generates a meter reading instruction for the electricity meter based on the communication address. The concentrator sends the meter reading command to the corresponding electricity meter and obtains the response information of the electricity meter based on the meter reading command. The concentrator generates meter reading information based on the response information and sends the meter reading information. Receive meter reading information sent by each of the concentrators in the meter reading group.

7. The method of claim 1, wherein, The method of dividing the multiple concentrator identifiers based on the combined communication method corresponding to the concentrator identifier to obtain multiple meter reading combinations includes: The concentrator identifiers with the same combined communication method are divided into a meter reading group, resulting in multiple meter reading groups.

8. A meter reading device, characterized by The device includes: The acquisition module is used to acquire meter reading tasks corresponding to the target area; The combination module is used to obtain multiple concentrator identifiers in the target area and the combined communication methods corresponding to the concentrator identifiers based on the meter reading task; the combined communication method refers to the combination of the first communication method between the concentrator corresponding to the concentrator identifier and the master station, and the second communication method between the concentrator and the meter. The partitioning module is used to partition the multiple concentrator identifiers based on the combined communication methods corresponding to the concentrator identifiers, thereby obtaining multiple meter reading combinations; each meter reading combination includes multiple concentrator identifiers, and the combined communication methods corresponding to each concentrator identifier have the same attributes. The determining module is configured to, for the meter reading combination, obtain the combined communication method corresponding to the concentrator identifier in the meter reading combination; obtain the number of meters connected to the concentrator corresponding to each concentrator identifier in the meter reading combination; count the number of meters corresponding to each concentrator identifier to obtain the total number of meters to be read for the meter reading combination; determine the number of threads corresponding to the meter reading combination based on the combined communication method and the total number of meters to be read; and obtain the thread pool corresponding to the meter reading combination based on the number of threads. The meter reading module is used to read meters from the combination of meters to be read based on the thread pool corresponding to the combination of meters to be read.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.