Electric energy meter rapid timing method based on Beidou and power line carrier communication

The dual-channel time synchronization method of Beidou and power line carrier communication solves the problem of slow time synchronization of electricity meters, realizes fast and stable clock recovery of electricity meters, and ensures the accuracy of electricity bill calculation.

CN120811529APending Publication Date: 2025-10-17CHINA SOUTHERN POWER GRID COMPANY

Patent Information

Application Number
CN202510867621.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Existing methods for calibrating electricity meters are slow and difficult to quickly restore the clock after a power outage, resulting in rate errors and inaccurate billing.

Method used

A dual-channel time calibration method based on Beidou and power line carrier communication is adopted. The STA module monitors the carrier network and Beidou module to obtain the standard clock, corrects the perpetual calendar clock of the electricity meter, and broadcasts the standard time message in the carrier network to achieve rapid time calibration of electricity meters in the entire area.

Benefits of technology

The speed and stability of electricity meter time calibration are improved, the calibration error is reduced, and the accuracy of electricity fee calculation is ensured. Time calibration for the entire area can be completed without waiting for the carrier communication network to be established.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120811529A_ABST
    Figure CN120811529A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of information communication, and relates to an electric energy meter rapid timing method based on Beidou and power line carrier communication, which comprises the following steps: S10, an STA module is electrified, started and initialized; s20, the STA module monitors a standard time broadcast message in the carrier network and regularly requests a clock from a Beidou module equipped on the STA module; s30, after the STA module monitors a standard time broadcast message from the carrier network or obtains the standard time from a Beidou module equipped with the STA module, comparing the standard time with a perpetual calendar clock of the STA module, and if the perpetual calendar clock of the STA module is out of tolerance, correcting the perpetual calendar clock of the STA module by using the standard time; s40, the STA module regularly checks and updates the electric meter clock; and S50, the STA module periodically broadcasts the standard time message in the carrier network. The method is simple in process and convenient to operate, and the timing speed is increased while stable timing of the electric energy meter is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of information communication technology, and particularly relates to a power meter fast time correction method based on Beidou and power line carrier communication. BACKGROUND

[0002] Electricity charges are generally calculated according to different time-based rates and the amount of electricity used in the time period. A clock unit and an electric energy metering unit are designed in the power meter to realize the time-based rate electricity charge calculation. The power meter has a battery, which is used to supply power when power is cut off, so that the clock of the power meter does not lose time. However, when the power meter is operated for a long time or in a harsh environment, the battery of the power meter may be attenuated or damaged. If the battery of the power meter is attenuated or damaged, the clock of the power meter loses time when the power supply in the power distribution area is cut off, which leads to the error of the rate of electric energy charging after the power supply is restored and the inaccuracy of the charging.

[0003] The existing time correction method includes top-down time service and installation of a satellite time service module on the power meter. The power meter is corrected from the satellite time service module. The top-down time service is from the master station to the terminal in the power distribution area, and then the terminal in the power distribution area corrects the power meter through the local communication network. This method needs the communication module on the power meter to be successfully networked after the power is restored, and then the power meter can be corrected. In general, the communication module needs several minutes to several tens of minutes to be successfully networked after the power is restored, so the correction speed of this method is slow. During the time of network formation of the communication module, if the clock of the power meter has lost time, the rate may be disordered, which leads to the error of the electricity charge in the time period. One of the disadvantages of the installation of the satellite time service module on the power meter and the correction of the power meter from the satellite time service module is that after the power meter obtains the satellite clock, it can only correct the clock of the power meter itself and cannot correct the clock of other power meters in the network. Another disadvantage is that most power meters are installed in indoor distribution boxes, which cannot obtain satellite signals and cannot be corrected. The patent with the publication number CN105824233A provides a Beidou / GPS-based active time service module and a power meter active time service method. The active time service module includes an active time service unit and a carrier unit / micro-power wireless unit. The active time service unit includes an MCU processor, a power supply circuit, an interface circuit, and a Beidou / GPS time service signal transceiver circuit. The power meter active time service method is to install the active time service module on the power meter to correct the clock based on a unified clock source. The active time service module actively or passively adjusts the clock and synchronizes the clock of the power meter in the clock correction mode of timing or responding to the command. The unified clock source is the time service signal published by Beidou / GPS. This patent application corrects the clock by installing the satellite time service module on the power meter, which has the same disadvantages as the existing technology that the clock may not be corrected.

