A method for configuring parameters of an electric energy meter

By constructing a parameter upgrade package and adopting multiple transmission methods and verification mechanisms, the problem of low efficiency in electricity meter parameter configuration has been solved, achieving efficient and secure parameter configuration.

CN117058813BActive Publication Date: 2026-06-16WASION GROUP HLDG

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WASION GROUP HLDG
Filing Date
2023-08-08
Publication Date
2026-06-16

Smart Images

  • Figure CN117058813B_ABST
    Figure CN117058813B_ABST
Patent Text Reader

Abstract

The application discloses a kind of electric energy meter parameter configuration methods, wherein, electric energy meter parameter configuration method includes: including the following steps: input electric energy meter end configuration parameter, construct electric energy meter end parameter upgrade package;Unified configuration parameter upgrade package in the coding format of parameter data block, and the parameter upgrade package is transmitted to electric energy meter end;Parameter upgrade package is carried out legality detection, if parameter upgrade package detection is qualified, then activate the parameter upgrade package, to complete the parameter configuration of electric meter end.The application solves the technical problems that the existing electric energy meter parameter configuration mode is not convenient and low efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electricity meter technology, and in particular to a method for configuring electricity meter parameters. Background Technology

[0002] During the operation of electricity meters in the field, changes in application scenarios or customer needs often necessitate on-site modifications to the meter's operating parameters. Currently, existing electricity meter parameter management software modifies and configures each meter's parameters sequentially, resulting in low efficiency and wasted manpower and resources. While the DLMS / COSEM protocol for electricity meters provides a multi-object data access mechanism, namely the withlist function, which allows setting multiple parameter objects at once, the withlist function is limited by the electricity meter protocol buffer, typically supporting a maximum of 10 objects per message. Therefore, when configuring a large number of parameters, multiple withlist messages are required, and it only supports unicast transmission, not broadcast mode or resume capability, limiting its efficiency. Therefore, there is an urgent need to propose a new method for configuring electricity meter parameters to address the inconvenience and inefficiency of existing methods. Summary of the Invention

[0003] The main objective of this invention is to provide a method for configuring electricity meter parameters, aiming to solve the technical problems of inconvenience and low efficiency in existing electricity meter parameter configuration methods.

[0004] To achieve the above objectives, the present invention provides a method for configuring electricity meter parameters, wherein the method includes the following steps:

[0005] S1. Input the configuration parameters of the electricity meter and build the parameter upgrade package for the electricity meter;

[0006] S2. Unify the encoding format of the parameter data blocks in the parameter upgrade package and transmit the parameter upgrade package to the electricity meter terminal;

[0007] S3. Perform a validity check on the parameter upgrade package. If the parameter upgrade package passes the check, activate the parameter upgrade package to complete the parameter configuration at the meter.

[0008] In one preferred embodiment, the parameter upgrade package includes a parameter upgrade package header and several parameter data blocks.

[0009] In one preferred embodiment, the parameter upgrade package header includes upgrade package verification information, upgrade package file length, manufacturer identifier, electricity meter model, parameter file version number, and verification identifier.

[0010] In one preferred embodiment, the parameter data block includes an operation service code, a call sequence number ID and priority, a data object descriptor, and data content.

[0011] In one preferred embodiment, the parameter upgrade package uses A-XDR encoding.

[0012] One preferred embodiment is that the parameter upgrade package supports unicast transmission, broadcast transmission, and resume interrupted transmission.

[0013] In one preferred embodiment, step S2 transmits the parameter upgrade package to the electricity meter, specifically as follows:

[0014] Initialize parameter upgrade package transmission channel;

[0015] The transmission methods of unicast transmission, broadcast transmission, and breakpoint resume are used to send several parameter data blocks to the electricity meter terminal in blocks;

[0016] Determine the integrity of the parameter upgrade packet transmission. If the parameter upgrade packet is transmitted completely, the transmission of the parameter upgrade packet is completed. If the parameter upgrade packet is not transmitted completely, the parameter data blocks that were not successfully transmitted will be resent.

