TDD synchronization method and device for 5G

Through improved envelope detection methods and counter calibration technology, the cost and accuracy challenges of 5G TDD synchronization technology are solved, and low-cost, high-precision synchronization is achieved, suitable for high-demand public places, reducing operating costs and avoiding Communication error.

CN119095145APending Publication Date: 2024-12-06JIANGSU HENGXIN WIRELESS TECH +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411201600.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing 5G TDD synchronization technology has challenges in terms of cost and accuracy, especially in public places with high demand. The existing methods such as FPGA chip deframe method and TDD baseband synchronization module method are costly and complex, making it difficult to meet cost control and synchronization. Double requirements for accuracy.

Method used

The improved envelope detection method is adopted to identify the edge change position of the square wave signal through a counter, and the frame head position is calibrated by the residual method to achieve low-cost and high-precision 5G TDD synchronization, reducing the dependence on high-precision clocks.

Benefits of technology

It realizes low-cost, strong versatility and high precision 5G TDD synchronization, reduces the operating costs of operators, is suitable for public places with strict costs, and avoids communication errors and interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119095145A_ABST
    Figure CN119095145A_ABST
Patent Text Reader

Abstract

The invention provides a TDD (Time Division Duplex) synchronization method and device for 5G, which realize 5G TDD synchronization with low cost, strong universality and high precision, and comprises the following steps: receiving and processing a wireless signal to obtain a square wave signal for synchronization; identifying an edge change position in the square wave signal, and describing the characteristics of the square wave signal by using a counter to find out a frame header position; continuously detecting the edge change position of the square wave signal in real time by using the counter for finding out the frame header until the edge change position of a downlink signal after a theoretical period is detected; comparing, judging and calculating the count value of the counter when the downlink signal changes along the position with a theoretical period, calibrating the current value of the counter, and continuing counting after updating is completed; when the counter finding out the frame header counts to a theoretical period value every time, a trig pulse signal is output, and an RF control signal is output according to the trig pulse signal in combination with uplink and downlink signal characteristics in a theoretical existing network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G communication technology, and in particular to a TDD synchronization method and device for 5G. Background Art

[0002] With the advancement of science and technology, 5G technology plays an important role in the fields of automobiles, aerospace, medical, virtual VR gaming experience, etc. The communication methods of 5G technology can be divided into FDD (frequency division duplex) and TDD (time division duplex). Due to the increasing user demand and limited FDD duplex resources, TDD duplex is particularly important in 5G technology. At present, TDD duplex is basically used in 5G technology. One of the most important technologies in TDD duplex mode is TDD synchronization technology. If it cannot be synchronized with the base station signal or there is a large error, communication errors will occur, and even interference with the base station will occur.

[0003] The main methods of existing TDD synchronization technology include:

[0004] (1) The TDD synchronization method in 4G technology is mainly the envelope detection method.

[0005] (2) The TDD synchronization method in 5G technology uses the FPGA (field programmable gate array) chip deframing method.

[0006] (3) Adopt TDD baseband synchronization module method.

[0007] (4) Satellite synchronization in 5G technology, obtaining accurate clock synchronization method.

[0008] At present, the problems of these methods are as follows: The envelope detection method in 4G technology is difficult to implement for 5G signals, because the 5G signals in the existing network are complex and diverse, and each frame signal may be different. Even if the envelope detection method finds the frame header signal, it is difficult to keep consistent with the base station for a long time without a high-precision clock. The cost of the FPGA chip de-framing method and the TDD baseband synchronization module method is high, and the algorithm is complex. Satellite synchronization requires a very high-precision clock, which is expensive and the algorithm is also complex. 5G TDD synchronization technology plays a major role in the automotive, medical, aerospace, and daily life fields. In the high-end field, cost control is not obvious, and FPGA or TDD base station synchronization modules can be used for synchronization. However, in daily life, such as in public places with very high demand, such as underground parking lots, elevator shafts, tunnels, etc., the cost requirements are relatively strict. While the cost requirements are strict, the synchronization accuracy must also be guaranteed to avoid communication errors. Summary of the invention

[0009] In view of the above problems, the present invention provides a TDD synchronization method and device for 5G, which can realize low-cost, strong versatility and high-precision 5G TDD synchronization.

[0010] The technical solution is as follows: A TDD synchronization method for 5G, characterized in that it includes the following steps:

[0011] Step 1: Set the RF control signal to the normal downlink mode, receive and process the wireless signal, and obtain a square wave signal for synchronization;

[0012] Step 2: Identify the edge position in the square wave signal, use a counter to describe the characteristics of the square wave signal, and find the frame header position based on the characteristics described by the counter and the characteristics of the existing network signal;

[0013] Step 3: Use the counter that finds the frame header to continue to detect the edge position of the square wave signal in real time until the edge position of the downlink signal after a theoretical cycle is detected;

