A timing synchronization system and a timing synchronization switching method
By designing a timing synchronization system in the communication system, using the public timing module and the frequency adjustment module to generate the synchronization source signal when the first communication system loses the external synchronization source signal, and calculating and adjusting the frequency offset, the communication system in the existing technology cannot be synchronized. The resulting time loss and frequency discontinuity problems achieve stable time and frequency synchronization of dual communication systems.
Patent Information
- Application Number
- CN202111042431.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-07
AI Technical Summary
In the existing technology, when the communication system cannot obtain the external synchronization source signal, it will cause time synchronization loss and frequency discontinuity. It will cause short-term communication interruption during the switching process and cannot guarantee the continuity of time synchronization of the dual communication system.
A timing synchronization system is designed, including a communication system timing module, a public timing module and a frequency adjustment module. The public timing module generates a synchronization source signal when the first communication system loses the external synchronization source signal, and adjusts the synchronization source signal according to the clock of the second communication system. The count value is determined, the communication system timing module calculates the frequency offset, and the frequency adjustment module adjusts the frequency offset to achieve time synchronization.
It effectively ensures the time synchronization and frequency synchronization of dual communication systems, avoids short interruptions during the switching process, and ensures the continuity of time synchronization and frequency accuracy.
Smart Images

Figure CN115776348B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a timing synchronization system and a timing synchronization switching method. Background Art
[0002] The dual communication system may include two independent communication systems, each of which has a corresponding synchronization source signal, and the two independent communication systems may perform time synchronization according to their respective synchronization source signals.
[0003] However, when one of the communication systems cannot obtain its corresponding synchronization source signal, the communication system will not be able to achieve time synchronization and will also lose the frequency of the signal. In the prior art, when one of the communication systems cannot achieve time synchronization, the communication system is switched to another communication system to obtain the clock of the other communication system to complete time synchronization. However, during the switching process, a brief communication interruption will occur, or the continuity of time synchronization between the two communication systems cannot be guaranteed after the switching. Summary of the invention
[0004] The embodiment of the present invention provides a timing synchronization system and a timing synchronization switching method, which can effectively ensure the time synchronization and accurate frequency synchronization of a dual communication system.
[0005] In a first aspect, an embodiment of the present invention provides a timing synchronization system, including: a communication system timing module, a common timing module, and a frequency adjustment module;
[0006] The common timing module is connected to the communication system timing module and the frequency adjustment control module respectively;
[0007] The common timing module is used to generate a synchronization source signal when the first communication system in the dual communication system loses the external synchronization source signal, and trigger the latch count value through the synchronization source signal, wherein the synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal;
[0008] The communication system timing module is used to determine the frequency deviation of the first communication system according to the count value;
[0009] The frequency adjustment module is used to adjust the frequency offset to a target value to achieve time synchronization between the first communication system and the second communication system.
[0010] In a second aspect, an embodiment of the present invention further provides a timing synchronization switching method, which is applied to a timing synchronization system, wherein the timing synchronization system includes a communication system timing module, a public timing module, and a frequency adjustment module, and the method includes:
[0011] Generate a synchronization source signal by the common timing module when the first communication system in the dual communication system loses the external synchronization source signal, and trigger a latch count value by the synchronization source signal, wherein the synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal;
[0012] Determining the frequency deviation of the first communication system according to the count value by the communication system timing module;
[0013] The frequency deviation is adjusted to a target value by the frequency adjustment control module, thereby achieving time synchronization between the first communication system and the second communication system.
[0014] The embodiment of the present invention provides a timing synchronization system and a timing synchronization switching method. First, a common timing module generates a synchronization source signal when the first communication system in the dual communication system loses the external synchronization source signal, and the synchronization source signal triggers the latch count value. The synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal; then the communication system timing module determines the frequency deviation of the first communication system according to the count value; finally, the frequency adjustment control module adjusts the frequency deviation to the target value to achieve time synchronization between the first communication system and the second communication system. The above technical solution can effectively ensure the time synchronization and accurate frequency synchronization of the dual communication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of the structure of a timing synchronization system provided in Embodiment 1 of the present invention;
[0016] Figure 2 A schematic diagram of the structure of a timing synchronization system provided by Embodiment 2 of the present invention;
[0017] Figure 3 A schematic diagram of the structure of a product with a dual communication system provided in Embodiment 3 of the present invention;
[0018] Figure 4 This is a schematic diagram of an example structure of a timing synchronization system provided by Embodiment 3 of the present invention;
[0019] Figure 5 A schematic diagram of a flow chart of a timing synchronous switching method provided in Embodiment 4 of the present invention;
[0020] Figure 6 This is a flowchart of a timing synchronous switching method provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0021] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0022] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0023] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0024] It should be noted that the concepts such as "first" and "second" mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0025] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0026] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0027] Embodiment 1
[0028] A timing synchronization system provided in the first embodiment of the present invention can be applied to time synchronization of dual communication systems integrated in the same system or the same chip. The dual communication system can be an ad hoc network and a public network, broadband and narrowband, etc. integrated in the same system or the same chip.
[0029] Figure 1This is a structural schematic diagram of a timing synchronization system provided in Embodiment 1 of the present invention. The system can be applied to situations where time synchronization is maintained between dual communication systems. The system can be implemented by software and / or hardware. The timing synchronization system can include a common timing module for generating a continuous synchronization source signal when the first communication system in the dual communication system loses an external synchronization source signal.
[0030] like Figure 1 As shown, a timing synchronization system provided by Embodiment 1 of the present invention includes:
[0031] Communication system timing module 110, public timing module 120 and frequency adjustment module 130;
[0032] The common timing module 120 is connected to the communication system timing module 110 and the frequency adjustment control module 130 respectively;
[0033] A common timing module 120, configured to generate a continuous synchronization source signal when a first communication system in the dual communication system loses an external synchronization source signal, and trigger a latch count value through the synchronization source signal, wherein the synchronization source signal is determined according to a clock of a second communication system in the dual communication system, wherein the second communication system is a communication system that has not lost the external synchronization source signal;
[0034] A communication system timing module 110, configured to determine a frequency deviation of the first communication system according to the count value;
[0035] The frequency adjustment module 130 is used to adjust the frequency offset to a target value to achieve time synchronization between the first communication system and the second communication system.
[0036] The communication system timing module 110 may be a dual communication system, which may include two independent communication systems, and for example, the dual communication system may include a public network communication system and a personal computer communication system. Both independent communication systems have corresponding timing modules.
[0037] Among them, the first communication system can be a communication system that loses the external synchronization source signal in the dual communication system. The external synchronization source signal can be a time signal. Exemplarily, the external synchronization source signal can be obtained from a global satellite navigation system or a global positioning system. There is no specific restriction on the method of obtaining the external synchronization source signal here.
[0038] The common timing module 120 may be a timing module shared by the first communication system and the second communication system. The synchronization source signal may be a time signal obtained from the second communication system, and the time signal may be determined according to the clock of the second communication system. When the common timing module 120 receives the synchronization source signal obtained from the second communication system, the count value generated by the common timing module 120 may be latched.
[0039] Among them, the communication system timing module 110 may include a timer of the first communication system and a timer of the second communication system. When the first communication system loses the clock source, the communication system timing module 110 can calculate the frequency deviation of the first communication system according to the count value. The specific calculation process of the frequency deviation can be to calculate the difference between any two count values, calculate the time deviation of the first communication system according to the difference, and calculate the frequency deviation of the first communication system according to the time deviation. Among them, the count value can be a specific time value, and the specific process of calculating the time deviation according to the difference and calculating the frequency deviation according to the time deviation is not elaborated in detail here. Any two count values can be understood as the count values latched when obtaining two synchronization source signals separated by a preset time.
[0040] The frequency adjustment module 130 may be a module that can adjust the frequency deviation, and the frequency adjustment module 130 may eliminate the frequency deviation generated by the first communication system. In this embodiment, the target value may be 0. When the frequency deviation is eliminated, the time of the first communication system and the second communication system can be synchronized.
[0041] A timing synchronization system provided in the first embodiment of the present invention first generates a synchronization source signal through a common timing module when the first communication system in a dual communication system loses an external synchronization source signal, and triggers a latch count value through the synchronization source signal, wherein the synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal; then the communication system timing module determines the frequency deviation of the first communication system according to the count value; finally, the frequency deviation is adjusted to a target value through a frequency adjustment module to achieve time synchronization between the first communication system and the second communication system. Using the above system, the time synchronization and accurate frequency synchronization of the dual communication system can be effectively guaranteed.
[0042] Embodiment 2
[0043] Figure 2 This is a schematic diagram of the structure of a timing synchronization system provided by Embodiment 2 of the present invention. Embodiment 2 is optimized on the basis of the above embodiments. For details not yet fully described in this embodiment, please refer to Embodiment 1.
[0044] In this embodiment, the public timing module 220 includes a first public timer 221 corresponding to the first communication system and a second public timer 222 corresponding to the second communication system, and the synchronization source signal includes a first synchronization source signal and a second synchronization source signal; the first public timer 221 is used to generate the first synchronization source signal according to the clock of the second communication system; the second public timer 222 is used to generate the second synchronization source signal according to the clock of the first communication system.
[0045] In this embodiment, the first communication system and the second communication system both have their corresponding public timers. When the first communication system loses the external synchronization source signal, the clock of the second communication system can be obtained through the first public timer 221 to generate the first synchronization source signal; when the second communication system loses the external synchronization source signal, the clock of the first communication system can be obtained through the second public timer 222 to generate the second synchronization source signal.
[0046] Furthermore, the first common timer 221 is also used to synchronize the frequency accuracy of the first communication system to the frequency accuracy of the second communication system by acquiring a clock from the second communication system; the second common timer 222 is also used to synchronize the frequency accuracy of the second communication system to the frequency accuracy of the first communication system by acquiring a clock from the first communication system.
[0047] In this embodiment, after the first public timer 221 obtains the clock from the second communication system, the first communication system can maintain time synchronization with the second communication system. After the first communication system maintains time synchronization with the second communication system, the frequency accuracy of the first communication system can also be synchronized with the frequency accuracy of the second communication system.
[0048] In this embodiment, after the second public timer 222 obtains the clock from the first communication system, the second communication system can maintain time synchronization with the first communication system. After the first communication system maintains time synchronization with the second communication system, the frequency accuracy of the second communication system can also be synchronized with the frequency accuracy of the first communication system.
[0049] Furthermore, the timing period of the first common timer 221 is a first preset value, and the phase of the first common timer 221 is adjusted according to the external synchronization source signal; the timing period of the second common timer 222 is a second preset value, and the phase of the second common timer 222 is adjusted according to the external synchronization source signal.
[0050] In this embodiment, the timing period of the first public timer 221 can be understood as the period of obtaining the clock from the second communication system, and the first preset value can be the preset value of the timing period of the first public timer. Exemplarily, the first preset value can be 1 second, that is, the clock signal is obtained once every 1 second. Similarly, the timing period of the second public timer 222 is the same as the timing period of the first public timer 221, and will not be repeated here.
[0051] Furthermore, the communication system timing module 210 includes a first communication system timer 211 and a second communication system timer 212, and the count value includes a first count value triggered by a first synchronization source signal and a second count value triggered by a second synchronization source signal; the first communication system timer 211 is used to determine a first time deviation of the first communication system according to the first count value, and determine a frequency deviation corresponding to the first communication system according to the first time deviation; the second communication system timer 212 is used to determine a second time deviation of the second communication system according to the second count value, and determine a frequency deviation corresponding to the second communication system according to the second time deviation.
[0052] In this embodiment, when the first communication system loses the external synchronization source signal, the timing synchronization system can obtain the synchronization source signal from the second communication system to trigger the first communication system timer 211 to latch the count value generated by the first communication system timer, arbitrarily select two count values, calculate the first time deviation according to the time interval between the two count values, and calculate the frequency deviation corresponding to the first communication system according to the first time deviation.
[0053] In this embodiment, when the second communication system loses the external synchronization source signal, the timing synchronization system can obtain the synchronization source signal from the first communication system to trigger the second communication system timer 212 to latch the count value generated by the second communication system timer, arbitrarily select two count values, calculate the second time deviation according to the time interval between the two count values, and calculate the corresponding frequency deviation of the second communication system according to the second time deviation.
[0054] Furthermore, the first communication system timer 211 is also used to receive the external synchronization source signal, and trigger latching of the third count value according to the external synchronization source signal; the second communication system timer 212 is also used to receive the external synchronization source signal, and trigger latching of the fourth count value according to the external synchronization source signal.
[0055] In this embodiment, when the first communication system does not lose the external synchronization source signal, the first communication system timer 211 can be triggered by receiving the external synchronization source signal to latch the third count value generated by the first communication system timer 211. The third count value can be understood as the count value latched by the first communication system timer 211 after being triggered by the external synchronization source signal.
[0056] In this embodiment, when the second communication system does not lose the external synchronization source signal, the second communication system timer 212 can be triggered by receiving the external synchronization source signal to latch the fourth count value generated by the second communication system timer 212. The fourth count value can be understood as the count value latched by the second communication system timer 212 after being triggered by the external synchronization source signal.
[0057] Furthermore, the first communication system timer 211 is also used to determine the third time deviation of the first communication system according to the third count value, and determine the frequency deviation corresponding to the first communication system according to the third time deviation; the second communication system timer 212 is also used to determine the fourth time deviation of the second communication system according to the fourth count value, and determine the frequency deviation corresponding to the second communication system according to the fourth time deviation.
[0058] In this embodiment, the process of determining the third time offset according to the third count value and determining the frequency offset corresponding to the first communication system according to the third time offset is the same as the process of determining the first time offset according to the first count value and determining the frequency offset corresponding to the first communication system according to the first time offset, and is not described in detail here. Similarly, the process of calculating the fourth time offset and the fourth frequency offset is not described in detail.
[0059] Furthermore, when the dual communication system does not lose the external synchronization source signal, the phase of the first common timer 221 is synchronized to the external synchronization source signal of the first communication system; when the dual communication system does not lose the external synchronization source signal, the phase of the second common timer 222 is synchronized to the external synchronization source signal of the second communication system.
[0060] It should be noted that, when the dual communication system does not lose the external synchronization source signal, the phase of the first public timer 221 can be synchronized to the first communication system, and the timing period of the first public timer 221 can be set to a value that is convenient for the first communication system to calculate the time offset and frequency offset. When the dual communication system does not lose the external synchronization source signal, the phase of the second public timer 222 can be synchronized to the second communication system, and the timing period of the second public timer 222 can be set to a value that is convenient for the second communication system to calculate the time offset and frequency offset.
[0061] A timing synchronization system provided in the second embodiment of the present invention embodies a communication system timing module 210 and a common timing module 220. By using this system, the accuracy and continuity of time can be guaranteed by latching the timer, solving the problem that the prior art cannot maintain the continuity of time synchronization during clock switching.
[0062] Embodiment 3
[0063] The above embodiments can be applied to many scenarios. For example, one of the typical application scenarios can be the vehicle networking technology involved in assisted driving and unmanned driving. Vehicle wireless communication technology includes two parts. One part is the public network of mobile communication, referred to as the UU port. In addition to normal public network services, it is also necessary to transmit some public new types and some scheduling information; the other part is based on the public network technology, and is designed with a similar frame structure and related physical layer for direct communication between vehicles, between vehicles and people, and between vehicles and roads. It transmits some proprietary information, which is called the PC5 port. The typical scenario corresponding to the third embodiment of the present invention is that the public network system and the personal computer communication system work simultaneously. At this time, the dual communication system can include a public network communication system and a personal computer communication system.
[0064] Figure 3 This is a schematic diagram of the structure of a product with a dual communication system provided in Embodiment 3 of the present invention. For products that support both UU and PC5, the UU port public network module and the PC5 port module are basically simply integrated into the same structure, and some information interaction is performed at the application level. The two are independent of each other at the communication level, and the clock and timing synchronization of the two modules are also independent and do not interfere with each other.
[0065] Since the PC5 port of the Internet of Vehicles is a direct communication between vehicles, vehicles and people, and vehicles and roads, the timing synchronization source of its communication is mainly derived from the Global Navigation Satellite System (GNSS). When GNSS is lost, public network synchronization or self-synchronization can also be used. However, since the synchronization of the public network comes from the base station, the synchronization switching between the two requires the support of the chip and the underlying software protocol stack. At present, the public network UU and PC5 ports are basically independent modules. Therefore, most PC5 modules cannot switch to the public network synchronization using the UU port after GNSS is lost. They can only synchronize the clock to other PC5 terminals. However, since the PC5 terminal needs to receive signals from multiple other terminals at the same time, it cannot be synchronized to all PC5 terminals. Therefore, this strategy will inevitably sacrifice the number of receiving ends. For the scenario of synchronization to the public network, some solutions are to directly use the public network UU clock source when no GNSS is received, and some solutions are to switch the clock to the UU port when the GNSS of PC5 is lost to ensure that the frequency of the PC5 clock is as accurate as possible after the GNSS is lost. However, the clock switching will cause a short interruption of the system and the operation of PC5 requires not only accurate frequency but also continuity of time synchronization. This solution cannot guarantee the continuity of time synchronization, which will have a great impact on system performance.
[0066] Figure 4This is a schematic diagram of an example structure of a timing synchronization system provided by the third embodiment of the present invention. The application scenario corresponding to the third embodiment of the present invention is the scenario where the PC5 of the Internet of Vehicles system encounters GNSS loss during operation. Figure 4 As shown, the timing synchronization system includes the following modules: a public timing module 410 , a UU module 420 and a PC5 module 430 .
[0067] The timing clock source of the public timing module 410 selects the second clock source from the public network module. The public timing module 410 can generate a periodic signal, i.e., a synchronization source signal, based on the first clock source. The phase of the periodic signal can be adjusted and the timing period can be configured. When the GNSS is not lost, the public timing module 410 can adjust the phase of the public timer 411, i.e., the first public timer, in the public timer 410 module according to the PP1S signal, i.e., the external synchronization source signal, generated by the GNSS, so that the phase of the public timer 411 is synchronized with the GNSS and has the same period.
[0068] It should be noted that the PC5 timer 431 in the PC5 module 530, i.e., the first communication system timer, can correspond to a switch logic, and the two inputs of the switch are the PP1S signal generated by the GNSS and the periodic signal generated by the common timing module 410. Optionally, the switch logic here can also use an OR gate logic circuit.
[0069] When GNSS is not lost, that is, when the external synchronization source signal is not lost, the timing clock source of the PC5 timer 431 in the PC5 module 430 comes from the first clock CLK1 of the oscillator OSC1, and the oscillator OSC1 is the oscillator of the PC5 module 430. The PC5 timer 431 can take a snapshot according to the PP1S signal sent by the GNSS and latch the timer count value corresponding to the PP1S signal. The time deviation of the PC5 module can be calculated according to the timer difference between the two latched PP1S signals. The frequency deviation of the oscillator OSC1 can be calculated from the time deviation. The frequency deviation of the oscillator OSC1 can be adjusted by the automatic frequency controller AFC1, and the timing of sending and receiving can be adjusted according to the pulse moment of the PP1S signal. The clock source of the UU module 420 is the second clock CLK2 from the oscillator OSC2. The oscillator OSC2 is the oscillator of the UU module 420. The frequency and timing can be synchronized to the public network base station according to the data received by the physical layer.
[0070] When GNSS is lost, that is, when the external synchronization source signal is lost, the timing clock source of the PC5 module 430 is switched to the common timing module 410 through a switch, and the periodic signal generated by the common timing module 510 is used as the external synchronization source signal. The PC5 timer 431 in the PC5 timing module 430 latches the timer count value corresponding to the periodic signal, and calculates the time deviation of the PC5 module 430 according to the timer difference between the two latched periodic signals. The frequency deviation of the oscillator OSC1 can be calculated from the time deviation. After the frequency deviation is adjusted by the automatic frequency controller AFC1, the timing of the PC5 module 430 can be synchronized to the UU module 420. It should be noted that the periodic signal generated by the common timing module 410 comes from the second clock CLK2 generated by the oscillator OSC2 of the UU module 420.
[0071] When the GNSS is found again, the external synchronization source signal can be switched to the PP1S signal output by the GNSS through the switch of the public timing module 410, and synchronization is performed according to normal frequency and time adjustment. The periodic signal generated by the public timer 411 is also resynchronized to the GNSS PP1S.
[0072] The timing synchronization system provided in the third embodiment of the present invention adjusts the frequency deviation of the oscillator OSC1 and the timing synchronization of the PC5 module in real time, so that the frequency deviation accuracy of the PC5 module reaches the accuracy of the UU module after the GNSS is lost, and because the phase of the common timer is synchronized with the GNSS before the GNSS is lost, the timing synchronization and frequency synchronization are realized at the same time, so that the PC5 module is seamlessly synchronized to the UU module after the GNSS is lost, ensuring that there is no performance loss of the PC5 module.
[0073] For the scenario where the PC5 of the Internet of Vehicles system encounters GNSS loss during operation, the present invention can synchronously and seamlessly switch to the public network system, which can not only ensure the frequency accuracy, but also ensure the time synchronization between PC5 and GNSS before the loss, without losing system performance; the existing technologies either cannot achieve synchronous switching, or the synchronous switching will cause a brief interruption in the transmission and reception of the PC5 system, or can only achieve frequency synchronization and cannot guarantee the original time synchronization.
[0074] Embodiment 4
[0075] Figure 5 This is a flow chart of a timing synchronization switching method provided by Embodiment 4 of the present invention. This embodiment can be applied to the case where time synchronization is maintained between dual communication systems. The method can be performed by the timing synchronization system provided in Embodiment 1 or Embodiment 2. The system can be implemented by hardware or software. The method specifically includes the following steps:
[0076] S110 , when the first communication system in the dual communication system loses the external synchronization source signal, generating a synchronization source signal, and triggering a latch count value through the synchronization source signal.
[0077] The synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal.
[0078] In this embodiment, when any one of the dual communication systems loses the external synchronization source signal, a synchronization source signal can be generated by a common timing module, and a latch count value can be triggered according to the synchronization source signal.
[0079] The public timing module may include a first public timer corresponding to the first communication system and a second public timer corresponding to the second communication system, and the synchronization source signal may include a first synchronization source signal and a second synchronization source signal. The first public timer may generate the first synchronization source signal according to the clock of the second communication system; the second public timer may generate the second synchronization source signal according to the clock of the first communication system.
[0080] Among them, the first public timer can also be used to obtain a clock from the second communication system, and the frequency accuracy of the first communication system can be synchronized to the frequency accuracy of the second communication system; the second public timer can also be used to obtain a clock from the first communication system, and the frequency accuracy of the second communication system can be synchronized to the frequency accuracy of the first communication system.
[0081] S120. Determine a frequency deviation of the first communication system according to the count value.
[0082] In this embodiment, when the first communication system loses the clock source, the frequency deviation of the first communication system can be calculated by the communication system timing module. The specific calculation process of the frequency deviation can be to calculate the difference between any two count values, calculate the time deviation of the first communication system according to the difference, and calculate the frequency deviation of the first communication system according to the time deviation.
[0083] Among them, the communication system timing module may include a first communication system timer and a second communication system timer, and the count value may include a first count value triggered by a first synchronization source signal and a second count value triggered by a second synchronization source signal; the first communication system timer can determine the first time deviation of the first communication system according to the first count value, and determine the frequency deviation corresponding to the first communication system according to the first time deviation; the second communication system timer can determine the second time deviation of the second communication system according to the second count value, and determine the frequency deviation corresponding to the second communication system according to the second time deviation.
[0084] S130: Adjust the frequency offset to a target value to achieve time synchronization between the first communication system and the second communication system.
[0085] In this embodiment, the frequency deviation may be adjusted by a frequency adjustment module, and the frequency adjustment module may adjust the generated frequency deviation to 0. When the frequency deviation is 0, the time of the first communication system and the second communication system can be kept synchronized.
[0086] A timing synchronization switching method provided in the fourth embodiment of the present invention first generates a synchronization source signal through the common timing module when the first communication system in the dual communication system loses the external synchronization source signal, and triggers the latch count value through the synchronization source signal; then the communication system timing module determines the frequency deviation of the first communication system according to the count value; finally, the frequency adjustment control module adjusts the frequency deviation to the target value to achieve time synchronization between the first communication system and the second communication system. The above method can effectively ensure the time synchronization and accurate frequency synchronization of the dual communication system.
[0087] Furthermore, the method also includes: when the first communication system has not lost the external synchronization source signal, receiving the external synchronization source signal through the communication system timing module; triggering the timer corresponding to the first communication system to latch the count value according to the external synchronization source signal through the common timing module; determining the frequency deviation of the first communication system according to the count value triggered by the external synchronization source signal through the communication system timing module; adjusting the frequency deviation to the target value through the frequency adjustment control module to achieve time synchronization between the first communication system and the second communication system.
[0088] In this embodiment, when the first communication system has not lost the external synchronization source signal, the external synchronization source signal can be directly received to trigger the first communication system timer to latch the third count value generated by the first communication system timer, and then the time deviation can be calculated according to the third count value through the communication system timing module, and then the frequency deviation can be calculated according to the time deviation, and finally the frequency deviation can be adjusted through the frequency adjustment control module to achieve time synchronization of the dual communication systems.
[0089] Furthermore, when the dual communication system does not lose the external synchronization source signal, the phase of the first public timer is synchronized to the external synchronization source signal of the first communication system; when the dual communication system does not lose the external synchronization source signal, the phase of the second public timer is synchronized to the external synchronization source signal of the second communication system.
[0090] Furthermore, an external synchronization source signal can be received through the first communication system timer, and the third count value can be latched according to the external synchronization source signal; an external synchronization source signal can be received through the second communication system timer, and the fourth count value can be latched according to the external synchronization source signal.
[0091] Furthermore, the third time offset of the first communication system can be determined by the first communication system timer according to the third count value, and the frequency offset corresponding to the first communication system can be determined according to the third time offset; the fourth time offset of the second communication system can be determined by the second communication system timer according to the fourth count value, and the frequency offset corresponding to the second communication system can be determined according to the fourth time offset.
[0092] Figure 6 A flowchart of a timing synchronous switching method provided by the fourth embodiment of the present invention is shown in FIG. Figure 6 As shown, the dual communication system may include system A and system B, and the method may include the following two cases.
[0093] When the synchronization source of system A is not lost, that is, the external synchronization source signal is not lost, the synchronization source signal of system A can be input into the timer of system A, and the timer of system A can calculate the frequency deviation according to the synchronization source signal of system A, and adjust the frequency deviation through the frequency deviation adjustment control module of system A, that is, the frequency adjustment module. When the synchronization source of system B is not lost, the synchronization source signal of system B can be input into the timer of system B, and the timer of system B can calculate the frequency deviation according to the synchronization source signal of system B, and adjust the frequency deviation through the frequency deviation adjustment control module of system B.
[0094] When the synchronization source of system A is lost, that is, the external synchronization source signal is lost, public timer 1 can obtain the system B clock from system B as public timer clock 1, output periodic signal 1 to system A timer according to public timer clock 1 to calculate the frequency deviation of system A, and adjust the frequency deviation through the frequency deviation adjustment control module of system A. When the synchronization source of system B is lost, public timer 2 can obtain the system A clock from system A as public timer clock 2, output periodic signal 2 to system B timer according to public timer clock 2 to calculate the frequency deviation of system B, and adjust the frequency deviation through the frequency deviation adjustment control module of system B.
[0095] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A timing synchronization system, It is characterized in that The system includes: a communication system timing module, a public timing module and a frequency adjustment module; The common timing module is connected to the communication system timing module and the frequency adjustment control module respectively; The common timing module is used to generate a synchronization source signal when the first communication system in the dual communication system loses the external synchronization source signal, and trigger the latch count value through the synchronization source signal, wherein the synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal; The communication system timing module is used to determine the frequency deviation of the first communication system according to the count value; The frequency adjustment module is used to adjust the frequency deviation to a target value to achieve time synchronization between the first communication system and the second communication system; Among them, the common timing module is specifically used for: when the first communication system in the dual communication system loses the external synchronization source signal, generating a first synchronization source signal according to the clock of the second communication system through a first common timer corresponding to the first communication system, so as to trigger the communication system timing module to latch the count value of the first communication system through the first synchronization source signal.
2. The system according to claim 1, It is characterized in that The public timing module includes a first public timer corresponding to the first communication system and a second public timer corresponding to the second communication system, and the synchronization source signal includes a first synchronization source signal and a second synchronization source signal; The first common timer is used to generate the first synchronization source signal according to the clock of the second communication system; The second common timer is used to generate the second synchronization source signal according to the clock of the first communication system.
3. The system according to claim 2, It is characterized in that The first common timer is further used to synchronize the frequency accuracy of the first communication system to the frequency accuracy of the second communication system by acquiring a clock from the second communication system; The second common timer is further used to synchronize the frequency accuracy of the second communication system with the frequency accuracy of the first communication system by acquiring a clock from the first communication system.
4. The system according to claim 2, It is characterized in that The timing period of the first common timer is a first preset value, and the phase of the first common timer is adjusted according to the external synchronization source signal; The timing period of the second common timer is a second preset value, and the phase of the second common timer is adjusted according to the external synchronization source signal.
5. The system according to claim 2, It is characterized in that When the dual communication system does not lose the external synchronization source signal, the phase of the first common timer is synchronized to the external synchronization source signal of the first communication system; When the dual communication system does not lose the external synchronization source signal, the phase of the second common timer is synchronized to the external synchronization source signal of the second communication system.
6. The system according to claim 1, It is characterized in that The communication system timing module includes a first communication system timer and a second communication system timer, and the count value includes a first count value triggered by a first synchronization source signal and a second count value triggered by a second synchronization source signal; The first communication system timer is used to determine a first time offset of the first communication system according to the first count value, and determine a frequency offset corresponding to the first communication system according to the first time offset; The second communication system timer is used to determine a second time offset of the second communication system according to the second count value, and determine a frequency offset corresponding to the second communication system according to the second time offset.
7. The system according to claim 6, It is characterized in that The first communication system timer is further used to receive the external synchronization source signal, and trigger latching of the third count value according to the external synchronization source signal; The second communication system timer is further used to receive the external synchronization source signal, and trigger latching of a fourth count value according to the external synchronization source signal.
8. The system according to claim 7, It is characterized in that The first communication system timer is further used to determine a third time offset of the first communication system according to the third count value, and determine a frequency offset corresponding to the first communication system according to the third time offset; The second communication system timer is further used to determine a fourth time offset of the second communication system according to the fourth count value, and determine a frequency offset corresponding to the second communication system according to the fourth time offset.
9. A timed synchronous switching method, It is characterized in that Applied to a timing synchronization system, the timing synchronization system includes a communication system timing module, a public timing module and a frequency adjustment module, and the method includes: Generate a synchronization source signal by the common timing module when the first communication system in the dual communication system loses the external synchronization source signal, and trigger a latch count value by the synchronization source signal, wherein the synchronization source signal is determined according to the clock of the second communication system in the dual communication system, and the second communication system is a communication system that has not lost the external synchronization source signal; Determining the frequency deviation of the first communication system according to the count value by the communication system timing module; The frequency deviation is adjusted to a target value by the frequency adjustment control module to achieve time synchronization between the first communication system and the second communication system; Wherein, the generating of a synchronization source signal when the first communication system in the dual communication system loses an external synchronization source signal through the common timing module, and triggering a latch count value through the synchronization source signal, comprises: When the first communication system in the dual communication system loses the external synchronization source signal through the common timing module, the first common timer corresponding to the first communication system generates a first synchronization source signal according to the clock of the second communication system, so as to trigger the communication system timing module to latch the count value of the first communication system through the first synchronization source signal.
10. The method according to claim 9, It is characterized in that Also includes: When the first communication system does not lose the external synchronization source signal, receiving the external synchronization source signal through the communication system timing module; Triggering the timer corresponding to the first communication system to latch the count value according to the external synchronization source signal by the common timing module; Determining the frequency deviation of the first communication system according to the count value triggered by the external synchronization source signal by the communication system timing module; The frequency deviation is adjusted to a target value by the frequency adjustment control module, so as to achieve time synchronization between the first communication system and the second communication system.
Citation Information
Patent Citations
Synchronization method and terminal
CN108243390A
Data synchronization method and system of asynchronous system and terminal equipment
CN111008239A
