CN114090543A - Inspection record traceability method of electric energy meter - Google Patents
Inspection record traceability method of electric energy meter Download PDFInfo
- Publication number
- CN114090543A CN114090543A CN202111354278.5A CN202111354278A CN114090543A CN 114090543 A CN114090543 A CN 114090543A CN 202111354278 A CN202111354278 A CN 202111354278A CN 114090543 A CN114090543 A CN 114090543A
- Authority
- CN
- China
- Prior art keywords
- inspection
- electric energy
- energy meter
- record
- message authentication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/219—Managing data history or versioning
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
- G01R22/06—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
- G01R22/061—Details of electronic electricity meters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioethics (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Life Sciences & Earth Sciences (AREA)
- Power Engineering (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a traceability method of inspection records of an electric energy meter, wherein an inspection record storage area is arranged in the electric energy meter, error detection records of the electric energy meter are stored in the electric energy meter, the inspection records can be inspected at any time, traceability of the inspection records is realized, 2 message authentication codes generated by different sources are stored in the inspection records stored in the electric energy meter, and data tamper resistance can be realized.
Description
Technical Field
The invention relates to a traceability method for inspection records of an electric energy meter.
Background
The electric energy meter is a product for measuring and metering invisible electricity, and as an electric energy metering appliance, the metering reliability of the electric energy meter directly influences the fairness of charging. Therefore, the state takes the electric energy meter as a product for mandatory measurement and supervision, carries out magnitude traceability management on the inspection device, and adopts measures of total inspection, operation sampling inspection and the like on the electric energy meter. The electric energy meter is in a life cycle and relates to the inspection of an electric energy meter factory, an inspection device factory and a provincial metering center and the spot inspection of a technical supervision bureau.
However, the current test records of the electric energy meter are all stored in the test databases of all the institutions, are not shared and associated with each other, and cannot be traced. The traceability of the inspection record aims to avoid the omission; secondly, the method avoids the execution which is not in accordance with the standard, such as the re-inspection is needed when the stock exceeds the period; thirdly, when disputes occur, the ever checked data, equipment and units passed by can be known; and fourthly, tampering is prevented, disputes occur, and even a manufacturer cannot independently modify and record data.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a traceable method for the inspection record of the electric energy meter, wherein the inspection record can be traced.
The invention is realized by the following technical scheme:
a traceability method for inspection records of an electric energy meter comprises the following steps,
(1) arranging a check record storage area in the electric energy meter;
(2) after each test of the electric energy meter is finished, a test record Y is generated according to the relevant information and is recorded in a test record storage area of the electric energy meter, and Y = { C = { (C),M, X, T, MAC1, MAC2}, where C is the inspection authority code, M is the inspection device serial number, X is the inspection error data sequence, T is the completion time of the inspection, MAC1 is message authentication code 1, MAC2 is message authentication code 2, and the inspection error data sequence is X = { X =i},i=1~n,XiError value representing the ith detection point, n indicates that there are n detection points, and MAC1 isThe message authentication code generated by the inspection institution is generated by { C, M, X, T } and an internal key of the inspection institution through a Hash algorithm, the MAC1 is fixed-length data, the MAC2 is the message authentication code generated by the inspection device, the message authentication code generated by { C, M, X, T, MAC1} and an internal key of the manufacturer of the inspection device are generated through the Hash algorithm, and the MAC2 is fixed-length data;
(3) the electric energy meter starts from the second inspection, after each new inspection record Y is generated, the inspection record Y is written into the electric energy meter, meanwhile, the error consistency verification is carried out, and the last latest inspection record in the electric energy meter is read out in a communication mode and is recorded as Y0Calculating Y of the selected key detection point0And judging whether the Euclidean distance D exceeds a threshold value or not, and warning when the Euclidean distance D exceeds the threshold value, wherein the Euclidean distance calculation formula is as follows:
in the formula, n is the number of key detection points participating in calculation, i is one detection point, and Y isiAnd Y0iThe current detection error value corresponding to the ith detection point and the detection error value in the last latest detection record in the electric energy meter are obtained; (4) the inspection records in the whole life cycle of the electric energy meter are stored in the electric energy meter, and the source tracing is carried out through the inspection records:
1) reading any one of the check records at any time, remotely calling the message authentication check service of the checking mechanism of the record to verify the MAC1 and the message authentication check service of the manufacturer of the checking device to verify the MAC2 to confirm the validity of the check record, and if any one of the checks fails, indicating that the check record data is not the original check data, thus preventing the data from being illegally tampered;
2) if the inspection data which should be done by a certain mechanism is missing in the record according to the process, the process can be considered to be omitted, and thus the source tracing and the source checking can be carried out on the work process of the corresponding electric energy meter batch.
The invention has the beneficial effects that: in the invention, the error detection record of the electric energy meter is stored in the electric energy meter, the once detection record can be checked at any time, the traceability of the detection record is realized, the detection record stored in the electric energy meter is provided with the message authentication codes generated by 2 different sources, and the data tamper resistance can be realized.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments.
A traceability method for inspection records of an electric energy meter comprises the following steps.
(1) A test record storage area is provided in the electric energy meter.
(2) After each test of the electric energy meter is finished, a test record Y is generated according to the relevant information and is recorded in a test record storage area of the electric energy meter, and Y = { C = { (C),M, X, T, MAC1, MAC2}, where C is the inspection authority code, M is the inspection device serial number, X is the inspection error data sequence, T is the completion time of the inspection, MAC1 is message authentication code 1, MAC2 is message authentication code 2, and the inspection error data sequence is X = { X =i},i=1~n,XiAn error value representing the ith detection point, n represents n detection points, MAC1 is a message authentication code generated by the inspection mechanism, and is generated by { C, M, X, T } and the internal key of the inspection mechanism through a hash algorithm, MAC1 is fixed-length data, MAC2 is a message authentication code generated by the inspection device, and is generated by { C, M, X, T, MAC1} and the internal key of the manufacturer of the inspection device through a hash algorithm, and MAC2 is fixed-length data.
The electric energy meter can carry out error detection in the links such as factory production, electric power company measurement center acceptance, technical supervision bureau selective examination, all can use error detection device, and inspection error data can all be exported in every inspection. When the electric energy meter is designed, a test record storage area with enough large space is planned, and the recording requirements of electric energy meter production, maintenance, in-factory verification and sampling inspection, power company verification and acceptance inspection, operation sampling inspection and the like can be met. In order to ensure that the electric energy meter has enough verification record space after leaving the factory, if the number of records generated in the production process is too large, the electric energy meter needs to be produced again after all data is initialized. By storing the inspection records in the electric energy meter, the traceability management of the inspection records of the electric energy meter can be realized.
For unified management, the organizations checked by the electric energy meter are all endowed with a unique organization code. The institution code is generally applied for registration by the institution to a national authority (e.g., a metering institute), and generally includes the institution identity and a docket number, denoted as C.
The serial number of each electric energy meter inspection device is the unique identifier of the inspection device which is applied by an inspection device manufacturer to a technical supervision authority and verified, and is marked as M.
After the electric energy meters are inspected on each inspection device, the inspection device outputs error data and time of each inspection point, each inspection mechanism is different in arrangement of the inspection points during inspection, the electric energy meters of different specifications are different, n inspection points are assumed, an inspection error data sequence is X = { Xi }, i = 1-n, and Xi represents an error value of the ith inspection point.
After the checking of a certain electric energy meter is finished by a checking mechanism, a checking record Y, Y = { C, M, X, T, MAC1, MAC2} is generated according to relevant information, wherein C is a checking mechanism code, M is a checking device serial number, X is a checking error data sequence, T is the completion time of the detection, MAC1 is a message authentication code 1, and MAC2 is a message authentication code 2.
MAC1 is a message authentication code generated by the checking organization, { C, M, X, T } and the checking organization internal key are generated by a hash algorithm (such as MD5, SM3, etc.), and MAC1 is fixed-length data.
The MAC2 is a message authentication code generated by the verification device (or the supporting software), and is generated by { C, M, X, T, MAC1} and the internal key of the verification device manufacturer through a hash algorithm (e.g., MD5, SM3, etc.), and the MAC2 is fixed-length data.
(3) The electric energy meter starts from the second inspection, after each new inspection record Y is generated, the inspection record Y is written into the electric energy meter, meanwhile, the error consistency verification is carried out, and the last latest inspection record in the electric energy meter is read out in a communication mode and is recorded as Y0Calculating Y of the selected key detection point0And judging whether the Euclidean distance D exceeds a threshold value or not, and warning when the Euclidean distance D exceeds the threshold value, wherein the Euclidean distance calculation formula is as follows:
in the formula, n is the number of key detection points participating in calculation, i is one detection point, and Y isiAnd Y0iThe current checking error value corresponding to the ith checking point and the checking error value in the last latest checking record in the electric energy meter are obtained.
The key detection point is generally selected according to the meter type and the precision requirement, such as a single-phase meter, and the key error point can be selected from the "starting current, the basic current and the maximum current" when the power factor is 1.0 and the "basic current and the maximum current" when the power factor is 0.5L, wherein n = 5.
And the threshold value for judging the consistency is set according to different meter types, different precision requirements and different selected key error point numbers n. For example, the error control index of the provincial and the metering centers of the national grid single-phase intelligent electric energy meter is 0.6%, the national grid single-phase intelligent electric energy meter needs to be checked by 0.1-level checking devices, the error deviation of each detection point on different checking devices is less than 0.2, the square of the error deviation is 0.04, and when n =5, the threshold value of the consistency judgment is less than 0.04 x 5= 0.2.
And (4) carrying out error consistency verification with the last time in each inspection, specifically judging by the Euclidean distance, and if the Euclidean distance exceeds a threshold value, indicating that the error fluctuation is large and giving an alarm. The checking device is 2 precision levels higher than the electric meter, and is a standard value relative to the electric energy meter, and the judgment of the Euclidean distance is less influenced by small deviation, so that the performance of the electric energy meter is unstable probably. Such as this: the n point detection data are qualified, but the fluctuation of each point is large, and the table is abnormal generally.
(4) The inspection records in the whole life cycle of the electric energy meter are stored in the electric energy meter, and the source tracing is carried out through the inspection records:
1) any one of the check records can be read at any time, the data of the check record passes through the message authentication check service of the checking mechanism for remotely calling the record to verify the MAC1 and the message authentication check service of the manufacturer of the checking device to verify the MAC2, the validity of the check record is confirmed, and if any one of the checks fails, the data of the check record is not the original check data, so that the data can be prevented from being illegally tampered. The message authentication and inspection service is an open special service program or web service provided by an inspection mechanism and an inspection device manufacturer, and after the recorded data is transmitted, whether the recorded data is in compliance or not can be judged;
2) if the inspection data which should be done by a certain mechanism is missing in the record according to the process, the process can be considered to be omitted, and thus the source tracing and the source checking can be carried out on the work process of the corresponding electric energy meter batch.
The check record stored in the electric energy meter can be read at any time through verification, so that illegal tampering of the data is prevented, the tampering prevention aims to ensure the authenticity of the data, and the method is used for verifying the original record when a user disputes, stopping a back door, and finding whether to have missed detection or not in time.
The invention provides a traceability method for checking record by using a key detection point of measurement error of an electric energy meter as a basis and using a memory in the meter as a data sharing medium.
The error detection record of the electric energy meter is in the electric energy meter, so that the once detection record can be checked at any time, the traceability of the detection record is realized, the detection record stored in the electric energy meter is provided with 2 message authentication codes generated by different sources, and the data tamper resistance can be realized.
Claims (1)
1. A traceability method for inspection records of an electric energy meter is characterized in that: the steps are as follows,
(1) arranging a check record storage area in the electric energy meter;
(2) after each test of the electric energy meter is finished, a test record Y is generated according to the relevant information and is recorded in a test record storage area of the electric energy meter, and Y = { C = { (C),M, X, T, MAC1, MAC2}, where C is the inspection authority code, M is the inspection device serial number, X is the inspection error data sequence, T is the completion time of the inspection, MAC1 is message authentication code 1, MAC2 is message authentication code 2, and the inspection error data sequence is X = { X =i},i=1~n,XiRepresents the ithAn error value of each detection point, n represents n detection points, MAC1 is a message authentication code generated by a checking mechanism, the message authentication code is generated by { C, M, X, T } and an internal key of the checking mechanism through a Hash algorithm, MAC1 is fixed-length data, MAC2 is a message authentication code generated by a checking device, the message authentication code is generated by { C, M, X, T, MAC1} and an internal key of a manufacturer of the checking device through a Hash algorithm, and MAC2 is fixed-length data;
(3) the electric energy meter starts from the second inspection, after each new inspection record Y is generated, the inspection record Y is written into the electric energy meter, meanwhile, the error consistency verification is carried out, and the last latest inspection record in the electric energy meter is read out in a communication mode and is recorded as Y0Calculating Y of the selected key detection point0And judging whether the Euclidean distance D exceeds a threshold value or not, and warning when the Euclidean distance D exceeds the threshold value, wherein the Euclidean distance calculation formula is as follows:
in the formula, n is the number of key detection points participating in calculation, i is one detection point, and Y isiAnd Y0iThe current detection error value corresponding to the ith detection point and the detection error value in the last latest detection record in the electric energy meter are obtained;
(4) the inspection records in the whole life cycle of the electric energy meter are stored in the electric energy meter, and the source tracing is carried out through the inspection records:
1) reading any one of the check records at any time, remotely calling the message authentication check service of the checking mechanism of the record to verify the MAC1 and the message authentication check service of the manufacturer of the checking device to verify the MAC2 to confirm the validity of the check record, and if any one of the checks fails, indicating that the check record data is not the original check data, thus preventing the data from being illegally tampered;
2) if the inspection data which should be done by a certain mechanism is missing in the record according to the process, the process can be considered to be omitted, and thus the source tracing and the source checking can be carried out on the work process of the corresponding electric energy meter batch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111354278.5A CN114090543A (en) | 2021-11-16 | 2021-11-16 | Inspection record traceability method of electric energy meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111354278.5A CN114090543A (en) | 2021-11-16 | 2021-11-16 | Inspection record traceability method of electric energy meter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114090543A true CN114090543A (en) | 2022-02-25 |
Family
ID=80300888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111354278.5A Pending CN114090543A (en) | 2021-11-16 | 2021-11-16 | Inspection record traceability method of electric energy meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114090543A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114089261A (en) * | 2021-11-16 | 2022-02-25 | 宁波迦南智能电气股份有限公司 | Performance evaluation method of inspection device based on inspection records of electric energy meter |
-
2021
- 2021-11-16 CN CN202111354278.5A patent/CN114090543A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114089261A (en) * | 2021-11-16 | 2022-02-25 | 宁波迦南智能电气股份有限公司 | Performance evaluation method of inspection device based on inspection records of electric energy meter |
CN114089261B (en) * | 2021-11-16 | 2024-04-09 | 宁波迦南智能电气股份有限公司 | Performance evaluation method of inspection device based on electric energy meter inspection record |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Yip et al. | An anomaly detection framework for identifying energy theft and defective meters in smart grids | |
Krishna et al. | F-DETA: A framework for detecting electricity theft attacks in smart grids | |
CN102216735B (en) | Measurement device, particularly energy counter and method for recognition of manipulations | |
EP2816760B1 (en) | A method, a server and a client providing secured communication in a power distribution communication network | |
US11748336B2 (en) | Method and apparatus for managing measurement device based on blockchain | |
CN103559099A (en) | Chip burning checking method | |
CN114090543A (en) | Inspection record traceability method of electric energy meter | |
CN112733211A (en) | Intelligent power grid data storage scheme based on block chain | |
CN101123502A (en) | Measurement authentication method based on digital signature | |
Yip et al. | Detection of energy theft and metering defects in advanced metering infrastructure using analytics | |
DK2608981T3 (en) | Securing and synchronizing system time in a charging station | |
CN116359833B (en) | Centralized verification method, device and equipment for electric energy meter and storage medium | |
He et al. | Detection method for tolerable false data injection attack based on deep learning framework | |
CN107678917A (en) | Test machine automatic management method, apparatus, equipment and storage medium | |
CN109188196A (en) | A kind of electricity mutation failure localization method based on Hamming code | |
CN114089261B (en) | Performance evaluation method of inspection device based on electric energy meter inspection record | |
CN106124813B (en) | A kind of single-phase charge-controlled intelligent electric meter production management method | |
CN108235254B (en) | Method and system for detecting authenticity of mobile terminal returned to factory for maintenance without starting up | |
CN111415079A (en) | Asset code management method, device, server and storage medium | |
CN114114122A (en) | Intelligent distribution transformer terminal assembly line production verification method | |
CN114418288A (en) | Power-supply-protecting information data access system and access method thereof | |
CN117436138A (en) | Power grid data safety processing method and system based on block chain | |
US20240161126A1 (en) | Methods and apparatus for dlt-enabled digitized tokens for carbon credits | |
CN103839330B (en) | Smart card and operation requests output intent, operation requests response method and system | |
CN114201779A (en) | Solar module right confirming system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |