A Local Networking Debugging Method, System and Medium for Power Metering Devices

The local networking testing method for electric power measurement devices addresses inefficiencies in traditional validation methods by ensuring real-time connectivity and topology verification, enhancing efficiency and reliability through transparent forwarding protocols.

CN120110957BActive Publication Date: 2025-07-15STATE GRID ZHEJIANG ELECTRIC POWER CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510587696.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2025-07-15
Estimated Expiration
2045-05-08

AI Technical Summary

Technical Problem

During the installation, disassembly and debugging of power metering equipment, it is difficult for the existing technology to realize the correctness of the equipment topology relationship and communication link in real time, which makes it difficult to ensure the installation quality. The traditional debugging methods are time-consuming and labor-intensive, especially in large-scale new installation scenarios.

Method used

It provides a local network debugging method for power metering devices. By formatting the original parameters of the power meter into parameters, obtaining the response frame and verifying the communication address, grouping the power meter according to the communication mode, encapsulating the interactive command message and forwarding transparently, receiving the response packet for analysis, ensuring the stability and accuracy of the communication link.

Benefits of technology

It realizes the efficiency and accuracy of power meter network debugging, ensures the stability of communication links, meets the batch debugging needs under different communication modes, and improves the operating stability and debugging efficiency of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120110957B_ABST
    Figure CN120110957B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of power metering, and particularly to a local networking debugging method, system and medium for power metering devices, including formatting the input parameters of the meter to be debugged, obtaining the response frame of the meter, and verifying the accuracy of the input parameters according to the response frame of the meter to determine the effective communication address of the meter; obtaining the interactive command message of the meter according to the downlink meter communication mode and the effective communication address of the meter, and encapsulating the interactive command message of the meter into a transparent forwarding communication frame; transmitting the transparent forwarding communication frame to the terminal device based on the target communication link so that the terminal device generates a meter response packet according to the transparent forwarding communication frame; parsing the meter response packet to extract the data access result flag bit; when it is determined that the networking debugging is successful according to the data access result flag bit, determining that the target communication link channel is normal. The present invention realizes the automatic networking debugging process of the meter, and improves the flexibility and accuracy of the networking debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power metering, and in particular to a local networking debugging method, system and medium for power metering devices. Background Art

[0002] In the installation, disassembly and debugging operations of power metering equipment, on-site operators face many technical problems. Especially in the scenarios of new installation and rotation services, in the traditional operation mode, after the installation and connection personnel complete the installation, disassembly and debugging work of power metering equipment, it is often difficult to immediately check the correctness of the device topology relationship and the acquisition communication link on site. Due to the lack of on-site real-time detection means, the installation and connection personnel cannot immediately discover problems such as acquisition failure or wrong wiring. These problems usually expose during subsequent use, resulting in the need to dispatch personnel and vehicles to the site again for troubleshooting and repair, which not only increases the operation cost, but also reduces the overall efficiency of power metering work.

[0003] Specifically, the traditional debugging mode relies on subsequent monitoring feedback. Once device anomalies are found, such as inaccurate acquisition data or communication link interruption, the installation and connection personnel need to return to the site again and locate the problem by means of piecemeal troubleshooting. This trial-and-error debugging method is not only time-consuming and laborious, but also inefficient. Especially in large-scale new installation services such as batch new installation scenarios in the substation area, due to the large number of devices, once a problem occurs, the workload of troubleshooting and repair will be extremely huge. In addition, the existing debugging tools and technical means have obvious deficiencies in terms of immediacy and convenience. There is a lack of technology for on-site operators to quickly and accurately verify the device topology relationship and communication link status, which makes it impossible for the installation and connection personnel to immediately confirm the installation quality after the operation, resulting in the installation quality being difficult to be effectively guaranteed.

[0004] In summary, there are many problems in the existing technology in the installation, disassembly and debugging link of power metering equipment. There is an urgent need for a technology that can support local networking debugging to improve the efficiency and quality of power metering work and reduce the number of repeated trips to the site caused by device anomalies. Summary of the Invention

[0005] To solve the above technical problems, the present invention provides a local networking debugging method, system and medium for power metering devices.

[0006] In the first aspect, the present invention provides a local networking debugging method for power metering devices, and the method includes the following steps:

[0007] Format the original parameters of the energy meter to be debugged for input, obtain the energy meter response frame, and verify the accuracy of the input parameters according to the energy meter response frame to determine the valid communication address of the energy meter;

[0008] Determine the downlink meter communication mode according to the communication mode parameters transmitted in the downlink, and group all the electric energy meters under the downlink terminal device according to the downlink meter communication mode to obtain grouped electric energy meters;

[0009] Obtain the electric energy meter interaction command message according to the downlink meter communication mode and the valid communication address of the electric energy meter, and encapsulate the electric energy meter interaction command message into a transparent forwarding communication frame;

[0010] Allocate different target communication links to the grouped electric energy meters in batches, and transmit the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates an electric energy meter response packet according to the transparent forwarding communication frame;

[0011] Receive the electric energy meter response packet returned by the terminal device, and parse the electric energy meter response packet to extract the data access result flag bit;

[0012] Determine the network debugging status according to the data access result flag bit. When the network debugging status is successful network debugging, it is determined that the target communication link channel is normal.

[0013] In a further embodiment, the step of formatting the input parameters of the electric energy meter to be debugged and obtaining the electric energy meter response frame includes:

[0014] Format the input parameters of the electric energy meter to be debugged to obtain the formatted communication address of the electric energy meter, and generate a preset meter number reading instruction according to the formatted communication address of the electric energy meter;

[0015] Send the preset meter number reading instruction to the electric energy meter through the communication interface, so that the electric energy meter responds according to the preset meter number reading instruction and generates an electric energy meter response frame.

[0016] In a further embodiment, verifying the accuracy of the input parameters includes verifying the correctness of the communication address input parameter and the preset meter number inside the electric energy meter; the step of verifying the accuracy of the input parameters according to the electric energy meter response frame and determining the valid communication address of the electric energy meter includes:

[0017] Receive the electric energy meter response frame returned by the electric energy meter, and parse the electric energy meter response frame to obtain the instruction response control code and the response frame data field;

[0018] Verify the response status of the electric energy meter according to the instruction response control code. If the instruction response control code is a preset exception identifier, it is determined that the electric energy meter response is abnormal; if the instruction response control code is a normal identifier, it is determined that the electric energy meter response is normal;

