Clock synchronization method, device, electronic equipment and storage medium in distribution station area

The time-request command is sent through the smart capacitor on the power line or micro-power wireless network in the distribution station area, and the voltage changes caused by its input and removal are realized, and the clock synchronization between devices is solved, which is low accuracy in clock signal transmission The problem has improved the success rate and accuracy of clock synchronization in the distribution station area.

CN115051781BActive Publication Date: 2024-12-24HANGZHOU DECHENG ELECTRIC POWER TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210803327.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-07
Publication Date
2024-12-24
Estimated Expiration
2042-07-07

AI Technical Summary

Technical Problem

In the distribution station area, the clock signal during transmission is low due to the presence of multi-stage relay, which affects the stable operation of the power system.

Method used

By sending time request instructions on power line carrier or micro-power wireless, the target device collects voltage waveforms in real time and compares them with the waveforms sent after the smart capacitor sends time requests, using the voltage changes caused by the input and removal of the smart capacitor as a feature signal, realize clock synchronization between devices.

Benefits of technology

It improves the success rate and accuracy of equipment clock synchronization in the distribution station area, ensures uniform equipment time in the power system, and provides a more reliable time source to prevent accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115051781B_ABST
    Figure CN115051781B_ABST
Patent Text Reader

Abstract

The present application provides a clock synchronization method, device, electronic device and storage medium in a distribution substation area. The distribution substation area includes a transformer, a smart capacitor connected to the transformer and a target device. The method is applied to the target device, and the method includes: receiving a time synchronization request instruction initiated by the smart capacitor in the distribution substation area, sampling the first voltage transmitted by the transformer in real time according to the time synchronization request instruction to obtain a first waveform; comparing the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result; and maintaining clock synchronization with the smart capacitor according to the comparison result. The technical solution provided by the present application can improve the success rate and accuracy of time synchronization of equipment in the distribution substation area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power distribution systems, and in particular to a clock synchronization method, device, electronic equipment and storage medium within a power distribution station area. Background Art

[0002] A distribution substation is the area or range of power supplied by a transformer. Multiple energy meters and distributed reactive power compensation equipment are typically deployed within this area. To ensure safe and stable operation within this area, all equipment in the power system must maintain consistent timing. Analyzing the timing of various equipment's actions can provide crucial insights into power system incidents.

[0003] To synchronize the clocks of devices within the power system, time-scale signals from the Beidou satellite navigation system and the GPS global positioning system are typically used as standard time sources to calibrate the clocks of each device. Clock signals are then sent directly to the devices within the power system via power line carriers or micropower wireless communication. However, due to the presence of multiple relays, the clock signals carried in the communication message may already be deviated by the time they reach the target device, resulting in low synchronization accuracy. Summary of the Invention

[0004] The purpose of this application is to provide a clock synchronization method, device, electronic device and storage medium within a distribution station area, which can improve the success rate and accuracy of time synchronization of equipment within the distribution station area.

[0005] In a first aspect, an embodiment of the present application provides a clock synchronization method within a distribution network, wherein the distribution network includes a transformer, a smart capacitor connected to the transformer, and a target device. The method is applied to the target device, and includes:

[0006] receiving a time synchronization request instruction initiated by the smart capacitor in the distribution station area, and sampling the first voltage delivered by the transformer in real time according to the time synchronization request instruction to obtain a first waveform;

[0007] Comparing the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result;

[0008] According to the comparison result, clock synchronization is maintained with the smart capacitor.

[0009] In one embodiment, the smart capacitor switches on and off the capacitor at preset time intervals, so that the first voltage increases and decreases at the same time intervals.

[0010] In one embodiment, before comparing the first waveform with the second waveform sent by the smart capacitor, the method further includes: receiving the second waveform sent by the smart capacitor within a preset waiting time after receiving the timing request instruction.

[0011] In one embodiment, the receiving of the time synchronization request instruction initiated by the smart capacitor in the distribution station area includes: receiving the time synchronization request instruction sent by the smart capacitor via a power line carrier or micro-power wireless.

[0012] In one embodiment, comparing the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result includes: comparing whether the first waveform and the second waveform emitted by the smart capacitor are identical to obtain the comparison result.

[0013] In one embodiment, maintaining clock synchronization with the smart capacitor based on the comparison result includes: if the first waveform is identical to the second waveform, determining that the clock is synchronized with the smart capacitor, and setting its own clock to a set time.

[0014] In one embodiment, maintaining clock synchronization with the smart capacitor based on the comparison result includes: if the first waveform is different from the second waveform, adjusting its own clock to maintain clock synchronization with the smart capacitor based on the time difference between the first waveform and the second waveform.

