CN116755319B - Electric energy meter clock system, control method and device, computer equipment and medium - Google Patents

Electric energy meter clock system, control method and device, computer equipment and medium Download PDF

Info

Publication number
CN116755319B
CN116755319B CN202311040276.8A CN202311040276A CN116755319B CN 116755319 B CN116755319 B CN 116755319B CN 202311040276 A CN202311040276 A CN 202311040276A CN 116755319 B CN116755319 B CN 116755319B
Authority
CN
China
Prior art keywords
time service
service code
signal
amplitude information
energy meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311040276.8A
Other languages
Chinese (zh)
Other versions
CN116755319A (en
Inventor
刁瑞朋
高田力
房孝俊
刘兆栋
高生宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Dingxin Communication Power Engineering Co ltd
Qingdao Topscomm Communication Co Ltd
Original Assignee
Qingdao Dingxin Communication Power Engineering Co ltd
Qingdao Topscomm Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Dingxin Communication Power Engineering Co ltd, Qingdao Topscomm Communication Co Ltd filed Critical Qingdao Dingxin Communication Power Engineering Co ltd
Priority to CN202311040276.8A priority Critical patent/CN116755319B/en
Publication of CN116755319A publication Critical patent/CN116755319A/en
Application granted granted Critical
Publication of CN116755319B publication Critical patent/CN116755319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The application relates to the field of electric energy meter control, and discloses an electric energy meter clock system, a control method, a control device, computer equipment and a medium, wherein the electric energy meter clock system comprises the following components: a time service code receiving circuit and a controller; the time service code receiving circuit is connected with the controller and is used for acquiring time service code signals and sending the time service code signals to the controller; the controller is used for carrying out analog-to-digital conversion on the time service code signal to obtain a sampling signal, and carrying out discrete Fourier transformation on the sampling signal to obtain amplitude information corresponding to the sampling signal, so that a clock signal is generated according to the amplitude information. Therefore, the technical scheme provided by the application separates the time service code signal from the noise signal by performing discrete Fourier change on the sampling signal of the time service code signal, prevents the noise signal from interfering the time service code signal, and improves the precision of the clock signal of the intelligent electric energy meter.

Description

Electric energy meter clock system, control method and device, computer equipment and medium
Technical Field
The present application relates to the field of electric energy meter control, and in particular, to an electric energy meter clock system, a control method, an apparatus, a computer device, and a medium.
Background
The electric energy meter is an instrument for measuring electric power consumption, is used for measuring and recording the electric energy use condition, and is an important basis for calculating electric charge. Therefore, it is important to ensure the accuracy of the electric energy meter counting, and if the electric energy meter counting is in error, serious economic loss may be caused.
In the intelligent electric energy meter, a clock system is an indispensable component, and the accuracy of an output signal of the clock system has important significance for the stable operation of the intelligent electric energy meter. The clock system of the intelligent electric energy meter mainly generates a reference clock signal through a crystal oscillator circuit, and the reference clock signal is calibrated through a BPC low-frequency time code timing system so as to acquire a more accurate clock signal. Fig. 1 is a schematic diagram of an intelligent electric energy meter according to an embodiment of the present application, as shown in fig. 1, the intelligent electric energy meter includes a controller 2 (usually a micro control unit (Microcontroller Unit, MCU)), and a corresponding power supply circuit, a low-frequency time code receiving circuit 1, a storage circuit, and the like, where in a working process, the low-frequency time code receiving circuit is configured to receive and parse a BPC low-frequency time code issued by a national time service center, so as to calibrate a reference clock signal of a clock circuit 3 according to time information obtained by parsing.
However, since the BPC low-frequency time code timing system transmits time information with 68.5kHz as carrier frequency, the anti-interference capability is poor, and when strong noise interference exists, the clock system cannot acquire the time information, so that the reference clock signal cannot be calibrated, and the accuracy of the clock signal of the intelligent electric energy meter is affected.
Therefore, how to provide a more accurate clock system of the electric energy meter to prevent the BPC low-frequency time service code from being interfered by strong noise to affect the accuracy of the clock signal of the intelligent electric energy meter is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to solve the problem that the BPC low-frequency time service code is interfered by strong noise to influence the precision of a clock signal of an intelligent electric energy meter, and therefore, the application provides an electric energy meter clock system, a control method, a device, computer equipment and a medium, which prevent noise signals from interfering the time service code signal, and further improve the precision of the clock signal of the intelligent electric energy meter.
In order to solve the above technical problems, the present application provides an electric energy meter clock system, including:
a time service code receiving circuit and a controller;
the time service code receiving circuit is connected with the controller and is used for acquiring a time service code signal and sending the time service code signal to the controller;
the controller is used for carrying out analog-to-digital conversion on the time service code signal to obtain a sampling signal, and carrying out discrete Fourier transformation on the sampling signal to obtain amplitude information corresponding to the sampling signal, so that a clock signal is generated according to the amplitude information.
Preferably, the time service code receiving circuit includes: the magnetic rod antenna is connected with the band-pass filter circuit;
the magnetic rod antenna is used for acquiring an initial time service code signal sent by the time service center;
the band-pass filter circuit is used for performing filtering operation on the initial time service code signal so as to acquire the time service code signal;
wherein the band-pass filter circuit includes: the first resistor, the second resistor, the third resistor, the first capacitor, the second capacitor and the operational amplifier;
the first end of the first resistor is used as an input end of the band-pass filter circuit, and the second end of the first resistor is connected with the first end of the first capacitor, the first end of the second capacitor and the first end of the second resistor;
the second end of the second resistor is grounded;
the second end of the first capacitor and the first end of the third resistor are connected with the output end of the operational amplifier to serve as the output end of the band-pass filter circuit;
the second end of the second capacitor and the second end of the third resistor are connected with the inverting input end of the operational amplifier;
the non-inverting input terminal of the operational amplifier is grounded.
In order to solve the technical problem, the application also provides a control method of the clock system of the electric energy meter, which is applied to the clock system of the electric energy meter, and the control method of the clock system of the electric energy meter comprises the following steps:
acquiring a time service code signal sent by the time service code receiving circuit, and performing analog-to-digital conversion on the time service code signal to acquire a sampling signal;
performing discrete Fourier transform on the sampling signal to obtain amplitude information corresponding to the sampling signal;
the amplitude information is processed to generate a clock signal.
Preferably, after the step of obtaining the amplitude information corresponding to the sampled signal, the method further includes:
judging whether the quantity of the amplitude information is larger than a quantity threshold value or not, wherein the quantity threshold value is a value determined according to the cache period of the amplitude information;
and if the number of the amplitude information is larger than the number threshold, executing the step of processing the amplitude information.
Preferably, the processing the amplitude information includes:
determining an initial bit amplitude of the amplitude information;
decoding the amplitude information from the initial bit amplitude according to the frame data format of the time service code signal to generate the clock signal;
correspondingly, after the step of processing the amplitude information, the method further includes:
and deleting the amplitude information which has been decoded.
Preferably, the determining the initial bit amplitude of the amplitude information includes:
acquiring the level value of the amplitude information of each bit in the threshold time after the detection bit;
and if the level value of the amplitude information of each bit in the threshold time after the detection bit is high level, determining the detection bit as the initial bit amplitude.
Preferably, after the step of processing the amplitude information to obtain a clock signal, the method further includes:
carrying out validity check on the format and the content of the clock signal to judge whether the clock signal is accurate or not;
if the clock signal is accurate, the clock signal is used for updating the system time of the electric energy meter.
In order to solve the technical problem, the application also provides a control device of the clock system of the electric energy meter, which is applied to the clock system of the electric energy meter, and the control device of the clock system of the electric energy meter comprises:
the first acquisition module is used for acquiring the time service code signal sent by the time service code receiving circuit and performing analog-to-digital conversion on the time service code signal to acquire a sampling signal;
the second acquisition module is used for performing discrete Fourier transform on the sampling signal so as to acquire amplitude information corresponding to the sampling signal;
and the generating module is used for processing the amplitude information to generate a clock signal.
In order to solve the technical problem, the application also provides computer equipment, which comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the electric energy meter clock system control method when executing the computer program.
In order to solve the technical problem, the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the clock system control method of the electric energy meter when being executed by a processor.
The application provides an electric energy meter clock system, comprising: a time service code receiving circuit and a controller; the time service code receiving circuit is connected with the controller and is used for acquiring time service code signals and sending the time service code signals to the controller; the controller is used for carrying out analog-to-digital conversion on the time service code signal to obtain a sampling signal, and carrying out discrete Fourier transformation on the sampling signal to obtain amplitude information corresponding to the sampling signal, so that a clock signal is generated according to the amplitude information. Therefore, the technical scheme provided by the application separates the time service code signal from the noise signal by performing discrete Fourier change on the sampling signal of the time service code signal, prevents the noise signal from interfering the time service code signal, and improves the precision of the clock signal of the intelligent electric energy meter.
In addition, the application also provides a control method, a device, computer equipment and a medium of the clock system of the electric energy meter, which correspond to the clock system of the electric energy meter and have the same effects.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a schematic diagram of an intelligent electric energy meter according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an electric energy meter clock system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a time service code receiving circuit according to an embodiment of the present application;
FIG. 4 is a block diagram of a bandpass filter circuit according to an embodiment of the application;
FIG. 5 is a flowchart of a method for controlling a clock system of an electric energy meter according to an embodiment of the present application;
FIG. 6 is a block diagram of a clock system control device of an electric energy meter according to an embodiment of the present application;
FIG. 7 is a block diagram of a computer device according to another embodiment of the present application;
the reference numerals are as follows: the low-frequency time code receiving circuit 1 is a controller, the clock circuit 3 is a time service code receiving circuit 4 is a signal receiving circuit 5 is a front-end amplifier 6 is a tuning amplifier 7 is a first filter circuit 8 is a signal conditioning circuit 9 is a second filter circuit 10 is a detection circuit 11 and the band-pass filter circuit 12 is a band-pass filter circuit.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The application provides an electric energy meter clock system, a control method, a control device, computer equipment and a medium, which prevent noise signals from interfering time service code signals, thereby improving the accuracy of clock signals of an intelligent electric energy meter.
The electric energy meter clock system provided by the application is applied to an intelligent electric energy meter platform and is used for providing clock signals for the intelligent electric energy meter. As shown in fig. 1, the existing intelligent electric energy meter comprises an MCU, a power supply circuit, an electric energy metering special chip, a communication module, a liquid crystal display module, a low-frequency time code receiving circuit and a storage circuit, wherein the power supply circuit, the electric energy metering special chip, the communication module, the liquid crystal display module, the low-frequency time code receiving circuit and the storage circuit are connected with the MCU, the low-frequency time code receiving circuit is used for receiving a BPC low-frequency time code issued by a national time service center, the MCU processor of the electric energy meter is utilized to analyze the received time code, and the reference clock of the electric energy meter is corrected according to time information obtained through analysis. In the existing scheme, the public decoding chip is mainly used for resolving the time service code, the anti-interference capability is poor, and if a 68.5kHz time service code signal is submerged in strong noise, a clock system cannot acquire time information, so that a reference clock signal cannot be calibrated, and the accuracy of the clock signal of the intelligent electric energy meter is affected.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 2 is a schematic diagram of an electric energy meter clock system according to an embodiment of the present application, as shown in fig. 2, where the system includes: a time service code receiving circuit 4 and a controller 2; the time service code receiving circuit 4 is connected with the controller 2 and is used for acquiring time service code signals and sending the time service code signals to the controller 2; the controller 2 is configured to perform analog-to-digital conversion on the time service code signal to obtain a sampling signal, and perform discrete fourier transform on the sampling signal to obtain amplitude information corresponding to the sampling signal, so as to generate a clock signal according to the amplitude information.
In a specific implementation, after the controller 2 obtains the low-frequency time service code signal of 68.5kHz, the low-frequency time service code signal is sampled by a 5M-frequency analog-digital conversion sampler (analog-Digital Converter, ADC), and 73 sampling points are obtained per cycle. To obtain effective information including time codes, the system performs time-frequency conversion on the sampled signal using discrete fourier transform (Discrete Fourier Transform, DFT), performs DFT computation using a 10ms timer, samples 73 sample points using a 5MHz ADC every 10ms, then performs DFT on the data to obtain amplitude information, obtains 100 amplitude information every 1s, and generates a clock signal according to the amplitude information.
Fig. 3 is a schematic diagram of a time service code receiving circuit according to an embodiment of the present application, as shown in fig. 3, the time service code receiving circuit obtains a transmitted time service code signal through a signal receiving circuit, and processes the time service code signal through circuits such as a signal receiving circuit 5, a front-end amplifier 6, a tuning amplifier 7, a first filtering circuit 8, a signal conditioning circuit 9, a second filtering circuit 10, a detecting circuit 11, and the like, so as to implement preprocessing operations such as amplifying and filtering of the time service code signal.
The BPC low-frequency time code timing system is a wireless transmission system. The time service station generates standard time information by an atomic clock, codes and modulates the standard time information onto a carrier wave with the frequency of 68.5kHz according to a certain rule, and transmits the standard time information to the outside in the form of radio waves after power amplification. The receiver receives the radio wave and performs corresponding decoding operation, so that standard time information can be obtained, and the time service precision can reach 0.1ms at the highest. In this system, the clock signal is modulated with a pulse negative polarity, with negative pulses of different widths representing different data. Each negative pulse width is 100ms,200ms,300ms or 400ms, representing 0,1,2,3 in quaternary, respectively, at a rate of 1bit/s.
The embodiment provides an electric energy meter clock system, including: a time service code receiving circuit and a controller; the time service code receiving circuit is connected with the controller and is used for acquiring time service code signals and sending the time service code signals to the controller; the controller is used for carrying out analog-to-digital conversion on the time service code signal to obtain a sampling signal, and carrying out discrete Fourier transformation on the sampling signal to obtain amplitude information corresponding to the sampling signal, so that a clock signal is generated according to the amplitude information. Therefore, the technical scheme provided by the application separates the time service code signal from the noise signal by performing discrete Fourier change on the sampling signal of the time service code signal, prevents the noise signal from interfering the time service code signal, and improves the precision of the clock signal of the intelligent electric energy meter.
Fig. 4 is a block diagram of a band-pass filter circuit according to an embodiment of the present application, and as shown in fig. 4, a time service code receiving circuit includes: the magnetic rod antenna and the band-pass filter circuit 12 are connected with the band-pass filter circuit 12; the magnetic rod antenna is used for acquiring an initial time service code signal sent by the time service center; the band-pass filter circuit 12 is used for performing a filtering operation on the initial time service code signal to obtain the time service code signal; wherein the band-pass filter circuit includes 12: the first resistor R1, the second resistor R2, the third resistor R3, the first capacitor C1, the second capacitor C2 and the operational amplifier; the first end of the first resistor R1 is used as an input end of the band-pass filter circuit, and the second end of the first resistor R1 is connected with the first end of the first capacitor C1, the first end of the second capacitor C2 and the first end of the second resistor R2; the second end of the second resistor R2 is grounded; the second end of the first capacitor C1 and the first end of the third resistor R3 are connected with the output end of the operational amplifier to serve as the output end of the band-pass filter circuit; the second end of the second capacitor C2 and the second end of the third resistor R3 are connected with the inverting input end of the operational amplifier; the non-inverting input of the operational amplifier is grounded.
In specific implementation, the magnetic rod antenna receives a low-frequency time code signal, and the low-frequency time code signal reaches the MCU through the band-pass filter circuit to be demodulated, so that a time service code signal is obtained.
Fig. 5 is a flowchart of a method for controlling a clock system of an electric energy meter according to an embodiment of the present application, where, as shown in fig. 5, the method for controlling the clock system of the electric energy meter includes:
s10: acquiring a time service code signal sent by a time service code receiving circuit, and performing analog-to-digital conversion on the time service code signal to acquire a sampling signal;
s11: performing discrete Fourier transform on the sampling signal to obtain amplitude information corresponding to the sampling signal;
s12: the amplitude information is processed to generate a clock signal.
Processing the amplitude information includes: determining an initial bit amplitude of the amplitude information; according to the frame data format of the time service code signal, the amplitude information is decoded from the initial bit amplitude value to generate a clock signal. In a specific implementation, each frame of the BPC includes fields such as year, month, day, week, morning/afternoon, hour, minute and frame number, and reserved bits for late expansion, the frame length is 20s, 3 frames per minute, and the starting point of each frame is aligned with 0s, 20s, 40s of the minute. The frame is divided into 20 segments, the segments are 1s long, and the falling edge of each segment is synchronous with the world standard world seconds. Except for a part of segments, each segment is sequentially provided with a low level section and a high level section, and the length of the low level determines 2 bits of data of the segment: 0.1s is 2b00, 0.2s is 2b01, 0.3s is 2b10, and 0.4s is 2b11. Most fields are more than 1 segment, for which BPC uses large endian transmission, with data transmitted first in time being higher than data transmitted later. Therefore, the amplitude information is decoded according to the frame data format of the BPC data, and a clock signal can be generated.
In a specific implementation, due to the special frame data format of the time service code signal, the system cannot process the amplitude signal immediately after receiving the one-bit amplitude signal, so that the amplitude signal needs to be stored in the buffer area preferentially, and when the time service code signal is received all at once, the decoding operation is performed on the time service code.
The embodiment provides a method for controlling a clock system of an electric energy meter, which comprises the following steps: a time service code receiving circuit and a controller; the time service code receiving circuit is connected with the controller and is used for acquiring time service code signals and sending the time service code signals to the controller; the controller is used for carrying out analog-to-digital conversion on the time service code signal to obtain a sampling signal, and carrying out discrete Fourier transformation on the sampling signal to obtain amplitude information corresponding to the sampling signal, so that a clock signal is generated according to the amplitude information. Therefore, the technical scheme provided by the application separates the time service code signal from the noise signal by performing discrete Fourier change on the sampling signal of the time service code signal, prevents the noise signal from interfering the time service code signal, and improves the precision of the clock signal of the intelligent electric energy meter.
In a specific implementation, due to a special frame data format of the time service code, single-bit amplitude information cannot be processed, and the amplitude information needs to be stored preferentially. In a preferred embodiment, the step of obtaining the amplitude information corresponding to the sampled signal further includes: judging whether the quantity of the amplitude information is larger than a quantity threshold value or not, wherein the quantity threshold value is a value determined according to the cache period of the amplitude information; and if the number is larger than the number threshold, executing the step of processing the amplitude information. Determining the initial bit amplitude of the amplitude information includes: acquiring the level value of the amplitude information of each bit in the threshold time after the detection bit; and if the level value of the amplitude information of each bit in the threshold time after the detection bit is high level, determining the detection bit as the initial bit amplitude. Correspondingly, after the time service code is acquired according to the amplitude information, the amplitude information which is already decoded needs to be deleted, so that new amplitude information is stored in the buffer area again.
As a preferred embodiment, the step of processing the amplitude information to obtain the clock signal further includes: carrying out validity check on the format and the content of the clock signal to judge whether the clock signal is accurate or not; if the clock signal is accurate, the clock signal is used for updating the system time of the electric energy meter. The validity check of the clock signal comprises checking the value range of time and the time format to judge whether the clock signal is accurate or not.
In the above embodiments, the method for controlling the clock system of the electric energy meter is described in detail, and the application also provides a corresponding embodiment of the clock system control device of the electric energy meter. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 6 is a block diagram of a clock system control device for an electric energy meter according to an embodiment of the present application, where, as shown in fig. 6, the clock system control device for an electric energy meter includes:
the first acquisition module 10 is configured to acquire a time service code signal sent by the time service code receiving circuit, and perform analog-to-digital conversion on the time service code signal to acquire a sampling signal;
a second obtaining module 11, configured to perform discrete fourier transform on the sampled signal to obtain amplitude information corresponding to the sampled signal;
a generating module 12, configured to process the amplitude information to generate a clock signal.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The embodiment provides a clock system control device of an electric energy meter, which comprises: a time service code receiving circuit and a controller; the time service code receiving circuit is connected with the controller and is used for acquiring time service code signals and sending the time service code signals to the controller; the controller is used for carrying out analog-to-digital conversion on the time service code signal to obtain a sampling signal, and carrying out discrete Fourier transformation on the sampling signal to obtain amplitude information corresponding to the sampling signal, so that a clock signal is generated according to the amplitude information. Therefore, the technical scheme provided by the application separates the time service code signal from the noise signal by performing discrete Fourier change on the sampling signal of the time service code signal, prevents the noise signal from interfering the time service code signal, and improves the precision of the clock signal of the intelligent electric energy meter.
Fig. 7 is a block diagram of a computer device according to another embodiment of the present application, and as shown in fig. 7, the computer device includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the method for controlling the clock system of the electric energy meter according to the above embodiment when executing the computer program.
The computer device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, after being loaded and executed by the processor 21, can implement the relevant steps of the clock system control method of the electric energy meter disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, time service code signals, sampled signals, amplitude information, and the like.
In some embodiments, the computer device may further include a display 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is not limiting of a computer device and may include more or fewer components than shown.
The computer equipment provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: acquiring a time service code signal sent by a time service code receiving circuit, and performing analog-to-digital conversion on the time service code signal to acquire a sampling signal; performing discrete Fourier transform on the sampling signal to obtain amplitude information corresponding to the sampling signal; the amplitude information is processed to generate a clock signal.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or in whole or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The electric energy meter clock system, the control method, the control device, the computer equipment and the medium provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.

Claims (7)

1. An electrical energy meter clock system, comprising:
a time service code receiving circuit and a controller;
the time service code receiving circuit is connected with the controller and is used for acquiring a BPC time service code signal and sending the BPC time service code signal to the controller;
the controller is used for performing analog-to-digital conversion on the BPC time service code signal to obtain a sampling signal, performing discrete Fourier transform on the sampling signal to obtain amplitude information corresponding to the sampling signal, and judging whether the quantity of the amplitude information is larger than a quantity threshold, wherein the quantity threshold is a value determined according to the caching period of the amplitude information; if the number of the amplitude information is larger than the number threshold, acquiring the level value of the amplitude information of each bit in the threshold time after the detection bit; if the level value of the amplitude information of each bit is high in the threshold time after the detection bit, determining the detection bit as an initial bit amplitude; and decoding the amplitude information from the initial bit amplitude according to the frame data format of the BPC time service code signal to generate a clock signal, and deleting the decoded amplitude information.
2. The electrical energy meter clock system of claim 1, wherein the time service code receiving circuit comprises: the magnetic rod antenna is connected with the band-pass filter circuit;
the magnetic rod antenna is used for acquiring an initial BPC time service code signal sent by the time service center;
the band-pass filter circuit is used for performing filtering operation on the initial BPC time service code signal so as to acquire the BPC time service code signal;
wherein the band-pass filter circuit includes: the first resistor, the second resistor, the third resistor, the first capacitor, the second capacitor and the operational amplifier;
the first end of the first resistor is used as an input end of the band-pass filter circuit, and the second end of the first resistor is connected with the first end of the first capacitor, the first end of the second capacitor and the first end of the second resistor;
the second end of the second resistor is grounded;
the second end of the first capacitor and the first end of the third resistor are connected with the output end of the operational amplifier to serve as the output end of the band-pass filter circuit;
the second end of the second capacitor and the second end of the third resistor are connected with the inverting input end of the operational amplifier;
the non-inverting input terminal of the operational amplifier is grounded.
3. The method for controlling the clock system of the electric energy meter is characterized by being applied to the clock system of the electric energy meter comprising the time service code receiving circuit and the controller according to claim 1 or 2, wherein the time service code receiving circuit is connected with the controller, and the method for controlling the clock system of the electric energy meter comprises the following steps:
acquiring a BPC time service code signal sent by the time service code receiving circuit, and performing analog-to-digital conversion on the BPC time service code signal to acquire a sampling signal;
performing discrete Fourier transform on the sampling signal to obtain amplitude information corresponding to the sampling signal;
judging whether the quantity of the amplitude information is larger than a quantity threshold value or not, wherein the quantity threshold value is a value determined according to the cache period of the amplitude information; if the number of the amplitude information is larger than the number threshold, acquiring the level value of the amplitude information of each bit in the threshold time after the detection bit; if the level value of the amplitude information of each bit is high in the threshold time after the detection bit, determining the detection bit as an initial bit amplitude; and decoding the amplitude information from the initial bit amplitude according to the frame data format of the BPC time service code signal to generate a clock signal, and deleting the decoded amplitude information.
4. The method of claim 3, further comprising, after the step of processing the amplitude information to generate a clock signal:
carrying out validity check on the format and the content of the clock signal to judge whether the clock signal is accurate or not;
if the clock signal is accurate, the clock signal is used for updating the system time of the electric energy meter.
5. An electric energy meter clock system control device, characterized in that it is applied to the electric energy meter clock system according to claim 1 or 2, and comprises:
the first acquisition module is used for acquiring the BPC time service code signal sent by the time service code receiving circuit and performing analog-to-digital conversion on the BPC time service code signal so as to acquire a sampling signal;
the second acquisition module is used for performing discrete Fourier transform on the sampling signal so as to acquire amplitude information corresponding to the sampling signal;
the generation module is used for judging whether the quantity of the amplitude information is larger than a quantity threshold value or not, wherein the quantity threshold value is a value determined according to the cache period of the amplitude information; if the number of the amplitude information is larger than the number threshold, acquiring the level value of the amplitude information of each bit in the threshold time after the detection bit; if the level value of the amplitude information of each bit is high in the threshold time after the detection bit, determining the detection bit as an initial bit amplitude; and decoding the amplitude information from the initial bit amplitude according to the frame data format of the BPC time service code signal to generate a clock signal, and deleting the decoded amplitude information.
6. The clock system control device of the electric energy meter is characterized by comprising a memory, a clock system control device and a clock system control device, wherein the memory is used for storing a computer program;
a processor for implementing the steps of the method for controlling a clock system of an electric energy meter according to claim 3 or 4 when executing said computer program.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the electric energy meter clock system control method of claim 3 or 4.
CN202311040276.8A 2023-08-18 2023-08-18 Electric energy meter clock system, control method and device, computer equipment and medium Active CN116755319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311040276.8A CN116755319B (en) 2023-08-18 2023-08-18 Electric energy meter clock system, control method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311040276.8A CN116755319B (en) 2023-08-18 2023-08-18 Electric energy meter clock system, control method and device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN116755319A CN116755319A (en) 2023-09-15
CN116755319B true CN116755319B (en) 2023-11-21

Family

ID=87951834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311040276.8A Active CN116755319B (en) 2023-08-18 2023-08-18 Electric energy meter clock system, control method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN116755319B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489833A (en) * 2000-12-18 2004-04-14 ��ϵͳ��ƹ�˾ Digital point-to-multiponit data transmission system on electric network
KR20120080064A (en) * 2011-01-06 2012-07-16 주식회사 만도 Object detection method and radar system for providing the same method
CN105572470A (en) * 2016-02-29 2016-05-11 江苏林洋能源股份有限公司 Intelligent watt-hour meter and method of using BPC low frequency timing code for automatic timing
CN107171761A (en) * 2017-04-19 2017-09-15 西安电子科技大学 The method that local clock is calibrated using shortwave time signal
CN109270831A (en) * 2018-11-21 2019-01-25 中国科学院国家授时中心 BPM shortwave multifrequency point timing system
CN114095070A (en) * 2021-10-29 2022-02-25 中国电子科技集团公司第五十四研究所 Rocket body information returning device based on Beidou satellite navigation
CN114624736A (en) * 2022-03-18 2022-06-14 重庆市计量质量检测研究院 Anti-interference method of Beidou time synchronization receiver

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489833A (en) * 2000-12-18 2004-04-14 ��ϵͳ��ƹ�˾ Digital point-to-multiponit data transmission system on electric network
KR20120080064A (en) * 2011-01-06 2012-07-16 주식회사 만도 Object detection method and radar system for providing the same method
CN105572470A (en) * 2016-02-29 2016-05-11 江苏林洋能源股份有限公司 Intelligent watt-hour meter and method of using BPC low frequency timing code for automatic timing
CN107171761A (en) * 2017-04-19 2017-09-15 西安电子科技大学 The method that local clock is calibrated using shortwave time signal
CN109270831A (en) * 2018-11-21 2019-01-25 中国科学院国家授时中心 BPM shortwave multifrequency point timing system
CN114095070A (en) * 2021-10-29 2022-02-25 中国电子科技集团公司第五十四研究所 Rocket body information returning device based on Beidou satellite navigation
CN114624736A (en) * 2022-03-18 2022-06-14 重庆市计量质量检测研究院 Anti-interference method of Beidou time synchronization receiver

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)ROBERT A.PEASE.《模拟电路》.北京航空航天大学出版社,2014,第187-189页. *

Also Published As

Publication number Publication date
CN116755319A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN110836992B (en) Oscillography power meter acquisition system based on FPGA
CN105373482A (en) Method and device for detecting abnormal power consumption of application program and electronic equipment
CN109060592B (en) Shale loss gas quantity obtaining method and device and terminal equipment
CN102028459A (en) Channel pace-making signal detection method of electrocardiogram machine
CN208384130U (en) A kind of digital multichannel spectrometer based on FPGA/STM32
CN116755319B (en) Electric energy meter clock system, control method and device, computer equipment and medium
JP4390455B2 (en) Level measuring device that operates using microwaves
CN113507334B (en) Channel sniffing-based parameter testing method, device, equipment and storage medium
CN103487653B (en) A kind of device and method for the process of real time spectrum track
CN105610530B (en) Satellite data acquisition and analysis method and system
CN104835500B (en) The method and its device that a kind of audio-frequency information obtains
CN113096260B (en) Detection method and device of ETC system, storage medium and terminal
US6799128B2 (en) Measurement system for sampling a signal and evaluating data representing the signal
CN116558639A (en) Photon counting data processing method, device and system for spectrum measurement
JP2001228271A (en) Clock device
CN103995799A (en) Frequency phase brain-computer interface decoding method and device based on FFT spectrum correction
CN115514599A (en) Method and system for automatically removing interference signals in asynchronous serial communication
CN104765053A (en) GNSS receiver pseudo code capturing method and device
CN109359010B (en) Method and system for obtaining internal transmission delay of storage module
EP3646673A1 (en) Voltage detection system and method
De Dominicis et al. Acquisition and elaboration of cardiac signal in android Smartphone devices
CN110737005B (en) Method for positioning chip and terminal equipment
CN117572464B (en) GPS test method, device, electronic equipment and storage medium
CN218896152U (en) Thunder and lightning detector
US20070271049A1 (en) Method and system for measuring band pass filtered phase noise of a repetitive signal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant