Method and system for quickly identifying newly-added electricity meter, electronic equipment and storage medium
By sending silent instructions and full AA adapter address instructions to the power meter, the newly added power meter is quickly identified, which solves the problem of low detection efficiency in the existing technology and realizes efficient new meter number recognition.
Patent Information
- Application Number
- CN202510340458.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-07-22
AI Technical Summary
The prior art is inefficient when detecting new power meters, especially when there is no new power meter, and does not consider the case of a small number of new power meters.
By sending a silent command to the power meter, the existing power meter is silent, and only the new power meter is added to reply to the full AA adapter address command. The collector judges whether there are new power meters and their number based on the data frame, and adjusts the first preset time to flexibly deal with different situations.
It effectively eliminates interference from existing power meters, shortens the time for detecting new meter numbers, and improves detection efficiency. Especially when there is no or only one new meter added, it significantly improves the speed of automatic meter search.
Smart Images

Figure CN120352691A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric meter devices, and in particular, to a method, a system, an electronic device, and a storage medium for quickly identifying a newly added electric meter. Background Art
[0002] In practical applications, in order to automatically handle the situation of adding an electric energy meter under a collector, it is necessary to regularly detect whether a new electric energy meter number is added under the collector. In fact, the situation of adding an electric energy meter is less.
[0003] The invention patent with the publication number CN118631786A discloses a method for quickly searching for a rail-mounted electric energy meter, including the following steps: S1: The rail-mounted electric energy meter issues a wildcard address AAAAAAAAAAAA through the 485 channel to start the meter search process; S2: Analyze the feedback on the 485 bus; S3: Process the result analyzed in S2; S4: For the illegal message in S3, refine the processing through a new round of wildcard address AAAAAAAAAAAX; S5: According to the analysis result of the wildcard address AAAAAAAAAAYX, continue to use the processing method in S4, and gradually solve the address conflict by shrinking the position by one bit forward, and perform up to 12 searches to confirm the specific address; this method has a cumbersome detection process, still requires a long time in the case of no newly added electric energy meter, has low efficiency, and does not consider the situation of few newly added electric meters.
[0004] Therefore, providing a method for quickly identifying a newly added electric meter with high efficiency is an urgent problem to be solved at present. Summary of the Invention
[0005] The purpose of the present invention is to provide a method, a system, an electronic device, and a storage medium for quickly identifying a newly added electric meter to overcome the defects of the above-mentioned existing technologies.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] According to the first aspect of the present invention, a method for quickly identifying a newly added electric meter is provided. The method is used to control the communication between a collector and an electric meter, and specifically includes:
[0008] S1. The collector sends a silent instruction to the electric meter, and the electric meter that receives the silent instruction does not reply to the AA adapter address instruction within the first preset time;
[0009] S2. The collector sends a full AA adapter address instruction to the electric meter, and the newly added electric meter sends a data frame to the collector after receiving the full AA adapter address instruction;
[0010] S3. If the collector does not receive the data frame, it indicates that there is no newly added electric meter, and the search ends;
[0011] S4. If the collector receives a data frame, it indicates that only one new electricity meter has been added. The collector stores its data frame and ends the search.
[0012] S5. If the collector receives garbled characters, it indicates that multiple new electricity meters have been added, and the normal electricity meter number search operation is started.
[0013] As a preferred technical solution, the data frame includes address data.
[0014] As a preferred technical solution, the normal electricity meter number search operation specifically includes:
[0015] S51. The collector uses the address instruction with the lowest byte being all AA adaptors to read the address from the electricity meter in turn.
[0016] S52. If a correct data frame is received, store its address and continue the next read.
[0017] S53. If no data frame is received, continue the next read.
[0018] S54. If garbled characters are received, perform reduced-address addressing.
[0019] As a preferred technical solution, the lowest byte is BCD code from 00 to 99, and the remaining bytes are AA.
[0020] As a preferred technical solution, the collector sends a silent instruction to all electricity meters whose addresses have been collected.
[0021] As a preferred technical solution, the first preset time selects the longest electricity meter search period.
[0022] As a preferred technical solution, the first preset time is 300 s.
[0023] According to the second aspect of the present invention, a system for quickly identifying newly added electricity meters is provided. The collector includes a control unit, and the control unit adopts any one of the above methods for quickly identifying newly added electricity meters.
[0024] According to the third aspect of the present invention, an electronic device is provided, including a memory and a processor. A computer program is stored on the memory. It is characterized in that when the processor executes the program, the above method is implemented.
[0025] According to the fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the above method is implemented.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] 1. The present invention first silences the existing electricity meters through a silent instruction, so that they do not reply to the subsequent adapter address instructions, and only the newly added electricity meters will reply. Since the interference of the existing electricity meters is excluded, the time for detecting new meter numbers is shortened.
[0028] 2. The collector of the present invention judges whether there are newly added electricity meters and the number of newly added electricity meters by judging whether the data frame is correct, and selects corresponding operations according to specific situations.
[0029] 3. The first preset time of the present invention can be adjusted and selected according to actual needs, with high flexibility.
[0030] 4. The present invention sends a full AA adapter address instruction, and the electricity meters that meet the conditions will make a reply. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flowchart of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0032] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0033] In view of the above problems, the present invention provides a method, system, electronic device and storage medium for quickly identifying newly added electricity meters; the present invention first silences the existing electricity meters through a silent instruction, so that they do not reply to the subsequent adapter address instructions, and only the newly added electricity meters will reply. Since the interference of the existing electricity meters is excluded, the time for detecting new meter numbers is shortened. The collector of the present invention judges whether there are newly added electricity meters and the number of newly added electricity meters by judging whether the data frame is correct, and selects corresponding operations according to specific situations. The first preset time of the present invention can be adjusted and selected according to actual needs, with high flexibility. The present invention sends a full AA adapter address instruction, and the electricity meters that meet the conditions will make a reply.
[0034] Embodiment 1
[0035] As Figure 1 shown, a method for quickly identifying newly added electricity meters, the method is used to control the communication between the collector and the electricity meters, and the method specifically includes:
[0036] S1. The collector sends a silent command to the electricity meter, and the electricity meter that receives the silent command does not reply to the AA adapter address command within the first preset time.
[0037] S2. The collector sends a full AA adapter address command to the electricity meter, and the newly added electricity meter sends a data frame to the collector after receiving the full AA adapter address command.
[0038] S3. If the collector does not receive a data frame, it indicates that there is no newly added electricity meter, and the search ends.
[0039] S4. If the collector receives a data frame, it indicates that only one newly added electricity meter exists. The collector stores its data frame and ends the search.
[0040] S5. If the collector receives garbled characters, it indicates that multiple newly added electricity meters exist, and a normal electricity meter number search operation is started.
[0041] The data frame includes address data.
[0042] The specific normal electricity meter number search operation includes:
[0043] S51. The collector uses the full AA adapter address command with the lowest byte to read the address from the electricity meter in sequence.
[0044] S52. If a correct data frame is received, store its address and continue the next read.
[0045] S53. If no data frame is received, continue the next read.
[0046] S54. If garbled characters are received, perform reduced-address addressing.
[0047] The lowest byte is in BCD code from 00 to 99, and the remaining bytes are AA.
[0048] The collector sends a silent command to all the electricity meters whose addresses have been collected.
[0049] The first preset time is selected as the longest meter search period.
[0050] The first preset time is 300 s.
[0051] In this embodiment, the specific detection steps are as follows:
[0052] 1. The collector performs an operation on the electricity meter through a unicast command, and the electricity meter that receives the operation does not reply to the adapter address command within a period of time (the length of the time can be fixed, such as 300 s (the longest meter search period can be selected)).
[0053] 2. The collector performs the operation in step 1 on all the electricity meters that have been collected.
[0054] 3. The collector collects the downlink electricity meter address data through the full AA adapter. If not, it indicates that there is no new meter number and the meter search ends. If a correct data frame is received, it indicates that a new electricity meter has been installed, stores its meter address, and ends the meter search. If garbled characters are received (multiple electricity meters send data through the RS485 line simultaneously), it indicates that multiple new electricity meters have been added, and the normal meter number search operation is started.
[0055] In the DL / T 645 protocol and the DL / T 698.45 protocol, when the address is all AA, all nodes with this address reply. If some of the address data bytes match and the rest are AA, the electricity meter also replies.
[0056] In this solution, since the existing electricity meters are made not to reply to the adapter command through a command, the interference of the existing electricity meters is excluded when using the adapter to search for meters. If there are no newly added electricity meters, or if only one new electricity meter is added, the collection of the newly added meter numbers can be completed through one adapter reading. In the current existing meter search solutions, because it is necessary to avoid the replies of the meters that have already been searched, multi-round table searching with reduced addressing is required. In the case of no newly added electricity meters or only one newly added electricity meter, such an operation can greatly improve the efficiency of automatically finding meters.
[0057] The normal meter number search steps are as follows:
[0058] 1. Successively use adapters with the lowest byte being BCD codes from 00 to 99 and the rest being AA to read the electricity address
[0059] 2. If a correct response frame is received, store its address and continue with the next reading. (For example, if a correct response frame is read using AAAAAAAAAAAA23, record the address, and then read the address using AAAAAAAAAAAA24)
[0060] 3. If no response frame is received, continue with the next reading.
[0061] 4. If garbled characters are received, perform reduced addressing. (For example, if a garbled frame is read using AAAAAAAAAAAA23, then successively read the addresses using AAAAAAAA0023, AAAAAAAA0123, AAAAAAAA0223 to AAAAAAAA9923).
[0062] Embodiment 2
[0063] A system for quickly identifying a newly added electricity meter, wherein the collector includes a control unit, and the control unit adopts any one of the above-mentioned methods for quickly identifying a newly added electricity meter. In this embodiment, mainly one control unit is adopted, and the above method is processed by the control unit.
[0064] Embodiment 3
[0065] An electronic device includes a memory and a processor, and a computer program is stored on the memory. It is characterized in that when the processor executes the program, the above-mentioned method is implemented.
[0066] A computer-readable storage medium has a computer program stored thereon. It is characterized in that when the program is executed by a processor, the above-mentioned method is implemented.
[0067] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the described modules can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0068] The electronic device of the present invention includes a central processing unit (CPU), which can execute various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or computer program instructions loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM, and RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.
[0069] Multiple components in the device are connected to the I / O interface, including: an input unit, such as a keyboard, a mouse, etc.; an output unit, such as various types of displays, speakers, etc.; a storage unit, such as a disk, an optical disc, etc.; and a communication unit, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit allows the device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks. The processing unit executes the various methods and processes described above, such as the method of the present invention. For example, in some embodiments, the method of the present invention can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device via the ROM and / or the communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more steps of the method of the present invention described above can be executed. Alternatively, in other embodiments, the CPU can be configured to execute the method of the present invention in any other appropriate manner (for example, by means of firmware).
[0070] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
[0071] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code can be executed entirely on the machine, partially on the machine, executed partially on the machine as an independent software package and partially on a remote machine, or executed entirely on a remote machine or server.
[0072] In the context of the present invention, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM or Flash Memory), optical fibers, portable Compact Disc Read Only Memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0073] As described above, the above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for quickly identifying a newly added electricity meter, the method being used to control the communication between a collector and an electricity meter, characterized in that, The method specifically includes: S1. The collector sends a silent instruction to the electricity meter, and the electricity meter that receives the silent instruction does not reply to the AA adapter address instruction within the first preset time. S2. The collector sends a full AA adapter address instruction to the electricity meter, and the newly added electricity meter sends a data frame to the collector after receiving the full AA adapter address instruction. S3. If the collector does not receive a data frame, it indicates that there is no newly added electricity meter, and the search ends. S4. If the collector receives one data frame, it indicates that only one electricity meter has been newly added. The collector stores its data frame and ends the search. S5. If the collector receives garbled characters, it indicates that multiple electricity meters have been newly added, and the normal electricity meter number search operation is started.
2. The method for quickly identifying a newly added electricity meter according to claim 1, wherein The data frame includes address data.
3. A method for quickly identifying a newly added electricity meter according to claim 2, characterized in that, The normal electricity meter number search operation specifically includes: S51. The collector uses the full AA adapter address instruction with the lowest byte to read the address from the electricity meter in sequence. S52. If a correct data frame is received, store its address and continue with the next reading. S53. If no data frame is received, continue with the next reading. S54. If garbled characters are received, perform reduced-address addressing.
4. A method for quickly identifying a newly added electricity meter according to claim 3, characterized in that, The lowest byte is in BCD code from 00 to 99, and the remaining bytes are AA.
5. A method for quickly identifying a newly added electricity meter according to claim 1, characterized in that The collector sends a silent instruction to all the electricity meters whose addresses have been collected.
6. A method for quickly identifying a newly added electricity meter according to claim 1, characterized in that The first preset time is selected as the longest meter search period.
7. A method for quickly identifying a newly added electricity meter according to claim 1, characterized in that, The first preset time is 300 s.
8. A system for quickly identifying a newly added electricity meter, characterized in that, The collector includes a control unit, and the control unit adopts the method for quickly identifying newly added electricity meters as described in any one of claims 1-7.
9. An electronic device, comprising a memory and a processor, wherein a computer program is stored on the memory, characterized in that, When the processor executes the program, it implements the method described in claim 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method described in claim 8.
Citation Information
Patent Citations
Guide rail type electric energy meter rapid searching method
CN118631786A