[0014] Step 4: Compare the count value of the counter that finds the frame header when the downlink signal changes position with the theoretical period to determine whether the downlink signal changes position is the starting position of the downlink signal. If so, directly subtract the current value of the counter that finds the frame header from the value when the downlink signal changes position, so that the counter is synchronized with the existing network signal, and the counter continues to count after the update is completed; if not, calibrate the current value of the counter by calculating the relative offset of the value of the counter that finds the frame header when the downlink signal changes position relative to the downlink signal position in the existing network, so that the counter is synchronized with the existing network signal, and the counter continues to count after the update is completed;

[0015] Step 5: When the counter that finds the frame header counts to the theoretical cycle value each time, a trig pulse signal is output, and an RF control signal is output according to the trig pulse signal combined with the theoretical uplink and downlink signal characteristics in the existing network.

[0016] Furthermore, step 1 is specifically performed as follows: an input signal is received by an antenna, configuration parameter information is received, the input signal is screened according to the configuration parameter information, the RF signal required in the configuration is obtained, the signal is distinguished from the low noise area through gain amplification, and then the envelope signal of the signal is obtained through a detector tube, and the envelope signal is compared with the reference voltage after voltage amplification to obtain a square wave signal.

[0017] Furthermore, the configuration parameter information includes an operating frequency band, a signal bandwidth, a time slot ratio, a cycle information, and a subcarrier spacing.

[0018] Furthermore, step 2 is specifically performed as follows:

[0019] Step 201: When the falling edge of the square wave signal is identified, the first counter starts counting, and when the rising edge of the square wave signal is identified, the second counter starts counting, and the value of the first counter is read at the same time to determine whether the value of the first counter meets the uplink duration. If the requirement is met, proceed to step 202; if not, the first counter is reset to zero, the second counter is reset to zero, and the next falling edge is waited again until the requirement is met;

[0020] Step 202: The second counter continues to count, and the first counter is cleared. When the next falling edge arrives, the first counter restarts counting and reads the value of the second counter to determine whether the value of the second counter meets the downlink duration. If so, it is considered that the frame header position is found and proceeds to step 3; if not, the second counter continues to count, and when the next rising edge arrives, reads the value of the first counter to determine whether the value of the first counter meets the glitch value. If so, the second counter continues to count, the first counter is cleared, and step 202 is repeated until the value of the second counter meets the downlink duration; if the first counter does not meet, the first counter and the second counter are cleared respectively, and step 201 is re-executed.

[0021] Furthermore, step 3 is specifically performed as follows: the first counter is cleared, the second counter continues to count, and the next edge change position is detected. When the edge change position is reached, the value T_n of the second counter is read and the first counter starts counting, and it is determined whether the value of the second counter is the edge change position of the next cycle. If it is satisfied, the first timer is turned on for timing. If there is no edge change during the timing duration of the first timer, the value T_n of the second counter is valid, recorded as T`, and the value of the second counter is subtracted from the period T and then continues to count and execute step 4 to clear the first counter; if there is an edge change during the timing duration of the first timer, T_n is cleared, the first counter is cleared, the first timer is turned off, and step 3 is repeated until a valid T` value is obtained.

[0022] Furthermore, step 4 is specifically performed as follows:

[0023] Compare and obtain the relationship between the count value T' of the second counter and the period T when the downlink signal changes position. If T' is less than or equal to the T value, the value of the second counter directly updated is expressed as c2 = c2' + TT'; if T' is greater than the T value, the value of the updated second counter is expressed as c2 = c2' + temp, where c2 is the count value of the second counter after the update, c2' is the count value of the second counter before the update, and temp is the relative offset. The second counter continues to count after the value is updated, and enters step 5;

[0024] The relative offset temp is calculated as follows:

[0025] Take the modulus of the configured period T through the effective T` to obtain the first remainder;

[0026] According to the configuration information, a duration of one symbol is obtained, a first remainder is modulo the duration of one symbol to obtain a second remainder, and the first remainder is rounded to the duration of one symbol to obtain a first integer;

[0027] The second remainder is compared with the error value of the symbol duration, the error value is the difference between the actual clock and the theoretical clock for one cycle. If the second remainder is greater than or equal to 1 symbol duration minus the error value, the relative offset temp = T_symb-dat2; if the second remainder is less than 1 symbol duration minus the error value and less than or equal to the error value, the relative offset temp = -dat2; if the second remainder is less than 1 symbol duration minus the error value but greater than the error value, the relative offset temp = m*T_symb*er / T+er, wherein m is the first integer, T_symb is 1 symbol duration, er is the error value, T is the theoretical cycle value, and dat2 is the second remainder.

[0028] Furthermore, step 5 is specifically performed as follows:

[0029] When the second counter counts to the theoretical cycle each time, it outputs a trig pulse signal;

[0030] Output RF control signal according to trig pulse signal and uplink and downlink signal duration of configuration information;

[0031] Steps 3 to 5 are executed cyclically, and the RF control signal state is changed from the normal downlink mode to the switching mode to realize the switching of uplink and downlink signals, which is synchronized with the existing network signal.

[0032] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the TDD synchronization method for 5G as described above when executing the computer program.

[0033] A computer-readable storage medium stores a program thereon, and when the program is executed by a processor, the TDD synchronization method for 5G as described above is implemented.

[0034] A computer program product comprises a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0035] The TDD synchronization method for 5G of the present invention improves the envelope detection method of 4G, redesigns the synchronization algorithm, realizes a low-cost 5G TDD synchronization method, and reduces the cost of synchronization; in the method of the present invention, by detecting the rising edge of the input signal at any time, the frame header position is obtained by using a counter calculation, and after confirming that the frame header position is valid, the correction value is calculated by the remainder method and the calibration is updated to complete the synchronization in the next cycle. Since the uplink and downlink signals of the 5G signal in the existing network are relatively random, the frame header position of the downlink signal cannot be detected at all times. By using the method of the present invention, after finding the first frame header position, any rising edge of the downlink signal is detected and can be calibrated with it. Because calibration is performed in each cycle, the clock accuracy requirement is not high. Through the calibration process of each cycle, high-precision synchronization can be achieved without relying on high-precision crystals, realizing a low-cost 5G TDD synchronization method, which reduces the operating costs of operators. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Schematic diagram of the steps of a TDD synchronization method for 5G in an embodiment;

[0037] Figure 2 is a flow chart of steps 2 to 4 in the embodiment;

[0038] Figure 3 is a signal timing diagram in an embodiment;

[0039] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0040] See Figure 1 , a TDD synchronization method for 5G of the present invention comprises the following steps:

[0041] Step 1: Set the RF control signal to the normal downlink mode, receive and process the wireless signal, and obtain a square wave signal for synchronization;

[0042] Step 2: Identify the edge position in the square wave signal, use a counter to describe the characteristics of the square wave signal, and find the frame header position based on the characteristics described by the counter and the characteristics of the existing network signal;

[0043] Step 3: Use the counter that finds the frame header to continue to detect the edge position of the square wave signal in real time until the edge position of the downlink signal after a theoretical cycle is detected;

[0044] Step 4: Compare the count value of the counter that finds the frame header when the downlink signal changes position with the theoretical period to determine whether the downlink signal changes position is the starting position of the downlink signal. If so, directly subtract the current value of the counter that finds the frame header from the value when the downlink signal changes position, so that the counter is synchronized with the existing network signal, and the counter continues to count after the update is completed; if not, calibrate the current value of the counter by calculating the relative offset of the value of the counter that finds the frame header when the downlink signal changes position relative to the downlink signal position in the existing network, so that the counter is synchronized with the existing network signal, and the counter continues to count after the update is completed;

[0045] Step 5: When the counter that finds the frame header counts to the theoretical cycle value each time, a trig pulse signal is output, and an RF control signal is output according to the trig pulse signal combined with the theoretical uplink and downlink signal characteristics in the existing network.

[0046] In the embodiment, by detecting the rising edge of the input signal at any time, the frame header position is calculated using a counter, and after confirming that the frame header position is valid, the correction value is calculated by the remainder method and the calibration is updated to complete the synchronization in the next cycle. Since the uplink and downlink signals of the 5G signal in the existing network are relatively random, the frame header position of the downlink signal cannot be detected at all times. By using the method in the embodiment, after finding the first frame header position, any rising edge of the downlink signal is detected and calibrated with it. Because calibration is performed in each cycle, the clock accuracy requirement is not high. Through the calibration process of each cycle, high-precision synchronization can be achieved without relying on high-precision crystals, realizing a low-cost 5G TDD synchronization method.

[0047] In one embodiment, the method is performed as follows:

[0048] In step 1, the antenna receives the input downlink signal, and the host computer sends configuration parameter information to the main control unit through the communication interface. The configuration parameter information includes the working frequency band, signal bandwidth, time slot ratio, cycle information, and subcarrier spacing. The RF control signal is set to the normal downlink mode, and then configured to the frequency band selection unit. The frequency band selection unit screens the antenna input to obtain the RF signal required in the configuration, passes through the gain amplifier unit, separates the signal from the low noise, and then passes through the detector tube to obtain the envelope signal of the signal. The envelope signal is divided into two paths, one is used for the main control unit to perform power detection, and the other is connected to the voltage amplifier unit. The signal after voltage amplification is compared with the reference voltage output by the main control unit to obtain a shaped square wave signal, and the square wave signal is used for signal synchronization.

[0049] See Figure 3 In step 2 of the embodiment, the specific steps are as follows:

[0050] Step 201: When the falling edge of the square wave signal is identified ( Figure 3 The first counter cnt1 starts counting, and when the rising edge of the square wave signal is recognized ( Figure 3 The second counter cnt2 starts counting and reads the value of the first counter cnt1 at the same time to determine whether the value of the first counter cnt1 meets the uplink duration T_UL. The error needs to be considered and the error range is determined according to the actual situation. If the requirement is met, step 202 is entered; if not, the first counter cnt1 is cleared and the second counter cnt2 is cleared, and the next falling edge is continued to be waited until the requirement is met;

[0051] Step 202: The second counter cnt2 continues to count, the first counter cnt1 is cleared, and the next falling edge ( Figure 3 The first counter cnt1 starts counting again, and reads the value of the second counter cnt2 to determine whether the value of the second counter cnt2 meets the error range of the downlink duration T_DL. The error range is determined according to the actual situation. If it meets the error range, go to step 3; if not, the second counter cnt2 continues to count, and the next rising edge ( Figure 3 The sequence number 4 in the sequence number 4) is reached, the value of the first counter cnt1 is read, and it is determined whether the value of the first counter cnt1 satisfies the error range of the downlink duration T_DL ( Figure 3 5); if not satisfied, the first counter cnt1 and the second counter cnt2 are cleared to zero respectively, and step 201 is executed again;

[0052] In the embodiment, step 3 is specifically performed as follows: the first counter is cleared, the second counter continues to count, and the next edge change position is detected. When the edge change position is reached, the value T_n of the second counter is read and the first counter starts counting. The rising edge is used for judgment in the embodiment. In other embodiments, the falling edge can also be used to judge whether the value of the second counter is the edge change position of the next cycle. If satisfied, the first timer is turned on for timing. If there is no edge change during the timing duration of the first timer, the value T_n of the second counter is valid, recorded as T`, and the value of the second counter is subtracted from the period T and then continues to count and execute step 4 to clear the first counter; if there is an edge change during the timing duration of the first timer, T_n is cleared, the first counter is cleared, the first timer is turned off, and step 3 is repeated until a valid T` value is obtained.

[0053] In the embodiment, whether the value of the second counter is the edge change position of the next cycle is determined as follows:

[0054] Determine whether the value T_n of the second counter satisfies:

[0055] T_st <T_n<T_sp

[0056] Among them, T_st is expressed as: T_st=period T-T_symb+error range, where the error range is determined according to the actual situation; T_sp=T+T_DL-T_symb+error range, where the error range is determined according to the actual situation, T_DL is the downlink duration, and T_symb is the symbol duration.

[0057] In the embodiment, step 4 is specifically performed as follows:

[0058] Compare and obtain the relationship between the count value T' of the second counter and the period T when the downlink signal changes position. If T' is less than or equal to the T value, the first updating method is adopted, and the value of the second counter directly updated is expressed as c2=c2'+TT'; if T' is greater than the T value, the second updating method is adopted, and the value of the updated second counter is expressed as c2=c2'+temp, where c2 is the count value of the second counter after the update, c2' is the count value of the second counter before the update, and temp is the relative offset. The second counter continues to count after the updated value, and enters step 5;

[0059] The relative offset temp is calculated as follows:

[0060] Take the modulus of the configured period T through the effective T` to obtain the first remainder;

[0061] According to the configuration information, a duration of one symbol is obtained, a first remainder is modulo the duration of one symbol to obtain a second remainder, and the first remainder is rounded to the duration of one symbol to obtain a first integer;

[0062] The second remainder is compared with the error value of the symbol duration. The error value is the difference between the actual clock and the theoretical clock in one cycle. There are three cases:

[0063] Case 1: If the second remainder is greater than or equal to 1 symbol duration minus the error value, the relative offset temp = T_symb-dat2;

[0064] Case 2: If the second remainder is less than 1 symbol duration minus the error value and is less than or equal to the error value, the relative offset temp = -dat2;

[0065] The third case: if the second remainder is less than 1 symbol duration minus the error value but greater than the error value, the relative offset temp = m*T_symb*er / T+er;

[0066] Among them, m is the first integer, T_symb is the length of one symbol, er is the error value, the error value is the difference between the actual clock and the theoretical clock in one cycle, T is the theoretical cycle value, and dat2 is the second remainder.

[0067] In the actual calculation of temp value, in order to avoid floating point operations, the values ​​involved can be expanded by 10 n times, and then reduce it by 10 when calculating the relative offset. n times to get the accurate relative offset temp.

[0068] In the embodiment, step 5 is specifically performed as follows:

[0069] When the second counter counts to the theoretical cycle each time, it outputs a trig pulse signal;

[0070] Output RF control signal according to trig pulse signal and uplink and downlink signal duration of configuration information;

