CN108809617B - Time delay compensation method and terminal - Google Patents

Time delay compensation method and terminal Download PDF

Info

Publication number
CN108809617B
CN108809617B CN201810350444.6A CN201810350444A CN108809617B CN 108809617 B CN108809617 B CN 108809617B CN 201810350444 A CN201810350444 A CN 201810350444A CN 108809617 B CN108809617 B CN 108809617B
Authority
CN
China
Prior art keywords
terminal
time
test signal
signal
transmission
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.)
Active
Application number
CN201810350444.6A
Other languages
Chinese (zh)
Other versions
CN108809617A (en
Inventor
葛卫敏
何志基
唐良建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201810350444.6A priority Critical patent/CN108809617B/en
Publication of CN108809617A publication Critical patent/CN108809617A/en
Application granted granted Critical
Publication of CN108809617B publication Critical patent/CN108809617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/0033Correction by delay

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the invention provides a time delay compensation method and a terminal, which are used for solving the problem of time delay of communication equipment in the signal transmission process in the prior art. The method comprises the following steps: after the first terminal is powered on and started, acquiring synchronization information sent by a second terminal which performs optical fiber communication with the first terminal, and performing time synchronization with the second terminal according to the synchronization information, wherein the synchronization information comprises first time for representing that the second terminal sends a test signal; after the synchronization with the second terminal, receiving the test signal sent by the second terminal, and determining the transmission duration of the test signal according to the first time and the time for receiving the test signal; and calculating a time difference value between the transmission time length and a preset transmission time length, and performing time delay compensation on the signal sent by the second terminal according to the time difference value.

Description

Time delay compensation method and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a delay compensation method and a terminal.
Background
In a communication system, different communication devices can perform data interaction through corresponding networks. However, because some unavoidable differences exist in hardware of different communication devices, and differences to signal transmission delay exist in power-on and power-off or design of a control chip in the communication device, the more complicated system design has more obvious time difference.
At present, many communication systems have high requirements for the accuracy of time delay, and particularly, communication devices that cascade or superimpose signals are required. In order to avoid random signal delay jitter, some communication systems mainly test the delay jitter by spending excessive design on hardware, and then compensate; or perform a large number of operations to avoid jitter in the delay.
In summary, in the prior art, no effective solution is provided for the case that the time delay of the communication device is serious in the signal transmission process.
Disclosure of Invention
The embodiment of the invention provides a time delay compensation method and a terminal, which are used for solving the problem of time delay of communication equipment in the signal transmission process in the prior art.
In a first aspect, an embodiment of the present invention provides a delay compensation method, which is applied to a first terminal, and the method includes:
after the first terminal is powered on and started, acquiring synchronization information sent by a second terminal which performs optical fiber communication with the first terminal, and performing time synchronization with the second terminal according to the synchronization information, wherein the synchronization information comprises first time for representing that the second terminal sends a test signal;
after the synchronization with the second terminal, receiving the test signal sent by the second terminal, and determining the transmission duration of the test signal according to the first time and the time for receiving the test signal;
and calculating a time difference value between the transmission time length and a preset transmission time length, and performing time delay compensation on the signal sent by the second terminal according to the time difference value.
Optionally, the determining the transmission duration of the test signal according to the first time includes:
determining the sending time of the test signal according to the first time, and starting timing from the sending time;
when the test signal is received, obtaining the stop timing;
and determining the transmission time length corresponding to the test signal according to the recorded time length.
Optionally, the test signal is a high pulse signal with an amplitude greater than a preset amplitude.
Optionally, before receiving the test signal sent by the second terminal, the method further includes:
determining a downlink idle time period between the second terminal and the second terminal according to the synchronization information;
detecting whether a pulse signal with an amplitude larger than a preset amplitude exists in the downlink idle time period;
receiving a test signal sent by the second terminal, including:
and when the high pulse signal exists in the idle time period, receiving the high pulse signal, and using the received high pulse signal as the test signal.
In a second aspect, an embodiment of the present invention provides a delay compensation method, applied to a second terminal, including:
determining an uplink idle time period;
generating synchronous information according to the uplink idle time period and the system time, wherein the synchronous information comprises first time used for sending a test signal to a first terminal, the time indicated by the first time is in the uplink idle time period, and an optical fiber connection is established between a second terminal and the first terminal;
and transmitting the synchronization information to the first terminal through an optical fiber so that the first terminal determines a delay difference value for performing delay compensation on a received signal according to the first time and the time for receiving the test signal.
Optionally, after transmitting the synchronization information to the first terminal through an optical fiber, the method further includes:
determining that the current time reaches the first time;
and sending the test signal to the first terminal through an optical fiber.
Optionally, the test signal is a high pulse signal with an amplitude greater than a preset amplitude.
In a third aspect, an embodiment of the present invention provides a terminal, including:
the system comprises a time synchronization module, a first terminal and a second terminal, wherein the time synchronization module is used for acquiring synchronization information sent by the second terminal which performs optical fiber communication with the first terminal after the first terminal is powered on and started, and performing time synchronization with the second terminal according to the synchronization information, and the synchronization information comprises first time for representing the test signal sent by the second terminal;
the receiving module is used for receiving the test signal sent by the second terminal after the synchronization with the second terminal, and determining the transmission duration of the test signal according to the first time and the time for receiving the test signal;
and the time delay compensation module is used for calculating a time difference value between the transmission time length and a preset transmission time length and carrying out time delay compensation on the signal sent by the second terminal according to the time difference value.
Optionally, the test signal is a high pulse signal with an amplitude greater than a preset amplitude.
Optionally, the terminal further includes:
the time delay calculation module is used for determining the sending time of the test signal according to the first time, starting timing from the sending time, and acquiring the stop timing when the test signal is received;
and the receiving module is used for determining the transmission time length corresponding to the test signal according to the recorded time length.
Optionally, the receiving module is further configured to:
before receiving a test signal sent by the second terminal, determining a downlink idle time period between the second terminal and the second terminal according to the synchronization information, and detecting whether a pulse signal with an amplitude larger than a preset amplitude exists in the downlink idle time period;
and when the high pulse signal exists in the idle time period, receiving the high pulse signal, and using the received high pulse signal as the test signal.
In a fourth aspect, an embodiment of the present invention provides a terminal, including:
a determining module, configured to determine an uplink idle time period of the second terminal;
a time synchronization module, configured to generate synchronization information according to the uplink idle time period and system time, where the synchronization information includes a first time for a second terminal to send a test signal to a first terminal, a time indicated by the first time is within the uplink idle time period, and an optical fiber connection is established between the second terminal and the first terminal;
and the sending module is used for transmitting the synchronization information to the first terminal through an optical fiber so that the first terminal determines a time delay difference value for performing time delay compensation on the received signal according to the first time and the time for receiving the test signal.
Optionally, the sending module is specifically configured to:
determining that the current time reaches the first time;
and sending the test signal to the first terminal through an optical fiber.
Optionally, the test signal is a high pulse signal with an amplitude greater than a preset amplitude.
In a fifth aspect, an embodiment of the present invention provides a computer apparatus, which includes a processor, and the processor is configured to implement the method according to the first aspect and the second aspect when executing a computer program stored in a memory.
In a sixth aspect, the present invention provides a computer-readable storage medium storing computer instructions, which when executed on a computer, cause the computer to perform the method according to the first and second aspects.
In the embodiment of the invention, after a first terminal is powered on and started, synchronization information sent by a second terminal connected with the first terminal is acquired through optical fiber transmission to perform time synchronization, the synchronization information comprises first time used for representing the moment when the second terminal sends a test signal, the first terminal receives the test signal sent by the second terminal, the transmission time length of the test signal is determined according to the first time, and time delay compensation can be performed on the signal sent by the second terminal according to the time difference value by calculating the time difference value between the transmission time length and the preset transmission time length, namely, after a receiving end device is powered on and synchronized, the time delay difference existing in a path through which the transmission signal of the device passes can be determined by calculating the difference value between the transmission time length of the test information and the preset time length, so that the time delay compensation can be performed on subsequent signals, and the time delay of signal transmission of communication equipment can be reduced, the real-time performance of signal transmission is improved.
Meanwhile, in the embodiment of the invention, as the time delay test is carried out only once after the receiving end equipment is powered on through the test information, the obtained time delay difference can be always applied to the subsequent time delay compensation, the test signal does not need to be sent repeatedly, the occupied resource is less, and the implementation mode is simpler and more convenient.
Drawings
FIG. 1 is a first flowchart of a delay compensation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for using delay compensation in a separated terminal according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a delay compensation method according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a delay anti-jitter system in which a terminal is located according to an embodiment of the present invention;
FIG. 7 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The delay compensation method in the embodiment of the invention can be applied to terminals for optical fiber communication, and the terminals are butted by using optical fibers, so that the network system comprising at least two independent terminals can also be called a delay anti-shake system of a separation device.
In practical applications, the terminal may include a corresponding receiver and/or transmitter, so that the terminal may serve as both a transmitting end and a receiving end.
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.
Example one
Fig. 1 is a time delay compensation method provided in an embodiment of the present invention, where the method may be applied to a terminal in the time delay anti-jitter system, such as a first terminal, where the first terminal has an optical fiber connection with one or more terminals in the system, and a main process of the method may be described as follows:
s11: after the first terminal is powered on and started, synchronization information sent by a second terminal which performs optical fiber communication with the first terminal is obtained, time synchronization is performed with the second terminal according to the synchronization information, and the synchronization information comprises first time for representing the test signal sent by the second terminal.
In the embodiment of the invention, after the first terminal is powered on and started, the synchronization information transmitted by the second terminal through the optical fiber can be obtained, and the synchronization information and the second terminal are used for time synchronization, so that the system time synchronization in the two terminals is completed.
The test signal may be a high pulse signal with an amplitude greater than a preset amplitude and transmitted by the second terminal. The sending time of the test signal represented by the first time is the time when the uplink time normal signal of the second terminal is empty, that is, the time when there is no transmission demand of the normal signal between the first terminal and the second terminal. In practical application, after the first terminal is synchronized with the second terminal according to the synchronization information, the time of sending the test signal can be determined.
S12: and after the synchronization with the second terminal, receiving a test signal sent by the second terminal, and determining the transmission duration of the test signal according to the first time and the time for receiving the test signal.
In the embodiment of the present invention, the first terminal may determine the sending time of the test signal according to the synchronization information, and after receiving the test signal, may determine the transmission duration of the test signal according to the sending time and the receiving time of the test signal, for example, calculate a time difference between the ending time and the receiving time.
In practical applications, after the first terminal performs time synchronization, before S12, a downlink idle time period during signal transmission with the second terminal may also be determined according to the synchronization information, and during the downlink idle time period, it is detected whether there is a high pulse signal, i.e., a test signal. If it is determined that the high pulse signal exists during the idle period, the high pulse signal may be received in S12.
Optionally, if the first terminal includes a counter, after receiving the synchronization information, the first terminal may clear the counter according to the synchronization information, and determine a sending time of the test signal according to the first time, so as to control the counter to start counting from the sending time, when the first terminal determines that the high pulse signal is received, the counter is controlled to stop timing, and a final value is latched, where the recorded value is a transmission duration of the high pulse signal transmitted from the second terminal to the first terminal.
Therefore, in the embodiment of the present invention, after time synchronization is performed between the terminals, the transmission duration of the transmission path of the normal signal between the terminals can be detected by sending the high pulse signal with higher identification degree at the idle time, and chip control is mainly implemented without using a redundant external analog circuit for control, thereby saving cost. Meanwhile, aiming at different terminals, the effect of real-time testing can be achieved by each butt joint, the operation is simple, and the platformization portability is strong.
S13: and calculating a time difference value between the transmission time length and a preset transmission time length, and performing time delay compensation on the signal sent by the second terminal according to the time difference value.
The preset transmission duration may be an allowable delay jitter value set in advance through multiple tests on the transmission duration of the signal in the transmission path. The value range of the value may be determined according to the maximum transmission duration in the multiple test results, for example, the maximum transmission duration is 120us, and the set preset transmission duration may be in the range of [125us, 130us ].
In the embodiment of the invention, after the transmission time length of the high pulse signal is determined, the time difference between the transmission time length and the preset transmission time length can be calculated by the first terminal, the time difference can be used as a time delay compensation value, and further the first terminal can perform time delay compensation on the signal sent by the second terminal according to the time delay compensation value. For example, if the time difference calculated by the receiving end device is 8us, the normal signal transmitted by the transmitting end device and received subsequently may be subjected to delay processing according to the 8 us.
Therefore, in the embodiment of the invention, the time delay compensation value between the separated terminals can be determined through one time delay detection after the system is powered on, and the time delay compensation value is used for subsequent time delay processing of transmission signals, so that the performance of the system during signal transmission is ensured, and the stability of the system during signal transmission is improved.
In another embodiment of the present invention, at the same time or after S11, the first terminal may further determine an uplink idle period in the signal transmission process according to the synchronization information, where the uplink idle period is a time when the first terminal is empty in transmitting the normal signal at the uplink time.
After determining the uplink idle time period of the first terminal, the first terminal may select to send a high pulse signal to other devices, for example, a third terminal, through optical fiber transmission at a certain time within the uplink idle time period, so as to detect a delay compensation value between the first terminal and the third terminal, thereby performing delay compensation on a transmission signal between the first terminal and the third terminal.
Furthermore, the first terminal may generate synchronization information according to the selected time of sending the high pulse signal in the uplink idle time period and the system time of the first terminal, and the synchronization information may include a second time parameter indicating a time of sending the test signal (high pulse signal) to the third terminal, where the time indicated by the second time parameter is in the uplink idle time period. And then the first terminal sends the synchronization information to the third terminal so as to carry out time synchronization with the third terminal.
Of course, in practical applications, after the first terminal completes synchronization with the second terminal, the first terminal may also directly send the high pulse signal to the second terminal at a certain specific time (sending time) to test the transmission duration of the signal transmission path from the first terminal to the second terminal, and the second terminal may determine the sending time of the high pulse signal according to the synchronization, and further may determine a corresponding delay compensation value to perform delay compensation on a subsequent signal from the first terminal according to the receiving time of the high pulse signal.
Therefore, in the embodiment of the present invention, on one hand, the first terminal may serve as a receiving end device, and receive the synchronization information from the second terminal to perform time synchronization, and further calculate a delay difference value of signal transmission between the first terminal and the second terminal according to the received pulse signal and the sending time of the test signal determined according to the synchronization information, and compensate for a delay in a subsequent signal chassis.
On the other hand, the first terminal may also be used as a sending end device, that is, the first terminal generates and sends synchronization information to other connected devices, for example, the third terminal, according to its uplink idle time period and its own time system, and informs the opposite end device of the time when it sends the pulse signal, so that the opposite end device calculates the transmission duration of the pulse signal between the first terminal and the third terminal according to the time when it receives the pulse signal and the sending time of the informed pulse signal, and further may calculate the detected transmission duration and the preset delay jitter value to calculate the delay difference value, and perform delay compensation on the subsequent transmission signal according to the delay difference value.
In order to facilitate a clearer understanding of the implementation of the methods in the embodiments of the present application, the following detailed description is given by way of specific examples and accompanying drawings.
Fig. 2 is a schematic flow chart of a method for implementing delay compensation on a terminal in a delay anti-jitter system. The time delay anti-jitter system includes two or more terminals connected by optical fibers, and each terminal may include a Radio Remote Unit (RRU) device and/or a BBU Baseband Unit (BBU). In the embodiment of the present invention, it is exemplified that the terminal 2 (the sending end device) includes the RRU, and the terminal 2 (the receiving end device) includes the BBU. For the simplicity of the description, the terminal 1 is referred to as BBU, and the terminal 2 is referred to as RRU. The corresponding steps in fig. 2 are explained below:
step 301: a terminal in the system is powered on and started, and functional modules of a sending end device BBU and a receiving end device RRU enter a normal operation state;
step 302: after the two terminals are started, the time synchronization is carried out by using the optical fiber to transmit the synchronization information;
step 303: judging whether the two terminals are successfully synchronized; if the time synchronization is determined to be successful, the system can enter a time delay jitter measurement stage;
step 304: at the time when the uplink signal of the RRU is empty, a specific time is selected, for example, 10us after the synchronization information, the signal start end of the RRU sends a high pulse signal with one bit wide clk, and the pulse amplitude of the high pulse signal is higher than that of the normal signal between the terminals.
The pulse signals pass through all signal processing paths of the RRU, are subjected to photoelectric conversion, are transmitted to the BBU, and are transmitted into the BBU through the photoelectric conversion of the BBU. Then, the signal is processed by a corresponding functional module in the BBU to reach a signal receiving module at the signal processing end of the BBU;
step 305: the BBU starts to perform zero clearing counting when the pulse signal is sent according to the specific time selected by the RRU in the step 304, stops counting after the pulse is detected to be received, and latches the counting at the final stop time;
step 306: the signal receiving module of the BBU starts to enter step 307 within a specified time range, and detects a high pulse signal sent by the RRU within the received signal. The time range may be determined by a repetition test performed in advance, for example, it may be a downlink idle time period, and the BBU detects whether there is a pulse signal whose amplitude is greater than a preset amplitude in the downlink idle time period;
step 308: when the BBU detects the pulse signal, signal latching can be carried out, counting is stopped, and the last counted value is latched;
step 309: the BBU subtracts a value set according to the jitter maximum value from the value recorded in the step 308 to obtain the time delay jitter number of the connection;
step 310: and the BBU adds the calculated time delay jitter value to a time delay compensation module so as to carry out time delay processing on the signals transmitted by the subsequent RRUs.
Therefore, the delay compensation method in the embodiment of the invention uses two or more separation devices in combination, so that the delay error can be accurately within an allowable range during each power-on transmission or assembly of different devices, thereby ensuring stable transmission and superposition use of signals.
Example two
Fig. 3 is a diagram of a delay compensation method according to an embodiment of the present invention, which may be used in a second terminal according to the first embodiment, where the second terminal is connected to the first terminal through an optical fiber. The method can be described as follows:
s101: the second terminal determines an uplink idle period.
In this embodiment of the present invention, the uplink idle time period of the second terminal may be a time period when the normal signal is empty at the uplink time of the second terminal relative to the first terminal.
S102: the second terminal generates synchronous information according to the uplink idle time period and the system time, the synchronous information comprises first time used for sending a test signal to the first terminal, the time indicated by the first time is in the uplink idle time period, and optical fiber connection is established between the second terminal and the first terminal.
The test signal is a high pulse signal with an amplitude larger than a preset amplitude so as to be distinguished from a normal signal. In practical applications, after determining the uplink idle period, the second terminal may select a specific time for transmitting a high pulse signal to the first terminal in the period, which is referred to as the first time herein. Then, when the second terminal generates synchronization information for synchronizing with the first terminal according to the uplink idle period and the system time, the first time may be indicated in the synchronization information.
S103: and the second terminal transmits the synchronization information to the first terminal through the optical fiber so that the first terminal determines a time delay difference value for performing time delay compensation on the received signal according to the first time and the time for receiving the test signal.
And the second terminal sends the synchronization information to the first terminal through the optical fiber so as to realize time synchronization with the first terminal through the synchronization information. After synchronization is completed, when the second terminal determines that the current time reaches the first time, the high pulse signal can be sent to the first terminal through the optical fiber to test a transmission path between the first terminal and the second terminal, so that delay compensation is performed, the first terminal determines transmission duration according to the first time in the synchronization information and the time of receiving the high pulse signal, the first terminal determines a delay compensation value according to the transmission duration, and delay compensation is performed on information from the second terminal. For the process of determining the duration compensation value by the first terminal, please refer to the related description of the first embodiment, which is not described herein again.
In the embodiment of the invention, after the second terminal is powered on, the second terminal generates the synchronization information containing the specific time for indicating the high pulse signal to be sent to the first terminal according to the uplink idle time and the system time, so that the first terminal is informed of the time in the synchronization process with the first terminal, the first terminal can conveniently time according to the informed specific time, the transmission time can be calculated according to the recorded time when the high pulse signal is received, the test of the transmission time of the signal from the second terminal to the first terminal on the transmission path is realized, and the time delay compensation value is calculated according to the preset transmission time.
In practical applications, after the second terminal and the first terminal are both powered on and synchronized, the second terminal may also receive the high pulse signal from the first terminal, and record a receiving time of the high pulse signal, and further the second terminal may send the sending time and the receiving time of the high pulse signal according to the first terminal, where the sending time may be a specific time at which the first terminal sends the high pulse signal after the second terminal and the first terminal are synchronized, and further the second terminal may calculate a transmission duration required by a transmission path from the first terminal to the second terminal, and calculate a corresponding delay compensation value according to the transmission duration, so as to perform delay compensation on the signal from the first terminal. The process of determining the delay compensation value by the second terminal is the same as the process of determining the delay compensation value by the first terminal, and details are not repeated here.
Therefore, in the embodiment of the present invention, the second terminal may further implement a test on a transmission duration of a transmission path of the signal from the first terminal to the second terminal according to the high pulse signal from the first terminal, and calculate a corresponding delay compensation value to perform delay compensation on the signal from the first terminal, so as to reduce delays of the uplink and downlink signals and improve real-time performance of signal transmission of the system.
EXAMPLE III
Based on the same inventive concept, an embodiment of the present invention provides a terminal, which may be a first terminal included in the aforementioned delay anti-jitter system, where the terminals in the system are connected by an optical fiber. As shown in fig. 4, the terminal includes a time synchronization module 21, a reception module 22, and a delay compensation module 23.
In practical applications, the terminal may further include a delay calculation module 24, which is also shown in fig. 4.
The time synchronization module 21 may be configured to, after a first terminal is powered on and started, acquire synchronization information sent by a second terminal that performs optical fiber communication with the first terminal, and perform time synchronization with the second terminal according to the synchronization information, where the synchronization information includes a first time for representing that the second terminal sends a test signal.
The receiving module 22 may receive the test signal sent by the second terminal after synchronizing with the second terminal, and determine a transmission duration of the test signal according to the first time and the time for receiving the test signal.
The delay compensation module 23 may be configured to calculate a time difference between the transmission duration and a preset transmission duration, and perform delay compensation on the signal sent by the second terminal according to the time difference.
Optionally, the terminal may further include a delay calculating module 24, configured to determine a sending time of the test signal according to the first time, start timing from the sending time, and obtain a stop timing when the test signal is received;
at this time, the receiving module 22 may be configured to determine a transmission duration corresponding to the test signal according to the recorded duration.
Optionally, in the embodiment of the present invention, the test signal is a high pulse signal with an amplitude greater than a preset amplitude
Optionally, the receiving module 22 may be further configured to: before receiving a test signal sent by the second terminal, determining a downlink idle time period in a signal transmission process with the second terminal according to the synchronization information, and detecting whether the high pulse signal exists in the downlink idle time period;
and when the high pulse signal exists in the idle time period, receiving the high pulse signal, and using the received high pulse signal as the test signal.
Example four
Based on the same inventive concept, an embodiment of the present invention provides a terminal, which may be a second terminal included in the aforementioned delay anti-jitter system, where the terminals in the system are connected by an optical fiber. As shown in fig. 5, the terminal includes a determination module 31, a time synchronization module 32, and a transmission module 33.
The determining module 31 may be configured to determine an uplink idle period of the second terminal.
The time synchronization module 32 may be configured to generate synchronization information according to the uplink idle time period and the system time, where the synchronization information includes a first time for the second terminal to send a test signal to the first terminal, a time indicated by the first time is within the uplink idle time period, and an optical fiber connection is established between the second terminal and the first terminal, where the test signal is a high pulse signal with an amplitude greater than a preset amplitude.
The sending module 33 may be configured to transmit the synchronization information to the first terminal through an optical fiber, so that the first terminal determines a delay difference value for performing delay compensation on the received signal according to the first time and the time of receiving the test signal.
In this embodiment of the present invention, the sending module 33 is specifically configured to:
determining that the current time reaches the first time;
and sending the test signal to the first terminal through an optical fiber.
In the actual optical fiber communication process, when the optical fiber communication is performed between the split terminals, if one terminal is a transmitting terminal, the other terminal in butt joint can be a receiving terminal.
Next, the architecture of the delay anti-jitter system where the second terminal is located is described by taking the second terminal as the transmitting end and the first terminal as the receiving end. As shown in fig. 6, the system is a structural diagram of an embodiment of a time delay anti-shaking system of a separation device in an embodiment of the present invention, and the system is sequentially connected to a time synchronization module 32 of a second terminal, a (pulse) transmission module 33, a time synchronization module 21 of a first terminal, a time delay calculation module 24, a (pulse) reception module 22, and a time delay compensation module 23. Of course, in practical applications, a terminal capable of serving as both a receiving end and a transmitting end may include all the functional modules shown in fig. 6.
Specifically, the sending end device (e.g., RRU device) and the receiving end device (e.g., BBU device) both include a time synchronization module 21, and the two terminals achieve time synchronization by using optical fiber transmission.
The sending module 33 may be set at a signal sending position at the RRU end, and send a high pulse signal at a certain time in [10us, 15us ] after the synchronization information is triggered, for example, when the uplink time of the RRU is empty, for example, a specific time after the synchronization information is selected.
Furthermore, the delay calculating module 24 in the BBU device can perform the zero clearing and the start counting according to the synchronization information.
The (pulse) receiving module 22 may be located at the signal receiving end in the BBU, and may define a jitter range according to time, receive a signal within the range, detect a high pulse signal sent by the RRU, latch the signal, stop counting by the delay calculating module 24, and latch a final value.
Furthermore, the delay compensation module 23 may set an empirical value of the maximum jitter range, compare the empirical value with a value finally locked by the delay calculation module 24, calculate a delay jitter value, and perform delay compensation on the calculated delay jitter value to ensure that the time for processing the signal is consistent in each operation.
EXAMPLE five
In an embodiment of the present invention, a computer apparatus is further provided, which has a structure as shown in fig. 7, and includes a processor 41 and a memory 42, where the processor 41 is configured to implement the steps of the latency compensation method provided in the first embodiment of the present invention when executing a computer program stored in the memory 42.
Alternatively, the processor 41 may be a central processing unit, an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a hardware Circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, processor 41 may include at least one processing core.
Optionally, the electronic device further includes a Memory 42, and the Memory 42 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 42 is used for storing data required by the processor 41 in operation. The number of the memory 42 is one or more.
EXAMPLE six
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the steps of the latency compensation method according to the first embodiment of the present invention may be implemented.
In the embodiments of the present invention, it should be understood that the disclosed delay compensation method and terminal may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a Processor (Processor), to execute all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above embodiments are only used to describe the technical solutions of the present invention in detail, but the above embodiments are only used to help understanding the method of the embodiments of the present invention, and should not be construed as limiting the embodiments of the present invention. Variations or substitutions that may be readily apparent to one skilled in the art are intended to be included within the scope of the embodiments of the present invention.

Claims (12)

1. A delay compensation method applied to a first terminal is characterized by comprising the following steps:
after the first terminal is powered on and started, acquiring synchronous information sent by a second terminal which performs optical fiber communication with the first terminal, and performing time synchronization with the second terminal according to the synchronous information, wherein the synchronous information comprises first time for representing that the second terminal sends a test signal, and the test signal is a high pulse signal with an amplitude larger than a preset amplitude;
after the synchronization with the second terminal, receiving the test signal sent by the second terminal, and determining the transmission duration of the test signal according to the first time and the time for receiving the test signal;
and calculating a time difference value between the transmission time length and a preset transmission time length, and performing time delay compensation on the signal sent by the second terminal according to the time difference value, wherein the preset transmission time length is a time delay jitter value set by multiple tests on the transmission time length of the signal in a transmission path in advance.
2. The method of claim 1, wherein said determining a transmission duration of said test signal based on said first time comprises:
determining the sending time of the test signal according to the first time, and starting timing from the sending time;
when the test signal is received, obtaining the stop timing;
and determining the transmission time length corresponding to the test signal according to the recorded time length.
3. The method of claim 1, wherein prior to receiving the test signal transmitted by the second terminal, the method further comprises:
determining a downlink idle time period between the second terminal and the second terminal according to the synchronization information;
detecting whether the high pulse signal exists in the downlink idle time period;
the receiving the test signal sent by the second terminal includes:
and when the high pulse signal exists in the idle time period, receiving the high pulse signal, and using the received high pulse signal as the test signal.
4. A delay compensation method applied to a second terminal is characterized by comprising the following steps:
determining an uplink idle time period;
generating synchronous information according to the uplink idle time period and the system time, wherein the synchronous information comprises first time for sending a test signal to a first terminal, the time indicated by the first time is in the uplink idle time period, an optical fiber connection is established between a second terminal and the first terminal, and the test signal is a high pulse signal with the amplitude larger than a preset amplitude;
and transmitting the synchronization information to the first terminal through an optical fiber, so that the first terminal determines a delay difference value for performing delay compensation on the received signal according to the first time, the time for receiving the test signal and a preset transmission time length, wherein the preset transmission time length is a delay jitter value set by multiple tests on the transmission time length of the signal in a transmission path in advance.
5. The method of claim 4, wherein after transmitting the synchronization information over an optical fiber to the first terminal, the method further comprises:
determining that the current time reaches the first time;
and sending the test signal to the first terminal through an optical fiber.
6. A terminal, comprising:
the system comprises a time synchronization module, a first terminal and a second terminal, wherein the time synchronization module is used for acquiring synchronization information sent by the second terminal which performs optical fiber communication with the first terminal after the first terminal is powered on and started, and performing time synchronization with the second terminal according to the synchronization information, the synchronization information comprises first time for representing that the second terminal sends a test signal, and the test signal is a high pulse signal with amplitude larger than preset amplitude;
the receiving module is used for receiving the test signal sent by the second terminal after the synchronization with the second terminal, and determining the transmission duration of the test signal according to the first time and the time for receiving the test signal;
and the time delay compensation module is used for calculating a time difference value between the transmission time length and a preset transmission time length, and performing time delay compensation on the signal sent by the second terminal according to the time difference value, wherein the preset transmission time length is a time delay jitter value set by multiple tests on the transmission time length of the signal in a transmission path in advance.
7. The terminal of claim 6, wherein the terminal further comprises:
the time delay calculation module is used for determining the sending time of the test signal according to the first time, starting timing from the sending time, and acquiring the stop timing when the test signal is received;
and the receiving module is used for determining the transmission time length corresponding to the test signal according to the recorded time length.
8. The terminal of claim 6, wherein the receiving module is further configured to:
before receiving a test signal sent by the second terminal, determining a downlink idle time period between the second terminal and the terminal according to the synchronization information, and detecting whether the high pulse signal exists in the downlink idle time period;
and when the high pulse signal exists in the idle time period, receiving the high pulse signal, and using the received high pulse signal as the test signal.
9. A terminal, comprising:
the determining module is used for determining an uplink idle time period of the second terminal;
a time synchronization module, configured to generate synchronization information according to the uplink idle time period and system time, where the synchronization information includes a first time for a second terminal to send a test signal to a first terminal, a time indicated by the time is within the uplink idle time period, an optical fiber connection is established between the second terminal and the first terminal, and the test signal is a high pulse signal with an amplitude greater than a preset amplitude;
and a sending module, configured to transmit the synchronization information to the first terminal through an optical fiber, so that the first terminal determines a delay difference value for performing delay compensation on a received signal according to the first time, the time for receiving the test signal, and a preset transmission duration, where the preset transmission duration is a delay jitter value set in advance for multiple tests on the transmission duration of the signal in the transmission path.
10. The terminal of claim 9, wherein the sending module is specifically configured to:
determining that the current time reaches the first time;
and sending the test signal to the first terminal through an optical fiber.
11. A computer arrangement, characterized in that the computer arrangement comprises a processor for implementing the method according to any of claims 1-5 when executing a computer program stored in a memory.
12. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-5.
CN201810350444.6A 2018-04-18 2018-04-18 Time delay compensation method and terminal Active CN108809617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810350444.6A CN108809617B (en) 2018-04-18 2018-04-18 Time delay compensation method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810350444.6A CN108809617B (en) 2018-04-18 2018-04-18 Time delay compensation method and terminal

Publications (2)

Publication Number Publication Date
CN108809617A CN108809617A (en) 2018-11-13
CN108809617B true CN108809617B (en) 2021-12-14

Family

ID=64094347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810350444.6A Active CN108809617B (en) 2018-04-18 2018-04-18 Time delay compensation method and terminal

Country Status (1)

Country Link
CN (1) CN108809617B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390662B (en) * 2020-10-19 2023-09-08 维沃移动通信有限公司 Time delay compensation method, device and equipment for TSN reference time
CN114510186A (en) * 2020-10-28 2022-05-17 华为技术有限公司 Cross-device control method and device
CN112422366A (en) * 2020-11-09 2021-02-26 淄博萃智工业设计咨询有限公司 Method and system for measuring time delay characteristic of forwarding network
CN113960413A (en) * 2021-10-20 2022-01-21 石家庄科林电气股份有限公司 Time synchronization method for collecting unit and collecting unit in fault indicator
CN114301565B (en) * 2021-12-30 2023-12-29 上海布鲁可积木科技有限公司 Wireless communication method and system between toy modules
CN114827681B (en) * 2022-04-24 2024-03-22 咪咕视讯科技有限公司 Video synchronization method, device, electronic equipment, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1685646A (en) * 2002-09-26 2005-10-19 Vkr控股公司 Method of controlling operation of at least one transmitter and/or one receiver, communication system and use of such a method or such a system
CN102687526A (en) * 2012-02-14 2012-09-19 华为技术有限公司 Delay measurement method and optical transport network device
CN102869086A (en) * 2012-09-25 2013-01-09 京信通信系统(中国)有限公司 Method and device for adjusting signal transmission time
CN106550288A (en) * 2015-09-16 2017-03-29 华为技术有限公司 A kind of time-delay compensation device of EPON, method and EPON

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515831B (en) * 2008-02-22 2013-08-28 杭州华三通信技术有限公司 Method, system and device for time synchronous transfer
CN102938676B (en) * 2011-08-16 2017-11-10 中兴通讯股份有限公司 Time synchronizing method, apparatus and system
CN105245324A (en) * 2015-10-14 2016-01-13 中兴通讯股份有限公司 Clock synchronization method and device
EP3294014B1 (en) * 2016-09-08 2019-12-18 ADVA Optical Networking SE A method for scheduling a transmission of packets within a network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1685646A (en) * 2002-09-26 2005-10-19 Vkr控股公司 Method of controlling operation of at least one transmitter and/or one receiver, communication system and use of such a method or such a system
CN102687526A (en) * 2012-02-14 2012-09-19 华为技术有限公司 Delay measurement method and optical transport network device
CN102869086A (en) * 2012-09-25 2013-01-09 京信通信系统(中国)有限公司 Method and device for adjusting signal transmission time
CN106550288A (en) * 2015-09-16 2017-03-29 华为技术有限公司 A kind of time-delay compensation device of EPON, method and EPON

Also Published As

Publication number Publication date
CN108809617A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108809617B (en) Time delay compensation method and terminal
US20200328872A1 (en) Time synchronization method, apparatus, and system
US8913504B2 (en) System and method for initiating testing of multiple communication devices
US9229831B2 (en) Test device and method
CN104113517A (en) Timestamp generation method, device and system
US10847968B2 (en) Differential protection method and system
CN112583477B (en) Delay measurement method, delay measurement system and storage medium
CN113572560A (en) Method, electronic device, and storage medium for determining clock synchronization accuracy
CN111082887B (en) System, method, device, equipment and medium for signal transmission delay compensation
CN112235096B (en) Data communication method, data receiving method and device and data sending method and device
RU2648285C1 (en) Method and delivery compensation device
CN113726592A (en) Transmission delay testing method and system of edge server and related components
US10721055B2 (en) Communication device
CN111884751A (en) Smart grid time synchronization method and device based on PTP
CN114443537B (en) PCIE signal transmitting end parameter configuration method, device, equipment and medium
CN114126028B (en) Differential protection method, differential protection device, communication unit and storage medium
CN106330357B (en) A kind of transfer check method, node and the system of SERDES
CN109257158B (en) Peer-to-peer sampling synchronization method and system for optical difference communication
CN116232524B (en) Method for synchronizing signals between receiver boards and related equipment
CN112636825A (en) Method, device and system for measuring time delay in optical transport network
WO2018098815A1 (en) Phase correction method and device
US20230055859A1 (en) Low Clock Rate MIL-STD-1553B Decoder for Field Programmable Gate Arrays
EP4311189A1 (en) Measurement method and network device
CN114945117B (en) Error code tester reset signal time sequence determining method and related components
WO2013040909A1 (en) Clock switchover method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200107

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Comba Telecom System (China) Ltd.

GR01 Patent grant
GR01 Patent grant