[0015] A second aspect of an embodiment of the present application provides a clock synchronization device within a distribution station area, the device comprising:

[0016] A first receiving module is configured to receive a time synchronization request instruction initiated by the smart capacitor in the distribution station area, and perform real-time sampling of the first voltage delivered by the transformer according to the time synchronization request instruction to obtain a first waveform;

[0017] a comparison module, configured to compare the first waveform with a second waveform emitted by the smart capacitor to obtain a comparison result;

[0018] A timing module is used to maintain clock synchronization with the smart capacitor according to the comparison result.

[0019] In one embodiment, the smart capacitor switches on and off the capacitor at preset time intervals, so that the first voltage increases and decreases at the same time intervals.

[0020] In one embodiment, the apparatus further comprises:

[0021] The second receiving module is configured to receive a second waveform sent by the smart capacitor within a preset waiting time after receiving the timing request instruction.

[0022] In one embodiment, the first receiving module is further configured to receive the time synchronization request instruction sent by the smart capacitor via a power line carrier or micro-power wireless communication.

[0023] In one embodiment, the comparison module is further configured to compare whether the first waveform is identical to a second waveform emitted by the smart capacitor, and obtain the comparison result.

[0024] In one embodiment, the time synchronization module is further configured to determine synchronization with the clock of the smart capacitor if the first waveform is identical to the second waveform, and set its own clock to the set time.

[0025] In one embodiment, the timing module is further configured to adjust its own clock to maintain clock synchronization with the smart capacitor according to a time difference between the first waveform and the second waveform if the first waveform is different from the second waveform.

[0026] A third aspect of the embodiments of the present application provides an electronic device, including:

[0027] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in the first aspect of the present application.

[0028] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can be executed by a processor to complete the method described in the first aspect of the present application.

[0029] The present application provides a clock synchronization method, device, electronic device, and storage medium within a distribution substation area. A smart capacitor sends a time synchronization request notification to a target device within the substation area via a power line carrier or micropower wireless. The target device collects the first waveform of the power system voltage in real time and compares it with the second waveform sent by the smart capacitor after the time synchronization request instruction is issued. Based on the comparison result, the clock synchronization of the target device and the smart capacitor is achieved. The voltage change caused by the input and output of the smart capacitor is used as a characteristic signal to achieve clock synchronization of the devices within the distribution substation area. This method improves the success rate and accuracy of clock synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments.

[0031] Figure 1 This is a diagram showing an application scenario of the clock synchronization method within a distribution station area provided by an embodiment of the present application;

[0032] Figure 2A schematic diagram of the electronic device structure provided in an embodiment of the present application;

[0033] Figure 3 A flowchart of a clock synchronization method within a distribution station area provided in an embodiment of the present application;

[0034] Figure 4 A flowchart of a clock synchronization method within a distribution station area provided in an embodiment of the present application;

[0035] Figure 5 A schematic diagram of the structure of a clock synchronization device within a distribution station area provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] In the description of this application, the terms "first", "second", etc. are only used to distinguish the description and do not indicate the order of arrangement, nor can they be understood as indicating or implying relative importance.

[0037] In the description of this application, the terms "include", "comprising", etc. indicate the existence of the described features, integers, steps, operations, elements and / or components, but do not exclude the existence or addition of one or more other features, steps, operations, elements, components and / or their collections.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0039] The technical solution of this application will be clearly and completely described below with reference to the accompanying drawings.

[0040] Please refer to Figure 1 , which is a diagram of an application scenario of the clock synchronization method within a distribution substation provided by an embodiment of the present application. This application scenario includes a transformer 101, a smart capacitor 102, and a target device 103. Smart capacitor 102 is connected to transformer 101 and target device 103. Smart capacitor 102 is located at the head end of transformer 101 and can issue a synchronization request and a synchronization waveform to synchronize the devices within the distribution substation. There can be multiple target devices 103, which can be energy meters, distributed reactive power compensation equipment, etc.

[0041] Please refer to Figure 2 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. This electronic device can be used to implement the clock synchronization method within a distribution station area provided in an embodiment of the present application. The electronic device includes: at least one processor 203, at least one memory 202, and a bus 201. Bus 201 is used to connect and communicate with these components.

[0042] The memory 202 can be implemented by any type of volatile or non-volatile memory device or a combination thereof, including but not limited to random access memory (RAM), read-only memory (ROM), static random access memory (SRAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), and electrically erasable programmable read-only memory (EEPROM).

[0043] The processor 203 may be a general-purpose processor, including but not limited to a central processing unit (CPU), a network processor (NP), etc., and may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 203 is the control center of the electronic device 200, and uses various interfaces and lines to connect various parts of the entire electronic device 200. The processor 203 may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.

[0044] Please refer to Figure 3 , which is a flow chart of a clock synchronization method within a distribution station area provided by an embodiment of the present application, which can be performed by Figure 2 The method executed by the electronic device 200 shown includes S310 - S330 .

[0045] S310: Receive a time synchronization request instruction initiated by an intelligent capacitor in a distribution station area, and perform real-time sampling on a first voltage transmitted by a transformer according to the time synchronization request instruction to obtain a first waveform.

[0046] The distribution substation is the power supply area of ​​the transformer in the power system. It includes the transformer, smart capacitors, and target devices. Smart capacitors can be installed at the headend of the transformer and can issue synchronization notifications and waveforms for synchronization. Smart capacitors also play a significant role in the power system by saving energy, reducing power losses, and providing reactive power compensation. Multiple target devices can be located within the distribution substation, including energy meters and distributed reactive power compensation equipment.

[0047] When it is necessary to synchronize the clocks of all devices in the distribution area, the smart capacitor installed at the head end of the transformer establishes a connection with all target devices in the distribution area through the power line carrier or micro-power wireless. The smart capacitor sends a synchronization request instruction to the target device through the power line carrier or micro-power wireless, notifying the target device to synchronize the time.

[0048] The primary voltage delivered by the transformer is the three-phase voltage of the power system that the target device can sample in real time after the smart capacitor issues a synchronization request. The smart capacitor can be switched on and off at preset intervals, causing the primary voltage to rise and fall at the same intervals.

[0049] Switching on and off smart capacitors is the process of connecting or disconnecting them from the power system. The preset time interval can be set to 20ms for connection and 20ms for disconnection. The specific setting is based on actual conditions and is not limited here. Switching on and off smart capacitors can cause voltage changes in the power system, thereby changing the first waveform.

[0050] After receiving the time synchronization request instruction sent by the smart capacitor, the target device starts real-time sampling of the first voltage to obtain a first waveform.

[0051] S320: Compare the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result.

[0052] The second waveform is the waveform generated by the smart capacitor after it issues a synchronization request and waits for a period of time before issuing another waveform. Because the smart capacitors are activated and deactivated at preset intervals, the voltage in the power system increases when the smart capacitors are activated and decreases when they are deactivated, potentially changing the second waveform. This second waveform can be considered a synchronization or calibration waveform.

[0053] The target device compares the collected first waveform with the received second waveform to obtain a comparison result. The comparison result may be that the first waveform and the second waveform are the same, or the first waveform and the second waveform are different.

[0054] S330: Maintain clock synchronization with the smart capacitor according to the comparison result.

[0055] When clock synchronization is required, the smart capacitor sends a synchronization request to the target device within the distribution area. If the comparison result shows that the first and second waveforms are identical, the target device and the smart capacitor's clocks are considered synchronized. The target device's clock is then set to the preset synchronization time, thus achieving clock synchronization within the distribution area.

[0056] For example, when the first waveform is found to be identical to the second waveform after comparison, the clock time of the target device is set to the set time, which can be considered as a standard time.

[0057] Please refer to Figure 4 , which is a flow chart of a clock synchronization method within a distribution station area provided by an embodiment of the present application, which can be performed by Figure 2 The electronic device 200 shown executes the method including S410 - S450 .

[0058] S410: Receive a time synchronization request instruction initiated by an intelligent capacitor in a distribution station area, and perform real-time sampling on a first voltage transmitted by a transformer according to the time synchronization request instruction to obtain a first waveform.

[0059] When it is necessary to synchronize the time of all devices in the distribution area and synchronize the clocks of all devices, the smart capacitor installed at the head end of the transformer establishes a connection with all target devices in the distribution area through the power line carrier or micro-power wireless. The smart capacitor sends a synchronization request instruction to the target device through the power line carrier or micro-power wireless, notifying the target device to synchronize the time.

[0060] The primary voltage delivered by the transformer refers to the three-phase voltage of the power system sampled in real time by the target device after the smart capacitor issues a synchronization request. The smart capacitor can switch on and off at preset intervals, causing the primary voltage to rise and fall at the same intervals. The smart capacitor can use thyristors as switching devices for rapid switching.

