Telephone time synchronization method, device, medium and product
By implementing parallel processing of delay measurement and telephone time synchronization at the user end, the cumbersome problem of traditional telephone time synchronization is solved, and efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410890908.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The traditional telephone time synchronization process is cumbersome, and delay measurement and telephone time synchronization are performed serially, resulting in low efficiency.
Parallel processing of delay measurement and telephone timing is implemented on the user side. By sending a delay measurement signal and recording the sending time, the telephone timing signal is obtained and decoded, the one-way delay value is calculated, and the decoded 1PPS signal is calibrated to obtain the timing 1PPS signal.
It simplifies the telephone time synchronization process, improves the time synchronization efficiency, increases the amount of delay measurement data, reduces the error caused by the asymmetry of the delay channel, and improves the timing accuracy.
Smart Images

Figure CN118818948B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuits and signal processing, and in particular to a telephone time synchronization method, device, medium and product. Background Art
[0002] Telephone time synchronization is a wired time transmission method with advantages such as simple receiving equipment and convenient time application. Telephone networks are widespread throughout the country, allowing for time synchronization, giving it a wide range of applications.
[0003] Compared with network timing signals, telephone timing signals have a relatively fixed transmission route and relatively stable time delay. Compared with radio timing signals, telephone timing signals are less affected by external interference and are more reliable during transmission. Especially in a shielded or enclosed environment where radio timing signals cannot be obtained, telephone timing is a better choice.
[0004] Traditional phone time synchronization involves at least two steps: delay measurement: the server sends a delay measurement signal, which the user receives and then sends back. The server then calculates the one-way delay. The other is phone time synchronization: the server sends the one-way delay value and the phone time synchronization signal to the user, who then synchronizes the phone time based on the one-way delay value and the phone time synchronization signal. Traditionally, these two steps are performed serially, making phone time synchronization cumbersome and inefficient. Summary of the Invention
[0005] The purpose of the present invention is to provide a telephone time synchronization method, device, medium and product, which can realize parallel processing of delay measurement and telephone time synchronization, simplify the telephone time synchronization process and improve the telephone time synchronization efficiency.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] In a first aspect, the present invention provides a telephone time synchronization method, comprising:
[0008] Sending a delay measurement signal to the server and recording the sending time of the delay measurement signal;
[0009] Obtaining a telephone timing signal and a corresponding reception time, and decoding the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal, wherein the telephone timing signal is a signal obtained by the server end encoding a reference time code signal and a reference 1PPS signal after the server end receives the delay measurement signal;
[0010] Calculating a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal;
[0011] The decoded 1PPS signal is calibrated according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal.
[0012] Optionally, after executing the step of “calibrating the 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal”, the method further includes:
[0013] Using an external 1PPS signal as a reference signal, calculating a difference between the external 1PPS signal and the synchronization 1PPS signal to obtain a first measurement value, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device;
[0014] The timing 1PPS signal is corrected according to the first measurement value.
[0015] Optionally, after executing the step of “calibrating the 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal”, the method further includes:
[0016] Using the time-synchronized 1PPS signal as a reference signal, calculating a difference between the time-synchronized 1PPS signal and an external 1PPS signal to obtain a second measurement value, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device;
[0017] The external 1PPS signal is calibrated according to the second measurement value.
[0018] Optionally, calculating the one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal specifically includes:
[0019] Calculating an average value, wherein the average value is a value obtained by averaging a preset number of first round-trip delays, where the first round-trip delay is the difference between the time when the telephone timing signal is received and the time when the corresponding first delay measurement signal is sent, and the first delay measurement signal is a delay measurement signal sent at a first delay measurement frequency;
[0020] Taking an integer multiple of 10 for twice the average value to obtain a second delay measurement frequency;
[0021] For the delay measurement signal sending process after the preset number of times, sending a second delay measurement signal to the server end at the second delay measurement frequency;
[0022] Calculating a second round-trip delay based on a sending time of the second delay measurement signal and a receiving time of a corresponding telephone timing signal;
[0023] Performing sliding average filtering on all first round-trip delays and all second round-trip delays to obtain a processed round-trip delay;
[0024] Half of the round-trip delay after processing is used as the one-way delay value.
[0025] Optionally, the delay measurement signal is in a binary digital coding format.
[0026] In a second aspect, the present invention provides a telephone time synchronization method, comprising:
[0027] The user end sends a delay measurement signal to the server end, and records the sending time of the delay measurement signal;
[0028] After receiving the delay measurement signal, the server encodes the reference time code signal and the reference 1PPS signal to obtain a telephone timing signal, and sends the telephone timing signal to the user terminal;
[0029] The user terminal obtains the telephone timing signal and the corresponding receiving time, and decodes the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal;
[0030] The user terminal calculates a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal;
[0031] The user end calibrates the decoded 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal.
[0032] In a third aspect, the present invention provides a telephone time synchronization device, comprising: a user terminal and a server terminal, wherein the user terminal and the server terminal are communicatively connected via a telephone network;
[0033] The user end is used to send a delay measurement signal to the server end and record the sending time of the delay measurement signal;
[0034] The server is configured to, after receiving the delay measurement signal, encode the reference time code signal and the reference 1PPS signal to obtain a telephone timing signal, and send the telephone timing signal to the user terminal;
[0035] The user terminal is also used to obtain the telephone timing signal and the corresponding receiving time, and decode the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal; calculate the one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal; calibrate the decoded 1PPS signal according to the one-way delay value and the receiving time of the telephone timing signal to obtain a timing 1PPS signal.
[0036] Optionally, the user terminal is further configured to correct the timing 1PPS signal according to an external 1PPS signal, or calibrate the external 1PPS signal according to the timing 1PPS signal, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a telephone time synchronization method described in any one of the above items in the first aspect.
[0038] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the steps of a telephone time synchronization method described in any one of the above items in the first aspect are implemented.
[0039] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0040] The present invention provides a telephone time synchronization method, device, medium and product. The telephone time synchronization method comprises: sending a delay measurement signal to a server end and recording the sending time of the delay measurement signal; obtaining the telephone time synchronization signal and the corresponding receiving time, and decoding the telephone time synchronization signal to obtain a decoded time code signal and a decoded 1PPS signal; calculating a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone time synchronization signal; calibrating the decoded 1PPS signal according to the one-way delay value and the receiving time of the telephone time synchronization signal to obtain a time synchronization 1PPS signal. Parallel processing of delay measurement and telephone time synchronization is achieved on the user end, simplifying the telephone time synchronization process and improving telephone time synchronization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A schematic diagram illustrating the principle of a telephone time synchronization method provided in Example 2 of the present invention;
[0043] Figure 2 Schematic diagram of the process of calculating the one-way delay value in Example 2 of the present invention;
[0044] Figure 3 Schematic diagram of the calculation principle of corresponding time in the delay measurement and telephone time synchronization process in Example 2 of the present invention;
[0045] Figure 4 A schematic diagram showing the principle of a telephone time synchronization device provided in Example 3 of the present invention;
[0046] Figure 5 Schematic diagram of the principle of the timing process of the telephone timing device in Example 3 of the present invention;
[0047] Figure 6 Schematic diagram of the circuit structure of the telephone time synchronization device in Example 3 of the present invention;
[0048] Figure 7 This is a diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0050] The purpose of the present invention is to provide a telephone time synchronization method, device, medium and product, which can realize parallel processing of delay measurement and telephone time synchronization, simplify the telephone time synchronization process and improve the telephone time synchronization efficiency.
[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] Example 1
[0053] A telephone time synchronization method in this embodiment includes:
[0054] S1: Send a delay measurement signal to the server and record the sending time of the delay measurement signal.
[0055] S2: Obtain a telephone timing signal and a corresponding reception time, and decode the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal, wherein the telephone timing signal is a signal obtained by the server end after the server end encodes the reference time code signal and the reference 1PPS signal after receiving the delay measurement signal.
[0056] S3: Calculate a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal.
[0057] S4: Calibrate the decoded 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal.
[0058] This embodiment improves the traditional telephone synchronization process in which the server first performs delay measurement and then the client performs telephone synchronization. The two serial processing processes of delay measurement and telephone synchronization are improved to parallel processing of delay measurement and telephone synchronization only on the user side, which simplifies the telephone synchronization process and improves synchronization efficiency.
[0059] Example 2
[0060] like Figure 1 As shown, this embodiment provides a telephone time synchronization method based on the interaction process between the user end (i.e., the receiving end) and the server end (i.e., the sending end), including:
[0061] 1) The user terminal sends a delay measurement signal to the server terminal, and records the sending time of the delay measurement signal.
[0062] 2) After receiving the delay measurement signal, the server encodes the reference time code signal and the reference 1PPS signal to obtain a telephone timing signal, and sends the telephone timing signal to the user terminal.
[0063] 3) The user terminal obtains the telephone timing signal and the corresponding receiving time, decodes the telephone timing signal, obtains a decoded time code signal and a decoded 1PPS signal, and directly outputs the decoded time code signal.
[0064] 4) The user terminal calculates a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal.
[0065] 5) The user terminal calibrates the decoded 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal, obtains the timing 1PPS signal and outputs it.
[0066] Because traditional telephone timing methods generally use a delay measurement frequency of 1 time per second, the delay measurement data is very limited within the telephone timing time, which is usually a few minutes. It is impossible to truly reflect the current delay asymmetry through large amounts of data, which affects the accuracy of telephone timing. The accuracy of telephone timing can usually reach tens or even dozens of milliseconds, which hinders the application of telephone timing.
[0067] In this regard, this embodiment adaptively adjusts the delay measurement frequency based on the difference between the time when the delay measurement signal is sent and the time when the phone synchronization signal is received, adjusting the delay measurement frequency from 1 second / time to milliseconds / time, greatly increasing the delay measurement data. The increase in data volume is more conducive to reflecting the asymmetry of the delay channel. Based on this, Figure 2 As shown, the calculation process of the one-way delay value in this embodiment includes:
[0068] 4-1) Calculating an average value, wherein the average value is the value obtained by averaging a preset number of first round-trip delays, the first round-trip delay is the difference between the time when the telephone synchronization signal is received and the time when the corresponding first delay measurement signal is sent, and the first delay measurement signal is a delay measurement signal sent at a first delay measurement frequency.
[0069] In this embodiment, the delay measurement signal is first sent at a frequency of 1 time / second for a total of 5 times. After receiving the corresponding telephone time synchronization signal, the round-trip delay values of these 5 times are averaged as the average round-trip delay value.
[0070] 4-2) Taking an integer multiple of 10 for twice the average value, to obtain a second delay measurement frequency.
[0071] For example, if the average round-trip delay value is 41-44 milliseconds, the second delay measurement frequency is 1 time / 90 milliseconds.
[0072] 4-3) For the delay measurement signal sending process after the preset number of times, send a second delay measurement signal to the server end at the second delay measurement frequency.
[0073] 4-4) Calculate the second round-trip delay based on the sending time of the second delay measurement signal and the receiving time of the corresponding telephone timing signal.
[0074] 4-5) Perform sliding average filtering on all first round-trip delays and all second round-trip delays to obtain processed round-trip delays. The sliding window in this embodiment defaults to 100 and can be adjusted according to actual data in actual application.
[0075] 4-6) Taking half of the round-trip delay after the processing as the one-way delay value.
[0076] In addition, to further reduce the timing error caused by the asymmetry of the telephone channel delay and improve timing accuracy, this embodiment also uses the external 1PPS signal as a reference signal to measure the asymmetry of the telephone channel delay. Therefore, after step 5), the telephone timing method provided by this embodiment further includes:
[0077] 6) Correcting the timing 1PPS signal according to an external 1PPS signal, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device.
[0078] When the external 1PPS connected to the user end (i.e., the receiving end) differs from the reference 1PPS provided by the time-frequency reference unit in the server end (i.e., the sending end) by microseconds (the timing 1PPS signal is synchronized with the reference 1PPS time), the external 1PPS signal is used as the reference signal, and the rising edge of the timing 1PPS is compared with the rising edge of the external 1PPS to obtain the difference between the two, i.e., the measurement value. The measurement value is then used to correct the timing 1PPS so that it is synchronized with the external 1PPS and then with the reference 1PPS. The difference is generally used as the initial offset value into the user end.
[0079] As an optional implementation, after step 5), the telephone time synchronization method provided in this embodiment further includes:
[0080] 7) Calibrate an external 1PPS signal according to the synchronization 1PPS signal, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device.
[0081] When the accuracy of the external 1PPS is lower than that of the timing 1PPS, the timing 1PPS can be used as a reference signal to measure the difference between the timing 1PPS signal and the external 1PPS to obtain a measurement value, and the accuracy of the external 1PPS can be calibrated based on the measurement value.
[0082] like Figure 3 As shown in the figure, part (1) is the process of obtaining the round-trip delay value: Ta and Tb are the frame headers of the delay measurement signal and the telephone synchronization signal respectively. Align the frame headers of Ta and Tb according to Figure 2 The round-trip delay after calculation is calculated during the calculation process.
[0083] Figure 3 Part (2) is the process of obtaining the 1PPS timing: half of the round-trip delay after processing is the one-way delay value, and time Tb is moved forward by the one-way delay value to generate time Tc, and the 1PPS timing is output at time Tc.
[0084] Figure 3 Part (3) is the process of correcting 1PPS. Figure 3 Part (4) is the process of calibrating the external 1PPS.
[0085] As another optional implementation, the delay measurement signal and the telephone time synchronization signal are both in binary digital coding format, such as all 0s or all 1s.
[0086] To avoid delay errors caused by the number of transmitted characters, the delay measurement signal and the telephone timing signal have the same number of bytes and the same format, both of which are 12 bytes.
[0087] Design of the delay measurement signal: Bytes 0 to 3 are the frame header, which are "M", "E", "A", and "S" respectively; bytes 4 to 10 are all 0 by default; Byte 11 is the XOR value of bytes 0 to 10.
[0088] Design of telephone timing signal:
[0089] Bytes 0 to 3 are the frame header, which are "T," "I," "M," and "E," respectively. Ta is the accumulated value since 00:00:00 on January 1, 2000. Byte 4 is the seconds value (31 to 24 bits) at time Ta. Byte 5 is the seconds value (23 to 16 bits) at time Ta. Byte 6 is the seconds value (15 to 8 bits) at time Ta. Byte 7 is the seconds value (7 to 0 bits) at time Ta. Byte 8 is the microsecond value (23 to 16 bits) at time Ta. Byte 9 is the microsecond value (15 to 8 bits) at time Ta. Byte 10 is the microsecond value (7 to 0 bits) at time Ta. Byte 11 is the XOR value of bytes 0 to 10.
[0090] The telephone timing method provided in this embodiment changes the telephone timing and delay measurement processes from serial to parallel, thereby improving timing efficiency. The delay measurement frequency is adaptively adjusted from 1 second / time to milliseconds / time, greatly increasing the delay measurement data. The increase in data volume is more conducive to reflecting the asymmetry of the delay channel. The external 1PPS signal is used as a reference signal to measure the asymmetry of the telephone channel delay, thereby deducting the timing error caused by the asymmetry and improving the timing accuracy. For low-accuracy external 1PPS, the external 1PPS signal can be measured and calibrated using the synchronization 1PPS signal as a reference.
[0091] Example 3
[0092] like Figure 4 As shown, this embodiment provides a telephone time synchronization device, including: a user end and a server end, and the user end and the server end are connected to each other through a telephone network.
[0093] The user end includes a timing signal receiving module, a telephone communication module and a time measurement module. The time receiving module is connected to the time measurement module and the telephone communication module of the user end respectively. The timing signal receiving module includes a time code output unit and a delay measurement unit.
[0094] The server side includes a telephone communication module, a time synchronization signal sending module and a time-frequency reference module. The time-frequency reference module, the time synchronization signal sending module and the telephone communication module of the server side are connected in sequence.
[0095] The user-side delay measurement unit is used to transmit the delay measurement signal to the time synchronization signal sending module in the server side through the user-side telephone communication module, the telephone network and the server-side telephone communication module, and record the sending time of the delay measurement signal.
[0096] The timing signal sending module is used to obtain the reference time code signal and the reference 1PPS signal provided by the time-frequency reference unit after receiving the delay measurement signal, encode them to obtain the telephone timing signal, and immediately send the telephone timing signal back to the user end. The time in the telephone timing signal comes from the time code of the time reference signal, that is, the reference time code signal.
[0097] The timing signal receiving module is used to receive the telephone timing signal and record the reception time of the telephone timing signal. The time code output unit is used to decode the telephone timing signal, obtain the decoded time code signal and directly output it. The delay measurement unit is used to decode the telephone timing signal, obtain the decoded 1PPS signal, calculate the one-way delay value based on the transmission time of the delay measurement signal and the reception time of the telephone timing signal, and calibrate the decoded 1PPS signal based on the one-way delay value and the reception time of the telephone timing signal to obtain the timing 1PPS signal.
[0098] The timing 1PPS is divided into two paths, one is output through the delay measurement unit, and the other is sent to the time measurement module. The time measurement module is used to use the timing 1PPS or the external 1PPS as the reference signal, measure the time difference between the timing 1PPS and the external 1PPS, and output the measurement value. Specifically, the timing 1PPS and the external 1PPS are measured with a 10MHz frequency signal. If the external 1PPS is used as the reference signal, the delay asymmetry can be corrected by re-implanting the measurement value into the delay measurement unit, and a more accurate timing 1PPS signal can be output. However, the external 1PPS signal is required to differ from the reference 1PPS signal of the time-frequency reference module with microsecond accuracy; if the timing 1PPS is used as the reference signal, the external 1PPS can be measured and the accuracy of the external 1PPS signal can be calibrated.
[0099] Reference Figure 5 The telephone timing device provided in this embodiment combines the traditional delay measurement and time code transmission into a round-trip process. The timing process consists of three steps:
[0100] (1) The user dials the number, and the server picks up the phone after detecting the ringing, and a telephone connection is established between the two ends.
[0101] (2) The user end sends a delay measurement signal. The server end determines whether the delay measurement signal is received within 30 seconds. If the delay measurement signal is not received, the server end hangs up.
[0102] (3) After receiving the correct delay measurement signal, the server sends a telephone time synchronization signal with the same format as the delay measurement signal but different content. The user terminal determines whether the delay measurement signal is received within 30 seconds. If not, an alarm is issued and the user redials.
[0103] After the server sends the timing signal, it will hang up. After the user receives the correct telephone timing signal, it will output the time code and the timing 1PPS signal and hang up.
[0104] Reference Figure 6 ,This embodiment also provides a circuit structure of a telephone time synchronization device, which mainly includes a Beidou timing receiver, a constant temperature crystal oscillator, an ARM, an FPGA, a memory, a comparator, a driver and a telephone communication module.
[0105] ARM is connected to FPGA, telephone communication module, memory, telephone communication module and Beidou timing receiver respectively; FPGA is connected to driver, comparator and Beidou timing receiver respectively; constant temperature crystal oscillator is connected to comparator.
[0106] The server side uses ARM and the user side uses FPGA.
[0107] The Beidou timing receiver inputs the 1PPS signal (as a measurement reference signal) to the FPGA, and the Beidou timing receiver inputs the time code signal (as a time reference signal) to the ARM.
[0108] Both ARM and FPGA can introduce external time code and 1PPS signals, enabling them to synchronize with and measure external time sources.
[0109] The Beidou timing receiver uses the T303-3 receiver from Taidou Company.
[0110] The 10MHz constant temperature crystal oscillator uses the JKOC36A crystal oscillator from Jinko Yuantong.
[0111] ARM uses ST's STM32F103ZE chip.
[0112] The FPGA uses the Cyclone series EP3C25E144I7 chip from Altera.
[0113] The memory uses AT24C16B chip.
[0114] The comparator uses the MAX961 chip from MAXIM.
[0115] The driver uses 74HC541 chip.
[0116] The chip used in the telephone communication module is Conexant's CX06833-44.
[0117] In this embodiment, the user end records the times of signal transmission and reception and adaptively increases the delay measurement frequency based on the time difference to maximize the acquisition of round-trip delay data, increasing the measurement of delay asymmetry and improving the accuracy of telephone timing. A sliding average filter is used to obtain the final round-trip delay value, with half of the final round-trip delay value representing the one-way delay value. This enables parallel processing of delay measurement and telephone timing, streamlining the telephone timing process and improving timing efficiency. The user end obtains the one-way time code and one-way delay value through a single round-trip signal transmission. Based on the one-way delay value, the user end outputs a timing-corrected 1PPS signal. The external 1PPS signal is used as a reference signal to calibrate the timing-corrected 1PPS signal. The measured value is then input into the timing signal receiving unit as an initial offset to deduct the timing error caused by network delay asymmetry, significantly improving the accuracy of telephone timing. Using the timing-corrected 1PPS signal as a reference, other externally input 1PPS signals are measured and calibrated, providing time measurement capabilities. This modular design offers high maintainability and scalability.
[0118] Example 4
[0119] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a telephone time synchronization method in embodiment 1.
[0120] Example 5
[0121] A computer program product includes a computer program, which implements the steps of a telephone time synchronization method in embodiment 1 when executed by a processor.
[0122] Example 6
[0123] A computer device, which may be a database, may have an internal structure as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a telephone time synchronization method in Example 1 is implemented.
[0124] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0125] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by guiding the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to these.
[0126] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0127] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only intended to help understand the method and core concept of the present invention. At the same time, those skilled in the art will find that the specific implementation methods and application scopes may vary based on the concept of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims
1. A telephone time synchronization method, characterized in that: The method comprises: Sending a delay measurement signal to the server and recording the sending time of the delay measurement signal; Obtaining a telephone timing signal and a corresponding reception time, and decoding the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal, wherein the telephone timing signal is a signal obtained by the server end encoding a reference time code signal and a reference 1PPS signal after the server end receives the delay measurement signal; Calculating a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal; The decoded 1PPS signal is calibrated according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal.
2. A telephone time synchronization method according to claim 1, characterized in that: After executing the step of "calibrating the decoded 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing-synchronized 1PPS signal", the method further includes: Using an external 1PPS signal as a reference signal, calculating a difference between the external 1PPS signal and the synchronization 1PPS signal to obtain a first measurement value, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device; The timing 1PPS signal is corrected according to the first measurement value.
3. A telephone time synchronization method according to claim 1, characterized in that: After executing the step of "calibrating the decoded 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing-synchronized 1PPS signal", the method further includes: Using the time-synchronized 1PPS signal as a reference signal, calculating a difference between the time-synchronized 1PPS signal and an external 1PPS signal to obtain a second measurement value, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device; The external 1PPS signal is calibrated according to the second measurement value.
4. A telephone time synchronization method according to claim 1, characterized in that: Calculating a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal, specifically comprising: Calculating an average value, wherein the average value is a value obtained by averaging a preset number of first round-trip delays, where the first round-trip delay is the difference between the time when the telephone timing signal is received and the time when the corresponding first delay measurement signal is sent, and the first delay measurement signal is a delay measurement signal sent at a first delay measurement frequency; Taking an integer multiple of 10 for twice the average value to obtain a second delay measurement frequency; For the delay measurement signal sending process after the preset number of times, sending a second delay measurement signal to the server end at the second delay measurement frequency; Calculating a second round-trip delay based on a sending time of the second delay measurement signal and a receiving time of a corresponding telephone timing signal; Performing sliding average filtering on all first round-trip delays and all second round-trip delays to obtain a processed round-trip delay; Half of the round-trip delay after processing is used as the one-way delay value.
5. A telephone time synchronization method according to claim 1, characterized in that: The delay measurement signal is in a binary digital coding format.
6. A telephone time synchronization method, characterized in that: The method comprises: The user end sends a delay measurement signal to the server end, and records the sending time of the delay measurement signal; After receiving the delay measurement signal, the server encodes the reference time code signal and the reference 1PPS signal to obtain a telephone timing signal, and sends the telephone timing signal to the user terminal; The user terminal obtains the telephone timing signal and the corresponding receiving time, and decodes the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal; The user terminal calculates a one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal; The user end calibrates the decoded 1PPS signal according to the one-way delay value and the reception time of the telephone timing signal to obtain a timing 1PPS signal.
7. A telephone time synchronization device, characterized in that: The device comprises: a user end and a server end, wherein the user end and the server end are connected via a telephone network; The user end is used to send a delay measurement signal to the server end and record the sending time of the delay measurement signal; The server is configured to, after receiving the delay measurement signal, encode the reference time code signal and the reference 1PPS signal to obtain a telephone timing signal, and send the telephone timing signal to the user terminal; The user terminal is also used to obtain the telephone timing signal and the corresponding receiving time, and decode the telephone timing signal to obtain a decoded time code signal and a decoded 1PPS signal; calculate the one-way delay value according to the sending time of the delay measurement signal and the receiving time of the telephone timing signal; calibrate the decoded 1PPS signal according to the one-way delay value and the receiving time of the telephone timing signal to obtain a timing 1PPS signal.
8. A telephone time synchronization device according to claim 7, characterized in that: The user terminal is further configured to correct the timing 1PPS signal according to an external 1PPS signal, or calibrate the external 1PPS signal according to the timing 1PPS signal, wherein the external 1PPS signal is a 1PPS signal provided by an external clock device.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the telephone time synchronization method described in any one of claims 1 to 5 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the telephone time synchronization method described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Measurement one way delay method and equipment thereof, and communication system
CN102227110A
Device for realizing telephone time service by transmitting voice signal
CN112511288A