Automatic monitoring and timing method and system for electric energy meter clock
By obtaining multiple standard time source signals and equipment environment data and generating timing strategies, the problem of clock drift of the power meter is solved, and the accuracy and efficiency of power metering are improved.
Patent Information
- Application Number
- CN202510691654.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-07-22
AI Technical Summary
In the prior art, due to external factors and degraded battery performance, the clock drift and error accumulation of electricity meter are affected, which affects the accuracy of electricity metering.
By obtaining multiple standard time source signals, performing real-time verification, generating a calibration list, and generating a calibration strategy based on the equipment environment data, the power meter clock is calibrated.
It improves the accuracy and reliability of time reference, ensures the system time consistency, enhances the accuracy and efficiency of the calibration of the electricity meter, and improves the accuracy of the electricity meter.
Smart Images

Figure CN120353115A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of intelligent electricity meters, and particularly to an automatic monitoring and time calibration method and system for electricity meter clocks. Background Art
[0002] As the core device for power metering and settlement, the accuracy of the electricity meter clock directly affects the reliability of functions such as time-of-use electricity prices (such as peak-valley-flat electricity prices), load control, and event recording. Clock deviation may lead to incorrect electricity bill calculation, data asynchronization, or legal disputes. Therefore, the accuracy of the electricity meter clock is crucial.
[0003] The over-tolerance of the electricity meter clock may be caused by various factors, involving multiple aspects such as hardware, environment, communication, and software algorithms. The clock core relies on a crystal oscillator to provide the reference frequency, but the crystal oscillator is affected by factors such as temperature, aging, and voltage fluctuation, resulting in a decrease in frequency stability and causing the electricity meter clock to drift. When the electricity meter is powered off, the battery is relied on to maintain the clock operation, but the clock will also drift when the battery exceeds its service life or its performance deteriorates. Insufficient anti-interference ability of the circuit, improper component selection, poor power supply filtering, and software and algorithm defects will also cause clock deviation.
[0004] In summary, in the prior art, due to being affected by external factors and the decline of battery performance, etc., there are technical problems that the electricity meter clock drifts and error accumulates, thus affecting the accuracy of power metering. Summary of the Invention
[0005] The purpose of this application is to provide an automatic monitoring and time calibration method and system for electricity meter clocks, so as to solve the technical problems in the prior art that due to being affected by external factors and the decline of battery performance, etc., the electricity meter clock drifts and error accumulates, thus affecting the accuracy of power metering.
[0006] In view of the above problems, this application provides an automatic monitoring and time calibration method and system for electricity meter clocks.
[0007] In a first aspect, the present application provides an automatic monitoring and time calibration method for an electric energy meter clock. The automatic monitoring and time calibration method for the electric energy meter clock is implemented through an automatic monitoring and time calibration system for the electric energy meter clock. Among them, the automatic monitoring and time calibration method for the electric energy meter clock includes: obtaining a plurality of standard time source signals and performing real-time verification to obtain a plurality of standard time sources; monitoring the master station clock to obtain the master station clock status, and performing clock synchronization on the master station clock status based on the plurality of standard time sources to generate a first time calibration list; performing a patrol measurement on the terminal clock through the master station to obtain the terminal clock status. If the terminal clock status is abnormal, a second time calibration list is generated; performing a patrol measurement on the electric energy meter clock through the master station and the terminal device to obtain the electric energy meter clock status. If the electric energy meter clock status is abnormal, a third time calibration list is generated; obtaining device environment data, combining the first time calibration list, the second time calibration list, and the third time calibration list to generate a time calibration strategy, and performing time calibration on the electric energy meter clock.
[0008] Optionally, obtain the plurality of standard time source signals through a built-in receiver, perform real-time verification on the plurality of standard time source signals to obtain a plurality of signal verification results. Among them, the plurality of signal verification results include signal delay verification results and signal quality verification results; traverse the plurality of standard time source signals, randomly extract a first signal verification result and a second signal verification result. Among them, the second signal verification result is any one except the first signal verification result; calculate the time deviation based on the first signal verification result and the second signal verification result; if the time deviation does not exceed a preset threshold, add the first signal verification result and the second signal verification result to the plurality of standard time sources.
[0009] Optionally, obtain the master station server clock monitoring parameters, monitor the master station clock based on the master station server clock monitoring parameters to obtain the master station clock status; perform regular monitoring on the master station clock status according to the plurality of standard time sources to obtain a plurality of clock deviations; calculate the average value of the plurality of clock deviations to obtain the average clock deviation; if the average clock deviation is greater than or equal to a preset tolerance threshold, perform clock synchronization on the master station clock status to generate the first time calibration list.
[0010] Optionally, obtain the terminal clock patrol measurement parameters, perform a patrol measurement on the terminal clock based on the terminal clock patrol measurement parameters to obtain the terminal clock status; the terminal sends a heartbeat frame to the master station according to a preset period, and the master station analyzes the heartbeat frame to obtain a terminal analysis result; judge whether the terminal clock status has an out-of-tolerance based on the terminal analysis result. If the terminal clock status has an out-of-tolerance, a second time calibration list is generated.
[0011] Optionally, obtain a preset inspection task. The master station configures the terminal clock acquisition parameters according to the preset inspection task. Based on the terminal clock acquisition parameters, the terminal device performs a clock survey on the electricity meter clock to obtain the electricity meter clock status. The electricity meter clock status is uploaded to the master station, and based on the master station clock status after clock synchronization, the clock deviation value of the electricity meter clock status is calculated. If the clock deviation value is greater than the preset clock over-tolerance threshold, a third calibration list is generated.
[0012] Optionally, monitor the electricity meter to obtain the electricity meter operation status. If the electricity meter operation status is abnormal, an abnormal handling list is generated. If the electricity meter operation status is normal, based on the master station clock status after clock synchronization, the clock deviation value of the electricity meter clock status is calculated.
[0013] Optionally, obtain the device environment data through multi-source sensors. Obtain the historical calibration data set and determine the calibration priority. Match and associate the device environment data with the devices in the first calibration list, the second calibration list, and the third calibration list to create an association database. Based on the calibration priority and the association database, generate a calibration decision space. Using the minimum number of calibrations and the shortest calibration time as the objective function, perform optimization in the calibration decision space to obtain the calibration strategy.
[0014] In a second aspect, the present application also provides an automatic monitoring and calibration system for an electricity meter clock, which is used to execute the automatic monitoring and calibration method for the electricity meter clock as described in the first aspect. Among them, the automatic monitoring and calibration system for the electricity meter clock includes: a real-time calibration module, which is used to obtain multiple standard time source signals and perform real-time calibration to obtain multiple standard time sources; a first calibration module, which is used to perform clock monitoring on the master station clock to obtain the master station clock status, and synchronize the master station clock status based on the multiple standard time sources to generate a first calibration list; a second calibration module, which is used to perform a clock survey on the terminal clock through the master station to obtain the terminal clock status. If the terminal clock status is abnormal, a second calibration list is generated; a third calibration module, which is used to perform a clock survey on the electricity meter clock through the master station and the terminal device to obtain the electricity meter clock status. If the electricity meter clock status is abnormal, a third calibration list is generated; a strategy generation module, which is used to obtain the device environment data, combine the first calibration list, the second calibration list, and the third calibration list to generate a calibration strategy and calibrate the electricity meter clock.
[0015] One or more technical solutions provided in the present application have at least the following beneficial effects: By obtaining multiple standard time source signals and performing real-time verification, multiple standard time sources are obtained; the master station clock is monitored to obtain the master station clock status, and the master station clock status is clock-synchronized based on the multiple standard time sources to generate a first time calibration list; the master station performs a patrol measurement on the terminal clock to obtain the terminal clock status, and if the terminal clock status is abnormal, a second time calibration list is generated; the master station and the terminal device perform a patrol measurement on the electric energy meter clock to obtain the electric energy meter clock status, and if the electric energy meter clock status is abnormal, a third time calibration list is generated; device environment data is obtained, and a time calibration strategy is generated by combining the first time calibration list, the second time calibration list, and the third time calibration list to calibrate the electric energy meter clock. That is to say, by obtaining and verifying multiple standard time source signals, the accuracy and reliability of the time reference are improved. From the master station to the terminal device and then to the electric energy meter, a hierarchical clock monitoring and synchronization mechanism is adopted to ensure the time consistency of the entire system. By combining device environment data (such as temperature, humidity, etc.) to generate a time calibration strategy, the time calibration is made more accurate and adaptable to environmental changes, improving the accuracy and efficiency of the electric energy meter time calibration, thereby improving the accuracy of electric energy metering.
[0016] The above description is only an overview of the technical solution of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of this application more obvious and understandable, the following specifically describes the embodiments of this application. It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of this application, nor is it used to limit the scope of this application. Other features of this application will become easily understandable through the following description. Brief Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions in this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only exemplary, and for those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0018] Figure 1 It is a schematic flowchart of the method for automatically monitoring and calibrating the electric energy meter clock of this application.
[0019] Figure 2 It is a schematic structural diagram of the system for automatically monitoring and calibrating the electric energy meter clock of this application.
[0020] Description of the reference numerals: Real-time verification module 11, First time calibration module 12, Second time calibration module 13, Third time calibration module 14, Strategy generation module 15. Detailed Description of the Embodiments
[0021] By providing an automatic monitoring and time calibration method and system for the electric energy meter clock, the present application solves the technical problem in the prior art that due to external factors and the decline of battery performance, etc., the clock of the electric energy meter drifts and error accumulation occurs, thus affecting the accuracy of electric energy metering. By acquiring and verifying multiple standard time source signals, the accuracy and reliability of the time reference are improved. From the master station to the terminal device and then to the electric energy meter, a hierarchical clock monitoring and synchronization mechanism is adopted to ensure the time consistency of the entire system. Combining device environment data (such as temperature, humidity, etc.) to generate a time calibration strategy makes the time calibration more accurate and adaptable to environmental changes, improving the accuracy and efficiency of the electric energy meter time calibration, and thus improving the accuracy of electric energy metering.
[0022] Next, the technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. It should be understood that the present application is not limited by the example embodiments described herein. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application. Additionally, it should be noted that for the sake of description, only the parts related to the present application are shown in the accompanying drawings rather than all.
[0023] Embodiment 1, please refer to the attached Figure 1 , the present application provides an automatic monitoring and time calibration method for the electric energy meter clock. Among them, the automatic monitoring and time calibration method for the electric energy meter clock is executed by an automatic monitoring and time calibration system for the electric energy meter clock. The automatic monitoring and time calibration method for the electric energy meter clock specifically includes the following steps: S100: Acquire multiple standard time source signals and perform real-time verification to obtain multiple standard time sources.
[0024] Furthermore, S100 of the present application includes: Acquire the multiple standard time source signals through a built-in receiver, perform real-time verification on the multiple standard time source signals to obtain multiple signal verification results. Among them, the multiple signal verification results include signal delay verification results and signal quality verification results; traverse the multiple standard time source signals, randomly extract a first signal verification result and a second signal verification result. Among them, the second signal verification result is any one except the first signal verification result; calculate the time deviation based on the first signal verification result and the second signal verification result; if the time deviation does not exceed a preset threshold, add the first signal verification result and the second signal verification result to the multiple standard time sources.
[0025] Specifically, multiple standard time source signals are obtained through a built-in receiver (such as a Beidou / GPS receiver). The multiple standard time source signals can come from different clock sources, such as the Beidou or GPS system, or even a local atomic clock. The obtained multiple standard time source signals need to be verified in real time, including signal delay verification and signal quality verification. Signal delay verification checks whether the signal is accurate by calculating the propagation delay of the signal from the source to the receiver. Signal delay affects the accuracy of time synchronization, so it needs to be verified regularly. Signal quality verification evaluates the signal quality by analyzing the stability, strength, and interference of the signal. Low signal quality may lead to time synchronization errors, while high signal quality ensures the accuracy of synchronization.
[0026] From the multiple signal verification results, two results (the first signal verification result and the second signal verification result) are randomly selected to calculate the time deviation, representing the signal verification results from different time sources. By comparing the selected first and second signal verification results, the time deviation between them is calculated. The time deviation refers to the time difference between the standard time signal and the system clock and needs to be kept within a reasonable range, otherwise it will affect the accuracy of operation. If the calculated time deviation is less than the preset threshold (such as 100 ms), it is considered that the time synchronization is normal, and these two signals will be added to the standard time source and continue to be used for subsequent clock synchronization. If the time deviation exceeds the threshold (such as 100 ms or 1 second), different handling measures will be triggered. If the deviation exceeds 100 ms, the monitoring frequency and duration will be increased (such as monitoring once per minute for 15 minutes continuously); if the deviation exceeds 1 second, a fault diagnosis will be carried out, and after the problem is repaired, the signal reception will be restored.
[0027] Through the verification of multiple standard time sources, the reliability of the time source is accurately determined, ensuring the synchronization accuracy of the master station clock and the energy meter clock, and avoiding time errors caused by the failure of a single time source. When a deviation exceeding the threshold is detected, the monitoring frequency and duration are automatically increased, and even a fault diagnosis is carried out to ensure the accuracy of the clock source. Even if a signal source failure occurs, it can be quickly restored to ensure that the clock synchronization is not interrupted.
[0028] S200: Monitor the master station clock to obtain the master station clock status, and perform clock synchronization on the master station clock status based on the multiple standard time sources to generate a first time calibration list.
[0029] Furthermore, S200 of this application includes: Obtain the clock monitoring parameters of the master station server, monitor the master station clock based on the clock monitoring parameters of the master station server to obtain the master station clock status; regularly monitor the master station clock status according to the multiple standard time sources to obtain multiple clock deviations; calculate the average value of the multiple clock deviations to obtain the average clock deviation; if the average clock deviation is greater than or equal to the preset tolerance threshold, perform clock synchronization on the master station clock status to generate the first time calibration list.
[0030] Specifically, obtaining the clock monitoring parameters of the master station server is to monitor various parameters of the master station server clock performance, including parameters such as the clock source synchronization period threshold (such as not greater than 30 minutes), the monitoring period (such as once a week), and the monitoring duration (such as not less than 15 minutes each time). Based on the clock monitoring parameters of the master station server, regularly monitor the master station clock to determine whether the master station clock is stable and whether there is a time deviation. The result of the monitoring is the current status of the master station clock, which can be expressed as deviation, stability, or quality. The monitoring period of the regular monitoring is not greater than 1 week, and the monitoring duration each time is not less than 15 minutes.
[0031] By comparing the differences between multiple standard time sources (such as GPS, Beidou, etc.) and the master station clock, calculate multiple clock deviation values. The generation of multiple deviation values is usually the difference between the master station clock and different standard time sources. Calculate the multiple clock deviations to obtain the average value of the clock deviation, which reflects the synchronization status of the master station clock. Compare the average clock deviation with the preset tolerance threshold. If the average clock deviation is greater than or equal to the tolerance threshold, it indicates that there is already a large error in the master station clock and clock synchronization is required.
[0032] When the average clock deviation exceeds the tolerance threshold, start the clock synchronization process, adjust the master station clock according to the average clock deviation (i.e., the deviation degree) to make it consistent with the standard time source. After the clock synchronization is completed, generate a time calibration list, recording the specific information of the synchronization, including the time when the synchronization occurs, the standard time source used, the calibration parameters involved in the synchronization process, etc. By regularly monitoring and comparing the deviations of multiple standard time sources, accurately evaluate the synchronization status of the master station clock to ensure its consistency with the standard time source.
[0033] S300: The master station performs a patrol measurement on the terminal clock to obtain the terminal clock status. If the terminal clock status is abnormal, generate a second time calibration list.
[0034] Furthermore, S300 of this application includes: Obtain the terminal clock survey parameters, conduct a survey on the terminal clock based on the terminal clock survey parameters, and obtain the terminal clock status; the terminal sends a heartbeat frame to the master station at a preset period, and the master station analyzes the heartbeat frame to obtain the terminal analysis result; based on the terminal analysis result, determine whether the terminal clock status has an out-of-tolerance situation. If the terminal clock status has an out-of-tolerance situation, generate a second time calibration list.
[0035] Specifically, the terminal clock survey parameters are parameter settings used to monitor the terminal clock status, which helps to regularly check whether there are problems with the terminal device's clock and ensure the accuracy of the clock. The terminal clock survey parameters include the survey period (such as once a day), the terminal heartbeat period (such as once every 5 minutes), the clock out-of-tolerance threshold (such as 1 minute), the threshold for the number of consecutive time calibration failures (such as 3 times), and the threshold for the number of consecutive days requiring time calibration (such as 2 days).
[0036] Conduct a clock survey on the terminal clock according to the terminal clock survey parameters to obtain the terminal clock status, that is, the health status of the terminal device's local clock. The terminal regularly sends a heartbeat frame to the master station at a preset period (such as every 5 minutes). The heartbeat frame contains the terminal's status information and the current local timestamp. The main purpose of sending the heartbeat frame is to let the master station know the online status of the terminal device and report the local time. After receiving the heartbeat frame, the master station will analyze the timestamp in it to obtain terminal information, including the terminal ID, the terminal's current time, etc.
[0037] At the same time, record the monitoring times of each terminal. If the monitoring times of a certain terminal exceed the maximum monitoring times threshold, no further survey will be conducted on it, and it may be marked as an abnormal terminal. Determine whether the terminal clock status has an out-of-tolerance situation according to the terminal analysis result, calculate the deviation between the terminal's current time and the master station's time. If the deviation exceeds the preset clock out-of-tolerance threshold (such as 1 minute), it is considered that the terminal clock has an out-of-tolerance situation. At this time, check whether the terminal has been added to the time calibration list. If it has not been added yet, add it to the time calibration list to generate a second time calibration list. According to the information in the second time calibration list, calibrate the terminal. By regularly analyzing the heartbeat frame and calculating the clock deviation, the status of the terminal clock can be monitored in real time, and any out-of-tolerance phenomenon can be detected in time. When it is found that the terminal clock has an out-of-tolerance situation, a time calibration list is automatically generated to guide subsequent time calibration operations and ensure the accuracy and reliability of clock synchronization.
[0038] S400: Conduct a survey on the electricity meter clock through the master station and the terminal device to obtain the electricity meter clock status. If the electricity meter clock status is abnormal, generate a third time calibration list.
[0039] Furthermore, S400 of this application includes: Obtain a preset inspection task. The master station configures the terminal clock acquisition parameters according to the preset inspection task; based on the terminal clock acquisition parameters, the terminal device measures the electric energy meter clock to obtain the electric energy meter clock status; upload the electric energy meter clock status to the master station, and calculate the clock deviation value of the electric energy meter clock status based on the master station clock status after clock synchronization; if the clock deviation value is greater than the preset clock over - tolerance threshold, generate a third calibration list.
[0040] Furthermore, the present application further includes the following steps: Monitor the electric energy meter to obtain the operation status of the electric energy meter; if the operation status of the electric energy meter is abnormal, generate an abnormal handling list; if the operation status of the electric energy meter is not abnormal, calculate the clock deviation value of the electric energy meter clock status based on the master station clock status after clock synchronization.
[0041] Specifically, obtain the task details according to the preset inspection task, including the terminal devices to be measured, the list of electric energy meter identifiers under the devices, the inspection period, and specific acquisition parameters (such as acquisition time, device operation status word, etc.). According to the obtained inspection task, send the relevant configurations to the specified terminal devices, including the inspection period, acquisition parameters, etc. The terminal device collects the electric energy meter clock status within the specified period according to the relevant configurations, that is, configures the terminal clock acquisition parameters.
[0042] The terminal device measures the electric energy meter clock according to the terminal clock acquisition parameters to obtain the electric energy meter clock status, including information such as the time value and operation status of the clock. The terminal device uploads the collected electric energy meter clock status to the master station, and the master station calculates the clock deviation value between the electric energy meter clock and the master station clock based on the clock status uploaded by the electric energy meter and the synchronized clock status of the master station, which reflects the difference between the accuracy of the electric energy meter clock and the master station clock.
[0043] By monitoring the status of the electricity meter, the working conditions of the device are collected in real time, including collecting the working status information of the electricity meter, such as whether there are electrical faults, abnormal current, unstable voltage, etc. If there are abnormalities in the operating status of the electricity meter (such as the presence of a clock fault flag or a low battery voltage flag), an exception handling list is automatically generated. The list contains information such as the identifier of the electricity meter with the exception, the type of exception (such as fault code, status description), etc., which is convenient for subsequent fault troubleshooting and handling. The clock deviation refers to the deviation between the clock of the electricity meter and the master station clock. Different polling frequencies are adopted according to different user types (special transformer and market transaction users, non-special transformer / non-market transaction users) (for example, special transformer and market transaction users have at least one round per day, and non-special transformer / non-market transaction users have at least one round per week), and it is judged whether the clock deviation value is greater than the clock tolerance threshold (such as 1 minute). The clock battery under-voltage means that the master station checks the operating status word 1 of the electricity meter to judge whether the clock battery is under-voltage.
[0044] If the clock deviation value of the electricity meter clock is greater than the preset clock tolerance threshold (such as 1 minute), the master station will generate a third time calibration list, which records the devices with clock deviation exceeding the standard and their relevant information. Specifically, if the clock deviation of the electricity meter exceeds the preset clock tolerance threshold, the master station will generate a time calibration list and record the monitoring results. If the clock battery of the electricity meter is under-voltage, the master station will update the "Detailed Table of Clock Battery Under-voltage of Electricity Meter" and mark it as abnormal. The clock deviation value is the time difference between the electricity meter clock and the master station clock, which is calculated by comparing the standard clock of the master station and the local clock of the electricity meter. If the deviation value exceeds the set threshold, it indicates that the clock of the electricity meter needs to be calibrated.
[0045] The master station will calibrate the electricity meter according to the time calibration list. Different time calibration methods are adopted according to the version of the electricity meter (version 09, version 13, version 20): for the 09-version electricity meter with an absolute clock deviation value between 5 minutes and 30 minutes, segmented broadcast time calibration is adopted. For the 09-version electricity meter with failed segmented time calibration, a scrambled clock state, or an absolute clock deviation value greater than 30 minutes, on-site time calibration is carried out. The 13-version and 20-version electricity meters are directly calibrated point-to-point remotely.
[0046] By real-time monitoring the operating status of the electricity meter, faults or abnormal conditions can be detected in time, ensuring that the device can operate normally and avoiding affecting the electricity data collection due to faults. When an abnormal operating status of the electricity meter is detected, an exception handling list is automatically generated to help the maintenance personnel quickly identify and handle the faults, improving the maintenance efficiency. When the operating status of the electricity meter is normal, a time calibration list is generated according to the determined deviation.
[0047] S500: Obtain the device environment data, combine the first time calibration list, the second time calibration list, and the third time calibration list to generate a time calibration strategy, and calibrate the electricity meter clock.
[0048] Furthermore, the S500 of the present application includes: Obtaining the device environment data through multi-source sensors; obtaining a historical time calibration dataset and determining the time calibration priority; matching and associating the device environment data with the devices in the first time calibration list, the second time calibration list, and the third time calibration list to create an association database; generating a time calibration decision space based on the time calibration priority and the association database; and performing optimization in the time calibration decision space with the minimum number of time calibrations and the shortest time calibration as the objective function to obtain the time calibration strategy.
[0049] Specifically, information about the external environment of the device is obtained from multi-source sensors (such as temperature and humidity sensors, battery voltage monitors, communication delay detection devices, etc.) to obtain device environment data. The battery voltage is monitored through built-in sensors. If the battery voltage is too low, the device may not be able to accurately time, so the battery voltage must be monitored and recorded regularly. The communication delay between the monitoring master station and the terminal is monitored. Long-term high delays may affect the clock synchronization accuracy, and the system needs to record and analyze these data in real time. The temperature and humidity data around the device are collected in real time through environmental sensors. Extreme environmental conditions may cause clock drift or device failures. Record the operating status of the electricity meter or device, whether there are faults, whether it is in a normal working state, maintenance conditions, etc.
[0050] Obtain historical time calibration data, including the historical clock deviation, fault conditions, and repair history of each device, for determining the priority of time calibration. Factors such as device status and clock drift affect the priority. Devices with larger drifts or serious problems are calibrated first. Devices that have been in a faulty state for a long time, have a low battery voltage, or have a large temperature change; these devices need to be time-calibrated in the shortest time, so they are classified as high priority; devices with a certain clock deviation or historical fault records, but a relatively stable environmental state, are classified as medium priority; devices with good status, clock deviation within the normal range, and stable environmental conditions are classified as low priority. Match the obtained device environment data with the devices in the first, second, and third time calibration lists to create an association database that contains the environmental information, clock drift conditions, historical time calibration data, etc. of the devices.
[0051] Based on the time calibration priority of devices and the associated database, a time calibration decision space is generated, which includes the time calibration tasks and priorities of each device. According to the time calibration priority, devices with higher priority are given higher time calibration weights. Devices that need frequent time calibration, have a history of failures, or are significantly affected by environmental factors are given priority. Based on the device status in the associated database, such as battery voltage, temperature and humidity, device health status, historical time calibration situation, etc., the time calibration requirements of each device are comprehensively considered. For high-priority devices, emergency time calibration tasks are generated, and the time calibration cycle is shortened as much as possible. For devices significantly affected by the environment, on-site time calibration or other more stable methods are adopted for synchronization. For medium-priority devices, regular time calibration is arranged, and the time calibration frequency is adjusted according to environmental conditions, and remote time calibration or automatic time calibration mechanisms are used. Low-priority devices can be maintained through long-cycle time calibration tasks.
[0052] In the time calibration decision space, the objective function is optimized with the least number of time calibrations and the shortest time calibration time. Through optimization algorithms (such as greedy algorithms, genetic algorithms, etc.), the optimal time calibration strategy is found to minimize the time calibration cost while ensuring accuracy. The number of time calibrations measures the frequency of time calibration of the entire system. The goal is to minimize the number of time calibrations, and it is determined whether time calibration is needed by evaluating the magnitude of the device clock deviation and the priority of the device. The time calibration time measures the time spent on each time calibration operation, and the goal is to minimize the time required for each time calibration as much as possible. To reduce the time calibration time, it is necessary to consider judging in advance which devices have high priority and need to be time-calibrated as early as possible, so as to efficiently schedule resources.
[0053] In the time calibration decision space, decisions are made based on multiple variables (such as device clock deviation, environmental data, historical time calibration records, etc.). The optimization algorithm will consider how to optimize the time calibration strategy by reducing the number of time calibrations and shortening the time of each time calibration. The goal is to select the optimal time calibration scheme for each device to ensure clock synchronization accuracy and avoid the burden brought by frequent time calibration operations. Gradually select the current optimal time calibration strategy until the global optimal solution is found.
[0054] Specifically, based on device clock deviation, priority, status, etc., a decision space is established, including different time calibration schemes, such as time calibration order, priority, time window, etc. According to the complexity of the problem, a suitable optimization algorithm is selected for optimization, such as a greedy algorithm. For each possible time calibration scheme, the number of time calibrations and the time calibration time are calculated, and they are evaluated according to the set objective function (minimizing the number of time calibrations and the time calibration time). Use the optimization algorithm to explore the time calibration decision space and gradually improve the current time calibration strategy. The algorithm will continuously evaluate the performance of different strategies until the optimal solution is found.
[0055] Calibrate the clock of the electric energy meter according to the clock calibration strategy. After calibration, check the clock status of the device to ensure that the calibration operation is successful and the clock deviation has been controlled within the tolerance range. Record the results of each calibration, including the calibration time, device status, calibration deviation, etc., for subsequent analysis and optimization. The clock calibration strategy is not fixed. Adjust the clock calibration strategy according to the operation status of the device, environmental changes, and calibration results. For example, if some devices frequently require clock calibration, it is necessary to adjust their clock management strategy, increase the monitoring frequency, or optimize the calibration method. By optimizing the clock calibration strategy, minimize the number of calibrations and calibration time, thereby reducing the device downtime and maintenance costs.
[0056] In summary, the automatic monitoring and calibration method for the clock of the electric energy meter provided by this application has the following beneficial effects: By obtaining multiple standard time source signals and performing real-time verification, multiple standard time sources are obtained; monitor the master station clock to obtain the master station clock status, and synchronize the master station clock status based on the multiple standard time sources to generate a first calibration list; the master station performs a patrol measurement on the terminal clock to obtain the terminal clock status. If the terminal clock status is abnormal, a second calibration list is generated; the master station and the terminal device perform a patrol measurement on the electric energy meter clock to obtain the electric energy meter clock status. If the electric energy meter clock status is abnormal, a third calibration list is generated; obtain the device environment data, and combine the first calibration list, the second calibration list, and the third calibration list to generate a calibration strategy to calibrate the electric energy meter clock. That is to say, by obtaining and verifying multiple standard time source signals, the accuracy and reliability of the time reference are improved. From the master station to the terminal device and then to the electric energy meter, a hierarchical clock monitoring and synchronization mechanism is adopted to ensure the time consistency of the entire system. Combining the device environment data (such as temperature, humidity, etc.) to generate a calibration strategy makes the calibration more accurate and adaptable to environmental changes, improving the accuracy and efficiency of the electric energy meter calibration, and thus improving the accuracy of electric energy metering.
[0057] Embodiment 2. Based on the same inventive concept as the automatic monitoring and calibration method for the clock of the electric energy meter in the foregoing Embodiment 1, this application also provides an automatic monitoring and calibration system for the clock of the electric energy meter. Please refer to the appendix Figure 2 , the automatic monitoring and calibration system for the clock of the electric energy meter includes: The real-time verification module 11 is used to obtain multiple standard time source signals, perform real-time verification, and obtain multiple standard time sources; the first time calibration module 12 is used to monitor the master station clock to obtain the master station clock status, and synchronize the master station clock status based on the multiple standard time sources to generate a first time calibration list; the second time calibration module 13 is used to perform a patrol measurement on the terminal clock through the master station to obtain the terminal clock status. If the terminal clock status is abnormal, a second time calibration list is generated; the third time calibration module 14 is used to perform a patrol measurement on the electric energy meter clock through the master station and the terminal device to obtain the electric energy meter clock status. If the electric energy meter clock status is abnormal, a third time calibration list is generated; the policy generation module 15 is used to obtain device environment data, combine the first time calibration list, the second time calibration list, and the third time calibration list to generate a time calibration policy and calibrate the electric energy meter clock.
[0058] Further, the real-time verification module 11 in the automatic monitoring and time calibration system of the electric energy meter clock is further used for: Obtain the multiple standard time source signals through a built-in receiver, perform real-time verification on the multiple standard time source signals to obtain multiple signal verification results, where the multiple signal verification results include signal delay verification results and signal quality verification results; traverse the multiple standard time source signals, randomly extract a first signal verification result and a second signal verification result, where the second signal verification result is any one other than the first signal verification result; calculate the time deviation based on the first signal verification result and the second signal verification result; if the time deviation does not exceed a preset threshold, add the first signal verification result and the second signal verification result to the multiple standard time sources.
[0059] Further, the first time calibration module 12 in the automatic monitoring and time calibration system of the electric energy meter clock is further used for: Obtain the master station server clock monitoring parameters, monitor the master station clock based on the master station server clock monitoring parameters to obtain the master station clock status; regularly monitor the master station clock status according to the multiple standard time sources to obtain multiple clock deviations; calculate the average value of the multiple clock deviations to obtain the clock deviation average value; if the clock deviation average value is greater than or equal to a preset tolerance threshold, synchronize the master station clock status to generate the first time calibration list.
[0060] Further, the second time calibration module 13 in the automatic monitoring and time calibration system of the electric energy meter clock is further used for: Obtain the terminal clock survey parameters, perform a survey on the terminal clock based on the terminal clock survey parameters to obtain the terminal clock status; the terminal sends a heartbeat frame to the master station at a preset period, and the master station parses the heartbeat frame to obtain the terminal parsing result; determine whether the terminal clock status has an out-of-tolerance based on the terminal parsing result, and if the terminal clock status has an out-of-tolerance, generate a second time calibration list.
[0061] Furthermore, the third time calibration module 14 in the automatic monitoring and time calibration system of the electric energy meter clock is further configured to: Obtain a preset inspection task, and the master station configures the terminal clock acquisition parameters according to the preset inspection task; based on the terminal clock acquisition parameters, perform a survey on the electric energy meter clock through the terminal device to obtain the electric energy meter clock status; upload the electric energy meter clock status to the master station, and calculate the clock deviation value of the electric energy meter clock status based on the master station clock status after clock synchronization; if the clock deviation value is greater than the preset clock out-of-tolerance threshold, generate a third time calibration list.
[0062] Furthermore, the third time calibration module 14 in the automatic monitoring and time calibration system of the electric energy meter clock is further configured to: Monitor the electric energy meter to obtain the operation status of the electric energy meter; if the operation status of the electric energy meter is abnormal, generate an abnormal handling list; if the operation status of the electric energy meter is not abnormal, calculate the clock deviation value of the electric energy meter clock status based on the master station clock status after clock synchronization.
[0063] Furthermore, the policy generation module 15 in the automatic monitoring and time calibration system of the electric energy meter clock is further configured to: Obtain the device environment data through multi-source sensors; obtain the historical time calibration data set and determine the time calibration priority; match and associate the device environment data with the devices in the first time calibration list, the second time calibration list, and the third time calibration list to create an association database; generate a time calibration decision space based on the time calibration priority and the association database; perform optimization in the time calibration decision space with the minimum number of time calibrations and the shortest time calibration as the objective function to obtain the time calibration policy.
[0064] The various embodiments in this specification are described in a progressive manner, and the key points of each embodiment are the differences from other embodiments. The foregoing Figure 1 The automatic monitoring and time calibration method and specific examples of the electric energy meter clock in the first embodiment are equally applicable to the automatic monitoring and time calibration system of the electric energy meter clock in this embodiment. Through the foregoing detailed description of the automatic monitoring and time calibration method of the electric energy meter clock, those skilled in the art can clearly know the automatic monitoring and time calibration system of the electric energy meter clock in this embodiment. Therefore, for the sake of simplicity of the specification, it will not be elaborated here.
[0065] The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
[0066] Obviously, for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the present application.
Claims
1. An automatic monitoring and time calibration method for the clock of an electric energy meter, characterized in that, Including: Obtain multiple standard time source signals, perform real-time verification, and obtain multiple standard time sources; Monitor the master station clock to obtain the master station clock status, perform clock synchronization on the master station clock status based on the multiple standard time sources, and generate a first time calibration list; The master station performs a patrol measurement on the terminal clock to obtain the terminal clock status. If the terminal clock status is abnormal, generate a second time calibration list; The master station and the terminal device perform a patrol measurement on the electric energy meter clock to obtain the electric energy meter clock status. If the electric energy meter clock status is abnormal, generate a third time calibration list; Obtain device environment data, combine the first time calibration list, the second time calibration list, and the third time calibration list to generate a time calibration strategy, and perform time calibration on the electric energy meter clock.
2. The automatic monitoring and calibration method of the electric energy meter clock according to claim 1, characterized in that, Obtain multiple standard time source signals, perform real-time verification, and obtain multiple standard time sources, including: Obtain the multiple standard time source signals through a built-in receiver, perform real-time verification on the multiple standard time source signals, and obtain multiple signal verification results. Among them, the multiple signal verification results include signal delay verification results and signal quality verification results; Traverse the multiple standard time source signals, randomly extract a first signal verification result and a second signal verification result, where the second signal verification result is any one other than the first signal verification result; Calculate the time deviation based on the first signal verification result and the second signal verification result; If the time deviation does not exceed a preset threshold, add the first signal verification result and the second signal verification result to the multiple standard time sources.
3. The automatic monitoring and calibration method for the electric energy meter clock according to claim 1, characterized in that Monitor the master station clock to obtain the master station clock status, perform clock synchronization on the master station clock status based on the multiple standard time sources, and generate a first time calibration list, including: Obtain the master station server clock monitoring parameters, monitor the master station clock based on the master station server clock monitoring parameters, and obtain the master station clock status; Regularly monitor the master station clock status according to the multiple standard time sources to obtain multiple clock deviations; Calculate the average value of the multiple clock deviations to obtain the clock deviation average value; If the clock deviation average value is greater than or equal to a preset tolerance threshold, perform clock synchronization on the master station clock status and generate the first time calibration list.
4. The automatic monitoring and calibration method of the electric energy meter clock according to claim 1, characterized in that, The master station performs a patrol measurement on the terminal clock to obtain the terminal clock status. If the terminal clock status is abnormal, generate a second time calibration list, including: Obtain the terminal clock patrol measurement parameters, perform a patrol measurement on the terminal clock based on the terminal clock patrol measurement parameters, and obtain the terminal clock status; The terminal sends a heartbeat frame to the master station at a preset period, and the master station analyzes the heartbeat frame to obtain the terminal analysis result; Based on the terminal analysis result, judge whether the terminal clock status has an out-of-tolerance. If the terminal clock status has an out-of-tolerance, generate a second time calibration list.
5. The automatic monitoring and calibration method for the electric energy meter clock according to claim 1, characterized in that, The master station and the terminal device perform a patrol measurement on the electric energy meter clock to obtain the electric energy meter clock status. If the electric energy meter clock status is abnormal, generate a third time calibration list, including: Obtain a preset inspection task, and the master station configures the terminal clock acquisition parameters according to the preset inspection task; Based on the terminal clock acquisition parameters, the terminal device performs a patrol measurement on the electric energy meter clock to obtain the electric energy meter clock status; Upload the electric energy meter clock status to the master station, and calculate the clock deviation value of the electric energy meter clock status based on the master station clock status after clock synchronization; If the clock deviation value is greater than the preset clock over-tolerance threshold, generate a third time calibration list.
6. The automatic monitoring and calibration method for the electric energy meter clock according to claim 5, characterized in that Uploading the electric energy meter clock status to the master station further includes: Monitor the electric energy meter to obtain the operation status of the electric energy meter; If the operation status of the electric energy meter is abnormal, generate an exception handling list; If the operation status of the electric energy meter is normal, calculate the clock deviation value of the electric energy meter clock status based on the master station clock status after clock synchronization.
7. The automatic monitoring and time calibration method for the electric energy meter clock according to claim 1, characterized in that Obtain device environment data, and combine the first time calibration list, the second time calibration list, and the third time calibration list to generate a time calibration strategy, including: Obtain the device environment data through multi-source sensors; Obtain the historical time calibration data set and determine the time calibration priority; Match and associate the device environment data with the devices in the first time calibration list, the second time calibration list, and the third time calibration list to create an association database; Generate a time calibration decision space based on the time calibration priority and the association database; Taking the least number of time calibrations and the shortest time calibration as the objective function, perform optimization in the time calibration decision space to obtain the time calibration strategy.
8. Automatic monitoring and time calibration system for the electric energy meter clock, characterized in that, Steps for implementing the automatic monitoring and time calibration method of the electric energy meter clock according to any one of claims 1 to 7, the automatic monitoring and time calibration system of the electric energy meter clock includes: A real-time calibration module, configured to obtain multiple standard time source signals and perform real-time calibration to obtain multiple standard time sources; A first time calibration module, configured to perform clock monitoring on the master station clock to obtain the master station clock status, and perform clock synchronization on the master station clock status based on the multiple standard time sources to generate a first time calibration list; A second time calibration module, configured to perform a patrol measurement on the terminal clock through the master station to obtain the terminal clock status, and if the terminal clock status is abnormal, generate a second time calibration list; A third time calibration module, configured to perform a patrol measurement on the electric energy meter clock through the master station and the terminal device to obtain the electric energy meter clock status, and if the electric energy meter clock status is abnormal, generate a third time calibration list; A strategy generation module, configured to obtain device environment data, combine the first time calibration list, the second time calibration list, and the third time calibration list to generate a time calibration strategy and perform time calibration on the electric energy meter clock.