Communication method and device of base station and repeater, storage medium and electronic device
By detecting frequency offset in the repeater station and dynamically adjusting the frequency range, the communication signal loss problem caused by crystal oscillator aging is solved, and stable communication in complex environments is achieved.
Patent Information
- Application Number
- CN202510378904.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-07-08
AI Technical Summary
In TDD repeater stations, crystal oscillator aging leads to frequency offset, affects communication synchronization, and leads to signal loss. The existing GPS-based frequency calibration scheme is expensive and fails in complex environments, resulting in a high communication signal loss rate between the base station and the repeater station.
By detecting the frequency offset state in the repeater station, adjusting the reference frequency range to restore time synchronization, using frequency distribution parameters and time-dependent values to judge the synchronization state, and dynamically adjusting the frequency range to maintain communication.
In the GPS-free environment, the communication signal loss rate between the base station and the repeater station is effectively reduced, ensuring stable communication and avoiding communication interruptions.
Smart Images

Figure CN120282312A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a communication method and device, a storage medium, and an electronic device for a base station and a repeater. Background Art
[0002] In a TDD (Time Division Duplex) repeater, as the operation time extends, the natural aging phenomenon of the internal crystal oscillator will cause frequency deviation. When this deviation exceeds the designed range, it will directly affect the normal operation of the TDD synchronization function, resulting in the repeater being unable to receive correct signals, and further leading to signal loss, affecting the communication quality and stability of the repeater. In related technologies, frequency synchronization is achieved through a GPS (Global Positioning System) module to overcome the natural aging phenomenon of the crystal oscillator. However, this method has high costs, high complexity, and is difficult to be widely applied in repeaters. At the same time, in some complex geographical environments or enclosed spaces, the repeater may not be able to receive GPS signals, making the GPS-based frequency calibration scheme ineffective, which will also lead to signal loss in the communication between the base station and the repeater, and further resulting in a high signal loss rate in the communication between the base station and the repeater.
[0003] In view of the problems such as the high signal loss rate in the communication between the base station and the repeater in related technologies, no effective solution has been proposed yet. Summary of the Invention
[0004] Embodiments of this application provide a communication method and device, a storage medium, and an electronic device for a base station and a repeater, so as to at least solve the problems such as the high signal loss rate in the communication between the base station and the repeater in related technologies.
[0005] According to an embodiment of the present application, a communication method between a base station and a repeater is provided. The method is applied to the repeater, and the repeater is configured to communicate with the base station according to a stored reference frequency range, including: sampling a signal transmitted by the base station to obtain a sampled signal; detecting a current frequency offset state of the repeater according to a frequency distribution parameter of the sampled signal and the reference frequency range according to a reference detection period, where the frequency distribution parameter is used to indicate an actual distribution of the frequency of the sampled signal in a frequency spectrum, and the frequency offset state is used to indicate whether a frequency offset occurs in the sampled signal within the reference frequency range; when the frequency offset state is used to indicate that the frequency offset occurs in the sampled signal, detecting a time synchronization parameter between the base station and the repeater, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization; when the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization, adjusting the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range.
[0006] In an exemplary embodiment, the detecting a current frequency offset state of the repeater according to a frequency distribution parameter of the sampled signal and the reference frequency range according to a reference detection period includes: screening out target signals whose frequencies fall within the reference frequency range from the sampled signal according to the frequency distribution parameter; detecting whether the frequencies of the target signals are symmetrically distributed within the reference frequency range; when it is detected that the frequencies of the target signals are not symmetrically distributed within the reference frequency range, determining that the frequency offset state is used to indicate that the frequency offset occurs in the sampled signal within the reference frequency range; when it is detected that the frequencies of the target signals are symmetrically distributed within the reference frequency range, determining that the frequency offset state is used to indicate that the frequency offset does not occur in the sampled signal within the reference frequency range.
[0007] In an exemplary embodiment, the detecting a time synchronization parameter between the base station and the repeater includes: obtaining a time-related value between the base station and the repeater, where the time-related value is used to indicate a synchronization degree of communication time between the repeater and the base station, and the larger the time-related value is, the higher the synchronization degree of communication time between the repeater and the base station is; comparing the time-related value with a first correlation threshold; when the time-related value is greater than the first correlation threshold, determining that the time synchronization parameter is used to indicate that the repeater and the base station maintain communication time synchronization; when the time-related value is less than or equal to the first correlation threshold, determining that the time synchronization parameter is used to indicate that the repeater and the base station do not maintain communication time synchronization.
[0008] In an exemplary embodiment, obtaining the time-related value between the base station and the repeater includes: receiving the sequence signal sent by the base station according to the reference communication time to obtain the actual sequence signal, where the base station is set to send the target sequence signal to the repeater according to the target communication time, the target sequence signal includes a target sequence, and the target sequence is stored in the repeater; detecting the correlation value between the actual sequence included in the actual sequence signal and the target sequence to obtain the time-related value, where the correlation value is used to indicate the degree of consistency between the actual sequence and the target sequence, and the higher the correlation value, the higher the degree of consistency between the actual sequence and the target sequence.
[0009] In an exemplary embodiment, after determining that the time synchronization parameter is used to indicate that the repeater and the base station maintain communication time synchronization, the method further includes: comparing the time-related value with a second correlation threshold, where the second correlation threshold is greater than the first correlation threshold; when the time-related value is less than or equal to the second correlation threshold, adjusting the reference detection period for detecting the current frequency offset state of the repeater to a target detection period, where the target detection period is less than the reference detection period; when the time-related value is greater than the second correlation threshold, continue to maintain detecting the current frequency offset state of the repeater according to the reference detection period based on the frequency distribution parameter of the sampling signal and the reference frequency range.
[0010] In an exemplary embodiment, adjusting the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range further includes: determining the actual center frequency point and the actual frequency bandwidth of the sampling signal according to the frequency distribution parameter, where the actual center frequency point is the center frequency value of the actual frequency range, the actual frequency bandwidth is the width of the actual frequency range, and the actual frequency range is the distribution range of the frequency of the sampling signal indicated by the frequency distribution parameter in the spectrum; adjusting the corresponding reference center frequency point and reference frequency bandwidth of the repeater according to the actual center frequency point and the actual frequency bandwidth to obtain the target frequency range, where the reference center frequency point is the center frequency value of the reference frequency range, and the reference frequency bandwidth is the width of the reference frequency range.
[0011] In an exemplary embodiment, sampling the signal transmitted by the base station to obtain a sampling signal includes: collecting a plurality of candidate signals from the signal transmitted by the base station; detecting the signal power intensity and the signal duration of each of the plurality of candidate signals; screening out the sampling signals whose signal power intensity is greater than or equal to a preset power intensity and whose signal duration is greater than or equal to a preset duration from the plurality of candidate signals.
[0012] According to another embodiment of the embodiments of the present application, a communication device between a base station and a repeater is further provided. The device is applied to the repeater, and the repeater is configured to communicate with the base station according to a stored reference frequency range, and includes: a sampling module, configured to sample a signal transmitted by the base station to obtain a sampled signal; a first detection module, configured to detect a current frequency offset state of the repeater according to a frequency distribution parameter of the sampled signal and the reference frequency range according to a reference detection period, where the frequency distribution parameter is used to indicate an actual distribution of the frequency of the sampled signal in a frequency spectrum, and the frequency offset state is used to indicate whether a frequency offset occurs in the sampled signal within the reference frequency range; a second detection module, configured to detect a time synchronization parameter between the base station and the repeater when the frequency offset state is used to indicate that the sampled signal has a frequency offset, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization; and an adjustment module, configured to adjust the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range when the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium, where the computer program is configured to execute the above-mentioned communication method between the base station and the repeater when running.
[0014] According to another aspect of the embodiments of the present application, an electronic device is further provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the above-mentioned communication method between the base station and the repeater through the computer program.
[0015] In the embodiment of the present application, during the communication between the repeater and the base station within the stored reference frequency range, it is detected whether the repeater is currently in a frequency offset state. Once a frequency offset occurs, the detection of time synchronization parameters is performed to determine whether the communication time between the repeater and the base station is synchronized. In the case where the communication time between the repeater and the base station is not synchronized, the reference frequency range is adjusted according to the frequency distribution parameters, so as to restore the communication time synchronization with the base station, enabling the repeater to accurately receive the signals transmitted by the base station. Through the above method, the present application can take corresponding frequency adjustment measures according to the communication time synchronization state when the repeater has a frequency offset, solving the problems such as high signal loss rate in the communication between the base station and the repeater caused by crystal oscillator aging or environmental factors in the related art. By dynamically adjusting the frequency range, it is ensured that stable communication with the base station can be maintained even in an environment without GPS, avoiding the risk of communication interruption, and achieving the technical effect of reducing the signal loss rate in the communication between the base station and the repeater. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 It is a schematic diagram of the hardware environment of a communication method between a base station and a repeater according to an embodiment of the present application;
[0019] Figure 2 It is a flowchart of a communication method between a base station and a repeater according to an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of an optional process for collecting sampling signals according to an embodiment of the present application;
[0021] Figure 4 It is a schematic diagram of an optional method for detecting the current frequency offset state of the repeater according to an embodiment of the present application;
[0022] Figure 5 It is a schematic diagram of an optional adjustment of the stored reference frequency range according to an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of an optional communication process between a base station and a repeater according to an embodiment of the present application;
[0024] Figure 7 It is a structural block diagram of a communication device between a base station and a repeater according to an embodiment of the present application. Detailed implementation manners
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0027] The method embodiments provided by the embodiments of the present application can be executed on a computer terminal, a device terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 It is a schematic diagram of the hardware environment of a communication method between a base station and a repeater according to an embodiment of the present application. As Figure 1 shown, the computer terminal may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown in the figure is only for illustration and does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal may further include more or fewer components than those Figure 1 shown in the figure, or have the same functions as those Figure 1 shown in the figure or different configurations with more functions than those Figure 1 shown in the figure.
[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the message push sending method in the embodiments of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above-mentioned method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the computer terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.
[0029] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of a computer terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.
[0030] In this embodiment, a communication method between a base station and a repeater is provided, which is applied to the above-mentioned computer terminal. Figure 2 It is a flowchart of a communication method between a base station and a repeater according to an embodiment of the present application. The repeater is set to communicate with the base station according to a stored reference frequency range, as Figure 2 shown, and this process includes the following steps:
[0031] Step S202, sample the signal transmitted by the base station to obtain a sampled signal;
[0032] Step S204, according to a reference detection period, detect the current frequency offset state of the repeater according to the frequency distribution parameter of the sampled signal and the reference frequency range, where the frequency distribution parameter is used to indicate the actual distribution of the frequency of the sampled signal in the spectrum, and the frequency offset state is used to indicate whether a frequency offset has occurred in the sampled signal within the reference frequency range;
[0033] Step S206, when the frequency offset state is used to indicate that the sampled signal has had the frequency offset, detect the time synchronization parameter between the base station and the repeater, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization;
[0034] Step S208, when the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization, adjust the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range.
[0035] Through the above steps, during the process of the repeater communicating with the base station within the stored reference frequency range, it is detected whether the repeater is currently in a frequency offset state. Once a frequency offset occurs, the detection of the time synchronization parameter is performed to determine whether the communication time between the repeater and the base station is synchronized. When the communication time between the repeater and the base station is not synchronized, according to the frequency distribution parameter, the reference frequency range is adjusted, so as to restore the communication time synchronization with the base station, enabling the repeater to accurately receive the signals transmitted by the base station. Through the above method, the present application can take corresponding frequency adjustment measures according to the communication time synchronization state when there is a frequency offset in the repeater, solving the problems such as the high signal loss rate in the communication between the base station and the repeater caused by crystal oscillator aging or environmental factors in the related art. By dynamically adjusting the frequency range, it is ensured that stable communication with the base station can be maintained even in an environment without GPS, avoiding the risk of communication interruption, and achieving the technical effect of reducing the signal loss rate in the communication between the base station and the repeater.
[0036] In the technical solution provided in the above step S202, the reference frequency range can be, but is not limited to, calculated according to a preset reference center frequency point and a reference frequency bandwidth, and the reference center frequency point and the reference frequency bandwidth can be, but are not limited to, pre-configured parameters. For example, for a repeater designed with a reference center frequency point of 2 GHz and a reference frequency bandwidth of 100 MHz, its reference frequency range is from 1.95 GHz to 2.05 GHz, that is, the center frequency of the reference frequency range is 2 GHz, and the width is 100 MHz (50 MHz on the left side of the center frequency + 50 MHz on the right side of the center frequency).
[0037] Optionally, in this embodiment, the repeater can communicate with the base station according to the stored reference frequency range. Taking the reference frequency range from 1.95 GHz to 2.05 GHz as an example, the repeater communicates with the base station according to the stored reference frequency range from 1.95 GHz to 2.05 GHz.
[0038] In an exemplary embodiment, the signal transmitted by the base station can be sampled, but not limited to, in the following manner to obtain a sampled signal: collect a plurality of candidate signals from the signal transmitted by the base station; detect the signal power intensity and signal duration of each of the plurality of candidate signals; and screen out the sampled signals from the plurality of candidate signals whose signal power intensity is greater than or equal to a preset power intensity and whose signal duration is greater than or equal to a preset duration.
[0039] Optionally, in this embodiment, the sampled signal can be, but not limited to, the downlink signal transmitted by the base station to the repeater.
[0040] Optionally, in this embodiment, the RRU (Remote Radio Unit) deployed by the base station can transmit, but not limited to, the downlink signal to the repeater. The repeater is equipped with a proximal unit AU (Amplifier Unit) and an FPGA (Field-Programmable Gate Array). The repeater can sample, but not limited to, the downlink signal transmitted by the base station through the FPGA to obtain a plurality of time-domain sampled signals; perform FFT (Fast Fourier Transform) on the plurality of time-domain sampled signals to obtain a plurality of frequency-domain sampled signals, and determine the plurality of frequency-domain sampled signals as a plurality of candidate signals.
[0041] Optionally, in this embodiment, taking the center frequency of the repeater as 2 GHz and the frequency bandwidth as 100 MHz, that is, the reference frequency range is from 1.95 GHz to 2.05 GHz as an example. Under normal circumstances, the communication time between the base station and the repeater will be synchronized. After performing FFT on the downlink signal (sampled signal) transmitted by the base station to the repeater through the FPGA, theoretically, the frequencies of the downlink signals will all fall within the reference frequency range, that is, the frequencies of the signals carrying services will fall within the frequency range of 1.95 GHz to 2.05 GHz.
[0042] Optionally, in this embodiment, during the process of sampling the signal transmitted by the base station to obtain a sampled signal, the sampled signal can be, but not limited to, the signal carrying services transmitted by the base station to the repeater. In order to avoid noise signals being collected and mixed into the sampled signal, this solution sets screening conditions for the signal power intensity and signal duration, that is, a signal whose signal power intensity is greater than or equal to a preset power intensity (for example, the preset power intensity is -30 dB (Decibel)) and whose signal duration is greater than or equal to a preset duration (for example, the preset duration is 1 ms (millisecond)) can be regarded as a signal carrying services, that is, a sampled signal.
[0043] Through the embodiments of the present application, by comprehensively considering the power intensity and duration of signals, effective sampling of the base station transmission signals is achieved, the signal processing flow is optimized, and occasional noise interference is eliminated, thereby significantly improving the accuracy and reliability of signal sampling.
[0044] Figure 3 FIG. is a schematic flow chart of an optional process for collecting sampled signals according to an embodiment of the present application. As Figure 3 shown, the time-domain sampled signal is a signal in the time domain. The variation of the amplitude of the time-domain sampled signal with time can be represented by a time-domain sampled signal waveform diagram. In the time-domain sampled signal waveform diagram, the horizontal axis is time and the vertical axis is the amplitude of the signal. In the frequency domain, the actual distribution of the frequency-domain sampled signal in the frequency spectrum can be represented by a frequency-domain sampled signal spectrum diagram. In the frequency-domain sampled signal spectrum diagram, the horizontal axis is the frequency point and the vertical axis is the power intensity at the frequency point, with the unit of dB.
[0045] Optionally, but not limited to, through FFT, the time-domain sampled signal can be converted to the frequency domain to obtain a frequency-domain sampled signal, and the frequency-domain sampled signal is determined as a candidate signal (for example, a1 to a7 in the frequency-domain sampled signal spectrum diagram (a) are determined as candidate signals). Among them, the frequency point corresponding to the candidate signal a1 is: f1, and the power intensity is: p1; the frequency point corresponding to the candidate signal a2 is: f2, and the power intensity is: p2; the frequency point corresponding to the candidate signal a3 is: f3, and the power intensity is: p3; the frequency point corresponding to the candidate signal a4 is: f4, and the power intensity is: p4; the frequency point corresponding to the candidate signal a5 is: f5, and the power intensity is: p3; the frequency point corresponding to the candidate signal a6 is: f6, and the power intensity is: p2; the frequency point corresponding to the candidate signal a7 is: f7, and the power intensity is: p5.
[0046] Optionally, in this embodiment, a sampled signal with a signal power intensity greater than or equal to a preset power intensity and a signal duration greater than or equal to a preset duration is selected from multiple candidate signals. Among them, taking the preset power intensity as -30 dB and the preset duration as 1 ms as an example, from the candidate signals a1 to a7 recorded in the frequency-domain sampled signal spectrum diagram (a), signals with a power above -30 dB and a duration reaching 1 ms or more are selected as sampled signals. For example, a2 to a6 in the frequency-domain sampled signal spectrum diagram (b).
[0047] In the technical solution provided in step S204 above, the reference detection period can be, but is not limited to, the default value of the detection period for detecting the current frequency offset state of the repeater. For example, it is once every two days. The repeater can adjust the detection period for detecting the current frequency offset state of the repeater. For example, the repeater can dynamically adjust the detection period according to network requirements, device performance, and the communication time synchronization between the repeater and the base station. For example, when the communication time between the repeater and the base station is out of sync, the detection period can be shortened. For example, it can be adjusted from once every two days to once every six hours.
[0048] Optionally, in this embodiment, the frequency distribution parameter is used to indicate the actual distribution of the frequencies of the sampled signals in the frequency spectrum. As shown in the frequency-domain sampled signal frequency spectrum diagram (b) in Figure 3 , the sampled signal includes five signals: a2, a3, a4, a5, a6. Among them, the frequency distribution parameter can indicate the actual distribution of the frequencies of a2, a3, a4, a5, a6 in the frequency spectrum. The frequency-domain sampled signal frequency spectrum diagram (b) shows the frequency values (frequency points) of each sampled signal in the frequency spectrum, as well as the power intensity corresponding to each sampled signal. For example, the frequency point corresponding to the sampled signal a2 is: f2, and the power intensity is: p2. The frequency point corresponding to the sampled signal a3 is: f3, and the power intensity is: p3; the frequency point corresponding to the sampled signal a4 is: f4, and the power intensity is: p4; the frequency point corresponding to the sampled signal a5 is: f5, and the power intensity is: p3; the frequency point corresponding to the sampled signal a6 is: f6, and the power intensity is: p2.
[0049] In an exemplary embodiment, the current frequency offset state of the repeater can be detected according to the frequency distribution parameter of the sampled signal and the reference frequency range according to the reference detection period in the following ways, but is not limited to: screening out target signals whose frequencies fall within the reference frequency range from the sampled signals according to the frequency distribution parameter; detecting whether the frequencies of the target signals are symmetrically distributed within the reference frequency range; in the case where it is detected that the frequencies of the target signals are not symmetrically distributed within the reference frequency range, determining that the frequency offset state is used to indicate that the sampled signal has a frequency offset in the reference frequency range; in the case where it is detected that the frequencies of the target signals are symmetrically distributed within the reference frequency range, determining that the frequency offset state is used to indicate that the sampled signal has no frequency offset in the reference frequency range.
[0050] Optionally, in this embodiment, the base station and the repeater complete signal transmission through the frequency band of the protocol (equivalent to the reference frequency range), that is, the frequency of the signal transmitted between the base station and the repeater needs to fall within the reference frequency range. Statistically speaking, after a large number of signals pass through the FFT, the frequencies of the signals should be roughly symmetrically distributed in the frequency-domain sampling signal spectrum. For example, for 1000 sampling signals, when there is no natural aging of the internal crystal oscillator in the repeater causing frequency deviation, the 1000 frequency points (the frequency values of each sampling signal) of the 1000 sampling signals should be roughly symmetrically distributed within the reference frequency range, that is, 500 frequency points are distributed on the left side of the center frequency point of the reference frequency range, and the other 500 frequency points are distributed on the right side of the center frequency point of the reference frequency range. Further, the above rule can be used to inversely determine whether the frequency of the repeater is currently deviated due to the natural aging of the internal crystal oscillator by detecting whether the frequencies of a large number of sampling signals are symmetrically distributed within the reference frequency range. For example, if it is detected that 500 frequency points are distributed on the left side of the center frequency point of the reference frequency range and 300 frequency points are distributed on the right side of the center frequency point of the reference frequency range, it can be determined that the frequency of the repeater is deviated compared to the base station. For example, normally, the base station and the repeater agree in the protocol that the frequency of the transmitted signal is within the reference frequency range with a center frequency point of 2 GHz and a bandwidth of 100 MHz. However, due to the aging of the crystal oscillator of the repeater, when the repeater transmits signals within the reference frequency range, the actual center frequency point has shifted from 2 GHz to 1.9 GHz. At this time, after a large number of signals collected from the base station pass through the FFT, the frequencies of the signals are shifted to the left in the frequency-domain sampling signal spectrum (for example, it is detected that 500 frequency points are distributed on the left side of the center frequency point of the reference frequency range and 300 frequency points are distributed on the right side of the center frequency point of the reference frequency range). If no adjustment is made, signal loss may occur. Therefore, to avoid signal loss and compensate for the shift of the center frequency point from 2 GHz to 1.9 GHz caused by the aging of the crystal oscillator of the repeater, the reference frequency range of the repeater (with a center frequency point of 2 GHz and a bandwidth of 100 MHz) can be shifted to the right to obtain the target frequency range (for example, with a center frequency point of 2.1 GHz and a bandwidth of 100 MHz). After that, the repeater transmits signals with the base station according to the target frequency range, and the center frequency point of the range where the actual transmitted signal frequency is distributed is exactly 2 GHz, and the range where the actual transmitted signal frequency is distributed can be aligned with the frequency range of the signal transmitted by the base station, avoiding communication problems such as signal loss caused by the frequency deviation of the repeater.
[0051] Optionally, in this embodiment, the center frequency of the repeater is set to 2 GHz, and the frequency bandwidth is 100 MHz. That is, the reference frequency range is from 1.95 GHz to 2.05 GHz as an example. If the sampled signal is symmetrically distributed within the frequency band from -50 MHz to +50 MHz, that is, within the range of 1.95 GHz to 2.05 GHz, it is considered that the current frequency offset state has not occurred frequency offset; if the repeater has a frequency deviation due to the crystal oscillator deviation, for example, what the repeater considers as 2 GHz is actually 1.9 GHz for the base station, and the sampled signal is not symmetrically distributed within 1.95 GHz to 2.05 GHz, it is considered that the current frequency offset state has occurred frequency offset.
[0052] Optionally, in this embodiment, Figure 4 is a schematic diagram for detecting the current frequency offset state of the repeater according to an optional embodiment of the present application. As Figure 4 shown, the target signals whose frequencies fall within the reference frequency range are screened out from the sampled signal according to the frequency distribution parameters. For example, the sampled signal includes a2 to a6, and the target signals whose frequencies fall within the reference frequency range screened out from the sampled signal a2 to a6 include a2 to a5. Within the reference frequency range, the frequencies of the target signals a2 to a5 are not symmetrically distributed, and it is determined that the sampled signal has a frequency offset within the reference frequency range.
[0053] Through the embodiment of the present application, by detecting the symmetric distribution of the frequencies of the target signals within the reference frequency range, it is possible to efficiently determine whether a frequency offset has occurred, avoid complex signal decoding, greatly reduce the consumption of computing resources, and improve the detection speed of frequency offset.
[0054] In the technical solution provided in the above step S206, the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization. Among them, the communication time synchronization can be, but is not limited to, TDD synchronization. In a time division duplex (TDD) system composed of a base station, a repeater, and a terminal, it is necessary to ensure TDD synchronization, including ensuring the TDD synchronization (i.e., communication time synchronization) between the base station and the repeater. The base station and the repeater use a communication time synchronization mechanism to ensure the accuracy of signal transmission and avoid interference. Specifically, this synchronization includes at least the following aspects:
[0055] 1) Time frame synchronization: The base station and the repeater need to be consistent in time to ensure that the switching points of the uplink and downlink time slots are completely aligned. For example, when the repeater receives the base station signal and forwards it to the user equipment, it must operate precisely according to the time slot division of the base station to avoid interference between the uplink and downlink signals.
[0056] 2) Uplink and downlink time slot synchronization: In a TDD system, uplink and downlink signals are distinguished by different time slots on the same frequency. The base station and the repeater must strictly synchronize these time slots to ensure that the repeater forwards uplink or downlink signals during the correct time periods. For example, the repeater needs to accurately adjust its own transmission and reception time slots according to the time slot configuration of the base station to avoid misalignment with the base station's time slots.
[0057] TDD synchronization is the basis for the normal operation of a TDD system. Through precise time synchronization, interference between uplink and downlink signals can be effectively avoided, spectrum utilization can be improved, and efficient two-way communication can be achieved.
[0058] Optionally, in this embodiment, communication time synchronization may include, but is not limited to: time frame synchronization and uplink and downlink time slot synchronization.
[0059] In a TDD system composed of a base station, a repeater, and a terminal, they cooperate with each other to achieve efficient and stable communication services. The base station, as the core node of the network, is responsible for establishing communication links with terminal devices, allocating wireless resources, and managing data transmission; terminals (such as mobile phones, Internet of Things devices, etc.) access the network through the base station for data interaction and communication. The repeater, as a signal relay device, receives the base station signal, amplifies and forwards it, expanding the coverage area of the base station, especially playing an important role in areas with weak signals (such as basements, mountainous areas, etc.), and helping terminal devices better access the base station. The three cooperate closely to ensure that users can obtain a good communication experience regardless of their location.
[0060] In an exemplary embodiment, the time synchronization parameter between the base station and the repeater can be detected by, but is not limited to, the following method: obtaining a time-related value between the base station and the repeater, where the time-related value is used to indicate the synchronization degree of the communication time between the repeater and the base station, and the larger the time-related value, the higher the synchronization degree of the communication time between the repeater and the base station; comparing the time-related value with a first correlation threshold; in the case where the time-related value is greater than the first correlation threshold, determining that the time synchronization parameter is used to indicate that the repeater and the base station maintain communication time synchronization; in the case where the time-related value is less than or equal to the first correlation threshold, determining that the time synchronization parameter is used to indicate that the repeater and the base station do not maintain communication time synchronization.
[0061] Optionally, in this embodiment, the first correlation threshold can be, but is not limited to, dynamically adjusted according to user requirements to adapt to different communication scenarios and conditions. This application does not limit this, for example, setting the first correlation threshold to 0.8.
[0062] Optionally, in this embodiment, to determine the TDD synchronization (equivalent to the synchronization of the communication time between the repeater and the base station), the SSB (Synchronization Signal Block) signal specified in the 3GPP (3rd Generation Partnership Project) protocol is used as a reference (i.e., the SSB signal sent by the base station to the repeater). Among them, the SSB signal can be, but is not limited to, a signal periodically sent by the base station for the communication time synchronization between the base station and the repeater. By correlating the received air SSB signal (i.e., the SSB signal received by the repeater) with the SSB signal specified in the 3GPP protocol and then normalizing it, the normalized result is determined as the time correlation value. After normalization, a time correlation value between 0 and 1 is obtained. The magnitude of the time correlation value directly reflects the synchronization degree of the communication time between the repeater and the base station. The larger the time correlation value, the higher the synchronization degree of the communication time between the repeater and the base station. When the time correlation value is 1, it indicates that the SSB signal received by the repeater is exactly the same as the SSB signal sent by the base station to the repeater, indicating that the communication time between the repeater and the base station has achieved complete synchronization. A relatively moderate threshold value (equivalent to the first correlation threshold) is used to determine whether the SSB is found, that is, to determine whether the TDD is synchronized. For example, when the first correlation threshold is 0.8, when the time correlation value is greater than 0.8, it indicates that the SSB is found and the TDD is considered synchronized, that is, the current frequency offset does not affect the TDD synchronization. When the time correlation value is less than or equal to 0.8, it indicates that the SSB is not found and the TDD is considered unsynchronized, that is, the current frequency offset has affected the TDD synchronization.
[0063] Taking the SSB signal sent by the base station to the repeater as the sequence signal: abcdef as an example, if the sequence signal of the SSB signal received by the repeater is: abcdef, it can be regarded as the two signals being exactly the same, that is, the time correlation value between the SSB signal sent by the base station and the SSB signal received by the repeater is 1, which is greater than 0.8, indicating that the SSB is found and the TDD is considered synchronized; if the sequence signal of the SSB signal received by the repeater is: cdef, it can be regarded as the two signals not being exactly the same, and the repeater has not received the complete sequence signal "abcdef", that is, the time correlation value between the SSB signal sent by the base station and the SSB signal received by the repeater is less than 1. According to the sequence "cdef" and the sequence "abcdef", the specific time correlation value between the SSB signal sent by the base station and the SSB signal received by the repeater can be calculated. For example, when the calculated time correlation value is equal to 0.8, it indicates that the SSB is not found and the TDD is considered unsynchronized.
[0064] It should be noted that if the threshold value (equivalent to the first correlation threshold) is set too large, it will lead to overly strict conditions for satisfaction, and it may be impossible to align the SSB all the time; while if the threshold value is set too small, some other interference signals may be misjudged as SSBs, resulting in problems with signal transmission.
[0065] In an exemplary embodiment, the time correlation value between the base station and the repeater can be obtained, but not limited to, in the following manner: receiving the sequence signal sent by the base station according to the reference communication time to obtain the actual sequence signal, where the base station is set to send the target sequence signal to the repeater according to the target communication time, the target sequence signal includes a target sequence, and the target sequence is stored in the repeater; detecting the correlation value between the actual sequence included in the actual sequence signal and the target sequence to obtain the time correlation value, where the correlation value is used to indicate the degree of consistency between the actual sequence and the target sequence, and the higher the correlation value, the higher the degree of consistency between the actual sequence and the target sequence.
[0066] Optionally, in this embodiment, the sequence signal can be, but not limited to, a signal sent by the base station for communication time synchronization with the repeater, such as an SSB signal.
[0067] Optionally, in this embodiment, in the case of communication time synchronization, the reference communication time and the target communication time are the same; in the case of communication time asynchronization, the reference communication time and the target communication time are different.
[0068] For example, in the case of communication time synchronization, taking the target communication time as 10 ms as an example, the base station sends the target sequence signal to the repeater once every 10 ms, and the repeater receives the sequence signal sent by the base station once every 10 ms. In the case of communication time asynchronization, the base station sends the target sequence signal to the repeater once every 10 ms, but due to communication time asynchronization, in fact, the repeater may receive the sequence signal sent by the base station only once every 10.01 ms.
[0069] In an exemplary embodiment, after determining the time synchronization parameter for indicating that the repeater maintains communication time synchronization with the base station, it may, but is not limited to, be performed in the following manner: comparing the time-related value with a second correlation threshold, where the second correlation threshold is greater than the first correlation threshold; in the case where the time-related value is less than or equal to the second correlation threshold, adjusting the reference detection period for detecting the current frequency offset state of the repeater to a target detection period, where the target detection period is less than the reference detection period; in the case where the time-related value is greater than the second correlation threshold, continue to maintain detecting the current frequency offset state of the repeater according to the reference detection period, based on the frequency distribution parameter of the sampling signal and the reference frequency range.
[0070] Optionally, in this embodiment, the second correlation threshold may, but is not limited to, be dynamically adjusted according to user requirements, and the present application does not limit this.
[0071] Optionally, in this embodiment, the second correlation threshold may, but is not limited to, be a critical point indicating the stability of the communication time synchronization between the repeater and the base station. For example, when the first correlation threshold is set to 0.8 and the second correlation threshold is set to 0.85, when the time-related value between the repeater and the base station is less than or equal to the second correlation threshold but still greater than the first correlation threshold, the repeater regards this as a warning that the frequency offset is approaching the critical state, indicating that although the repeater can still maintain basic TDD synchronization at present, the stability of the synchronization has begun to weaken, and the risk of potential communication quality degradation increases; when the time-related value between the repeater and the base station is greater than the second correlation threshold, it indicates that although there is a frequency offset, its impact on TDD synchronization is still within the controllable range, and the stability of TDD synchronization is relatively high.
[0072] Optionally, in this embodiment, the target detection period may, but is not limited to, be preset. For example, the current frequency offset state of the repeater is detected every 12 hours or 6 hours. The target detection period is less than the reference detection period. For example, the reference detection period is 1 time / 2 days, and the target detection period is 1 time / 12 hours.
[0073] Optionally, in this embodiment, taking the first correlation threshold set to 0.8, the second correlation threshold set to 0.85, the reference detection period of 1 time / 1 day, and the target detection period of 1 time / 6 hours as an example. In the case where the time-related value is greater than 0.8 and less than or equal to 0.85, the reference detection period of 1 time / 1 day for detecting the current frequency offset state of the repeater is adjusted to the target detection period of 1 time / 6 hours; in the case where the time-related value is greater than 0.85, continue to maintain detecting the current frequency offset state of the repeater according to the reference detection period of 1 time / 1 day, based on the frequency distribution parameter of the sampling signal and the reference frequency range.
[0074] In the embodiment of the present application, when the time-related value is less than or equal to the second correlation threshold, a target detection period shorter than the reference detection period is used for frequency offset detection, which can timely respond to potential frequency offset risks and prevent communication out-of-step. On the contrary, when the time-related value is greater than the second correlation threshold, the original detection period is maintained for frequency offset detection, avoiding resource waste caused by excessive and frequent FFT operations and subsequent data processing. This strategy of dynamically adjusting the detection period based on the time-related value not only effectively monitors the frequency offset state but also realizes reasonable allocation of resources.
[0075] In the technical solution provided in step S208 above, adjusting the stored reference frequency range according to the frequency distribution parameter may include, but is not limited to, adjusting the reference center frequency and the reference frequency bandwidth.
[0076] In an exemplary embodiment, the stored reference frequency range may be adjusted according to the frequency distribution parameter to obtain a target frequency range in the following ways, but is not limited thereto: determining the actual center frequency and the actual frequency bandwidth of the sampling signal according to the frequency distribution parameter, where the actual center frequency is the center frequency value of the actual frequency range, the actual frequency bandwidth is the width of the actual frequency range, and the actual frequency range is the distribution range of the frequency of the sampling signal indicated by the frequency distribution parameter in the spectrum; adjusting the reference center frequency and the reference frequency bandwidth corresponding to the repeater according to the actual center frequency and the actual frequency bandwidth to obtain the target frequency range, where the reference center frequency is the center frequency value of the reference frequency range and the reference frequency bandwidth is the width of the reference frequency range.
[0077] Optionally, in this embodiment, an ARM (Advanced RISC Machines) processor and a transceiver may be deployed in the repeater, but are not limited thereto.
[0078] Optionally, in this embodiment, when the time synchronization parameter is used to indicate that the repeater and the base station do not maintain communication time synchronization, the FPGA sends a frequency point adjustment request to the ARM processor, and the ARM reconfigures the uplink and downlink frequency points of the transceiver according to the magnitude and direction of the frequency offset, so that the frequencies on the repeater and the base station sides are consistent and do not affect the solution of TDD synchronization. The frequency point adjustment request is used to request an adjustment of the reference center frequency and the reference frequency bandwidth corresponding to the repeater according to the actual center frequency and the actual frequency bandwidth.
[0079] Optionally, in this embodiment, it is possible but not limited to simultaneously adjusting the reference center frequency and the reference frequency bandwidth when both the actual center frequency and the actual frequency bandwidth are different from the reference center frequency and the reference frequency bandwidth, or only adjusting the reference center frequency when the actual center frequency is different from the reference center frequency and the actual frequency bandwidth is the same as the reference frequency bandwidth.
[0080] Optionally, in this embodiment, taking the reference center frequency of the repeater as 2 GHz, the reference frequency bandwidth as 100 MHz, the reference frequency range as 1.95 GHz to 2.05 GHz, and the actual center frequency as 1.9 GHz with the actual frequency bandwidth unchanged as an example.
[0081] In the above case, the actual frequency range is 1.85 GHz to 1.95 GHz, the actual center frequency is 1.9 GHz, and the actual center frequency is actually shifted 100 MHz towards the lower frequency direction, but its bandwidth is still 100 MHz, that is, a negative shift with an offset of 100 MHz. According to the offset, the reference center frequency should be adjusted to 2.1 GHz, and the reference frequency bandwidth remains unchanged, resulting in a target frequency range of 2.05 GHz to 2.15 GHz.
[0082] Figure 5 It is a schematic diagram of an optional adjustment of the stored reference frequency range according to an embodiment of the present application. As Figure 5 shown, when the repeater transmits signals according to the configured reference frequency range (for example, the center frequency of the reference frequency range is 2 GHz), due to crystal oscillator aging, the actual frequency range where the signals fall is the actual frequency range 1 (f2 - f6, for example, the actual center frequency 1 of the actual frequency range 1 is 1.9 GHz). Obviously, compared with the reference frequency range, it is shifted to the left. In order to make the actual frequency range coincide with the reference frequency range, the reference frequency range configured for the repeater can be adjusted. For example, the reference frequency range configured for the repeater is adjusted to the target frequency range (for example, the center frequency of the target frequency range is 2.10 GHz). At this time, the actual frequency range where the signals fall is the actual frequency range 2, which just coincides with the reference frequency range (that is, the center frequencies of both the actual frequency range 2 and the reference frequency range are 2 GHz).
[0083] During the above adjustment process, the actual frequency bandwidth of the actual frequency range 1 is the width of the frequency range included by frequency points f2 to f6. The reference frequency bandwidth is the same as the actual frequency bandwidth. Determine the difference between the actual center frequency point 1 of the actual frequency range 1 and the reference center frequency point. If the difference is positive, it is a right offset; if the difference is negative, it is a left offset. The magnitude of the difference is the frequency offset magnitude. According to the magnitude and direction of the frequency deviation, calculate the target center frequency point of the target frequency range, and adjust the reference center frequency point of the reference frequency range to the target center frequency point to achieve the adjustment of the reference frequency range to the target frequency range. After the reference frequency range configured by the repeater is adjusted to the target frequency range, the actual frequency range 2 into which the frequency of the signal transmitted according to the target frequency range falls just coincides with the reference frequency range.
[0084] Through the embodiments of the present application, according to the actual center frequency point and actual frequency bandwidth of the sampled signal, and then adjust the reference center frequency point and reference frequency bandwidth of the repeater, so that when the repeater faces frequency offset, it can react in time, adjust itself to match the true spectral characteristics of the signal, significantly improve the communication stability between the base station and the repeater, and enhance the adaptive ability and network service quality of the repeater.
[0085] To better understand the above communication process between the base station and the repeater, the following further describes the communication process between the base station and the repeater in combination with optional embodiments, but it is not used to limit the technical solutions of the embodiments of the present application.
[0086] In this embodiment, a communication method between a base station and a repeater is provided. Figure 6 It is a schematic diagram of an optional communication process between a base station and a repeater according to an embodiment of the present application, as Figure 6 shown, mainly including the following steps:
[0087] Step S601: Perform slow FFT full-bandwidth statistics. The repeater will always perform FFT statistics on the downlink signal for a relatively long time (equivalent to the reference detection period), that is, perform slow FFT full-bandwidth statistics. For example, obtain the power carrying situation of the overall bandwidth with a reference detection period of 1 time / 1 day or 1 time / 2 days. When a frequency offset occurs, execute step S602; otherwise, keep executing step S601.
[0088] Step S602: Determine whether TDD is synchronized (equivalent to determining whether the communication time is synchronized). If TDD is not synchronized (for example, the time correlation value between the base station and the repeater is less than or equal to the first correlation threshold (for example, 0.8)), then execute step S606; if TDD is synchronized (for example, the time correlation value between the base station and the repeater is greater than the first correlation threshold (for example, 0.8)), then execute step S603.
[0089] Step S603: Determine whether the frequency offset is critical. If TDD is synchronized and far from the critical point (for example, the time correlation value between the base station and the repeater is greater than the second correlation threshold (such as, 0.85), indicating that although there is a frequency offset, its impact on TDD synchronization is still within the controllable range and the synchronization stability is relatively high), at this time, it can be determined that the frequency offset is not critical, and step S601 can be executed; if TDD is synchronized but approaching the critical point (for example, the time correlation value between the base station and the repeater is greater than the first correlation threshold (such as, 0.8) and less than or equal to the second correlation threshold (such as, 0.85), indicating that although TDD is synchronized, the frequency deviation is gradually approaching the critical point that may affect the TDD synchronization stability, this state is regarded as the frequency offset being critical), in the case of a critical frequency offset, step S604 can be executed;
[0090] Step S604: Perform a fast FFT full-bandwidth statistics, that is, perform statistics at a faster speed. For example, perform full-bandwidth statistics with a target detection period of 1 time / 12 hours or 1 time / 6 hours;
[0091] Step S605: Determine whether TDD is synchronized. If TDD is not synchronized (that is, the time correlation value between the base station and the repeater is less than or equal to the first correlation threshold (such as, 0.8)), then step S606 is executed; if TDD is synchronized (that is, the time correlation value between the base station and the repeater is greater than the first correlation threshold (such as, 0.8)), then step S604 is executed;
[0092] Step S606: Report a frequency modulation request (equivalent to a frequency point adjustment request) to enter the frequency modulation step, and notify the ARM to perform frequency point reconfiguration (for example, adjust the reference frequency range to the target frequency range);
[0093] Step S607: After the frequency modulation is completed, continue to execute step S601.
[0094] In the embodiment of the present application, when a frequency offset is detected, it is determined whether it is still within an acceptable range. If the TDD synchronization (equivalent to communication time synchronization) can still be solved and the distance from the critical point (equivalent to the second correlation threshold) is relatively far, the current detection period (equivalent to the reference detection period) is still maintained for detection. If it is found that the TDD synchronization can still be solved but the distance from the critical point is relatively close, a relatively high-frequency detection period (equivalent to the target detection period) is entered to ensure that when the repeater fails, it can be processed as soon as possible. If it is found that the TDD synchronization can no longer be solved, the next frequency modulation is directly entered. In the case where the present application determines that the TDD synchronization cannot be solved, the frequency modulation process can be quickly triggered. By adjusting the reference center frequency and the reference frequency bandwidth, the communication time synchronization with the base station can be quickly restored, thereby ensuring the stability of the communication link and the accuracy of data transmission. This detection and frequency modulation mechanism based on the frequency offset state effectively prevents network interruption caused by frequency deviation, reduces the signal loss rate of the communication between the repeater and the base station, and improves the transmission accuracy of the signal of the communication between the repeater and the base station.
[0095] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present application.
[0096] Figure 7 is a structural block diagram of a communication device between a base station and a repeater according to an embodiment of the present application; as Figure 7 shown, the device is applied to a repeater, and the repeater is configured to communicate with a base station according to a stored reference frequency range, including:
[0097] A sampling module 702, configured to sample the signal transmitted by the base station to obtain a sampled signal;
[0098] A first detection module 704, configured to detect the current frequency offset state of the repeater according to the frequency distribution parameter of the sampled signal and the reference frequency range according to a reference detection period, where the frequency distribution parameter is used to indicate the actual distribution of the frequency of the sampled signal in the frequency spectrum, and the frequency offset state is used to indicate whether a frequency offset has occurred in the reference frequency range of the sampled signal;
[0099] A second detection module 706, configured to detect a time synchronization parameter between the base station and the repeater when the frequency offset state is used to indicate that the sampling signal has undergone the frequency offset, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization;
[0100] An adjustment module 708, configured to adjust the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range when the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization.
[0101] Through the above embodiments, during the process of the repeater communicating with the base station within the stored reference frequency range, it is detected whether the repeater is currently in a frequency offset state. Once a frequency offset occurs, the detection of the time synchronization parameter is performed to determine whether the communication time between the repeater and the base station is synchronized. When the communication time between the repeater and the base station is not synchronized, the reference frequency range is adjusted according to the frequency distribution parameter, so as to restore the communication time synchronization with the base station, enabling the repeater to accurately receive the signals transmitted by the base station. Through the above method, the present application can take corresponding frequency adjustment measures according to the communication time synchronization state when there is a frequency offset in the repeater, solving the problems such as a high signal loss rate in the communication between the base station and the repeater caused by crystal oscillator aging or environmental factors in the related art. By dynamically adjusting the frequency range, it is ensured that even in an environment without GPS, stable communication with the base station can be maintained, avoiding the risk of communication interruption, and achieving the technical effect of reducing the signal loss rate in the communication between the base station and the repeater.
[0102] In an exemplary embodiment, the first detection module includes:
[0103] A first screening unit, configured to screen out a target signal whose frequency falls within the reference frequency range from the sampling signal according to the frequency distribution parameter;
[0104] A first detection unit, configured to detect whether the frequency of the target signal is symmetrically distributed within the reference frequency range;
[0105] A first determination unit, configured to determine that the frequency offset state is used to indicate that the sampling signal has undergone a frequency offset within the reference frequency range when it is detected that the frequency of the target signal is not symmetrically distributed within the reference frequency range;
[0106] A second determination unit, configured to determine that the frequency offset state is used to indicate that the sampling signal has not undergone a frequency offset within the reference frequency range when it is detected that the frequency of the target signal is symmetrically distributed within the reference frequency range.
[0107] In an exemplary embodiment, the second detection module includes:
[0108] An acquisition unit, configured to acquire a time-related value between the base station and the repeater, where the time-related value is used to indicate the synchronization degree of the communication time between the repeater and the base station, and the larger the time-related value, the higher the synchronization degree of the communication time between the repeater and the base station;
[0109] A first comparison unit, configured to compare the time-related value with a first correlation threshold;
[0110] A third determination unit, configured to determine that the time synchronization parameter is used to indicate that the repeater and the base station maintain communication time synchronization when the time-related value is greater than the first correlation threshold;
[0111] A fourth determination unit, configured to determine that the time synchronization parameter is used to indicate that the repeater and the base station do not maintain communication time synchronization when the time-related value is less than or equal to the first correlation threshold.
[0112] In an exemplary embodiment, the acquisition unit is configured to:
[0113] Receive the sequence signal sent by the base station according to the reference communication time to obtain an actual sequence signal, where the base station is configured to send a target sequence signal to the repeater according to the target communication time, the target sequence signal includes a target sequence, and the repeater stores the target sequence;
[0114] Detect the correlation value between the actual sequence included in the actual sequence signal and the target sequence to obtain the time-related value, where the correlation value is used to indicate the degree of consistency between the actual sequence and the target sequence, and the higher the correlation value, the higher the degree of consistency between the actual sequence and the target sequence.
[0115] In an exemplary embodiment, the apparatus further includes:
[0116] A second comparison unit, configured to compare the time-related value with a second correlation threshold after determining that the time synchronization parameter is used to indicate that the repeater and the base station maintain communication time synchronization, where the second correlation threshold is greater than the first correlation threshold;
[0117] A first adjustment unit, configured to adjust the reference detection period for detecting the current frequency offset state of the repeater to a target detection period when the time-related value is less than or equal to the second correlation threshold, where the target detection period is less than the reference detection period;
[0118] A second detection unit, configured to continue to maintain, according to a reference detection period, detecting a current frequency offset state of the repeater according to a frequency distribution parameter of the sampling signal and the reference frequency range when the time-related value is greater than the second correlation threshold.
[0119] In an exemplary embodiment, the adjustment module includes:
[0120] A fifth determination unit, configured to determine an actual center frequency point and an actual frequency bandwidth of the sampling signal according to the frequency distribution parameter, where the actual center frequency point is a center frequency value of an actual frequency range, the actual frequency bandwidth is a width of the actual frequency range, and the actual frequency range is a distribution range of the frequency of the sampling signal indicated by the frequency distribution parameter in the spectrum;
[0121] A second adjustment unit, configured to adjust a reference center frequency point and a reference frequency bandwidth corresponding to the repeater according to the actual center frequency point and the actual frequency bandwidth to obtain the target frequency range, where the reference center frequency point is a center frequency value of the reference frequency range, and the reference frequency bandwidth is a width of the reference frequency range.
[0122] In an exemplary embodiment, the sampling module includes:
[0123] An acquisition unit, configured to acquire a plurality of candidate signals from signals transmitted by the base station;
[0124] A third detection unit, configured to detect a signal power intensity and a signal duration of each of the plurality of candidate signals;
[0125] A second screening unit, configured to screen out sampling signals from the plurality of candidate signals, where the signal power intensity is greater than or equal to a preset power intensity and the signal duration is greater than or equal to a preset duration.
[0126] An embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, and when the program runs, it executes the method of any one of the above.
[0127] Optionally, in this embodiment, the storage medium may be configured to store program codes for performing the following steps:
[0128] S1, sampling a signal transmitted by the base station to obtain a sampling signal;
[0129] S2. According to the reference detection period, detect the current frequency offset state of the repeater based on the frequency distribution parameter of the sampling signal and the reference frequency range, where the frequency distribution parameter is used to indicate the actual distribution of the frequency of the sampling signal in the frequency spectrum, and the frequency offset state is used to indicate whether a frequency offset has occurred in the sampling signal within the reference frequency range;
[0130] S3. When the frequency offset state indicates that the sampling signal has undergone the frequency offset, detect the time synchronization parameter between the base station and the repeater, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization;
[0131] S4. When the time synchronization parameter indicates that the repeater and the base station do not maintain the communication time synchronization, adjust the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range.
[0132] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0133] Optionally, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0134] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0135] S1. Sample the signal transmitted by the base station to obtain a sampling signal;
[0136] S2. According to the reference detection period, detect the current frequency offset state of the repeater based on the frequency distribution parameter of the sampling signal and the reference frequency range, where the frequency distribution parameter is used to indicate the actual distribution of the frequency of the sampling signal in the frequency spectrum, and the frequency offset state is used to indicate whether a frequency offset has occurred in the sampling signal within the reference frequency range;
[0137] S3. When the frequency offset state indicates that the sampling signal has undergone the frequency offset, detect the time synchronization parameter between the base station and the repeater, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization;
[0138] S4. When the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization, adjust the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range.
[0139] Optionally, in this embodiment, the above storage medium may include but is not limited to: various media such as USB flash drives, read-only memories (ROM), random access memories (RAM), mobile hard disks, magnetic disks, or optical discs that can store program codes.
[0140] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.
[0141] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0142] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A communication method between a base station and a repeater, characterized in that, The method is applied to a repeater which is set to communicate with a base station according to a stored reference frequency range. The method includes: Sampling a signal transmitted by the base station to obtain a sampled signal; Detecting a current frequency offset state of the repeater according to a frequency distribution parameter of the sampled signal and the reference frequency range according to a reference detection period, where the frequency distribution parameter is used to indicate an actual distribution of the frequency of the sampled signal in a frequency spectrum, and the frequency offset state is used to indicate whether a frequency offset occurs in the reference frequency range of the sampled signal; When the frequency offset state is used to indicate that the sampled signal has the frequency offset, detecting a time synchronization parameter between the base station and the repeater, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization; When the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization, adjusting the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range.
2. The method according to claim 1, wherein The detecting a current frequency offset state of the repeater according to a frequency distribution parameter of the sampled signal and the reference frequency range according to a reference detection period includes: Screening out target signals with frequencies falling within the reference frequency range from the sampled signal according to the frequency distribution parameter; Detecting whether the frequencies of the target signals are symmetrically distributed within the reference frequency range; When it is detected that the frequencies of the target signals are not symmetrically distributed within the reference frequency range, determining that the frequency offset state is used to indicate that a frequency offset occurs in the reference frequency range of the sampled signal; When it is detected that the frequencies of the target signals are symmetrically distributed within the reference frequency range, determining that the frequency offset state is used to indicate that no frequency offset occurs in the reference frequency range of the sampled signal.
3. The method according to claim 1, wherein The detecting a time synchronization parameter between the base station and the repeater includes: Obtaining a time correlation value between the base station and the repeater, where the time correlation value is used to indicate a synchronization degree of communication time between the repeater and the base station, and the larger the time correlation value is, the higher the synchronization degree of communication time between the repeater and the base station is; Comparing the time correlation value with a first correlation threshold; When the time correlation value is greater than the first correlation threshold, determining that the time synchronization parameter is used to indicate that the repeater and the base station maintain communication time synchronization; When the time correlation value is less than or equal to the first correlation threshold, determining that the time synchronization parameter is used to indicate that the repeater and the base station do not maintain communication time synchronization.
4. The method according to claim 3, wherein The obtaining a time correlation value between the base station and the repeater includes: Receiving a sequence signal sent by the base station according to a reference communication time to obtain an actual sequence signal, where the base station is set to send a target sequence signal to the repeater according to a target communication time, the target sequence signal includes a target sequence, and the repeater stores the target sequence; Detect the correlation value between the actual sequence included in the actual sequence signal and the target sequence to obtain the time correlation value, where the correlation value is used to indicate the degree of consistency between the actual sequence and the target sequence, and the higher the correlation value, the higher the degree of consistency between the actual sequence and the target sequence.
5. The method according to claim 3, wherein After determining that the time synchronization parameter is used to indicate that the repeater maintains communication time synchronization with the base station, the method further includes: Compare the time correlation value with a second correlation threshold, where the second correlation threshold is greater than the first correlation threshold; When the time correlation value is less than or equal to the second correlation threshold, adjust the reference detection period for detecting the current frequency offset state of the repeater to a target detection period, where the target detection period is less than the reference detection period; When the time correlation value is greater than the second correlation threshold, continue to maintain detecting the current frequency offset state of the repeater according to the reference detection period, based on the frequency distribution parameter of the sampling signal and the reference frequency range.
6. The method according to claim 1, characterized in that, The adjusting the stored reference frequency range according to the frequency distribution parameter to obtain a target frequency range further includes: Determine the actual center frequency point and the actual frequency bandwidth of the sampling signal according to the frequency distribution parameter, where the actual center frequency point is the center frequency value of the actual frequency range, the actual frequency bandwidth is the width of the actual frequency range, and the actual frequency range is the distribution range of the frequency of the sampling signal indicated by the frequency distribution parameter in the spectrum; Adjust the corresponding reference center frequency point and reference frequency bandwidth of the repeater according to the actual center frequency point and the actual frequency bandwidth to obtain the target frequency range, where the reference center frequency point is the center frequency value of the reference frequency range, and the reference frequency bandwidth is the width of the reference frequency range.
7. The method according to claim 1, wherein The sampling the signal transmitted by the base station to obtain a sampling signal includes: Collect a plurality of candidate signals from the signal transmitted by the base station; Detect the signal power intensity and the signal duration of each of the plurality of candidate signals; Select, from the plurality of candidate signals, a sampling signal whose signal power intensity is greater than or equal to a preset power intensity and whose signal duration is greater than or equal to a preset duration.
8. A communication device between a base station and a repeater, characterized in that, The apparatus is applied to a repeater, and the repeater is configured to communicate with a base station according to a stored reference frequency range, and includes: A sampling module, configured to sample the signal transmitted by the base station to obtain a sampling signal; A first detection module, configured to detect the current frequency offset state of the repeater according to the frequency distribution parameter of the sampling signal and the reference frequency range at a reference detection period, where the frequency distribution parameter is used to indicate the actual distribution of the frequency of the sampling signal in the spectrum, and the frequency offset state is used to indicate whether a frequency offset occurs in the sampling signal within the reference frequency range; A second detection module, configured to detect a time synchronization parameter between the base station and the repeater when the frequency offset state is used to indicate that the frequency offset has occurred in the sampling signal, where the time synchronization parameter is used to indicate whether the repeater and the base station maintain communication time synchronization; An adjustment module, configured to adjust the stored reference frequency range to obtain a target frequency range according to the frequency distribution parameter when the time synchronization parameter is used to indicate that the repeater and the base station do not maintain the communication time synchronization.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, where the program, when running, executes the method according to any one of claims 1 to 7.
10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.