[0019] After detecting that the electric energy meter response is normal, parse the response frame data field to extract the preset meter number inside the electric energy meter;

[0020] Compare the pre - set meter number inside the electric energy meter with the input parameter electric energy meter number. If the pre - set meter number inside the electric energy meter is the same as the input parameter electric energy meter number, it is determined that the input parameter meter number verification is correct;

[0021] When the electric energy meter responds normally and the input parameter meter number verification is correct, use the formatted communication address of the input parameter electric energy meter as the effective communication address of the electric energy meter.

[0022] In a further implementation, the downlink meter communication mode includes at least a carrier mode and an RS485 mode, and the grouped electric energy meters include at least a carrier communication electric energy meter group and a serial bus communication electric energy meter group.

[0023] In a further implementation, the step of obtaining the electric energy meter interaction command message according to the downlink meter communication mode and the effective communication address of the electric energy meter includes:

[0024] When the downlink meter communication mode is the carrier mode, determine the carrier interaction command message assembly information of the carrier communication electric energy meter group according to the power line carrier communication protocol and the effective communication address of the electric energy meter; wherein, the carrier interaction command message assembly information includes the concentrator carrier interface identifier, the target electric energy meter carrier communication address, and the carrier reading instruction code;

[0025] According to the interaction command message assembly information and the downlink meter communication mode, assemble the carrier electric energy meter interaction command message through the micro - power wireless transparent forwarding protocol format.

[0026] In a further implementation, the step of obtaining the electric energy meter interaction command message according to the downlink meter communication mode and the effective communication address of the electric energy meter includes:

[0027] When the downlink meter communication mode is the RS485 mode, determine the serial bus interaction command message assembly information of the serial bus communication electric energy meter group according to the serial bus communication protocol and the effective communication address of the electric energy meter; wherein, the serial bus interaction command message assembly information includes the target electric energy meter serial communication address, the serial communication response waiting duration, and the serial communication reading object attribute;

[0028] Based on the RS485 interaction command message assembly information, assemble the user link data unit according to the object - oriented specification rules;

[0029] Call the encryption machine interface, and encrypt the user link data unit with the preset security mode word using the national cryptographic algorithm to obtain the serial bus encrypted electric energy meter interaction command message.

[0030] In a further embodiment, the step of transmitting the transparent forwarding communication frame to the terminal device based on the target communication link so that the terminal device generates a watt-hour meter response packet according to the transparent forwarding communication frame includes:

[0031] Monitor the response of the terminal device within a preset communication response waiting duration. When a watt-hour meter response packet returned by the terminal device is received within the preset communication response waiting duration, it is determined that the transparent forwarding communication frame is successfully sent;

[0032] When a watt-hour meter response packet returned by the terminal device is not received within the preset communication response waiting duration, it is determined that the transparent forwarding communication frame is sent failed, and the accuracy of the input parameters is re-verified.

[0033] In a further embodiment, before the step of formatting the input parameters of the original parameters of the watt-hour meter to be debugged, the method further includes:

[0034] Obtain the device identification data of the target power metering device by scanning the physical barcode information of the target power metering device;

[0035] Perform security authentication on the terminal back clip device matching the device identification data, and when the security authentication of the terminal back clip device is successful, perform authorization authentication on the watt-hour meter operation authority to obtain a watt-hour meter operation authority authentication result;

[0036] When the watt-hour meter operation authority authentication result is successful, establish a local communication connection between the terminal back clip device and the target power metering device;

[0037] According to the local communication connection between the terminal back clip device and the target power metering device, obtain the original parameters of the watt-hour meter to be debugged from the target power metering device, and start local network debugging according to the original parameters of the watt-hour meter to be debugged.

[0038] In a second aspect, the present invention provides a local network debugging system for a power metering device, and the system includes:

[0039] A parameter initialization module, configured to format the input parameters of the original parameters of the watt-hour meter to be debugged, obtain a watt-hour meter response frame, and verify the accuracy of the input parameters according to the watt-hour meter response frame to determine a valid communication address of the watt-hour meter;

[0040] A power grouping module, configured to determine a downlink meter communication mode according to the communication mode parameters transmitted on the downlink, and group all watt-hour meters of the terminal devices on the downlink according to the downlink meter communication mode to obtain grouped watt-hour meters;

[0041] A communication encapsulation module, configured to obtain a power meter interaction command message according to the downlink meter communication mode and the valid communication address of the power meter, and encapsulate the power meter interaction command message into a transparent forwarding communication frame;

[0042] A data transmission module, configured to batch-assign different target communication links to grouped power meters, and transmit the transparent forwarding communication frame to a terminal device based on the target communication link, so that the terminal device generates a power meter response packet according to the transparent forwarding communication frame;

[0043] An identification parsing module, configured to receive the power meter response packet returned by the terminal device, parse the power meter response packet, and extract a data access result identification bit;

[0044] A debugging and analysis module, configured to determine a network debugging status according to the data access result identification bit, and determine that the target communication link channel is normal when the network debugging status is successful network debugging.

[0045] In a third aspect, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0046] The present invention provides a local network debugging method, system and medium for a power metering device. The method formats the input parameters of the power meter to be debugged to obtain a power meter response frame, and verifies the accuracy of the input parameters according to the power meter response frame to determine the valid communication address of the power meter; determines the downlink meter communication mode according to the communication mode parameters transmitted on the downlink, and groups all the power meters under the downlink terminal device according to the downlink meter communication mode to obtain grouped power meters; obtains a power meter interaction command message according to the downlink meter communication mode and the valid communication address of the power meter, and encapsulates the power meter interaction command message into a transparent forwarding communication frame; batch-assigns different target communication links to the grouped power meters, and transmits the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates a power meter response packet according to the transparent forwarding communication frame; receives the power meter response packet returned by the terminal device, and parses the power meter response packet to extract a data access result identification bit; determines the network debugging status according to the data access result identification bit, and determines that the target communication link channel is normal when the network debugging status is successful network debugging. Compared with the prior art, this method completes the verification of the power meter communication address, communication mode adaptation and network debugging through an automated process, ensures the stability of the communication link between the terminal device and the power meter, realizes the efficiency, accuracy and reliability of the power meter network debugging, meets the batch debugging requirements of power meters under different communication modes, and ensures the stable operation of the power system. Description of the Drawings

