WO2017101484A1 - Dispositif et procédé de synchronisation temporelle - Google Patents

Dispositif et procédé de synchronisation temporelle Download PDF

Info

Publication number
WO2017101484A1
WO2017101484A1 PCT/CN2016/095861 CN2016095861W WO2017101484A1 WO 2017101484 A1 WO2017101484 A1 WO 2017101484A1 CN 2016095861 W CN2016095861 W CN 2016095861W WO 2017101484 A1 WO2017101484 A1 WO 2017101484A1
Authority
WO
WIPO (PCT)
Prior art keywords
time information
time
data packet
synchronization
information data
Prior art date
Application number
PCT/CN2016/095861
Other languages
English (en)
Chinese (zh)
Inventor
汪立林
万娟
余金清
王仰锋
章伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017101484A1 publication Critical patent/WO2017101484A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation

Definitions

  • the present application relates to, but is not limited to, the field of mobile communication technologies, and in particular, to a time synchronization method and apparatus.
  • base station equipment mainly adopts GNSS (Global Navigation Satellite System) or IEEE 1588 (Institute of Electrical and Electronics Engineers 1588), Institute of Electrical and Electronics Engineers 1588 protocol, which is a precision clock synchronization protocol for network measurement and control systems. Standard) for time synchronization.
  • GNSS Global Navigation Satellite System
  • IEEE 1588 Institute of Electrical and Electronics Engineers 1588
  • IEEE 1588 Institute of Electrical and Electronics Engineers 1588 protocol
  • the GNSS system refers to all satellite navigation systems, including global, regional and enhanced, such as the US GPS, Russia's Glonass, Europe's Galileo, China's Beidou satellite navigation system, and related augmentation systems, such as the United States WAAS (Wide Area Augmentation System), Europe's EGNOS (European Static Navigation Overlay System) and Japan's MSAS (Multifunctional Transport Satellite Augmentation System) also cover other satellite navigation systems under construction and in the future.
  • WAAS Wide Area Augmentation System
  • EGNOS European Static Navigation Overlay System
  • MSAS Multifunctional Transport Satellite Augmentation System
  • the GNSS system is a complex system with multiple systems, multiple layers and multiple modes.
  • the time precision is high, but the hardware equipment costs are high, and additional antennas need to be set up, and factors such as base station location selection, ease of laying of the feeder cable, installation cost, etc., are considered, and engineering maintenance is difficult. . Therefore, if the base stations all use the GNSS system for time synchronization, high base station networking engineering costs and maintenance costs are incurred.
  • IEEE 1588 has high time precision and requires no additional clock lines. It uses Ethernet data lines to transmit clock signals, which simplifies the connection of base stations and reduces engineering and maintenance costs. However, because IEEE 1588 uses Ethernet for information transmission, the accuracy of time synchronization is affected by the networking environment, which limits the application scenarios. For example, if information is transmitted over multiple exchanges, forwarding, or networking within a network. Road blocking will seriously affect the time synchronization accuracy of IEEE 1588.
  • the present application provides a time synchronization method and device, which is to solve the technical problem that the base station equipment performs time synchronization, which is time-synchronized, resulting in high engineering and maintenance costs and limited networking environment.
  • the application provides a time synchronization method, the time synchronization method comprising the following steps:
  • the receiving side initiates time synchronization according to the acquired time information.
  • the sending side fragment sends the time information data packet
  • the receiving side receives the time information data packet sent by the sending side, where:
  • the receiving side receives the time information data packet fragment sent by the transmitting side, and reloads it into a time information data packet.
  • the step of the receiving side verifying the time information data packet and acquiring the time information according to the time information data packet comprises:
  • the receiving side checks whether the time information data packet is correct and complete
  • the message payload is obtained according to the time information data packet, and time information is obtained, where the message payload includes the time information.
  • the time information data packet includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field, and the receiving side checks whether the time information data packet is correct and complete.
  • the steps include:
  • the receiving side checks whether the time information data packet is correct according to the frame header, and checks whether the time information data packet is correct according to the message header, according to the message length field and the message payload check. Whether the time information data packet is complete, and verifying whether the time information data packet is complete according to the message payload and the frame check sequence field;
  • header check is correct, and the header check is correct, and the message length field and the message payload check are complete, and the message payload and the frame check sequence check If complete, it is determined that the time information packet is correct and complete.
  • the method further includes:
  • the receiving side discards the time information data packet.
  • the sending side fragment sends the time information data packet
  • the message header of the time information data packet carries a period number of the current time synchronization
  • the receiving side verifies the time information data.
  • the method further includes:
  • the receiving side does not initiate time synchronization.
  • the time synchronization includes absolute time synchronization and/or second pulse synchronization
  • the step of the receiving side initiating time synchronization according to the acquired time information includes:
  • time information satisfies a preset condition for initiating time synchronization, absolute time synchronization and/or second pulse synchronization is initiated.
  • the step of initiating absolute time synchronization and/or second pulse synchronization includes:
  • the receiving side initiates absolute time synchronization according to the time information
  • the step of adjusting the local clock frequency of the receiving side according to the second pulse signal of the transmitting side, and starting the second pulse synchronization comprises:
  • phase deviation value exceeds a preset deviation threshold, adjusting a local clock frequency of the receiving side according to the phase deviation value, acquiring a second pulse signal adjusted by the receiving side, and transferring to an execution step: according to the Decoding a second pulse signal on the transmitting side, and acquiring a phase deviation value from the local second pulse signal on the receiving side;
  • phase deviation value does not exceed the preset deviation threshold, it is determined that the second second pulse synchronization is completed.
  • the application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • the present application also provides a time synchronization device, where the time synchronization device includes:
  • a receiving module configured to receive a time information data packet sent by the transmitting side
  • An information module configured to verify the time information data packet, and obtain time information according to the time information data packet
  • the synchronization module is configured to initiate time synchronization according to the acquired time information.
  • the sending side fragment sends the time information data packet
  • the receiving module is further configured to:
  • the time information packet sent by the transmitting side is fragmented and reloaded as a time information packet.
  • the information module includes:
  • a verification unit configured to verify whether the time information packet is correct and complete
  • an information unit configured to: if the time data packet is correct and complete, obtain a message payload according to the time information data packet, and obtain time information, where the message payload includes the time information.
  • the time information data packet includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field, and the check unit is further configured to
  • header check is correct, and the header check is correct, and the message length field and the message payload check are complete, and the message payload and the frame check sequence check If complete, it is determined that the time information packet is correct and complete.
  • the time synchronization device further includes:
  • the discarding module is configured to discard the time information data packet if the time information data packet is incorrect or incomplete.
  • the sending side fragment sends the time information data packet
  • the message header of the time information data packet carries a period number of the current time synchronization
  • the checking unit is further configured to
  • the time synchronization device further includes:
  • the quality check module is configured to: according to the cycle number, obtain a packet loss rate of the time information data packet in a preset quality detection period; if the packet loss rate of the information data packet is greater than a preset threshold, the quality check module does not initiate Time synchronization.
  • the time synchronization includes absolute time synchronization and/or second pulse synchronization
  • the synchronization module includes:
  • condition unit configured to determine whether the time information meets a preset condition for initiating time synchronization
  • the synchronization unit is configured to initiate absolute time synchronization and/or second pulse synchronization if the time information satisfies a preset condition for initiating time synchronization.
  • the synchronization unit comprises:
  • An absolute time synchronization sub-unit is configured to initiate an absolute time synchronization according to the time information if the time information satisfies a preset condition for initiating time synchronization;
  • the second pulse synchronization subunit is configured to recover the second pulse signal of the transmitting side according to the time information data packet sent by the transmitting side, and adjust the local clock frequency according to the second pulse signal of the transmitting side to initiate the second pulse synchronization.
  • the second pulse synchronization subunit is set to,
  • phase deviation value exceeds a preset deviation threshold, adjusting a local clock frequency according to the phase deviation value to obtain an adjusted second pulse signal;
  • phase deviation value does not exceed the preset deviation threshold, it is determined that the second second pulse synchronization is completed.
  • a time synchronization method and apparatus receives a time information data packet sent by a transmitting side by a receiving side, a time information data packet obtained by a receiving side check, and acquires time information according to the time information data packet; The acquired time information, the receiving side initiates time synchronization.
  • the time information is obtained by the sending side, and the time information is encapsulated into a time information data packet, so that the receiving side can perform time synchronization according to the time information in the time information data packet, and avoids the time information data packet according to the IEEE 1588 networking time. After multiple times of switching and forwarding, the time precision is reduced.
  • the transmitting side sends the time information data packet to the receiving side through the wireless interface, no external antenna is needed, which reduces the construction cost and maintenance cost of the base station networking.
  • the implementation of the present invention ensures that the time synchronization of the base station equipment is high-precision, the engineering cost and the maintenance cost are reduced, and the problem that the networking environment is limited is avoided.
  • FIG. 1 is a schematic flowchart of a first embodiment of a time synchronization method according to the present application
  • FIG. 2 is a schematic flow chart of a second embodiment of a time synchronization method according to the present application
  • FIG. 3 is a schematic flowchart of a third embodiment of a time synchronization method according to the present application.
  • FIG. 4 is a schematic flowchart of a step of verifying, by the receiving side, whether the time information data packet is correct and complete in the third embodiment of the time synchronization method of the present application;
  • FIG. 5 is a schematic flowchart of a fifth embodiment of a time synchronization method according to the present application.
  • FIG. 6 is a schematic flowchart of a sixth embodiment of a time synchronization method according to the present application.
  • FIG. 7 is a schematic flowchart diagram of a seventh embodiment of a time synchronization method according to the present application.
  • FIG. 8 is a schematic flowchart of an eighth embodiment of a time synchronization method according to the present application.
  • FIG. 9 is a schematic flowchart of a ninth embodiment of a time synchronization method according to the present application.
  • FIG. 10 is a schematic diagram of functional modules of a first embodiment and a second embodiment of a time synchronization apparatus according to the present application;
  • FIG. 11 is a schematic diagram of functional modules of a third embodiment and a fourth embodiment of the time synchronization device of the present application.
  • FIG. 12 is a schematic diagram of functional modules of a fifth embodiment of a time synchronization apparatus according to the present application.
  • FIG. 13 is a schematic diagram of functional modules of a sixth embodiment of a time synchronization apparatus according to the present application.
  • FIG. 14 is a schematic diagram of functional modules of a seventh embodiment of a time synchronization apparatus according to the present application.
  • 15 is a schematic diagram of functional modules of an eighth embodiment and a ninth embodiment of the time synchronization device of the present application.
  • FIG. 16 is a schematic diagram of an application scenario according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of frame information content of a GNSS TOD frame according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of synchronization of a second pulse signal according to an embodiment of the present invention.
  • the main solution of the embodiment of the present invention is: the receiving side receives the time information data packet sent by the transmitting side; the receiving side checks the time information data packet, and obtains the time information data packet according to the time information Taking time information; according to the acquired time information, the receiving side initiates time synchronization.
  • the related technologies perform time synchronization of the base station equipment, if the accuracy is required, the engineering cost and the maintenance cost are high; if the engineering cost and the maintenance cost are required to be reduced, the networking environment is limited.
  • the present application provides a solution for obtaining time by the transmitting side and encapsulating the time information into a time information data packet, so that the receiving side can perform time synchronization according to the time information in the time information data packet, thereby avoiding using the IEEE 1588 networking.
  • the time information packet is exchanged and forwarded multiple times to reduce the time precision.
  • the transmitting side since the transmitting side sends the time information data packet to the receiving side through the wireless interface, no external antenna is needed, which reduces the construction cost and maintenance cost of the base station networking.
  • the present invention achieves the problem of ensuring time synchronization and high precision of the base station equipment, reducing engineering cost and maintenance cost, and avoiding the problem of limited networking environment.
  • a first embodiment of a time synchronization method of the present application provides a time synchronization method, where the time synchronization method includes:
  • Step S10 The receiving side receives the time information data packet sent by the transmitting side.
  • the embodiment of the present invention is described by using time synchronization of a base station (BS) device.
  • BS base station
  • FIG. 16 for example, time synchronization between a base station and a base station, and time synchronization between the base station and a terminal device such as a mobile phone.
  • the communication between the transmitting side and the receiving side of the base station device is mainly performed by using a wireless interface, such as an air interface.
  • the base station providing the time synchronization function is used as the transmitting side, and the base station to be synchronized is used as the receiving side.
  • the receiving side receives the time information data packet sent by the transmitting side.
  • the transmitting side acts as a macro base station, from GNSS (Global Navigation Satellite System) or IEEE 1588 (Institute of Electrical and Electronics Engineers 1588, Institute of Electrical and Electronics Engineers 1588 protocol, ie precision clock synchronization of network measurement and control systems)
  • GNSS Global Navigation Satellite System
  • IEEE 1588 Institute of Electrical and Electronics Engineers 1588, Institute of Electrical and Electronics Engineers 1588 protocol, ie precision clock synchronization of network measurement and control systems
  • the protocol standard obtains the timing and obtains high time precision.
  • the sending side can also obtain the timing from other time systems, and can be flexibly set according to actual needs.
  • the transmitting side encapsulates the obtained time and the current time synchronization information to obtain a time information data packet, such as a GNSS TOD frame (Global Navigation Satellite System Time Of Day) and a 1588 synchronization frame.
  • a time information data packet such as a GNSS TOD frame (Global Navigation Satellite System Time Of Day) and a 1588 synchronization frame.
  • the encapsulated time information packet is a GNSS TOD frame.
  • the GNSS TOD frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header, the message header, the message length field, the message payload, and the frame check sequence field may be used as check information to verify the correctness and integrity of the current time information data packet; the message payload is carried by the current time information data packet.
  • the time information includes time such as absolute time on the transmitting side, time precision level, link transmission delay (referred to as link delay), and radio interface signal quality.
  • the absolute time on the transmitting side is the local absolute time on the transmitting side when the sending side sends the time information packet; the time precision level is used to represent the time precision of the current transmitting side, and carries the clock source and the second pulse (pulse per second). Pps) jitter magnitude and other information; link delay is used to characterize the link transmission time between the current transmitting side and the receiving side, which can be measured by the transmitting side; the quality of the wireless interface signal is the quality of the wireless interface signal of the current transmitting side. It can be measured by the transmitting side.
  • the time information can also include other information, which can be flexibly set according to actual needs.
  • the encapsulated time information packet is 1588 frames.
  • the 1588 frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header, the message header, the message length field, the message payload, and the frame check sequence field may be used as check information to verify the correctness and integrity of the current time information data packet; the message payload is carried by the current time information data packet.
  • Time information including 1588 header, 1588 timestamp, link delay, and radio interface signal quality.
  • the 1588 header records the time information type and the message length field carried by the current time information data packet; 1588 timestamp is the local absolute time of the transmitting side when the sending side sends the time information data packet; the link delay is used to represent the current transmitting side.
  • the link transmission time between the receiving side and the receiving side can be measured by the transmitting side; the quality of the wireless interface signal is the quality of the wireless interface signal of the current transmitting side, which can be measured by the transmitting side.
  • the time information can also include other information, which can be flexibly set according to actual needs.
  • the sending side periodically sends the time information data packet to the receiving side through the wireless interface.
  • the sending period can be flexibly set according to the actual situation according to the application scenario and the time synchronization requirement.
  • the receiving side receives the time information packet sent by the transmitting side.
  • Step S20 The receiving side checks the time information data packet, and acquires time information according to the time information data packet.
  • the receiving side After receiving the time information data packet sent by the transmitting side, the receiving side verifies the time information data packet obtained by the receiving side, and obtains the time information according to the time information data packet.
  • the receiving side performs verification according to the GNSS TOD frame or the 1588 frame to obtain verification information, and determines whether the received time information data packet is correct and complete.
  • the receiving side parses the time information packet to obtain time information. If the current time information data packet is a GNSS TOD frame, the obtained time information includes time information including absolute time on the transmitting side, time precision level, link delay, and quality of the radio interface signal; if the current time information packet For 1588 frames, the obtained time information includes information such as time stamp, link delay, and radio interface signal quality.
  • the receiving side discards the current time information data packet.
  • the receiving side obtains time information.
  • Step S30 The receiving side initiates time synchronization according to the acquired time information.
  • the receiving side After obtaining the time information, the receiving side initiates time synchronization according to the obtained time information.
  • the receiving side performs absolute time synchronization on the receiving side according to the absolute time, the time precision level, and the link delay in the time information.
  • the receiving side recovers the second pulse signal according to the time information packet, and uses the recovered second pulse signal as the reference second pulse. Then, the receiving side adjusts the frequency of the receiving side local clock crystal according to the obtained reference second pulse to synchronize the local second pulse signal with the reference second pulse signal.
  • the receiving side performs absolute time synchronization on the receiving side according to the 1588 timestamp and the link delay in the time information.
  • the receiving side recovers the second pulse signal according to the time information packet, and uses the recovered second pulse signal as the reference second pulse. Then, the receiving side adjusts the frequency of the receiving side local clock crystal according to the obtained reference second pulse to synchronize the local second pulse signal with the reference second pulse signal.
  • the receiving side realizes the synchronization of the local absolute time and the second pulse.
  • the receiving side may determine whether to initiate local time synchronization according to the quality of the wireless signal interface in the time information data packet.
  • the receiving side discards the current time information data packet, temporarily does not perform time synchronization, and then initiates time synchronization when the quality of the wireless signal interface is good or available.
  • the receiving side initiates time synchronization according to the obtained time information.
  • the receiving side receives the time information data packet sent by the transmitting side; then, the receiving side verifies the time information data packet, and obtains the time information according to the time information data packet; and then, according to the acquired time information, The receiving side initiates time synchronization.
  • the time is obtained by the sending side, and the time information is encapsulated into a time information data packet, so that the receiving side can perform time synchronization according to the time information in the time information data packet, thereby avoiding time when using the IEEE 1588 networking network for time synchronization.
  • Information packets are exchanged and forwarded multiple times to reduce time accuracy.
  • the transmitting side sends the time information data packet to the receiving side through the wireless interface, no external antenna is needed, which reduces the construction cost and maintenance cost of the base station networking.
  • the implementation of the present invention ensures that the time synchronization of the base station equipment is high-precision, the engineering cost and the maintenance cost are reduced, and the problem that the networking environment is limited is avoided.
  • a second embodiment of the time synchronization method of the present application provides a time synchronization method.
  • the sending side fragment sends the time information data packet, where Step S10 includes:
  • Step S11 The receiving side receives the time information data packet fragment sent by the transmitting side, and reloads it into a time information data packet.
  • the sending side may directly receive the encapsulated time information data packet in the wireless frame of the wireless interface and send it to the receiving side, or may fragment the time information data packet and accept the wireless information in the wireless interface of the wireless interface. Send to the receiving side, which can be flexibly set according to actual needs.
  • the receiving side receives the time information data packet fragment sent by the transmitting side, and reloads it into a time information data packet.
  • the time information data packet currently encapsulated on the transmitting side is exemplified as a GNSS TOD frame.
  • a GNSS TOD frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header may be composed of SYNC CHAR (synchronous characters) of two fixed bytes, and is set to notify the receiving side that the current message is a time synchronization message, that is, a time information packet sent by the transmitting side.
  • the fixed value can be 0x43, 0x43 represents the "C" character in the ASCII (American Standard Code for Information Interchange) code; the fixed value can also be 0x4D, and 0x4D represents the "M" character in the ASCII code. .
  • the message header can be composed of 4 bytes, which is a message type and an ID number.
  • the message classification is set to represent the type of time information carried in the current GNSS TOD frame, and the ID number is set to represent the number of the current message in the message period. For example, a fixed value of 0x8001 is used to indicate that the current message is a GNSS TOD message; an unsigned number of 0 to 65535 is used to indicate the number of the current time information packet in the time synchronization period.
  • the time synchronization period is a period in which the transmitting side and the receiving side perform time synchronization, and can be flexibly according to actual needs.
  • the time information packets sent by the transmitting side are sequentially numbered according to the time sequence of sending, and the current number is represented by the ID number. The period number of the time information packet.
  • the message length field which can consist of 4 bytes, contains the length of the message payload.
  • the frame check sequence field can be composed of 1 byte, 2 bytes, or 4 bytes.
  • CRC Cyclic Redundancy Check
  • the test sequence can be calculated using CRC32.
  • the frame check sequence field is 2 bytes, and CRC16 is used for illustration.
  • the message payload includes the content of the time information, as shown in Table 1 below.
  • the time information includes absolute time, time precision level, link delay, and radio interface signal quality.
  • Absolute time includes seconds, weeks, and LeapS (offset).
  • the intra-week second represents the unsigned char (unsigned char) with a byte offset of 0, a byte type of 4 bytes (bytes), and the unit is s (seconds); the number of weeks represents the GNSS time week. Number, byte offset is 4, data type is 2byte unsigned char, the unit is week (week); LeapS represents the offset of GNSS time and UTC (Coordinated Universal Time), byte offset A signed char with a shift of 6 and a data type of 1 byte in s.
  • the time accuracy level includes the second pulse status, clock source, TAcc (jitter level), clock source operating status, and monitoring alarms.
  • the second pulse state is the state of the current second pulse, the byte offset is 7, and the data type is 1 byte unsigned char.
  • the second pulse state is 0x00, the second pulse is normal; when the second pulse state is 0x01, the atomic clock of the time synchronization device is maintained; when the second pulse state is 0x02, the second pulse is not available; when the second pulse state is 0x03,
  • the high-crystal oscillator of the time synchronization device is characterized as the hold state; when the second pulse state is 0x04, the transmission bearer device is maintained; 0x05 and subsequent values 0xff are reserved values, and other second pulse states can be added.
  • the clock source is the clock source of the current second pulse, the byte offset is 8, and the data type is 1 byte unsigned char.
  • the clock source is 0x00
  • the clock source is the Big Dipper navigation system
  • the clock source is GPS (Global Positioning System)
  • the clock source is 0x02
  • the clock source is GLONASS (Russian China Global Navigation System
  • the clock source is 0x03
  • the clock source is the Galileo satellite navigation system
  • the clock source is IEEE 1588
  • the clock source is 0x05
  • the clock source is NTP (Network Time Protocol). Time Protocol); 0x06 and subsequent values 0xff are reserved values, and other clock sources can be added.
  • TAcc characterizes the jitter magnitude of the second pulse, with a byte offset of 9 and an unsigned char with a data type of 1 byte.
  • the jitter of the second pulse ranges from 0 to 255 levels, and the jitter is 15 ns (nanoseconds) per level. For example, when TAcc is 0, the jitter of the second pulse is 0 ns; when TAcc is 2, the jitter of the second pulse is characterized. The amount is 30 ns; and so on, when TAcc is 255, the current second pulse jitter is too large and meaningless.
  • the clock source working state represents the working state of the current clock source, the byte offset is 10, and the data type is 2 bytes of unsigned char.
  • the clock source operating state defines the GNSS Fix Type, and the range for characterizing the quality of the work is 0 to 3.
  • the clock source working state when the clock source working state is 0x00, it indicates the current no fix (no fixed state); when the clock source working state is 0x01, it represents the current dead reckoning only (only dead reckoning); when the clock source working state is 0x02, it represents the current The working state is 2D plane; when the clock source working state is 0x03, it indicates that the current working state is 3D stereo; when the clock source working state is 0x04, it indicates that the current working state is GNSS+dead reckoning (GNSS and dead reckoning); clock source works When the status is 0x05, it indicates the current Time only fix; 0x06 and subsequent values 0xff are reserved values, and other clock source working states can be added.
  • the monitoring warning characterizes the status alarm of the current clock source, with a byte offset of 12 and an unsigned char of 2 bytes.
  • the monitoring warning when the monitoring warning is Bit0, it represents the current clock source antenna open; when the monitoring warning is Bit1, it represents the current clock source antenna shorted; when the monitoring warning is Bit2, it represents the current clock source not tracking satellites ( Satellite is not detected; when the monitoring warning is Bit3, it indicates the current clock source survey in progress; when the monitoring warning is Bit4, it indicates the current clock source no stored position; when the monitoring warning is Bit5, Characterizes the current clock source leap second pending; when the monitoring warning is Bit6, it indicates the current clock source in test mode (in test mode); when the monitoring warning is Bit7, it indicates the current clock source position is questionable (position is questionable) ); when the monitoring warning is Bit8, it indicates that the current clock source is almanac not complete (the almanac is incomplete); When the monitoring warning is Bit9, it indicates that the current clock source pps was generated; Bit10 to Bit15 are
  • the link delay is the link delay between the current transmitting side and the receiving side. It is measured by the initiating side.
  • the byte offset is 14 and the data type is 2 bytes unsigned char.
  • the link delay is 260.42 ns (1 chip, that is, one radio basic frame time) is a delay level. For example, when the link delay is 0x0, it indicates that the current link has no delay; when the link delay is 0x1,
  • the current link delay is represented by 260.42 ns (1 chip, that is, one radio basic frame time); when the link delay is 0x2, the current link delay is represented by 520.84 ns, and so on; the link delay is 0x9600.
  • the current link delay is represented as 10 ms. 0x9601 and subsequent values 0xffff are reserved values, and other link delays can be added.
  • the quality of the radio interface signal characterizes the quality of the radio interface signal on the transmitting side, with a byte offset of 16 and an unsigned char of 1 byte. For example, when the signal quality of the wireless interface is 0x0, the quality of the current wireless interface is high; when the signal quality of the wireless interface is 0x1, the quality of the current wireless interface is characterized; when the signal quality of the wireless interface is 0x2, the quality of the current wireless interface is low; the wireless interface signal When the quality is 0x3, the quality of the current wireless interface is not quantifiable. 0x4 and subsequent values 0xff are reserved values, which can add other wireless interface signal quality.
  • the message payload reserves 3 bytes of data as a reserved value, and is set to add other information. Available, the message payload is 20 bytes, which is 20 bytes.
  • the GNSS TOD frame of the transmitting side package is 32 bytes, that is, 32 bytes.
  • the transmitting side divides the data of a total of 32 bytes of the GNSS TOD frame into 16 subframes, each of which is 2 bytes.
  • the transmitting side transmits data to the receiving side through the wireless interface, and the 16 two-byte sub-frames are carried in the radio frame of the radio interface 16 times and transmitted.
  • the absolute time of the transmission in the message payload is consistent with the local transmission time on the transmitting side.
  • the receiving side receives the time information packet fragment sent by the transmitting side, that is, after each 2 byte subframe, and reassembles the obtained subframe to obtain a time information packet GNSS TOD frame.
  • the time information data packet currently encapsulated on the transmitting side is exemplified by 1588 frames.
  • the time information carried in the 1588 frame uses a sync message, a followup message, or an announce message.
  • other types of messages can be used for 1588 frames.
  • the 1588 frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header may be composed of SYNC CHAR (synchronous characters) of two fixed bytes, and is set to notify the receiving side that the current message is a time synchronization message, that is, a time information packet sent by the transmitting side.
  • the fixed value can be 0x43, 0x43 represents the "C" character in the ASCII (American Standard Code for Information Interchange) code; the fixed value can also be 0x4D, and 0x4D represents the "M" character in the ASCII code. .
  • the message header can be composed of 4 bytes, which is a message type and an ID number.
  • the message classification is set to represent the type of time information carried in the current 1588 frame, and the ID number is set to represent the number of the current message in the message period.
  • a fixed value of 0x8002 is used to indicate that the current message is a sync message
  • a fixed value of 0x8003 is used to indicate that the current message is a followup message
  • a fixed value of 0x8004 is used to indicate that the current message is an announce message
  • an unsigned number of 0 to 65535 is used to indicate the current The number of time information packets in the time synchronization period.
  • time synchronization period is a period in which the transmitting side and the receiving side perform time synchronization, and can be flexibly according to actual needs.
  • the time information packets sent by the transmitting side are sequentially numbered according to the time sequence of sending, and the current time is represented by the ID number.
  • the cycle number of the information packet is a period in which the transmitting side and the receiving side perform time synchronization, and can be flexibly according to actual needs.
  • the message length field which can consist of 4 bytes, contains the length of the message payload.
  • the frame check sequence field can be composed of 1 byte, 2 bytes, or 4 bytes.
  • CRC Cyclic Redundancy Check
  • the test sequence can be calculated using CRC32.
  • the frame check sequence field is 2 bytes, and CRC16 is used for illustration.
  • the message payload includes the content of the time information.
  • the time information carried in the 1588 frame is a sync packet or a followup packet
  • the time information includes a 1588 header, a 1588 timestamp, and a link delay. And wireless interface signal quality, etc.
  • the time information carried in the 1588 frame is an announce message
  • the time information includes 1588 header, 1588 timestamp, 1588 time precision, link delay, and radio interface signal quality.
  • the 1588 header includes information such as the type of the current message, for a total of 34 bytes.
  • the message type carried by the 1588 header is Transport Specific.
  • the byte offset is 0 and the size is 1 byte.
  • the Version PTP Precision Time Protocol Version
  • the Version PTP is Reserved (reserved), the byte offset is 1, the size is 1 byte;
  • Message length (message length) records the length of the current message payload, the byte offset is 2, the size is 2byte;
  • Domain number The length field has a byte offset of 4 and a size of 1 byte; the reserved byte has an offset of 5 and a size of 1 byte;
  • the Flag field has a byte offset of 6, and the size is 2byte; correction field has a byte offset of 8 and a size of 8 bytes; a reserved byte offset of 16 and a size of 4 bytes;
  • Source port Identity byte offset The quantity is 20 and the size is 10 bytes; the sequence ID has a byte offset of 30 and the size is 2 bytes; the Control field has a byte offset of 32 and a size
  • 1588 timestamp is the time difference from UTC, including 6 bytes of second bit information and 4 bytes of nanosecond bit information, totaling 10 bytes.
  • the 1588 time precision exists only when the time information carried in the 1588 frame is an announce message, for a total of 20 bytes.
  • the 1588 time accuracy includes information such as clock priority, clock level, clock accuracy, clock jitter, time source, and number of hops.
  • the clock priority characterizes the priority of the current clock; the clock level ranges from 0 to 255. The smaller the value, the higher the clock level; the clock accuracy uses numerical values to characterize the time accuracy; the clock jitter characterizes the current clock jitter.
  • the number of passing hops represents the number of hops from the time source to the node, and each pass adds 1; the time source represents the source of the current time, such as satellite, internal clock, and so on.
  • the link delay is used to describe the delay of the link between the transmitting side and the receiving side.
  • the transmitting side and the receiving side do not need to perform the calculation of the link delay, and the link delay can be measured by the transmitting side.
  • the link delay is 260.42 ns (1 chip, that is, one radio basic frame time) is a delay level. For example, when the link delay is 0x0, it indicates that the current link has no delay; when the link delay is 0x1, The current link delay is represented by 260.42 ns (1 chip, that is, one radio basic frame time); when the link delay is 0x2, the current link delay is represented by 520.84 ns, and so on; the link delay is 0x9600. At the time, the current link delay is represented as 10 ms. 0x9601 and subsequent values 0xffff are reserved values, and other link delays can be added.
  • the quality of the wireless interface signal characterizes the quality of the wireless interface signal on the current transmitting side. For example, when the signal quality of the wireless interface is 0x0, the quality of the current wireless interface is high; when the signal quality of the wireless interface is 0x1, the quality of the current wireless interface is characterized; when the signal quality of the wireless interface is 0x2, the quality of the current wireless interface is low; the wireless interface signal When the quality is 0x3, the quality of the current wireless interface is not quantifiable. 0x4 and subsequent values 0xff are reserved values, which can add other wireless interface signal quality.
  • link delay and the quality of the radio interface signal are 2 bytes in total.
  • the message payload reserves 2 bytes of data as a reserved value for adding other information.
  • the message payload is 48 bytes when the time information carried in the 1588 frame is a sync message or a followup message. When the time information carried in the 1588 frame is an announce message, the message payload is 68 bytes.
  • the sending side will be 1588
  • the frame is divided into 30 or 40 subframes, each of which is 2 bytes.
  • the transmitting side sends data through the wireless interface, and the 30 or 40 2-byte sub-frames are carried in the radio frame of the radio interface 30 times or 40 times, and are sent out.
  • the absolute time of the transmission in the message payload is consistent with the local transmission time on the transmitting side.
  • the receiving side receives the time information packet fragment sent by the transmitting side, that is, after each 2 byte subframe, and reassembles the obtained subframe to obtain a time information packet 1588 frame.
  • the sending side fragment transmits the time information data packet to adapt to the transmission capability of the network link, and improves the transmission efficiency
  • the receiving side receives the time information data packet fragment sent by the transmitting side, and reloads the time.
  • Information packets for time synchronization In this embodiment, multiple manners of time information data packets are transmitted, and the transmission efficiency of the time information data packet is improved, thereby effectively ensuring the accuracy of time synchronization on the receiving side.
  • the third embodiment of the time synchronization method of the present application provides a time synchronization method, which is based on the embodiment shown in FIG. 1 or FIG. 2 (the embodiment is illustrated by using FIG. 1).
  • S20 includes:
  • Step S21 The receiving side checks whether the time information data packet is correct and complete.
  • the receiving side After receiving the time information data packet sent by the transmitting side, the receiving side verifies the correctness and integrity of the time information data packet.
  • the time information data packet includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the receiving side verifies whether the data packet is correct according to the frame header, whether it is a time synchronization frame, such as a GNSS TOD frame or a 1588 frame.
  • the type of the time information carried by the receiving side according to the message header check time information packet is correct, whether it is a GNSS TOD message corresponding to the GNSS TOD frame, or whether it is a sync message, a followup message or an announce message corresponding to the 1588 frame.
  • the receiving side verifies whether the message payload carried by the time information data packet is complete according to the message length field.
  • the receiving side verifies whether the data packet is complete according to the message payload and the frame check sequence field. If not complete, the current time information packet is discarded. If complete, confirm that the current time information packet is correct and complete.
  • the receiving side corrects according to the frame header, and according to the message header check, and according to the message length field check integrity, and according to the message payload and the frame check sequence domain check integrity, it is confirmed that the current time information packet is correct. And complete.
  • the receiving side obtains the verification result of the current time information packet.
  • Step S22 If the time data packet is correct and complete, obtain a message payload according to the time information data packet, and obtain time information, where the message payload includes the time information.
  • the receiving side obtains the message payload according to the time information data packet, and the message payload includes time information, so that the receiving side obtains the time information.
  • the time information data packet currently encapsulated on the transmitting side is exemplified as a GNSS TOD frame.
  • the receiving side parses the currently obtained time information packet to obtain a message payload.
  • the message payload is the time information encapsulated by the transmitting side in the GNSS TOD frame, including absolute time, time precision level, link delay, and radio interface signal quality.
  • the time information of the sending side package may further include other information, and may be flexibly set according to actual needs.
  • the receiving side obtains time information, including absolute time, time precision level, link delay, and radio interface signal quality.
  • the time information data packet currently encapsulated on the transmitting side is exemplified by 1588 frames.
  • the time information carried in the 1588 frame uses a sync message, a followup message, or an announce message.
  • a sync message a followup message
  • an announce message a message that announces the time information carried in the 1588 frame.
  • other types of messages can be used for 1588 frames.
  • the receiving side parses the currently obtained time information packet to obtain a message payload.
  • the message payload is the time information encapsulated in the 1588 frame by the sending side. If the time information encapsulated on the sending side is a sync packet or a followup packet, the message payload includes 1588 header, 1588 timestamp, link delay, and radio interface signal. Quality, etc.; when the time information carried in the 1588 frame is an announce message, the message payload includes 1588 header, 1588 timestamp, 1588 time precision, link delay, and radio interface signal quality.
  • the receiving side obtains time information.
  • the time information of the encapsulation on the sending side is a sync packet or a followup packet
  • the time information includes 1588 header, 1588 timestamp, and Link delay and radio interface signal quality
  • the time information carried in the 1588 frame is an announce message
  • the time information includes 1588 header, 1588 timestamp, 1588 time precision, link delay, and radio interface signal quality.
  • the receiving side verifies whether the currently obtained time information data packet is correct and complete; if the current time data packet is correct and complete, the receiving side acquires the message payload according to the time information data packet, and obtains time information, and the message is net.
  • the load includes time information.
  • the sending side encapsulates the time information in the time information data packet, and after receiving the time information data packet, the receiving side first checks whether the obtained time information data packet is correct and complete, only when the time information data packet is correct. The time information is obtained completely, so that the incorrect or incomplete data packet reduction affects the time synchronization of the receiving side and reduces the time synchronization precision.
  • This embodiment implements verification of the correctness and integrity of the time information data packet, and improves the correctness and accuracy of the time synchronization on the receiving side.
  • a fourth embodiment of the time synchronization method provides a time synchronization method.
  • the time information data packet includes a frame header, a message header, and a message.
  • the length field, the message payload, and the frame check sequence field, the step S21 includes:
  • Step S211 The receiving side checks whether the time information data packet is correct according to the frame header, and checks whether the time information data packet is correct according to the message header, according to the message length field and the message net. And verifying whether the time information data packet is complete, and verifying whether the time information data packet is complete according to the message payload and the frame check sequence domain.
  • the time information data packets sent by the transmitting side include a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the transmitting side flexibly selects the GNSS or IEEE 1588 acquisition time according to the clock source working state of the current acquisition time, and encapsulates the GNSS TOD frame or 1588 frame.
  • the receiving side After obtaining the time information data packet sent by the transmitting side, the receiving side first checks whether the received time information data packet is correct and complete.
  • the time information data packet currently encapsulated on the transmitting side is exemplified as a GNSS TOD frame.
  • the receiving side verifies whether the data packet is correct according to the frame header time information.
  • the receiving side determines whether the keyword of the frame header is 0x43 or 0x4d pre-configured on the transmitting side. If the frame header keyword is 0x43 or 0x4d, it determines that the time information packet received this time is correct; if the frame header keyword is not 0x43 or 0x4d , then It is determined that the time information packet received this time is incorrect.
  • the receiving side verifies whether the data packet is correct according to the message header.
  • the receiving side obtains the message type keyword carried in the message header.
  • the receiving side does not know the type of time information sent by the sending side before receiving the time information data packet. Therefore, the receiving side determines whether the message type keyword is 0x8001, 0x8002, 0x8003. Or 0x8004, that is, whether the time information carried in the current time information data packet is one of a GNSS TOD message, a sync message, a followup message, or an announce message.
  • the keyword of the message header is 0x8001, 0x8002, 0x8003 or 0x8003, it is determined that the time information packet received this time is correct; otherwise, it is determined that the time information packet received this time is incorrect. For example, if the keyword of the message header is 0x8001, it is determined that the time information packet received this time is correct, and the time information carried by the current time information data packet is obtained according to 0x8001 as a GNSS TOD message.
  • the receiving side checks whether the data packet is complete according to the message length field and the message payload.
  • the receiving side obtains the message payload length carried by the current time information data packet according to the time length field. For example, when the message length field is 0x14, the current message payload length is 20 bytes. Then, if the current time information packet is sent by the transmitting side as a whole, it is determined whether the length of the current message payload is 20 bytes, and if the length of the message payload is 20 bytes, it is determined that the time information packet received this time is complete; If the length of the payload is not 20 bytes, it is determined that the time information packet received this time is incomplete.
  • the message payload sent by the transmitting side is received 10 times, 2 bytes each time, and it is determined whether the length of the current message payload is 20 bytes after reloading the time information data packet. If the length of the message payload is 20 bytes, it is determined that the time information packet received this time is complete; if the length of the message payload is not 20 bytes, it is determined that the time information packet received this time is incomplete.
  • the receiving side verifies whether the data packet is complete according to the message payload and the frame check sequence field.
  • the receiving side performs the CRC16 check calculation on the received 20-byte message payload and the frame check sequence. If the fixed sequence x15 ⁇ x0:0001110100001111 is calculated, it is determined that the time information packet received this time is complete; if the calculation is not completed When the fixed sequence x15 to x0: 0001110100001111 is obtained, it is determined that the time information packet received this time is incomplete.
  • the receiving side obtains the verification result.
  • the time information data packet currently encapsulated on the transmitting side is exemplified by 1588 frames.
  • the receiving side verifies whether the data packet is correct according to the frame header time information.
  • the receiving side determines whether the keyword of the frame header is 0x43 or 0x4d pre-configured on the transmitting side. If the frame header keyword is 0x43 or 0x4d, it determines that the time information packet received this time is correct; if the frame header keyword is not 0x43 and 0x4d Any one of them determines that the time information packet received this time is incorrect.
  • the receiving side verifies whether the data packet is correct according to the message header.
  • the receiving side obtains the message type keyword carried in the message header.
  • the receiving side does not know the type of time information sent by the sending side before receiving the time information data packet. Therefore, the receiving side determines whether the message type keyword is 0x8001, 0x8002, 0x8003. Or 0x8004, that is, whether the time information carried in the current time information data packet is one of a GNSS TOD message, a sync message, a followup message, or an announce message.
  • the keyword of the message header is 0x8001, 0x8002, 0x8003 or 0x8003, it is determined that the time information packet received this time is correct; if the keyword of the message header is any one of 0x8001, 0x8002, 0x8003 and 0x8003, the judgment is The time information packet received twice is incorrect. For example, if the keyword of the message header is 0x8002, it is determined that the time information packet received this time is correct, and the time information carried by the current time information data packet is obtained as a sync message according to 0x8002.
  • the receiving side checks whether the data packet is complete according to the message length field and the message payload.
  • the receiving side obtains the message payload length carried by the current time information data packet according to the time length field. For example, when the message length field is 0x30, the current message payload length is 48 bytes. Then, if the transmitting side transmits the current time information packet as a whole, it is determined whether the length of the current message payload is 48 bytes, and if the length of the message payload is 48 bytes, it is determined that the time information packet received this time is complete; If the length of the payload is not 48 bytes, it is determined that the time information packet received this time is incomplete.
  • the message payload sent by the transmitting side is received 24 times, 2 bytes each time, and it is determined whether the current message payload length is 48 bytes after reloading the time information data packet. If the length of the message payload is 48 bytes, it is determined that the time information packet received this time is complete; if the length of the message payload is not 48 bytes, it is determined that the time information packet received this time is incomplete. When the message length field is 0x44, the current message payload length is 60 bytes.
  • the current time information packet is sent by the transmitting side as a whole, it is determined whether the length of the current message payload is 60 bytes, and if the length of the message payload is 60 bytes, it is determined that the time information packet received this time is complete; If the length of the payload is not 60 bytes, it is determined that the time information packet received this time is incomplete. If the sender side packet transmits the current time information packet, it is sent 30 times, and each time 2 bytes is received and sent by the transmitting side.
  • the message payload and after re-installing the time information packet, determine whether the length of the current message payload is 60 bytes, and if the length of the message payload is 60 bytes, it is determined that the time information packet received this time is complete; If the length of the payload is not 60 bytes, it is determined that the time information packet received this time is incomplete.
  • the receiving side verifies whether the data packet is complete according to the message payload and the frame check sequence field.
  • the receiving side performs the CRC16 check calculation on the received 48-byte or 60-byte message payload and the frame check sequence. If the fixed sequence x15-x0:0001110100001111 is calculated, it is determined that the time information packet received this time is complete; If the fixed sequence x15 to x0: 0001110100001111 is not calculated, it is determined that the time information packet received this time is incomplete.
  • the receiving side obtains the verification result.
  • the sending side fragment transmits the time information data packet
  • the receiving side may separately perform the calibration according to the received time information data packet after receiving the time information data packet fragmentation.
  • the verification method is the same as described above, and the verification result is obtained.
  • Step S212 if the frame header check is correct, and the message header is verified correctly, and the message length field and the message payload check are complete, and the message payload and the frame check sequence are complete. If the domain check is complete, it is determined that the time information packet is correct and complete.
  • the receiving side verifies that the current time information packet is correct according to the frame header, and the current time information packet is verified according to the message header, and the current time information packet is verified according to the message payload and the frame check sequence field. And according to the message payload and the frame check sequence field to verify that the time information packet is complete, the receiving side determines that the time information packet received this time is correct and complete; if the receiving side verifies the current time according to the frame header The information packet is incorrect, or the current time information packet is incorrect according to the message header, or the current time information packet is incomplete according to the message payload and the frame check sequence field, or according to the message payload and frame. The verification sequence field verification is incomplete in this time information packet, and the receiving side determines that the time information data packet received this time is incorrect or incomplete.
  • the receiving side obtains the verification result of the time information packet received this time.
  • the receiving side verifies whether the data packet is correct according to the frame header check time, and according to the message header check time information, whether the data packet is correct, according to the message length field and the message payload check time information, whether the data packet is complete, according to Message payload and frame check sequence field check time information packet is complete; if the frame header check is correct, and the message header is verified correctly, and the message length field and message payload check If the message payload and the frame check sequence are completely verified, it is determined that the time information packet received by the receiving side is correct and complete.
  • the time information data packet is verified in multiple manners, and multiple verifications of the correctness and integrity of the time information data packet are implemented, and the receiving side only performs time synchronization according to the correct and complete time information data packet, thereby improving The correctness and accuracy of the time synchronization on the receiving side.
  • the fifth embodiment of the time synchronization method of the present application provides a time synchronization method, which is further included after the step S21, based on the foregoing embodiment shown in FIG.
  • Step S40 If the time information data packet is incorrect or incomplete, the receiving side discards the time information data packet.
  • the receiving side On the receiving side, according to the frame header check time information, whether the data packet is correct, according to the message header check time information, whether the data packet is correct, according to the message length field and the message payload check time information, whether the data packet is complete, according to the message payload and the frame. If the time-stamp data packet of the verification sequence is complete and the verification result is obtained, if the time information packet received this time is incorrect or incomplete, the receiving side discards the time information packet received this time. The time information packet received this time is not used for time synchronization on the receiving side.
  • the receiving side receives the next time information packet sent by the transmitting side, and performs verification.
  • the receiving side discards the current time information data packet.
  • the quality of the time information packet is controlled.
  • the receiving side discards the time information packet.
  • the quality of the time information data packet is controlled, and the time synchronization accuracy and accuracy of the receiving side are improved.
  • the sixth embodiment of the time synchronization method of the present application provides a time synchronization method.
  • the sending side fragment sends the time information data packet, where The message header of the time information data packet carries the cycle number of the current time synchronization, and after the step S21, the method further includes:
  • Step S23 checking whether the time information packet fragment sent by the sending side is correct according to the period number; if the period number verification is correct, proceeding to step S22; if the period number verification is incorrect Then, the process proceeds to step S40.
  • the transmitting side periodically transmits the time information data packet to the receiving side, and the receiving side performs time synchronization according to the received time information data packet. It should be noted that the period number carried by the transmitting side when transmitting the time information packet is synchronized with the period number of the time synchronization performed by the receiving side.
  • the ID number carried in the message header in the time information packet sent by the sending side is the period number of this time synchronization.
  • the transmitting side uses the unsigned number 0 to 65535 as the ID number, and indicates the number of the current time information packet in the time synchronization period, that is, the current time synchronization period number.
  • the transmitting side sequentially ID-numbers the header of the time information packet according to the transmission time sequence of the time information packet.
  • each fragment of the time information data packet carries the same period number of the current time synchronization, and the impact of the period number on the size of each fragment byte is negligible. .
  • the receiving side After receiving the time information packet fragment, the receiving side obtains the period number carried in each time information packet fragment.
  • the receiving side determines, according to the current time synchronization period, whether the period number carried in the received time information packet fragment is the period number of the current time synchronization period. If the period number carried in the received time information packet fragment is the period number of the current time synchronization period, it is determined that the time information packet is fragmented correctly; if the received time information packet fragment carries the period number is not The period number of this time synchronization period determines that the current time information packet is incorrect.
  • the receiving side determines whether the received time information packet fragment is a fragment of the same time information data packet according to whether the period number carried by the data packet fragment is the same according to the received time information.
  • the receiving side receives the same period number in the current time synchronization period, and the period number of the time information packet fragment is the same as the period number of the current time synchronization period, the transmission is determined to be sent.
  • the time information packet sent by the side is fragmented correctly. If the receiving side does not carry the same period number in the current time synchronization period, or the period number of the time information packet fragment is different from the period number of the current time synchronization period, it is determined.
  • the time information packet sent by the sending side is fragmented incorrectly.
  • the receiving side acquires the message payload according to the time information data packet, and obtains time information.
  • the receiving side discards the currently received time information data packet.
  • the receiving side may perform verification when receiving the time information data packet fragmentation; if the time information data packet fragmentation is correct, reload the time information data packet.
  • the fragmentation obtains the time information data packet; if the time information data packet fragmentation is incorrect, the time information data packet fragment is discarded, and the receiving side does not reload the time information data packet according to the time information data received this time.
  • the method further includes:
  • Step S50 Obtain a packet loss rate of the time information data packet in a preset quality detection period according to the cycle number.
  • the receiving side may obtain the packet loss of the time information packet in the preset quality detection period according to the received time information packet period number. rate.
  • the preset quality detection period is a time synchronization signal quality detection period pre-configured by the receiving side, and can be flexibly set according to an application scenario of the receiving side or an actual requirement for signal quality.
  • the receiving side can identify different time information packets according to the received time information packet period number, thereby obtaining the receiving side.
  • the number of time information packets arrived.
  • the continuity of the transmission side transmission time information data packet can also be obtained by the cycle number.
  • the correct and complete time information data packet is taken as an available data packet, and the incorrect or incomplete time information data packet is an unavailable data packet.
  • the receiving side records the available data packet and the discarded unavailable data packet according to the cycle number, and obtains the data packet record.
  • the receiving side may obtain the total number of available data packets and unavailable data packets received by the receiving side in the preset quality detection period according to the data packet record, that is, the total number of data packets received by the receiving side.
  • the receiving side can obtain the number of unavailable data packets received by the receiving side in the preset quality detection period according to the data packet record.
  • the receiving side calculates the ratio of the number of unavailable packets to the total number of received packets, and obtains The packet loss rate on the receiving side, that is, the packet loss rate of the time information packet.
  • the receiving side obtains the packet loss rate of the time information packet within the preset quality detection period.
  • Step S60 If the packet loss rate of the information data packet is greater than a preset threshold, the receiving side does not initiate time synchronization.
  • the packet loss rate on the receiving side After the packet loss rate on the receiving side is obtained, if the packet loss rate on the receiving side is greater than a preset threshold in the preset quality detection period, that is, the packet loss rate of the time information packet exceeds a preset threshold.
  • the quality of the time information packet may be poor due to a fault or link on the transmitting side.
  • the receiving side does not initiate time synchronization according to the time information data packet in the segment quality detection period.
  • the receiving side continues to perform verification according to the time information packet transmitted by the transmitting side.
  • the receiving side When the packet loss rate of the time information packet is less than or equal to the preset threshold in any quality detection period, the receiving side initiates time synchronization according to the time information packet in the period.
  • the preset threshold is a pre-configured scale value, and can be flexibly set according to different application scenarios or the receiving side for the quality requirements of the time information packet.
  • the sending side fragment transmits a time information data packet, and the message header of the time information data packet carries the current time synchronization period number; the receiving side verifies the time information data packet fragmentation sent by the transmitting side according to the period number. If the period number is correctly verified, the time information packet received this time is correct and complete, and the receiving side acquires the time information for time synchronization; if the period number verification is incorrect, the receiving side discards the current time information packet. Then, the receiving side acquires the packet loss rate of the time information data packet in the preset quality detection period according to the cycle number; if the packet loss rate is greater than the preset threshold, the receiving side does not initiate time synchronization.
  • the correctness of the time information packet fragmentation is determined by the cycle number, and the strictness of the quality control of the time information packet is improved.
  • the receiving side Time synchronization is not initiated yet, and the time synchronization is started after the quality of the time information packet satisfies the preset requirement.
  • the quality of the time information data packet is controlled, and the time synchronization accuracy and accuracy of the receiving side are improved.
  • the seventh embodiment of the time synchronization method of the present application provides a time synchronization method, based on the foregoing embodiment shown in any one of FIG. 1 to FIG. 6 (this embodiment takes FIG. 6 as an example).
  • the time synchronization includes absolute time synchronization and/or second pulse synchronization
  • the step S30 includes:
  • Step S31 The receiving side determines whether the time information meets a preset condition for initiating time synchronization.
  • the preset condition for initiating time synchronization is a pre-configured requirement of the current time information on the receiving side, which may include a jitter magnitude requirement for the clock source, a requirement for the clock source working state, and a clock source state. Alarm requirements, requirements for link delay, and signal quality requirements for wireless interfaces.
  • the receiving side can flexibly set the conditions for initiating time synchronization according to its own application scenario or the quality requirements of the time information data packet. For example, the preset condition for initiating time synchronization is that the radio interface signal quality is good, and the link delay cannot exceed 530 ns.
  • the condition of the initiation time synchronization pre-configured by the current receiving side is as follows: the quality of the radio interface signal is high or medium, for example.
  • the receiving side determines that the current radio interface quality is high, and the current time information satisfies the preset condition for initiating time synchronization.
  • the receiving side determines that the current radio interface is unavailable, and the current time information does not satisfy the preset condition for initiating time synchronization.
  • the receiving side obtains the determination result.
  • Step S32 If the time information meets a preset condition for initiating time synchronization, initiate absolute time synchronization and/or second pulse synchronization.
  • the receiving side After the determination result is obtained, if the current time information satisfies the preset condition for initiating time synchronization, the receiving side initiates time synchronization, and the time synchronization on the receiving side includes absolute time synchronization and/or second pulse synchronization.
  • the time information packet currently encapsulated by the transmitting side is exemplified as a GNSS TOD frame.
  • the time information acquired by the receiving side includes absolute time, time precision level, link delay, and radio interface signal quality.
  • the receiving side can synchronize the local absolute time according to the absolute time of the transmitting side and the link delay.
  • the receiving side can recover the second pulse signal on the transmitting side according to the absolute time and the link delay of the plurality of time information data packets within a certain time range. Then, the obtained second pulse signal is recovered as a reference second pulse. Then, the receiving side adjusts the frequency of the receiving side local clock crystal according to the obtained reference second pulse so that the phase of the local second pulse signal reaches the reference second pulse.
  • the receiving side achieves local absolute time synchronization and/or local second pulse synchronization.
  • the time information packet currently encapsulated by the transmitting side is 1588 frames.
  • the time information acquired by the receiving side includes 1588 header, 1588 timestamp, link delay, and radio interface signal quality.
  • the time information is an announce message, the time information additionally includes 1588 time precision.
  • the receiving side can synchronize the local absolute time according to the 1588 timestamp and link delay on the transmitting side.
  • the receiving side can recover the second pulse signal of the transmitting side according to the 1588 timestamp and the link delay of the plurality of time information data packets within a certain time range. Then, the obtained second pulse signal is recovered as a reference second pulse. Then, the receiving side adjusts the frequency of the receiving side local clock crystal according to the obtained reference second pulse so that the phase of the local second pulse signal reaches the reference second pulse.
  • the receiving side achieves local absolute time synchronization and/or local second pulse synchronization.
  • the receiving side determines whether the time information obtained by the receiving side meets the preset condition for initiating time synchronization; if the time information satisfies the preset condition for initiating time synchronization, the receiving side initiates absolute time synchronization and/or second pulse synchronization.
  • the implementation initiates the absolute time synchronization and/or the second pulse synchronization according to the time information, and realizes whether the time synchronization is initiated according to the accuracy of the time information and the like, thereby effectively improving the reception.
  • the accuracy of side time synchronization is if the time information obtained by the receiving side meets the preset condition for initiating time synchronization; if the time information satisfies the preset condition for initiating time synchronization, the receiving side initiates absolute time synchronization and/or second pulse synchronization.
  • the eighth embodiment of the time synchronization method of the present application provides a time synchronization method.
  • the step S32 includes:
  • Step S321 If the time information meets a preset condition for initiating time synchronization, the receiving side initiates absolute time synchronization according to the time information.
  • the receiving side If the obtained time information satisfies the preset condition for initiating time synchronization, the receiving side according to the time letter Information initiates absolute time synchronization.
  • the time information packet currently encapsulated by the transmitting side is exemplified as a GNSS TOD frame.
  • the receiving side initiates absolute time synchronization according to the absolute time in the time information, the link delay, and the local time of the receiving side receiving time information packet.
  • the absolute time T1 on the transmitting side is added to the link delay T2 to obtain the transmitting side absolute time T3 when the receiving side receives the time information packet.
  • the receiving side obtains the absolute time difference between the receiving side and the transmitting side according to the time difference between T3 and T4, and adjusts the local absolute time according to the obtained absolute time difference, thereby implementing the receiving side.
  • Local absolute time synchronization If the current time of the receiving side receiving time information packet is T4, the receiving side obtains the absolute time difference between the receiving side and the transmitting side according to the time difference between T3 and T4, and adjusts the local absolute time according to the obtained absolute time difference, thereby implementing the receiving side. Local absolute time synchronization.
  • the time information packet currently encapsulated by the transmitting side is 1588 frames.
  • the receiving side initiates absolute time synchronization according to the 1588 timestamp in the time information, the link delay, and the local time of the receiving side receiving the time information packet.
  • the time T1 of the transmission side 1588 timestamp is added to the link delay T2 to obtain the transmission side absolute time T3 when the reception side receives the time information packet.
  • the receiving side obtains the absolute time difference between the receiving side and the transmitting side according to the time difference between T3 and T4, and adjusts the local absolute time according to the obtained absolute time difference, thereby implementing the receiving side.
  • Local absolute time synchronization If the current time of the receiving side receiving time information packet is T4, the receiving side obtains the absolute time difference between the receiving side and the transmitting side according to the time difference between T3 and T4, and adjusts the local absolute time according to the obtained absolute time difference, thereby implementing the receiving side. Local absolute time synchronization.
  • the receiving side realizes the synchronization of the absolute time.
  • Step S322 Restore the second pulse signal on the transmitting side according to the time information data packet sent by the transmitting side.
  • the receiving side can recover the second pulse signal of the transmitting side according to the received time information data packet.
  • the transmitting side since the transmitting side transmits the time information data packet using a fixed frequency, for example, the transmitting side transmits the time information data packet every 10 ms (millisecond), the transmitting side transmits 100 time information data packets every second.
  • the absolute time of the first time information packet sent by the current transmitting side is 0 seconds, and the absolute time of the 101st time information data packet sent by the transmitting side is 1 second, and the first and the 101st can be used.
  • the second bit time of the time information packet is used as the transmitting side Second pulse.
  • the receiving side obtains the second pulse signal on the transmitting side.
  • the receiving side can also restore the second pulse signal on the transmitting side by other means, and can be flexibly set according to actual needs.
  • Step S323 Adjust a local clock frequency of the receiving side according to the second pulse signal of the transmitting side, and initiate second pulse synchronization.
  • the receiving side After acquiring the second pulse signal on the transmitting side, the receiving side adjusts the local clock frequency according to the second pulse signal on the transmitting side to perform second pulse synchronization.
  • the receiving side performs a second pulse signal synchronization on the receiving side by using a Phase Locked Loop (PLL) path.
  • PLL Phase Locked Loop
  • the receiving side control phase detector PD (phase detector) performs phase discrimination based on the second pulse signal on the transmitting side and the local second pulse signal, and obtains a phase deviation value. Then, the phase detector converts the phase deviation value into a voltage change, outputs an analog voltage signal, and considers high frequency noise through a low pass filter LPF (Low Pass Filter).
  • LPF Low Pass Filter
  • the Oven Controlled Crystal Oscillator receives the signal of the low pass filter LPF, and uses the obtained voltage signal as a voltage control voltage to control the oscillation of the local clock crystal and output the oscillation frequency of the local clock crystal.
  • the frequency divider feeds back the frequency of the OXCO output to the phase detector, and is set to determine whether the second pulse signal of the current local clock is synchronized with the input reference second pulse signal.
  • the PLL locks the phase to maintain the current local clock oscillation frequency, so that the local clock oscillation frequency and the transmitting side The clock oscillation frequency remains the same.
  • phase detector PD continues to phase-detect and adjust the oscillation frequency of the local clock.
  • the local clock can be a cesium clock or other clocks, and can be flexibly set according to actual needs.
  • the receiving side realizes the second pulse synchronization.
  • the receiving side if the obtained time information meets the preset condition for initiating time synchronization, the receiving side initiates absolute time synchronization according to the time information; and the receiving side recovers the second pulse signal of the transmitting side according to the time information data packet sent by the transmitting side. Then, the receiving side adjusts the local clock frequency on the receiving side according to the second pulse signal on the transmitting side, and performs second pulse synchronization.
  • the absolute time synchronization is performed according to the time information carried in the time information data packet, and the second pulse signal of the transmitting side is recovered according to the received time information data packet, thereby realizing the synchronization of the local second pulse and improving the local absolute time of the receiving side. Synchronization accuracy with the second pulse.
  • the ninth embodiment of the time synchronization method of the present application provides a time synchronization method.
  • the step S323 includes:
  • Step S3231 Acquire a phase deviation value from the receiving side local second pulse signal according to the second pulse signal on the transmitting side.
  • the second pulse signal on the transmitting side is used as a reference second pulse signal to obtain a phase deviation value from the local second pulse signal on the receiving side.
  • the receiving side phase-detects the reference second pulse signal and the local second pulse signal, and obtains a phase deviation value between the reference second pulse signal and the local second pulse signal.
  • Step S3232 determining whether the phase deviation value exceeds a preset deviation threshold.
  • the receiving side determines whether the phase deviation value satisfies a preset deviation threshold.
  • the preset deviation threshold is pre-configured by the receiving side according to the application scenario or the accuracy requirement for the local second pulse. For example, if the error of the local second pulse is not strict, the deviation threshold with a large value may be set; if the error of the local second pulse is strict, the deviation threshold with a small value may be set.
  • phase deviation value is greater than the preset deviation threshold, it is determined that the phase deviation value exceeds the preset deviation threshold; if the phase deviation value is less than or equal to the preset deviation threshold, it is determined that the phase deviation value does not exceed the preset deviation threshold.
  • the receiving side obtains the determination result.
  • Step S3233 If the phase deviation value exceeds a preset deviation threshold, adjust a local clock frequency of the receiving side according to the phase deviation value, acquire a second pulse signal adjusted by the receiving side, and go to an execution step. S3231.
  • the receiving side adjusts the local clock frequency of the receiving side according to the phase deviation value.
  • the receiving side converts the phase deviation value into a change of the voltage signal, and controls the oscillation of the local clock crystal according to the obtained voltage signal.
  • the receiving side obtains the oscillating frequency of the local clock crystal adjustment, and obtains the second pulse signal adjusted by the receiving side according to the adjusted oscillating frequency.
  • the receiving side phase-detects the reference second pulse signal and the adjusted receiving-side local second pulse signal, and obtains a phase deviation value between the reference second pulse signal and the adjusted local second pulse signal.
  • Step S3234 If the phase deviation value does not exceed the preset deviation threshold, it is determined that the second second pulse synchronization is completed.
  • the receiving side considers that the error of the current local clock second pulse signal and the reference second pulse signal meets the current usage requirement, and determines that the second second pulse synchronization is completed.
  • the receiving side completes the synchronization of the local second pulse.
  • the receiving side acquires a phase deviation value from the local second pulse signal according to the second pulse signal on the transmitting side; determines whether the phase deviation value exceeds a preset deviation threshold; and if the phase deviation value exceeds a preset deviation threshold, Then, according to the phase deviation value, the local clock frequency of the receiving side is adjusted, the second pulse signal adjusted by the receiving side is acquired, and the phase difference between the adjusted second pulse signal and the transmitting side second pulse signal is obtained, and the next step is performed according to the phase difference value. Operation; if the phase deviation value does not exceed the preset deviation threshold, the receiving side determines that the second second pulse synchronization is completed.
  • the second pulse synchronization is initiated until the receiving side local second pulse signal and the transmitting side second pulse signal are received.
  • the phase deviation value is less than or equal to the deviation threshold; when the phase difference between the receiving side local second pulse signal and the transmitting side second pulse signal does not exceed the deviation threshold, it is determined that the second pulse synchronization of the current receiving side is completed.
  • Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • a first embodiment of the time synchronization device of the present application provides a time synchronization device, where the time synchronization device includes:
  • the receiving module 10 is configured to receive a time information data packet sent by the transmitting side.
  • the embodiment of the present invention is described by using time synchronization of a base station (BS) device.
  • BS base station
  • FIG. 16 for example, time synchronization between a base station and a base station, and time synchronization between the base station and a terminal device such as a mobile phone.
  • the communication between the transmitting side and the receiving side of the base station device is mainly performed by using a wireless interface, such as an air interface.
  • the base station providing the time synchronization function is used as the transmitting side, and the base station to be synchronized is used as the receiving side.
  • the receiving side realizes the time synchronization function through the time synchronization device.
  • the receiving module 10 receives the time information data packet sent by the transmitting side.
  • the transmitting side acts as a macro base station, from GNSS (Global Navigation Satellite System) or IEEE 1588 (Institute of Electrical and Electronics Engineers 1588, Institute of Electrical and Electronics Engineers 1588 protocol, ie precision clock synchronization of network measurement and control systems)
  • GNSS Global Navigation Satellite System
  • IEEE 1588 Institute of Electrical and Electronics Engineers 1588, Institute of Electrical and Electronics Engineers 1588 protocol, ie precision clock synchronization of network measurement and control systems
  • the protocol standard obtains the timing and obtains high time precision.
  • the sending side can also obtain the timing from other time systems, and can be flexibly set according to actual needs.
  • the transmitting side encapsulates the obtained time and the current time synchronization information to obtain a time information data packet, such as a GNSS TOD frame (Global Navigation Satellite System Time Of Day) and a 1588 synchronization frame.
  • a time information data packet such as a GNSS TOD frame (Global Navigation Satellite System Time Of Day) and a 1588 synchronization frame.
  • the encapsulated time information packet is a GNSS TOD frame.
  • the GNSS TOD frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header, the message header, the message length field, the message payload, and the frame check sequence field may be used as check information to verify the correctness and integrity of the current time information data packet; the message payload is carried by the current time information data packet.
  • the time information includes time such as absolute time on the transmitting side, time precision level, link transmission delay (referred to as link delay), and radio interface signal quality.
  • the absolute time on the transmitting side is the local absolute time on the transmitting side when the transmitting side sends the time information packet;
  • the time precision level is set to represent the time precision of the current transmitting side, carrying the clock source and the pulse per second (pps) Information such as the jitter level;
  • the link delay is set to represent the link transmission time between the current transmitting side and the time synchronization device, which can be measured by the transmitting side;
  • the quality of the wireless interface signal is the quality of the wireless interface signal of the current transmitting side, It is measured by the transmitting side.
  • the time information can also include other information, which can be flexibly set according to actual needs.
  • the encapsulated time information packet is 1588 frames.
  • the 1588 frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header, the message header, the message length field, the message payload, and the frame check sequence field may be used as check information to verify the correctness and integrity of the current time information data packet; the message payload is carried by the current time information data packet.
  • Time information including 1588 header, 1588 timestamp, link delay, and radio interface signal quality.
  • the 1588 header records the time information type and the message length field carried by the current time information data packet.
  • the 1588 timestamp is the local absolute time of the transmitting side when the sending side sends the time information data packet; the link delay is set to represent the current transmitting side.
  • the link transmission time between the time synchronization device and the time synchronization device can be measured by the transmitting side; the quality of the wireless interface signal is the quality of the wireless interface signal on the current transmitting side, which can be measured by the transmitting side.
  • the time information can also include other information, which can be flexibly set according to actual needs.
  • the sending side periodically sends the time information data packet to the receiving module 10 through the wireless interface, and the sending period can be flexibly set according to the actual situation according to the application scenario and the time synchronization requirement.
  • the receiving module 10 receives the time information data packet sent by the transmitting side.
  • the information module 20 is configured to verify the time information data packet and obtain time information according to the time information data packet.
  • the information module 20 After receiving the time information data packet sent by the transmitting side, the information module 20 checks the obtained time information data packet, and obtains time information according to the time information data packet.
  • the information module 20 performs verification according to the GNSS TOD frame or the 1588 frame to obtain verification information, and determines whether the received time information data packet is correct and complete.
  • the information module 20 parses the time information packet to obtain time information. If the current time information data packet is a GNSS TOD frame, the obtained time information includes time information including an absolute time on the transmitting side, a time precision level, a link delay, and none. Information such as line interface signal quality; if the current time information packet is 1588 frames, the obtained time information includes time information including timestamp, link delay, and radio interface signal quality.
  • the information module 20 discards the current time information packet.
  • the information module 20 obtains time information.
  • the synchronization module 30 is configured to initiate time synchronization according to the acquired time information.
  • the synchronization module 30 After obtaining the time information, the synchronization module 30 initiates time synchronization based on the obtained time information.
  • the synchronization module 30 performs local absolute time synchronization according to the absolute time, the time precision level, and the link delay in the time information.
  • the synchronization module 30 recovers the second pulse signal based on the time information packet, and uses the recovered second pulse signal as the reference second pulse. Then, the synchronization module 30 adjusts the frequency of the local clock crystal of the time synchronization device according to the obtained reference second pulse to synchronize the local second pulse signal with the reference second pulse signal.
  • the synchronization module 30 performs local absolute time synchronization according to the 1588 timestamp and the link delay in the time information.
  • the synchronization module 30 recovers the second pulse signal based on the time information packet, and uses the recovered second pulse signal as the reference second pulse. The synchronization module 30 then adjusts the frequency of the local clock crystal based on the resulting reference second pulse to synchronize the local second pulse signal with the reference second pulse signal.
  • the synchronization module 30 achieves synchronization of the local absolute time and the second pulse.
  • the synchronization module 30 may determine whether to initiate local time synchronization according to the quality of the wireless signal interface in the time information data packet.
  • the synchronization module 30 discards the current time information data packet, temporarily does not perform time synchronization, and then initiates time synchronization when the quality of the wireless signal interface is good or available.
  • the synchronization module 30 initiates time synchronization based on the obtained time information.
  • the receiving module 10 receives the time information data packet sent by the transmitting side; then, the information module 20 checks the obtained time information data packet, and acquires time information according to the time information data packet; and then, according to the acquired time Information, synchronization module 30 initiates time synchronization.
  • the time is obtained by the sending side, and the time information is encapsulated into a time information data packet, so that the receiving side can perform time synchronization according to the time information in the time information data packet, thereby avoiding time synchronization when using the IEEE 1588 networking.
  • the time information packet is exchanged and forwarded multiple times to reduce the time precision.
  • the transmitting side sends the time information data packet to the receiving side through the wireless interface, no external antenna is needed, which reduces the construction cost and maintenance cost of the base station networking.
  • the implementation of the present invention ensures that the time synchronization of the base station equipment is high-precision, the engineering cost and the maintenance cost are reduced, and the problem that the networking environment is limited is avoided.
  • a second embodiment of the time synchronization apparatus of the present application provides a time synchronization apparatus.
  • the transmitting side fragment transmits the a time information packet
  • the receiving module 10 is configured to
  • the time information packet sent by the transmitting side is fragmented and reloaded as a time information packet.
  • the sending side may directly receive the encapsulated time information data packet in a wireless frame of the wireless interface and send it to the time synchronization device, or may fragment the time information data packet and receive the wireless frame in the wireless interface. It is sent to the time synchronization device and can be flexibly set according to actual needs.
  • the receiving module 10 receives the time information data packet fragment sent by the transmitting side, and reloads it into a time information data packet.
  • the time information data packet currently encapsulated on the transmitting side is exemplified as a GNSS TOD frame.
  • a GNSS TOD frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header may be composed of 2 fixed bytes (synchronous characters) of the fixed byte (byte), and is set to notify the time synchronization device that the current message is a time synchronization message, that is, a time information data packet sent by the transmitting side.
  • the fixed value can be 0x43, 0x43 represents the "C" character in the ASCII (American Standard Code for Information Interchange) code; the fixed value can also be 0x4D, and 0x4D represents the "M" character in the ASCII code. .
  • the message header can be composed of 4 bytes, which is a message type and an ID number.
  • the message classification is set to represent the type of time information carried in the current GNSS TOD frame, and the ID number is set to represent the number of the current message in the message period. For example, a fixed value of 0x8001 is used to indicate that the current message is a GNSS TOD message; an unsigned number of 0 to 65535 is used to indicate the number of the current time information packet in the time synchronization period.
  • the time synchronization period is a period in which the transmitting side synchronizes with the time synchronization device, and can be flexibly according to actual needs.
  • the time information packets sent by the transmitting side are sequentially labeled according to the time sequence of the sending, and are characterized by ID numbers. The period number of the current time information packet.
  • the message length field which can consist of 4 bytes, contains the length of the message payload.
  • the frame check sequence field can be composed of 1 byte, 2 bytes, or 4 bytes.
  • CRC Cyclic Redundancy Check
  • the test sequence can be calculated using CRC32.
  • the frame check sequence field is 2 bytes, and CRC16 is used for illustration.
  • the message payload includes the content of the time information.
  • the time information includes absolute time, time precision level, link delay, and radio interface signal quality.
  • Absolute time includes seconds, weeks, and LeapS (offset).
  • the intra-week second represents the unsigned char (unsigned char) with a byte offset of 0, a byte type of 4 bytes (bytes), and the unit is s (seconds); the number of weeks represents the GNSS time week. Number, byte offset is 4, data type is 2byte unsigned char, the unit is week (week); LeapS represents the offset of GNSS time and UTC (Coordinated Universal Time), byte offset A signed char with a shift of 6 and a data type of 1 byte in s.
  • the time accuracy level includes the second pulse status, clock source, TAcc (jitter level), clock source operating status, and monitoring alarms.
  • the second pulse state is the state of the current second pulse, the byte offset is 7, and the data type is 1 byte unsigned char.
  • the second pulse state is 0x00, the second pulse is normal; when the second pulse state is 0x01, the atomic clock of the time synchronization device is maintained; when the second pulse state is 0x02, the second pulse is not available; when the second pulse state is 0x03, Characterizes the time synchronization device high crystal oscillator to maintain state; when the second pulse state is 0x04, it characterizes the transmission bearer device to maintain; 0x05 and subsequent values 0xff To reserve a value, you can add other second pulse states.
  • the clock source is the clock source of the current second pulse, the byte offset is 8, and the data type is 1 byte unsigned char.
  • the clock source is 0x00
  • the clock source is the Big Dipper navigation system
  • the clock source is GPS (Global Positioning System)
  • the clock source is 0x02
  • the clock source is GLONASS (Russian The abbreviation of the global satellite navigation system
  • when the clock source is 0x03, the clock source is the Galileo satellite navigation system
  • the clock source is IEEE 1588
  • the clock source is 0x05
  • the clock source is NTP (Network). Time Protocol (Network Time Protocol); 0x06 and subsequent values 0xff are reserved values, and other clock sources can be added.
  • TAcc characterizes the jitter magnitude of the second pulse, with a byte offset of 9 and an unsigned char with a data type of 1 byte.
  • the jitter of the second pulse ranges from 0 to 255 levels, and the jitter is 15 ns (nanoseconds) per level. For example, when TAcc is 0, the jitter of the second pulse is 0 ns; when TAcc is 2, the jitter of the second pulse is characterized. The amount is 30 ns; and so on, when TAcc is 255, the current second pulse jitter is too large and meaningless.
  • the clock source working state represents the working state of the current clock source, the byte offset is 10, and the data type is 2 bytes of unsigned char.
  • the clock source operating state defines the GNSS Fix Type, and the range for characterizing the quality of the work is 0 to 3.
  • the clock source working state when the clock source working state is 0x00, it indicates the current no fix (no fixed state); when the clock source working state is 0x01, it represents the current dead reckoning only (only dead reckoning); when the clock source working state is 0x02, it represents the current The working state is 2D plane; when the clock source working state is 0x03, it indicates that the current working state is 3D stereo; when the clock source working state is 0x04, it indicates that the current working state is GNSS+dead reckoning (GNSS and dead reckoning); clock source works When the status is 0x05, it indicates the current Time only fix; 0x06 and subsequent values 0xff are reserved values, and other clock source working states can be added.
  • the monitoring warning characterizes the status alarm of the current clock source, with a byte offset of 12 and an unsigned char of 2 bytes. For example, when the monitoring warning is Bit0, it represents the current clock source antenna open; when the monitoring warning is Bit1, it represents the current clock source antenna shorted; when the monitoring warning is Bit2, it represents the current clock source not tracking satellites ( Satellite is not detected; when the monitoring warning is Bit3, the current clock source is surveyed in progress Line investigation); when the monitoring warning is Bit4, it indicates the current clock source no stored position; when the monitoring warning is Bit5, it indicates the current clock source leap second pending; when the monitoring warning is Bit6, the characterization The current clock source is in test mode; when the monitoring warning is Bit7, it indicates that the current clock source is position is questionable; when the monitoring warning is Bit8, it indicates that the current clock source is almanac not complete (the almanac is incomplete); When the monitoring warning is Bit9, it indicates that the current clock source pps was generated; Bit10 to Bit15 are reserved values, and other monitoring warnings
  • the link delay is the link delay between the current transmitting side and the time synchronization device, and is measured by the originating side.
  • the byte offset is 14, and the data type is 2 bytes of unsigned char.
  • the link delay is 260.42 ns (1 chip, that is, one radio basic frame time) is a delay level. For example, when the link delay is 0x0, it indicates that the current link has no delay; when the link delay is 0x1, The current link delay is represented by 260.42 ns (1 chip, that is, one radio basic frame time); when the link delay is 0x2, the current link delay is represented by 520.84 ns, and so on; the link delay is 0x9600. At the time, the current link delay is represented as 10 ms. 0x9601 and subsequent values 0xffff are reserved values, and other link delays can be added.
  • the quality of the radio interface signal characterizes the quality of the radio interface signal on the transmitting side, with a byte offset of 16 and an unsigned char of 1 byte. For example, when the signal quality of the wireless interface is 0x0, the quality of the current wireless interface is high; when the signal quality of the wireless interface is 0x1, the quality of the current wireless interface is characterized; when the signal quality of the wireless interface is 0x2, the quality of the current wireless interface is low; the wireless interface signal When the quality is 0x3, the quality of the current wireless interface is not quantifiable. 0x4 and subsequent values 0xff are reserved values, which can add other wireless interface signal quality.
  • the message payload reserves 3 bytes of data as a reserved value, and is set to add other information. Available, the message payload is 20 bytes, which is 20 bytes.
  • the GNSS TOD frame of the transmitting side package is 32 bytes, that is, 32 bytes.
  • the transmitting side divides the data of a total of 32 bytes of the GNSS TOD frame into 16 subframes, each of which is 2 bytes.
  • the transmitting side sends data to the time synchronization device through the wireless interface, and the 16 two-byte sub-frames are carried in the radio frame of the radio interface 16 times and transmitted.
  • the absolute time of the transmission in the message payload is consistent with the local transmission time on the transmitting side.
  • the receiving module 10 receives the time information packet fragment sent by the transmitting side, that is, each 2 byte After the subframe, the obtained subframe is reloaded to obtain a time information packet GNSS TOD frame.
  • the time information data packet currently encapsulated on the transmitting side is exemplified by 1588 frames.
  • the time information carried in the 1588 frame uses a sync message, a followup message, or an announce message.
  • other types of messages can be used for 1588 frames.
  • the 1588 frame includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the frame header may be composed of 2 fixed bytes (synchronous characters) of the fixed byte (byte), and is set to notify the time synchronization device that the current message is a time synchronization message, that is, a time information data packet sent by the transmitting side.
  • the fixed value can be 0x43, 0x43 represents the "C" character in the ASCII (American Standard Code for Information Interchange) code; the fixed value can also be 0x4D, and 0x4D represents the "M" character in the ASCII code. .
  • the message header can be composed of 4 bytes, which is a message type and an ID number.
  • the message classification is set to represent the type of time information carried in the current 1588 frame, and the ID number is set to represent the number of the current message in the message period.
  • a fixed value of 0x8002 is used to indicate that the current message is a sync message
  • a fixed value of 0x8003 is used to indicate that the current message is a followup message
  • a fixed value of 0x8004 is used to indicate that the current message is an announce message
  • an unsigned number of 0 to 65535 is used to indicate the current The number of time information packets in the time synchronization period.
  • time synchronization period is a period in which the transmitting side synchronizes with the time synchronization device, and can be flexibly according to actual needs.
  • the time information packets sent by the transmitting side are sequentially labeled according to the time sequence of the sending, and are characterized by ID numbers. The period number of the current time information packet.
  • the message length field which can consist of 4 bytes, contains the length of the message payload.
  • the frame check sequence field can be composed of 1 byte, 2 bytes, or 4 bytes.
  • CRC Cyclic Redundancy Check
  • the test sequence can be calculated using CRC32.
  • the frame check sequence field is 2 bytes, and CRC16 is used for illustration.
  • the message payload includes the content of the time information.
  • the time information carried in the 1588 frame is a sync packet or a followup packet
  • the time information includes a 1588 header, a 1588 timestamp, and a link delay. And wireless interface signal quality, etc.
  • the time information carried in the 1588 frame is an announce packet
  • the time information includes 1588 header, 1588 timestamp, and 1588 time. Accuracy, link delay, and radio interface signal quality.
  • the 1588 header includes information such as the type of the current message, for a total of 34 bytes.
  • the Message Type carried by the 1588 header is Transport Specific
  • the byte offset is 0, the size is 1 byte
  • the Version PTP (Precision Time Protocol Version, Precise clock synchronization protocol version), reserved (reserved), byte offset is 1, size is 1 byte
  • Message length (message length) records the length of the current message payload, byte offset is 2
  • the size is 2 bytes; the Domain number has a byte offset of 4 and a size of 1 byte; the reserved byte has an offset of 5 and a size of 1 byte;
  • the Flag field is the byte field.
  • the offset is 6 and the size is 2 bytes; the correction field has a byte offset of 8 and a size of 8 bytes; the reserved byte offset is 16 and the size is 4 bytes;
  • Source port Identity Source port identity
  • sequence ID sequence ID
  • control field control character
  • size is 1byte;
  • Log message Interval byte offset The shift is 33 and the size is 1 byte.
  • 1588 timestamp is the time difference from UTC, including 6 bytes of second bit information and 4 bytes of nanosecond bit information, totaling 10 bytes.
  • the 1588 time precision exists only when the time information carried in the 1588 frame is an announce message, for a total of 20 bytes.
  • the 1588 time accuracy includes information such as clock priority, clock level, clock accuracy, clock jitter, time source, and number of hops.
  • the clock priority characterizes the priority of the current clock; the clock level ranges from 0 to 255. The smaller the value, the higher the clock level; the clock accuracy uses numerical values to characterize the time accuracy; the clock jitter characterizes the current clock jitter.
  • the number of passing hops represents the number of hops from the time source to the node, and each pass adds 1; the time source represents the source of the current time, such as satellite, internal clock, and so on.
  • the link delay is used to describe the delay of the link between the transmitting side and the time synchronization device.
  • the transmitting side and the time synchronization device do not need to perform an interactive calculation of the link delay, and the link delay can be measured by the transmitting side. get.
  • the link delay is 260.42 ns (1 chip, that is, one radio basic frame time) is a delay level.
  • the link delay when the link delay is 0x0, it indicates that the current link has no delay; when the link delay is 0x1, The current link delay is represented by 260.42 ns (1 chip, ie, one radio basic frame time); when the link delay is 0x2, the current link delay is represented by 520.84 ns, and so on; At 0x9600, the current link delay is represented as 10ms. 0x9601 and subsequent values 0xffff are reserved values, and other link delays can be added.
  • the quality of the wireless interface signal characterizes the quality of the wireless interface signal on the current transmitting side. For example, when the signal quality of the wireless interface is 0x0, the quality of the current wireless interface is high; when the signal quality of the wireless interface is 0x1, the quality of the current wireless interface is characterized; when the signal quality of the wireless interface is 0x2, the quality of the current wireless interface is low; the wireless interface signal When the quality is 0x3, the quality of the current wireless interface is not quantifiable. 0x4 and subsequent values 0xff are reserved values, which can add other wireless interface signal quality.
  • link delay and the quality of the radio interface signal are 2 bytes in total.
  • the message payload reserves 2 bytes of data as a reserved value, and is set to add other information.
  • the message payload is 48 bytes when the time information carried in the 1588 frame is a sync message or a followup message. When the time information carried in the 1588 frame is an announce message, the message payload is 68 bytes.
  • the transmitting side divides the 1588 frame into 30 or 40 subframes, each of which is 2 bytes.
  • the transmitting side sends data through the wireless interface, and the 30 or 40 2-byte sub-frames are carried in the radio frame of the radio interface 30 times or 40 times, and are sent out.
  • the absolute time of the transmission in the message payload is consistent with the local transmission time on the transmitting side.
  • the receiving module 10 receives the time information packet fragment sent by the transmitting side, that is, after each 2 byte subframe, and reassembles the obtained subframe to obtain a time information packet 1588 frame.
  • the transmitting side fragment transmits the time information data packet to adapt to the transmission capability of the network link, and improves the transmission efficiency.
  • the receiving module 10 receives the time information data packet fragment sent by the transmitting side, and reloads the packet into Time information packets for time synchronization. In this embodiment, multiple manners of time information data packets are transmitted, and the transmission efficiency of the time information data packet is improved, thereby effectively ensuring the accuracy of time synchronization on the receiving side.
  • the third embodiment of the time synchronization apparatus of the present application provides a time synchronization.
  • the device is based on the first embodiment or the second embodiment of the time synchronization device of the present application shown in FIG. 10 (the first embodiment of the time synchronization device of the present application shown in FIG. 10 is taken as an example), the information module 20 includes:
  • the verification unit 21 is arranged to verify whether the time information data packet is correct and complete.
  • the checking unit 21 After acquiring the time information packet transmitted by the transmitting side, the checking unit 21 verifies the correctness and integrity of the time information packet.
  • the time information data packet includes a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the check unit 21 verifies whether the data packet is correct according to the frame header, whether it is a time synchronization frame, such as a GNSS TOD frame or a 1588 frame.
  • the check unit 21 verifies whether the time information type carried in the data packet is correct according to the message header, whether it is a GNSS TOD message corresponding to the GNSS TOD frame, or whether it is a sync message, a followup message or an announce message corresponding to the 1588 frame. Text.
  • the verification unit 21 verifies whether the message payload carried by the time information data packet is complete according to the message length field.
  • the check unit 21 verifies whether the time information packet is complete based on the message payload and the frame check sequence field. If not complete, the current time information packet is discarded. If complete, confirm that the current time information packet is correct and complete.
  • the check unit 21 corrects according to the frame header, and the check is correct according to the message header, and the check is complete according to the message length field, and the check is complete according to the message payload and the frame check sequence, the current time information data is confirmed.
  • the package is correct and complete.
  • the verification unit 21 obtains the verification result of the current time information packet.
  • the information unit 22 is configured to obtain a message payload according to the time information data packet to obtain time information, and the message payload includes the time information, if the time data packet is correct and complete.
  • the information unit 22 obtains the message payload based on the time information packet, and the message payload includes time information, whereby the information unit 22 obtains the time information.
  • the time information data packet currently encapsulated on the transmitting side is exemplified as a GNSS TOD frame.
  • the information unit 22 parses the currently obtained time information packet to obtain a message payload.
  • the message payload is the time information encapsulated by the transmitting side in the GNSS TOD frame, including absolute time, time precision level, link delay, and radio interface signal quality.
  • the time information of the sending side package may further include other information, and may be flexibly set according to actual needs.
  • the information unit 22 obtains time information including absolute time, time precision level, link delay, and radio interface signal quality.
  • the time information data packet currently encapsulated on the transmitting side is exemplified by 1588 frames.
  • the time information carried in the 1588 frame uses a sync message, a followup message, or an announce message.
  • a sync message a followup message
  • an announce message a message that announces the time information carried in the 1588 frame.
  • other types of messages can be used for 1588 frames.
  • the information unit 22 parses the currently obtained time information packet to obtain a message payload.
  • the message payload is the time information encapsulated in the 1588 frame by the sending side. If the time information encapsulated on the sending side is a sync packet or a followup packet, the message payload includes 1588 header, 1588 timestamp, link delay, and radio interface signal. Quality, etc.; when the time information carried in the 1588 frame is an announce message, the message payload includes 1588 header, 1588 timestamp, 1588 time precision, link delay, and radio interface signal quality.
  • the information unit 22 obtains time information.
  • the time information includes the 1588 header, the 1588 timestamp, the link delay, and the quality of the radio interface signal.
  • the time information carried in the 1588 frame is the time information of the 1588 header, the link delay, and the quality of the radio interface.
  • the time information includes the 1588 header, 1588 timestamp, 1588 time precision, link delay, and radio interface signal quality.
  • the verification unit 21 verifies whether the currently obtained time information data packet is correct and complete; if the current time data packet is correct and complete, the information unit 22 acquires the message payload according to the time information data packet to obtain time information.
  • the message payload includes time information.
  • the sending side encapsulates the time information in the time information data packet, and after receiving the time information data packet, the receiving side first checks whether the obtained time information data packet is correct and complete, only when the time information data packet is correct. The time information is obtained completely, so that the incorrect or incomplete data packet reduction affects the time synchronization of the receiving side and reduces the time synchronization precision.
  • This embodiment implements verification of the correctness and integrity of the time information data packet, and improves the correctness and accuracy of the time synchronization on the receiving side.
  • a fourth embodiment of a time synchronization apparatus provides a time synchronization apparatus.
  • the time information data packet includes a header, a message header, a message length field, a message payload, and a frame check sequence field, and the check unit 21 is further configured to
  • the time information data packets sent by the transmitting side include a frame header, a message header, a message length field, a message payload, and a frame check sequence field.
  • the transmitting side flexibly selects the GNSS or IEEE 1588 acquisition time according to the clock source working state of the current acquisition time, and encapsulates the GNSS TOD frame or 1588 frame.
  • the verification unit 21 After acquiring the time information data packet sent by the transmitting side, the verification unit 21 first verifies whether the received time information data packet is correct and complete.
  • the time information data packet currently encapsulated on the transmitting side is exemplified as a GNSS TOD frame.
  • the verification unit 21 verifies whether the data packet is correct according to the frame header.
  • the check unit 21 determines whether the keyword of the frame header is 0x43 or 0x4d pre-configured by the transmitting side. If the frame header keyword is 0x43 or 0x4d, it determines that the time information packet received this time is correct; otherwise, the time of the current reception is determined. The information packet is incorrect.
  • the verification unit 21 verifies whether the data packet is correct according to the message header.
  • the check unit 21 obtains the message type keyword carried in the message header. Since the check unit 21 does not know the type of the time information sent by the transmitting side before receiving the time information data packet, the check unit 21 determines whether the message type keyword is It is 0x8001, 0x8002, 0x8003, or 0x8004, that is, it is determined whether the time information carried in the current time information data packet is one of a GNSS TOD message, a sync message, a followup message, or an announce message.
  • the keyword of the message header is 0x8001, 0x8002, 0x8003 or 0x8003, it is determined that the time information packet received this time is correct; if the keyword of the message header is not Any one of 0x8001, 0x8002, 0x8003, and 0x8003 determines that the time information packet received this time is incorrect. For example, if the keyword of the message header is 0x8001, it is determined that the time information packet received this time is correct, and the time information carried by the current time information data packet is obtained according to 0x8001 as a GNSS TOD message.
  • the verification unit 21 verifies whether the data packet is complete based on the message length field and the message payload.
  • the verification unit 21 obtains the message payload length carried by the current time information data packet according to the time length field. For example, when the message length field is 0x14, the current message payload length is 20 bytes. Then, if the current time information packet is sent by the transmitting side as a whole, it is determined whether the length of the current message payload is 20 bytes, and if the length of the message payload is 20 bytes, it is determined that the time information packet received this time is complete; if the current message If the length of the payload is not 20 bytes, it is determined that the time information packet received this time is incomplete.
  • the message payload sent by the transmitting side is received 10 times, 2 bytes each time, and it is determined whether the length of the current message payload is 20 bytes after reloading the time information data packet. If the length of the message payload is 20 bytes, it is determined that the time information packet received this time is complete; if the length of the message payload is not 20 bytes, it is determined that the time information packet received this time is incomplete.
  • the check unit 21 verifies whether the time information packet is complete based on the message payload and the frame check sequence field.
  • the verification unit 21 performs the CRC16 check calculation on the received 20-byte message payload and the frame check sequence. If the fixed sequence x15-x0:0001110100001111 is calculated, it is determined that the time information packet received this time is complete; If the fixed sequence x15 to x0: 0001110100001111 is not calculated, it is determined that the time information packet received this time is incomplete.
  • the verification unit 21 obtains the verification result.
  • the time information data packet currently encapsulated on the transmitting side is exemplified by 1588 frames.
  • the verification unit 21 verifies whether the data packet is correct according to the frame header.
  • the check unit 21 determines whether the keyword of the frame header is 0x43 or 0x4d pre-configured on the transmitting side. If the frame header keyword is 0x43 or 0x4d, it determines that the time information packet received this time is correct; if the frame header keyword is not 0x43 And any one of 0x4d, it is determined that the time information packet received this time is incorrect.
  • the verification unit 21 verifies whether the data packet is correct according to the message header.
  • the verification unit 21 acquires the message type keyword carried by the message header, because the verification unit 21 receives the time information packet before The time information type sent by the sending side is not known. Therefore, the checking unit 21 determines whether the message type keyword is 0x8001, 0x8002, 0x8003, or 0x8004, that is, whether the time information carried by the current time information data packet is a GNSS TOD message, One of a sync message, a followup message, or an announce message.
  • the keyword of the message header is 0x8001, 0x8002, 0x8003 or 0x8003, it is determined that the time information packet received this time is correct; if the keyword of the message header is not any one of 0x8001, 0x8002, 0x8003 or 0x8003, the judgment is The time information packet received twice is incorrect. For example, if the keyword of the message header is 0x8002, it is determined that the time information packet received this time is correct, and the time information carried by the current time information data packet is obtained as a sync message according to 0x8002.
  • the verification unit 21 verifies whether the data packet is complete based on the message length field and the message payload.
  • the verification unit 21 obtains the message payload length carried by the current time information data packet according to the time length field. For example, when the message length field is 0x30, the current message payload length is 48 bytes. Then, if the transmitting side transmits the current time information packet as a whole, it is determined whether the length of the current message payload is 48 bytes, and if the length of the message payload is 48 bytes, it is determined that the time information packet received this time is complete; If the length of the payload is not 48 bytes, it is determined that the time information packet received this time is incomplete.
  • the message payload sent by the transmitting side is received 24 times, 2 bytes each time, and it is determined whether the current message payload length is 48 bytes after reloading the time information data packet. If the length of the message payload is 48 bytes, it is determined that the time information packet received this time is complete; if the length of the message payload is not 48 bytes, it is determined that the time information packet received this time is incomplete. When the message length field is 0x44, the current message payload length is 60 bytes.
  • the current time information packet is sent by the transmitting side as a whole, it is determined whether the length of the current message payload is 60 bytes, and if the length of the message payload is 60 bytes, it is determined that the time information packet received this time is complete; If the length of the payload is not 60 bytes, it is determined that the time information packet received this time is incomplete. If the current side information packet is sent by the transmitting side fragment, the message payload sent by the transmitting side is received 30 times, 2 bytes each time, and after the time information packet is reassembled, it is determined whether the current message payload length is 60 bytes. If the length of the message payload is 60 bytes, it is determined that the time information packet received this time is complete; if the length of the message payload is not 60 bytes, it is determined that the time information packet received this time is incomplete.
  • the verification unit 21 verifies whether the data packet is completed according to the message payload and the frame check sequence field. whole.
  • the verifying unit 21 performs the CRC16 check calculation on the received 48-byte or 60-byte message payload and the frame check sequence. If the fixed sequence x15-x0:0001110100001111 is calculated, it is determined that the time information packet received this time is complete. If the fixed sequence x15 ⁇ x0:0001110100001111 is not calculated, it is determined that the time information packet received this time is incomplete.
  • the verification unit 21 obtains the verification result.
  • the checking unit 21 may receive the time information data packet after receiving the fragment, according to the received time information data packet.
  • the fragments are separately verified, and the verification method is the same as described above, and the verification result is obtained.
  • the verification unit 21 verifies that the current time information data packet is correct according to the frame header, and verifies that the current time information data packet is correct according to the message header, and verifies the current time information data according to the message payload and the frame check sequence field. If the packet is complete and the current time information packet is complete according to the message payload and the frame check sequence, the check unit 21 determines that the time information packet received this time is correct and complete; if the check unit 21 is based on the frame The header check time information packet is incorrect, or the current time information packet is incorrect according to the message header, or the current time information packet is incomplete according to the message payload and the frame check sequence field, or If the current time information packet is incomplete according to the message payload and the frame check sequence, the check unit 21 determines that the time information packet received this time is incorrect or incomplete.
  • the verification unit 21 obtains the verification result of the time information packet received this time.
  • the verification unit 21 verifies whether the data packet is correct according to the frame header, whether the data packet is correct according to the message header, and whether the data packet is complete according to the message length field and the message payload verification time information. Checking whether the data packet is complete according to the message payload and the frame check sequence field; if the frame header check is correct, and the message header is verified correctly, and the message length field and the message payload check are complete, and the message payload is And the frame check sequence domain check is complete, it is determined that the time information packet received this time is correct and complete.
  • the time information data packet is verified in multiple manners, and multiple verifications of the correctness and integrity of the time information data packet are implemented, and the receiving side only performs time synchronization according to the correct and complete time information data packet, thereby improving The correctness and accuracy of the time synchronization on the receiving side.
  • the fifth embodiment of the time synchronization device of the present application provides a time synchronization device.
  • the time synchronization device further includes: based on the fourth embodiment of the time synchronization device of the present application shown in FIG.
  • the discarding module 40 is configured to discard the time information data packet if the time information data packet is incorrect or incomplete.
  • the discarding module 40 discards the time information data received this time. Packet, not used for time synchronization of time synchronization devices.
  • the receiving module 10 receives the next time information data packet sent by the transmitting side, and the checking unit 21 performs verification.
  • the discarding module 40 discards the current time information data packet.
  • the quality of the time information packet is controlled.
  • the receiving side discards the time information packet.
  • the quality of the time information data packet is controlled, and the time synchronization accuracy and accuracy of the receiving side are improved.
  • a sixth embodiment of the time synchronization apparatus of the present application provides a time synchronization apparatus.
  • the transmitting side fragment transmits the a time information data packet
  • the message header of the time information data packet carries a cycle number of the current time synchronization
  • the verification unit 21 is further configured to
  • the transmitting side periodically transmits the time information data packet to the time synchronization device, and the time synchronization device performs time synchronization according to the received time information data packet. It should be noted that the cycle number carried by the transmitting side when transmitting the time information packet is synchronized with the cycle number of the time synchronization device for time synchronization.
  • the ID number carried in the message header in the time information packet sent by the sending side is the period number of this time synchronization.
  • the transmitting side uses the unsigned number 0 to 65535 as the ID number, and indicates the number of the current time information packet in the time synchronization period, that is, the current time synchronization period number.
  • the transmitting side sequentially according to the sending time sequence of the time information data packet. ID number of the message header of the time information packet.
  • each fragment of the time information data packet carries the same period number of the current time synchronization, and the impact of the period number on the size of each fragment byte is negligible. .
  • the receiving unit 10 After receiving the time information data packet fragmentation, the receiving unit 10 obtains the cycle number carried by each time information data packet fragment.
  • the verification unit 21 determines, according to the current time synchronization period, whether the period number carried in the received time information packet fragment is the period number of the current time synchronization period. If the period number carried in the received time information packet fragment is the period number of the current time synchronization period, it is determined that the time information packet is fragmented correctly; if the received time information packet fragment carries the period number is not The period number of this time synchronization period determines that the current time information packet is incorrect.
  • the check unit 21 determines whether the received time information packet fragment is a fragment of the same time information packet according to whether the period number carried by the packet of the received time information packet is the same.
  • the verification unit 21 It is determined that the time information packet sent by the transmitting side is fragmented correctly. If the time information packet fragment does not carry the same period number in the current time synchronization period, or the period number of the time information packet fragment is different from the period number of the current time synchronization period, the check unit 21 It is determined that the time information packet sent by the transmitting side is fragmented incorrectly.
  • the information unit 22 acquires the message payload according to the time information data packet, and obtains time information.
  • the discarding module 40 discards the currently received time information data packet.
  • the checking unit 21 may perform verification when the receiving module 10 receives the time information data packet fragmentation; if the time information data packet is fragmented correctly, the receiving unit receives The module 10 reloads the time information packet to obtain the time information packet; if the time information packet is not fragmented, the discarding module 40 discards the time information packet fragment, and the receiving module 10 does not according to the time information received this time. Packet fragmentation reloads time information packets.
  • the time synchronization device further includes:
  • the quality checking module 50 is configured to obtain, according to the period number, a packet loss rate of the time information data packet in a preset quality detection period; if the packet loss rate of the information data packet is greater than a preset threshold, Initiate time synchronization.
  • the quality inspection module 50 can obtain the time information packet in the preset quality detection period according to the received time information packet period number. Packet loss rate.
  • the preset quality detection period is a time synchronization signal quality detection period pre-configured by the receiving side, and can be flexibly set according to an application scenario of the receiving side or an actual requirement for signal quality.
  • the quality checking module 50 can identify different time information packets according to the received time information packet period number, thereby obtaining the receipt. The number of time information packets arrived. Of course, the continuity of the transmission side transmission time information data packet can also be obtained by the cycle number.
  • the correct and complete time information data packet is taken as an available data packet, and the incorrect or incomplete time information data packet is an unavailable data packet.
  • the quality inspection module 50 records the available data packets and the discarded unavailable data packets according to the cycle number, and obtains the data packet records.
  • the quality inspection module 50 can obtain the total number of available data packets and unavailable data packets received by the receiving module 10 in the preset quality detection period according to the data packet record, that is, the total number of data packets received by the receiving module 10.
  • the quality inspection module 50 can obtain the number of unavailable data packets received by the receiving module 10 in the preset quality detection period according to the data packet record.
  • the quality inspection module 50 calculates the ratio of the number of unavailable data packets to the total number of received data packets, and obtains the packet loss rate of the receiving side, that is, the packet loss rate of the time information data packet.
  • the quality inspection module 50 obtains the packet loss rate of the time information data packet within the preset quality detection period.
  • the packet loss rate After obtaining the packet loss rate on the receiving side, if the packet loss rate is greater than a preset threshold in the preset quality detection period, that is, the time synchronization device exceeds the preset threshold for the time information packet loss rate, the current The quality of the time information packet may be poor due to a failure or link on the transmitting side.
  • the quality inspection module 50 controls the synchronization module 30 not to initiate time synchronization according to the time information data packet in the segment quality detection period.
  • the quality inspection module 50 continues to perform verification based on the time information packet transmitted by the transmitting side.
  • the synchronization module 30 initiates time synchronization according to the time information packet in the period.
  • the preset threshold is a pre-configured scale value, and can be flexibly set according to different application scenarios or the receiving side for the quality requirements of the time information packet.
  • the sending side fragment transmits a time information data packet, and the message header of the time information data packet carries the current time synchronization period number; the checking unit 21 verifies the time information data packet sent by the transmitting side according to the period number. Whether the fragmentation is correct; if the periodic number verification is correct, the time information packet received this time is correct and complete, the information unit 22 acquires the time information for time synchronization; if the periodic number verification is incorrect, the receiving module 40 receives the side The current time information packet is discarded; then, the quality inspection module 50 obtains the packet loss rate of the time information packet in the preset quality detection period according to the cycle number; if the packet loss rate is greater than the preset threshold, the quality inspection module The 50 control synchronization module 30 does not initiate time synchronization.
  • the correctness of the time information packet fragmentation is determined by the cycle number, and the strictness of the quality control of the time information packet is improved.
  • the receiving side Time synchronization is not initiated yet, and the time synchronization is started after the quality of the time information packet satisfies the preset requirement.
  • the quality of the time information data packet is controlled, and the time synchronization accuracy and accuracy of the receiving side are improved.
  • the seventh embodiment of the time synchronization device of the present application provides a time synchronization device, based on the embodiment shown in any one of the foregoing FIG. 10 to FIG. 13 (this embodiment takes FIG. 13 as an example).
  • the time synchronization includes absolute time synchronization and/or second pulse synchronization
  • the synchronization module 30 includes:
  • the condition unit 31 is configured to determine whether the time information satisfies a preset condition for initiating time synchronization.
  • the condition unit 31 After obtaining the time information based on the time information packet, the condition unit 31 determines whether the obtained time information satisfies the preset condition for initiating the time synchronization.
  • the preset condition for initiating time synchronization is a pre-configured requirement for the current time information by the condition unit 31, and may include a jitter magnitude requirement for the clock source, for the clock. Requirements for source operating conditions, requirements for alarms for clock source status, requirements for link delay, and requirements for signal quality for wireless interfaces.
  • the condition unit 31 can flexibly set the conditions for initiating time synchronization according to the application scenario or the quality requirement of the time information data packet. For example, the preset condition for initiating time synchronization is that the radio interface signal quality is good and the link delay cannot exceed 530 ns.
  • the condition for initiating time synchronization pre-configured by the current condition unit 31 is as follows: the radio interface signal quality is high or medium, and is illustrated.
  • the condition unit 31 determines that the current radio interface quality is high, and the current time information satisfies the preset condition for initiating time synchronization, and can be used to initiate time synchronization.
  • the condition unit 31 determines that the current radio interface is unavailable, and the current time information does not satisfy the preset condition for initiating time synchronization, and may not be used to initiate time synchronization.
  • condition unit 31 obtains the determination result.
  • the synchronization unit 32 is configured to initiate absolute time synchronization and/or second pulse synchronization if the time information satisfies a preset condition for initiating time synchronization.
  • the synchronization unit 32 initiates time synchronization, and the time synchronization includes absolute time synchronization and/or second pulse synchronization.
  • the time information packet currently encapsulated by the transmitting side is exemplified as a GNSS TOD frame.
  • the time information acquired by the information unit 22 includes absolute time, time precision level, link delay, and radio interface signal quality.
  • the synchronization unit 32 can synchronize the local absolute time according to the absolute time of the transmitting side and the link delay.
  • the synchronization unit 32 can recover the second pulse signal on the transmitting side according to the absolute time and the link delay of the plurality of time information packets within a certain time range. Then, the obtained second pulse signal is recovered as a reference second pulse. Synchronization unit 32 then adjusts the frequency of the local clock crystal based on the resulting reference second pulse to synchronize the local second pulse signal with the reference second pulse signal.
  • Synchronization unit 32 thus achieves local absolute time synchronization and/or local second pulse synchronization.
  • the time information packet currently encapsulated by the transmitting side is 1588 frames.
  • the time information acquired by the information unit 22 includes 1588 header, 1588 timestamp, link delay, and radio interface signal quality.
  • the time information is an announce message, the time information additionally includes 1588 time precision.
  • the synchronization unit 32 can synchronize the local absolute time according to the 1588 timestamp and the link delay on the transmitting side.
  • the synchronization unit 32 can recover the second pulse signal of the transmitting side according to the 1588 timestamp and the link delay of the plurality of time information data packets within a certain time range. Then, the obtained second pulse signal is recovered as a reference second pulse. Synchronization unit 32 then adjusts the frequency of the local clock crystal based on the resulting reference second pulse to synchronize the local second pulse signal with the reference second pulse signal.
  • Synchronization unit 32 thus achieves local absolute time synchronization and/or local second pulse synchronization.
  • the condition unit 31 determines whether the obtained time information satisfies a preset condition for initiating time synchronization; if the time information satisfies a preset condition for initiating time synchronization, the synchronization unit 32 initiates absolute time synchronization and/or second pulse synchronization. .
  • the implementation initiates the absolute time synchronization and/or the second pulse synchronization according to the time information, and realizes whether the time synchronization is initiated according to the accuracy of the time information and the like, thereby effectively improving the reception.
  • the accuracy of side time synchronization is a preset condition for initiating time synchronization.
  • the eighth embodiment of the time synchronization apparatus of the present application provides a time synchronization apparatus.
  • the synchronization unit 32 includes:
  • the absolute time synchronization sub-unit 321 is configured to initiate absolute time synchronization according to the time information if the time information satisfies a preset condition for initiating time synchronization.
  • the absolute time synchronization sub-unit 321 initiates absolute time synchronization based on the time information.
  • the time information packet currently encapsulated by the transmitting side is exemplified as a GNSS TOD frame.
  • the synchronization unit 32 initiates absolute time synchronization based on the absolute time in the time information, the link delay, and the local time at which the receiving module 10 receives the time information packet.
  • the absolute time T1 on the transmitting side is added to the link delay T2 to obtain the transmitting side absolute time T3 when the receiving module 10 receives the time information packet.
  • the absolute time synchronization sub-unit 321 obtains the absolute time difference between the receiving side and the transmitting side according to the time difference between T3 and T4, and adjusts the local absolute time according to the obtained absolute time difference. To achieve local absolute time synchronization.
  • the time information packet currently encapsulated by the transmitting side is 1588 frames.
  • the receiving side initiates absolute time synchronization according to the 1588 timestamp in the time information, the link delay, and the local time of the receiving module 10 receiving the time information packet.
  • the time T1 of the transmitting side 1588 timestamp is added to the link delay T2 to obtain the transmitting side absolute time T3 when the receiving module 10 receives the time information packet.
  • the absolute time synchronization sub-unit 321 obtains the absolute time difference between the receiving side and the transmitting side according to the time difference between T3 and T4, and adjusts the local absolute time according to the obtained absolute time difference. To achieve local absolute time synchronization.
  • the absolute time synchronization sub-unit 321 achieves local absolute time synchronization.
  • the second pulse synchronization sub-unit 322 is configured to recover the second pulse signal of the transmitting side according to the time information data packet sent by the transmitting side, and adjust the local clock frequency according to the second pulse signal of the transmitting side to initiate the second pulse synchronization.
  • the second pulse synchronization sub-unit 322 can recover the second pulse signal of the transmitting side according to the received time information packet.
  • the transmitting side since the transmitting side transmits the time information data packet using a fixed frequency, for example, the transmitting side transmits the time information data packet every 10 ms (millisecond), the transmitting side transmits 100 time information data packets every second.
  • the absolute time of the first time information packet sent by the current transmitting side is 0 seconds
  • the absolute time of the 101st time information data packet sent by the transmitting side is 1 second, and the first and the 101st can be used.
  • the second bit time of the time information packet is used as the second pulse on the transmitting side.
  • the second pulse synchronization subunit obtains the second pulse signal on the transmitting side.
  • the second pulse synchronization sub-unit 322 can also recover the second pulse on the transmitting side by other means.
  • the signal can be flexibly set according to actual needs.
  • the second pulse synchronization sub-unit 322 After acquiring the second pulse signal on the transmitting side, the second pulse synchronization sub-unit 322 adjusts the local clock frequency according to the second pulse signal on the transmitting side to perform second pulse synchronization.
  • the second pulse synchronization sub-unit 322 performs local second pulse signal synchronization using a Phase Locked Loop (PLL) path.
  • PLL Phase Locked Loop
  • the second pulse synchronization sub-unit 322 controls the phase detector PD to phase-phase the local second pulse signal according to the second pulse signal on the transmitting side, and obtain a phase deviation value. Then, the phase detector converts the phase deviation value into a voltage change, outputs an analog voltage signal, and considers high frequency noise through a low pass filter LPF (Low Pass Filter).
  • LPF Low Pass Filter
  • the Oven Controlled Crystal Oscillator receives the signal of the low pass filter LPF, and uses the obtained voltage signal as a voltage control voltage to control the oscillation of the local clock crystal and output the oscillation frequency of the local clock crystal.
  • the frequency divider feeds back the frequency of the OXCO output to the phase detector for determining whether the second pulse signal of the current local clock is synchronized with the input reference second pulse signal.
  • the PLL locks the phase to maintain the current local clock oscillation frequency, so that the local clock oscillation frequency and the transmitting side The clock oscillation frequency remains the same.
  • phase detector PD continues to phase-detect and adjust the oscillation frequency of the local clock.
  • the local clock can be a cesium clock or other clocks, and can be flexibly set according to actual needs.
  • the second pulse synchronization sub-unit 322 achieves second pulse synchronization.
  • the absolute time synchronization sub-unit 321 initiates absolute time synchronization according to the time information; the second pulse synchronization sub-unit 322 is configured according to the time information packet sent by the transmitting side. The second pulse signal on the transmitting side is restored; then, the second pulse synchronization sub-unit 322 adjusts the local clock frequency on the receiving side according to the second pulse signal on the transmitting side to perform second pulse synchronization.
  • the absolute time synchronization is performed according to the time information carried in the time information data packet, and the second pulse signal on the transmitting side is recovered according to the received time information data packet. The synchronization of the local second pulse is realized, and the synchronization precision of the local absolute time and the second pulse on the receiving side is improved.
  • the ninth embodiment of the time synchronization device of the present application provides a time synchronization device.
  • the second pulse synchronization subunit 322 further Set as,
  • phase deviation value from the local second pulse signal according to the second pulse signal on the transmitting side; determining whether the phase deviation value exceeds a preset deviation threshold; if the phase deviation value exceeds a preset deviation threshold, according to The phase deviation value adjusts the local clock frequency to obtain the adjusted second pulse signal; if the phase deviation value does not exceed the preset deviation threshold, it is determined that the second second pulse synchronization is completed.
  • the second pulse synchronization sub-unit 322 After acquiring the transmitting side second pulse signal, the second pulse synchronization sub-unit 322 obtains the phase deviation value from the local second pulse signal by using the second pulse signal on the transmitting side as the reference second pulse signal.
  • the second pulse synchronization sub-unit 322 phase-detects the reference second pulse signal and the local second pulse signal, and obtains a phase deviation value between the reference second pulse signal and the local second pulse signal.
  • the second pulse synchronization sub-unit 322 determines whether the phase deviation value satisfies a preset deviation threshold.
  • the preset deviation threshold is pre-configured by the second pulse synchronization sub-unit 322 according to the application scenario or the accuracy requirement for the local second pulse. For example, if the second pulse synchronization sub-unit 322 does not require strict error on the local second pulse, a larger deviation threshold may be set; if the second pulse synchronization sub-unit 322 has strict requirements on the local second pulse, the value may be set. Small deviation threshold.
  • phase deviation value is greater than the preset deviation threshold, it is determined that the phase deviation value exceeds the preset deviation threshold; if the phase deviation value is less than or equal to the preset deviation threshold, it is determined that the phase deviation value does not exceed the preset deviation threshold.
  • the second pulse synchronization sub-unit 322 obtains the determination result.
  • the second pulse synchronization sub-unit 322 adjusts the local clock frequency according to the phase deviation value.
  • the receiving side converts the phase deviation value into a change of the voltage signal, and controls the oscillation of the local clock crystal according to the obtained voltage signal.
  • the second pulse synchronization sub-unit 322 obtains the oscillation frequency of the local clock crystal adjustment, and obtains the adjusted second pulse signal according to the adjusted oscillation frequency.
  • the second pulse synchronization sub-unit 322 phase-detects the reference second pulse signal and the adjusted local second pulse signal, and obtains a phase deviation value between the reference second pulse signal and the adjusted local second pulse signal.
  • the second pulse synchronization sub-unit 322 If the phase deviation value does not exceed the preset deviation threshold, the second pulse synchronization sub-unit 322 considers that the error of the current local clock second pulse signal and the reference second pulse signal meets the current usage requirement, and determines that the second second pulse synchronization is completed.
  • the second pulse synchronization sub-unit 322 completes the synchronization of the local second pulses.
  • the second pulse synchronization sub-unit 322 acquires a phase deviation value from the local second pulse signal according to the second pulse signal on the transmitting side; determines whether the phase deviation value exceeds a preset deviation threshold; if the phase deviation value exceeds the preset The deviation threshold is adjusted according to the phase deviation value, the adjusted second pulse signal is obtained, and the phase difference between the adjusted second pulse signal and the transmitting side second pulse signal is obtained, and the next step is performed according to the phase difference value. Operation; if the phase deviation value does not exceed the preset deviation threshold, the second pulse synchronization sub-unit 322 determines to complete the current second pulse synchronization.
  • the second pulse synchronization is initiated until the receiving side local second pulse signal and the transmitting side second pulse signal are received.
  • the phase deviation value is less than or equal to the deviation threshold; when the phase difference between the receiving side local second pulse signal and the transmitting side second pulse signal does not exceed the deviation threshold, it is determined that the second pulse synchronization of the current receiving side is completed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by an integrated circuit to implement its corresponding function, It can be implemented in the form of a software function module, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function.
  • Embodiments of the invention are not limited to any specific form of combination of hardware and software.
  • the time information is obtained by the sending side, and the time information is encapsulated into a time information data packet, so that the receiving side can perform time synchronization according to the time information in the time information data packet, thereby avoiding multiple exchanges of time information packets according to the IEEE 1588 networking time.
  • the forwarding reduces the time precision.
  • the transmitting side sends the time information data packet to the receiving side through the wireless interface, the external antenna is not needed, and the construction cost and maintenance cost of the base station networking are reduced.
  • the implementation of the present invention ensures that the time synchronization of the base station equipment is high-precision, the engineering cost and the maintenance cost are reduced, and the networking environment is limited.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

L'invention concerne un procédé de synchronisation temporelle qui comprend les étapes suivantes: une extrémité de réception reçoit un paquet de données d'informations temporelles transmis par une extrémité de transmission; l'extrémité de réception vérifie le paquet de données d'informations temporelles et en obtient des informations temporelles; l'extrémité de réception démarre une synchronisation temporelle en fonction des informations temporelles obtenues. L'invention concerne également un dispositif de synchronisation temporelle. Une grande précision de synchronisation temporelle entre des appareils de station de base est assurée, les coûts du projet et les coûts d'entretien sont réduits, et des limitations sur l'environnement de réseau sont évitées.
PCT/CN2016/095861 2015-12-18 2016-08-18 Dispositif et procédé de synchronisation temporelle WO2017101484A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510957093.1A CN106899371B (zh) 2015-12-18 2015-12-18 时间同步方法和装置
CN201510957093.1 2015-12-18

Publications (1)

Publication Number Publication Date
WO2017101484A1 true WO2017101484A1 (fr) 2017-06-22

Family

ID=59055665

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095861 WO2017101484A1 (fr) 2015-12-18 2016-08-18 Dispositif et procédé de synchronisation temporelle

Country Status (2)

Country Link
CN (1) CN106899371B (fr)
WO (1) WO2017101484A1 (fr)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10903924B2 (en) 2019-02-07 2021-01-26 International Business Machines Corporation Setting primary reference time of server time protocol facility of a coordinated timing network to a precision-time-protocol source
US10958727B2 (en) 2019-02-07 2021-03-23 International Business Machines Corporation Facilitating precision time protocol use in a coordinated timing network
CN114071694A (zh) * 2021-11-17 2022-02-18 成都天奥电子股份有限公司 基于北斗卫星信号的授时精度提升方法、装置及存储介质
CN114221833A (zh) * 2021-12-15 2022-03-22 傲普(上海)新能源有限公司 Bms***数据通讯方法
CN114499731A (zh) * 2022-01-25 2022-05-13 中电科航空电子有限公司 一种客舱广播音频的以太网同步方法及***
CN115150251A (zh) * 2022-05-27 2022-10-04 中国南方电网有限责任公司 电力专网调度通信链路的故障诊断方法、***及管理平台
CN115175297A (zh) * 2022-06-22 2022-10-11 中国电子科技集团公司第二十九研究所 一种卫星载荷秒脉冲自主恢复同步方法
WO2023082518A1 (fr) * 2021-11-15 2023-05-19 深圳市中兴微电子技术有限公司 Système et procédé de synchronisation d'horloge

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964825A (zh) * 2018-07-10 2018-12-07 重庆思柏高科技有限公司 校时方法、校时装置和校时服务器
CN109347589B (zh) * 2018-10-15 2021-11-09 ***通信有限公司研究院 一种数据传输方法及网络节点

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483497A (zh) * 2008-12-15 2009-07-15 华亚微电子(上海)有限公司 数据传输***及其接收端、数据包恢复方法
CN101615948A (zh) * 2008-06-25 2009-12-30 鼎桥通信技术有限公司 一种实现时间同步的方法及***
CN102083194A (zh) * 2009-11-30 2011-06-01 大唐移动通信设备有限公司 时间信息发送与时间同步方法、***和设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1319342C (zh) * 2003-02-20 2007-05-30 华为技术有限公司 一种同步数字系列链路接入规程的解封装方法
CN1929337A (zh) * 2005-09-05 2007-03-14 华为技术有限公司 无线收发设备间实现信息传递的方法及***
KR100902601B1 (ko) * 2007-05-17 2009-06-12 한양네비콤주식회사 무선 시각송수신시스템 및 무선 시각동기방법
CN101257442B (zh) * 2008-04-03 2010-05-12 中国人民解放军国防科学技术大学 基于时间压力的时间确定性数据交换方法
CN102882669A (zh) * 2012-08-23 2013-01-16 上海柏飞电子科技有限公司 一种两线接口时间同步协议方法
CN103401672B (zh) * 2013-07-24 2016-08-24 福建星网锐捷网络有限公司 时间同步装置、设备及***
CN104468013B (zh) * 2014-11-21 2017-06-27 中国运载火箭技术研究院 一种无线组网通信的时隙结构确定方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615948A (zh) * 2008-06-25 2009-12-30 鼎桥通信技术有限公司 一种实现时间同步的方法及***
CN101483497A (zh) * 2008-12-15 2009-07-15 华亚微电子(上海)有限公司 数据传输***及其接收端、数据包恢复方法
CN102083194A (zh) * 2009-11-30 2011-06-01 大唐移动通信设备有限公司 时间信息发送与时间同步方法、***和设备

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10958727B2 (en) 2019-02-07 2021-03-23 International Business Machines Corporation Facilitating precision time protocol use in a coordinated timing network
US10903924B2 (en) 2019-02-07 2021-01-26 International Business Machines Corporation Setting primary reference time of server time protocol facility of a coordinated timing network to a precision-time-protocol source
WO2023082518A1 (fr) * 2021-11-15 2023-05-19 深圳市中兴微电子技术有限公司 Système et procédé de synchronisation d'horloge
CN114071694A (zh) * 2021-11-17 2022-02-18 成都天奥电子股份有限公司 基于北斗卫星信号的授时精度提升方法、装置及存储介质
CN114071694B (zh) * 2021-11-17 2023-12-15 成都天奥电子股份有限公司 基于北斗卫星信号的授时精度提升方法、装置及存储介质
CN114221833B (zh) * 2021-12-15 2023-12-05 傲普(上海)新能源有限公司 Bms***数据通讯方法
CN114221833A (zh) * 2021-12-15 2022-03-22 傲普(上海)新能源有限公司 Bms***数据通讯方法
CN114499731A (zh) * 2022-01-25 2022-05-13 中电科航空电子有限公司 一种客舱广播音频的以太网同步方法及***
CN114499731B (zh) * 2022-01-25 2024-05-28 中电科航空电子有限公司 一种客舱广播音频的以太网同步方法及***
CN115150251A (zh) * 2022-05-27 2022-10-04 中国南方电网有限责任公司 电力专网调度通信链路的故障诊断方法、***及管理平台
CN115150251B (zh) * 2022-05-27 2023-11-03 中国南方电网有限责任公司 电力专网调度通信链路的故障诊断方法、***及管理平台
CN115175297A (zh) * 2022-06-22 2022-10-11 中国电子科技集团公司第二十九研究所 一种卫星载荷秒脉冲自主恢复同步方法
CN115175297B (zh) * 2022-06-22 2024-05-14 中国电子科技集团公司第二十九研究所 一种卫星载荷秒脉冲自主恢复同步方法

Also Published As

Publication number Publication date
CN106899371B (zh) 2020-12-11
CN106899371A (zh) 2017-06-27

Similar Documents

Publication Publication Date Title
WO2017101484A1 (fr) Dispositif et procédé de synchronisation temporelle
US11006378B2 (en) Synchronizing clocks in a wireless system
US9876629B2 (en) Communication apparatus, time synchronization system, and time synchronization method
US7606541B1 (en) Enhanced holdover for synchronous networks employing packet switched network backhaul
US8705578B2 (en) Method and system for implementing time synchronization in local area network (LAN)
KR102226879B1 (ko) 부정확한 링크를 통한 이벤트들의 정확한 시간 태깅 시스템 및 그 방법
US20130336341A1 (en) Synchronizing system, synchronizing method, first synchronizing device, second synchronizing device, and computer program
CN101485126A (zh) 同步基站组件的方法
US20180188698A1 (en) Accurate time recovery from global navigation satellite system
CN103563287A (zh) 同步设备和同步方法
CN114501423A (zh) 时钟信息校验方法、装置及***
WO2023124403A1 (fr) Procédé, appareil et système de synchronisation d'horloge
EP2341650A1 (fr) Transfert d'un message de synchronisation via un réseau radio par paquets
WO2017173915A1 (fr) Procédé, dispositif et système de traitement de message, et support de stockage informatique
US20220360350A1 (en) Method and apparatus for acquiring timestamp of data stream, storage medium, and electronic apparatus
JP2009199139A (ja) パケット監視装置
CN107493599B (zh) 通过基带射频接口实现基站设备间时间同步的方法、装置和***
CN105960820A (zh) 一种同步装置及方法
JP5320349B2 (ja) 遅延測定システム及び遅延測定方法
WO2016000324A1 (fr) Procede et appareil pour mettre en oeuvre une synchronisation temporelle
US11799624B2 (en) Time-synchronization system, relay apparatus, time-synchronization method, and non-transitory computer readable medium
US10931434B2 (en) Relay apparatus, communication system, and failure detection method
WO2017150306A1 (fr) Système de communication, dispositif de communication de secours, dispositif de communication principal, procédé de synchronisation temporelle, et support lisible par ordinateur non transitoire
KR20150016735A (ko) 중앙 집중 제어 평면을 이용한 네트워크 시각 동기 시스템
EP3170274B1 (fr) Procédé et dispostif de généartion d'un signal d'horloge

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16874544

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16874544

Country of ref document: EP

Kind code of ref document: A1