[0004] Therefore, how to provide a power meter time correction method capable of stable time correction and fast time correction speed is a problem to be solved by the technical personnel in the technical field. SUMMARY

[0005] In view of the deficiencies of the prior art, the purpose of the present application is to provide a power meter fast time correction method based on Beidou and power line carrier communication, so as to solve the problem of slow time correction speed of the power meter in the prior art, and even the problem of inability to correct time.

[0006] In order to solve the above technical problems, the present application adopts the following technical solutions:

[0007] The present application provides a power meter fast time correction method based on Beidou and power line carrier communication, comprising the following steps:

[0008] S10, the STA module is powered on and initialized;

[0009] S20, the STA module listens to the standard time broadcast message in the carrier network, and periodically requests the clock from the Beidou module equipped in the STA module;

[0010] S30, after the STA module listens to the standard time broadcast message in the carrier network or obtains the standard time from the Beidou module equipped in the STA module, the standard time is compared with the perpetual calendar clock of the STA module, and if the perpetual calendar clock of the STA module is out of tolerance, the perpetual calendar clock of the STA module is corrected by the standard time;

[0011] S40, the STA module periodically checks and updates the power meter clock;

[0012] S50, the STA module periodically broadcasts the standard time message in the carrier network.

[0013] Further, in the step S10, the standard time flag bit SST, the standard time shelf life timer Timer1, the power meter time correction timer Timer2, the broadcast timer Timer3 are initialized, and the standard time shelf life K1, the power meter time correction period K2, the standard time broadcast period K3, the module clock error threshold T2, the power meter clock error threshold T3, and the Beidou clock request period C2 are set.

[0014] Further, the specific steps of the step S20 are as follows:

[0015] S201, after the STA module is powered on, the standard time flag bit SST is set to 0, indicating that the STA module has not obtained the standard clock temporarily, the standard time shelf life timer Timer1 is cleared and starts timing, and the standard time shelf life is configured as K1, so that the STA module is periodically corrected with the standard time;

[0016] S202, the STA module continuously listens to the standard time broadcast message in the carrier network, and requests the standard clock from the Beidou module equipped in the STA module every period C2.

[0017] Further, the specific steps of the step S30 are as follows:

[0018] S301, if the STA module receives the standard time message broadcast by other STA module, the standard time field is taken out from the message and compared with the own calendar clock, if the error exceeds a certain threshold T2, the own calendar clock is replaced with the received standard clock, and the standard time flag bit SST is set to 1 to indicate that the STA module has acquired the standard clock, and the standard time shelf life timer Timer1 is cleared and restarted;

[0019] S302, if the STA module acquires the standard clock from the Beidou module, the standard clock is compared with the own calendar clock, if the error exceeds a certain threshold T2, the own calendar clock is replaced with the received standard clock, and the standard time flag bit SST is set to 1 to indicate that the STA module has acquired the standard clock, and the standard time shelf life timer Timer1 is cleared and restarted;

[0020] S303, the STA module polls the standard time shelf life timer Timer1, if the count value of Timer1 is greater than or equal to the set threshold K1, the standard time flag bit SST is set to 0, indicating that the STA module cannot be used for electric energy meter time correction and broadcasting standard time to other STA modules in the carrier network.

[0021] Further, in the step S40, the STA sets the electric energy meter time correction period K2 to periodically read the electric energy clock and compare it with the own calendar, if the electric energy meter clock is out of tolerance, the own calendar clock is used to correct the electric energy meter clock.

[0022] Further, the specific steps of the step S40 are as follows:

[0023] S401, after the STA module is powered on, the electric energy meter time correction timer Timer2 is cleared and restarted, and the electric energy meter time correction period K2 is configured;

[0024] S402, the STA module delays for a period of time T2;

[0025] S403, the STA module detects whether the electric energy meter time correction timer Timer2 exceeds the configured time correction period K2, if the time correction period has not arrived, it returns to the step S402 to continue waiting, if the time correction period has arrived, it executes the step S404;

[0026] S404, the STA module detects whether the standard time flag SST is 1, if 1, it means that the STA module calendar clock is within the shelf life, can be used for electric energy meter time correction, executes step S405, if the standard time flag SST is 0, it means that the STA module fails to correct the standard time, or the calendar clock has been over the shelf life, can not be used for electric energy meter time correction, returns to the step S402 to continue waiting;

[0027] S405, the STA module reads the electric meter clock from the electric energy meter, and compares with the own calendar clock, if the difference between the two exceeds the electric meter clock error threshold T3, the STA module calendar clock is used to correct the electric meter; if the difference between the two does not exceed the threshold T3, it is considered that the electric meter does not need to be corrected, after completing the time correction operation, the electric energy meter time correction timer Timer2 is cleared and restarted, and returns to the step S402 to continue waiting.

[0028] Further, in the step S50, after the STA module obtains the standard time from the standard time broadcast message of the carrier network or the Beidou module equipped by itself, the standard time broadcast period K3 is regularly organized to broadcast the standard time broadcast message to the carrier network to diffuse the standard time clock

[0029] Further, the step S50 is as follows:

[0030] S501, after the STA module is powered on, the standard time broadcast timer Timer3 is cleared and restarted, and the standard time broadcast period K3 is set;

[0031] S502, the STA module delays for a period of time T3;

[0032] S503, the STA module detects whether the standard time broadcast timer Timer3 exceeds the configured meter correction period K3, if the broadcast period has not arrived, it returns to the step S502 to continue waiting, if the meter correction period has arrived, it executes step S504;

[0033] S504, the STA module detects whether the standard time flag SST is 1, if 1, it means that the STA module calendar clock is within the shelf life, can be used for broadcasting the standard time clock, executes step 505; if the standard time flag SST is 0, it means that the STA module fails to correct the standard time, or the calendar clock has been over the shelf life, can not be used for broadcasting the standard time clock, returns to the step S502 to continue waiting;

[0034] S505, the STA module pre-organizes a standard time broadcast message frame format, and adopts a CSMA mechanism to request a carrier channel for broadcasting a standard time according to a wideband carrier standard, if the CSMA channel request is successful, step S506 is executed; if the CSMA channel request fails, the present operation is abandoned, and the step S502 is returned to continue waiting;

[0035] S506, the STA module fills a self-perpetual calendar clock into the pre-organized standard time broadcast message, and modifies a frame check and related fields to form a formal standard time message, the standard time broadcast message is broadcasted through a carrier channel, then a standard time broadcast timer Timer3 is cleared and restarted, and the step S502 is returned to continue waiting.

[0036] Compared with the prior art, the method for quickly calibrating the electric energy meter based on the Beidou and power line carrier communication has at least the following beneficial effects:

[0037] The prior calibration method includes top-down time service and a satellite time service module installed on the electric energy meter, the electric energy meter is calibrated from the satellite time service module, and the calibration speed is slow, or the electric energy meter cannot be calibrated due to difficulty in obtaining a satellite signal. The process of the method is simple, the operation is convenient, the standard time is obtained through a carrier network and a Beidou module double channel, after the STA module obtains the standard time, the standard time message is broadcasted in the carrier communication network, as long as any electric meter in the power distribution area obtains the Beidou clock, the standard Beidou clock is broadcasted and published in the distribution area through the power line carrier, the calibration of the electric energy meter in the entire distribution area is realized, the calibration speed is effectively improved, and the calibration error is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the scheme of the present application, the drawings needed in the following embodiment description will be simply introduced, and obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the drawings.

[0039] Fig. 1 A method for quickly calibrating an electric energy meter based on a Beidou and power line carrier communication provided by the embodiment of the present application is shown in a total flowchart.

[0040] Fig. 2A STA module time correction flow chart in a fast time correction method for an electric energy meter based on a Beidou and power line carrier communication is provided for an embodiment of the present application.

[0041] Fig. 3 A standard time timing table correction flow chart according to a fast time correction method for an electric energy meter based on a Beidou and power line carrier communication is provided for an embodiment of the present application.

[0042] Fig. 4 A standard time message broadcast propagation flow chart in a fast time correction method for an electric energy meter based on a Beidou and power line carrier communication is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to facilitate the understanding of the present application, the present application will be described in more detail below with reference to the relevant drawings. The preferred embodiments of the present application are shown in the drawings. However, the present application can be implemented in many different forms, and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used in the specification of the present application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0045] The present application provides a fast time correction method for an electric energy meter based on a Beidou and power line carrier communication, which is applied to an intelligent electric energy meter time correction process in a power area, and includes the following steps:

[0046] S10, the STA module is powered on and initialized; S20, the STA module listens to the standard time broadcast message in the carrier network, and periodically requests the clock from the Beidou module equipped therein; S30, after the STA module listens to the standard time broadcast message in the carrier network or obtains the standard time from the Beidou module equipped therein, the standard time is compared with the calendar clock of the STA module, and if the calendar clock of the STA module is out of tolerance, the calendar clock of the STA module is corrected by the standard time; S40, the STA module periodically checks and updates the electric meter clock; S50, the STA module periodically broadcasts the standard time message in the carrier network.

[0047] The present application has a simple flow and convenient operation, and can ensure stable time correction of the electric energy meter while improving the time correction speed.

[0048] In order to make the person skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings.

[0049] The application provides a power meter fast time correction method based on Beidou and power line carrier communication, which is applied to a power district intelligent power meter time correction process. Figs. 1 to 4 In the embodiment, the power meter fast time correction method based on Beidou and power line carrier communication comprises the following steps.

[0050] S10, the STA module (STAtion module, a slave module in a broadband carrier network, having a carrier communication function and a calendar function, in the embodiment, the STA module mentioned in addition to the carrier communication function is also equipped with a Beidou chip, and has a Beidou positioning and time service function.) is powered on and initialized, and a standard time flag bit SST, a standard time shelf life timer Timer1, a power meter time correction timer Timer2, a broadcast timer Timer3 are initialized, and a standard time shelf life K1, a power meter time correction period K2, a standard time broadcast period K3, a module clock error threshold T2, a power meter clock error threshold T3 and a Beidou clock request period C2 are set.

[0051] Specifically, in the embodiment, the standard time shelf life K1 is set to 10 minutes, the power meter time correction period K2 is set to 12 hours, the standard time broadcast period K3 is set to 20 minutes, the module clock error threshold T2 is set to 0.5 seconds, the power meter clock error threshold T3 is set to 3 seconds, and the Beidou clock request period C2 is set to 5 minutes; in other embodiments, the standard time shelf life K1, the power meter time correction period K2, the standard time broadcast period K3, the module clock error threshold T2, the power meter clock error threshold T3 and the Beidou clock request period C2 can also be set to other values according to actual conditions.

[0052] S20, the STA module listens to the standard time broadcast message in the carrier network to detect whether other STAs in the network have acquired the standard clock, and the STA module periodically requests the clock from the Beidou module equipped therein.

[0053] Specifically, in the embodiment, the specific steps of step S20 are as follows:

[0054] S201, after the STA module is powered on, the standard time flag bit SST is set to 0, indicating that the STA module has not acquired the standard clock temporarily, the standard time shelf life timer Timer1 is cleared and starts timing, and the standard time shelf life is set to K1; the purpose of setting the standard time shelf life is to periodically calibrate the STA module with the standard time; the crystal oscillator of the STA module has a certain frequency deviation error, and needs to be calibrated with the standard time to correct the error; if the standard time shelf life is exceeded and the standard time cannot be calibrated, it is considered that the calendar clock of the STA module may have an error and cannot be used for power meter time correction and standard time broadcast to other STA modules in the carrier network.

[0055] S202, the STA module continuously monitors the standard time broadcast message in the carrier network, and requests the standard time from the Beidou module equipped in the STA module every 5 minutes.

[0056] S30, after the STA module monitors the standard time broadcast message in the carrier network or obtains the standard time from the Beidou module equipped in the STA module, the standard time is compared with the calendar clock of the STA module. If the calendar clock of the STA module is out of tolerance, the calendar clock of the STA module is corrected by the standard time.

[0057] Specifically, in the embodiment, the specific steps of step S30 are as follows:

[0058] S301, if the STA module receives the standard time correction message broadcast by other STA modules, the standard time field is immediately taken out from the message and compared with the calendar clock of the STA module. If the error exceeds 0.5 seconds, the calendar clock of the STA module is replaced by the received standard clock, the standard time flag SST is set to 1 to indicate that the STA module has obtained the standard clock, and the standard time shelf life timer Timer1 is cleared and restarted.