[0047] Figure 1 It is a schematic flow chart of the local networking debugging method for power metering devices provided by an embodiment of the present invention;

[0048] Figure 2 It is a schematic diagram of an example of the local networking debugging process provided by an embodiment of the present invention;

[0049] Figure 3 It is a schematic flow chart of the local networking topology debugging based on a back clip provided by an embodiment of the present invention;

[0050] Figure 4 It is a block diagram of the local networking debugging system for power metering devices provided by an embodiment of the present invention. Specific Embodiments

[0051] The following specifically illustrates the implementation manner of the present invention in conjunction with the accompanying drawings. The given embodiments are only for illustrative purposes and should not be construed as a limitation of the present invention. The accompanying drawings are only for reference and illustration, and do not constitute a limitation on the protection scope of the present invention patent. Because many changes can be made to the present invention without departing from the spirit and scope of the present invention.

[0052] Refer to Figure 1 An embodiment of the present invention provides a local networking debugging method for power metering devices. As Figure 1 shown, the method includes the following steps:

[0053] S1. Format the original parameters of the electric energy meter to be debugged for parameter input, obtain the response frame of the electric energy meter, and verify the accuracy of the parameter input according to the response frame of the electric energy meter to determine the valid communication address of the electric energy meter.

[0054] In some embodiments, the step of formatting the original parameters of the electric energy meter to be debugged for parameter input and obtaining the response frame of the electric energy meter includes:

[0055] Format the original parameters of the electric energy meter to be debugged for parameter input, obtain the communication address of the electric energy meter with formatted parameter input, and generate a preset meter number reading instruction according to the communication address of the electric energy meter with formatted parameter input;

[0056] Send the preset meter number reading instruction to the electric energy meter through the communication interface so that the electric energy meter responds according to the preset meter number reading instruction and generates a response frame of the electric energy meter.

[0057] Specifically, in this embodiment, the physical topology relationship of on-site connection devices is first automatically parsed into transparent forwarding instructions for acquisition terminal agents, thereby expanding the local batch polling ability of the terminal for electric energy meters, and meeting the comprehensive networking requirements of various types of terminals such as existing Type I concentrators and Type II concentrators. At the same time, it supports both 698 and 645 communication protocols, ensuring wide compatibility and applicability. Then, this embodiment performs formatting processing on the original parameters of the electric energy meters to be debugged. The formatting processing includes writing back the assignment of information such as completing the communication address prefix, complementing the meter number, communication protocol, and communication method. For example, for the communication address of the electric energy meter, if its length is less than the specified number of digits, the communication address prefix is complemented with 0 digits for 12 bits, and the meter number is also complemented with 12 bits to ensure that the parameters of all electric energy meters conform to a unified standard format. Then, according to the formatted communication address of the electric energy meter, a preset meter number reading instruction for reading the preset meter number inside the electric energy meter is generated. The preset meter number reading instruction includes information such as the communication address of the electric energy meter and the operation code for reading the meter number. This embodiment sends the generated preset meter number reading instruction to the electric energy meter through the communication interface. During the sending process, the integrity and accuracy of the preset meter number reading instruction are ensured, and it is encapsulated and transmitted according to the frame format specified by the communication protocol, so that the electric energy meter can correctly receive the preset meter number reading instruction and make a corresponding response. After receiving the preset meter number reading instruction, the electric energy meter generates a response frame containing data such as its internal preset meter number according to the content of the preset meter number reading instruction and returns it to the sending end through the communication interface. The response frame data returned by the electric energy meter is received through the communication interface.

[0058] During the process of receiving the response frame data, this embodiment needs to check whether the parameters after formatting the input parameters are valid and correct. In some embodiments, verifying the accuracy of the input parameters includes verifying the correctness of the communication address input parameter and the internal preset meter number of the electric energy meter; the step of determining the valid communication address of the electric energy meter according to the verification of the input parameter accuracy of the electric energy meter response frame includes:

[0059] Receiving the electric energy meter response frame returned by the electric energy meter, and parsing the electric energy meter response frame to obtain an instruction response control code and a response frame data field;

[0060] Verifying the response status of the electric energy meter according to the instruction response control code. If the instruction response control code is a preset abnormal identifier, it is determined that the electric energy meter response is abnormal; if the instruction response control code is a normal identifier, it is determined that the electric energy meter response is normal;

[0061] After detecting that the electric energy meter response is normal, parsing the response frame data field to extract the internal preset meter number of the electric energy meter;

[0062] Compare the pre - set meter number inside the electric energy meter with the input parameter electric energy meter number. If the pre - set meter number inside the electric energy meter is consistent with the input parameter electric energy meter number, it is determined that the input parameter meter number verification is correct;

[0063] When the electric energy meter responds normally and the input parameter meter number verification is correct, use the formatted input parameter electric energy meter communication address as the effective communication address of the electric energy meter.

[0064] In this embodiment, the received electric energy meter response frame is parsed to extract the instruction response control code and the response frame data field. The instruction response control code is used to identify the response status of the electric energy meter to the instruction, such as normal response, abnormal response, etc.; the response frame data field contains the specific data returned by the electric energy meter according to the instruction, such as the pre - set meter number and other information. In this embodiment, the response status of the electric energy meter is verified according to the instruction response control code. Compare the parsed instruction response control code with the pre - set identifier. If the instruction response control code is the pre - set abnormal identifier, it is determined that the electric energy meter response is abnormal, and further problems such as communication lines and the working status of the electric energy meter need to be investigated; if the instruction response control code is the normal identifier, it is determined that the electric energy meter response is normal. For example, assume that the abnormal identifier is D1 and the normal identifier is 91. If the instruction response control code is "D1", it means that the electric energy meter response is abnormal, and there are problems such as communication failures and unrecognized instructions; if the instruction response control code is "91", it means that the electric energy meter responds normally, indicating that both communication and instruction processing are normal. When it is confirmed that the electric energy meter response is normal, the response frame data field is parsed, and the pre - set meter number inside the electric energy meter is extracted according to the data format specified by the communication protocol. Compare the extracted pre - set meter number inside the electric energy meter with the input parameter electric energy meter number to check whether they are exactly the same in terms of value, number of digits, format, etc. If the pre - set meter number inside the electric energy meter is consistent with the input parameter electric energy meter number, it is determined that the input parameter meter number verification is correct; if the pre - set meter number inside the electric energy meter is inconsistent with the input parameter electric energy meter number, it indicates that there is an error in the input parameter meter number. When the electric energy meter response is normal and the input parameter meter number verification is correct, use the formatted input parameter electric energy meter communication address as the effective communication address of the electric energy meter.

[0065] S2. Determine the downlink meter communication mode according to the communication mode parameters transmitted in the downlink, and group all the electric energy meters of the downlink terminal device according to the downlink meter communication mode to obtain grouped electric energy meters.

[0066] Specifically, such as Figure 2As shown in the figure, when performing downlink communication in this embodiment, the downlink meter communication mode is determined according to the communication mode parameter meterCommMode transmitted on the downlink. The downlink meter communication mode includes at least a carrier mode and an RS485 mode. Specifically, when the value of the communication mode parameter meterCommMode is 01, the communication mode is the carrier mode at this time; when the value of the communication mode parameter meterCommMode is 02, the RS485 mode is selected for communication. After determining the communication mode of the downlink meter, this embodiment groups all the electric energy meters under the downlink terminal device according to the downlink meter communication mode, and divides the electric energy meters into at least a carrier communication electric energy meter group and a serial bus communication electric energy meter group according to their supported communication methods, so as to be able to effectively manage and issue instructions for the electric energy meters on different communication links in the follow-up, and ensure that the electric energy meters under different communication modes can transmit data through the corresponding communication links. Among them, the carrier communication electric energy meter group includes electric energy meters using carrier or micro-power wireless communication, and the serial bus communication electric energy meter group includes electric energy meters directly connected by RS485 cables. This batch processing method can effectively improve the communication efficiency and ensure that the instructions are accurately transmitted to the target electric energy meter.

[0067] S3. Obtain an electric energy meter interaction command message according to the downlink meter communication mode and the valid communication address of the electric energy meter, and encapsulate the electric energy meter interaction command message into a transparent forwarding communication frame.

[0068] In some embodiments, if the downlink meter communication mode is the carrier mode, the step of obtaining an electric energy meter interaction command message according to the downlink meter communication mode and the valid communication address of the electric energy meter includes:

[0069] When the downlink meter communication mode is the carrier mode, determine the assembly information of the carrier interaction command message for the carrier communication electric energy meter group according to the power line carrier communication protocol and the valid communication address of the electric energy meter; wherein, the assembly information of the carrier interaction command message includes a concentrator carrier interface identifier, a target electric energy meter carrier communication address, and a carrier reading instruction code.

[0070] Assemble and obtain a carrier electric energy meter interaction command message through the micro-power wireless transparent forwarding protocol format according to the interaction command message assembly information and the downlink meter communication mode.

[0071] In other embodiments, if the downlink meter communication mode is the RS485 mode, the step of obtaining an electric energy meter interaction command message according to the downlink meter communication mode and the valid communication address of the electric energy meter includes:

[0072] When the downlink meter communication mode is the RS485 mode, determine the serial bus interaction command message assembly information for the serial bus communication power meter grouping according to the serial bus communication protocol and the valid communication address of the power meter; wherein, the serial bus interaction command message assembly information includes the target power meter serial communication address, the serial communication response waiting duration, and the serial communication reading object attribute;

[0073] Based on the RS485 interaction command message assembly information, assemble the user link data unit according to the object-oriented specification rules;

[0074] Call the encryption machine interface and encrypt the user link data unit with the preset security mode word using the national cryptography algorithm to obtain the serial bus encrypted power meter interaction command message.

[0075] In this embodiment, according to different downlink meter communication modes (carrier mode or RS485 mode) and power meter address information, the corresponding power meter interaction command message is obtained. Specifically, when the carrier mode is adopted, in this embodiment, the connectivity between the debugging terminal and the power meter is first adjusted by operating the carrier or micro-power wireless interface of the concentrator. According to the communication protocol definition (such as DL / T645 or 698 protocol), the carrier power meter interaction command message for power meter data reading is assembled by the 127-transparent forwarding method for power meter data reading, and then the assembled carrier power meter interaction command message is sent to the power meter for data reading operation. After receiving the carrier power meter interaction command message, the power meter returns the corresponding data according to the content of the carrier power meter interaction command message.

[0076] When the RS485 mode is adopted, the terminal is directly connected to the electricity meter through the RS485 line to ensure the stability of the physical link. At the same time, in order to read the data of the electricity meter, in this embodiment, based on the Object-Oriented Electricity Consumption Information Data Exchange Protocol, a proxy reading mechanism is adopted to batch obtain the server object attributes. During this process, this embodiment needs to set parameters such as the target server address, timeout time, and the objects and attributes to be read, and then call the back-end interface. According to the set target server address, timeout time, and the objects and attributes to be read and other parameters, user link data APDU (Application Protocol Data Unit) is generated through the object-oriented specification rules. Then, this embodiment calls the encryption machine interface to encrypt the user link data APDU according to the preset security mode word and calculate the encrypted Mac value (Message Authentication Code). Finally, a serial bus encrypted electricity meter interaction command message is assembled and sent through the 458 port to read the electricity meter data. After obtaining the corresponding electricity meter interaction command message, this embodiment sends a corresponding transparent forwarding communication frame to the terminal. If the carrier mode is used for communication, this embodiment sends a carrier or micro-power wireless transparent forwarding communication frame to the target electricity meter; if the RS485 mode is used for communication, this embodiment sends a transparent forwarding communication frame to the target electricity meter through the 458 port to read the electricity meter data through the 458 port. In this embodiment, in the carrier mode, the communication frame is directly transmitted to the electricity meter without terminal parsing. In the RS485 mode, the terminal needs to proxy parse and forward the encrypted message to ensure the integrity and confidentiality of the APDU and prevent data tampering or leakage. This embodiment can flexibly adapt to the carrier and RS485 communication scenarios through mode separation processing, thereby realizing effective data interaction with the electricity meter in different communication modes and ensuring accurate reading and transmission of data.

[0077] S4. Allocate different target communication links to the grouped electricity meters in batches, and transmit the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates an electricity meter response packet according to the transparent forwarding communication frame.

[0078] In some embodiments, the step of transmitting the transparent forwarding communication frame to the terminal device based on the target communication link so that the terminal device generates an electricity meter response packet according to the transparent forwarding communication frame includes:

[0079] Monitor the response of the terminal device within the preset communication response waiting duration. When the electricity meter response packet returned by the terminal device is received within the preset communication response waiting duration, it is determined that the transparent forwarding communication frame is successfully sent;

[0080] When the electric energy meter response packet returned by the terminal device is not received within the preset communication response waiting duration, it is determined that the transmission of the transparent forwarding communication frame fails, and the accuracy of the input parameters is re-verified.

[0081] Specifically, in this embodiment, the transparent forwarding communication frame is transmitted to the terminal device through the target communication link (carrier or RS485). After receiving the communication frame, the terminal device generates an electric energy meter response packet according to the received communication frame. At this time, the system waits for the response of the electric energy meter within the preset communication response waiting duration, and checks whether the response from the electric energy meter has been successfully received within the preset communication response waiting duration through the verification mechanism, so as to determine whether the communication frame has been successfully transmitted to the electric energy meter. If the verification result shows that the response from the electric energy meter has not been received within the preset communication response waiting duration, it is determined that the transmission of the communication frame fails, and the accuracy of the communication parameters (such as communication address, meter number, etc.) is re-verified, and the communication frame is regenerated and transmitted again; if the verification result shows that the response from the electric energy meter has been received within the preset communication response waiting duration, it is determined that the communication frame has been successfully transmitted, and the electric energy meter message parsing stage is entered.

[0082] S5. Receive the electric energy meter response packet returned by the terminal device, and parse the electric energy meter response packet to extract the data access result flag bit.

[0083] S6. Determine the network debugging status according to the data access result flag bit. When the network debugging status is successful network debugging, it is determined that the target communication link channel is normal.

[0084] In a specific embodiment, according to the user link layer message regulation of the object-oriented power consumption information data exchange protocol regarding the response to reading object attributes, the 14th to 16th bits are the data access result flag bits. Therefore, in this embodiment, the message data returned by the electric energy meter is parsed, and the values of the 14th to 16th bits are intercepted as the data access result flag bits, and it is judged whether it is 01. If the data access result flag bit is 01, it means that the transparent forwarding operation of the electric energy meter at this communication address by the terminal is successful, indicating that the data reading is successful. At this time, the transparent forwarding operation of the electric energy meter at this communication address by the terminal is successful, indicating that the link channel from the terminal to the electric energy meter is normal; if the data access result flag bit is 00, it means that the data reading fails. At this time, it is determined that the target communication link channel is abnormal, and a list of electric energy meters with link anomalies is obtained, and secondary local network debugging is performed on the list of electric energy meters with link anomalies. When all the electric energy meters in the carrier group and the RS485 group have completed debugging and the reading is successful, it can be determined that the network debugging is successful. If there are some electric energy meters that fail to be successfully debugged, then the electric energy meters that have not been successfully debugged need to be re-debugged until all the electric energy meters have completed debugging.

[0085] In Figure 2In this embodiment, parameter formatting processing is performed on a batch of watt-hour meters according to the original parameters of the watt-hour meters to be debugged, and the correctness of these parameters is verified through the formatMeterParam() function. Then, this embodiment reads the communication mode parameter meterCommMode transmitted on the downlink to determine the downlink meter communication mode. If the value of the communication mode parameter meterCommMode transmitted on the downlink is "01", then this embodiment reads the watt-hour meter information by using the carrier communication method. Specifically, the watt-hour meter data is obtained by calling the proxyReadByCarrier(proxyReadMeterInfo) function. If the value of the communication mode parameter meterCommMode transmitted on the downlink is not "01", then this embodiment defaults to using the RS485 communication method to read the watt-hour meter information, and the watt-hour meter data is obtained through the proxyReadByRS485(proxyReadMeterInfo) function.

[0086] After determining the communication mode, this embodiment divides all the watt-hour meters under this terminal into two groups according to the two communication methods of carrier and RS485, so as to perform batch processing on the watt-hour meters of different communication links subsequently. This embodiment obtains the corresponding interaction command message according to the address of the watt-hour meter. If the carrier communication method is used, the interaction command message is obtained through the proxyReadByCarrier function, and the carrier / micro-power wireless transparent forwarding communication frame optionCarrierTransCommand is sent to the terminal. If the RS485 communication method is used, the interaction command message is obtained through the getReadCurrentEnergyCommand645 function, and the transparent forwarding communication frame is sent to the terminal to read the watt-hour meter data through the 458 port. In this embodiment, this step can be implemented by the proxyCommonTransCommand function. After sending the communication frame, this embodiment determines whether the sending operation is successful. If it is successful, the data returned by the watt-hour meter is parsed, and the data access result flag bit dar is extracted. If the value of the data access result flag bit dar is "00", it indicates that the network debugging is successful, indicating that the current target communication link channel is normal, the communication and data interaction between the watt-hour meter and the system are correct, and the current debugging task is completed, and the process ends. If the data access result flag bit dar is not equal to "00", it indicates that there are abnormalities or errors during the network debugging process, and parameter checks and related operations need to be performed again to ensure that all watt-hour meters can communicate and interact with data normally, and finally achieve the stable operation of the entire network, so as to realize the batch debugging of watt-hour meters and the efficient management of the networking process, ensure the accurate access of watt-hour meters under different communication modes and the reliability of data interaction, and improve the operation efficiency of the power system.

[0087] Based on the above embodiments, in some embodiments, before the step of formatting and inputting the original parameters of the watt-hour meter to be debugged, the method further includes:

[0088] Obtain the device identification data of the target power metering device by scanning the physical barcode information of the target power metering device;

[0089] Perform security authentication on the terminal back clip device matched with the device identification data, and when the security authentication of the terminal back clip device is successful, perform authorization authentication on the watt-hour meter operation authority to obtain the watt-hour meter operation authority authentication result;

[0090] When the watt-hour meter operation authority authentication result is successful, establish a local communication connection between the terminal back clip device and the target power metering device;

[0091] According to the local communication connection between the terminal back clip device and the target power metering device, obtain the original parameters of the watt-hour meter to be debugged from the target power metering device, and start local network debugging according to the original parameters of the watt-hour meter to be debugged.

[0092] In a specific embodiment, as Figure 3 shown, this embodiment adopts a local network debugging mode based on the back clip. The local network debugging mode based on the back clip abandons the traditional remote debugging method based on the main station of the power consumption information acquisition system. The local network debugging mode based on the back clip uses the infrared module of the back clip peripheral device for communication, so as to realize on-site local network debugging. In the local network debugging mode based on the back clip, the back clip peripheral device can directly send instruction messages to the concentrator on-site, and supports two communication protocols, 698 and 645. This mode not only improves the flexibility and efficiency of debugging, but also can meet the network debugging requirements of different types of concentrators. In addition, this local network debugging mode supports the network debugging requirements of the two types of concentrators currently in operation at the same time. Specifically, for type I concentrators, the local network debugging mode based on the back clip can realize the local topology network debugging of type I concentrators, collectors, and watt-hour meters, ensuring the accuracy and stability of data collection and transmission; for type II concentrators, the local network debugging mode based on the back clip simplifies the network structure and realizes the local topology network debugging between type II concentrators and watt-hour meters. This simplified network configuration can achieve rapid deployment and debugging. Through this local network debugging mode based on the back clip, on-site debugging work can be more convenient and efficient, effectively shortening the debugging cycle, reducing the debugging cost, and at the same time improving the operation reliability and maintenance efficiency of the power system.

[0093] This embodiment uses the "mobile phone + back clip" operation mode. Key information such as barcodes of concentrators, collectors, and electric energy meters is batch-collected by scanning codes, and then back clip security authentication is performed and the back clip key is downloaded. Specifically, this embodiment calls the getStatus method of the national cryptographic SM4 lightweight library to check the key status of the back clip. If TEST_STAT is returned, it means that the back clip key is in the factory test state; if NORM_STAT is returned, it means that the back clip has been officially put into operation. For the back clip in the test state, this embodiment obtains and stores the official key of the back clip from the server. Then, this embodiment calls the SetID method to write the back clip device fingerprint and calls the SM4InitSIK method of the SM4 library to complete the installation of the official key. This official key is used to ensure the link security of Bluetooth communication between the mobile phone and the back clip.

[0094] Next, this embodiment performs authentication between the back clip security unit module and the electric energy meter. Specifically, this embodiment performs key negotiation between the security unit module and the main station of the power consumption information acquisition system. This process involves collecting data such as the ESAM serial number, key version, and certificate information of the security unit, and calling the key negotiation initialization interface of the main station to obtain the encrypted M1 random number, M1 ciphertext, and M1 signature by the main station. At the same time, the key negotiation interface of the security unit module is called to verify the M1 ciphertext and signature, and generate the M2 ciphertext and signature. The generated M2 ciphertext and signature are sent to the main station, and the main station verifies the M2 ciphertext and signature to complete the key negotiation process. After the key negotiation is successful, the main station generates and distributes an offline session key for offline interaction with the electric energy meter. This key is mainly used for data encryption and decryption and session negotiation during the interaction with the electric energy meter in the business execution process. After this embodiment completes the key negotiation with the main station, it performs session negotiation with the electric energy meter. Specifically, it generates a communication frame for session negotiation request according to the object-oriented specification, selects symmetric encryption for the negotiation authentication method, and sends the communication frame to the electric energy meter through the back clip. The electric energy meter returns the encrypted ciphertext M2 and the client signature S2. At the same time, the session negotiation verification interface of the security unit is called to verify the ciphertext M2 and the client signature S2 to complete the session negotiation process.

[0095] Based on the established secure communication foundation, this embodiment uses the above local networking debugging method to achieve local networking debugging. If it is detected that the debugging of a certain electric energy meter fails, all centralized debugging or single-meter debugging can be repeated multiple times as needed until it is ensured that the networking between the concentrator, collector, and electric energy meter is unobstructed, and the electric energy meter data can be normally collected and reported to the system. After the debugging is completed, a networking debugging work order is formed for archiving, and at the same time, the local networking relationship information is synchronized to the power consumption information acquisition system to ensure the accuracy and integrity of the system data. The local networking debugging process based on the back clip not only realizes efficient network configuration and verification, but also ensures data security and communication reliability throughout the process.

[0096] In summary, the local networking debugging method proposed in this embodiment can support centralized batch debugging of electric energy meters using two communication methods, RS485 and carrier, under the same terminal. There is no need to issue instructions to electric energy meters with different communication methods one by one, thus reducing the complexity and time cost of debugging work. At the same time, through centralized batch debugging, the efficiency of debugging work can be significantly improved, making the debugging process faster and more efficient, which is particularly important for large-scale electric energy meter networking debugging work. In addition, the local networking debugging method proposed in this embodiment can be compatible with different concentrator terminal connection methods, meet the needs of various electric energy meter networking debugging, and support multiple communication protocols such as 698 and 645, making the debugging work no longer limited to a specific communication protocol, increasing the flexibility and scope of application of the debugging work.

[0097] The operation mode based on "mobile phone + back clip" in this embodiment can realize networking judgment on-site, meet the requirement of "installation and debugging immediately", so that after the electric energy meter is installed, on-site debugging can be carried out immediately without waiting for other equipment or personnel. By adopting the operation mode of "mobile phone + back clip", on-site debugging personnel can carry out networking judgment and debugging work more conveniently, which not only improves the efficiency of on-site debugging, but also reduces the difficulty and complexity of debugging work, thus solving the problems of centralized batch debugging of electric energy meters with different communication protocols under the same terminal and local networking debugging of electric energy meters with different concentrator terminal connection methods, and significantly improving the efficiency and flexibility of debugging work.

[0098] An embodiment of the present invention provides a local networking debugging method for a power metering device. The method includes formatting the input parameters of the to-be-debugged electric energy meter, obtaining the response frame of the electric energy meter, and verifying the accuracy of the input parameters according to the response frame of the electric energy meter to determine the effective communication address of the electric energy meter; determining the communication mode of the downstream meters according to the communication mode parameters transmitted on the downstream link, and grouping all the electric energy meters under the downstream link terminal device according to the communication mode of the downstream meters to obtain grouped electric energy meters; obtaining the interaction command message of the electric energy meter according to the communication mode of the downstream meters and the effective communication address of the electric energy meter, and encapsulating the interaction command message of the electric energy meter into a transparent forwarding communication frame; allocating different target communication links to the grouped electric energy meters in batches, and transmitting the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates an electric energy meter response packet according to the transparent forwarding communication frame; receiving the electric energy meter response packet returned by the terminal device, and parsing the electric energy meter response packet to extract the data access result flag bit; determining the networking debugging status according to the data access result flag bit, and when the networking debugging status is successful networking debugging, determining that the target communication link channel is normal. Compared with the prior art, this method efficiently and automatically completes the networking debugging process of the electric energy meter, ensures the reliability of the communication link and data interaction between the electric energy meter and the terminal device, improves the flexibility and accuracy of networking debugging, meets the batch debugging requirements of electric energy meters under different communication modes, and guarantees the stable operation of the power system.

