CN113015236A - Bottom-up clock synchronization method and device - Google Patents

Bottom-up clock synchronization method and device Download PDF

Info

Publication number
CN113015236A
CN113015236A CN202110149631.XA CN202110149631A CN113015236A CN 113015236 A CN113015236 A CN 113015236A CN 202110149631 A CN202110149631 A CN 202110149631A CN 113015236 A CN113015236 A CN 113015236A
Authority
CN
China
Prior art keywords
period
time
pulse
information
starting point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110149631.XA
Other languages
Chinese (zh)
Other versions
CN113015236B (en
Inventor
周艳秋
蒋纯波
吴杰
郝思卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Fangtian Hongrui Technology Co ltd
Original Assignee
Beijing Fangtian Hongrui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Fangtian Hongrui Technology Co ltd filed Critical Beijing Fangtian Hongrui Technology Co ltd
Priority to CN202110149631.XA priority Critical patent/CN113015236B/en
Publication of CN113015236A publication Critical patent/CN113015236A/en
Application granted granted Critical
Publication of CN113015236B publication Critical patent/CN113015236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • 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
    • H04J3/0644External master-clock
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

The invention provides a bottom-up clock synchronization method and device, and relates to the technical field of communication. The method is applied to a terminal, the terminal performs relevant processing through an acquired sequence of an air interface synchronous signal to obtain a middle-period pulse, then a local clock chip is used for performing negative feedback control on the middle-period pulse to obtain a short-period pulse signal, and meanwhile a 5G communication module of the terminal acquires a starting point of a wireless frame period, namely a starting point of a long-period pulse according to the air interface synchronous signal and sends a time information request to a server. The server calculates the time interval between the next long period starting time and the next adjacent second pulse according to the satellite synchronization information so as to calculate the time of the next second pulse from the rising edge. So as to ensure that accurate clock information is output after a plurality of short-period pulses according to the starting point of a wireless frame period and the time of a pulse-per-second distance rising edge.

Description

Bottom-up clock synchronization method and device
Technical Field
The invention relates to the technical field of communication, in particular to a bottom-up clock synchronization method and device.
Background
Said synchronization is thought of as the synchronization mechanism from top to bottom from the center to the edge, the clock source is located at the center to give out the synchronization signal to the periphery, forming the synchronization network. With the development of communications, especially mobile communications, from 3G to 4G, multiple access methods have emerged from frequency division (FDD) to time division (TDD), and higher accuracy clocks have been introduced at base stations accessing the network via satellite systems such as GPS or beidou. The clock quality of the wireless base station is better than the clock signal quality of the wireless controller or the core network, so that the waterfall type transmission mode that the clock is gradually distributed and diffused from the center to the edge is ended.
With the development of communication, a user terminal side also has a need for acquiring accurate clock information, and at present, the need is to acquire accurate time and position information by installing a satellite positioning device such as a GPS, a beidou and the like on a terminal, and simultaneously support a clock synchronization protocol (SNTP protocol) to acquire an accurate clock of 10ms level. However, in the development process of the energy internet and the industry internet of things, the wireless terminal device needs to provide accurate clock information while providing a communication function to the industry device, the accuracy is generally required to be in the level of 1us, and in order to enable the accuracy to reach the level of 1us, optical fiber transmission or satellite signals and a 1588 clock source are needed, so that the problems of cost increase and engineering construction difficulty are caused.
Disclosure of Invention
The invention aims to provide a bottom-up clock synchronization method and a bottom-up clock synchronization device, which are used for solving the problems of high cost and difficult construction in the prior art.
In a first aspect, an embodiment of the present application provides a bottom-up clock synchronization method, which is applied to a terminal, and the method includes: acquiring a first air interface synchronous signal, and performing correlation processing on a sequence of the air interface synchronous signal to obtain a middle period pulse; processing the medium-period pulse by adopting closed-loop negative feedback control to obtain an accurate short-period pulse; acquiring a second air interface synchronization signal, and acquiring a starting point of a wireless frame period according to the second air interface synchronization signal; initiating a time information request to a server according to the starting point of the wireless frame period so as to acquire the time interval between the starting time of the next long period and the subsequent adjacent second pulse calculated by the server according to the satellite synchronization information; calculating the time of the next second pulse from the rising edge according to the time interval between the starting time of the next long period and the subsequent adjacent second pulse; and outputting clock information after a plurality of short-period pulses according to the starting point of the wireless frame period and the time of the pulse per second distance rising edge.
In the implementation process, the terminal processes the acquired air interface synchronization signal, performs negative feedback control on the air interface synchronization signal by using a local clock chip to acquire a short-period pulse signal, and simultaneously, the 5G communication module of the terminal acquires a starting point of a wireless frame period, namely a long-period pulse, according to the air interface synchronization signal and sends a time information request to the server. And finally, outputting accurate clock information according to the time of the long period start and the short period pulse which are calculated by the server according to the time information request.
In some embodiments of the present invention, the step of acquiring the second air interface synchronization signal and acquiring the starting point of the radio frame period according to the second air interface synchronization signal includes: acquiring MIB broadcast information; the MIB broadcast information is demodulated to obtain the start of the radio frame period.
In some embodiments of the present invention, the step of initiating a time information request to the server according to the start point of the wireless frame period to obtain the time interval between the next long period start time and the next adjacent second pulse calculated by the server according to the satellite synchronization information includes: performing interrupt control on the processor according to the starting point of the wireless frame period; after the processor is interrupted, a request for time information is sent to the server.
In a second aspect, an embodiment of the present application provides a bottom-up clock synchronization method, which is applied to a server, where the server is connected to a satellite system, and the method includes: receiving a time information request sent by a terminal according to the starting point of a wireless frame period; determining a starting point of a wireless frame period according to the acquired second air interface synchronization signal; acquiring satellite synchronization information sent by a satellite system; calculating a specific middle period position corresponding to each integer second according to the satellite synchronization information and the time information request; and calculating a specific middle period position corresponding to the long period starting position according to the time information of the satellite synchronization information.
In some embodiments of the present invention, the step of calculating a specific mid-cycle position corresponding to each integer second based on the satellite synchronization information and the time information request comprises: calculating the absolute time corresponding to the starting point of each long period according to the satellite synchronization information and the time information request; and determining the specific middle period position corresponding to each integer second according to the absolute time.
In a third aspect, an embodiment of the present application provides a bottom-up clock synchronization apparatus, applied to a terminal, the apparatus including: the first signal processing module is used for acquiring a first air interface synchronization signal and performing correlation processing on a sequence of the air interface synchronization signal to obtain a middle-period pulse; the periodic pulse processing module is used for processing the intermediate periodic pulse by adopting closed-loop negative feedback control so as to obtain a short periodic pulse; the second signal processing module is used for acquiring a second air interface synchronization signal and acquiring a starting point of a wireless frame period according to the second air interface synchronization signal; the time request module is used for initiating a time information request to the server according to the starting point of the wireless frame period so as to acquire the time interval between the starting time of the next long period and the subsequent adjacent second pulse calculated by the server according to the satellite synchronization information; the pulse calculation module is used for calculating the time of the next second pulse from the rising edge according to the time interval between the next long period starting moment and the subsequent adjacent second pulse; and the clock information output module is used for outputting clock information after a plurality of short-period pulses according to the starting point of the wireless frame period and the time of the pulse-per-second distance rising edge.
In some embodiments of the invention, the second signal processing module comprises: a broadcast information obtaining unit, configured to obtain MIB broadcast information; and the demodulation unit is used for demodulating the MIB broadcast information to acquire the starting point of the wireless frame period. In some embodiments of the invention, the time request module comprises: the interrupt control unit is used for carrying out interrupt control on the processor according to the starting point of the wireless frame period; and the request sending unit is used for sending a time information request to the server after the processor is interrupted.
In a fourth aspect, an embodiment of the present application provides a bottom-up clock synchronization apparatus, which is applied to a server, where the server is connected to a satellite system, and the apparatus includes: the request receiving module is used for receiving a time information request sent by the terminal according to the starting point of the wireless frame period; determining a starting point of a wireless frame period according to the acquired second air interface synchronization signal; the satellite synchronization information acquisition module is used for acquiring satellite synchronization information sent by a satellite system; the specific middle period position calculation module is used for calculating a specific middle period position corresponding to each integer second according to the satellite synchronization information and the time information request; and the period starting time calculation module is used for calculating the specific middle period position corresponding to the long period starting position according to the time information of the satellite synchronization information.
In some embodiments of the invention, the specific intermediate period position calculation module comprises: the absolute time calculation unit is used for calculating the absolute time corresponding to the starting point of each long period according to the satellite synchronization information and the time information request; and the specific middle period calculating unit is used for determining the specific middle period position corresponding to each integer second according to the absolute time.
In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a memory for storing one or more programs; a processor. The program or programs, when executed by a processor, implement the method of any of the first aspects as described above.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the method according to any one of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart of a bottom-up clock synchronization method according to an embodiment of the present invention;
fig. 2 is a block diagram of a bottom-up clock synchronization apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Icon: 100-bottom-up clock synchronization means; 110-a first signal processing module; 120-periodic pulse processing module; 130-a second signal processing module; 140-a time request module; 150-a pulse calculation module; 160-a clock information output module; 101-a memory; 102-a processor; 103-communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
There are many common time synchronization methods, and each different method has different disadvantages. For example, a synchronization mode from a network to a terminal is a common method for performing accurate time synchronization according to a system, specifically, a network acquires a satellite signal of a GPS or a beidou, and transmits the satellite signal to a next-stage device after calculation. There is a problem in that only a periodic pulse signal can be acquired and date and time information cannot be acquired. For another example, the terminal device autonomously acquires time information, and the terminal device is equipped with a GPS or beidou function to acquire accurate time from the received satellite signal. When this method is used, if the satellite cannot be connected, the accurate time cannot be acquired. For another example, currently, time information is acquired through an NTP (or SNTP) protocol, but since the times of the event sources in two places are not uniform, only 0.01 second-level synchronization can be calculated through round trip correction, and the requirement of high-precision synchronization of communication or the internet of things cannot be met. For another example, in the power system, the two ends of the device are transmitted through optical fibers, and the stability of the optical fiber transmission is utilized to obtain the accurate time difference, so as to calculate the respective time. However, the method needs to lay optical fibers, is expensive in manufacturing cost, is technically feasible and cannot be used in some scenes. Similarly, the terminal can obtain the accurate time from the upper level through the 1588 switch. But the wired connection is needed, a 1588 clock network is needed, and the use cost is high.
Referring to fig. 1, fig. 1 is a flowchart of a bottom-up clock synchronization method according to an embodiment of the present invention, where the bottom-up clock synchronization method is applied to a terminal, and the method includes the following steps:
step S110: and acquiring a first air interface synchronous signal, and performing correlation processing on a sequence of the air interface synchronous signal to obtain a middle period pulse.
The wireless network system is a synchronization system, and particularly, synchronization among air interfaces, which is a key step for further data transmission, is performed. How the UE gets synchronized with the cell after the terminal gets the first air interface synchronization signal through the air interface,
step S120: and processing the medium-period pulse by adopting closed-loop negative feedback control to obtain a short-period pulse.
Closed-loop feedback control is an automatic control established based on the principle of feedback by comparing the deviation between the output of the system behavior and the desired behavior and then eliminating the deviation to obtain the desired system performance. In closed-loop feedback control, there are both a forward path of the signal from the input to the output and a feedback path of the signal from the output to the input, both of which form a closed loop.
Step S130: and acquiring a second air interface synchronization signal, and acquiring the starting point of the wireless frame period according to the second air interface synchronization signal.
In some embodiments of the present invention, when the second air interface synchronization signal is obtained and the starting point of the radio frame period is obtained according to the second air interface synchronization signal, the MIB broadcast information may be obtained first, and then the MIB broadcast information is demodulated to obtain the starting point of the radio frame period. The MIB broadcast information is broadcast information sent by a base station.
The second air interface synchronization signal and the first air interface synchronization signal may be the same air interface synchronization signal. And when the starting point of the wireless frame period is obtained according to the second air interface synchronization signal, the method comprises two processes of demodulation and decoding. The demodulation process is to demodulate the modulated signal and acquire bit information and 10ms synchronization information; the decoding obtains time information within this 10 ms. That is, a specific position of the 10ms among 10240 10ms is obtained, so that the relative position of the 10ms among 10240 10ms can be known. Further, that is, a phase of 10ms is identified.
Step S140: and initiating a time information request to the server according to the starting point of the wireless frame period to acquire the time interval (namely the number of the middle periods) between the starting time of the next long period and the subsequent adjacent second pulse, which is calculated by the server according to the satellite synchronization information.
In some embodiments of the present invention, the step of initiating a time information request to the server according to the start point of the wireless frame period to obtain the time interval between the next long period start time and the next adjacent second pulse calculated by the server according to the satellite synchronization information includes the following steps: firstly, interrupt control is carried out on a processor according to the starting point of a wireless frame period, and then a time information request is sent to a server after the processor is interrupted.
Step S150: and calculating the time of the next second pulse from the rising edge according to the time interval between the starting moment of the next long period and the next adjacent second pulse.
The processor calculates the time interval between the next long period starting time and the subsequent adjacent second pulse, namely the accurate time corresponding to the position of the next arriving long period starting rising edge, and then calculates the time of the next second pulse from the rising edge according to the time interval between the next long period starting time and the subsequent adjacent second pulse, specifically, after calculating the time of the next second pulse from the rising edge, the processor configures the time to the logic chip FPGA according to the number unit N of the middle period pulses.
Step S160: and outputting clock information after a plurality of short-period pulses according to the starting point of the wireless frame period and the time of the pulse per second distance rising edge.
And the terminal performs correlation operation on the code sequence of the first air interface synchronization signal acquired by the local 5G communication module, and acquires accurate middle period information every 10 ms. And then transmitting the accurate middle period information to a local clock chip, wherein the clock chip takes the accurate middle period information of 10ms as a calibration input source of a local short stable clock, so that the local voltage controlled oscillator can obtain and acquire an accurate short period pulse signal through closed-loop negative feedback control, and the duty ratio of the short period pulse signal is 50%. Meanwhile, the 5G communication module acquires 1024 a starting point of a radio frame period of a period to the second air interface synchronization signal, the length of the radio frame period is 10.24 seconds, and when a General Purpose Input/Output (GPIO) port of the terminal receives the radio frame period, a time information request may be initiated to the server to acquire a time interval between a next long period starting time and a subsequent adjacent second pulse, which is calculated by the server according to the satellite synchronization information. And then calculating the time of the next second pulse distance rising edge according to the time interval between the starting time of the next long period and the subsequent adjacent second pulse, and finally outputting clock information after a plurality of short period pulses according to the starting point of the wireless frame period and the time of the second pulse distance rising edge.
In the implementation process, the terminal processes the acquired air interface synchronization signal, performs negative feedback control on the air interface synchronization signal by using a local clock chip to acquire a short-period pulse signal, and simultaneously, the 5G communication module of the terminal acquires the starting point of a wireless frame period according to the air interface synchronization signal and sends a time information request to the server. And finally, outputting accurate clock information according to the time of the long period start and the short period pulse which are calculated by the server according to the time information request.
The embodiment of the application also provides a bottom-up clock synchronization method, which is applied to a server, wherein the server is connected with a satellite system, and the method comprises the following steps: firstly, receiving a time information request sent by a terminal according to the starting point of a wireless frame period; and determining the starting point of the wireless frame period according to the acquired second air interface synchronization signal. Then, satellite synchronization information sent by a satellite system is obtained, and a specific middle period position corresponding to the long period starting position is calculated according to the time information of the satellite synchronization information.
In some embodiments of the present invention, the step of calculating a specific mid-cycle position corresponding to each integer second based on the satellite synchronization information and the time information request comprises: calculating the absolute time corresponding to the starting point of each long period according to the satellite synchronization information and the time information request; and determining the specific middle period position corresponding to each integer second according to the absolute time.
Based on the same inventive concept, the present invention further provides a bottom-up clock synchronization apparatus 100, please refer to fig. 2, and fig. 2 is a block diagram of a bottom-up clock synchronization apparatus according to an embodiment of the present invention. This clock synchronization device from bottom to top is applied to the terminal, and it includes:
the first signal processing module 110 is configured to acquire a first air interface synchronization signal, and perform correlation processing on a sequence of the air interface synchronization signal to obtain a middle-period pulse.
And the periodic pulse processing module 120 is configured to process the intermediate periodic pulse by using closed-loop negative feedback control to obtain a short periodic pulse.
The second signal processing module 130 is configured to acquire a second air interface synchronization signal, and acquire a starting point of a radio frame period according to the second air interface synchronization signal.
The time request module 140 is configured to initiate a time information request to the server according to a starting point of the wireless frame period, so as to obtain a time interval between a next long period starting time and a subsequent adjacent pulse per second, which is calculated by the server according to the satellite synchronization information.
And the pulse calculating module 150 is configured to calculate a time of a next pulse per second from a rising edge according to a time interval between a next long period start time and a next adjacent pulse per second.
The clock information output module 160 is configured to output clock information after a plurality of short-period pulses according to the start point of the wireless frame period and the time of the pulse-per-second distance rising edge.
In some embodiments of the present invention, the second signal processing module 130 includes:
and the broadcast information acquisition unit is used for acquiring the MIB broadcast information.
And the demodulation unit is used for demodulating the MIB broadcast information to acquire the starting point of the wireless frame period.
In some embodiments of the present invention, the time request module 140 comprises:
and the interrupt control unit is used for carrying out interrupt control on the processor according to the starting point of the wireless frame period.
And the request sending unit is used for sending a time information request to the server after the processor is interrupted.
On the other hand, the embodiment of the present application further provides a bottom-up clock synchronization apparatus, which is applied to a server, the server is connected to a satellite system, and the apparatus includes:
the request receiving module is used for receiving a time information request sent by the terminal according to the starting point of the wireless frame period; and determining the starting point of the wireless frame period according to the acquired second air interface synchronization signal.
And the satellite synchronization information acquisition module is used for acquiring satellite synchronization information sent by the satellite system.
And the specific middle period position calculation module is used for calculating the specific middle period position corresponding to each integer second according to the satellite synchronization information and the time information request.
And the period starting time calculation module is used for calculating the specific middle period position corresponding to the long period starting position according to the time information of the satellite synchronization information.
In some embodiments of the invention, the specific intermediate period position calculation module comprises:
and the absolute time calculating unit is used for calculating the absolute time corresponding to the starting point of each long period according to the satellite synchronization information and the time information request.
And the specific middle period calculating unit is used for determining the specific middle period position corresponding to each integer second according to the absolute time.
Referring to fig. 3, fig. 3 is a schematic structural block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device comprises a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used for storing software programs and modules, such as program instructions/modules corresponding to the bottom-up clock synchronization apparatus 100 provided in the embodiments of the present application, and the processor 102 executes the software programs and modules stored in the memory 101 to thereby execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 3 or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
To sum up, a bottom-up clock synchronization method and apparatus provided in the embodiments of the present application are applied to a terminal, and the method includes: acquiring a first air interface synchronous signal, and performing correlation processing on a sequence of the air interface synchronous signal to obtain a middle period pulse; processing the medium-period pulse by adopting closed-loop negative feedback control to obtain a short-period pulse; acquiring a second air interface synchronization signal, and acquiring a starting point of a wireless frame period according to the second air interface synchronization signal; initiating a time information request to a server according to the starting point of the wireless frame period so as to acquire the time interval between the starting time of the next long period and the subsequent adjacent second pulse calculated by the server according to the satellite synchronization information; calculating the time of the next second pulse from the rising edge according to the time interval between the starting time of the next long period and the subsequent adjacent second pulse; and outputting clock information after a plurality of short-period pulses according to the starting point of the wireless frame period and the time of the pulse per second distance rising edge. The terminal processes the acquired air interface synchronization signal, negative feedback control is carried out on the air interface synchronization signal by using a local clock chip to acquire a short-period pulse signal, and meanwhile, a 5G communication module of the terminal acquires the starting point of a wireless frame period according to the air interface synchronization signal and sends a time information request to the server. And finally, outputting accurate clock information according to the time of the long period start and the short period pulse which are calculated by the server according to the time information request.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A bottom-up clock synchronization method applied to a terminal, the method comprising:
acquiring a first air interface synchronization signal, and performing correlation processing on a sequence of the air interface synchronization signal to obtain a middle-period pulse;
processing the middle-period pulse by adopting closed-loop negative feedback control to obtain a short-period pulse;
acquiring a second air interface synchronization signal, and acquiring a starting point of a wireless frame period according to the second air interface synchronization signal;
initiating a time information request to a server according to the starting point of the wireless frame period so as to acquire the time interval between the starting time of the next long period and the subsequent adjacent second pulse calculated by the server according to the satellite synchronization information;
calculating the time of the next second pulse from the rising edge according to the time interval between the next long period starting moment and the subsequent adjacent second pulse;
and outputting clock information after the short periodic pulses according to the starting point of the wireless frame period and the time of the pulse per second distance rising edge.
2. The method of claim 1, wherein the step of acquiring a second air interface synchronization signal and acquiring a start point of a radio frame period according to the second air interface synchronization signal comprises:
acquiring MIB broadcast information;
and demodulating the MIB broadcast information to obtain the starting point of a wireless frame period.
3. The method of claim 1, wherein the step of initiating a time information request to the server according to the beginning of the radio frame period to obtain the time interval between the next long period starting time and the next adjacent second pulse calculated by the server according to the satellite synchronization information comprises:
performing interrupt control on the processor according to the starting point of the wireless frame period;
and after the processor is interrupted, sending a time information request to the server.
4. A bottom-up clock synchronization method is applied to a server, wherein the server is connected with a satellite system, and the method comprises the following steps:
receiving a time information request sent by a terminal according to the starting point of a wireless frame period; determining a starting point of the wireless frame period according to the acquired second air interface synchronization signal;
acquiring satellite synchronization information sent by the satellite system;
calculating a specific middle period position corresponding to each integer second according to the satellite synchronization information and the time information request;
and calculating a specific middle period position corresponding to the long period starting position according to the time information of the satellite synchronization information.
5. The method of claim 4, wherein the step of calculating a specific mid-cycle position for each integer second based on the satellite synchronization information and the time information request comprises:
calculating the absolute time corresponding to the starting point of each long period according to the satellite synchronization information and the time information request;
and determining the specific middle period position corresponding to each integer second according to the absolute time.
6. A bottom-up clock synchronization apparatus, applied to a terminal, the apparatus comprising:
the first signal processing module is used for acquiring a first air interface synchronization signal and performing relevant processing on a sequence of the air interface synchronization signal to obtain a middle-period pulse;
the periodic pulse processing module is used for processing the middle periodic pulse by adopting closed-loop negative feedback control so as to obtain a short periodic pulse;
the second signal processing module is used for acquiring a second air interface synchronization signal and acquiring a starting point of a wireless frame period according to the second air interface synchronization signal;
the time request module is used for initiating a time information request to the server according to the starting point of the wireless frame period so as to acquire the time interval between the starting time of the next long period and the subsequent adjacent second pulse calculated by the server according to the satellite synchronization information;
the pulse calculation module is used for calculating the time of the next second pulse from the rising edge according to the time interval between the next long period starting moment and the subsequent adjacent second pulse;
and the clock information output module is used for outputting clock information after the short-period pulses according to the starting point of the wireless frame period and the time of the pulse per second distance rising edge.
7. The apparatus of claim 6, wherein the second signal processing module comprises:
a broadcast information obtaining unit, configured to obtain MIB broadcast information;
and the demodulation unit is used for demodulating the MIB broadcast information to acquire the starting point of a wireless frame period.
8. A bottom-up clock synchronization apparatus for use with a server connected to a satellite system, the apparatus comprising:
the request receiving module is used for receiving a time information request sent by the terminal according to the starting point of the wireless frame period; determining a starting point of the wireless frame period according to the acquired second air interface synchronization signal;
the satellite synchronization information acquisition module is used for acquiring satellite synchronization information sent by the satellite system;
the specific middle period position calculation module is used for calculating a specific middle period position corresponding to each integer second according to the satellite synchronization information and the time information request;
and the period starting time calculation module is used for calculating the specific middle period position corresponding to the long period starting position according to the time information of the satellite synchronization information.
9. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of claims 1-3.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN202110149631.XA 2021-02-03 2021-02-03 Bottom-up clock synchronization method and device Active CN113015236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110149631.XA CN113015236B (en) 2021-02-03 2021-02-03 Bottom-up clock synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110149631.XA CN113015236B (en) 2021-02-03 2021-02-03 Bottom-up clock synchronization method and device

Publications (2)

Publication Number Publication Date
CN113015236A true CN113015236A (en) 2021-06-22
CN113015236B CN113015236B (en) 2023-05-05

Family

ID=76385243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110149631.XA Active CN113015236B (en) 2021-02-03 2021-02-03 Bottom-up clock synchronization method and device

Country Status (1)

Country Link
CN (1) CN113015236B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134903A (en) * 2022-06-27 2022-09-30 国网青海省电力公司信息通信公司 Clock disciplining method, device, processor and terminal equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059698A (en) * 2016-06-03 2016-10-26 中国南方电网有限责任公司 Time synchronization method and device based on TD-LTE wireless time service
CN107204928A (en) * 2016-03-18 2017-09-26 华为技术有限公司 The method of the synchronous topology of refresh clock, the method and apparatus for determining clock synchronous path
CN107655475A (en) * 2017-11-03 2018-02-02 河南思维轨道交通技术研究院有限公司 Synchronization pulse acquisition methods, navigation data synchronization processing method and system
CN108702206A (en) * 2016-05-12 2018-10-23 Oppo广东移动通信有限公司 Synchronous method, terminal and the network equipment
CN110324889A (en) * 2018-03-30 2019-10-11 华为技术有限公司 Clock synchronizing method, communication device and communication equipment
WO2020043181A1 (en) * 2018-08-31 2020-03-05 中兴通讯股份有限公司 Clock synchronization method and apparatus, system, storage medium, and electronic device
CN111007537A (en) * 2019-10-21 2020-04-14 桂林电子科技大学 Time synchronization system and method of satellite signal simulator and satellite signal simulator
CN111130510A (en) * 2019-12-13 2020-05-08 泰斗微电子科技有限公司 Method and device for outputting pulse per second signal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204928A (en) * 2016-03-18 2017-09-26 华为技术有限公司 The method of the synchronous topology of refresh clock, the method and apparatus for determining clock synchronous path
CN108702206A (en) * 2016-05-12 2018-10-23 Oppo广东移动通信有限公司 Synchronous method, terminal and the network equipment
CN106059698A (en) * 2016-06-03 2016-10-26 中国南方电网有限责任公司 Time synchronization method and device based on TD-LTE wireless time service
CN107655475A (en) * 2017-11-03 2018-02-02 河南思维轨道交通技术研究院有限公司 Synchronization pulse acquisition methods, navigation data synchronization processing method and system
CN110324889A (en) * 2018-03-30 2019-10-11 华为技术有限公司 Clock synchronizing method, communication device and communication equipment
WO2020043181A1 (en) * 2018-08-31 2020-03-05 中兴通讯股份有限公司 Clock synchronization method and apparatus, system, storage medium, and electronic device
CN111007537A (en) * 2019-10-21 2020-04-14 桂林电子科技大学 Time synchronization system and method of satellite signal simulator and satellite signal simulator
CN111130510A (en) * 2019-12-13 2020-05-08 泰斗微电子科技有限公司 Method and device for outputting pulse per second signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134903A (en) * 2022-06-27 2022-09-30 国网青海省电力公司信息通信公司 Clock disciplining method, device, processor and terminal equipment
CN115134903B (en) * 2022-06-27 2023-11-10 国网青海省电力公司信息通信公司 Clock taming method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113015236B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
CN110324889B (en) Clock synchronization method, communication device and communication equipment
CN105188128B (en) A kind of wireless time service and air interface synchronization method, base station, communication apparatus and system
WO2018113397A1 (en) Method and apparatus for determining clock time deviation between terminal and base station
KR20160068835A (en) Global time synchronization server for wireless devices
US11128392B2 (en) Timing method for mobile network, device, and readable storage medium
WO2022011650A1 (en) Ranging method and apparatus in synchronization system, device and readable storage medium
CN103580848B (en) Device, user terminal and method for reference clock calibration
CN109996325B (en) Clock synchronization system and method of wireless sensor network
CN103167474A (en) Enhanced multiple sim time tracking
WO2017054554A1 (en) Clock synchronization method, device, and communication apparatus
WO2021056295A1 (en) Time synchronization method and related device
CN113015236B (en) Bottom-up clock synchronization method and device
CN115765909A (en) Clock synchronization method, device and storage medium
CN105554870A (en) Uplink synchronization method and mobile terminal
US20210160802A1 (en) Avoiding contention between synchronization packets and in-phase and quadrature (iq) packets communicated over fronthaul of a radio access network
WO2016065642A1 (en) Synchronization device and method
WO2019119213A1 (en) Method for synchronizing network device and network device
WO2020192653A1 (en) Downlink transmission timing adjustment method, and communication device
JP2016178581A (en) Radio communication apparatus, radio communication method and program
CN114731266A (en) Clock information synchronization method and device, first node, terminal and storage medium
CN110831144A (en) Communication method and device
CN115243360B (en) Method and device for acquiring relative GPS offset of wireless frame head and electronic equipment
CN113015235B (en) Bottom-up clock synchronization device and system
CN111638749A (en) Simulation system synchronization method, simulation device and system
WO2023010371A1 (en) Time synchronization techniques

Legal Events

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