[0071] Steps 3 to 5 are executed cyclically, and the RF control signal state is changed from the normal downlink mode to the switching mode to realize the switching of uplink and downlink signals, which is synchronized with the existing network signal.

[0072] The following is an example of the current mobile 2.6GHz, 5ms single cycle frame structure, the configuration parameter information includes: working frequency band = 2.6GHz, signal bandwidth = 100MHz, cycle information is 5ms single cycle, subcarrier spacing = 30kHz, time slot ratio = 7:2, symbol configuration = 6:4:4. From the configuration information, it can be obtained that: cycle T = 5ms, downlink duration T_DL = 3.714285ms, uplink duration T_UL = 1.14285ms, one symbol duration T_symb = 35.7us, and the period, downlink duration, uplink duration, and symbol duration obtained from the configuration parameter information are well known to those skilled in the art, and will not be repeated here.

[0073] The execution of step 1 is the same as the above embodiment. In step 201 of the embodiment, when the falling edge of the square wave signal is identified, the first counter cnt1 starts counting, and when the rising edge of the square wave signal is identified, the second counter cnt2 starts counting, and the value of the first counter cnt1 is read at the same time to determine whether the value of the first counter cnt1 meets the error range of the uplink duration T_UL, T_UL is 1.14285ms, and the error range is determined according to the actual situation. If the requirements are met, step 202 is entered; if not, the first counter cnt1 is cleared and waits for the next falling edge again until the requirements are met;

[0074] Step 202: The second counter cnt2 continues to count, and the first counter cnt1 is cleared. When the next falling edge arrives, the first counter cnt1 restarts counting and reads the value of the second counter cnt2 to determine whether the value of the second counter cnt2 meets the error range of the downlink duration T_DL. The downlink duration T_DL is determined according to the frame structure, which is 3.71428ms in the example. The error range is determined according to the actual situation. If cnt2 meets the error range, go to step 3; if not, the second counter cnt2 continues to count. When the next rising edge arrives, read the value of the first counter cnt1 to determine whether the value of the second counter cnt2 meets the error range of the downlink duration T_DL. Whether the value of nt1 satisfies less than 2*T_symb, 2*T_symb is the glitch value configured in the embodiment, the range of the glitch value is determined according to the actual situation, T_symb is determined according to the time slot configuration, and T_symb in the example is 35.7us. If cnt1 is less than 2*T_symb, the second counter cnt2 continues to count, the first counter cnt1 is cleared, and step 202 is continued until the value of the second counter cnt2 satisfies the error range of the downlink duration T_DL; if cnt1 does not meet the requirements, the first counter cnt1 and the second counter cnt2 are cleared respectively, and step 201 is re-executed.

[0075] The main goal of step 2 is to determine the frame header position by identifying the rising edge and falling edge of the square wave signal combined with the theoretical characteristics of the signal. In the embodiment, when the falling edge is detected, the counter cnt1 starts counting, and when the next rising edge is detected, the counter cnt2 starts counting and reads the value of cnt1 to check whether the value of cnt1 meets the error range of the uplink time T_UL. If it does, the value of cnt2 is checked to check whether the value of cnt2 meets the error range of the downlink duration T_DL. If it does, it is considered that the frame header position has been found.

[0076] Step 3: The first counter cnt1 is cleared, and the second counter cnt2 continues to count. Each rising edge is detected. When the rising edge arrives, the value T_n of the second counter cnt2 is read and the first counter cnt1 starts counting. It is determined whether the value of the second counter is the edge change position of the next cycle. The specific determination is as follows:

[0077] Determine whether the value T_n of the second counter satisfies:

[0078] T_st <T_n<T_sp

[0079] Wherein, T_st is expressed as: T_st=period T-T_symb+error range, where the error range is determined according to the actual situation; T_sp=T+T_DL-T_symb+error range, where the error range is determined according to the actual situation, T_DL is the downlink duration, and T_symb is the symbol duration;

[0080] If cnt2 does not meet the requirements, T_n is cleared, cnt1 is cleared, cnt2 continues to count, and step 3 is repeated;

[0081] If cnt2 meets the requirement, the first timer is started for timing, and the timing duration of the first timer = T_symb-error, and the error is determined according to the situation; if there is no edge change during the timing duration of the first timer, the value T_n of the second counter cnt2 is valid, recorded as T`, and the value of the second counter cnt2 is subtracted from the period T and then continues to count. This setting avoids multiple cnt2 values ​​that meet T`, resulting in repeated updates. Therefore, the period T value is subtracted first, and then step 4 is executed to clear the first counter cnt1;

[0082] If there is an edge change during the timing period of the first timer, T_n is cleared, the first counter cnt1 is cleared, the first timer is turned off, and step 3 is executed again until a valid T` value is obtained.

[0083] In step 3, T_n is considered valid, indicating that a valid edge change position after one cycle has been found, which can be used as a reference point for synchronization. By determining whether T_n meets the conditions between T_st and T_sp, the identified signal can be avoided in the uplink signal period. Once T_n is confirmed to be valid, the next step is to use the first timer to eliminate glitch edge changes. If no other edge changes occur within the duration of the first timer, the edge change is not a glitch edge change and can be used for synchronization calibration. In step 2, cnt1 and cnt2 are used for counting, and in step 3, cnt1 and cnt2 are reused, resources can be reused, hardware requirements are reduced, and steps 2 and 3 are coordinated. Step 2 is to find the frame header position, and step 3 is to find the edge change position that can be corrected;

[0084] Step 4: Compare and obtain the relationship between the count value T' of the second counter and the theoretical period T when the downlink signal changes position, including:

[0085] (1) If T` is less than or equal to the T value, it is considered that the position of the downlink signal edge change is the starting position of the downlink signal. The value of the updated second counter is expressed as c2 = c2` + T - T`. After updating the value of the second counter, it continues to count and enters step 5. There are two conditions for T` to be valid: Condition 1 is T_st < T` = T_n < T_sp, where T_st = the period T - T_symb + error, and Condition 2 is that there is no edge change within approximately one symbol duration at the edge change position, that is, the edge change has been maintained for approximately one symbol duration. These two conditions determine the value range of T`. Then, if T` is less than T, it can be judged that the edge change position is the edge change position of the first downlink signal within the period T, that is, the frame header position of one period. There is a deviation in the counter, and its deviation = T - T`. Therefore, to update the value of the second counter, only when the value of the second counter is added with the error value is needed. Since in the existing network, the period T has arrived but the counter has not counted up to T, it means that the clock of the counter is too fast and the current value of the counter needs to be made larger. Therefore, the formula c2 = c2` + T - T` is obtained;

[0086] (2) If T` is greater than the T value, it is considered that the position of the downlink signal edge change is not the starting position of the downlink signal. It is necessary to calculate the relative offset of the value of the second counter when finding the frame header at the position of the downlink signal edge change with respect to the position of the downlink signal in the existing network to calibrate the current value of the second counter. The value of the updated second counter is expressed as c2 = c2` + temp, where c2 is the count value of the updated second counter, c2` is the count value of the second counter before update, and temp is the relative offset. After updating the value of the second counter, it continues to count and enters step 5;

[0087] The relative offset temp is calculated as follows:

[0088] Take the remainder of the configured period T by the valid T` to obtain the first remainder;

[0089] According to the configuration information, obtain the duration of 1 symbol. Take the remainder of the first remainder by the duration of 1 symbol to obtain the second remainder, and take the integer part of the first remainder by the duration of 1 symbol to obtain the first integer;

[0090] Compare the second remainder with the error value of the symbol duration. The error value is the difference between the actual clock and the theoretical clock for counting one period. There are the following three cases:

[0091] The first case: If the second remainder is greater than or equal to 1 symbol duration minus the error value, the relative offset temp = T_symb - dat2;

[0092] The second case: If the second remainder is less than 1 symbol duration minus the error value and less than or equal to the error value, then the relative offset temp = -dat2;

[0093] The third case: if the second remainder is less than 1 symbol duration minus the error value but greater than the error value, the relative offset temp = m*T_symb*er / T+er;

[0094] Among them, m is the first integer, T_symb is the length of one symbol, er is the error value, the error value is the difference between the actual clock and the theoretical clock in one cycle, T is the theoretical cycle value, and dat2 is the second remainder.

[0095] According to the configuration conditions, a 5ms cycle in the current network consists of 140 symbols, and each edge change position is an integer multiple of the duration of a symbol. To obtain the deviation closest to the theoretical symbol, calculation and judgment are required. Therefore, three cases are divided. The first case is that the value calculated by the second remainder is on the left side of the current symbol duration, and the position of the nearest symbol duration is relatively small, indicating that when obtaining the downlink effective edge change position, the clock is too fast, so the relative offset is 35.7-second remainder;

[0096] The second case is that the value counted by the second remainder is on the right side of the current symbol duration, indicating that the downward effective edge has changed, the clock is slower, and more numbers are recorded, so the relative offset is the negative second remainder; in the third case, when the downward edge changes position, the number read is far from the previous symbol position and the next symbol position. As mentioned earlier, the error of the counter clock relative to the theoretical clock for one cycle is er. If the second remainder falls between the two symbols and is outside the error range, it means that the point read by the main control unit is not the point of the normal symbol. Therefore, the calibration method cannot use the method of adding and subtracting deviation values. The estimation method can be used. If one cycle is recorded as er, then the deviation greater than one cycle can be calculated by the third formula.

[0097] Example 1: Assume that the identified T` is T`=5.4594ms. T` is greater than the T value, so it cannot be updated directly. The second update method, namely c2=c2`+temp, needs to be adopted.

[0098] According to the calculation, the first remainder is 5.4594ms%5ms=0.4594ms; the second remainder is 0.4594ms*1000%35.7us=31us, and the first integer is 13. Assuming that the error between the counter clock and the theoretical clock for one cycle of 5ms is estimated to be 5us.

[0099] Since 31us>35.7us-5us, the first case is met, so the calculation formula is temp=35.7us-31us=4.7us.

[0100] Then the second counter update value = current value + 4.7us.

[0101] Example 2: Assume that the identified T` is T`=8.2ms. T` is greater than the T value, so it cannot be updated directly. The second update method, namely c2=c2`+temp, needs to be adopted.

[0102] According to the calculation, the first remainder is 8.2ms%5ms=3.2ms; the second remainder is 3.2ms*1000%35.7us=22.7us, and the first integer is 89. Assuming that the error between the counter clock and the theoretical clock for one cycle of 5ms is estimated to be 5us.

[0103] Since 5us<22us<35.7us-5us, the third case is met, so the calculation formula is temp=m*35.7us*5us / 5ms+5us=8.17us.

[0104] Then the second counter update value = current value + 8.17us.

[0105] In step 4, when the downlink signal edge change position is obtained according to step 3, the count value of the second counter is compared with the theoretical period and calculated, and the second counter is synchronously adjusted according to the calculated value to ensure accurate synchronization of the signal. Through the method in the embodiment, even if the uplink and downlink signals in the existing network are relatively random, as long as a valid frame header position is found, any rising edge or falling edge in the subsequent cycle can be calibrated. The implementation only illustrates the rising edge method, which can be changed to the falling edge or the rising edge and the falling edge in other examples. Any edge change can be calibrated. This method can effectively avoid missing the calibration point due to the failure to identify the rising edge of the downlink signal in the next cycle when the signal in the existing network is weak. As long as it is any non-glitch edge change of the downlink signal, it can be calibrated. The steps are simple, flexible and can adapt to signal changes, achieving low-cost and high-precision synchronization.

[0106] Step 5: When the second counter counts to T_trig, a trig pulse signal is generated, and an RF control signal is output according to the trig pulse signal and the uplink and downlink signal duration of the configuration information. Repeat steps 3-5, and the RF control signal state changes from the normal downlink mode to the switching mode to achieve the switching of the uplink and downlink signals, thereby achieving synchronization with the existing network signal.

[0107] In an embodiment of the present invention, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the TDD synchronization method for 5G as described above is implemented.

[0108] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected by a bus. Among them, 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network 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 TDD synchronization method for 5G is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0109] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instruction.

[0110] The processor can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The processor can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0111] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In an embodiment of the present invention, a computer-readable storage medium is further provided, on which a program is stored, characterized in that when the program is executed by a processor, the TDD synchronization method for 5G as described above is implemented.

[0113] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, computer devices, or computer program products. Therefore, the embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Moreover, the embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0114] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, computer devices, or computer program products according to the embodiments of the present invention. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in the flowcharts and / or.

[0115] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in the flowchart.

[0116] In an embodiment of the present invention, a computer program product is further provided, comprising a computer program / instruction, wherein the computer program / instruction implements the steps of the above method when executed by a processor.

[0117] In actual application, the above-mentioned computer program products include but are not limited to: smart phones, desktop computers, laptop computers, tablet computers, base stations, host computers and server platforms, etc., and are not specifically limited here.

[0118] The above is a detailed introduction to the application of the TDD synchronization method, computer device, computer-readable storage medium, and computer program product for 5G provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A TDD synchronization method for 5G, characterized in that: The following steps are involved: Step 1: Set the RF control signal to the normal downlink mode, receive and process the wireless signal, and obtain a square wave signal for synchronization; Step 2: Identify the edge position in the square wave signal, use a counter to describe the characteristics of the square wave signal, and find the frame header position based on the characteristics described by the counter and the characteristics of the existing network signal; Step 3: Use the counter that finds the frame header to continue to detect the edge position of the square wave signal in real time until the edge position of the downlink signal after a theoretical cycle is detected; Step 4: Compare the count value of the counter that finds the frame header when the downlink signal changes position with the theoretical period to determine whether the downlink signal changes position is the starting position of the downlink signal. If so, directly subtract the current value of the counter that finds the frame header from the value when the downlink signal changes position, so that the counter is synchronized with the existing network signal, and the counter continues to count after the update is completed; if not, calibrate the current value of the counter by calculating the relative offset of the value of the counter that finds the frame header when the downlink signal changes position relative to the downlink signal position in the existing network, so that the counter is synchronized with the existing network signal, and the counter continues to count after the update is completed; Step 5: When the counter that finds the frame header position counts to the theoretical cycle value each time, a trig pulse signal is output, and an RF control signal is output based on the trig pulse signal combined with the theoretical uplink and downlink signal characteristics in the existing network.

2. A TDD synchronization method for 5G according to claim 1, characterized in that: Step 1 is specifically performed as follows: the antenna receives the input signal, receives the configuration parameter information, filters the input signal according to the configuration parameter information, obtains the RF signal required in the configuration, distinguishes the signal from the low noise area through gain amplification, and then obtains the envelope signal of the signal through the detector tube. The envelope signal is compared with the reference voltage after voltage amplification to obtain a square wave signal.

3. A TDD synchronization method for 5G according to claim 2, characterized in that: Configuration parameter information includes operating frequency band, signal bandwidth, time slot ratio, cycle information, and subcarrier spacing.

4. A TDD synchronization method for 5G according to claim 3, characterized in that: Step 2 is performed as follows: Step 201: When the falling edge of the square wave signal is identified, the first counter starts counting, and when the rising edge of the square wave signal is identified, the second counter starts counting, and the value of the first counter is read at the same time to determine whether the value of the first counter meets the uplink duration. If the requirement is met, proceed to step 202; if not, the first counter is reset to zero, the second counter is reset to zero, and the next falling edge is waited again until the requirement is met; Step 202: the second counter continues to count, the first counter is cleared, and when the next falling edge arrives, the first counter restarts counting and reads the value of the second counter to determine whether the value of the second counter meets the downlink duration. If so, it is considered that the frame header position is found and proceeds to step 3; if not, the second counter continues to count, and when the next rising edge arrives, reads the value of the first counter to determine whether the value of the first counter meets the burr value. If so, the second counter continues to count, the first counter is cleared, and step 202 is repeated until the value of the second counter meets the downlink duration. If the first counter does not meet the requirement, the first counter and the second counter are reset to zero respectively, and step 201 is executed again.

5. A TDD synchronization method for 5G according to claim 4, characterized in that: Step 3 is specifically performed as follows: the first counter is cleared, the second counter continues to count, and the next edge change position is detected. When the edge change position is reached, the value T_n of the second counter is read and the first counter starts counting. It is determined whether the value of the second counter is the edge change position of the next cycle. If it is satisfied, the first timer is turned on for timing. If there is no edge change during the timing duration of the first timer, the value T_n of the second counter is valid, recorded as T`, and the value of the second counter is subtracted from the period T and then continues to count and execute step 4 to clear the first counter; if there is an edge change during the timing duration of the first timer, T_n is cleared, the first counter is cleared, the first timer is turned off, and step 3 is repeated until a valid T` value is obtained.

6. A TDD synchronization method for 5G according to claim 5, characterized in that: Step 4 is performed as follows: Compare and obtain the relationship between the count value T' of the second counter and the period T when the downlink signal changes position. If T' is less than or equal to the T value, the value of the second counter directly updated is expressed as c2 = c2' + TT'; if T' is greater than the T value, the value of the updated second counter is expressed as c2 = c2' + temp, where c2 is the count value of the second counter after the update, c2' is the count value of the second counter before the update, and temp is the relative offset. The second counter continues to count after the value is updated, and enters step 5; The relative offset temp is calculated as follows: Take the modulus of the configured period T through the effective T` to obtain the first remainder; According to the configuration information, a duration of one symbol is obtained, a first remainder is modulo the duration of one symbol to obtain a second remainder, and the first remainder is rounded to the duration of one symbol to obtain a first integer; The second remainder is compared with the error value of the symbol duration, the error value is the difference between the actual clock and the theoretical clock for one cycle. If the second remainder is greater than or equal to 1 symbol duration minus the error value, the relative offset temp = T_symb-dat2; if the second remainder is less than 1 symbol duration minus the error value and less than or equal to the error value, the relative offset temp = -dat2; if the second remainder is less than 1 symbol duration minus the error value but greater than the error value, the relative offset temp = m*T_symb*er / T+er, wherein m is the first integer, T_symb is 1 symbol duration, er is the error value, T is the theoretical cycle value, and dat2 is the second remainder.

7. A TDD synchronization method for 5G according to claim 6, characterized in that: Step 5 is performed as follows: When the second counter counts to the theoretical cycle each time, it outputs a trig pulse signal; Output RF control signal according to trig pulse signal and uplink and downlink signal duration of configuration information; Steps 3 to 5 are executed cyclically, and the RF control signal state is changed from the normal downlink mode to the switching mode to realize the switching of uplink and downlink signals, which is synchronized with the existing network signal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the TDD synchronization method for 5G as described in claim 1 is implemented.

9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the TDD synchronization method for 5G as described in claim 1 is implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to claim 1 are implemented.

Citation Information

Cited By

  • 5G TDD synchronization method and device for repeater

    CN120417008A