[0017] In one preferred embodiment, step S3 performs a validity check on the parameter upgrade package, specifically as follows:

[0018] Read the parameter upgrade package header and perform a validity check;

[0019] The parameter upgrade package is segmented and verified, and it is determined whether the parameter upgrade package is compressed.

[0020] Perform a full verification of the parameter upgrade package. If the full verification passes, the verification is successful; otherwise, the verification fails.

[0021] In one preferred embodiment, if the parameter upgrade package passes the test in step S3, the parameter upgrade package is activated, specifically as follows:

[0022] If the parameter upgrade package passes the test, a parameter activation command will be issued.

[0023] The electricity meter terminal parses the parameter upgrade package according to the parameter activation command and updates the configuration parameters to the electricity meter terminal;

[0024] Determine whether the configuration parameters have been updated. If so, activation is successful.

[0025] In one preferred embodiment, before activating the parameter upgrade package in step S3, the method further includes: backing up the parameter information at the electricity meter.

[0026] In the above technical solution of the present invention, the method for configuring electricity meter parameters includes the following steps: inputting configuration parameters at the electricity meter end to construct a parameter upgrade package at the electricity meter end; unifying the encoding format of parameter data blocks within the parameter upgrade package and transmitting the parameter upgrade package to the electricity meter end; performing a validity check on the parameter upgrade package; if the parameter upgrade package passes the check, activating the parameter upgrade package to complete the parameter configuration at the electricity meter end. The present invention solves the technical problems of inconvenience and low efficiency in existing electricity meter parameter configuration methods.

[0027] In this invention, configuration parameters are encoded and packaged into a parameter upgrade package, which is then transmitted to the electricity meter. Unicast transmission, broadcast transmission, and breakpoint resumption are supported. When the parameter upgrade package is large, it can be compressed before transmission, thereby improving the transmission efficiency of the parameter upgrade package.

[0028] In this invention, the security of the parameter upgrade package is improved by performing block verification and overall verification on the parameter upgrade package. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0030] Figure 1 This is a schematic diagram of a method for configuring electricity meter parameters according to an embodiment of the present invention;

[0031] Figure 2 This is a schematic diagram of the parameter upgrade package according to an embodiment of the present invention;

[0032] Figure 3 This is a schematic diagram illustrating the transmission of parameter upgrade packets according to an embodiment of the present invention;

[0033] Figure 4 This is a schematic diagram illustrating the validity check of the parameter upgrade package in an embodiment of the present invention.

[0034] The realization of the objective, functional characteristics and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0035] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0036] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature.

[0037] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.

[0038] See Figure 1 According to one aspect of the present invention, the present invention provides a method for configuring electricity meter parameters, wherein the method for configuring electricity meter parameters includes the following steps:

[0039] S1. Input the configuration parameters of the electricity meter and build the parameter upgrade package for the electricity meter;

[0040] S2. Unify the encoding format of the parameter data blocks in the parameter upgrade package and transmit the parameter upgrade package to the electricity meter terminal;

[0041] S3. Perform a validity check on the parameter upgrade package. If the parameter upgrade package passes the check, activate the parameter upgrade package to complete the parameter configuration at the meter.

[0042] One of the preferred options, see Figure 2The parameter upgrade package includes a parameter upgrade package header and several parameter data blocks. The parameter upgrade package header includes upgrade package verification information, upgrade package file length, manufacturer identifier, electricity meter model, parameter file version number, and verification identifier. The parameter data blocks include operation service code, call sequence number ID and priority, data object descriptor, and data content. The parameter upgrade package also includes the number of configuration parameter data blocks. The upgrade package verification information includes a Cyclic Redundancy Check (CRC) code and a digital signature. The upgrade package verification information is used to detect errors in data transmission or storage, verify the integrity of the parameter upgrade package transmission, and prevent the parameter upgrade package from being damaged or tampered with during transmission or storage. In this invention, the Cyclic Redundancy Check code uses CRC32. This invention does not impose specific limitations and can be set as needed.

[0043] Specifically, in this embodiment, the encoding format of the parameter upgrade package is consistent with the APDU in the DLMS / COSEM protocol. The parameter upgrade package adopts A-XDR encoding, and each configuration parameter corresponds to a parameter data block. The parameter data block includes the operation service code, call sequence number ID and priority, data object descriptor and data content. This invention does not impose specific limitations, and can be set as needed.

[0044] Specifically, in this embodiment, the parameter upgrade package follows the image transmission mechanism defined by class 18 in the COSEM protocol during transmission, and the parameter upgrade package supports unicast transmission, broadcast transmission, and breakpoint resumption.

[0045] Specifically, in this embodiment, before transmitting the parameter upgrade package to the electricity meter in step S2, the method further includes: setting a first threshold; if the parameter upgrade package is larger than the first threshold, then compressing the parameter upgrade package and transmitting the compressed parameter upgrade package to the electricity meter, thereby improving the transmission efficiency of the parameter upgrade package.

[0046] Specifically, in this embodiment, see Figure 3Step S2, which transmits the parameter upgrade package to the energy meter, specifically involves: initializing the parameter upgrade package transmission channel; using unicast transmission, broadcast transmission, and breakpoint resumption transmission methods to send several parameter data blocks to the energy meter in blocks; determining the integrity of the parameter upgrade package transmission; if the parameter upgrade package transmission is complete, the transmission of the parameter upgrade package is completed; if the parameter upgrade package transmission is incomplete, the parameter data blocks that were not successfully transmitted are resent; the determination of the integrity of the parameter upgrade package transmission specifically involves: calculating the CRC of each parameter data block in sequence, and summing the calculated CRC of each parameter data block; if the sum of the CRC of all parameter data blocks is equal to the upgrade package verification information in the parameter upgrade package header, it indicates that the parameter upgrade package transmission is complete; if they do not match, the data in the parameter upgrade package is corrupted or tampered with.

[0047] Specifically, in this embodiment, see Figure 4 Step S3 involves validating the parameter upgrade package by: reading the parameter upgrade package header and validating it by obtaining information such as the manufacturer identifier, electricity meter model, and parameter file version number from the header and comparing it with the preset information in the electricity meter. If they match, the header verification is successful; otherwise, the verification fails. The parameter upgrade package is then segmented for verification, specifically by performing CRC checks on each parameter data block. After segmented verification, it is determined whether the parameter upgrade package is compressed. If compressed, it is decompressed and stored in the decompression area; otherwise, the segmented verified parameter upgrade package is directly stored in the decompression area. The parameter upgrade package in the decompression area is read and validated as a whole. If the overall validation passes, the validation is successful; otherwise, the validation fails. This involves verifying the CRC or digital signature of the parameter upgrade package header.

[0048] Specifically, in this embodiment, if the parameter upgrade package passes the test in step S3, the parameter upgrade package is activated. Specifically, if the parameter upgrade package passes the test, a parameter activation command is issued; the electricity meter parses the parameter upgrade package according to the parameter activation command and updates the configuration parameters to the electricity meter; it is determined whether the configuration parameters have been updated. If so, the activation is successful; otherwise, the parameter information of the backed-up electricity meter is directly configured to the electricity meter. Activating the parameter upgrade package includes timed activation and immediate activation. Immediate activation means updating the configuration parameters in the parameter upgrade package to the electricity meter immediately after receiving the parameter activation command. Timed activation means updating the configuration parameters in the parameter upgrade package to the electricity meter according to a preset parameter activation time.

[0049] Specifically, in this embodiment, before activating the parameter upgrade package in step S3, the method further includes: backing up the parameter information of the electricity meter; if a power outage occurs during the parameter update process, the update will continue after power is restored; if a parameter update anomaly occurs, the parameters of the electricity meter can be restored to the backed-up parameter information, thereby ensuring the reliable operation of the electricity meter and the integrity of the parameter update.

[0050] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. All equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A method for configuring parameters of an electricity meter, characterized in that, Includes the following steps: S1. Input the configuration parameters of the electricity meter and build the parameter upgrade package for the electricity meter; The parameter upgrade package includes a parameter upgrade package header, the number of configuration parameter data blocks, and several parameter data blocks. The parameter upgrade package header includes upgrade package verification information, upgrade package file length, manufacturer information, electricity meter model, parameter file version number, and verification information. The upgrade package verification information includes a cyclic redundancy check (CRC32) and a digital signature. This verification information is used to detect errors in data transmission or storage, verify the integrity of the parameter upgrade package transmission, and prevent the parameter upgrade package from being damaged or tampered with during transmission or storage. The CRC32 is used for the cyclic redundancy check. The parameter data blocks include an operation service code, a call sequence number ID and priority, a data object descriptor, and data content. S2. Unify the encoding format of the parameter data blocks in the parameter upgrade package and transmit the parameter upgrade package to the electricity meter terminal; S3. Perform a validity check on the parameter upgrade package. If the parameter upgrade package passes the check, activate the parameter upgrade package to complete the parameter configuration at the meter. Step S3 involves performing a validity check on the parameter upgrade package, specifically as follows: Read the parameter upgrade package header and perform a validity check. Obtain information such as the manufacturer identifier, electricity meter model, and parameter file version number from the parameter upgrade package header. Compare the information in the parameter upgrade package header with the manufacturer identifier, electricity meter model, and parameter file version number preset inside the electricity meter. If they are the same, the parameter upgrade package header verification is qualified; otherwise, the verification fails. The parameter upgrade package is segmented for verification, that is, the CRC of each parameter data block in the parameter upgrade package is verified. After the block verification is completed, it is determined whether the parameter upgrade package is compressed. If it is compressed, it is decompressed in blocks and the decompressed parameter upgrade package is stored in the decompression area. If it is not compressed, the parameter upgrade package after block verification is directly stored in the decompression area. Read the parameter upgrade package in the decompressed area and perform a full verification of the parameter upgrade package. If the full verification passes, the verification is successful; otherwise, the verification fails. In other words, the CRC or digital signature of the parameter upgrade package header is verified.

2. The method for configuring electricity meter parameters according to claim 1, characterized in that, The parameter upgrade package uses A-XDR encoding.

3. The method for configuring electricity meter parameters according to claim 1, characterized in that, The parameter upgrade package supports unicast transmission, broadcast transmission, and resume interrupted transmission.

4. The method for configuring electricity meter parameters according to claim 3, characterized in that, Step S2, which transmits the parameter upgrade package to the electricity meter, specifically involves: Initialize parameter upgrade package transmission channel; The transmission methods of unicast transmission, broadcast transmission, and breakpoint resume are used to send several parameter data blocks to the electricity meter terminal in blocks; Determine the integrity of the parameter upgrade packet transmission. If the parameter upgrade packet is transmitted completely, the transmission of the parameter upgrade packet is completed. If the parameter upgrade packet is not transmitted completely, the parameter data blocks that were not successfully transmitted will be resent.

5. The method for configuring electricity meter parameters according to claim 1, characterized in that, If the parameter upgrade package passes the test in step S3, then the parameter upgrade package is activated, specifically as follows: If the parameter upgrade package passes the test, a parameter activation command will be issued. The electricity meter terminal parses the parameter upgrade package according to the parameter activation command and updates the configuration parameters to the electricity meter terminal; Determine whether the configuration parameters have been updated. If so, activation is successful.

6. The method for configuring electricity meter parameters according to claim 1, characterized in that, Before activating the parameter upgrade package in step S3, the method further includes: backing up the parameter information at the electricity meter.