[0059] S302, if the STA module obtains the standard clock from the Beidou module, the standard clock is immediately compared with the calendar clock of the STA module. If the error exceeds 0.5 seconds, the calendar clock of the STA module is replaced by the received standard clock, the standard time flag SST is set to 1 to indicate that the STA module has obtained the standard clock, and the standard time shelf life timer Timer1 is cleared and restarted.

[0060] S303, the STA module polls the standard time shelf life timer Timer1. If the count value of Timer1 is greater than or equal to the set threshold of 10 minutes, the standard time flag SST is set to 0, indicating that the STA module has not been corrected by the standard time for a long time, the calendar clock of the STA module has expired and needs to be re-calibrated, and cannot be used for electric energy meter correction and broadcasting standard time to other STA modules in the carrier network.

[0061] S40, the STA sets the electric energy meter correction period to 12 hours to periodically read the electric energy clock and compare it with the calendar clock. If the electric energy meter clock is out of tolerance, the electric energy meter clock is corrected by the calendar clock of the STA.

[0062] Specifically, in the embodiment, the specific steps of step S40 are as follows:

[0063] S401, after the STA module is powered on, the electric energy meter correction timer Timer2 is cleared and restarted, and the electric energy meter correction period is configured to 12 hours.

[0064] S402, the STA module delays waiting for 0.5 seconds.

[0065] S403, the STA module detects whether the power meter time calibration timer Timer2 exceeds the configured meter calibration period of 12 hours, if the meter calibration period has not arrived, it goes to step S402 to continue waiting, if the meter calibration period has arrived, it goes to the following step S404.

[0066] S404, the STA module detects whether the standard time flag bit SST is 1, if it is 1, it means that the module's calendar clock is within the warranty period and can be used for power meter time calibration, it goes to the following step S405, if the standard time flag bit SST is 0, it means that the module fails to calibrate with the standard, or the calendar clock has exceeded the warranty period and cannot be used for power meter time calibration, it goes to the above step S402 to continue waiting.

[0067] S405, the STA module reads the meter clock from the power meter and compares it with its own calendar clock, if the difference between the two exceeds the meter clock error of 3 seconds, the module's calendar clock is used to calibrate the meter; otherwise, if the difference between the two does not exceed 3 seconds, it is considered that the meter does not need to be calibrated, after completing the calibration operation, the power meter time calibration timer Timer2 is cleared and restarted, and it goes back to step S402.

[0068] S50, after the STA obtains the standard time from the standard time broadcast message of the carrier network or the Beidou module equipped by itself, the standard time broadcast organizes the standard time broadcast message periodically every 20 minutes, and broadcasts the standard time to the carrier network to diffuse the standard time clock.

[0069] Specifically, in the embodiment, the specific steps of step S50 are as follows:

[0070] S501, after the STA module is powered on, the standard time broadcast timer Timer3 is cleared and restarted, and the standard time broadcast period is set to 20 minutes.

[0071] S502, the STA module delays waiting for 3 seconds.

[0072] S503, the STA module detects whether the standard time broadcast timer Timer3 exceeds the configured meter calibration period of 20 minutes, if the broadcast period has not arrived, it goes to step S502 to continue waiting, if the meter calibration period has arrived, it goes to the following step S504.

[0073] S504, the STA module detects whether the standard time flag SST is 1, if yes, it means that the calendar clock of the STA module is within the warranty period and can be used to broadcast the standard time, then go to step S505, otherwise, if the standard time flag SST is 0, it means that the STA module fails to synchronize with the standard time or the calendar clock has been out of the warranty period and cannot be used to broadcast the standard time, then go to step S502 to continue waiting.

[0074] S505, the STA module preorganizes the frame format of the standard time broadcast message and requests the carrier channel for broadcasting the standard time by using the CSMA (Carrier Sense Multiple Access) mechanism according to the broadband carrier standard, the CSMA is a MAC (Media Access Control) protocol used to allow multiple devices to share the same communication channel, its working principle is that any device connected to the medium must listen to the medium before sending a frame, and can only send when confirming that the medium is idle, if the CSMA request for the channel is successful, then go to step S506, otherwise, if the CSMA request for the channel fails, then give up this operation and go to step S502 to continue waiting.

[0075] S506, the STA module fills the calendar clock into the standard time broadcast message preorganized in the foregoing step and modifies the frame check and other related fields to form the formal standard time message, and then broadcasts and sends the standard time message through the carrier channel, and then resets the standard time broadcast timer Timer3 and goes to step S502 to continue execution.

[0076] Compared with the prior art, the method for quickly synchronizing the electric energy meter based on the Beidou and power line carrier communication has the following advantages: the prior art includes top-down time synchronization and installation of a satellite time synchronization module on the electric energy meter, and the electric energy meter synchronizes the time from the satellite time synchronization module, and the time synchronization speed is slow, or the satellite signal cannot be acquired and the time cannot be synchronized. The process of the method is simple and the operation is convenient, the standard time is acquired through the carrier network and the Beidou module, after the STA module acquires the standard time, the standard time message is broadcast and sent in the carrier communication network, as long as any electric energy meter in the power distribution area acquires the Beidou time, the standard Beidou time is broadcast and sent in the power distribution area through the power line carrier, and the time synchronization of the electric energy meters in the entire power distribution area is realized; in addition, the standard time message is sent in the carrier communication network in the form of broadcast, the time synchronization of the entire power distribution area can be completed without completing the networking of the carrier communication network, and the time synchronization speed is effectively improved; when the STA broadcasts and sends the standard time message, the message is preorganized first, then the channel is requested by competition through the CSMA, the calendar clock is filled into the standard time message frame after the channel is successfully requested, and the standard time message is immediately broadcast and sent, the time difference between the actual sending time of the message and the standard time filled when the message is framed caused by the back-off waiting time required by the CSMA request for the channel is reduced, and the time synchronization error is reduced.

[0077] Obviously, the above-described embodiments are only preferred embodiments of the present application, but not all the embodiments of the present application. The preferred embodiments of the present application are shown in the drawings, but do not limit the patent scope of the present application. The present application can be implemented in many different forms, and conversely, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing specific embodiments, or equivalently replace some of the technical features. Any equivalent structure made by using the content of the present application specification and drawings, directly or indirectly applied to other related technical fields, is also within the patent protection scope of the present application.

Claims

1. A method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication, characterized in that: The following steps are involved: S10, STA module is powered on and initialized; S20, STA module monitors the standard time broadcast message in the carrier network and regularly requests the clock from the Beidou module equipped with it; S30: After the STA module receives the standard time broadcast message from the carrier network or obtains the standard time from its own Beidou module, it compares the standard time with its own perpetual calendar clock. If the perpetual calendar clock of the STA module is out of tolerance, it uses the standard time to correct its own perpetual calendar clock. S40, STA module regularly checks and updates the meter clock; S50, STA module regularly broadcasts standard time messages in the carrier network.

2. According to the method for fast time calibration of an electric energy meter based on Beidou and power line carrier communication in claim 1, in step S10, the standard time flag SST, the standard time shelf life timer Timer1, the electric energy meter time calibration timer Timer2, and the broadcast timer Timer3 are initialized, and the standard time shelf life K1, the electric energy meter time calibration period K2, the standard time broadcast period K3, the module clock error threshold T2, the meter clock error threshold T3, and the Beidou clock request period C2 are set.

3. The method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication according to claim 1 is characterized in that: The specific steps of step S20 are as follows: S201: After the STA module is powered on, the standard time flag SST is set to 0, indicating that the STA module has not yet obtained the standard clock. The standard time shelf life timer Timer1 is cleared and starts timing. At the same time, the standard time shelf life is configured as K1, so that the STA module regularly calibrates with the standard time. S202 : The STA module continuously monitors the standard time broadcast message in the carrier network, and requests the standard clock from the Beidou module equipped with the STA module every period C2.

4. The method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication according to claim 1, characterized in that: The specific steps of step S30 are as follows: S301: If the STA module receives a standard time calibration message broadcast by another STA module, it extracts the standard time field from the message and compares it with its own perpetual calendar clock. If the error exceeds a certain threshold T2, it replaces its own perpetual calendar clock with the received standard clock, sets the standard time flag SST to 1 to indicate that the STA module has obtained the standard clock, and resets the standard time shelf life timer Timer1 to restart timing. S302: If the STA module obtains the standard clock from the Beidou module, it compares the standard clock with its own perpetual calendar clock. If the error exceeds a certain threshold T2, it replaces its own perpetual calendar clock with the received standard clock, sets the standard time flag SST to 1 to indicate that the STA module has obtained the standard clock, and resets the standard time shelf life timer Timer1 to restart timing. S303. The STA module polls the standard time shelf life timer Timer1. If the count value of Timer1 is greater than or equal to the set threshold K1, the standard time flag SST is set to 0, indicating that the STA module cannot be used for energy meter time calibration and broadcast standard time to other STA modules in the carrier network.

5. The method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication according to claim 2 is characterized in that: In step S40, the electric energy meter calibration period K2 set by STA regularly reads the electric energy clock and compares it with its own perpetual calendar. If the electric energy meter clock is out of tolerance, the electric energy meter clock is corrected using its own perpetual calendar clock.

6. The method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication according to claim 5 is characterized in that: The specific steps of step S40 are as follows: S401. After the STA module is powered on, the energy meter calibration timer Timer2 is reset and restarted, and the energy meter calibration cycle K2 is configured. S402, the STA module delays and waits for a period of time T2; S403, the STA module detects whether the energy meter calibration timer Timer2 exceeds the configured calibration period K2. If the calibration period has not expired, the module returns to step S402 and continues to wait. If the calibration period has expired, the module executes step S404. S404: The STA module checks whether the standard time flag SST is 1. If it is 1, it indicates that the perpetual calendar clock of the STA module is within the warranty period and can be used for calibrating the electric energy meter, and step S405 is executed. If the standard time flag SST is 0, it indicates that the STA module has failed to calibrate with the standard time, or the perpetual calendar clock has expired and cannot be used for calibrating the electric energy meter, and the process returns to step S402 and continues waiting. S405. The STA module reads the meter clock from the electricity meter and compares it with its own perpetual calendar clock. If the difference between the two exceeds the meter clock error threshold T3, the module perpetual calendar clock is used to calibrate the meter. If the difference between the two does not exceed the threshold T3, it is considered that the meter does not need to be calibrated. After the calibration operation is completed, the meter calibration timer Timer2 is reset and restarted, and the module returns to step S402 to continue waiting.

7. The method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication according to claim 2, characterized in that: In step S50, after the STA module obtains the standard time from the carrier network's standard time broadcast message or the Beidou module equipped by itself, it regularly organizes the standard time broadcast message in the standard time broadcast period K3 to broadcast the standard time to the carrier network to spread the standard clock.

8. The method for rapid time calibration of electric energy meters based on Beidou and power line carrier communication according to claim 7, characterized in that: The specific steps of step S50 are as follows: S501, after the STA module is powered on, the standard time broadcast timer Timer3 is reset and restarted, and the standard time broadcast cycle K3 is set; S502, the STA module delays and waits for a period of time T3; S503, the STA module detects whether the standard broadcast timer Timer3 exceeds the configured meter calibration period K3. If the broadcast period has not expired, the module returns to step S502 and continues to wait. If the meter calibration period has expired, the module executes step S504. S504: The STA module checks whether the standard time flag SST is 1. If it is 1, it indicates that the perpetual calendar clock of the STA module is within the warranty period and can be used to broadcast the standard clock, and the process proceeds to step 505. If the standard time flag SST is 0, it indicates that the STA module has failed to calibrate with the standard time, or the perpetual calendar clock has expired and cannot be used to broadcast the standard clock, and the process returns to step S502 and continues waiting. S505: The STA module pre-organizes the standard broadcast message frame format and uses the CSMA mechanism to request a carrier channel for broadcast transmission according to the broadband carrier standard. If the CSMA channel request is successful, step S506 is executed; if the CSMA channel request fails, the operation is abandoned and the process returns to step S502 to continue waiting. S506. The STA module fills its own perpetual calendar clock into the pre-organized standard time broadcast message, and modifies the frame check and other related fields to form a formal standard time message, which is broadcasted through the carrier channel. Then, the standard time broadcast timer Timer3 is reset and restarted, and the module returns to step S502 to continue waiting.

Citation Information

Patent Citations

  • Initiative time service module based on Beidou / GPS and ammeter initiative time service method

    CN105824233A

Cited By

  • A time correction method and system based on Beidou-cco fusion

    CN122496142A