Method and related equipment for calibrating timing terminal
By calculating the timing error and performing calibration, the problem of excessive error during transcoding of the timing terminal is solved, and high-precision time information transmission is achieved.
Patent Information
- Application Number
- CN202210822558.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-12
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-07-12
AI Technical Summary
When the existing timer terminal transcodes the absolute time information received from the mobile network into the IRIG-B format, it introduces an error of more than 6 microseconds, which deviates by about 10 times the theoretical accuracy.
By calculating the timing error of the timing terminal to be calibrated, the terminal is directly calibrated in response to the absolute value of the timing error being greater than or equal to the entire frame time; in response to the absolute value of the timing error being less than the entire frame time, at least two timing errors are calculated again, the calibration value is calculated and calibration is performed.
It effectively reduces the error when the timer terminal transmits time information to the time device, improves the accuracy of time information transcoding, and meets subsequent timer requirements.
Smart Images

Figure CN115333661B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mobile network timing, and in particular to a method for calibrating a timing terminal and related equipment. Background Art
[0002] The current mobile network timing technology solves the problem of how to accurately transmit events from the clock source, mobile network base station, mobile network air interface to the mobile terminal, and provides the design of the corresponding base station and terminal timing module software (including signaling process) and hardware. The theoretical accuracy is better than ±260 nanoseconds, the upper limit of accuracy is ±4 nanoseconds, and the lower limit is ±2.34 microseconds. However, in practical applications, the timing terminal is often not the final timing device, but the mobile network communication gateway that is the final timing device provides time information. This requires the terminal to transcode the absolute time information received and solved from the mobile network into the format required by the final timing terminal. In the current solution, after the terminal is transcoded into the IRIG-B format, an error of more than 6 microseconds is introduced, which deviates from the theoretical accuracy by about 10 times. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a method for calibrating a timing terminal and related equipment.
[0004] Based on the above purpose, the present application provides a method for calibrating a timing terminal, comprising:
[0005] Calculate the timing error of the timing terminal to be calibrated;
[0006] In response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated, calibrating the timing terminal to be calibrated according to the timing error;
[0007] In response to the absolute value of the timing error being less than the entire frame duration, the timing errors of at least two timing terminals to be calibrated are calculated again; a calibration value is calculated based on the at least two timing errors; and the timing terminal to be calibrated is calibrated based on the calibration value.
[0008] In a possible implementation, the calculating the timing error of the timing terminal to be calibrated includes:
[0009] Get the base time;
[0010] Obtaining the timing result output by the timing terminal to be calibrated after being timed by the timing base station;
[0011] Subtract the timing result from the reference time to obtain the timing error;
[0012] In response to the timing error being greater than zero, the timing result lags behind the reference time;
[0013] In response to the timing error being less than zero, the timing result is ahead of the reference time.
[0014] In a possible implementation manner, the first calibration step includes:
[0015] Calculate the time that the timing terminal to be calibrated should output based on the reference time;
[0016] Calculating a first output delay of the timing terminal to be calibrated according to the timing error;
[0017] The timing terminal to be calibrated is calibrated according to the expected output time and the first output delay.
[0018] In a possible implementation manner, the step of calculating a calibration value based on at least two of the timing errors includes:
[0019] The calibration value is calculated by the following formula:
[0020]
[0021] Wherein, t0 represents the calibration value, N represents the number of timing errors, abs() represents the absolute value, e represents the timing error, d represents the length of the cable between the terminal to be calibrated and the timing base station, or the distance between the antenna of the terminal to be calibrated and the antenna of the timing base station, c represents the speed of light, and x represents any real number within the range of the maximum timing error and the minimum timing error.
[0022] In a possible implementation manner, the length of the cable between the terminal to be calibrated and the timing base station, or the distance between the antenna of the terminal to be calibrated and the antenna of the timing base station, is less than a preset threshold;
[0023] The method further comprises:
[0024] The preset threshold is calculated by the following formula:
[0025] d′=0.5*T s *c
[0026] Where d′ represents the preset threshold, T s represents the minimum time interval of the mobile communication system to which the terminal to be calibrated is connected, and c represents the speed of light.
[0027] In a possible implementation manner, calibrating the timing terminal to be calibrated according to the calibration value includes:
[0028] Calculating the second output delay of the timing terminal to be calibrated according to the calibration value;
[0029] The timing terminal to be calibrated is calibrated according to the expected output time and the second output delay.
[0030] In a possible implementation manner, in response to the absolute value of the timing error being less than the entire frame duration, recalculating the timing errors of at least two timing terminals to be calibrated includes:
[0031] In response to the absolute value of the timing error being less than the entire frame duration and greater than the adjustment granularity of the terminal to be calibrated, recalculating the first number of timing errors;
[0032] In response to the absolute value of the timing error being less than the adjustment granularity, recalculating a second number of the timing errors;
[0033] The second number is smaller than the first number.
[0034] Based on the same inventive concept, one or more embodiments of this specification further provide a device for calibrating a timing terminal, including:
[0035] A calculation module, configured to calculate the timing error of the timing terminal to be calibrated;
[0036] A first calibration module is configured to calibrate the timing terminal to be calibrated according to the timing error in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated;
[0037] The second calibration module is configured to, in response to the absolute value of the timing error being less than the entire frame duration, recalculate the timing errors of at least two timing terminals to be calibrated; calculate a calibration value based on at least two timing errors; and calibrate the timing terminal to be calibrated based on the calibration value.
[0038] Based on the same inventive concept, one or more embodiments of this specification also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for calibrating a timing terminal as described in any one of the above items is implemented.
[0039] Based on the same inventive concept, one or more embodiments of the present specification further provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute any of the above-mentioned methods for calibrating a timing terminal.
[0040] From the above, it can be seen that the method and related equipment for calibrating the timing terminal provided in the embodiment of the present application calculate the timing error of the timing terminal to be calibrated; in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated, calibrate the timing terminal to be calibrated according to the timing error; in response to the absolute value of the timing error being less than the entire frame duration, calculate the timing errors of at least two timing terminals to be calibrated again; calculate the calibration value according to at least two timing errors; calibrate the timing terminal to be calibrated according to the calibration value. For the timing terminal to be calibrated, by calculating the timing error and the calibration value, calibrating the timing terminal to be calibrated according to the timing error and the calibration value, while accurately measuring the error of the timing terminal to be calibrated, effectively compensating for the timing error, it can minimize the error introduced when the timing terminal transcodes the absolute time information received and solved from the mobile network into the format required by the final timing terminal, so as to meet the subsequent timing requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flow chart of a method for calibrating a timing terminal according to an embodiment of the present application;
[0043] Figure 2 A calibration diagram of a timing terminal to be calibrated when a timing error of 10,000 is taken in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the timing error of the terminal to be calibrated after calibration according to an embodiment of the present application;
[0045] Figure 4 A structural diagram of a calibration device of a timing terminal according to an embodiment of the present application;
[0046] Figure 5 This is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0048] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0049] As described in the background technology section, the related technology achieves the effect of high-precision transmission of time from the clock source, mobile network base station, mobile network air interface to the mobile terminal, and also provides the design of the corresponding base station and terminal timing module software and hardware. However, in actual applications, the timing terminal is often not the final timing device, but the mobile network communication gateway that serves as the final timing device provides time information. However, the existing timing terminal will introduce system errors when transcoding the absolute time information received and settled from the mobile network into the format required by the final timing terminal. This results in errors when the timing terminal transmits the time information to the timing device.
[0050] Based on the above considerations, the embodiment of the present application proposes a calibration method for a timing terminal, which calculates the timing error of the timing terminal to be calibrated; in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated, calibrate the timing terminal to be calibrated according to the timing error; in response to the absolute value of the timing error being less than the entire frame duration, calculate the timing errors of at least two timing terminals to be calibrated again; calculate a calibration value based on at least two timing errors; and calibrate the timing terminal to be calibrated according to the calibration value. This effectively reduces the error of the time information transmitted by the timing terminal received by the time-using device.
[0051] The technical solutions of the embodiments of the present application are described in detail below through specific examples.
[0052] refer to Figure 1 The calibration method of the timing terminal of the embodiment of the present application comprises the following steps:
[0053] Step S101, calculating the timing error of the timing terminal to be calibrated;
[0054] Step S102, in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated, calibrating the timing terminal to be calibrated according to the timing error;
[0055] Step S103, in response to the absolute value of the timing error being less than the entire frame duration, recalculating the timing errors of at least two timing terminals to be calibrated; calculating a calibration value based on at least two timing errors; and calibrating the timing terminal to be calibrated based on the calibration value.
[0056] The timing base station and terminal in the embodiment of the present application comply with the 5G R15 standard, use the 3.5GHz n78 frequency band, 30KHz subcarrier spacing, and 10ms frame length. The SIB9 timing signaling sent by the timing base station indicates the starting position of the frame in which it is located. It should be noted that the above parameters are only used as examples and do not mean that the present application can only be applied to the above embodiments.
[0057] The timing terminal to be calibrated should be connected to the timing base station through the SMA signal line or the short-distance air interface. In this embodiment, the timing terminal to be calibrated is connected to the timing base station through the short-distance air interface. Record the cable length or the distance from the base station antenna to the terminal antenna, recorded as d, d needs to be less than the preset threshold, otherwise additional uncertain errors will be introduced. In this embodiment, d is 3 meters. The test time source uses the OSA5421 rubidium atomic clock, which synchronizes the timing base station, 5G core network and IRIG-B code tester through the PTP protocol.
[0058] The preset threshold is calculated by the following formula:
[0059] d′=0.5*T c *c
[0060] Where d′ represents the preset threshold, T c represents the minimum time interval of the mobile communication system to which the terminal to be calibrated is connected, and c represents the speed of light.
[0061] Furthermore, the terminal to be calibrated is synchronized to the test time source through the timing base station (calibrated), and outputs the IRIG-B code timing result.
[0062] For step S101, the timing error needs to be calculated afterwards. The timing error is obtained by comparing the atomic clock time (reference time) with the timing result of the timing terminal, and subtracting the timing result from the atomic clock time. The timing result can be directly read from the IRIG-B code tester.
[0063] For step S102, after obtaining the timing error, determine the size relationship between the timing error and the whole frame duration. In this embodiment, the timing error obtained after calculation is +10.001 milliseconds, and "+" indicates that the timing result lags behind the reference time. The whole frame duration in this embodiment is 10 milliseconds. Obviously, the timing error at this time is greater than 10 milliseconds, and is basically a multiple of the whole frame duration. It can be determined that the main reason for the error at this time is that the base station has a deviation in the whole frame duration when sending time information, which is related to the scheduling mode of the base station resources and the start and end of the timing signaling mark frame. For example, the start and end of the mark frame of the timing base station and the timing terminal are not synchronized, which results in the final transmission time just having one or more errors in the whole frame duration. At this time, the timing terminal will choose to first calibrate the corresponding number of milliseconds or directly adjust the processing logic of the timing signaling.
[0064] In addition, it should be noted that if the timing error is too large, such as 1 second, you should consider whether there is a problem with the test environment.
[0065] The processing logic of adjusting the signaling is to adjust the start and end of the marker frame of the timing base station and the timing terminal to synchronize them, so as to eliminate the influence of the scheduling mode of the base station resources and the start and end of the timing signaling marker frame on the error. The specific steps of calibrating the corresponding milliseconds are: first, according to the reference time, calculate the output time of the timing terminal to be calibrated, and calculate the output time by the following formula:
[0066] output=t+T
[0067] Among them, output indicates the time to be output, t indicates the base time, and T indicates an integer number of seconds.
[0068] In the present application, since there will be delays in the calculation and transcoding process, it takes a certain amount of time for the timing terminal to output the timing result after receiving the reference time. At this time, even if there is no error, the reference time has passed. Therefore, the timing result should be the reference time plus the result after calculating the necessary delay time for calculation and transcoding, which is the output time of the timing terminal.
[0069] The above necessary delay time is generally an integer number of seconds for ease of calculation and transmission.
[0070] After obtaining the expected output time, the output delay needs to be calculated. The output delay is calculated using the following formula:
[0071] delay=T-t1
[0072] Wherein, delay represents the output delay, T represents an integer second, and t1 represents the entire frame duration or a multiple of the entire frame duration to which the timing error is closest.
[0073] In this embodiment, T is 1 second.
[0074] Then, the timing terminal to be calibrated is calibrated according to the calculated expected output time and output delay, that is, the timing terminal to be calibrated outputs the expected output time after delaying the output delay time.
[0075] For step S103, in this embodiment, after calibrating the corresponding milliseconds or adjusting the timing signaling processing logic, the timing error is measured to be 1 microsecond. It should be noted that because the timing error of the embodiment of the present application is greater than the entire frame duration, it is necessary to calibrate in step S102 first and then in step S103, but it does not mean that all embodiments require the above two steps to calibrate. If the initial timing error is less than the entire frame duration, it can be calibrated directly in step S103.
[0076] Further, the adjustment granularity of the embodiment of the present application is calculated by the following formula:
[0077] d TA =16*64*T c / (2 μ )
[0078] Among them, d TA Indicates the adjustment granularity, T c represents the minimum time interval of the mobile communication system to which the terminal to be calibrated is connected, and μ represents a 5G numerology parameter.
[0079] After calculation, the adjustment granularity in this embodiment is 260 nanoseconds. At this time, the relationship between the timing error and the adjustment granularity is determined. Obviously, the timing error in this embodiment is greater than the adjustment granularity. Therefore, when the timing error of the timing terminal to be calibrated is calculated again, it is necessary to obtain relatively more timing errors. When the timing error is less than the adjustment granularity, the number of timing errors obtained will be less than the amount obtained when the timing error is greater than the adjustment granularity. In this embodiment, 10,000 timing errors are obtained again.
[0080] Further, the calibration value is calculated according to the timing error. In this embodiment, the timing error of the timing terminal to be tested is a positive number, indicating that the timing result lags behind the reference time. The calibration value is calculated by the following formula:
[0081]
[0082] Wherein, t0 represents the calibration value, N represents the number of timing errors, abs() represents the absolute value, e represents the timing error, d represents the length of the cable between the terminal to be calibrated and the timing base station, or the distance between the antenna of the terminal to be calibrated and the antenna of the timing base station, c represents the speed of light, and x represents any real number within the range of the maximum timing error and the minimum timing error.
[0083] In this embodiment, N is equal to ten thousand, wherein the maximum value of the timing error is 1335.4ns and the minimum value is 890.4ns. Figure 2 , shows a calibration schematic diagram of the timing terminal to be calibrated when a timing error of 10,000 is taken in an embodiment of the present application, wherein the size of the timing error corresponding to 10,000 seconds is specifically shown, and the size of the calculated calibration value is also shown.
[0084] In this embodiment, d is equal to 3 meters, c is equal to 3*10 8 m / s, x is 890.4:0.2ns:1335.4ns (which means x is 890.4, 890.6ns, 890.8ns, ..., 1335.2ns, 1335.4ns). The above formula means that the calibration value is the value of x when the latter formula takes the minimum value. Finally, t0 is 965.4ns.
[0085] Further, with respect to step S103, the timing terminal to be calibrated is calibrated according to the calibration value calculated above. Specifically, the second output delay of the timing terminal to be calibrated is calculated according to the calibration value:
[0086] delay′=T-t0
[0087] Wherein, delay′ represents the second output delay, T represents an integer second, and t0 represents a calibration value.
[0088] Further, according to the above-mentioned output time and the second output delay, the timing terminal to be calibrated is calibrated, specifically, the timing terminal to be calibrated outputs the output time after the second output delay. It should be noted that the above-mentioned output time changes with the change of the reference time. In this embodiment, T is 1 second. It should be noted that T in the embodiment of the present application can be any integer second, and can be specifically improved adaptively according to the terminal to be calibrated.
[0089] refer to Figure 3 , is a schematic diagram of the timing error of the terminal to be calibrated after calibration according to an embodiment of the present application. Figure 2 It can be clearly seen that the timing error of the timing terminal to be calibrated has been significantly reduced after calibration, the amplitude of fluctuation has also become smaller, and the range of large fluctuation values has also been narrowed to a certain extent.
[0090] It can be seen from the above embodiments that the calibration method of the timing terminal described in the embodiment of the present application is to calculate the timing error of the timing terminal to be calibrated; in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated, calibrate the timing terminal to be calibrated according to the timing error; in response to the absolute value of the timing error being less than the entire frame duration, calculate the timing errors of at least two timing terminals to be calibrated again; calculate the calibration value according to at least two timing errors; calibrate the timing terminal to be calibrated according to the calibration value. For the timing terminal to be calibrated, by calculating the timing error and the calibration value, the timing terminal to be calibrated is calibrated in a hierarchical manner, and the timing terminal to be calibrated under different timing error conditions is effectively calibrated by different calibration methods. The timing terminal to be calibrated is calibrated by the calibration value, which effectively compensates for the timing error of the timing terminal to be calibrated.
[0091] Furthermore, the error introduced by the timing terminal when transcoding the absolute time information received and calculated from the mobile network into the format required by the final timing terminal can be minimized to meet subsequent timing needs, solving the problem of excessive error introduced by the current timing terminal after transcoding.
[0092] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0093] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0094] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a calibration device for a timing terminal.
[0095] refer to Figure 4 , the calibration device of the timing terminal comprises:
[0096] A calculation module, configured to calculate the timing error of the timing terminal to be calibrated;
[0097] A first calibration module is configured to calibrate the timing terminal to be calibrated according to the timing error in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated;
[0098] The second calibration module is configured to, in response to the absolute value of the timing error being less than the entire frame duration, recalculate the timing errors of at least two timing terminals to be calibrated; calculate a calibration value based on at least two timing errors; and calibrate the timing terminal to be calibrated based on the calibration value.
[0099] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0100] The device of the above embodiment is used to implement the calibration method of the corresponding timing terminal in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0101] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the calibration method of the timing terminal described in any of the above embodiments is implemented.
[0102] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0103] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0104] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0105] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0106] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0107] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0108] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0109] The electronic device of the above embodiment is used to implement the calibration method of the corresponding timing terminal in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0110] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the calibration method of the timing terminal as described in any of the above embodiments.
[0111] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0112] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the calibration method of the timing terminal as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0113] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0114] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0115] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0116] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for calibrating a timing terminal, characterized in that: include: Calculate the timing error of the timing terminal to be calibrated; In response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated, calibrating the timing terminal to be calibrated according to the timing error; In response to the absolute value of the timing error being less than the entire frame duration, recalculating the timing errors of at least two timing terminals to be calibrated; and calculating a calibration value based on the at least two timing errors; According to the calibration value, calibrate the timing terminal to be calibrated; The step of calculating a calibration value based on at least two of the timing errors comprises: The calibration value is calculated by the following formula: in, Indicates the calibration value, Indicates the amount of timing error, Indicates the absolute value. Indicates the timing error. Indicates the length of the cable between the timing terminal to be calibrated and the timing base station, or the distance between the antenna of the timing terminal to be calibrated and the antenna of the timing base station. represents the speed of light, Represents any real number within the range of maximum timing error and minimum timing error; The length of the cable between the timing terminal to be calibrated and the timing base station, or the distance between the antenna of the timing terminal to be calibrated and the antenna of the timing base station, is less than a preset threshold; The method further comprises: The preset threshold is calculated by the following formula: in, Indicates the preset threshold value, represents the minimum time interval of the mobile communication system to which the timing terminal to be calibrated is connected, Represents the speed of light.
2. The method according to claim 1, characterized in that The calculating the timing error of the timing terminal to be calibrated includes: Get the base time; Obtaining the timing result output by the timing terminal to be calibrated after being timed by the timing base station; Subtract the timing result from the reference time to obtain the timing error; In response to the timing error being greater than zero, the timing result lags behind the reference time; In response to the timing error being less than zero, the timing result is ahead of the reference time.
3. The method according to claim 2, characterized in that The step of calibrating the timing terminal to be calibrated according to the timing error comprises: Calculate the time that the timing terminal to be calibrated should output based on the reference time; Calculating a first output delay of the timing terminal to be calibrated according to the timing error; The timing terminal to be calibrated is calibrated according to the expected output time and the first output delay.
4. The method according to claim 3, characterized in that The step of calibrating the timing terminal to be calibrated according to the calibration value comprises: Calculating the second output delay of the timing terminal to be calibrated according to the calibration value; The timing terminal to be calibrated is calibrated according to the output time and the second output delay.
5. The method according to claim 1, characterized in that In response to the absolute value of the timing error being less than the entire frame duration, recalculating the timing errors of at least two timing terminals to be calibrated, comprising: In response to the absolute value of the timing error being less than the entire frame duration and greater than the adjustment granularity of the timing terminal to be calibrated, recalculating the first number of timing errors; In response to the absolute value of the timing error being less than the adjustment granularity, recalculating a second number of the timing errors; The second number is smaller than the first number.
6. A device for calibrating a timing terminal, characterized in that: include: A calculation module, configured to calculate the timing error of the timing terminal to be calibrated; A first calibration module is configured to calibrate the timing terminal to be calibrated according to the timing error in response to the absolute value of the timing error being greater than or equal to the entire frame duration of the wireless communication of the timing terminal to be calibrated; A second calibration module is configured to, in response to the absolute value of the timing error being less than the entire frame duration, recalculate the timing errors of at least two timing terminals to be calibrated; calculate a calibration value based on at least two timing errors; and calibrate the timing terminal to be calibrated based on the calibration value; The second calibration module is further configured to: The calibration value is calculated by the following formula: in, Indicates the calibration value, Indicates the amount of timing error, Indicates the absolute value. Indicates the timing error. Indicates the length of the cable between the timing terminal to be calibrated and the timing base station, or the distance between the antenna of the timing terminal to be calibrated and the antenna of the timing base station. represents the speed of light, represents any real number within the range of the maximum timing error and the minimum timing error; the length of the cable between the timing terminal to be calibrated and the timing base station, or the distance between the antenna of the timing terminal to be calibrated and the antenna of the timing base station, is less than a preset threshold; The device further comprises: The preset threshold is calculated by the following formula: in, Indicates the preset threshold value, represents the minimum time interval of the mobile communication system to which the timing terminal to be calibrated is connected, Represents the speed of light.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 5.