Time synchronization device and method based on carrier communication
By adopting the combination of carrier communication circuit, 1PPS interface circuit, RS232 interface circuit and temperature detection circuit in the power system, the high-precision time synchronization and autonomous punctuality functions are achieved, solving the network environment and cost challenges of time synchronization technology in the power system. , meet the complex needs of smart grids.
Patent Information
- Application Number
- CN202411029763.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-19
AI Technical Summary
Time synchronization technology in power systems faces challenges such as network environment and cost, especially when smart grids and terminal metering equipment are widely deployed, it is difficult for the existing technology to achieve high-precision synchronization and autonomous punctuality functions, especially when there is no network environment. insufficient versatility.
Adopt a time synchronization device based on carrier communication, including a carrier communication circuit, a 1PPS interface circuit, an RS232 interface circuit and a temperature detection circuit. The time frequency information is received through carrier communication, PPS and TOD signals are controlled, and the crystal oscillator temperature is detected, so as to achieve high internal energy system. Accuracy time synchronization and autonomous punctuality functions.
It realizes high-precision synchronization and autonomous punctuality functions within the power system, can maintain operation when the network connection is interrupted, meets the complex needs of the smart grid, and improves the operating efficiency and reliability of the power grid.
Smart Images

Figure CN118984169A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power metering, and more particularly to a time synchronization device and method based on carrier communication. Background Art
[0002] In the power system, time synchronization technology is crucial to improving the stability and efficiency of the power grid. At present, with the development of smart grids, the demand for time synchronization is more urgent, especially when many terminal metering devices are widely deployed. However, affected by factors such as network environment and cost, time synchronization technology in the power system faces many challenges.
[0003] At present, power line carrier communication technology has been fully used in the State Grid station area. The application of multifunctional time synchronization devices based on carrier communication in smart grids has important technical value and broad development prospects. This technology can not only achieve high-precision time synchronization within the power system, but also has an autonomous timekeeping function, which can significantly improve the operation efficiency and reliability of the power grid and meet the complex needs of the new power system.
[0004] The following technologies are disclosed in the prior art:
[0005] A time-frequency comparison method, system, device and storage medium, which obtains a time-frequency comparison request; obtains the time-frequency information corresponding to the time-frequency comparison request in a database; performs time-frequency comparison based on the time-frequency information to obtain a time-frequency comparison result. That is, the time-frequency comparison request can be received by a server, and the corresponding time-frequency information can be retrieved to implement the time-frequency comparison and obtain the time-frequency comparison result. This remote comparison method based on a server and a database improves the comparison cost and efficiency. In principle, the system avoids the characteristics of wireless solutions that are easily affected by the environment, and improves the efficiency and practicality of time-frequency comparison. However, the time-frequency transmission of this technology is mainly based on computer equipment, and the versatility in the absence of a network environment is not considered;
[0006] A time-frequency multiplexing method and device for monitoring electric power equipment, the method steps are as follows: according to the actual application requirements, configure the time interval Ts for uploading data by the wireless monitoring terminal; according to the number N of wireless monitoring terminals included in the monitoring system, the number M of gateway channels and the time interval Ts, calculate the time gap △T of time-frequency multiplexing, and generate a time-frequency multiplexing matrix, where △T=(Ts*M) / N; based on the time-frequency multiplexing matrix, assign a relative time period and channel number for sending data in each time interval Ts to each wireless monitoring terminal; each wireless monitoring terminal sets a timer according to the assigned relative time period, and wakes up once every Ts; after each wireless monitoring terminal is awakened, it collects the status data of the electric power equipment, and uploads the collected data to the host computer through the assigned channel. The invention can effectively solve the channel conflict problem that often occurs when uploading data from the monitoring terminal. However, this technology can only effectively solve the channel conflict problem that often occurs when uploading data from the monitoring terminal, and does not involve the design of accuracy and punctuality. Summary of the invention
[0007] In view of the above problems, the present invention proposes a time synchronization device based on carrier communication, comprising: a carrier communication circuit, a 1PPS interface circuit, an RS232 interface circuit and a temperature detection circuit;
[0008] After receiving the time and frequency information of CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system, controls the RS232 interface circuit to receive the TOD signal of the power system, and controls the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit based on carrier communication, and aligns and synchronizes the time of each device inside the power system based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator.
[0009] Optionally, data is transmitted between the carrier communication circuit and the temperature detection circuit via a high-speed network.
[0010] Optionally, signals are transmitted between the carrier communication circuit and the 1PPS interface circuit and the RS232 interface circuit via a carrier network.
[0011] Optionally, the device also includes: a power supply circuit, which is used to provide overload protection / short circuit protection / overheat protection for the time synchronization device.
[0012] Optionally, the 1PPS interface circuit includes: a 1PPS interface, wherein the 1PPS interface is used to receive a PPS signal.
[0013] Optionally, the RS232 interface circuit includes: an RS232 interface, wherein the RS232 interface is used to receive a TOD signal.
[0014] On the other hand, the present invention also proposes a time synchronization method based on carrier communication, comprising:
[0015] After receiving the time and frequency information of the CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system based on the carrier communication;
[0016] Controlling the RS232 interface circuit to receive a TOD signal from a power system;
[0017] Controlling the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit;
[0018] Based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator, the time of each device inside the power system is aligned and synchronized.
[0019] Optionally, data is transmitted between the carrier communication circuit and the temperature detection circuit via a high-speed network.
[0020] Optionally, signals are transmitted between the carrier communication circuit and the 1PPS interface circuit and the RS232 interface circuit via a carrier network.
[0021] Optionally, the method further includes: providing overload protection / short circuit protection / overheat protection for the time synchronization device through a power supply circuit.
[0022] Optionally, the 1PPS interface circuit includes: a 1PPS interface, wherein the 1PPS interface is used to receive a PPS signal.
[0023] Optionally, the RS232 interface circuit includes: an RS232 interface, wherein the RS232 interface is used to receive a TOD signal.
[0024] In yet another aspect, the present invention further provides a computing device, comprising: one or more processors;
[0025] a processor for executing one or more programs;
[0026] When the one or more programs are executed by the one or more processors, the above-described method is implemented.
[0027] In yet another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the method described above is implemented.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention provides a time synchronization device based on carrier communication, comprising: a carrier communication circuit, a 1PPS interface circuit, an RS232 interface circuit and a temperature detection circuit; after receiving the time frequency information of the CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system, controls the RS232 interface circuit to receive the TOD signal of the power system, and controls the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit, and aligns and synchronizes the time of each device inside the power system based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator. The present invention can calibrate the clock signal in real time and realize high-precision synchronization and autonomous timekeeping functions. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a structural schematic diagram of the device of the present invention;
[0031] Figure 2 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0032] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0033] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0034] Embodiment 1:
[0035] The present invention proposes a time synchronization device based on carrier communication, such as Figure 1 As shown, it includes: a carrier communication circuit, a 1PPS interface circuit, an RS232 interface circuit and a temperature detection circuit;
[0036] After receiving the time and frequency information of CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system, controls the RS232 interface circuit to receive the TOD signal of the power system, and controls the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit based on carrier communication, and aligns and synchronizes the time of each device inside the power system based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator.
[0037] Wherein, data is transmitted between the carrier communication circuit and the temperature detection circuit via a high-speed network.
[0038] Among them, signals are transmitted between the carrier communication circuit and the 1PPS interface circuit and the RS232 interface circuit through the carrier network.
[0039] The device further includes: a power supply circuit, which is used to provide overload protection / short circuit protection / overheat protection for the time synchronization device.
[0040] Wherein, the 1PPS interface circuit includes: a 1PPS interface, and the 1PPS interface is used to receive a PPS signal.
[0041] The RS232 interface circuit includes: an RS232 interface, and the RS232 interface is used to receive a TOD signal.
[0042] The present invention is further described below in conjunction with specific implementation cases of the present invention:
[0043] In view of the many challenges faced by current power system time synchronization technology, the improvement of grid stability and efficiency, the rapid development of smart grids and the widespread deployment of terminal metering equipment, the time synchronization technology of power systems needs to overcome the challenges of network environment and cost. The multifunctional time and frequency device based on power line carrier communication technology realizes the following three capabilities:
[0044] (1) High-precision synchronization: ensuring precise time alignment between devices within the power system;
[0045] (2) Autonomous timekeeping: The device can adjust itself to maintain time synchronization and keep running even when the network connection is interrupted;
[0046] (3) Adapt to complex grid needs: meet the complex requirements of new power systems in terms of efficiency and reliability.
[0047] The present invention integrates a carrier communication circuit, a 1PPS interface circuit, an RS232 interface circuit, a temperature detection circuit, and a power supply circuit. The carrier MCU function can control carrier communication, 1PPS signal output, RS232 serial communication, and temperature acquisition. After receiving the time and frequency information of CCO through the carrier, the PPS and TOD signals are adjusted. The temperature detection circuit collects the crystal oscillator operating temperature of the carrier communication circuit through a high-precision temperature sensor, calibrates the clock signal in real time, and realizes high-precision synchronization and autonomous timekeeping functions.
[0048] like Figure 1 As shown, the basic structure and functional composition of a multifunctional time synchronization device are described. Figure 1 It is divided into four main parts: High-speed network: This part is responsible for handling high-speed data transmission and ensuring the fast and accurate transmission of time synchronization signals; Carrier network: Use power line carrier communication technology for time synchronization, a method of using power lines for data transmission, especially suitable for power grid applications; 1PPS interface: 1PPS (one pulse per second) is a commonly used time synchronization signal. This interface is responsible for receiving external 1PPS signals for calibrating and synchronizing the system's internal clock; RS232 interface: RS232 is a common serial communication interface used for system configuration, monitoring or communication with other devices.
[0049] These parts are connected and managed through internal logic, and finally receive synchronization signals transmitted through power lines for device time synchronization. The entire system is designed to improve the operating efficiency and reliability of the power grid and meet the high requirements of smart grid for time synchronization.
[0050] The parameters of the time-frequency device are as follows:
[0051] The relevant physical and environmental parameters are as follows:
[0052]
[0053] The main functions of the interface are as follows:
[0054]
[0055] The present invention realizes time synchronization and autonomous timekeeping, and the relevant process is as follows:
[0056] Time synchronization: The upper node is transmitted to the time synchronization device through class 1588. 1588 has two processes, one is frequency transmission and the other is time transmission. Frequency transmission is realized through the central beacon frame mechanism of HPLC itself, and time transmission is realized through the application layer protocol combined with the central beacon frame time. [Above 232 / (2.5E7) seconds are realized by application layer synchronization (corresponding to 32-bit counter, 25MHz crystal oscillator, about 171.8 seconds). Below this time resolution, the central beacon frame is directly used, and the central beacon frame can reach ±50us accuracy].
[0057] Autonomous timekeeping: When the time synchronization device is online, it reads the HPLC module frequency correction coefficient and crystal temperature. When it is offline, it performs correction based on the coefficient generated by the above data combined with the crystal temperature.
[0058] The tests of the device of the present invention in the laboratory and on-site have confirmed that under ideal conditions, time and frequency synchronization through carrier mode can achieve a synchronization accuracy of 1ms. At the same time, the frequency deviation measurement value of the carrier master module is basically consistent with the frequency deviation of the carrier slave module, which shows that the carrier time and frequency module can perform accurate frequency synchronization. In the offline state, the local self-timekeeping capability is better than 0.1s / day.
[0059] Embodiment 2:
[0060] The present invention also proposes a time synchronization method based on carrier communication, such as Figure 2 As shown, including:
[0061] Step 1: After receiving the time and frequency information of the CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system based on the carrier communication;
[0062] Step 2, controlling the RS232 interface circuit to receive a TOD signal from the power system;
[0063] Step 3, controlling the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit;
[0064] Step 4: Based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator, the time of each device in the power system is aligned and synchronized.
[0065] Wherein, data is transmitted between the carrier communication circuit and the temperature detection circuit via a high-speed network.
[0066] Among them, signals are transmitted between the carrier communication circuit and the 1PPS interface circuit and the RS232 interface circuit through the carrier network.
[0067] The method further includes: providing overload protection / short circuit protection / overheat protection for the time synchronization device through a power supply circuit.
[0068] Wherein, the 1PPS interface circuit includes: a 1PPS interface, and the 1PPS interface is used to receive a PPS signal.
[0069] The RS232 interface circuit includes: an RS232 interface, and the RS232 interface is used to receive a TOD signal.
[0070] The present invention can calibrate the clock signal in real time and realize high-precision synchronization and autonomous timekeeping functions.
[0071] Embodiment 3:
[0072] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of the method in the above embodiment.
[0073] Embodiment 4:
[0074] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both a built-in storage medium in a computer device and an extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of the method in the above embodiment.
[0075] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0076] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0079] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0080] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A time synchronization device based on carrier communication, It is characterized in that include: Carrier communication circuit, 1PPS interface circuit, RS232 interface circuit and temperature detection circuit; After receiving the time and frequency information of CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system, controls the RS232 interface circuit to receive the TOD signal of the power system, and controls the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit based on carrier communication, and aligns and synchronizes the time of each device inside the power system based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator.
2. The time synchronization device according to claim 1, It is characterized in that Data is transmitted between the carrier communication circuit and the temperature detection circuit via a high-speed network.
3. The time synchronization device according to claim 1, It is characterized in that Signals are transmitted between the carrier communication circuit and the 1PPS interface circuit and the RS232 interface circuit via a carrier network.
4. The time synchronization device according to claim 1, It is characterized in that Also includes: A power supply circuit is used to provide overload protection / short circuit protection / overheat protection for the time synchronization device.
5. The time synchronization device according to claim 1, It is characterized in that The 1PPS interface circuit comprises: a 1PPS interface, and the 1PPS interface is used to receive a PPS signal.
6. The time synchronization device according to claim 1, It is characterized in that The RS232 interface circuit comprises: an RS232 interface, and the RS232 interface is used to receive a TOD signal.
7. A time synchronization method based on carrier communication, It is characterized in that include: After receiving the time and frequency information of the CCO, the carrier communication circuit controls the 1PPS interface circuit to receive the PPS signal of the power system based on the carrier communication; Controlling the RS232 interface circuit to receive a TOD signal from a power system; Controlling the temperature detection circuit to detect the operating temperature of the crystal oscillator of the carrier communication circuit; Based on the PPS signal, TOD signal and the operating temperature of the crystal oscillator, the time of each device inside the power system is aligned and synchronized.
8. The time synchronization method according to claim 7, It is characterized in that Data is transmitted between the carrier communication circuit and the temperature detection circuit via a high-speed network.
9. The time synchronization method according to claim 7, It is characterized in that Signals are transmitted between the carrier communication circuit and the 1PPS interface circuit and the RS232 interface circuit via a carrier network.
10. The time synchronization method according to claim 7, It is characterized in that Also includes: The time synchronization device is provided with overload protection / short circuit protection / overheat protection through a power supply circuit.
11. The time synchronization method according to claim 7, characterized in that the 1PPS interface circuit, include: 1PPS interface, the 1PPS interface is used to receive a PPS signal.
12. The time synchronization method according to claim 7, It is characterized in that The RS232 interface circuit comprises: an RS232 interface, and the RS232 interface is used to receive a TOD signal.
13. A computer device, It is characterized in that include: one or more processors; a processor for executing one or more programs; When the one or more programs are executed by the one or more processors, the method according to any one of claims 7 to 12 is implemented.
14. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed, the method according to any one of claims 7 to 12 is implemented.
