Electric energy meter system clock skew correction method, device and equipment and storage medium
Through the broadcast timing function and successive approximation algorithm, remote correction of the clock deviation of the power meter is achieved, defects in the existing technology that require on-site intervention are solved, work intensity and safety hazards are reduced, and timing efficiency is improved.
Patent Information
- Application Number
- CN202411994200.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-11
AI Technical Summary
The prior art is difficult to remotely correct the power meter that uses physical buttons to grant operational permissions. If the clock deviation exceeds ±5 minutes, maintenance personnel need to intervene on the spot, resulting in high work intensity, poor safety and complex processes.
The broadcast timing function is used combined with the successive approximation algorithm, and the main station automatically executes remote instructions, gradually corrects the clock deviation of the power meter until it is consistent with the main station time.
Remote correction of clock deviation of the power meter that uses physical buttons to give operation permissions is achieved, reducing the working intensity of maintenance personnel, avoiding safety hazards in human operations, and improving timing efficiency.
Smart Images

Figure CN119805351A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric energy meter correction, and in particular relates to an electric energy meter system clock deviation correction method, device, equipment and storage medium. Background Art
[0002] As the terminal billing device in the electric energy trading system, the rate switching and historical data freezing of the electric energy meter are based on the system time. The accuracy of the electric energy meter system clock operation plays a key role in the accuracy of the electric energy meter billing and historical data tracing.
[0003] During the field operation of the energy meter, there will be a deviation between the system clock and the national standard time, so the energy meter needs to be managed. There are two methods for managing the energy meter clock. The first is clock setting. When the energy meter is in the programming permission state, the clock setting instruction in the energy meter communication protocol can be used to set the system clock of a specific energy meter (matching the address field in the communication instruction). There is no limit to the setting time range and the number of settings. The second is broadcast time adjustment. At any time, the broadcast time adjustment instruction in the energy meter communication protocol can be used to broadcast time adjustment for all energy meters. All energy meters that receive the broadcast time adjustment instruction compare the energy meter system clock with the clock in the data field of the broadcast time adjustment instruction, and correct the time difference within ±5 minutes. The energy meter makes corrections based on the clock in the data field of the broadcast time adjustment instruction. For time differences beyond ±5 minutes, the energy meter does not respond. And the energy meter only responds to the broadcast time adjustment instruction once a day. For the clock setting method, operation authority is required, the setting time range is wide, there is no limit to the number of settings, and only a single energy meter is operated at the same time. For broadcast time calibration, no operation authority is required, the setting time is short, and there is a limit on the number of settings. Multiple electricity meters can be operated at the same time.
[0004] Therefore, for the clock deviation of the energy meter, when the deviation is less than ±5 minutes, the master station can correct the deviation clock of the energy meter through broadcast time calibration. When the clock deviation is greater than ±5 minutes, the master station can only correct the clock of the energy meter with remote command permission through clock setting instructions; however, the remote energy meter clock cannot be corrected for the energy meter with physical button permission.
[0005] At present, for electric energy meters that use physical buttons to grant operation permissions, when the clock deviation exceeds ±5 minutes, the usual practice is for the electric energy meter operation and maintenance personnel to grant the electric energy meter programming permissions on site, and then use the clock setting method to correct the electric energy meter clock. This method requires the electric energy meter operation and maintenance personnel to go to the site in person, operate with power on, and remove and replace the electric energy meter seal. The work intensity is high, the safety is poor, and the process is complicated. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method, device, equipment and storage medium for correcting the clock deviation of an electric energy meter system, so as to solve the problem that in the prior art, when the clock deviation of an electric energy meter that uses physical buttons to grant operation authority exceeds ±5 minutes, maintenance personnel are required to personally perform the clock deviation correction. In order to achieve the above object, the present invention adopts the following technical solutions: A method for correcting clock deviation of an electric energy meter system comprises the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time corrects the electric energy meter system time through broadcast time calibration, and the correction time is a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0007] A further improvement of the present invention is: Preferably, in S1, the master station collects system time of multiple electric energy meters at one time.
[0008] Preferably, before S1, the system time of the electric energy meter is collected by loading the electric energy meter address.
[0009] Preferably, the master station system executes S1-S4 for a plurality of corresponding electric energy meters until the system time of the electric energy meters corresponding to the master station is equal to the system time of the master station.
[0010] Preferably, in S2, if the deviation between the two is less than 5 minutes, the time adjustment is processed through daily broadcasting.
[0011] Preferably, in S3, the set threshold is 4 minutes and 30 seconds.
[0012] Preferably, in S2 and S3, the master station can be replaced by a simulated master station.
[0013] A clock deviation correction device for an electric energy meter system, comprising: Collection module, collecting the system time of the electric energy meter; The comparison module compares the master station system time and the electric energy meter system time. If the deviation between the two is greater than 5 minutes, the time calibration module is executed; The time calibration module, the master station system time corrects the electric energy meter system time through broadcast time calibration, and the correction time is a set threshold, and the set threshold is less than 5 minutes; The cycle module executes the acquisition module, comparison module and time calibration module in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0014] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for correcting clock deviation of an electric energy meter system is implemented.
[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the above-mentioned methods for correcting clock deviation of an electric energy meter system is implemented.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention discloses a method for correcting the clock deviation of an electric energy meter system. The method utilizes the characteristic that the broadcast time correction function does not require the programming state support of the electric energy meter, and cooperates with the successive approximation algorithm to solve the problem that the electric energy meter clock deviation exceeds 5 minutes and cannot be remotely solved; for electric energy meters that use physical buttons to grant operation authority and have a clock deviation exceeding ±5 minutes, the electric energy meter operation and maintenance remote instructions are used to correct the electric energy meter system clock. Since the process is automatically executed by the master station, there is no need for manual on-site intervention on the electric energy meter, which reduces the work intensity of the electric energy meter operation and maintenance personnel and avoids safety hazards during manual operation.
[0017] Furthermore, the method can be used as an auxiliary function module of the master station system, and can realize remote time calibration for electric energy meters with a clock deviation of more than 5 minutes without increasing the investment in on-site equipment.
[0018] Furthermore, in this method, one master station can support multiple electric energy meters to perform clock correction operations, thereby improving the time calibration efficiency.
[0019] Furthermore, the successive approximation broadcast time adjustment strategy should be carried out after the normal daily broadcast time adjustment of the master station system. This can prevent the electric energy meter with a system clock error within 5 minutes from being deviated by the successive approximation broadcast time adjustment instruction.
[0020] Furthermore, the threshold is set to 4 minutes and 30 seconds. This time range can minimize the time difference as quickly as possible while ensuring the use of broadcast time synchronization, so that the system time of the electric energy meter can be normalized as soon as possible, thereby improving the time synchronization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flow chart of a method for correcting clock deviation of an electric energy meter system according to the present invention; Figure 2 It is a structural schematic diagram of the master station and the corresponding electric energy meter of the present invention; Figure 3 The flowchart of a specific embodiment of the present invention is shown in FIG. DETAILED DESCRIPTION
[0022] In the following, the terms "first", "second", "third", and "fourth" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first", "second", "third", and "fourth" may explicitly or implicitly include one or more of the features.
[0023] The co-shooting method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
[0024] It should be noted that the terms "first", "second", etc. in the specification and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] As the problem raised in the background technology, the on-site electric energy meter is prone to the problem of clock deviation. Regarding the causes of the clock deviation of the on-site electric energy meter.
[0026] First, it is caused by the accumulated error of the clock. The technical specifications of the State Grid require that the second pulse accuracy of the energy meter is 0.5s / d (seconds / day), that is, the error of the energy meter system clock is less than 0.5 seconds per day. As the energy meter continues to operate in the field, the accumulated error of the system clock will slowly accumulate and gradually increase.
[0027] The second is caused by undervoltage of the clock battery. According to the technical specifications of the energy meter, the energy meter should use an environmentally friendly lithium battery as the backup power supply for the clock. When the energy meter loses power, the internal clock battery of the energy meter must keep the meter clock working correctly for at least 5 years. A large number of energy meters on site have been in operation for more than 10 years, and the battery has been undervoltage, but the energy meters cannot be rotated for various reasons. When this type of energy meter encounters a power outage, the battery voltage cannot maintain the normal operation of the energy meter system clock due to undervoltage of the battery. When the power is restored, the energy meter will have clock deviation, and the clock deviation will be determined by the length of the power outage, usually more than 5 minutes of clock deviation.
[0028] The present invention involves the following specific devices and definitions.
[0029] Smart meter: An electric energy meter composed of a measuring unit, a data processing unit, a communication unit, etc., with functions such as electric energy measurement, information storage and processing, real-time monitoring, automatic control, and information interaction.
[0030] System clock: a real-time clock that runs automatically inside the device; Simulation master station: a software platform for performing on-site data collection, remote control, and operation and maintenance of electric energy meters.
[0031] The functions of the Type II concentrator mainly include data collection, data management and remote management. In the present invention, it is used for communication between the master station and the smart meter.
[0032] Example 1 See also Figure 1 The first aspect of the present invention discloses a method for correcting clock deviation of an electric energy meter system using broadcast time correction. The broadcast time correction does not require the electric energy meter to be given the characteristic of operation authority. The master station remotely controls the use of the successive approximation broadcast time correction method to gradually correct the clock deviation of the electric energy meter. The method comprises the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time is corrected by broadcasting a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0033] The electric energy meter clock deviation correction method of the present invention, the master station first collects the time of the corresponding electric energy meter system, compares the collected time with the master station time, if the deviation between the two is greater than 5 minutes, since it is impossible to directly use the broadcast time correction, the time setting time is firstly corrected, and the setting time is less than five minutes, so that the master station can perform broadcast time correction for multiple electric energy meters at the same time, and repeat the above operation on the second day, and continue to correct the electric energy meters whose time difference is still greater than 5 minutes, until all the electric energy meter system time can meet the requirements, the method realizes the clock deviation correction task of the electric energy meter without affecting the normal and stable operation of the existing functions of the master station system. The method utilizes the one-to-many surface operation characteristics of the broadcast time correction instruction to improve the efficiency of the successive approximation algorithm, and all electric energy meter system clocks with a time difference of less than 5 minutes in the broadcast time correction instruction will respond.
[0034] Example 2 In this embodiment, a method for correcting clock deviation of an electric energy meter system includes the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time is corrected by broadcasting a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0035] See also Figure 2 , one master station can support multiple electric energy meters for clock correction operations, and the master station software will perform clock correction operations on all loaded electric energy meters at regular intervals every day. Since each master station corresponds to multiple electric energy meters, combined with the one-to-many surface operation characteristics of the broadcast time correction instruction, each master station can collect the system time of multiple electric energy meters at a time, compare them, and improve the time correction efficiency. Therefore, in S1, each master station first loads the address of its corresponding electric energy meter and collects the system time of multiple electric energy meters.
[0036] A master station communicates with multiple electric energy meters through multiple type II concentrators, and each type II concentrator can correspond to multiple electric energy meters. Further, the communication between the master station and the type II concentrator is through GPRS, CDMA, MODEM or LAN communication.
[0037] Example 3 In this embodiment, a method for correcting clock deviation of an electric energy meter system includes the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time is corrected by broadcasting a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0038] In this embodiment, the master station executes S1-S4 for a plurality of corresponding electric energy meters until the system time of the corresponding electric energy meters is equal to the system time of the master station, which means that the system time of the electric energy meters corresponding to the master station is synchronized.
[0039] Example 4 In this embodiment, a method for correcting clock deviation of an electric energy meter system includes the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time is corrected by broadcasting a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0040] In this embodiment, the master station broadcasts time calibration to multiple electric energy meters it targets every day to ensure that the system time of all electric energy meters is accurate.
[0041] Example 5 In this embodiment, a method for correcting clock deviation of an electric energy meter system includes the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time is corrected by broadcasting a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0042] In this embodiment, the successive approximation broadcast time adjustment strategy is to be performed after the normal daily broadcast time adjustment of the master station system, so as to prevent the electric energy meter with a system clock error within 5 minutes from being deviated by the successive approximation broadcast time adjustment instruction.
[0043] Example 6 In this embodiment, a method for correcting clock deviation of an electric energy meter system includes the following steps: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time is corrected by broadcasting a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0044] In this embodiment, the threshold is set to 4 minutes and 30 seconds. This time range can minimize the time difference as quickly as possible while ensuring that broadcast time correction can be used, so that the system time of the electric energy meter can be normalized as soon as possible.
[0045] Example 7 In this embodiment, see Figure 3 , a method for correcting clock deviation of an electric energy meter system, comprising the following steps: S1, the master station starts the broadcast time synchronization function regularly, usually once a day.
[0046] S2, load the address of the electric energy meter corresponding to the master station.
[0047] S3, over-reading multiple electric energy meter system time.
[0048] S4, compare the system time of multiple electric energy meters with the computer system time of the master station. If the deviation is greater than 5 minutes, execute S5, otherwise execute S6; S5, broadcasting and calibrating the system time of the electric energy meter according to the set threshold time.
[0049] S6, judging whether the system time processing of all the electric energy meters has been completed, if the processing is completed, the broadcast time adjustment is ended, if there are still electric energy meters with large system time differences, S5 is repeated after an interval of 24 hours to continue the processing.
[0050] Example 8 In this embodiment, a simulated master station is set up in the whole system. As the core device in the electric energy trading system, the master station undertakes many other functions. In order to avoid the instability of the method in the test stage, the method can set up a simulated master station in the whole system to replace the master station for testing in the early stage of application to reduce the impact on the master station.
[0051] Furthermore, in actual application, the simulated master station can also replace the main station, reducing the workload of the master station in calibrating other electric energy meters.
[0052] Example 8 In this embodiment, the master station reads the system clock of the electric energy meter. If the system time difference between the master station and the electric energy meter clock is greater than ±5 minutes, a correction time of about 4 minutes and 30 seconds faster or slower than the system clock of the electric energy meter is calculated. The master station sends the correction time as the broadcast time correction instruction time data. After receiving it, the electric energy meter can respond to the broadcast time correction instruction normally, and the system clock of the electric energy meter is corrected by 4 minutes and 30 seconds. One day later, the operation is repeated again until the system clock of the electric energy meter is corrected to the correct time. The larger the clock deviation of this method, the longer the correction period.
[0053] Table 1 Experimental data of broadcast timing scheme
[0054] The data analysis is verified from Table 1. After 6 days of successive approximation broadcast time correction, the system clock deviation of the three energy meters is within 5 minutes, and the system clock can be synchronized with all the energy meters in the system by following the broadcast time correction of the master station system. This is consistent with the expectations of the clock calibration design.
[0055] Example 9 This embodiment discloses a clock deviation correction device for an electric energy meter system, comprising: Collection module, collecting the system time of the electric energy meter; The comparison module compares the master station system time and the electric energy meter system time. If the deviation between the two is greater than 5 minutes, the time calibration module is executed; The time calibration module, the master station system time corrects the electric energy meter system time through broadcast time calibration, and the correction time is a set threshold, and the set threshold is less than 5 minutes; The cycle module executes the acquisition module, comparison module and time calibration module in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
[0056] Example 10 This embodiment discloses a computer device. The computer terminal device includes a processor and a memory. The memory is used to store a computer program. The computer program includes program instructions. The processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement corresponding method processes or corresponding functions; the processor described in this embodiment can be used to implement a method for correcting clock deviation of an electric energy meter system, including the following steps: S1, collecting the system time of the electric energy meter; S2, comparing the system time of the master station with the system time of the electric energy meter, if the deviation between the two is greater than 5 minutes, executing S3; S3, the system time of the master station corrects the system time of the electric energy meter through broadcast time correction, and the correction time is a set threshold, and the set threshold is less than 5 minutes; S4, executing S1-S3 in a daily cycle until the system time of the electric energy meter is the same as the system time of the master station.
[0057] Embodiment 11 This embodiment discloses a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. One or more instructions stored in a computer-readable storage medium can be loaded and executed by a processor to implement a method for correcting a clock deviation of an electric energy meter system in the above embodiment, including the following steps: S1, collecting the system time of the electric energy meter; S2, comparing the system time of the master station with the system time of the electric energy meter, and if the deviation between the two is greater than 5 minutes, executing S3; S3, the system time of the master station corrects the system time of the electric energy meter through broadcast time calibration, and the correction time is a set threshold, and the set threshold is less than 5 minutes; S4, executing S1-S3 in a daily cycle until the system time of the electric energy meter is the same as the system time of the master station.
[0058] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for correcting clock deviation of an electric energy meter system, characterized in that: The following steps are involved: S1, collects the system time of the electric energy meter; S2, compare the master station system time with the electric energy meter system time. If the deviation between the two is greater than 5 minutes, execute S3; S3, the master station system time corrects the electric energy meter system time through broadcast time calibration, and the correction time is a set threshold, and the set threshold is less than 5 minutes; S4, execute S1-S3 in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
2. The method for correcting clock deviation of an electric energy meter system according to claim 1, characterized in that: In S1, the master station collects the system time of multiple energy meters at one time.
3. The method for correcting clock deviation of an electric energy meter system according to claim 2, characterized in that: Before S1, the system time of the electric energy meter is collected by loading the electric energy meter address.
4. The method for correcting clock deviation of an electric energy meter system according to claim 3, characterized in that: The master station system executes S1-S4 for a plurality of corresponding electric energy meters until the system time of the electric energy meters corresponding to the master station is equal to the system time of the master station.
5. The method for correcting clock deviation of an electric energy meter system according to claim 1, characterized in that: In S2, if the deviation between the two is less than 5 minutes, the time adjustment is processed through daily broadcast.
6. The method for correcting clock deviation of an electric energy meter system according to claim 1, characterized in that: In S3, the set threshold is 4 minutes and 30 seconds.
7. The method for correcting clock deviation of an electric energy meter system according to claim 1, characterized in that: In S2 and S3, the master station can be replaced by a simulated master station.
8. A clock deviation correction device for an electric energy meter system, characterized in that: include: Collection module, collecting the system time of the electric energy meter; The comparison module compares the master station system time and the electric energy meter system time. If the deviation between the two is greater than 5 minutes, the time calibration module is executed; The time calibration module, the master station system time corrects the electric energy meter system time through broadcast time calibration, and the correction time is a set threshold, and the set threshold is less than 5 minutes; The cycle module executes the acquisition module, comparison module and time calibration module in a daily cycle until the system time of the energy meter is the same as the system time of the master station.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for correcting clock deviation of an electric energy meter system as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for correcting clock deviation of an electric energy meter system as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Electricity consumption information acquisition system clock management method and device
CN110320791A
Electric energy meter clock remote time synchronization management method and system
CN111355552A
Method for governing clock errors through broadcast time synchronization on 09 standard intelligent meter
CN111596253A
Electric quantity monitoring method and device, intelligent electric meter and processor
CN113447820A
Accurate time synchronization system for electricity meters in low-voltage transformer area
CN114374461A