CN115379491A - Time service compensation method, wireless time service terminal, electronic device and storage medium - Google Patents
Time service compensation method, wireless time service terminal, electronic device and storage medium Download PDFInfo
- Publication number
- CN115379491A CN115379491A CN202110553914.0A CN202110553914A CN115379491A CN 115379491 A CN115379491 A CN 115379491A CN 202110553914 A CN202110553914 A CN 202110553914A CN 115379491 A CN115379491 A CN 115379491A
- Authority
- CN
- China
- Prior art keywords
- time
- time service
- service
- deviation
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000003860 storage Methods 0.000 title claims abstract description 10
- 238000012360 testing method Methods 0.000 claims abstract description 133
- 230000005540 biological transmission Effects 0.000 claims description 52
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000009826 distribution Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/0055—Synchronisation arrangements determining timing error of reception due to propagation delay
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Electric Clocks (AREA)
Abstract
The embodiment of the invention relates to the field of communication, and discloses a time service compensation method, a wireless time service terminal, an electronic device and a storage medium, wherein the time service compensation method is applied to the wireless time service terminal, the wireless time service terminal is used for time service by a base station and time service to a service terminal, and the method comprises the following steps: in the testing stage, obtaining testing time service and reference time; wherein, the test time service is received from the base station; calculating the deviation between the test time service and the reference time; if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording the adjustment parameters; in the use stage, obtaining use time service from a base station; and adjusting the use time service time according to the adjustment parameters, and using the adjusted use time service time to service the service terminal. The time service compensation method can reduce the deviation between the time service times obtained by different service terminals.
Description
Technical Field
The embodiment of the application relates to the field of communication, in particular to a time service compensation method, a wireless time service terminal, an electronic device and a storage medium.
Background
With the rapid development of networks and the deep popularization of the application of the 5G industry, the application of the 5G technology on a power system is gradually developed, technical innovation is performed on southern power grids and national power grids nowadays, the application of the 5G time service technology is deployed, and the 5G technology is used for time service for a service system.
However, in practical use of the related time service method, it is necessary to provide a high-precision synchronous time service signal to the service terminal, that is, time service to the service terminal, via the 5G base station and the wireless time service terminal. Factors such as the distance between the wireless time service terminal and the base station, the transmission rate of an air interface, and special requirements of an operator all affect the time service time precision obtained by the service terminal.
Therefore, the related timing method has the following problems: the time service time obtained by different service terminals has large deviation, so that different service terminals in a service system are difficult to cooperate based on the time service time.
Disclosure of Invention
The main purpose of the embodiments of the present application is to provide a time service compensation method, a wireless time service terminal, an electronic device, and a storage medium, which can reduce the deviation between time services acquired by different service terminals, and ensure that service terminals in a service system can cooperate based on the time services.
In order to achieve the above object, an embodiment of the present application provides a time service compensation method, which is applied to a wireless time service terminal, where the wireless time service terminal is time-served by a base station and is time-served to a service terminal, and the method includes: in the testing stage, obtaining testing time service and reference time; wherein, the test time service is received from the base station; calculating the deviation between the test time service and the reference time; if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording adjustment parameters; in the using stage, obtaining the using time service time from the base station; and adjusting the use time service time according to the adjustment parameters, and using the adjusted use time service time to service the service terminal.
In order to achieve the above object, an embodiment of the present application further provides a wireless time service terminal, where the wireless time service terminal is time-served by a base station and provides time to a service terminal, and the wireless time service terminal includes: the device comprises an acquisition module and an adjustment module; in the testing stage, an acquisition module is used for acquiring the testing time service and the reference time; wherein, the test time service is received from the base station; the adjusting module is used for calculating the deviation between the test time service time and the reference time; if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording the adjustment parameters; in the using stage, the obtaining module is used for obtaining the using time service from the base station; and the adjusting module adjusts the use time service time according to the adjusting parameters so as to provide time for the service terminal by the adjusted use time service time.
To achieve the above object, an embodiment of the present application further provides an electronic device, including: at least one processor; a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the time service compensation method.
In order to achieve the above object, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the time service compensation method is implemented.
According to the method, in the test stage, the reference time and the test time service time received from the base station are obtained, the deviation between the reference time and the test time service time is calculated, when the deviation is larger than or equal to the adjustment threshold, the test time service time is adjusted to be smaller than the adjustment threshold, namely, the test time service time is subjected to time service compensation, the deviation between the test time service time and the reference time is reduced, the adjustment parameter is recorded, in the use stage, the use time service time is adjusted according to the recorded adjustment parameter, and the adjustment parameter is used for compensating the deviation between the test time service time and the reference time.
Drawings
FIG. 1 is a flow chart of a time service compensation method according to an embodiment of the present invention;
FIG. 2 is a diagram of a time service network topology according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a wireless time service terminal according to an embodiment of the present invention;
FIG. 4 is a flow chart of a time service compensation method according to another embodiment of the present invention;
FIG. 5 is a flow chart of test time service adjustment provided according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating the use of time service according to the length of a time service line according to an embodiment of the present invention;
FIG. 7 is a flow chart illustrating the adjustment of a time service based on a user input transmission bias according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a wireless time service terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in the examples of the present application, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
The embodiment of the invention relates to a time service compensation method, as shown in fig. 1, comprising the following steps:
102, calculating the deviation between the test time service and the reference time;
103, if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording adjustment parameters;
104, in the use stage, obtaining the use time service from the base station;
and 105, adjusting the use time service according to the adjustment parameters, and using the adjusted use time service to service the service terminal.
In the 5G time service technology, the functions of the wireless time service terminal are to provide a traditional data transmission service, and to provide time service to a connected service terminal by a 5G base station. The time service compensation method of this embodiment is particularly applied to an industrial-grade 5G power CPE used in a power system, as shown in fig. 2, in the power system, a three-remote master station is provided, the three-remote master station is connected to a 5G Core network (5G Core, abbreviated as "5 GC"), the CPE is connected through a 5G network, and a Data Transfer Unit (DTU), that is, a service terminal, is connected through the CPE, so as to implement remote measurement, remote signaling information reporting and remote control capabilities, that is, three remote modes of distribution network automation, and distribution network differential protection.
As shown in fig. 3, a Time service module chip and a Time service Micro Control Unit (MCU) are provided in the wireless Time service terminal, wherein the Time service module chip is mainly responsible for transmitting and receiving wireless data, analyzing SIB9 messages in broadcast messages periodically transmitted by a 5G base station, extracting Coordinated Universal Time Coordinated (UTC) information in the SIB9 messages, converting the information into pulse-per-second signals with a frequency of 1 s/Time, and transmitting the pulse-per-second signals to the Time service MCU. The time service MCU is responsible for further processing the pulse-per-second signal received from the time service module chip, converting the pulse-per-second signal into an IRIG-B time code signal, and outputting time service time to a service terminal such as a DTU through an interface such as RS-485 and the like for time service. In order to normally operate the power system, time service deviation between devices in the power system needs to be ensured to be less than 1 μ s. The existing 5G time service technology can meet the standard in a laboratory, but in actual network transmission, the time service precision is influenced by factors such as the distance between a wireless time service terminal and a base station, the transmission rate of an air interface, special requirements of operators and the like, so that the time service deviation in an electric power system is larger than a deviation threshold value, namely the existing 5G time service cannot meet the required time service precision requirement, and the time service time obtained by different service terminals has larger deviation, so that different service terminals in the service system are difficult to cooperate based on the time service time.
In the time service compensation method in this embodiment, a reference time and a test time service time received from a base station are obtained in a test phase, a deviation between the two is calculated, when the deviation is greater than or equal to an adjustment threshold, the test time service time is adjusted so that the deviation is smaller than the adjustment threshold, that is, time service compensation is performed on the test time service time, the deviation between the test time service time and the reference time is reduced, and an adjustment parameter is recorded. In addition, due to the time service compensation method, the adjustment parameters are determined in the testing stage before the wireless time service terminal is really put into use, and when the method is actually used, the deviation of the use time service time received by the service terminal can be smaller only by correspondingly adjusting the use time service time obtained from the base station according to the adjustment parameters without determining the adjustment parameters again, so that the time consumption of the time service compensation method is controlled in the actual use, and the time service efficiency is improved.
The following describes implementation details of the network connection exception handling method of this embodiment in detail, and the following is only provided for facilitating understanding of the implementation details and is not necessary for implementing this embodiment.
In this embodiment, steps 101 to 103 are steps executed by the wireless time service terminal in an installation test stage to implement the time service compensation method, and steps 104 to 105 are steps executed by the wireless time service terminal in an actual use stage to implement the time service compensation method.
In step 101, the wireless time service terminal receives the broadcast message periodically transmitted by the 5G base station, and analyzes the time service information from the SIB9 message, thereby obtaining the test time service. The wireless time service terminal is connected with an external reference time device, and acquires reference time from the reference time device.
In one example, the wireless time service terminal may further obtain a first test time service time and a first reference time several times, calculate an average value of the first test time service time to obtain a test time service time, and calculate an average value of the first reference time to obtain a reference time.
In the embodiment, the first test time service and the first reference time are obtained for multiple times, the average value of the first test time service is used as the test time service, and the average value of the first reference time is used as the reference time, so that the influence of unexpected factors on the adjustment parameters in the time service process can be avoided, and the accuracy of time service compensation is improved.
In step 102, the wireless time service terminal calculates the absolute value of the difference between the test time service time and the reference time to obtain the deviation between the test time service time and the reference time.
In step 103, the wireless time service terminal determines whether the deviation is smaller than the adjustment threshold, if the deviation is greater than or equal to the adjustment threshold, the wireless time service terminal adjusts the received test time service time, adjusts the test time service time until the deviation is smaller than the adjustment threshold, and records the adjustment parameters. The adjustment threshold is a preset deviation threshold, and may be, for example, a deviation threshold of 1 μ s allowed to exist in the power system.
In one example, if the deviation is less than the adjustment threshold, as shown in fig. 4, it is described that the difference between the test time service received by the wireless time service terminal and the reference time is sufficiently small, that is, the time service precision between the base station and the wireless time service terminal is sufficiently high, and the wireless time service terminal does not need to perform time service compensation, the wireless time service terminal does not adjust the test time service, does not record the adjustment parameter, or records the adjustment parameter as 0. In the using stage, the wireless time service terminal sends the obtained using time service terminal to the service terminal.
Specifically, as shown in fig. 5, the wireless time service terminal adjusts the test time service by the following adjustment modes: the wireless time service terminal firstly judges whether the deviation beta is smaller than the initial adjustment step length B 0 If the deviation beta is less than the initial adjustment step length B 0 If so, the wireless time service terminal adjusts the step length B in a micro-adjustment manner 1 Adjusting the test time service until the deviation beta is less than the adjustment threshold, wherein the initial adjustment step length B 0 Greater than the fine adjustment step length B 1 If the deviation beta is greater than or equal to the initial adjustment step length B 0 If so, the wireless time service terminal adjusts the step length B 0 After the test time is adjusted, the step length B is adjusted by a micro-adjustment 1 And adjusting the test time service until the deviation is smaller than the adjustment threshold. Wherein the step length B is initially adjusted 0 The time adjustment step length and the micro adjustment step length B of a time service module chip in the wireless time service terminal 1 The time control step length of a time control unit MCU in a wireless time service terminal is adopted, a time service module chip is used for extracting test time service time or use time service time from a broadcast message sent by a base station, the test time service time or use time service time is converted into a pulse signal and sent to the time service MCU, the time service MCU is used for converting the pulse signal into a time service signal and sending the time service signal to the service terminal, and the time service module chip converts the test time service time or use time service time into the pulse signal and then primarily adjusts the step length B of the test time service time or use time service time 0 Adjusting, the time service MCU converts the pulse signal into time service signal, and adjusts the test time service time or the time service time to fine adjust the step length B 1 And (6) adjusting. Wherein the step length B is initially adjusted 0 And fine adjustment step length B 1 The time service terminal can be tested and obtained by the wireless time service terminal, and can also be input by a user through a user interface provided by the wireless time service terminal. In general, the step length B is initially adjusted 0 In milliseconds, e.g. 10ms, 1ms, fine adjustment step B 1 In nanoseconds, e.g., 1000ns, 10ns, 1ns.
In one example, when the test time received by the wireless time service terminal is T and the reference time measured by the reference time device is T0, the deviation β = | T-T0|, for example, 3,001,250ns, based on the result that the time difference is T = | T-T0|, and the reference time is T0When the time length of 3,001,250ns is greater than the adjustment threshold value for 1 mus and greater than the initial adjustment step length for 1ms, the time service module chip adjusts the test time service with the initial adjustment step length for 1ms, and the deviation beta of the test time service after the time service module chip is adjusted 1 =3,001,250-1,000,000 x 3=1,250ns. Then the time service MCU makes the adjustment of the test time service with a fine adjustment step length of 1000ns, and the deviation beta of the test time service after the time service MCU adjustment 2 =1, 250-1,000 =250ns, less than the adjustment threshold value 1 μ s.
In the embodiment, the testing time service is adjusted by the time service MCU and the time service module chip in the wireless time service terminal, a time service adjusting part does not need to be additionally arranged in the wireless time service terminal, the time service deviation from the base station to the wireless time service terminal is compensated, and the manufacturing cost of the wireless time service terminal is saved.
In another example, the wireless time service terminal may first obtain an initial adjustment step length of the time service module chip and a fine adjustment step length of the time service MCU, and calculate and record an adjustment parameter for adjusting the deviation to a minimum value using the initial adjustment step length and the fine adjustment step length.
In step 104, the wireless time service terminal acquires the time service from the 5G base station, and the wireless time service terminal analyzes the time service information from the SIB9 message by receiving the broadcast message periodically transmitted by the 5G base station, thereby acquiring the time service.
In step 105, the wireless time service terminal adjusts the use time service time according to the adjustment parameter, and provides time to the service terminal according to the adjusted use time service time.
In one example, after the deviation between the test time service time and the reference time is calculated in the test stage, the wireless time service terminal further sends the test time service time to the service terminal, and obtains the transmission deviation between the service terminal and the wireless time service terminal. In the use stage, before time service is carried out on the service terminal, the wireless time service terminal also adjusts the use time service according to the transmission deviation.
In this embodiment, in the test phase, after determining whether the deviation is smaller than the adjustment threshold, the test time service is sent to the service terminal, that is, the deviation is smaller than the test time service for which the adjustment threshold is not adjusted, or the adjusted test time service is sent to the service terminal, so as to obtain the transmission deviation between the service terminal and the wireless time service terminal, and adjust the use time service according to the transmission deviation, so as to reduce the transmission deviation, further reduce the deviation between the use time service received by the service terminal and the reference time, thereby further reducing the deviation between the use time services received by each service terminal.
In one example, the wireless time service terminal may obtain the transmission deviation by obtaining a difference between a test time service received by the service terminal and a reference time received by the service terminal. The service terminal calculates the difference between the received test time service and the reference time by connecting with an external reference time device, and the difference is the transmission deviation. And after the service terminal calculates the transmission deviation, the service terminal sends the transmission deviation to the wireless time service terminal, so that the wireless time service terminal can obtain the transmission deviation.
In this embodiment, an accurate transmission deviation value is obtained according to a difference between the test time received by the service terminal and the reference time received by the service terminal, so that the wireless time service terminal can compensate the transmission deviation according to the transmission deviation value, and reduce the deviation between the use time received by the service terminal and the reference time, thereby further reducing the deviation between the use time received by each service terminal.
In another example, the wireless time service terminal may calculate the transmission offset according to the length of the time service line between the service terminal and the wireless time service terminal. The length of the time service line between the service terminal and the wireless time service terminal is obtained by sending a test message between the service terminal and the wireless time service terminal.
The length of the time service line can also be directly obtained by the input of a user, and the wireless time service terminal can provide a user interface for the user to input the length value of the time service line in the user interface. Because the time service line is necessary to be equipped when the wireless time service terminal and the service terminal are installed and connected, an installer usually knows the length value of the time service line in advance, and the transmission deviation is calculated by the wireless time service terminal by simply inputting the length value of the time service line, so that the wireless time service terminal can quickly acquire the transmission deviation, and communication resources are saved. When the position relation between the wireless time service terminal and the service terminal is changed and the length value of the time service line is changed, the user can change the length value of the time service line on the user interface, so that the transmission deviation is changed.
Specifically, the time line per meter brings + delta 0 So that the wireless time service terminal transmits the service time T to the service terminal 2 =T 1 -Δ m In which Δ m =Δ 0 * m, m is the length of time service line, unit meter. The wireless time service terminal provides a user interface for a user, and the user inputs the time service line length m in the user interface, for example, the user can perform the following operations: entering an advanced setting interface, entering a time service compensation interface, inputting the length of a time service line, providing the advanced setting interface and the time service compensation interface for a user by the wireless time service terminal as shown in figure 6, acquiring the length of the time service line input by the user from the time service compensation interface, judging whether the acquired length of the time service line is the same as the current/default length, finishing the adjustment if the acquired length of the time service line is the same as the current/default length, and adjusting the time service time if the acquired length of the time service line is different from the current/default length and taking effect after the wireless time service terminal is restarted.
In this embodiment, since the signal is lost during transmission, the transmission deviation is positively correlated with the length of the time line between the service terminal and the wireless time service terminal, so that the wireless time service terminal can calculate the transmission deviation according to the length of the time line between the service terminal and the wireless time service terminal, compensate the transmission deviation, reduce the deviation between the service time received by the service terminal and the reference time, and further reduce the deviation between the service time received by each service terminal.
In one example, the wireless time service terminal adjusts the use time service by the following adjusting method: the wireless time service terminal judges whether the deviation is smaller than an initial adjustment step length or not, if the deviation is smaller than the initial adjustment step length, the wireless time service terminal adjusts the using time service time by the fine adjustment step length until the transmission deviation reaches the minimum value, wherein the initial adjustment step length is larger than the fine adjustment step length, if the deviation is larger than or equal to the initial adjustment step length, the wireless time service terminal adjusts the using time service time by the fine adjustment step length, and then adjusts the using time service time by the fine adjustment step length until the transmission deviation reaches the minimum value, wherein the initial adjustment step length is the time adjustment step length of a time service module chip in the wireless time service terminal, the fine adjustment step length is the time adjustment step length of a time service micro control unit MCU in the wireless time service terminal, the time service module chip is used for extracting the testing time service time or the using time service time from a broadcast message sent by a base station, converting the testing time service time or the using time service time into a pulse signal and sending the pulse signal to the time service MCU, and the time service MCU is used for converting the pulse signal into a time service signal and sending the pulse signal to the service terminal. The time service module chip adjusts the test time service or the use time service by the initial adjustment step length when converting the test time service or the use time service into the pulse signal, and the time service MCU adjusts the test time service or the use time service by the micro adjustment step length when converting the pulse signal into the time service signal.
In the embodiment, the MCU and the time service module chip in the wireless time service terminal are used for adjusting the use time service time, a time service adjusting part does not need to be additionally arranged in the wireless time service terminal, the time service deviation from the wireless time service terminal to the service terminal is compensated, and meanwhile the manufacturing cost of the wireless time service terminal is saved.
In another example, the wireless time service terminal may adjust the usage time service by the following adjustment methods: the wireless time service terminal can provide a user interface for the user to input the transmission deviation measured in the service terminal. The user may do the following in the user interface: entering an advanced setting interface, entering a time service compensation interface, inputting transmission deviation, wherein the wireless time service terminal provides the advanced setting interface and the time service compensation interface for a user as shown in fig. 7, acquires the user input transmission deviation from the time service compensation interface, judges whether the acquired transmission deviation is greater than a transmission deviation adjustment threshold value, ends the adjustment if the acquired transmission deviation is less than the transmission deviation adjustment threshold value, adjusts the using time service time if the acquired transmission deviation is greater than or equal to the adjustment threshold value, and takes effect after the wireless time service terminal is restarted.
The embodiment of the invention also relates to a wireless time service terminal, wherein the wireless time service terminal is used for time service by the base station and time service to the service terminal, as shown in figure 8, the wireless time service terminal comprises: an acquisition module 801 and an adjustment module 802;
an obtaining module 801, configured to obtain a test time service and a reference time in a test phase; wherein, the test time service is received from the base station;
an adjusting module 802, configured to calculate a deviation between the test time service and the reference time in the test stage; if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording the adjustment parameters;
an obtaining module 801, configured to obtain a use time service from a base station in a use phase;
and an adjusting module 802, configured to, in the use stage, adjust the use time service according to the adjustment parameter, so as to provide time to the service terminal with the adjusted use time service.
In one example, in the testing phase, after calculating the deviation between the test time and the reference time, the adjusting module 802 is further configured to send the test time to the service terminal; the obtaining module 801 is further configured to obtain a transmission deviation between the service terminal and the wireless time service terminal; in the use phase, before time service to the service terminal, the adjusting module 802 is further configured to adjust the use time service time according to the transmission deviation.
In an example, the obtaining module 801 is further configured to obtain a first test time service time and a first reference time multiple times; calculating the average value of the first test time service time to obtain the test time service time; and calculating the average value of the first reference time to obtain the reference time.
In an example, in the testing stage, the obtaining module 801 is further configured to calculate a transmission deviation according to a length of a time service line between the service terminal and the wireless time service terminal.
In an example, in the testing phase, the obtaining module 801 is further configured to obtain a transmission offset according to a difference between the test time service received by the service terminal and the reference time received by the service terminal.
In one example, in the testing phase, the adjusting module 802 is further configured to determine whether the deviation is smaller than an initial adjustment step size; if the deviation is smaller than the initial adjustment step length, the use time service time is adjusted by the micro adjustment step length until the transmission deviation reaches the minimum value; wherein the initial adjustment step size is larger than the fine adjustment step size; if the deviation is larger than or equal to the initial adjustment step length, adjusting the using time service time by the initial adjustment step length, and then adjusting the using time service time by the micro adjustment step length until the transmission deviation reaches the minimum value; the initial adjustment step length is the time adjustment step length of a time service module chip in the wireless time service terminal, the micro adjustment step length is the time adjustment step length of a time service micro control unit MCU in the wireless time service terminal, the time service module chip is used for adjusting the test time service or the time service time by the initial adjustment step length when converting the test time service or the time service time into a pulse signal and sending the pulse signal to the time service MCU, and the time service MCU adjusts the test time service or the time service time by the micro adjustment step length when converting the pulse signal into the time service signal and sending the time service signal to the service terminal.
In one example, in the testing phase, the adjusting module 802 is further configured to determine whether the deviation is smaller than an initial adjustment step size; if the deviation is smaller than the initial adjustment step length, adjusting the test time service by the micro adjustment step length until the deviation is smaller than the adjustment threshold value; wherein the initial adjustment step size is larger than the fine adjustment step size; if the deviation is larger than or equal to the initial adjustment step length, adjusting the test time service with the initial adjustment step length, and then adjusting the test time service with the fine adjustment step length until the deviation is smaller than the adjustment threshold; the initial adjustment step length is the time adjustment step length of a time service module chip in the wireless time service terminal, the micro adjustment step length is the time adjustment step length of a time service Micro Control Unit (MCU) in the wireless time service terminal, the time service module chip is used for adjusting the test time service time or the use time service time by the initial adjustment step length when converting the test time service time or the use time service time into a pulse signal to be sent to the time service MCU, and the time service MCU adjusts the test time service time or the use time service time by the micro adjustment step length when converting the pulse signal into the time service signal to be sent to the service terminal.
An embodiment of the present invention further relates to an electronic device, as shown in fig. 9, including: at least one processor 901; a memory 902 communicatively coupled to the at least one processor; the memory 902 stores instructions executable by the at least one processor 901, and the at least one processor 901 executes the timing compensation method.
The memory 902 and the processor 901 are coupled by a bus, which may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 901 and the memory 902. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. Information processed by processor 901 may be transmitted over a wireless medium through an antenna, which may receive the information and transmit the information to processor 901.
The processor 901 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 902 may be used to store information used by the processor in performing operations.
Embodiments of the present invention also relate to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A time service compensation method is applied to a wireless time service terminal, wherein the wireless time service terminal is time-served by a base station and is time-served to a service terminal, and the method comprises the following steps:
in the testing stage, obtaining testing time service and reference time; the test time service is received from the base station;
calculating the deviation between the test time service and the reference time;
if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording adjustment parameters;
in the use stage, obtaining use time service from the base station;
and adjusting the use time service time according to the adjustment parameter, and providing time to the service terminal by the adjusted use time service time.
2. The time service compensation method of claim 1, wherein the adjusting the test time service to the point where the deviation is less than an adjustment threshold comprises:
if the deviation is smaller than the initial adjustment step length, adjusting the test time service by a micro adjustment step length until the deviation is smaller than the adjustment threshold value; wherein the initial adjustment step length is larger than the micro adjustment step length;
if the deviation is larger than or equal to the initial adjustment step length, adjusting the test time service by the initial adjustment step length, and then adjusting the test time service by the fine adjustment step length until the deviation is smaller than the adjustment threshold;
the initial adjustment step length is the time adjustment step length of a time module chip in the wireless time service terminal, the micro adjustment step length is the time adjustment step length of a time service Micro Control Unit (MCU) in the wireless time service terminal, the time service module chip is used for adjusting the test time service time or the use time service time by the initial adjustment step length before converting the test time service time or the use time service time into a pulse signal and sending the pulse signal to the time service MCU, and the time service MCU is used for adjusting the test time service time or the use time service time by the micro adjustment step length before converting the pulse signal into a time service signal and sending the time service signal to the service terminal.
3. The time service compensation method of claim 1, wherein the obtaining of the test time service includes:
acquiring a first test time service and a first reference time for multiple times;
calculating the average value of the first test time service time to obtain the test time service time;
and calculating the average value of the first reference time to obtain the reference time.
4. A time service compensation method as claimed in any one of claims 1 to 3, wherein in the test phase, and after the calculating of the difference between the test time service and the reference time, the method further comprises:
acquiring transmission deviation between the service terminal and the wireless time service terminal;
in the using stage, before the time service to the service terminal, the method further includes:
and adjusting the using time service time according to the transmission deviation.
5. The time service compensation method of claim 4, wherein the obtaining of the transmission offset between the service terminal and the wireless time service terminal comprises:
and calculating the transmission deviation according to the length of the time service line between the service terminal and the wireless time service terminal.
6. The time service compensation method of claim 4, wherein in the test phase and after the calculating of the deviation between the test time service and the reference time, the method further comprises:
sending the test time service to the service terminal;
the acquiring of the transmission deviation between the service terminal and the wireless time service terminal includes:
and obtaining the transmission deviation according to the difference between the test time service received by the service terminal and the reference time received by the service terminal.
7. The time service compensation method of claim 4, wherein the adjusting the service time based on the transmission deviation comprises:
judging whether the deviation is smaller than the initial adjustment step length;
if the deviation is smaller than the initial adjustment step length, adjusting the use time service time by using a micro adjustment step length until the transmission deviation reaches the minimum value; wherein the initial adjustment step length is larger than the fine adjustment step length;
if the deviation is larger than or equal to the initial adjustment step length, adjusting the use time service time by the initial adjustment step length, and then adjusting the use time service time by the fine adjustment step length until the transmission deviation reaches the minimum value.
8. A wireless time service terminal is characterized in that the wireless time service terminal is time-served by a base station and is time-served to a service terminal, and the wireless time service terminal comprises: the device comprises an acquisition module and an adjustment module;
the acquisition module is used for acquiring test time service and reference time in a test stage; the test time service is received from the base station;
the adjusting module is used for calculating the deviation between the test time service and the reference time in a test stage; if the deviation is greater than or equal to the adjustment threshold, adjusting the test time service until the deviation is less than the adjustment threshold, and recording adjustment parameters;
the acquisition module is further configured to acquire a use time service time from the base station in a use phase;
and the adjusting module is also used for adjusting the use time service time according to the adjusting parameters in the use stage so as to time the service terminal with the adjusted use time service time.
9. An electronic device, comprising:
at least one processor;
a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the time service compensation method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the time service compensation method according to any one of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110553914.0A CN115379491A (en) | 2021-05-20 | 2021-05-20 | Time service compensation method, wireless time service terminal, electronic device and storage medium |
PCT/CN2022/085389 WO2022242349A1 (en) | 2021-05-20 | 2022-04-06 | Time signal compensation method, wireless time signal terminal, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110553914.0A CN115379491A (en) | 2021-05-20 | 2021-05-20 | Time service compensation method, wireless time service terminal, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115379491A true CN115379491A (en) | 2022-11-22 |
Family
ID=84059574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110553914.0A Pending CN115379491A (en) | 2021-05-20 | 2021-05-20 | Time service compensation method, wireless time service terminal, electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115379491A (en) |
WO (1) | WO2022242349A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117156038A (en) * | 2023-04-07 | 2023-12-01 | 荣耀终端有限公司 | Time setting method and electronic equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100521137B1 (en) * | 2002-12-24 | 2005-10-12 | 한국전자통신연구원 | A network synchronization system and method referencing a synchronous mobile terminal as an external reference clock |
CN106658696B (en) * | 2015-10-29 | 2019-11-12 | 普天信息技术有限公司 | Wireless time service method and system, terminal |
CN106656386B (en) * | 2015-10-30 | 2019-08-27 | 南京中兴新软件有限责任公司 | A kind of local clock method of adjustment, time service method and device |
CN111061147A (en) * | 2019-11-28 | 2020-04-24 | 南京国电南自电网自动化有限公司 | Wireless network-based regional intelligent substation time service system and method |
CN111294132B (en) * | 2020-02-04 | 2021-04-06 | 北京邮电大学 | Absolute time synchronization method and device and electronic equipment |
CN111538303A (en) * | 2020-05-11 | 2020-08-14 | 北京四方继保工程技术有限公司 | Electric power wireless universal communication terminal extension system |
-
2021
- 2021-05-20 CN CN202110553914.0A patent/CN115379491A/en active Pending
-
2022
- 2022-04-06 WO PCT/CN2022/085389 patent/WO2022242349A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2022242349A1 (en) | 2022-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3622638B1 (en) | Methods and devices for synchronization in communication networks | |
US20100135174A1 (en) | Mobile communication system, base station controller, base station, mobile station, and base station radio parameter control method | |
CN111028495A (en) | Method and device for calibrating electric energy meter based on low-power-consumption Bluetooth communication | |
CN111711948B (en) | Method and system for acquiring high-precision time from 5G base station through air interface | |
CN110943795B (en) | Time synchronization method suitable for bus communication system | |
CN108738127B (en) | Radio remote unit, baseband processing unit, distributed base station and synchronization method thereof | |
EP4195796A1 (en) | Method and apparatus for correcting transmitting channel delay, and storage medium | |
CN115379491A (en) | Time service compensation method, wireless time service terminal, electronic device and storage medium | |
CN109633318B (en) | Method and device for synchronizing electric signal and communication signal, storage medium and processor | |
CN107666360B (en) | Train system time synchronization control method and device | |
CN111884751A (en) | Smart grid time synchronization method and device based on PTP | |
CN101371601B (en) | Method and system for determining the relationship between device parameters of a cellular device and signal parameters | |
CN113810144A (en) | Time synchronization method, time synchronization device, differential protection device, terminal and storage medium | |
US20230209387A1 (en) | Transmission delay compensation method and apparatus, device, and storage medium | |
CN112636858B (en) | Multi-network device cooperation time service method, system, electronic device and medium | |
US20200363832A1 (en) | Device and method for providing a clock signal to an application | |
CN113365284A (en) | Method and device for determining channel detection strategy, AP (access point) equipment and storage medium | |
CN113259040B (en) | Time synchronization method, apparatus, and computer-readable storage medium | |
CN110571783A (en) | Power receiving apparatus, control method thereof, and power receiving system | |
CN109526050B (en) | Information processing method and device and computer readable storage medium | |
WO2023137604A1 (en) | Time delay estimation of passive intermodulation | |
CN114337892B (en) | Multi-equipment clock synchronization method based on low-voltage distribution network | |
CN113141224A (en) | Timing synchronization method, terminal and network side equipment | |
WO2009076806A1 (en) | Level control method and system for repeater | |
CN116156620A (en) | Terminal position measuring method, terminal, base station, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |