[go: up one dir, main page]

CN113341680B - Time synchronization method and device for distribution Internet of things end device - Google Patents

Time synchronization method and device for distribution Internet of things end device Download PDF

Info

Publication number
CN113341680B
CN113341680B CN202110744911.5A CN202110744911A CN113341680B CN 113341680 B CN113341680 B CN 113341680B CN 202110744911 A CN202110744911 A CN 202110744911A CN 113341680 B CN113341680 B CN 113341680B
Authority
CN
China
Prior art keywords
time
voltage
time synchronization
monitoring terminal
low
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
CN202110744911.5A
Other languages
Chinese (zh)
Other versions
CN113341680A (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.)
Guangdong Power Grid Co Ltd
Jiangmen Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Jiangmen Power Supply Bureau of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Jiangmen Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202110744911.5A priority Critical patent/CN113341680B/en
Publication of CN113341680A publication Critical patent/CN113341680A/en
Application granted granted Critical
Publication of CN113341680B publication Critical patent/CN113341680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention provides a time synchronization method and device for distribution Internet of things end equipment, and belongs to the technical field of distribution and utilization Internet of things. The method comprises the following steps: firstly, second time synchronization is carried out on the low-voltage power distribution monitoring terminal to be subjected to time synchronization, secondly, second time synchronization is carried out on the low-voltage power distribution monitoring terminal to be subjected to time synchronization, time deviation is calculated according to the time recorded on one side of the low-voltage power distribution monitoring terminal to be subjected to time synchronization when the voltage phase is 0 degrees and the time recorded on one side of the previous stage of equipment, and finally, the time is corrected according to the time deviation. The method further corrects the reference time by combining the power frequency voltage, reduces errors, enables the time of each stage of end equipment to meet the time setting requirement, and solves the problem that the current time setting method does not meet the time setting requirement of the distribution Internet of things end equipment.

Description

Time synchronization method and device for distribution Internet of things end device
Technical Field
The invention belongs to the technical field of distribution and power utilization Internet of things, and particularly relates to a time synchronization method and device for distribution and power utilization Internet of things end equipment.
Background
Under the condition that the low-voltage distribution internet of things is continuously developed, in order to improve the operation reliability of a low-voltage distribution network, a large number of low-voltage monitoring terminals (LTUs) are installed on the low-voltage side of the distribution network to acquire data in real time, and the acquired data in real time are uploaded to a low-voltage distribution transformer terminal (transformer terminal unit, TTU) to be subjected to fusion analysis and then uploaded to a cloud. The acquired data needs certain time precision, and the end equipment needs to have time synchronization capability. Because the number of the low-voltage monitoring terminals is large and limited by cost, the scheme of directly adopting a GPS or Beidou module for time synchronization is not suitable. The accurate time synchronization protocol PTP used by the transformer substation is high in time synchronization cost and cannot be implemented in the distribution Internet of things. And the Network Time Protocol (NTP) in the TCP/IP protocol family is adopted to realize time synchronization between devices, which has a large time synchronization error and cannot meet the time synchronization requirement of the distribution internet of things end device.
Disclosure of Invention
In view of this, the invention aims to solve the problem that the existing time synchronization schemes cannot meet the time synchronization requirement of the distribution internet of things end equipment.
In order to solve the technical problems, the invention provides the following technical scheme:
in a first aspect, the present invention provides a time synchronization method for a distribution internet of things end device, including:
performing second time synchronization on the to-be-synchronized low-voltage power distribution monitoring terminal and the previous-stage equipment at a preset time within minutes, and taking the time of the previous-stage equipment as the reference time of the to-be-synchronized low-voltage power distribution monitoring terminal;
the method comprises the steps that a to-be-time-tick low-voltage power distribution monitoring terminal detects the phase of a phase voltage according to a time tick starting command within a second, records the local time when the first voltage phase is 0 degrees, and records the local time as first local time, wherein the time tick starting command within the second is sent by a previous-stage device at a second local time, and the second local time is the local time recorded when the previous-stage device detects the phase of the phase voltage to be 0 degrees;
the low-voltage power distribution monitoring terminal to be synchronized sends the first local time to the upper-level equipment, so that the upper-level equipment can calculate time deviation based on the first local time and the third local time and send the time deviation to the low-voltage power distribution monitoring terminal to be synchronized, and the third local time is the local time when the first voltage phase detected by the upper-level equipment after the second local time is 0 degrees;
and correcting the reference time and stopping detecting the phase by the low-voltage power distribution monitoring terminal to be synchronized according to the time deviation.
Further, before the low voltage distribution monitor terminal corrects the reference time and stops detecting the phase according to the time deviation, the method further comprises:
s1: judging whether the time deviation is smaller than a preset time threshold value, if so, correcting the reference time and stopping detecting the phase by the to-be-timed low-voltage power distribution monitoring terminal according to the time deviation, and if not, executing the step S2;
s2: repeatedly executing the phase of the phase voltage detected by the to-be-synchronized low-voltage power distribution monitoring terminal according to the time synchronization starting command within seconds, recording the local time when the voltage phase is 0 degrees, and recording the local time as the first local time and the subsequent steps until 3 continuous time deviations are obtained;
s3: and judging whether the difference value between any time deviation of the continuous 3-time deviations and the average value of the continuous 3-time deviations is less than 4ms, if so, correcting the time-setting low-voltage power distribution monitoring terminal according to the 3 rd time deviation and stopping detecting the phase, otherwise, adding the time-setting failure counter and returning to the step S2, and if the time-setting failure counter is more than 3, stopping time setting and giving an alarm.
Further, when the low-voltage power distribution monitoring terminal to be synchronized is a first-level low-voltage power distribution monitoring terminal, the upper-level equipment is a distribution transformer monitoring terminal or an edge computing gateway.
Furthermore, the distribution transformer monitoring terminal and the edge computing gateway are used for carrying out time synchronization through a GPS.
Further, the time offset is calculated by the following formula:
δ=T1-T1 *
where δ is the time offset, T1Is the third local time, T1 *Is the first local time.
Further, when the time synchronization is performed on the low-voltage power distribution monitoring terminal to be synchronized with the previous-stage device within a preset time of minutes, the specific time synchronization is as follows:
the upper-level equipment sends a second time-tick data packet when the whole 10 seconds in the minute start;
and the time synchronization is carried out on the data packet according to the second time synchronization by the time synchronization low-voltage power distribution monitoring terminal.
Further, the time information in the second time-tick data packet is represented by the Unix time stamp second number.
Furthermore, the low-voltage power distribution monitoring terminal to be synchronized is in communication connection with the upper-level equipment through a Wifi channel.
In a second aspect, the present application provides a time synchronization device for a distribution internet of things end device, where the device includes a processor and a memory:
the memory is used for storing the computer program and sending the instructions of the computer program to the processor;
the processor executes a time synchronization method for the distribution internet of things end device according to the first aspect according to the instructions of the computer program.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a time synchronization method for a power distribution internet of things end device according to the first aspect.
In summary, the present invention provides a time synchronization method and device for distribution internet of things end devices, which are used for performing time synchronization on low-voltage distribution monitoring terminals at each level. In the method, the low-voltage power distribution monitoring terminal to be subjected to time synchronization firstly obtains reference time from the upper-stage low-voltage power distribution monitoring terminal, then time synchronization within seconds is carried out according to the time synchronization starting command of the upper-stage low-voltage power distribution monitoring terminal, namely, the phase of phase voltage is detected by the low-voltage power distribution monitoring terminal to be subjected to time synchronization and the upper-stage low-voltage power distribution monitoring terminal, and when the phase of the voltage is 0 degree, local time is recorded simultaneously. And the local time recorded by the low-voltage power distribution monitoring terminal to be timed is sent to the upper-stage low-voltage power distribution monitoring terminal by the low-voltage power distribution monitoring terminal to be timed, the time deviation is calculated, and finally the reference time of the low-voltage power distribution monitoring terminal to be timed is corrected according to the time deviation and then the phase detection is stopped. According to the method, on the basis that the reference time is obtained by the low-voltage distribution monitoring terminals at all levels, the reference time is further corrected by combining the power frequency voltage, so that errors are reduced, and the time of the equipment at all levels can meet the time setting requirement.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a time synchronization method for a distribution internet of things end device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a low-voltage power distribution internet of things monitoring system adopting WIFI communication according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a time synchronization process according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a typical low-voltage distribution internet of things monitoring system provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 4, fig. 4 is a typical low-voltage distribution internet of things monitoring system. For a low-voltage distribution internet of things, the low-voltage distribution internet of things mainly monitors a distribution transformer and a low-voltage side 400V outgoing line thereof, the outgoing line of the low-voltage side of the distribution transformer is generally a radial line, and low-voltage distribution monitoring terminals LTU are respectively installed at all levels. A distribution transformer monitoring terminal TTU (or an edge computing gateway GW) is installed on the side of a distribution transformer, and the TTU collects LTU data and uploads the LTU data to a cloud master station.
Referring to fig. 1 to 3, the present embodiment provides a time synchronization method for distribution internet of things end equipment, including the following steps:
s101: and performing second time synchronization on the preset time within minutes of the to-be-time-synchronized low-voltage power distribution monitoring terminal and the previous-stage equipment so as to take the time of the previous-stage equipment as the reference time of the to-be-time-synchronized low-voltage power distribution monitoring terminal.
It should be noted that, the previous-stage device refers to a previous-stage device adjacent to the low-voltage power distribution monitoring terminal to be synchronized, and the difference between the previous-stage device and the current-low voltage power distribution monitoring terminal is only one stage. When the upper-level low-voltage power distribution monitoring terminal is the first-level low-voltage power distribution monitoring terminal, the second time synchronization is carried out between the upper-level low-voltage power distribution monitoring terminal and the upper-level equipment (including the distribution transformer monitoring terminal TTU and the edge computing gateway GW) at a first preset time within a minute. All can communicate through WIFI between the equipment of each level. And the distribution transformer monitoring terminal and the edge computing gateway can carry out time synchronization through a GPS or other time synchronization methods.
The second time setting specifically means that the superior device sends a second time setting data packet to the subordinate device at a preset time within minutes, and the subordinate device performs second time setting according to time information in the second time setting data packet. In order to reduce the transmission delay of the data packet, the time information is expressed by Unix timestamp seconds.
Taking the structure shown in fig. 4 as an example, specifically, the TTU (or GW) performs second time synchronization between each level of devices, and sends a second time synchronization packet to the first-level LTU when the whole 10 seconds of the first-level LTU start in a minute (i.e., a first preset time in the minute), so that the time of the TTU (or GW) is used as the reference time of the first-level LTU of the next level; the first-stage LTU sends a second time-tick data packet to the second-stage LTU when the whole 20 seconds in the minute begin; the other stages are similar, but each stage is delayed by 10 seconds compared with the previous stage, and the LTU of the previous stage is used as the reference time of the LTU of the next stage. The configuration of the LTU of the general common low-voltage power distribution Internet of things does not exceed 5 levels.
S102: and the low-voltage power distribution monitoring terminal detects the phase of the phase voltage according to the time synchronization starting command within a second, records the local time when the first voltage phase is 0 degrees, and records the local time as the first local time, the time synchronization starting command within the second is sent by the previous-stage equipment at the second local time, and the second local time is the local time recorded when the previous-stage equipment detects the phase voltage when the phase is 0 degrees.
It should be noted that time synchronization in seconds is performed between the two levels of low-voltage distribution monitoring terminals, and after the next-level device acquires the reference time, time synchronization in seconds can be prepared to start so that the next-level device can correct the reference time.
Referring to fig. 3, when the phase of the phase voltage detected by the nth-stage low-voltage distribution monitoring terminal is 0 ° in seconds, that is, when the instantaneous value of the voltage changes from negative half cycle to positive half cycle, the time is T0(i.e., second local time), device LTUnSending time setting starting command in second to LTUn+1,LTUn+1At a local time T according to the commanda *Phase voltage phase detection is started. At this time, the equipment LTUnAnd equipment LTUn+1Are detecting the phase of the in-phase voltage. LTU when the first voltage phase is 0 degnRecords its local time T1,LTUn+1Records its local time T1 *
S103: and the third local time is the local time when the first voltage phase detected by the previous equipment after the second local time is 0 degrees.
Note that LTUnAt T2Time of day T1 *After calculating the time deviation at T3Sends it to the LTU at a timen+1. Namely, the upper-level low-voltage distribution monitoring terminal calculates the time deviation according to the following formula
δ=T1-T1 * (1)
In the formula, delta isMean deviation, T1Is the third local time, T1 *Is the first local time.
S104: and correcting the reference time and stopping detecting the phase by the low-voltage power distribution monitoring terminal to be synchronized according to the time deviation.
The embodiment provides a time synchronization method for distribution internet of things end equipment, which is used for time synchronization of low-voltage distribution monitoring terminals at all levels. In the method, the low-voltage power distribution monitoring terminal to be subjected to time synchronization firstly obtains reference time from the upper-level equipment, namely the upper-level low-voltage power distribution monitoring terminal or TTU (or GW), then the time synchronization is carried out within seconds according to the time synchronization starting command of the upper-level low-voltage power distribution monitoring terminal, namely the phase of phase voltage is detected by the low-voltage power distribution monitoring terminal to be subjected to time synchronization and the upper-level low-voltage power distribution monitoring terminal, and when the phase of the voltage is 0 degree, the local time is recorded at the same time. And the local time recorded by the low-voltage power distribution monitoring terminal to be timed is sent to the upper-stage low-voltage power distribution monitoring terminal by the low-voltage power distribution monitoring terminal to be timed, the time deviation is calculated, and finally the reference time of the low-voltage power distribution monitoring terminal to be timed is corrected according to the time deviation and then the phase detection is stopped. The method comprises the steps that the time of the TTU (or GW) is timed through a GPS (global positioning system) or other time timing methods, the time of the TTU (or GW) is used as the reference time to time of the next-stage LTU, and the time of the next-stage LTU is timed by the next-stage LTU. The communication mode adopts Wifi, a communication channel, time information interaction and control commands. Due to the fact that the Wifi communication has a certain time delay, the time synchronization precision cannot be guaranteed, and the time synchronization time is determined by the aid of power frequency voltage. For a low-voltage distribution line, the line length is short, the voltage phase difference of each stage of LTU sampling is small, and the voltage zero crossing point can be used as a relative time point. In addition, the steepness of the zero crossing point of the voltage waveform is the largest, so that detection is facilitated, and detection errors can be reduced.
The above is a detailed description of an embodiment of a time synchronization method for a distribution internet of things end device provided by the present invention, and the following is a detailed description of another embodiment of a time synchronization method for a distribution internet of things end device provided by the present invention.
The embodiment provides a time synchronization method for distribution Internet of things end equipment, which comprises the following steps of
S201: and performing second time synchronization on the preset time within minutes of the to-be-time-synchronized low-voltage power distribution monitoring terminal and the previous-stage equipment so as to take the time of the previous-stage equipment as the reference time of the to-be-time-synchronized low-voltage power distribution monitoring terminal.
It is understood that the specific implementation of this step is the same as step S101, and is not described herein again.
S202: and the low-voltage power distribution monitoring terminal detects the phase of the phase voltage according to the time synchronization starting command within a second, records the local time when the first voltage phase is 0 degrees, and records the local time as the first local time, the time synchronization starting command within the second is sent by the previous-stage equipment at the second local time, and the second local time is the local time recorded when the previous-stage equipment detects the phase voltage when the phase is 0 degrees.
It is understood that the specific implementation of this step is the same as step S102, and is not described herein again.
S203: and the low-voltage power distribution monitoring terminal to be synchronized sends the first local time to the upper-level equipment, so that the upper-level equipment calculates the time deviation based on the first local time and the third local time and sends the time deviation to the low-voltage power distribution monitoring terminal to be synchronized, and the third local time is the local time when the first voltage phase detected by the upper-level equipment after the second local time is 0 degree.
It is understood that the specific implementation of this step is the same as step S103, and is not described herein again.
S204: and judging whether the time deviation is smaller than a preset time threshold, if so, executing a step S2041, and if not, executing a step S2042 and subsequent steps.
It should be noted that the preset time threshold may be set to 20 ms.
S2041: and correcting the reference time and stopping detecting the phase by the low-voltage power distribution monitoring terminal to be synchronized according to the time deviation.
S2042: and repeatedly executing the phase of the phase voltage detected by the to-be-synchronized low-voltage power distribution monitoring terminal according to the time synchronization starting command within seconds, recording the local time when the voltage phase is 0 degrees, and recording the local time as the first local time and the subsequent steps until 3 continuous time deviations are obtained.
S205: and judging whether the difference value between any time deviation of the continuous 3-time deviations and the average value of the continuous 3-time deviations is less than 4ms, if so, correcting the time synchronization low-voltage power distribution monitoring terminal according to the 3 rd time deviation and stopping detecting the phase, otherwise, adding the time synchronization failure counter and returning to the step S2042, and if the time synchronization failure counter is more than 3, stopping time synchronization and giving an alarm.
It should be noted that, when the time deviation is calculated each time, the time when the voltage phase of the low-voltage power distribution monitoring terminal to be synchronized and the previous device thereof are 0 ° needs to be recorded again, the time is continuously recorded three times, and 3 time deviations are calculated. If the average of 3 time deviations
Figure BDA0003142420870000071
Satisfy the requirements of
Figure BDA0003142420870000072
The last time of time deviation is sent to the low-voltage distribution monitoring terminal to be synchronized by the previous-stage equipment so as to correct the time deviation and stop detecting the voltage phase deltanIs any one time deviation of 3 continuous time deviations.
In addition, in order to prevent the failure of time setting caused by the failure from failing to time setting all the time and falling into endless loop, the embodiment further introduces a time setting failure counter. Mean value of 3 time deviations
Figure BDA0003142420870000073
If the formula (2) is not satisfied, it is considered that the Wifi communication delay in the above process certainly exceeds the estimated time, the current time synchronization is abandoned, and the time synchronization failure counter faileddcount is 1. If the formula (2) is satisfied, ending and resetting the failure time setting counter FailedCount; and if the formula (2) is still not satisfied, accumulating the FailedCount which is a time-setting failure counter. And repeating the process, and stopping time setting operation and alarming when the FailedCount is greater than 3.
The embodiment provides a time synchronization method for distribution Internet of things end equipment, which is characterized in that whether time deviation meets requirements or not is further judged on the basis of combining wifi time synchronization and power frequency voltage timing, time correction is carried out if the time deviation meets the requirements, time when the continuous three-time voltage phase is 0 degrees is further collected and corresponding time deviation is calculated if the time deviation does not meet the requirements, time correction is carried out when certain requirements are met, otherwise time synchronization failure is considered and an alarm is sent out. The method can not only correct the time of wifi time correction, but also judge whether the correction meets the requirements. And the error of each stage of equipment is prevented, so that other errors occur in the corrected time.
This embodiment is described in further detail below with reference to the structure shown in fig. 4.
Fig. 4 shows a typical low-voltage distribution internet of things monitoring system, wherein an edge computing gateway GW is installed on a distribution transformer side, and low-voltage distribution monitoring terminals LTU are respectively installed at switches of each level of a low-voltage line. The communication mode adopts a Wifi communication mode, and the edge computing gateway and the LTU are both in the same WIFI local area network.
1) And time synchronization is carried out on the edge computing gateway GW through a GPS or other time synchronization methods.
2) Through a WIFI channel, the GW sends a second-time-pair data packet to the first-stage LTU at the beginning of the whole 10 seconds in a minute, and in order to reduce the transmission delay of the data packet, time information is expressed by Unix timestamp seconds; the first level sends a second time tick data packet to the second level when the whole 20 seconds in the minute begin; the other stages are similar, but each stage is delayed by 10 seconds from the previous stage.
3) The GW starts intra-second pairing of the next level LTU1 device. The device GW detects the phase of the phase voltage, and when the voltage phase is 0o, that is, when the voltage instantaneous value changes from the negative half cycle to the positive half cycle, the device GW transmits a time tick start command to the first stage LTU1, which starts phase voltage phase detection.
4) The devices GW and LTU1 simultaneously detect the phase of the in-phase voltage, GW noting its local time T1 and LTU1 noting its local time T when the first voltage phase is 0 °1 *. Local time when LTU1 will recordInter T1 *And is sent to the GW.
And the GW calculates the time deviation: delta-T1-T1 *. If the time offset δ is less than 20ms, the GW sends the time offset δ to the LTU 1. LTU1 performs time offset correction and stops detecting voltage phase.
5) If the time deviation delta is more than or equal to 20ms, repeating the calculating step (3), continuing for 3 times and calculating the average value of the time deviation
Figure BDA0003142420870000081
If it is not
Figure BDA0003142420870000082
GW transmits the last time offset δ to LTU1, LTU1 performs time offset correction and stops detecting the voltage phase.
6) If not satisfied
Figure BDA0003142420870000083
If the Wifi communication delay exceeds the estimated time, the current time synchronization is abandoned, and the failure time synchronization counter FailedCount is 1. Continuing with steps 4 and 5, if the formula is satisfied
Figure BDA0003142420870000084
Ending and resetting the FailedCount counter; if the formula is still not satisfied
Figure BDA0003142420870000085
The time tick failure counter FailedCount is incremented. And repeating the process, and stopping time setting operation and alarming when the FailedCount is greater than 3.
7) If the LTU1 is successful in time synchronization, the LTU1 continues to time synchronization of the next-stage LTU, and the last-stage LTU is reached by stage time synchronization.
The above is a detailed description of an embodiment of a time synchronization method for a distribution internet of things end device provided by the present invention, and the following is a detailed description of an embodiment of a time synchronization device for a distribution internet of things end device provided by the present invention.
The embodiment provides a time synchronization device for distribution internet of things end equipment, and the equipment comprises a processor and a memory:
the memory is used for storing the computer program and sending the instructions of the computer program to the processor;
the processor executes a time synchronization method for the distribution internet of things end device according to the foregoing embodiments according to instructions of the computer program.
The above is a detailed description of an embodiment of a time synchronization device for a distribution internet of things end device provided by the present invention, and the following is a detailed description of an embodiment of a computer readable storage medium provided by the present invention.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a time synchronization method for a power distribution internet of things end device according to the foregoing embodiments.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A time synchronization method for distribution Internet of things end equipment is characterized by comprising the following steps:
the method comprises the steps that a time synchronization low-voltage power distribution monitoring terminal is subjected to second time synchronization with a previous-stage device at a preset time within minutes, the time of the previous-stage device is used as the reference time of the time synchronization low-voltage power distribution monitoring terminal, the second time synchronization specifically means that the previous-stage device sends a second time synchronization data packet to a next-stage device at the preset time within minutes, and the next-stage device carries out second time synchronization according to time information in the second time synchronization data packet;
the low-voltage power supply for time synchronizationThe electric monitoring terminal detects the phase of a phase voltage according to a time synchronization starting command in seconds, records the local time when the phase of a first voltage is 0 degrees, records the local time as first local time, the time synchronization starting command in seconds is sent by the previous-stage equipment at a second local time, the second local time is the local time recorded when the phase of the phase voltage detected by the previous-stage equipment is 0 degrees, the time synchronization in seconds specifically refers to the phase of the phase voltage detected by the nth-stage low-voltage distribution monitoring terminal, and when the phase of the voltage is 0 degrees, namely when the instantaneous value of the voltage changes from negative half cycle to positive half cycle, the moment is T0Device LTUnSending time setting starting command in second to LTUn+1,LTUn+1At local time according to the command
Figure FDA0003548101130000011
Starting phase voltage phase detection;
the to-be-synchronized low-voltage power distribution monitoring terminal sends the first local time to the upper-level equipment, so that the upper-level equipment can calculate time deviation based on the first local time and a third local time and send the time deviation to the to-be-synchronized low-voltage power distribution monitoring terminal, wherein the third local time is the local time when a first voltage phase detected by the upper-level equipment after the second local time is 0 degree;
and the to-be-timed low-voltage power distribution monitoring terminal corrects the reference time according to the time deviation and stops detecting the phase.
2. The time synchronization method for the distribution internet of things end equipment according to claim 1, wherein before the time synchronization low-voltage distribution monitoring terminal corrects the reference time according to the time deviation and stops detecting the phase, the method further comprises:
s1: judging whether the time deviation is smaller than a preset time threshold value, if so, correcting the reference time and stopping detecting the phase by the to-be-timed low-voltage power distribution monitoring terminal according to the time deviation, and if not, executing the step S2;
s2: repeatedly executing the phase of the phase voltage detected by the to-be-synchronized low-voltage power distribution monitoring terminal according to the to-be-synchronized starting command within seconds, recording the local time when the voltage phase is 0 degrees, and recording the local time as the first local time and the subsequent steps until 3 continuous time deviations are obtained;
s3: and judging whether the difference value between any time deviation of the continuous 3-time deviations and the average value of the continuous 3-time deviations is less than 4ms, if so, correcting the time synchronization low-voltage power distribution monitoring terminal according to the 3 rd time deviation and stopping detecting the phase, otherwise, adding the time synchronization failure counter and returning to the step S2, and if not, stopping time synchronization and giving an alarm.
3. The method according to claim 1, wherein when the low-voltage power distribution monitoring terminal to be synchronized is a first-stage low-voltage power distribution monitoring terminal, the higher-stage device is specifically a distribution transformer monitoring terminal or an edge computing gateway.
4. The time synchronization method for the distribution internet of things end equipment according to claim 3, wherein the distribution transformer monitoring terminal and the edge computing gateway are time synchronized through a GPS.
5. The time synchronization method for the distribution internet of things end equipment according to claim 1, wherein the time deviation is calculated by the following formula:
δ=T1-T1 *
where δ is the time offset, T1Is the third local time, T1 *Is the first local time.
6. The time synchronization method for the distribution internet of things end equipment according to claim 1, wherein the second time synchronization between the preset time in a minute and the previous level equipment by the to-be-time-synchronized low-voltage distribution monitoring terminal is specifically that:
the upper-level equipment sends a second time-tick data packet at the beginning of the whole 10 seconds in the minute;
and the time synchronization low-voltage power distribution monitoring terminal performs time synchronization for the second according to the time synchronization data packet for the second.
7. The time synchronization method for the distribution internet of things end equipment as claimed in claim 6, wherein the time information in the second time synchronization data packet is expressed by Unix timestamp seconds.
8. The time synchronization method for the distribution internet of things end equipment as claimed in claim 1, wherein the low voltage distribution monitoring terminal to be time synchronized is connected with the upper level equipment through Wifi channel communication.
9. A time tick device for a distribution internet of things end device, the device comprising a processor and a memory:
the memory is used for storing a computer program and sending instructions of the computer program to the processor;
the processor executes a time synchronization method for an electric distribution internet of things end device according to any one of claims 1 to 8 according to instructions of the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for time synchronization of an electric distribution internet of things end device according to any one of claims 1 to 8.
CN202110744911.5A 2021-06-30 2021-06-30 Time synchronization method and device for distribution Internet of things end device Active CN113341680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110744911.5A CN113341680B (en) 2021-06-30 2021-06-30 Time synchronization method and device for distribution Internet of things end device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110744911.5A CN113341680B (en) 2021-06-30 2021-06-30 Time synchronization method and device for distribution Internet of things end device

Publications (2)

Publication Number Publication Date
CN113341680A CN113341680A (en) 2021-09-03
CN113341680B true CN113341680B (en) 2022-05-27

Family

ID=77482062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110744911.5A Active CN113341680B (en) 2021-06-30 2021-06-30 Time synchronization method and device for distribution Internet of things end device

Country Status (1)

Country Link
CN (1) CN113341680B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014093540A (en) * 2012-10-31 2014-05-19 Fujitsu Ltd Communication device and synchronization method
CN106230537A (en) * 2016-07-18 2016-12-14 广东电网有限责任公司电力调度控制中心 The method of data synchronization of a kind of intelligent substation and device
CN108964820A (en) * 2017-05-24 2018-12-07 中兴通讯股份有限公司 A kind of clock processing method, device and PTP equipment
CN110209044A (en) * 2019-07-05 2019-09-06 齐鲁工业大学 A kind of distribution terminal time synchronization method compared using power grid power frequency component periodic quantity
CN111654347A (en) * 2020-05-15 2020-09-11 威胜信息技术股份有限公司 Time synchronization method and system for distribution transformer terminal by using transient characteristic signal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2462825A1 (en) * 1979-07-27 1981-02-13 Thomson Csf METHOD AND DEVICE FOR SETTING UP A LOCAL CLOCK
IT1276166B1 (en) * 1995-11-24 1997-10-27 Alcatel Italia METHOD AND NETWORK NODE FOR THE RESYNCHRONIZATION OF FRAMES IN A SYNCHRONOUS DIGITAL TRANSMISSION SYSTEM
CN101582690B (en) * 2009-06-26 2012-01-11 江苏北斗科技有限公司 Oscillator disciplining system for satellite clock device of power system
CN104483596B (en) * 2014-12-11 2016-06-08 广东电网有限责任公司电力调度控制中心 Circuit two ends protection time irreversibility time fault information association method and system
CN107086895B (en) * 2017-06-09 2018-11-30 上海胜战科技发展有限公司 High-accuracy network time service method based on alternating supply voltage phase difference correction
CN107566072B (en) * 2017-10-24 2019-02-22 广东电网有限责任公司电力调度控制中心 A kind of secondary device clock synchronizing method based on dual time correction
CN111698051B (en) * 2020-06-09 2022-05-20 山东科汇电力自动化股份有限公司 Time synchronization method for low-voltage distribution network
CN112491015B (en) * 2020-11-10 2022-12-13 深圳供电局有限公司 A Time Synchronization Method Applicable to Distribution Network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014093540A (en) * 2012-10-31 2014-05-19 Fujitsu Ltd Communication device and synchronization method
CN106230537A (en) * 2016-07-18 2016-12-14 广东电网有限责任公司电力调度控制中心 The method of data synchronization of a kind of intelligent substation and device
CN108964820A (en) * 2017-05-24 2018-12-07 中兴通讯股份有限公司 A kind of clock processing method, device and PTP equipment
CN110209044A (en) * 2019-07-05 2019-09-06 齐鲁工业大学 A kind of distribution terminal time synchronization method compared using power grid power frequency component periodic quantity
CN111654347A (en) * 2020-05-15 2020-09-11 威胜信息技术股份有限公司 Time synchronization method and system for distribution transformer terminal by using transient characteristic signal

Also Published As

Publication number Publication date
CN113341680A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
US8392730B2 (en) Current sharing method of DC power supply and device thereof
CN107819537A (en) It is a kind of based on synchronous closed loop monitoring electric substation automation system pair when method of calibration
WO2017101528A1 (en) Method and device for clock link switching and base station
CN105577349A (en) Airborne network IEEE1588 protocol master-slave clock port synchronization method
WO2017032113A1 (en) Method and apparatus for measuring time synchronization deviation
CN108599888A (en) A kind of distributed network clock synchronizing system
CN107395307B (en) A kind of clock synchronizing method and equipment
CN104579623A (en) Network time-setting system and method for secondary equipment of electric power system
CN110798276A (en) A time synchronization method and system for SDN network of intelligent substation
WO2019242321A1 (en) Time synchronization method, device, network device and computer readable storage medium
CN114157377B (en) Power distribution terminal real-time clock synchronization method, synchronization system and power distribution terminal
JP6186978B2 (en) Protection monitoring control system
CN114726471A (en) Method and device for precise synchronization of power distribution field network clock based on HPLC
CN113341680B (en) Time synchronization method and device for distribution Internet of things end device
CN103560486B (en) Be applicable to the voltage Phase-Locked Synchronous networking method of sampling of transformer differential protection
CN103595582B (en) High-accuracy synchronous system detection device applied to intelligent transformer substation
CN106647228B (en) A fault judgment system for the master clock of a converter station
CN110988599B (en) Distributed wave recording high-precision synchronization method for power distribution fault indicator
CN103888238A (en) Method and device for multi-SV-link data synchronization based on network compensation
CN103945522A (en) Time synchronizing method of wireless sensor network based on voltage sensing
CN114978399A (en) Clock edge management method, system and storage medium based on HPLC communication network
CN111929491A (en) Transmission line sampling synchronization method and system based on Taylor root-like power theorem
CN110209044A (en) A kind of distribution terminal time synchronization method compared using power grid power frequency component periodic quantity
CN111697541A (en) Power distribution network line current differential protection synchronization method and system
CN106385299A (en) Master-slave clock synchronization method of maintenance service class information background flow of intelligent substation

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