A method for total clearing electric energy meters with multi-level operation authority
Through the multi-level operation authority control of the power meter, it is divided into production status, factory status and user status, the problem of safety hazards of the total cleaning of the power meter is solved, and the normal operation of the power company and the safety of the user side are achieved.
Patent Information
- Application Number
- CN202411489174.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-10-24
AI Technical Summary
In the prior art, the safety risks of total electricity meter clearance are relatively high, especially in a large number of retail and overseas markets, and the lack of strict remote real-time communication control, resulting in the possibility of cooperation between power company personnel and users in illegal activities.
The power meter total cleaning method with multi-level operation permissions is adopted, and multi-level permission control is implemented in the manufacturer, metering center and user, which is divided into production status, factory status and user status. Manufacturers can clear the zeroing without limit. The total clearing of the measurement center will reduce the number of times by 1 until the number of times is 0. The total clearing of the times has been 0 and cannot be cleared again.
It effectively eliminates the safety hazards of total cleaning, ensures the normal operation of the power company in the manufacturing and metrology center, and prevents the clearing operation of the user side, ensuring the safety and reliability of the power meter.
Abstract
Description
Technical Field
[0001] The invention relates to a method for total clearing electric energy meters with multi-level operation authority. Background Art
[0002] The energy meter needs to go through multiple steps of verification from manufacturing to installation and operation at the user's place. The meter needs to be calibrated and inspected at the manufacturer, which includes full inspection, process sampling inspection, and factory sampling inspection. After the energy meter arrives at the power company, it will also undergo full inspection and sampling inspection before it can be installed to the user. Each time it is inspected, the energy meter will generate electricity consumption data and form a certain bottom value. In the early days, when mechanical meters were used as metering indicators, it was generally agreed that each link could not generate a value exceeding X degrees, ensuring that the bottom value was relatively small when it was installed to the user. After using LCD as a metering indicator, it is required that the bottom value of the energy meter obtained by each unit is zero, that is, a total clearing process should be performed.
[0003] Total clearing is an operation with a very large impact. If the control is not strict and the method is mastered by users, it may cause huge losses to power companies. Power companies have always attached great importance to this. At present, large power grid companies such as the State Grid Corporation of my country and the China Southern Power Grid have adopted smart meters and used the hard encryption method and remote communication of ESAM chips to carry out information security management, which basically solved the security management problem of total clearing. However, in a large number of retail markets and overseas markets, such strict control methods are rarely used at present, and many application scenarios cannot achieve remote real-time communication. Therefore, most of them are controlled by passwords, programming buttons with lead seals, etc., and the safety risks of total clearing always exist. In some cases, power company personnel will collude with users to carry out illegal activities. Summary of the invention
[0004] In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides an electric energy meter total clearing method with multi-level operation authority that can eliminate the potential safety hazards of total clearing.
[0005] A method for total clearing of electric energy meters with multi-level operation authority, wherein the electric energy clearing function adopts multi-level authority control in the manufacturer, metering center and user, and is divided into production state, factory state and user state; in the manufacturer, in the production state, the clearing work is not restricted, and a total clearing number is set; in the metering center, in the factory state, each time a total clearing is done, the number is reduced by 1, until the number is 0, and no more total clearing is allowed, and finally the total clearing number zeroing instruction is used to make the number 0; in the user, in the user state, the total clearing number has been returned to 0, and it can no longer be cleared;
[0006] In the manufacturer, the MCU burning program and the burning tool software will generate a random non-repeating number UUID during burning. The UUID is set at a fixed position or the end of the program. In the energy meter storage EEPROM, a flag data F is set. F is obtained by the UUID through an irreversible algorithm when the energy meter is initialized. Each time the energy meter is powered on and restarted, the MCU determines whether the UUID and the flag data F conform to the algorithm rules. If not, it enters the waiting data initialization processing state S1; there are two ways to initialize data. One is to short-circuit the initialization jumper J1 on the PCB board and connect J1 to the IO port of the MCU. The MCU determines that J1 is short-circuited and is in the S1 state, and initializes the EEPROM memory; the other way is to receive a data initialization instruction from the RS485 or infrared port. The instruction address is a wildcard address. When the initialization instruction is received and it is in the S1 state, the EEPROM memory is initialized.
[0007] Preferably, after data initialization, all parameters are set to default values, including calibration parameters. Measurement using default values is more than 1 times faster than measurement after normal calibration. It will be judged as an error exceeding the limit on any measurement test bench and must be recalibrated.
[0008] Preferably, there is a data clearing counter Q in the EEPROM of the electric energy meter. After the data is initialized, Q is set to a larger value of a byte, the highest bit of which is a flag bit, and the flag bit is 1 / 0, corresponding to the production status / factory status. The lowest 7 bits are the number of executable clearing times. When the highest bit of the clearing counter Q is 1, Q can be set to a value in the range of 1 to 127, and when the highest bit of the clearing counter Q is 0, the value of Q is not allowed to be set.
[0009] Preferably, the manufacturer sets a reset counter Q once before leaving the factory, and the highest bit of the set Q value must be 0, indicating the factory state, and the value of Q cannot be set again subsequently.
[0010] Preferably, after the acceptance is completed, the metering center should execute a reset command to clear the counter Q. After the execution, Q=0, and the electric energy meter can no longer be cleared.
[0011] The present invention adopts multi-level authority control for the zeroing function in the manufacturer, metering center and user. In the manufacturer, the production status zeroing work is not restricted. In the metering center, in the factory state, the total clearing times cannot be set. Each time a clearing is performed, the times are reduced by 1 until the times are 0 and the total clearing cannot be performed again. This method allows the power company to do some experiments or calibrate the meter, and finally repeat the total clearing until the times are 0, and use the total clearing times reset instruction to make the times 0. At the user, in the user state, the total clearing times have been reset to 0 and can no longer be reset. Once out of the metering center, the zeroing operation can no longer be performed, avoiding the safety hazards of the total clearing.
[0012] Beneficial effects of the present invention: The present invention adopts multi-level authority control, which not only ensures that the manufacturer and the measurement center can work normally, but also makes it impossible to perform zeroing operations on the user side. The zeroing counter Q decreases and is irreversible during the three links of production, acceptance, and use. Even if the operation instructions are not encrypted, there will be no risk. It is simple and efficient. DETAILED DESCRIPTION
[0013] A method for total clearing of electric energy meters with multi-level operation authority. The electric energy clearing function adopts multi-level authority control in the manufacturer, metering center and user, which is divided into production state, factory state and user state. At the manufacturer, in the production state, the clearing work is not restricted, and the total clearing times can be set once. At the metering center, in the factory state, each time the clearing is done, the times are reduced by 1, until the times are 0, and then the total clearing is not allowed. Finally, the total clearing times are reset to zero. This method allows the power company to do some experiments or calibrate the meter. In order to avoid not repeating the total clearing to 0, the total clearing times are reset to zero. Finally, the total clearing times are reset to zero. The command is used to make the times 0. At the user, in the user state, the total clearing times have been reset to 0 and can no longer be reset. Once out of the metering center, the zeroing operation can no longer be performed, avoiding the safety hazards of the total clearing.
[0014] The specific process is as follows. In the production of electric energy meters, the MCU can burn the program in the production state. The burning tool software will generate a random non-repeating number UUID during burning, and the UUID is set at a fixed position or the end of the program. In the electric energy meter storage EEPROM, a flag data F is set. When the EEPROM is initialized, F is obtained from the UUID through an irreversible algorithm. Every time the electric energy meter is powered on and restarted, the MCU determines whether the UUID and the flag data F meet the algorithm rules. If not, it enters the waiting data initialization processing state S1.
[0015] Here is a solution to the problem of repeated burning of MCU. Under normal circumstances, the corresponding flag F is related to UUID. If the MCU is re-burned and the UUID changes, F will have nothing to do with the new UUID. The mismatch caused by the change of UUID when the MCU is newly burned is possible only by internal personnel because the meter program is required. This method requires even internal personnel to go through the re-calibration link. There are two ways to initialize data. One is to short-circuit the initialization jumper J1 on the PCB board. J1 is connected to the IO port of the MCU. The MCU determines that J1 is short-circuited and is in the S1 state, and initializes the EEPROM memory; the other way is to receive the data initialization instruction from the RS485 or infrared port. The instruction address is a wildcard address, such as the DL / T645-2007 protocol is all A (12 A) in hexadecimal. When the initialization instruction is received and it is in the S1 state, the EEPROM memory is initialized.
[0016] After data initialization, the initialization process will generate the flag data F according to the UUID and save it in the EEPROM. All parameters become default values, including calibration parameters. The measurement with default parameters is more than 1 times faster than the measurement after normal calibration. It will be judged as an error exceeding the limit on any measurement test station and must be recalibrated. This means that any re-burning of the MCU must start from the calibration link.
[0017] In the EEPROM of the energy meter, there is a data reset counter Q. After data initialization, Q is set to a larger value of one byte, and its highest bit is the flag bit, which is 1 / 0, corresponding to the production state / factory state. The lowest 7 bits are the number of times reset can be performed, for example, Q=227, which means that in the production state, reset can be performed 100 times.
[0018] Before shipping, the manufacturer can set the clear counter Q once. The highest bit of the set Q value must be 0, which indicates the factory state. That is, when the highest bit of the clear counter Q is 1, Q can be set to a value in the range of 1 to 127, and when the highest bit of the clear counter Q is 0, the value of Q is not allowed to be set.
[0019] In the whole process, the operation after setting the Q value becomes irreversible and must be re-initialized and calibrated. In fact, the rights of the measurement center are limited, and users have no privileges. Each measurement center can agree with the manufacturer on the value of the zero-clearing counter Q. Usually, when the goods have been supplied many times and the quality is reliable, the customer does not need to do too much testing, but only check the basic error. Q=1 can be set, or a value greater than 1 can be set, such as Q=5, then a maximum of 5 zero-clearings can be performed at the measurement center.
[0020] The total number of clearing times of the metering center cannot be set. Each time a clearing is performed, the number is reduced by 1 until the number reaches 0 and then the total clearing cannot be performed again. After the acceptance is completed, the metering center should execute a reset command of the zero counter Q. After execution, Q=0, and the energy meter can no longer be cleared, unless it is returned to the factory to re-burn the program and redo all the processes except welding and assembly, including data initialization, meter calibration, inspection, parameter setting, etc. In other words, the zero counter Q of the energy meter installed at the user's site is 0.
[0021] The method used in the present invention can ensure that manufacturers can perform repeated zeroing after internal multi-process and multi-scenario testing. The zeroing counter setting can only be performed once when leaving the factory, avoiding the risks brought by repeated settings. At the metering center, the zeroing counter Q cannot be set, but the reset instruction can be executed to make Q=0, thereby prohibiting the meter from being reset again. Because the zeroing counter Q decreases and is irreversible during the three links of production, acceptance, and use, there will be no risk if the operation instructions are not encrypted, which is simple and efficient.
Claims
1. A method for total clearing electric energy meters with multi-level operation authority, characterized in that: The power reset function adopts multi-level authority control in the manufacturer, metering center and user, which is divided into production status, factory status and user status; in the manufacturer, in the production status, the reset work is not restricted, and the total reset times are set once; in the metering center, in the factory status, each time the total reset is done, the times decrease by 1, until the times are 0, and then the total reset times cannot be done again, and finally the total reset times zeroing instruction is used to make the times 0; in the user, in the user status, the total reset times have been 0, and can no longer be reset; In the manufacturer, the MCU burning program and the burning tool software will generate a random non-repeating number UUID during burning. The UUID is set at a fixed position or at the end of the program. A flag data F is set in the electric energy meter storage EEPROM. F is obtained by the UUID through an irreversible algorithm when the electric energy meter is initialized. Each time the electric energy meter is powered on and restarted, the MCU determines whether the UUID and the flag data F conform to the algorithm rules. If not, it enters the waiting data initialization processing state S1; There are two ways to initialize data. One is to short-circuit the initialization jumper J1 on the PCB board and connect J1 to the IO port of the MCU. The MCU determines that J1 is short-circuited and is in the S1 state, and initializes the EEPROM memory. The other way is to receive a data initialization instruction from the RS485 or infrared port. The instruction address is a wildcard address. When the initialization instruction is received and it is in the S1 state, the EEPROM memory is initialized. In the EEPROM of the energy meter, there is a data clear counter Q. After the data is initialized, Q is set to a larger value of one byte. The highest bit is the flag bit, which is 1 / 0, corresponding to the production status / factory status. The lowest 7 bits are the number of times the clearing can be performed. When the highest bit of the clear counter Q is 1, Q can be set to a value in the range of 1 to 127. When the highest bit of the clear counter Q is 0, the value of Q is not allowed to be set.
2. The method for total clearing electric energy meters with multi-level operation authority according to claim 1, characterized in that: After data initialization, all parameters are set to default values, including calibration parameters. Measurement using default values is more than 1 times faster than measurement after normal calibration. It will be judged as out-of-limit error on any measurement test bench and must be recalibrated.
3. The method for total clearing electric energy meters with multi-level operation authority according to claim 2, characterized in that: Before leaving the factory, the manufacturer sets a reset counter Q once. The highest bit of the new Q value must be 0, which indicates the factory state. The value of Q cannot be set later.
4. The method for total clearing electric energy meters with multi-level operation authority according to claim 3 is characterized in that: After the acceptance is completed, the metering center should execute a reset command to clear the counter Q. After execution, Q=0, and the electricity meter can no longer be cleared.
Citation Information
Patent Citations
Online upgrading method for electric energy meter
CN104063254A
Method for rapidly resetting data of electric energy meter
CN105652051A