CN-122028162-A - Clock calibration method and device
Abstract
The application discloses a clock calibration method and a clock calibration device, which can be used for respectively creating a first clock calibration task and a second clock calibration task, distributing the first clock calibration task to a target core in a multi-core processor of base station equipment, executing the first clock calibration task, responding to a clock calibration request initiated by cellular service of the base station equipment, switching the first clock calibration task to the second clock calibration task, and executing the second clock calibration task. The clock accuracy of the base station equipment can be kept under the condition that the base station equipment does not operate any cellular service, the processor core is not preempted to ensure the stability of the communication system, and at least one periodic clock calibration task is operated on the base station equipment, so that the clock accuracy of the base station equipment is improved, the upper layer service and the clock calibration are decoupled, and the stability and the reliability of the system are ensured.
Inventors
- HAN HONGSHUAI
- ZHANG YI
- YI ZHIHUA
- MA LI
Assignees
- 北京长焜科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260303
Claims (10)
- 1. A clock calibration method applied to a base station apparatus in a mobile communication system, comprising: Respectively creating a first clock calibration task and a second clock calibration task; The first clock calibration task is distributed to a target core in a multi-core processor of the base station equipment and is executed, wherein the first clock calibration task is used for calibrating a local clock of the base station equipment in a first time period; switching the first clock calibration task to the second clock calibration task in response to a clock calibration request initiated by cellular traffic of the base station device; and executing the second clock calibration task, wherein the second clock calibration task is to calibrate the local clock of the base station equipment in a second time period.
- 2. The method of claim 1, wherein the performing the first clock calibration task comprises: Acquiring clock synchronization signals from peripheral macro stations in the first time period through a sniffer channel of the base station equipment; and based on the clock synchronization signal, performing a calibration operation on a local clock of the base station equipment.
- 3. The method of claim 1, wherein the performing the second clock calibration task comprises: acquiring clock synchronization signals from peripheral macro stations in the second time period through a sniffer channel of the base station equipment, wherein the second time period meets the service time sequence of the base station equipment; and based on the clock synchronization signal, performing a calibration operation on a local clock of the base station equipment.
- 4. A method according to claim 2 or 3, wherein said performing a calibration operation on a local clock of the base station device based on the clock synchronization signal comprises: extracting a reference clock from the clock synchronization signal; comparing the reference clock with a local clock of the base station equipment to obtain a clock deviation value; And when the clock deviation value is smaller than a clock threshold value, executing a clock calibration instruction to synchronize the local clock to a reference clock.
- 5. A method as claimed in claim 2 or 3, wherein said obtaining a clock synchronisation signal from a peripheral macro station comprises: Scanning synchronous signal block signals of peripheral macro stations based on the frequency band supported by the base station equipment; screening effective synchronous signal block signals meeting signal quality conditions from a plurality of synchronous signal block signals, wherein the signal quality conditions are that the reference signal receiving quality of the synchronous signal block signals is larger than a quality threshold; and taking the effective synchronous signal block signal as a clock synchronous signal.
- 6. The method of claim 1, wherein the switching the first clock calibration task to the second clock calibration task comprises: terminating the first clock calibration task to stop data acquisition of the sniffer channel; loading configuration parameters of the second clock calibration task; And configuring the sniffer channel based on the configuration parameters.
- 7. The method of claim 1, wherein the assigning the first clock calibration task to a target core in a multi-core processor of the base station device comprises: selecting a core with the load rate meeting a load threshold condition from a plurality of cores of a multi-core processor of the base station equipment as a target core; and executing configuration core binding parameters on the first clock calibration task, and establishing a binding relation with the target core through a binding interface.
- 8. The method of claim 1, wherein prior to the creating the first clock calibration task and the second clock calibration task, the method further comprises: Starting the initialization of the base station equipment; After the initialization of the base station equipment is completed, the local clock of the base station equipment is aligned and locked with the reference clock by starting an initial clock synchronization task.
- 9. The method of claim 1, wherein the cellular traffic of the base station device comprises at least one of establishment of a cell, operation of a cell, and failure recovery of a cell.
- 10. A clock calibration apparatus for use in a base station device in a mobile communication system, the apparatus comprising: the system comprises a creation module, a control module and a control module, wherein the creation module is used for creating a first clock calibration task and a second clock calibration task, and the first clock calibration task and the second clock calibration task are used for executing clock calibration in different clock cycles; The binding module is used for distributing the first clock calibration task to a target core in a multi-core processor of the base station equipment and executing the first clock calibration task, wherein the first clock calibration task is used for calibrating a local clock of the base station equipment in a first time period; A switching module, configured to switch the first clock calibration task to the second clock calibration task in response to a clock calibration request initiated by a cellular service of the base station device; and the execution module is used for executing the second clock calibration task, and the second clock calibration task is to calibrate the local clock of the base station equipment in a second time period.
Description
Clock calibration method and device Technical Field The present application relates to the field of communications technologies, and in particular, to a clock calibration method and apparatus. Background In a mobile communication system, in a scenario where a satellite signal is weak, a clock reference cannot be provided, and ground synchronization fails, in order to keep clock signals of base station apparatuses synchronized, a periodic clock reference calibration task needs to be performed. In the prior art, after the initial clock synchronization of the base station is completed, a periodic clock calibration task can be performed based on a request of an upper layer service of the communication system. For example, when a cell is established, a periodic clock calibration task is initiated to calibrate the local clock of the base station device, but when a cell is deleted or not established, the periodic clock calibration task cannot be initiated. The method can cause that the offset generated by the time-lapse base station clock can not be calibrated in real time when the cell is not established, thereby not only reducing the stability of the communication system and affecting the normal network communication service, but also increasing the clock synchronization time and reducing the reliability of the communication system because the clock calibration is performed by depending on the upper layer service. Disclosure of Invention The application mainly aims to provide a clock calibration method and device, which aim to solve the problem that base station equipment cannot calibrate clock offset and clock synchronization and upper layer service coupling caused by time lapse in a mobile communication system. In order to achieve the above object, the present application provides a clock calibration method applied to a base station device in a mobile communication system, including creating a first clock calibration task and a second clock calibration task, respectively; The first clock calibration task is distributed to a target core in a multi-core processor of the base station equipment and is executed, wherein the first clock calibration task is used for calibrating a local clock of the base station equipment in a first time period; switching the first clock calibration task to the second clock calibration task in response to a clock calibration request initiated by cellular traffic of the base station device; and executing the second clock calibration task, wherein the second clock calibration task is to calibrate the local clock of the base station equipment in a second time period. In one possible implementation, performing the first clock calibration task includes: acquiring clock synchronization signals from peripheral macro stations in the first time period through a sniffer channel of the base station equipment; and based on the clock synchronization signal, performing a calibration operation on a local clock of the base station equipment. In one possible implementation, performing the second clock calibration task includes: And acquiring clock synchronization signals from peripheral macro stations in the second time period through a sniffer channel of the base station equipment, wherein the second time period meets the service time sequence of the base station equipment, and executing calibration operation on the local clock of the base station equipment based on the clock synchronization signals. In one possible implementation, performing a calibration operation on the local clock of the base station device based on the clock synchronization signal includes extracting a reference clock from the clock synchronization signal, comparing the reference clock with the local clock of the base station device to obtain a clock offset value, and performing a clock calibration instruction to synchronize the local clock to the reference clock when the clock offset value is less than a clock threshold. In one possible implementation manner, the clock synchronization signal acquisition from the peripheral macro station comprises the steps of scanning the synchronization signal block signals of the peripheral macro station based on the frequency band supported by the base station equipment, screening effective synchronization signal block signals meeting the signal quality condition from a plurality of synchronization signal block signals, wherein the signal quality condition is that the reference signal receiving quality of the synchronization signal block signals is larger than a quality threshold, and taking the effective synchronization signal block signals as clock synchronization signals. In one possible implementation, the switching the first clock calibration task to the second clock calibration task includes terminating the first clock calibration task to stop data collection of a sniffer channel, loading configuration parameters of the second clock calibration task, and configuring the sniffer channel