[0061] Switching on and off is the process of connecting or disconnecting smart capacitors from the power system. The preset time interval can be set to 20ms for switching on and 20ms for disconnecting. The specific time interval can be set based on actual conditions and is not limited here. Switching on and off smart capacitors can cause voltage changes in the power system, thereby changing the first waveform.

[0062] The synchronization request instruction notifies a target device within the distribution area to synchronize its clock with the clock of the smart capacitor. The smart capacitor initiates the synchronization request instruction to the target device within the distribution area via a power line carrier or micropower wireless communication. Upon receiving the synchronization request instruction, the target device initiates real-time sampling of the first voltage to obtain a first waveform.

[0063] S420: Receive a second waveform sent by the smart capacitor within a preset waiting time after receiving the time synchronization request instruction.

[0064] The second waveform is a waveform for time synchronization issued by the smart capacitor after waiting for a period of time after issuing a time synchronization request instruction. The target device receives the second waveform issued by the smart capacitor.

[0065] S430: Compare the first waveform with the second waveform emitted by the smart capacitor to see if they are the same, and obtain a comparison result.

[0066] Because smart capacitors are switched on and off at preset intervals in the power system, this switching on and off causes changes in the power system voltage, which in turn affects the waveform. The voltage change caused by the switching on and off of smart capacitors is used as a characteristic signal to compare the first waveform with the second waveform to determine if they are identical. This comparison results in a comparison result.

[0067] The waveform comparison algorithm uses:

[0068]

[0069] Among them, n is the number of sampling points, i is the sequence number of the current sampling point, A i is the sampling point sequence of the first waveform, B i is the sampling point sequence of the second waveform.

[0070] The comparison result may be that the first waveform and the second waveform are the same, or may be that the first waveform and the second waveform are different.

[0071] S440: If the first waveform is identical to the second waveform, it is determined that the smart capacitor is synchronized with the clock, and the clock of the smart capacitor is set to the set time.

[0072] The first waveform and the second waveform being identical means that the waveforms are identical at the same time, that is, the voltages are identical at the same time. When clock synchronization is required, the smart capacitor issues a synchronization request to the target device within the distribution area at that time. If the comparison result shows that the first and second waveforms are identical, the smart capacitor's clock and the target device's clock are considered synchronized. The target device's clock can then be set to the preset synchronization time, thereby achieving clock synchronization within the distribution area.

[0073] S450: If the first waveform is different from the second waveform, adjust the clock of the smart capacitor to maintain clock synchronization according to the time difference between the first waveform and the second waveform.

[0074] If the first waveform and the second waveform are different after comparison, for example, the first waveform is delayed by 20ms compared with the second waveform, the clock time of the target device can be adjusted to advance the clock time of the target device by 20ms to achieve clock time synchronization of the devices in the distribution station area.

[0075] This application provides a clock synchronization method within a distribution substation area. A smart capacitor sends a time synchronization request notification to a target device within the area via a power line carrier or micropower wireless. The target device collects the voltage and radio waves of the power system in real time and compares them with the time synchronization waveform emitted by the smart capacitor after the time synchronization request instruction is issued. If the waveforms are consistent, the target device is set to a preset time. This method uses the voltage changes caused by the switching on and off of the smart capacitor as a characteristic signal to achieve clock synchronization of devices within the distribution substation area. This method improves the success rate and accuracy of clock synchronization.

[0076] Please refer to Figure 5 , which is a structural diagram of a clock synchronization device in a distribution station area provided in an embodiment of the present application. The device 500 includes a first receiving module 510, a comparison module 520, and a time synchronization module 530.

[0077] The first receiving module 510 is configured to receive a timing request instruction initiated by an intelligent capacitor in a distribution station area, and perform real-time sampling of a first voltage transmitted by the transformer according to the timing request instruction to obtain a first waveform.

[0078] A comparison module 520, configured to compare the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result;

[0079] The timing module 530 is used to maintain clock synchronization with the smart capacitor according to the comparison result.

[0080] In one embodiment, the smart capacitor switches on and off the capacitor at predetermined time intervals, so that the first voltage increases and decreases at the same time intervals.

[0081] In one embodiment, the apparatus 500 further includes:

[0082] The second receiving module is configured to receive a second waveform sent by the smart capacitor within a preset waiting time after receiving the timing request instruction.

[0083] In one embodiment, the first receiving module 510 is further configured to receive a time synchronization request instruction sent by the smart capacitor via a power line carrier or micro-power wireless communication.

[0084] In one embodiment, the comparison module 520 is further configured to compare whether the first waveform is identical to the second waveform emitted by the smart capacitor to obtain a comparison result.

[0085] In one embodiment, the time synchronization module 530 is further configured to determine that the first waveform is synchronized with the second waveform and set its own clock to the set time.

[0086] In one embodiment, the timing module 530 is further configured to adjust its own clock to maintain clock synchronization with the smart capacitor according to the time difference between the first waveform and the second waveform if the first waveform and the second waveform are different.

[0087] The present application also provides a computer-readable storage medium, including a program, which, when executed by the electronic device 200, enables the electronic device 200 to execute all or part of the process of the method in the above embodiment. The storage medium may be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk drive (HDD), or a solid-state drive (SSD). The storage medium may also include a combination of the above types of memory.

[0088] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0089] In several embodiments provided in this application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a portion of code, and the module, program segment, or a portion of code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the boxes may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, may be implemented using a dedicated hardware-based system that performs the specified functions or actions, or may be implemented using a combination of dedicated hardware and computer instructions.

[0090] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0091] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.

Claims

1. A clock synchronization method in a distribution station area, characterized in that: The distribution station area includes a transformer, a smart capacitor connected to the transformer, and a target device. The method is applied to the target device, and the method includes: Receiving a time synchronization request instruction initiated by the smart capacitor in the distribution station area, and sampling the first voltage transmitted by the transformer in real time according to the time synchronization request instruction to obtain a first waveform; the first voltage transmitted by the transformer refers to the three-phase voltage of the power system sampled in real time by the target device after the smart capacitor issues the time synchronization request instruction; The intelligent capacitor is put into and cut off the capacitance at a preset time interval, so that the first voltage increases and decreases at the same time interval; The first waveform is compared with the second waveform emitted by the smart capacitor to obtain a comparison result; the second waveform refers to the waveform emitted by the smart capacitor after waiting for a period of time after issuing the timing request instruction, and the second waveform is used as a timing waveform or a calibration waveform; The comparing the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result includes: Comparing whether the first waveform is identical to the second waveform emitted by the smart capacitor, and obtaining the comparison result; The waveform comparison algorithm uses: ; where cosθ is the comparison result, n is the number of sampling points, i is the sequence number of the current sampling point, is the sampling point sequence of the first waveform, is the sampling point sequence of the second waveform; According to the comparison result, clock synchronization is maintained with the smart capacitor.

2. The method according to claim 1, characterized in that The receiving the time synchronization request instruction initiated by the smart capacitor in the distribution station area includes: The timing request instruction is received which is sent by the smart capacitor via a power line carrier or micro-power wireless.

3. The method according to claim 1, characterized in that The step of maintaining clock synchronization with the smart capacitor according to the comparison result comprises: If the first waveform is the same as the second waveform, it is determined that the clock of the smart capacitor is synchronized, and the clock of the smart capacitor is set to the set time.

4. The method according to claim 1, characterized in that: The step of maintaining clock synchronization with the smart capacitor according to the comparison result comprises: If the first waveform is different from the second waveform, the clock of the smart capacitor is adjusted to keep clock synchronization with the smart capacitor according to the time difference between the first waveform and the second waveform.

5. A clock synchronization device in a distribution station area, characterized in that: The device comprises: The first receiving module is used to receive a time synchronization request instruction initiated by an intelligent capacitor in a distribution station area, and to sample a first voltage transmitted by a transformer in real time according to the time synchronization request instruction to obtain a first waveform; the first voltage transmitted by the transformer refers to the three-phase voltage of the power system sampled in real time by the target device after the intelligent capacitor issues the time synchronization request instruction; The intelligent capacitor is put into and cut off the capacitance at a preset time interval, so that the first voltage increases and decreases at the same time interval; A comparison module, used for comparing the first waveform with a second waveform emitted by the smart capacitor to obtain a comparison result, wherein the second waveform refers to a waveform emitted by the smart capacitor after waiting for a period of time after the smart capacitor emits the timing request instruction, and the second waveform is used as a timing waveform or a calibration waveform; The comparing the first waveform with the second waveform emitted by the smart capacitor to obtain a comparison result includes: Comparing whether the first waveform is identical to the second waveform emitted by the smart capacitor, and obtaining the comparison result; The waveform comparison algorithm uses: ; Wherein, cosθ is the comparison result, n is the number of sampling points, i is the sequence number of the current sampling point, is the sampling point sequence of the first waveform, is a sampling point sequence of the second waveform; A timing module is used to keep clock synchronization with the smart capacitor according to the comparison result.

6. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program can be executed by a processor to implement the method according to any one of claims 1 to 4.