Time Synchronization Method, Apparatus, Device, and Storage Medium
By using satellite signals to correct the time and synchronize with time stamps, the problem of insufficient time synchronization accuracy and stability of the base station is solved, and time synchronization with high accuracy, high stability and low latency is achieved.
Patent Information
- Application Number
- CN202211049907.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-08-30
AI Technical Summary
In the prior art, when the base station obtains time synchronization by tracking satellite signals, there are problems such as low synchronization accuracy and poor stability, resulting in a reduced user perception experience.
Time-learning equipment is used to replace traditional satellite timing, and time synchronization is achieved by correcting the time to be synchronized by different satellite signals, and using timestamps to periodically send and feedback timing information to achieve time synchronization.
Improves the accuracy and stability of time synchronization, reduces delay and improves user experience.
Smart Images

Figure CN115551067B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of time synchronization, and in particular, to a time synchronization method, apparatus, device, and storage medium. Background Art
[0002] Currently, a base station obtains the time to be synchronized by tracking satellite signals, and then realizes the time synchronization management for each device. The base station and each device use the transmission form of timing packets to achieve time synchronization. However, such a time synchronization method will result in low time synchronization accuracy, poor time synchronization stability, and due to the large delay of service signals, the user perception experience is reduced. Summary of the Invention
[0003] The present invention provides a time synchronization method, apparatus, device, and storage medium to solve the technical defects of insufficient accuracy and stability in time synchronization in the prior art. The present invention can replace the original time synchronization mode of timing packets with clock time synchronization, greatly improving the accuracy and stability of time synchronization.
[0004] In a first aspect, the present invention provides a time synchronization method, including:
[0005] Correct the time to be synchronized according to all satellite signals, and determine the corrected time to be synchronized as the timing time;
[0006] According to a preset period, send timing information to the base station to be synchronized to obtain feedback information sent by the base station to be synchronized;
[0007] In response to the feedback information, send the timing time to the base station to be synchronized;
[0008] All the satellite signals are satellite signals emitted by different satellites;
[0009] The timing time is the time synchronized with Coordinated Universal Time (UTC);
[0010] The timing information is determined according to a preset number of timestamps.
[0011] According to the time synchronization method provided by the present invention, before correcting the time to be synchronized according to all satellite signals, it further includes:
[0012] Obtain all satellite signals within a preset range;
[0013] In the case where the number of the satellite signals is greater than or equal to a preset number, generate an indication instruction;
[0014] The indication instruction is used to indicate processing the time to be synchronized according to all satellite signals.
[0015] According to the time synchronization method provided by the present invention, before sending timing information to the base station to be synchronized according to a preset period, it further includes:
[0016] When it is determined that the tracking signal from the original satellite is received, stop receiving the tracking signal of the original satellite;
[0017] The original satellite includes at least satellites based on the Global Positioning System and / or satellites based on the Beidou Satellite Navigation System.
[0018] In a second aspect, the present invention further provides a time synchronization method, including:
[0019] When all the timestamps in the timing information sent by the timing device are received, generate feedback information to send the feedback information to the timing device;
[0020] Obtain initial time information from the timestamps to determine the timing for sending according to a preset duration and the initial time information;
[0021] Obtain the timing time, and when the timing for sending is met, send the timing time to the device to be synchronized;
[0022] The initial time information includes an initial frame number and an initial time slot number;
[0023] The timing time is also used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization;
[0024] The device to be synchronized includes at least an extended unit EU device and a remote terminal unit RU device.
[0025] According to the time synchronization method provided by the present invention, before generating the feedback information, it further includes:
[0026] Obtain the number of timing packets and the duration of the timing packets received in the case of original time synchronization;
[0027] Determine the duration required for synchronization according to the number of timing packets and the duration of the timing packets;
[0028] Determine the preset number of timestamps according to the duration required for synchronization and the duration of the timestamps corresponding to the timing device.
[0029] According to the time synchronization method provided by the present invention, after sending the timing time to the device to be synchronized, it further includes:
[0030] Instruct the device to be synchronized to receive the timing time sent by the base station to be synchronized;
[0031] Instruct the device to be synchronized to configure the network card of the device to be synchronized according to the time of time synchronization, so as to synchronize the time between the device to be synchronized and the base station to be synchronized.
[0032] In a third aspect, the present invention further provides a time synchronization device, including:
[0033] A determination unit: configured to correct the time to be synchronized according to all satellite signals, and determine the corrected time to be synchronized as the time of time synchronization;
[0034] A sending unit: configured to send timing information to the base station to be synchronized according to a preset period, so as to obtain feedback information sent by the base station to be synchronized;
[0035] A response unit: configured to send the time of time synchronization to the base station to be synchronized in response to the feedback information;
[0036] All the satellite signals are satellite signals emitted by different satellites;
[0037] The time of time synchronization is the time synchronized with Coordinated Universal Time (UTC);
[0038] The timing information is determined according to a preset number of timestamps.
[0039] In a fourth aspect, the present invention further provides a time synchronization device, including:
[0040] A generation unit: configured to generate feedback information for sending the feedback information to the time synchronization device when all timestamps in the timing information sent by the time synchronization device are received;
[0041] A processing unit: configured to obtain initial time information from the timestamps, so as to determine the timing for sending according to a preset duration and the initial time information;
[0042] An acquisition unit: configured to acquire the time of time synchronization, and send the time of time synchronization to the device to be synchronized when the timing for sending is met;
[0043] The initial time information includes an initial frame number and an initial time slot number;
[0044] The time of time synchronization is further used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization;
[0045] The device to be synchronized includes at least an expansion unit (EU) device and a remote terminal unit (RU) device.
[0046] In a fifth aspect, an electronic device is further provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the time synchronization method when executing the program.
[0047] In a sixth aspect, a non-transitory computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the time synchronization method is implemented.
[0048] The present invention provides a time synchronization method, apparatus, device, and storage medium. The present invention uses a form of cooperation between a timing device, a base station to be synchronized, and a device to be synchronized for time synchronization of communication devices, replacing the traditional satellite timing and the technical solution of transmitting timing packets between devices. A form of cooperation between software and hardware is adopted, and the clocks of all nodes in the network are periodically corrected and synchronized by using synchronization signals, so that the distributed system of Ethernet achieves high-precision synchronization, realizing high-stability, high-security, and low-latency time synchronization. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0050] Figure 1 is one of the flow diagrams of the time synchronization method provided by the present invention;
[0051] Figure 2 is another flow diagram of the time synchronization method provided by the present invention;
[0052] Figure 3 is yet another flow diagram of the time synchronization method provided by the present invention;
[0053] Figure 4 is still another flow diagram of the time synchronization method provided by the present invention;
[0054] Figure 5 is yet still another flow diagram of the time synchronization method provided by the present invention;
[0055] Figure 6 is one of the structural diagrams of the time synchronization apparatus provided by the present invention;
[0056] Figure 7 is another structural diagram of the time synchronization apparatus provided by the present invention;
[0057] Figure 8 is the structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0058] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present invention.
[0059] The basic services of 5G communication have relatively high requirements for the time accuracy index. Taking the Universal Time Coordinated (UTC) as a reference, it is required to ensure a time delay of no more than 1.5 us. For commercial products, not only the accuracy requirements need to be met, but also requirements such as network security and stability need to be satisfied. Moreover, due to the large deployment density of 5G system base stations, especially the exponential growth of indoor base stations, there will inevitably be a large number of base station deployment scenarios where satellite signals cannot be obtained. The ground synchronous time synchronization technology based on specific standards can well solve this problem. For example, the clock synchronization based on the 1588v2 standard.
[0060] Optionally, the 1588v2 standard stipulates a clock synchronization protocol, which is applicable to a distributed system composed of one or more nodes and communicating through a network. Each node is modeled as a real-time clock, which can be applied in various scenarios to generate timestamps for data and manage the sorting of events generated or received by the nodes. The master clock and slave clock of the 1588v2 mainly achieve time synchronization by transmitting messages such as synchronization messages, follow-up messages, delay request messages, and delay response messages.
[0061] Figure 1 It is one of the flow schematic diagrams of the time synchronization method provided by the present invention, and its execution entity is a time synchronization device, including:
[0062] Correct the time to be synchronized according to all satellite signals, and determine the corrected time to be synchronized as the time synchronization time.
[0063] According to a preset period, send timing information to the base station to be synchronized to obtain the feedback information sent by the base station to be synchronized.
[0064] In response to the feedback information, send the time synchronization time to the base station to be synchronized.
[0065] All the satellite signals are satellite signals emitted by different satellites.
[0066] The time synchronization time is the time synchronized with the Universal Time Coordinated (UTC).
[0067] The timing information is determined according to a preset number of timestamps.
[0068] In step 101, all the satellite signals are satellite signals transmitted by different satellites. Optionally, after ensuring that there are at least a preset number of satellite signals within the field of view of the corresponding satellite receiver at any time, the timing device will complete fine-tuning based on the satellite signals transmitted by the different satellites, and then fine-tune the timing device according to different satellite signals to make the corrected time to be synchronized consistent with the Coordinated Universal Time (UTC), that is, correct the time to be synchronized according to all satellite signals and determine the corrected time to be synchronized as the timing time. At this time, the timing device can be set as the highest-level master clock.
[0069] In the present invention, the purpose of stipulating that all the satellite signals are satellite signals transmitted by different satellites is to more quickly obtain the device time calibration and synchronization of the timing device.
[0070] In step 102, according to a preset period, send timing information to the base station to be synchronized to obtain the feedback information sent by the base station to be synchronized. Optionally, the present invention can send the timing information to the base station to be synchronized only once. However, in order to enable the base station to be synchronized to more easily receive the timing information without omission, and to more accurately achieve the time synchronization between the base station to be synchronized and the timing device without reducing the synchronization stability due to reasons such as delay error, the timing information is sent to the base station to be synchronized in the form of a preset period. In principle, the base station to be synchronized only needs to obtain the timing information completely once. The feedback information is completed when all timestamps in the timing information sent by the timing device are received. At this time, the stability test of the base station to be synchronized has been completed, and high-precision time synchronization can be performed.
[0071] The present invention is different from the prior art in that it uses the form of timestamps instead of the form of timing packets for time synchronization. That is, the timing information is determined according to a preset number of timestamps, and the preset number is determined according to the required duration of synchronization. These will be further elaborated in the following embodiments and will not be elaborated here.
[0072] In step 103, in response to the feedback information, send the timing time to the base station to be synchronized. The present invention does not directly complete the transmission of the timing time after establishing the communication connection between the timing device and the base station to be synchronized. Instead, it is necessary to obtain the corresponding feedback information, and then send the timing time to the base station to be synchronized when the feedback information is obtained. The feedback information can ensure that the timing device and the base station to be synchronized complete the synchronization of the timing time under stable conditions, thereby improving the accuracy of time synchronization.
[0073] Optionally, before sending the timing information to the base station to be synchronized according to a preset period, it further includes:
[0074] When it is determined that the tracking signal from the original satellite is received, stop receiving the tracking signal of the original satellite;
[0075] The original satellite includes at least a satellite based on the Global Positioning System and / or a satellite based on the Beidou Satellite Navigation System.
[0076] Those skilled in the art understand that, optionally, in the base station to be synchronized, a wired physical interface is used as the network interface of the external device and is connected to the timing device to minimize the timing synchronization delay caused by transmission, and then receive the relevant messages from the timing device. The server in the base station to be synchronized serves as the boundary clock in the entire system. The server in the present invention not only serves as the indoor baseband processing unit (BBU) in the base station system but also serves as the boundary clock in the synchronization system of the present invention. It will simultaneously send and receive timing information and service information, and interface with the extended unit EU device and the remote terminal unit RU device below it. The extended unit EU device and the remote terminal unit RU device serve as slave clocks in the entire system of the present invention, and can be a single cell scenario or a multiple cell scenario.
[0077] Since, before the time synchronization method adopted in the present invention is performed, the base station to be synchronized may still be tracking the tracking signal of the original satellite. To reduce the interference of the original satellite on the subsequent time synchronization of the base station to be synchronized by the timing device, at the same time, disconnect the satellites of the Global Positioning System and the satellites based on the Beidou Satellite Navigation System previously tracked by the base station to be detected, and replace the synchronization state of the prior verification base station with the time synchronization test of tracking the ground 1588v2 standard, thus becoming the primary transmission of the entire base station system to be synchronized. The timing device serves as the highest-level master clock of the base station to be synchronized.
[0078] The present invention uses a timing device as the external clock source of the base station. The external clock source serves as the highest-level master clock to provide a stable pulse for the entire 5G communication system. The synchronization error of the leading edge with the UTC does not exceed 1 pps, thereby achieving time synchronization, replacing the original timing packet transmission between devices, and realizing a base station application system with high time accuracy, high stability, high security, and low latency.
[0079] Compared with the related technologies that use timing packets to transmit time in the prior art, the present invention has the following technical advantages:
[0080] In the first aspect, the present invention can achieve a significant improvement in time accuracy. The average deviation of the clock accuracy between the network interface of the server and the physical interface is within 10 ns, and the maximum value is maintained within 20 ns. The clock accuracy of the network interfaces connected above and below the server is within 15 ns. As slave clocks, the Extended Unit (EU) device and the Remote Terminal Unit (RU) device have a clock accuracy deviation of within 35 ns from the server. That is, the maximum clock deviation between the timing device and the EU device and the RU device is 70 ns, and it is basically stable within 50 ns.
[0081] In the second aspect, the present invention can achieve an improvement in stability. During the 2*24h service test, it is not affected by poor indoor signals, which may cause service interruption, nor does it encounter situations where the physical cores of the server fail due to excessive traffic.
[0082] In the third aspect, the present invention reduces the detection delay of the service channel as a whole, improves the detection efficiency, and thus enhances the user perception.
[0083] In the fourth aspect, the present invention is conducive to simplifying product implementation. The base station uses an external clock as the clock source and executes on the radio frequency unit, which can simplify the implementation of the baseband processing unit and the server fronthaul and improve accuracy. At the same time, based on the relevant processing of the baseband processing unit and the radio frequency unit, it not only ensures system stability but also optimizes the signal detection performance of the 5G base station as a whole.
[0084] The present invention provides a time synchronization method, device, equipment, and storage medium. The present invention uses a combination of a timing device, a base station to be synchronized, and a device to be synchronized to perform time synchronization of communication equipment, replacing the traditional satellite timing and the technical solution of transmitting timing packets between devices. It uses a combination of software and hardware to periodically correct and synchronize the clocks of all nodes in the network using synchronization signals, so that the distributed system of Ethernet can achieve high-precision synchronization and realize high-stability, high-security, and low-latency time synchronization.
[0085] Figure 2 It is the second flowchart of the time synchronization method provided by the present invention. Before correcting the time to be synchronized according to all satellite signals, it further includes:
[0086] Obtain all satellite signals within a preset range;
[0087] Generate an indication instruction when the number of the satellite signals is greater than or equal to a preset number;
[0088] The indication instruction is used to indicate processing the time to be synchronized according to all satellite signals.
[0089] In step 201, the preset range can be adjusted according to the actual situation. Specifically, if the preset range is too large, the number of different satellites that can be obtained will be more, but correspondingly, the computational amount for time synchronization will be greater. If the preset range is too small, the number of different satellites that can be obtained will be less, but correspondingly, the computational amount for time synchronization will be reduced. Specifically, the preset range can also be adjusted according to the number of satellite signals to be obtained.
[0090] In step 202, the preset number can be 6, 8 or even more. The more the number of satellite signals, the shorter the time to correct the time to be synchronized according to all satellite signals, but the computational amount will increase. And the present invention aims to determine the timing for generating an indication instruction. That is, in an optional embodiment, when the number of satellite signals is greater than or equal to 6, an indication instruction is generated, and the indication instruction is used to indicate processing the time to be synchronized according to all satellite signals.
[0091] Figure 3 It is the third flowchart of the time synchronization method provided by the present invention, and its execution entity is the base station to be synchronized, including:
[0092] When all timestamps in the timing information sent by the timing device are received, generate feedback information to send the feedback information to the timing device;
[0093] Obtain initial time information from the timestamps to determine the timing for sending according to the preset duration and the initial time information;
[0094] Obtain the timing time, and when the timing for sending is met, send the timing time to the device to be synchronized;
[0095] The initial time information includes an initial frame number and an initial time slot number;
[0096] The timing time is also used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization;
[0097] The device to be synchronized includes at least an extended unit EU device and a remote terminal unit RU device.
[0098] In step 301, whether the present invention adopts the form of tracking original satellites first or the form of time synchronization using a timing device, the duration required to determine the stability between the base station to be synchronized and the timing device is the same. Therefore, when all timestamps in the timing information sent by the timing device are received, it is the situation where it is determined that the base station to be synchronized can reach a stable state. At this time, feedback information is generated to send the feedback information to the timing device, and the timing device receives the feedback information and, in response to the feedback information, sends the timing time to the base station to be synchronized.
[0099] In step 302, initial time information is obtained from the time stamp to determine the timing for transmission according to a preset duration and the initial time information. Optionally, the initial time information includes a frame number and a time slot number. The initial time information is obtained from the time stamp provided by the timing device to determine the first frame number and the first time slot number. The preset duration is optionally 1 s, and in other optional embodiments, the preset duration can also be 1.1 s, 0.9 s, etc. According to the sum of the preset duration and the initial time information, the frame number and time slot number of the synchronization cell (Sync Cell) are determined, that is, the timing for transmission is determined. Further, according to the timing for transmission, the timing time is sent to the expansion unit EU device and the remote terminal unit RU device.
[0100] In step 303, the timing time is obtained. When the timing for transmission is satisfied, the timing time is sent to the device to be synchronized. The timing time is the time that is consistent with the Coordinated Universal Time (UTC). Those skilled in the art understand that in the present invention, the timing time is sent downward 1 second after the initial time information. Specifically, the timing time is sent to the device to be synchronized, and the device to be synchronized includes an expansion unit (Expansion Unit / EU) and a remote terminal unit (Remote Unit / RU), thereby solving the signal coverage problem of multiple units in a large-scale scenario.
[0101] The timing time is also used to instruct the device to be synchronized to perform time synchronization with the base station to be synchronized. Specifically, it can instruct the device to be synchronized to receive the timing time sent by the base station to be synchronized, and can also instruct the device to be synchronized to configure the network card of the device to be synchronized according to the timing time to synchronize the time of the device to be synchronized with the base station to be synchronized.
[0102] Figure 4 It is the fourth flow diagram of the time synchronization method provided by the present invention. Before generating the feedback information, it further includes:
[0103] Obtain the number of timing packets and the duration of the timing packets received in the case of original time synchronization;
[0104] Determine the duration required for synchronization according to the number of timing packets and the duration of the timing packets;
[0105] Determine the preset number of time stamps according to the duration required for synchronization and the time stamp duration corresponding to the timing device.
[0106] In step 401, the original time synchronization is in the form of achieving time synchronization by tracking the original satellite. It mainly uses the number of timing packets to achieve time synchronization docking for the base station device. In the present invention, since the time for determining that the base station to be synchronized can reach a stable state is constant, the number of timing packets received and the duration of the timing packets under the original time synchronization are obtained.
[0107] In step 402, the duration required for synchronization is determined according to the product of the number of timing packets and the duration of the timing packets. The synchronization duration is the time for the base station to be synchronized to reach a stable state.
[0108] In step 403, the preset number of timestamps is determined according to the synchronization required duration and the timestamp duration corresponding to the timing device. The timestamp duration corresponding to the timing device will vary according to the product type or preset parameters of the timing device. Therefore, according to the quotient of the synchronization required duration and the timestamp duration corresponding to the timing device, the preset number of timestamps can be determined. In an optional embodiment, in the present invention, since the process of the base station to be synchronized receiving timing packets in the uplink is similar to the process of receiving physical uplink contribution channel packets, and according to the state conversion, the mode of receiving timing packets is converted to the mode of providing timing information by time synchronization according to the 1588v2 standard. Then, in this process, the reception of 50 timing packets is completed and corrected to the highest-level master clock, that is, the timing device completes the printing of 2000 timestamps.
[0109] Figure 5 It is the fifth flowchart of the time synchronization method provided by the present invention. After sending the timing time to the device to be synchronized, it further includes:
[0110] Instruct the device to be synchronized to receive the timing time sent by the base station to be synchronized;
[0111] Instruct the device to be synchronized to configure the network card of the device to be synchronized according to the timing time to synchronize the time of the device to be synchronized with the base station to be synchronized.
[0112] In step 501, when the time of the software reference architecture (FlexRan) of the device to be synchronized matches the time of the synchronization cell (Sync Cell), the clock source lock second pulse is obtained according to the processor of the base station to be synchronized and the timing time is received. The synchronization between the base station to be synchronized and the timing device is completed, and then the processing of the service channel can be carried out downward, that is, the second pulse and the timing time are sent to the device to be synchronized.
[0113] In step 502, it is indicated that the device to be synchronized configures the network card of the device to be synchronized according to the timing time, so as to synchronize the time between the device to be synchronized and the base station to be synchronized. In the present invention, the second pulse and the timing time are sent to the network card (PCIE Card) for uplink packet assembly and scheduling. The extended unit EU device and the remote terminal unit RU device, as the slave clocks at the bottom layer of the system, need to be adapted to the optical port synchronization state in the device to be synchronized, and the protocol stack of the Precision Network Synchronization Protocol is started.
[0114] In the present invention, the timing common public radio interface (eCPRI) packet mode received from the data plane development kit (DPDK) issued by the field programmable gate array (FPGA) is modified to the timing information obtained from the slave clock, and synchronization matching is performed through the building baseband unit and the extended unit EU device and the remote terminal unit RU device.
[0115] Figure 6 FIG. 7 is one of the schematic structural diagrams of the time synchronization device provided by the present invention. The present invention provides a time synchronization device, which is applied to a timing device and includes a determination unit 11: for correcting the time to be synchronized according to all satellite signals and determining the corrected time to be synchronized as the timing time. The working principle of the determination unit 11 can refer to the foregoing step 101 and will not be elaborated herein.
[0116] The time synchronization device further includes a sending unit 12: for sending timing information to the base station to be synchronized according to a preset period to obtain feedback information sent by the base station to be synchronized. The working principle of the sending unit 12 can refer to the foregoing step 102 and will not be elaborated herein.
[0117] The time synchronization device further includes a response unit 13: for sending the timing time to the base station to be synchronized in response to the feedback information. The working principle of the response unit 13 can refer to the foregoing step 103 and will not be elaborated herein.
[0118] All the satellite signals are satellite signals emitted by different satellites;
[0119] The timing time is the time synchronized with the coordinated universal time (UTC);
[0120] The timing information is determined according to a preset number of timestamps.
[0121] The present invention provides a time synchronization method, apparatus, device and storage medium. The present invention uses a form of cooperation among a timing device, a base station to be synchronized and a device to be synchronized for time synchronization of communication devices, replacing the traditional satellite timing and the technical solution of transmitting timing packets between devices. It adopts a form of cooperation between software and hardware, and uses synchronization signals to periodically correct and synchronize the clocks of all nodes in the network, so that the distributed system of Ethernet achieves high-precision synchronization, realizing time synchronization with high stability, high security and low latency.
[0122] Figure 7 FIG. 4 is a second schematic structural diagram of the time synchronization apparatus provided by the present invention. The present invention also provides a time synchronization apparatus, which is applied to a base station to be synchronized and includes a generating unit 21: configured to generate feedback information for sending the feedback information to the timing device when all timestamps in the timing information sent by the timing device are received. The working principle of the generating unit 21 can refer to the foregoing step 301 and will not be elaborated herein.
[0123] The time synchronization apparatus further includes a processing unit 22: configured to obtain initial time information from the timestamps to determine a time to be sent according to a preset duration and the initial time information. The working principle of the processing unit 22 can refer to the foregoing step 302 and will not be elaborated herein.
[0124] The time synchronization apparatus further includes an obtaining unit 23: configured to obtain the timing time and send the timing time to the device to be synchronized when the time to be sent is met. The working principle of the obtaining unit 23 can refer to the foregoing step 303 and will not be elaborated herein.
[0125] The initial time information includes an initial frame number and an initial time slot number;
[0126] The timing time is further used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization;
[0127] The device to be synchronized includes at least an extended unit EU device and a remote terminal unit RU device.
[0128] The present invention provides a time synchronization method, apparatus, device and storage medium. The present invention uses a form of cooperation among a timing device, a base station to be synchronized and a device to be synchronized for time synchronization of communication devices, replacing the traditional satellite timing and the technical solution of transmitting timing packets between devices. It adopts a form of cooperation between software and hardware, and uses synchronization signals to periodically correct and synchronize the clocks of all nodes in the network, so that the distributed system of Ethernet achieves high-precision synchronization, realizing time synchronization with high stability, high security and low latency.
[0129] Figure 8 FIG. 5 is a schematic structural diagram of the electronic device provided by the present invention. AsFigure 8 As shown in the figure, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840. Among them, the processor 810, the communications interface 820, and the memory 830 complete mutual communication through the communication bus 840. The processor 810 may call the logical instructions in the memory 830 to execute a time synchronization method, which includes: correcting the time to be synchronized according to all satellite signals, and determining the corrected time to be synchronized as the timing time; sending timing information to the base station to be synchronized according to a preset period to obtain feedback information sent by the base station to be synchronized; in response to the feedback information, sending the timing time to the base station to be synchronized; all the satellite signals are satellite signals emitted by different satellites; the timing time is the time synchronized with the Coordinated Universal Time (UTC); the timing information is determined according to a preset number of timestamps.
[0130] In addition, when the logical instructions in the above-mentioned memory 830 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0131] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a time synchronization method provided by the above-mentioned various methods. The method includes: correcting the time to be synchronized according to all satellite signals, and determining the corrected time to be synchronized as the timing time; sending timing information to the base station to be synchronized according to a preset period to obtain feedback information sent by the base station to be synchronized; in response to the feedback information, sending the timing time to the base station to be synchronized; all the satellite signals are satellite signals emitted by different satellites; the timing time is the time synchronized with the Coordinated Universal Time (UTC); the timing information is determined according to a preset number of timestamps.
[0132] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements a time synchronization method provided by the above-mentioned various methods. The method includes: correcting the time to be synchronized according to all satellite signals, and determining the corrected time to be synchronized as the timing time; sending timing information to the base station to be synchronized according to a preset period to obtain feedback information sent by the base station to be synchronized; in response to the feedback information, sending the timing time to the base station to be synchronized; all the satellite signals are satellite signals emitted by different satellites; the timing time is a time synchronized with Coordinated Universal Time (UTC); the timing information is determined according to a preset number of timestamps.
[0133] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative effort.
[0134] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. A time synchronization method, characterized in that, Applied to a timing device, including: Correct the time to be synchronized according to all satellite signals, and determine the corrected time to be synchronized as the timing time; Send timing information to the base station to be synchronized according to a preset period to obtain feedback information sent by the base station to be synchronized; In response to the feedback information, send the timing time to the base station to be synchronized; All the satellite signals are satellite signals emitted by different satellites; The timing time is the time synchronized with Coordinated Universal Time (UTC); The timing information is determined according to a preset number of timestamps; The base station to be synchronized is used for: Generate feedback information after receiving all timestamps in the timing information sent by the timing device, and send the feedback information to the timing device; Obtain initial time information from the timestamps to determine the timing for sending according to a preset duration and the initial time information; Obtain the timing time, and send the timing time to the device to be synchronized when the timing for sending is met; The initial time information includes an initial frame number and an initial time slot number; The timing time is also used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization; The device to be synchronized at least includes an extended unit EU device and a remote terminal unit RU device.
2. The time synchronization method according to claim 1, wherein Before correcting the time to be synchronized according to all satellite signals, it also includes: Obtain all satellite signals within a preset range; Generate an instruction command when the number of the satellite signals is greater than or equal to a preset number; The instruction command is used to instruct to process the time to be synchronized according to all satellite signals.
3. The time synchronization method according to claim 1, characterized in that Before sending timing information to the base station to be synchronized according to a preset period, it also includes: Stop receiving the tracking signal from the original satellite when it is determined that the tracking signal from the original satellite is received; The original satellite at least includes a satellite based on the Global Positioning System and / or a satellite based on the BeiDou Navigation Satellite System.
4. A time synchronization method, characterized in that, Applied to the base station to be synchronized, including: Generate feedback information after receiving all timestamps in the timing information sent by the timing device, and send the feedback information to the timing device; Obtain initial time information from the timestamps to determine the timing for sending according to a preset duration and the initial time information; Obtain the timing time from the timing device, where the timing time is the time synchronized with Coordinated Universal Time (UTC), and send the timing time to the device to be synchronized when the timing for sending is met; The initial time information includes an initial frame number and an initial time slot number; The timing time is also used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization; The device to be synchronized at least includes an extended unit EU device and a remote terminal unit RU device.
5. The time synchronization method according to claim 4, wherein Before generating feedback information, it also includes: Obtain the number of timing packets and the duration of the timing packets received in the case of original time synchronization; Determine the duration required for synchronization according to the number of the timing packets and the duration of the timing packets; Determine the preset number of timestamps according to the duration required for synchronization and the timestamp duration corresponding to the timing device.
6. The time synchronization method according to claim 4, wherein After sending the timing time to the device to be synchronized, it also includes: Instruct the device to be synchronized to receive the time-of-day information sent by the base station to be synchronized; Instruct the device to be synchronized to configure the network card of the device to be synchronized according to the time-of-day information, so as to synchronize the time of the device to be synchronized with the base station to be synchronized.
7. A time synchronization device, characterized in that, Applied to a time-of-day device, it includes: A determination unit: used to correct the time to be synchronized according to all satellite signals, and determine the corrected time to be synchronized as the time-of-day information; A sending unit: used to send timing information to the base station to be synchronized according to a preset period, so as to obtain the feedback information sent by the base station to be synchronized; A response unit: used to send the time-of-day information to the base station to be synchronized in response to the feedback information; All the satellite signals are satellite signals emitted by different satellites; The time-of-day information is a time synchronized with Coordinated Universal Time (UTC); The timing information is determined according to a preset number of timestamps; The base station to be synchronized is used for: Generating feedback information to send the feedback information to the time-of-day device when all timestamps in the timing information sent by the time-of-day device are received; Obtaining initial time information from the timestamps to determine the timing for sending based on a preset duration and the initial time information; Obtaining the time-of-day information, and sending the time-of-day information to the device to be synchronized when the timing for sending is met; The initial time information includes an initial frame number and an initial time slot number; The time-of-day information is further used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization; The device to be synchronized includes at least an expansion unit EU device and a remote terminal unit RU device.
8. A time synchronization device, characterized in that, Applied to the base station to be synchronized, it includes: A generating unit: used to generate feedback information to send the feedback information to the time-of-day device when all timestamps in the timing information sent by the time-of-day device are received; A processing unit: used to obtain initial time information from the timestamps to determine the timing for sending based on a preset duration and the initial time information; An obtaining unit: used to obtain the time-of-day information from the time-of-day device, where the time-of-day information is a time synchronized with Coordinated Universal Time (UTC), and send the time-of-day information to the device to be synchronized when the timing for sending is met; The initial time information includes an initial frame number and an initial time slot number; The time-of-day information is further used to instruct the device to be synchronized and the base station to be synchronized to perform time synchronization; The device to be synchronized includes at least an expansion unit EU device and a remote terminal unit RU device.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the time synchronization method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the time synchronization method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Communication system and time service method thereof
CN111711506A
GNSS multi-satellite coarse timing method and system in rotating antenna scene and storage medium
CN113253307A
Base station optical fiber time service system based on BD / GPS double antennas
CN113347699A
Time delay compensation method and device and electronic equipment
CN114125934A