[0099] It should be noted that the magnitudes of the serial numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0100] In one embodiment, as Figure 4 shown, an embodiment of the present invention provides a local networking debugging system for a power metering device. The system includes:

[0101] A parameter initialization module 101, configured to format the input parameters of the to-be-debugged electric energy meter, obtain the response frame of the electric energy meter, and verify the accuracy of the input parameters according to the response frame of the electric energy meter to determine the effective communication address of the electric energy meter;

[0102] An electric energy grouping module 102, configured to determine the communication mode of the downstream meters according to the communication mode parameters transmitted on the downstream link, and group all the electric energy meters under the downstream link terminal device according to the communication mode of the downstream meters to obtain grouped electric energy meters;

[0103] A communication encapsulation module 103, configured to obtain the interaction command message of the electric energy meter according to the communication mode of the downstream meters and the effective communication address of the electric energy meter, and encapsulate the interaction command message of the electric energy meter into a transparent forwarding communication frame;

[0104] The data transmission module 104 is configured to batch - allocate different target communication links for the packetized electricity meters, and transmit the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates an electricity meter response packet according to the transparent forwarding communication frame;

[0105] The identification resolution module 105 is configured to receive the electricity meter response packet returned by the terminal device, and resolve the electricity meter response packet to extract the data access result identification bit;

[0106] The debugging and analysis module 106 is configured to determine the networking debugging status according to the data access result identification bit, and when the networking debugging status is successful networking debugging, determine that the target communication link channel is normal.

[0107] For the specific limitations of a local networking debugging system for power metering devices, reference can be made to the above - mentioned limitations of a local networking debugging method for power metering devices, which will not be elaborated here. Those of ordinary skill in the art can realize that, combining the various modules and steps described in the embodiments disclosed in this application, can be implemented in hardware, software, or a combination of both. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0108] An embodiment of the present invention provides a local networking debugging system for a power metering device. The parameter initialization module of the system formats the original parameters of the electricity meter to be debugged for parameter input, obtains the response frame of the electricity meter, and verifies the accuracy of the input parameters according to the response frame of the electricity meter to determine the effective communication address of the electricity meter; the power grouping module determines the communication mode of the downstream meters according to the communication mode parameters transmitted in the downstream link, and groups all the electricity meters under the terminal devices in the downstream link according to the communication mode of the downstream meters to obtain grouped electricity meters; the communication encapsulation module obtains the interaction command message of the electricity meter according to the communication mode of the downstream meter and the effective communication address of the electricity meter, and encapsulates the interaction command message of the electricity meter into a transparent forwarding communication frame; the data transmission module batches and allocates different target communication links for the grouped electricity meters, and transmits the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates an electricity meter response packet according to the transparent forwarding communication frame; the identification parsing module receives the electricity meter response packet returned by the terminal device, and parses the electricity meter response packet to extract the data access result identification bit; the debugging analysis module determines the networking debugging status according to the data access result identification bit. When the networking debugging status is successful networking debugging, it is determined that the target communication link channel is normal. Compared with the prior art, the system efficiently and automatically completes the networking debugging process of the electricity meter, ensures the reliability of the communication link and data interaction between the electricity meter and the terminal device, improves the flexibility and accuracy of networking debugging, meets the batch debugging requirements of electricity meters under different communication modes, and guarantees the stable operation of the power system.

[0109] In one embodiment, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0110] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as an SSD), etc.

[0111] Those skilled in the art can understand that all or part of the processes in the above embodiments of the method can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the above embodiments of each method.

[0112] The above embodiments only represent several preferred implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the technical principle of the present invention, several improvements and substitutions can be made, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the protection scope of the claims.

Claims

1. A local networking debugging method for power metering devices, characterized in that, It includes the following steps: Format the original parameters of the watt-hour meter to be debugged for input, obtain the response frame of the watt-hour meter, and verify the accuracy of the input parameters according to the response frame of the watt-hour meter to determine the effective communication address of the watt-hour meter; Determine the communication mode of the downstream meter according to the communication mode parameters transmitted in the downstream link, and group all the watt-hour meters of the terminal device in the downstream link according to the communication mode of the downstream meter to obtain grouped watt-hour meters; Obtain the interaction command message of the watt-hour meter according to the communication mode of the downstream meter and the effective communication address of the watt-hour meter, and encapsulate the interaction command message of the watt-hour meter into a transparent forwarding communication frame; Allocate different target communication links to the grouped watt-hour meters in batches, and transmit the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates a response packet of the watt-hour meter according to the transparent forwarding communication frame; Receive the response packet of the watt-hour meter returned by the terminal device, and parse the response packet of the watt-hour meter to extract the data access result flag bit; Determine the network debugging status according to the data access result flag bit. When the network debugging status is successful network debugging, it is determined that the target communication link channel is normal; Among them, verifying the accuracy of the input parameters includes verifying the correctness of the communication address input parameter and the pre-set meter number inside the watt-hour meter; the step of verifying the accuracy of the input parameters according to the response frame of the watt-hour meter to determine the effective communication address of the watt-hour meter includes: Receive the response frame of the watt-hour meter returned by the watt-hour meter, and parse the response frame of the watt-hour meter to obtain the instruction response control code and the response frame data field; Verify the response status of the watt-hour meter according to the instruction response control code. If the instruction response control code is a preset abnormal identifier, it is determined that the response of the watt-hour meter is abnormal; if the instruction response control code is a normal identifier, it is determined that the response of the watt-hour meter is normal; After detecting that the response of the watt-hour meter is normal, parse the response frame data field to extract the pre-set meter number inside the watt-hour meter; Compare the pre-set meter number inside the watt-hour meter with the input watt-hour meter number. If the pre-set meter number inside the watt-hour meter is the same as the input watt-hour meter number, it is determined that the input meter number verification is correct; When the response of the watt-hour meter is normal and the input meter number verification is correct, use the formatted input communication address of the watt-hour meter as the effective communication address of the watt-hour meter.

2. The local networking debugging method for a power metering device according to claim 1, wherein The step of formatting the original parameters of the watt-hour meter to be debugged for input and obtaining the response frame of the watt-hour meter includes: Format the original parameters of the watt-hour meter to be debugged for input, obtain the formatted input communication address of the watt-hour meter, and generate a pre-set meter number reading instruction according to the formatted input communication address of the watt-hour meter; Send the pre-set meter number reading instruction to the watt-hour meter through the communication interface, so that the watt-hour meter responds according to the pre-set meter number reading instruction and generates a response frame of the watt-hour meter.

3. The local networking debugging method for a power metering device according to claim 1, characterized in that: The communication mode of the downstream meter includes at least the carrier mode and the RS485 mode, and the grouped watt-hour meters include at least the carrier communication watt-hour meter group and the serial bus communication watt-hour meter group.

4. The local networking debugging method for a power metering device according to claim 3, wherein The step of obtaining the interaction command message of the watt-hour meter according to the communication mode of the downstream meter and the effective communication address of the watt-hour meter includes: When the downlink meter communication mode is the carrier mode, determine the carrier interaction command message assembly information for the carrier communication meter group according to the power line carrier communication protocol and the effective communication address of the electric energy meter; wherein, the carrier interaction command message assembly information includes the concentrator carrier interface identifier, the target electric energy meter carrier communication address, and the carrier reading instruction code; According to the interaction command message assembly information and the downlink meter communication mode, assemble the carrier electric energy meter interaction command message in the format of the micro-power wireless transparent forwarding protocol.

5. The local networking debugging method for a power metering device according to claim 3, characterized in that The step of obtaining the electric energy meter interaction command message according to the downlink meter communication mode and the effective communication address of the electric energy meter includes: When the downlink meter communication mode is the RS485 mode, determine the serial bus interaction command message assembly information for the serial bus communication meter group according to the serial bus communication protocol and the effective communication address of the electric energy meter; wherein, the serial bus interaction command message assembly information includes the target electric energy meter serial communication address, the serial communication response waiting duration, and the serial communication reading object attribute; Based on the RS485 interaction command message assembly information, assemble the user link data unit according to the object-oriented specification rules. Call the encryption machine interface, and encrypt the user link data unit with the preset security mode word using the national cryptography algorithm to obtain the serial bus encrypted electric energy meter interaction command message.

6. The local networking debugging method for a power metering device according to claim 1, wherein, The step of transmitting the transparent forwarding communication frame to the terminal device based on the target communication link so that the terminal device generates an electric energy meter response packet according to the transparent forwarding communication frame includes: Monitor the response of the terminal device within the preset communication response waiting duration. When the electric energy meter response packet returned by the terminal device is received within the preset communication response waiting duration, determine that the transparent forwarding communication frame is successfully sent; When the electric energy meter response packet returned by the terminal device is not received within the preset communication response waiting duration, determine that the transparent forwarding communication frame is sent failed, and re-check the accuracy of the input parameters.

7. The local networking debugging method for a power metering device according to claim 1, characterized in that Before the step of formatting the input parameters of the original parameters of the electric energy meter to be debugged, the method further includes: Obtain the device identification data of the target power metering device by scanning the physical barcode information of the target power metering device; Based on the device identification data, perform security authentication on the terminal back clip device matched with it, and when the security authentication of the terminal back clip device is successful, perform authorization authentication on the electric energy meter operation authority to obtain the electric energy meter operation authority authentication result; When the electric energy meter operation authority authentication result is successful, establish a local communication connection between the terminal back clip device and the target power metering device; According to the local communication connection between the terminal back clip device and the target power metering device, obtain the original parameters of the electric energy meter to be debugged from the target power metering device, and start the local network debugging according to the original parameters of the electric energy meter to be debugged.

8. A local networking debugging system for a power metering device, characterized in that, The system includes: A parameter initialization module, configured to format the input parameters of the original parameters of the electric energy meter to be debugged, obtain the electric energy meter response frame, and check the accuracy of the input parameters according to the electric energy meter response frame to determine the effective communication address of the electric energy meter; The electric energy grouping module is used to determine the communication mode of the downlink meters according to the communication mode parameters transmitted in the downlink, and group all the electric energy meters under the downlink terminal device according to the communication mode of the downlink meters to obtain grouped electric energy meters; The communication encapsulation module is used to obtain the electric energy meter interaction command message according to the communication mode of the downlink meters and the valid communication address of the electric energy meter, and encapsulate the electric energy meter interaction command message into a transparent forwarding communication frame; The data transmission module is used to batch-allocate different target communication links for the grouped electric energy meters, and transmit the transparent forwarding communication frame to the terminal device based on the target communication link, so that the terminal device generates an electric energy meter response packet according to the transparent forwarding communication frame; The identification parsing module is used to receive the electric energy meter response packet returned by the terminal device, and parse the electric energy meter response packet to extract the data access result identification bit; The debugging analysis module is used to determine the network debugging status according to the data access result identification bit, and when the network debugging status is successful network debugging, it is determined that the target communication link channel is normal; Among them, verifying the accuracy of the input parameters includes verifying the correctness of the communication address input parameter and the pre-set meter number inside the electric energy meter; the method for determining the valid communication address of the electric energy meter by verifying the accuracy of the input parameters according to the electric energy meter response frame specifically includes: Receiving the electric energy meter response frame returned by the electric energy meter, and parsing the electric energy meter response frame to obtain an instruction response control code and a response frame data field; Verifying the response status of the electric energy meter according to the instruction response control code. If the instruction response control code is a preset abnormal identifier, it is determined that the electric energy meter response is abnormal; if the instruction response control code is a normal identifier, it is determined that the electric energy meter response is normal; After detecting that the electric energy meter response is normal, parsing the response frame data field to extract the pre-set meter number inside the electric energy meter; Comparing the pre-set meter number inside the electric energy meter with the input parameter electric energy meter number. If the pre-set meter number inside the electric energy meter is the same as the input parameter electric energy meter number, it is determined that the input parameter meter number verification is correct; When the electric energy meter response is normal and the input parameter meter number verification is correct, the formatted input parameter electric energy meter communication address is used as the valid communication address of the electric energy meter.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, the method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method, system and equipment for testing communication reliability of intelligent electric energy meter

    CN115100843A