Antenna system configuration method and apparatus, electronic device, and program product

By extracting data and recognizing patterns from wireless signals through the signal processing unit, the fiber optic repeater antenna system is automatically configured, solving the problem of fixed hardware in fiber optic repeater equipment. This enables flexible recognition and configuration of TDD and FDD modes, improving the equipment's versatility and operational efficiency.

CN122052914APending Publication Date: 2026-05-15CHINA TOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA TOWER CO LTD
Filing Date
2026-01-13
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing fiber optic repeater equipment has fixed hardware, supporting only a single standard. Network changes require manual hardware replacement, which is costly and slow to respond. Although some broadband equipment supports multiple standards, the antenna configuration is fixed and cannot automatically configure different duplex modes.

Method used

The signal processing unit extracts data from the received wireless signals, determines the target operating mode of the antenna system, and automatically configures the antenna system based on the mode, including switching between time division duplex mode and frequency division duplex mode and configuring filter frequencies, and has the ability to continuously monitor and re-discriminate.

Benefits of technology

It enables fiber optic repeaters to automatically identify and be compatible with TDD and FDD duplex modes, improving the versatility and deployment flexibility of the equipment, reducing equipment inventory and maintenance costs for operators, and ensuring the continuity of communication quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122052914A_ABST
    Figure CN122052914A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration method and device of an antenna system, electronic equipment and a program product, and relates to the technical field of communication, and the configuration method comprises the following steps: controlling a signal processing unit to carry out data extraction on a received wireless signal, and obtaining time domain data and frequency domain data in a current time window length; determining a target working mode of the antenna system based on the time domain data and the frequency domain data; based on the target working mode, the antenna system is configured, the working mode of the next time window length is monitored, the time window lengths are the same, and the starting point of the next time window length is later than the ending point of the current time window length; and reconfiguring the antenna system under the condition that the working mode of the next time window length is changed. According to the invention, the technical problem that different duplex modes of an antenna system cannot be automatically configured in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically, to a method and apparatus for configuring an antenna system, an electronic device, and a program product. Background Technology

[0002] A fiber optic repeater is an important device used to extend the coverage of mobile communication networks, transmitting base station signals over long distances to the coverage area via optical fiber. With the development of mobile communication technology, multiple standards coexist in the network.

[0003] Currently, fiber optic repeaters have fixed hardware that only supports a single standard. Network changes require manual hardware replacement, which is costly and slow. Although some broadband devices support multiple standards, their antenna configurations are fixed.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a method, apparatus, electronic device, and program product for configuring an antenna system, to at least solve the technical problem in the related art that different duplex modes of an antenna system cannot be automatically configured.

[0006] According to one aspect of the embodiments of this application, a method for configuring an antenna system is provided, applied to an optical fiber repeater. The optical fiber repeater includes at least a near-end unit and a far-end unit. The far-end unit includes at least a signal processing unit and an antenna system. The method includes: controlling the signal processing unit to extract data from received wireless signals to obtain time-domain data and frequency-domain data within the current time window length; determining a target operating mode of the antenna system based on the time-domain data and frequency-domain data; configuring the antenna system based on the target operating mode and monitoring the operating mode for the next time window length, wherein each time window length is the same, and the start point of the next time window length is later than the end point of the current time window length; and reconfiguring the antenna system if the operating mode changes in the next time window length.

[0007] Further, the control signal processing unit extracts data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window length, including: sampling the wireless signal within the current time window length to obtain multiple sampled signals, wherein each sampled signal corresponds to a signal power; determining all signal powers within the current time window length; constructing a signal power sequence based on all signal powers, and determining time-domain data based on the signal power sequence; performing Fourier transform on all sampled signals within the current time window length to obtain a spectrum, and determining frequency-domain data based on the spectrum.

[0008] Furthermore, the step of determining time-domain data based on the signal power sequence includes: determining the sliding window length and determining all sampled signals within each sliding window length; calculating the average signal power within each sliding window length based on the signal power sequence; and for each sliding window length, calculating the signal power variance based on the average signal power and characterizing the signal power variance as time-domain data.

[0009] Furthermore, the spectrum data includes at least: multiple frequency points, the frequency value of each frequency point, and the amplitude of each frequency point. The step of determining the frequency domain data based on the spectrum includes: calculating the mean of all amplitudes and calculating the derivative of each amplitude at the corresponding frequency point; for each amplitude, if the amplitude is greater than a target amplitude threshold and the derivative is equal to zero, adding the frequency value of the frequency point corresponding to the amplitude to the frequency point set, wherein the target amplitude threshold is determined based on a preset amplitude threshold and the mean; calculating the difference between any two frequency values ​​in the frequency point set and representing the difference as frequency domain data.

[0010] Furthermore, the steps for determining the target operating mode of the antenna system based on time-domain and frequency-domain data include: determining the target operating mode as time-division duplex mode when the signal power variance is greater than a preset variance threshold and the signal power exhibits periodicity within the current time window length, wherein the periodicity is detected by an autocorrelation function; or, determining the two frequency points corresponding to any difference when any difference is detected within a preset frequency range; monitoring the amplitude of the two frequency points within a preset duration; and determining the target operating mode as frequency-division duplex mode when the amplitude is detected within a preset range.

[0011] Furthermore, the steps for configuring the antenna system based on the target operating mode include: when the target operating mode is time-division duplex mode, determining the duration of each time slot in the sampled signal based on a preset synchronization algorithm, and switching the transmit / receive mode of the antenna system based on the duration; when the target operating mode is frequency-division duplex mode, enabling the duplexer in the antenna system, and configuring the frequencies of multiple filters in the duplexer.

[0012] Furthermore, after reconfiguring the antenna system, the process also includes: acquiring target operating modes within multiple time window lengths and determining the total number of acquisitions; determining the number of target operating modes belonging to the same operating mode; calculating mode stability based on the total number of acquisitions and the number of acquisitions; and adjusting the time window length if the mode stability is less than a preset stability threshold.

[0013] According to another aspect of the embodiments of this application, a configuration device for an antenna system is also provided. The fiber optic repeater includes at least a near-end unit and a far-end unit. The far-end unit includes at least a signal processing unit and an antenna system, comprising: a first control unit for controlling the signal processing unit to extract data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window length; a first determination unit for determining the target operating mode of the antenna system based on the time-domain data and frequency-domain data; a first configuration unit for configuring the antenna system based on the target operating mode and monitoring the operating mode for the next time window length, wherein each time window length is the same, and the start point of the next time window length is later than the end point of the current time window length; and a second configuration unit for reconfiguring the antenna system when the operating mode changes in the next time window length.

[0014] Furthermore, the first control unit includes: a first sampling module, used to sample the wireless signal within the current time window length to obtain multiple sampled signals, wherein the sampled signals correspond to signal power; a first determining module, used to determine all signal power within the current time window length; a second determining module, used to construct a signal power sequence based on all signal power, and determine time-domain data based on the signal power sequence; and a third determining module, used to perform Fourier transform on all sampled signals within the current time window length to obtain a spectrum, and determine frequency-domain data based on the spectrum.

[0015] Furthermore, the second determining module includes: a first determining submodule, used to determine the sliding window length and determine all sampled signals within each sliding window length; a first calculation submodule, used to calculate the average signal power within each sliding window length based on the signal power sequence; and a second calculation submodule, used to calculate the signal power variance for each sliding window length based on the average signal power, and to characterize the signal power variance as time-domain data.

[0016] Furthermore, the spectrum data includes at least: multiple frequency points, the frequency value of each frequency point, and the amplitude of each frequency point. The third determining module includes: a third calculation submodule, used to calculate the mean of all amplitudes and calculate the derivative of each amplitude at the corresponding frequency point; a first adding submodule, used to add the frequency value of the frequency point corresponding to each amplitude to the frequency point set when the amplitude is greater than the target amplitude threshold and the derivative is equal to zero, wherein the target amplitude threshold is determined based on the preset amplitude threshold and the mean; and a fourth calculation submodule, used to calculate the difference between any two frequency values ​​in the frequency point set and represent the difference as frequency domain data.

[0017] Further, the first determining unit includes: a fourth determining module, used to determine the target operating mode as time-division duplex mode when the signal power variance is greater than a preset variance threshold and the signal power exhibits periodicity within the current time window length, wherein the periodicity is detected by an autocorrelation function; a fifth determining module, used to determine the two frequency points corresponding to any difference when any difference is detected to be within a preset frequency range; a first monitoring module, used to monitor the amplitude of the two frequency points within a preset duration; and a sixth determining module, used to determine the target operating mode as frequency-division duplex mode when the amplitude is detected to be within a preset range.

[0018] Furthermore, the first configuration unit includes: a seventh determining module, used to determine the duration of each time slot in the sampled signal based on a preset synchronization algorithm when the target operating mode is time division duplex mode, and to switch the transmit and receive modes of the antenna system based on the duration; and a first configuration module, used to enable the duplexer in the antenna system when the target operating mode is frequency division duplex mode, and to configure the frequencies of multiple filters of the duplexer.

[0019] Furthermore, the antenna system configuration device includes: a first acquisition module, used to acquire target operating modes within multiple time window lengths after reconfiguring the antenna system, and determine the total number of acquisitions; an eighth determination module, used to determine the number of target operating modes belonging to the same operating mode; a first calculation module, used to calculate mode stability based on the total number of acquisitions and the number of acquisitions; and a first adjustment module, used to adjust the time window length when the mode stability is less than a preset stability threshold.

[0020] According to another aspect of the embodiments of this application, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the configuration method of any of the antenna systems described above.

[0021] According to another aspect of the embodiments of this application, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described antenna system configuration methods.

[0022] In this invention, the control signal processing unit extracts data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window. Based on the time-domain data and frequency-domain data, the target operating mode of the antenna system is determined. Based on the target operating mode, the antenna system is configured, and the operating mode of the next time window is monitored. If the operating mode changes in the next time window, the antenna system is reconfigured. This solves the technical problem in related technologies that it is impossible to automatically configure different duplex modes of the antenna system.

[0023] In this invention, the control signal processing unit extracts data from the real-time received wireless signal to obtain time-domain and frequency-domain data within the current time window, such as power variance and frequency difference. Based on the time-domain and frequency-domain data, it can identify whether the wireless signal follows the periodic time slot allocation of TDD (Time Division Duplexing) mode or the fixed frequency band pairing of FDD (Frequency Division Duplexing) mode, that is, determine the target operating mode of the antenna system. Whether it is time slot synchronization under TDD or duplexer activation in FDD mode, the antenna system can be configured accordingly immediately, and the operating mode of the next time window can be monitored. If the operating mode changes in the next time window, a reconfiguration command is initiated to the antenna system, realizing a seamless transition from identification to execution. It can maintain efficient operation and the best service quality in complex and ever-changing network environments. Regardless of TDD or FDD, it can intelligently identify and make optimal configuration adjustments in real time, improving the flexibility of antenna system configuration. Attached Figure Description

[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:

[0025] Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing a configuration method for an antenna system is shown.

[0026] Figure 2 This is a flowchart of the antenna system configuration method according to Embodiment 1 of this application;

[0027] Figure 3 This is a schematic diagram of an optional fiber optic repeater system according to an embodiment of this application;

[0028] Figure 4 This is a flowchart of an optional configuration antenna system according to an embodiment of this application;

[0029] Figure 5 This is a flowchart of an optional discrimination working mode according to an embodiment of this application;

[0030] Figure 6 This is a schematic diagram of an optional time slot synchronization control based on a preset synchronization algorithm according to an embodiment of this application;

[0031] Figure 7 This is a schematic diagram of an optional antenna system configuration device according to an embodiment of this application;

[0032] Figure 8 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0033] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention 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 where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] It should be noted that all related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) collected and involved in this invention are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of this data comply with the relevant laws, regulations, and standards of the relevant regions, necessary confidentiality measures have been taken, and it does not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained only after receiving consent from the aforementioned user or organization.

[0036] In this invention, by fusing the analysis of the time-domain power periodicity and frequency-domain paired frequency characteristics of the signal, a highly reliable automatic TDD / FDD discrimination mechanism can be constructed. Through establishing a precise "discrimination-instruction" mapping: TDD mode triggers time slot synchronous switching, while FDD mode activates a duplexer to achieve full-duplex operation. This enables a single repeater to automatically identify and be compatible with both TDD and FDD, the two mainstream duplex modes, improving the equipment's versatility and deployment flexibility, and reducing operators' equipment inventory and maintenance costs. Simultaneously, it possesses continuous monitoring and re-discrimination capabilities, automatically triggering a seamless switching process after network standard changes, ensuring service continuity. By achieving accurate tracking and efficient relaying of the main network signal by the repeater, it guarantees communication quality and user experience in the coverage area.

[0037] The present invention will now be described in detail with reference to various embodiments.

[0038] Example 1

[0039] According to an embodiment of this application, an embodiment of an antenna system configuration method is also provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0040] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing a configuration method for an antenna system is shown. Figure 1 As shown, computer terminal 10 (or mobile device) may include one or more ( Figure 1The processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions may also be included. In addition, it may include: a display, a keyboard, a cursor control device, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera, wherein the network interface can be connected to wired and / or wireless networks. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0041] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0042] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the antenna system configuration method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the antenna system configuration method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0043] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0044] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0045] Under the aforementioned operating environment, this application provides the following: Figure 2 The antenna system configuration method is shown. Figure 2 This is a flowchart of the antenna system configuration method according to Embodiment 1 of this application, as follows: Figure 2 As shown, the method includes the following steps:

[0046] Step S201: The control signal processing unit extracts data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window.

[0047] Optionally, the method is applied to an optical fiber repeater, which includes at least a near-end unit and a far-end unit. The far-end unit includes at least a signal processing unit and an antenna system. The antenna system includes at least one duplex antenna for receiving uplink signals and transmitting downlink signals.

[0048] In this embodiment of the invention, the signal processing unit can be controlled to continuously monitor the wireless signal received by the radio frequency front end and divide the signal into multiple time windows of equal length. Within each time window, the signal processing unit extracts the time-domain and frequency-domain features of the signal (time-domain data and frequency-domain data). For example, for a time-domain signal, the signal processing unit can calculate the short-term average power, power variation variance, and detect periodic transmit / receive time slot characteristics; for a frequency-domain signal, it can detect features such as peak frequency and frequency spacing in the spectrum for subsequent standard identification and antenna configuration.

[0049] Figure 3 This is a schematic diagram of an optional fiber optic repeater system according to an embodiment of this application, such as... Figure 3As shown, a fiber optic repeater system includes: a signal source, a radio frequency access unit, an SMSC (Short Message Service Center) or switching center, a network management center, optical fibers, radio frequency cables, and a remote unit. The signal source (i.e., the base station) provides the wireless signal. The radio frequency access unit, located near the repeater, receives the base station's wireless signal and converts it into an optical signal, transmitting it to the remote unit via optical fiber or radio frequency cable. The remote unit is responsible for the final amplification and transmission of the signal to the user. The radio frequency cable can also be used to connect the antenna system. At the base station, control information and status data can be transmitted to the radio frequency access unit via wired coupling (such as Ethernet). Based on a monitoring and reporting mechanism, this data can be sent to the SMSC or switching center via wired or wireless means. The gateway monitoring platform collects monitoring information from the SMSC or switching center, integrates it, and forwards it to the network management center. The network management center monitors the health status and performance indicators of the entire network, issues network configuration commands, and performs network planning and optimization.

[0050] Step S202: Based on time-domain data and frequency-domain data, determine the target operating mode of the antenna system.

[0051] In this embodiment of the invention, the target operating mode of the antenna system can be determined based on time-domain data and frequency-domain data. If the signal shows periodic power fluctuations in the time domain and there are no obvious paired frequency intervals in the frequency domain, the target operating mode of the antenna system can be determined as TDD mode (i.e., frequency division duplex mode). Conversely, if stable paired frequency points are detected in the frequency domain data and the signal strength is relatively stable in the time domain data, the target operating mode of the antenna system can be determined as FDD mode (i.e., frequency division duplex mode).

[0052] Step S203: Configure the antenna system based on the target operating mode and monitor the operating mode for the next time window length, wherein each time window length is the same and the start point of the next time window length is later than the end point of the current time window length.

[0053] In this embodiment of the invention, based on the target operating mode, control commands can be generated to configure the antenna system and adjust the antenna's operating state. For example, in TDD mode, the antenna receives signals in the downlink time slot and transmits signals in the uplink time slot to avoid self-interference; in FDD mode, a duplexer is enabled, allowing the antenna to transmit and receive simultaneously on different frequency bands. Simultaneously, the characteristic changes of the signal within the next time window can be continuously monitored to determine the operating mode of the next time window. Each time window has the same length, and the start point of the next time window is later than the end point of the current time window.

[0054] Step S204: If the operating mode changes in the next time window, the antenna system is reconfigured.

[0055] In this embodiment of the invention, if the working mode of the next time window length is different from the target working mode of the current target time window length, the antenna system can be reconfigured. For example, the original TDD mode suddenly changes to FDD mode, or vice versa, the antenna system needs to be reconfigured according to the newly determined working mode to adapt to the change of network standard.

[0056] Figure 4 This is a flowchart of an optional configuration antenna system according to an embodiment of this application, such as... Figure 4 As shown, the system first continuously monitors the wireless signal and extracts its features (time domain and frequency domain features), including signal power and spectrum. Then, time domain and frequency domain feature analysis is performed to obtain time domain and frequency domain data (e.g., signal power variance, frequency differences, etc.). Based on the time domain and frequency domain data, the target operating mode of the antenna system (e.g., TDD or FDD mode) can be determined. If the target operating mode is TDD, self-interference can be avoided through time slot synchronization, and the antenna's transmit / receive switching can be controlled by a high-speed RF switch to control the time slot synchronization between the antenna and the base station, thus avoiding self-interference. If the target operating mode is FDD, the duplexer of the antenna system is activated, and the wireless signal can be continuously tracked. If the wireless signal is continuously tracked (i.e., continuously monitored), the time and frequency domain analysis of the signal within the next time window can be performed to monitor the operating mode within the next time window.

[0057] In summary, the signal processing unit can continuously monitor the received wireless signal and extract the power time slot variation pattern and frequency distribution characteristics of the wireless signal within the current time window. Based on these characteristics, it can intelligently determine the target operating mode of the signal (i.e., TDD or FDD mode). Based on the determined target operating mode, it can dynamically configure the antenna system and continuously monitor the signal. When the network standard changes, it can automatically reconfigure the antenna system, achieving smooth switching under dynamic adjustment of network parameters. This solves the technical problem of not being able to automatically configure different duplex modes of the antenna system in related technologies.

[0058] To accurately determine time-domain and frequency-domain data, in the antenna system configuration method provided in Embodiment 1 of this application, the wireless signal is sampled within the current time window length to obtain multiple sampled signals, wherein each sampled signal corresponds to a signal power; all signal powers within the current time window length are determined; a signal power sequence is constructed based on all signal powers, and time-domain data is determined based on the signal power sequence; Fourier transform is performed on all sampled signals within the current time window length to obtain a spectrum, and frequency-domain data is determined based on the spectrum.

[0059] In this embodiment of the invention, within the current time window, wireless signals can be sampled at a preset sampling frequency to obtain multiple sampled signals and the signal power of each sampled signal. The sampling frequency must satisfy the Nyquist sampling theorem, meaning the sampling frequency must be at least twice the highest frequency of the signal. All signal powers within the current time window are determined, and a signal power sequence can be constructed based on all signal powers. For example, if the time window length is 1 ms, the collected signal strength values ​​(i.e., signal power) can be arranged in chronological order to generate a signal power sequence. Based on the signal power sequence, time-domain data (e.g., short-time average power, power variance, etc.) can be determined, and a Fourier transform is performed on all sampled signals within the current time window to obtain a spectrum. Based on the spectrum, frequency-domain data (e.g., the difference between the frequency values ​​of two frequency points) can be determined.

[0060] In order to accurately determine the time-domain data, in the antenna system configuration method provided in Embodiment 1 of this application, the sliding window length is determined, and all sampled signals within each sliding window length are determined; based on the signal power sequence, the average signal power within each sliding window length is calculated; for each sliding window length, based on the average signal power, the signal power variance is calculated, and the signal power variance is represented as time-domain data.

[0061] In this embodiment of the invention, it is necessary to determine a sliding window length. The corresponding time slot length (e.g., 1ms) allows us to determine all sampled signals within each sliding window length. Based on the signal power sequence, we can calculate the average signal power (i.e., the signal average power of all sampled signals within each sliding window length) ,in, This represents the last sampling point within the length of the sliding window, where k represents the k sampling points preceding the last sampling point. For example... It is 5. If it is 5, then The power is calculated from five consecutive signal power samples, P(5), P(4), P(3), P(2), and P(1), representing the average power within the five sample groups centered on the fifth sample.

[0062] For each sliding window length, the signal power variance (i.e., ...) can be calculated based on the average signal power. Where n is the nth sampling point within the length of the sliding window, n=1,…,N, and N is the total number of sampling points within the length of the sliding window. This represents the signal power of the nth sampling point within the length of the sliding window, and the variance of this signal power can be characterized as time-domain data.

[0063] The spectrum data includes at least: multiple frequency points, the frequency value of each frequency point, and the amplitude of each frequency point. In order to accurately determine the frequency domain data, in the antenna system configuration method provided in Embodiment 1 of this application, the mean of all amplitudes is calculated, and the derivative of each amplitude at the corresponding frequency point is calculated. For each amplitude, if the amplitude is greater than the target amplitude threshold and the derivative is equal to zero, the frequency value of the frequency point corresponding to the amplitude is added to the frequency point set. The target amplitude threshold is determined based on the preset amplitude threshold and the mean. The difference between any two frequency values ​​in the frequency point set is calculated, and the difference is represented as frequency domain data.

[0064] In this embodiment of the invention, the data of each spectrum graph includes at least multiple frequency points, the frequency value of each frequency point, and the amplitude of each frequency point. It can calculate the mean of all amplitudes in each spectrum. And calculate the derivative of each amplitude at the corresponding frequency point, and can be based on a preset amplitude threshold ( The value can be set between 2 and 3) and the mean, to calculate the target amplitude threshold (i.e. For each amplitude, when the amplitude is greater than the target amplitude threshold (i.e. And the derivative is equal to zero (i.e. In the case of ), the frequency point corresponding to the amplitude. Add the frequency value to the frequency point set And calculate the difference between any two frequency values ​​in the set of frequency points (i.e., Thus, the difference between any two frequency values ​​can be obtained, and the difference can be represented as frequency domain data.

[0065] To accurately determine the target operating mode as frequency division duplex mode, in the antenna system configuration method provided in Embodiment 1 of this application, when the signal power variance is greater than a preset variance threshold and the signal power exhibits periodicity within the current time window, the target operating mode is determined to be time division duplex mode, wherein the periodicity is obtained by detecting an autocorrelation function; or, when any difference is detected to be within a preset frequency range, two frequency points corresponding to the difference are determined; the amplitudes of the two frequency points within a preset duration are monitored; when the amplitudes are detected to be within a preset range, the target operating mode is determined to be frequency division duplex mode.

[0066] Optionally, within each sliding window, the autocorrelation function (i.e. ,in, The autocorrelation factor (e.g., 5ms or 10ms, which can be set manually) detects whether the signal exhibits periodic changes within multiple sliding windows; the autocorrelation function... It can detect the signal at the current time point n and After the time unit The similarity between points in time, if the signal is periodic, then... When it is an integer multiple of the signal period, It will display a high value (i.e., peak value), at which point it can be determined that the signal power has periodicity within the current time window.

[0067] In this embodiment of the invention, when the signal power variance is greater than a preset variance threshold (i.e.) If the signal power exhibits periodicity within the current time window, the target operating mode will be determined as time-division duplex mode (e.g., ...). ).

[0068] When any difference is detected to be within the preset frequency range (i.e.) In the case of this, the two frequency points corresponding to the difference are determined. The preset frequency range can be set to a common FDD duplex interval range (e.g., 45MHz-400MHz), and the amplitude of the two frequency points within a preset time period can be monitored. If the amplitude is detected to be within the preset range (which can be set by the user), the target operating mode can be determined as frequency division duplex mode (i.e., frequency division duplex mode). ).

[0069] Figure 5 This is a flowchart of an optional discrimination working mode according to an embodiment of this application, such as... Figure 5As shown, firstly, time-domain and frequency-domain features are extracted to determine the values ​​of C_TDD and C_FDD. If C_TDD=1 (i.e., the signal is detected to exhibit periodic high-power downlink time slots and low-power uplink time slots on a single frequency band), it is determined to be in TDD mode. In this case, the antenna system can be controlled to synchronize with the base station signal time slots. In the downlink time slot, the antenna system is configured to receive the downlink signal from the base station, amplified by a repeater, and then transmitted to the user terminal. In the uplink time slot, the antenna system is configured to transmit the signal to the user terminal. The uplink signal from the terminal is amplified by the repeater and forwarded to the base station. If C_TDD is not equal to 1, it is determined whether C_FDD is equal to 1. If C_FDD=1 (that is, a continuous signal is detected at two different and fixed frequency points at the same time, and its power is relatively stable), it is determined to be in FDD mode, and the control antenna system is activated to enable duplexer. If it is determined that C_FDD is not equal to 1, it cannot be determined and further analysis is required, such as extending the observation window, increasing the sampling rate, or using more complex signal processing algorithms to improve the recognition accuracy of signal features.

[0070] In order to flexibly configure the antenna system, in the antenna system configuration method provided in Embodiment 1 of this application, when the target working mode is time division duplex mode, the duration of each time slot in the sampled signal is determined based on a preset synchronization algorithm, and the transmit and receive modes of the antenna system are switched based on the duration; when the target working mode is frequency division duplex mode, the duplexer in the antenna system is enabled, and the frequency of multiple filters of the duplexer is configured.

[0071] Optionally, when the target operating mode is time-division duplex, a high-speed radio frequency switch can be configured to control the antenna's transmit and receive switching.

[0072] Optionally, the wireless signal includes a series of wireless frames with a fixed duration, and a wireless frame includes multiple subframes or time slots.

[0073] In this embodiment of the invention, based on a preset synchronization algorithm, the duration of each time slot in the sampled signal can be determined, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of an optional time slot synchronization control method based on a preset synchronization algorithm according to an embodiment of this application. The preset synchronization algorithm can obtain the radio frame start time by detecting downlink synchronization signals (such as PSS (Primary Synchronization Signal) and SSS (Secondary Synchronization Signal)). And through the downlink slot start time (relative to the start of the radio frame). Uplink timeslot start time (relative to the start of the radio frame) Downlink pre-compensation duration and uplink pre-compensation duration Calculate the local control timing (including the actual control time for opening the downlink channel). and the actual control time for opening the uplink channel. ,Right now , Based on the actual control time, the transmit and receive modes of the antenna system can be switched, such as... Figure 6 As shown, SW_TX controls the antenna to be configured in transmit mode during the actual control time of downlink channel opening to the control time of downlink channel closing (i.e., the time corresponding to the right end of D), and SW_RX controls the antenna system to be configured in receive mode during the actual control time of uplink channel opening to the control time of uplink channel closing (i.e., the time corresponding to the right end of U). To avoid self-interference, mode switching can be performed via a high-speed RF switch. At other times, the antenna system is neither in receive mode nor transmit mode (e.g., ...). Figure 6 The time corresponding to the right end of D in the middle ).

[0074] In this embodiment of the invention, when the target operating mode is frequency division duplex mode, the antenna system is simultaneously connected to both the receiving and transmitting channels of the repeater, and the duplexer in the antenna system is activated, allowing downlink and uplink signals to be transmitted and received simultaneously on different frequency bands without interference. Furthermore, the frequencies of multiple filters in the duplexer can be configured; for example, if the detected downlink frequency is... Uplink frequency is (i.e., the two frequency points corresponding to the difference), the center frequency of the downlink filter can be configured as follows: Configure the center frequency of the uplink filter to The filter bandwidth is configured as follows: ,in, The detected signal bandwidth, This is the minimum protection bandwidth.

[0075] To improve the accuracy of the operating mode configuration, in the antenna system configuration method provided in Embodiment 1 of this application, multiple target operating modes within a time window are collected, and the total number of collections is determined; the number of target operating modes belonging to the same operating mode is determined; based on the total number of collections and the number of modes, the mode stability is calculated; and if the mode stability is less than a preset stability threshold, the time window length is adjusted.

[0076] In this embodiment of the invention, the target operating mode of the fiber optic repeater can be continuously acquired within multiple time windows, and the total number of acquisitions of the target operating mode within all time windows (i.e., the total number of acquisitions) can be counted. ), among all the collected data, count the number of target working modes that belong to the same working mode multiple times consecutively. Based on the total number of data collections and the number of data points, the mode stability (i.e., Stability = ...) can be calculated. When the mode stability is less than the preset stability threshold (i.e.) In cases like 0.8, the time window length is adjusted. For example, the repeater's signal processing unit detects the network signal every 500ms (time window length), continuously collecting 10 operating mode data points, performing a total of 10 mode detections. Eight consecutive results indicate TDD mode, and the remaining two results indicate FDD mode. Therefore, the target number of operating modes belonging to TDD mode is... At this point, Stability equals 0.8, indicating a stable state, and no adjustment to the time window length is required.

[0077] In this embodiment of the invention, adjusting the time window length is to cope with unstable network signals or frequent switching, and to prevent pattern recognition errors caused by unreasonable time window length settings. If the calculated pattern stability is 0.9, the time window length can be reduced to capture signal feature changes in a finer granular manner and improve the accuracy of pattern recognition.

[0078] To prevent service interruption, the switching process can adopt the following steps: First, keep the current configuration working, start the initialization of the new mode in parallel, perform the switch at the service gap or specific synchronization point, and after verifying that the new configuration is working normally, release the old resources. When switching modes, the interruption or performance degradation of communication services should not exceed the preset time budget (e.g., 50ms).

[0079] The antenna system configuration method provided in this application can determine the duplex mode of the current antenna system by continuously monitoring the time-domain characteristics of the signal, such as power variation variance, and the frequency-domain characteristics, including the identification of paired frequency bands and amplitude stability analysis. Once TDD mode is determined, the repeater uses a preset synchronization algorithm to dynamically adjust the transmit and receive modes of the antenna system in the uplink and downlink time slots. If FDD mode is determined, the duplexer can be activated and fine-tuned frequency configuration can be performed to ensure efficient isolation of uplink and downlink signals. In addition, the method can also cope with the instability and frequent switching of network signals through mode stability calculation and intelligent adjustment mechanism of time window length, so that the antenna system is always in the optimal configuration state. This not only improves the deployment flexibility and operation and maintenance efficiency of the repeater, but also optimizes network performance, avoids signal interference, and realizes adaptive antenna configuration.

[0080] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0081] Example 2

[0082] This application also provides an antenna system configuration device. It should be noted that the antenna system configuration device of this application can be used to execute the antenna system configuration method provided in this application. The antenna system configuration device provided in this application will be described below.

[0083] According to an embodiment of this application, an apparatus for implementing the configuration method of the antenna system described above is also provided. Figure 7 This is a schematic diagram of an optional antenna system configuration device according to an embodiment of this application, such as... Figure 7 As shown, the configuration device of the antenna system may include: a first control unit 70, a first determination unit 71, a first configuration unit 72, and a second configuration unit 73.

[0084] The first control unit 70 is used to control the signal processing unit to extract data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window.

[0085] The first determining unit 71 is used to determine the target operating mode of the antenna system based on time domain data and frequency domain data.

[0086] The first configuration unit 72 is used to configure the antenna system based on the target operating mode and monitor the operating mode for the next time window length, wherein each time window length is the same and the start point of the next time window length is later than the end point of the current time window length.

[0087] The second configuration unit 73 is used to reconfigure the antenna system in the event that the operating mode changes in the next time window.

[0088] The antenna system configuration device provided in this application embodiment can control the signal processing unit through the first control unit 70 to extract data from the received wireless signal, obtain time domain data and frequency domain data within the current time window length, determine the target operating mode of the antenna system through the first determining unit 71 based on the time domain data and frequency domain data, configure the antenna system based on the target operating mode through the first configuration unit 72, monitor the operating mode of the next time window length, and reconfigure the antenna system through the second configuration unit 73 when the operating mode changes in the next time window length.

[0089] Optionally, the first control unit 70 includes: a first sampling module, configured to sample the wireless signal within the current time window length to obtain multiple sampled signals, wherein each sampled signal corresponds to a signal power; a first determining module, configured to determine all signal powers within the current time window length; a second determining module, configured to construct a signal power sequence based on all signal powers, and determine time-domain data based on the signal power sequence; and a third determining module, configured to perform Fourier transform on all sampled signals within the current time window length to obtain a spectrum, and determine frequency-domain data based on the spectrum.

[0090] Optionally, the second determining module includes: a first determining submodule, used to determine the sliding window length and determine all sampled signals within each sliding window length; a first calculation submodule, used to calculate the average signal power within each sliding window length based on the signal power sequence; and a second calculation submodule, used to calculate the signal power variance for each sliding window length based on the average signal power, and to characterize the signal power variance as time-domain data.

[0091] Optionally, the spectrum data includes at least: multiple frequency points, the frequency value of each frequency point, and the amplitude of each frequency point. The third determining module includes: a third calculation submodule, used to calculate the mean of all amplitudes and calculate the derivative of each amplitude at the corresponding frequency point; a first adding submodule, used to add the frequency value of the frequency point corresponding to each amplitude to the frequency point set when the amplitude is greater than the target amplitude threshold and the derivative is equal to zero, wherein the target amplitude threshold is determined based on a preset amplitude threshold and the mean; and a fourth calculation submodule, used to calculate the difference between any two frequency values ​​in the frequency point set and represent the difference as frequency domain data.

[0092] Optionally, the first determining unit 71 includes: a fourth determining module, used to determine the target operating mode as time-division duplex mode when the signal power variance is greater than a preset variance threshold and the signal power exhibits periodicity within the current time window length, wherein the periodicity is detected by an autocorrelation function; a fifth determining module, used to determine two frequency points corresponding to any difference when any difference is detected to be within a preset frequency range; a first monitoring module, used to monitor the amplitude of the two frequency points within a preset duration; and a sixth determining module, used to determine the target operating mode as frequency-division duplex mode when the amplitude is detected to be within a preset range.

[0093] Optionally, the first configuration unit 72 includes: a seventh determining module, used to determine the duration of each time slot in the sampled signal based on a preset synchronization algorithm when the target operating mode is time division duplex mode, and to switch the transmit and receive modes of the antenna system based on the duration; and a first configuration module, used to enable the duplexer in the antenna system when the target operating mode is frequency division duplex mode, and to configure the frequencies of multiple filters of the duplexer.

[0094] Optionally, the configuration device for the antenna system includes: a first acquisition module, used to acquire target operating modes within multiple time window lengths after reconfiguring the antenna system, and determine the total number of acquisitions; an eighth determination module, used to determine the number of target operating modes belonging to the same operating mode; a first calculation module, used to calculate mode stability based on the total number of acquisitions and the number of modes; and a first adjustment module, used to adjust the time window length when the mode stability is less than a preset stability threshold.

[0095] The configuration device of the antenna system described above may also include a processor and a memory. The first control unit 70, the first determination unit 71, the first configuration unit 72, the second configuration unit 73, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions.

[0096] The aforementioned processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and by adjusting kernel parameters, the antenna system can be reconfigured in the event of a change in the operating mode within the next time window.

[0097] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0098] It should be noted that the first control unit 70, the first determining unit 71, the first configuring unit 72, and the second configuring unit 73 mentioned above correspond to steps S201 to S204 in Embodiment 1. The instances and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above units can be hardware or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above units can also be part of a device and run in the computer terminal 10 provided in Embodiment 1.

[0099] Example 3

[0100] Embodiments of this application may provide a computer terminal, which may be any computer terminal device in a group of computer terminals. Optionally, in this embodiment, the aforementioned computer terminal may also be replaced with a mobile terminal or an electronic device, etc.

[0101] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.

[0102] In this embodiment, the computer terminal described above can execute the program code for the following steps in the antenna system configuration method: controlling the signal processing unit to extract data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window length; determining the target operating mode of the antenna system based on the time-domain data and frequency-domain data; configuring the antenna system based on the target operating mode and monitoring the operating mode of the next time window length, wherein each time window length is the same, and the start point of the next time window length is later than the end point of the current time window length; and reconfiguring the antenna system if the operating mode of the next time window length changes.

[0103] Optionally, the computer terminal described above can execute program code for the following steps in the antenna system configuration method: within the current time window length, sample the wireless signal to obtain multiple sampled signals, wherein each sampled signal corresponds to a signal power; determine all signal powers within the current time window length; construct a signal power sequence based on all signal powers, and determine time-domain data based on the signal power sequence; perform Fourier transform on all sampled signals within the current time window length to obtain a spectrum, and determine frequency-domain data based on the spectrum.

[0104] Optionally, the computer terminal described above can execute program code for the following steps in the antenna system configuration method: determining the sliding window length and determining all sampled signals within each sliding window length; calculating the average signal power within each sliding window length based on the signal power sequence; and for each sliding window length, calculating the signal power variance based on the average signal power and characterizing the signal power variance as time-domain data.

[0105] Optionally, the computer terminal described above can execute the program code for the following steps in the antenna system configuration method: calculating the mean of all amplitudes and calculating the derivative of each amplitude at the corresponding frequency point; for each amplitude, if the amplitude is greater than the target amplitude threshold and the derivative is equal to zero, adding the frequency value of the frequency point corresponding to the amplitude to the frequency point set, wherein the target amplitude threshold is determined based on the preset amplitude threshold and the mean; calculating the difference between any two frequency values ​​in the frequency point set and representing the difference as frequency domain data.

[0106] Optionally, the aforementioned computer terminal may execute program code for the following steps in the antenna system configuration method: when the signal power variance is greater than a preset variance threshold and the signal power exhibits periodicity within the current time window, the target operating mode is determined to be time-division duplex mode, wherein the periodicity is detected by an autocorrelation function; or, when any difference is detected to be within a preset frequency range, the two frequency points corresponding to that difference are determined; the amplitudes of the two frequency points within a preset duration are monitored; when the amplitudes are detected to be within a preset range, the target operating mode is determined to be frequency-division duplex mode.

[0107] Optionally, the computer terminal described above can execute the program code for the following steps in the antenna system configuration method: when the target operating mode is time division duplex mode, determine the duration of each time slot in the sampled signal based on a preset synchronization algorithm, and switch the transmit / receive mode of the antenna system based on the duration; when the target operating mode is frequency division duplex mode, enable the duplexer in the antenna system, and configure the frequencies of multiple filters of the duplexer.

[0108] Optionally, the computer terminal described above can execute the program code for the following steps in the antenna system configuration method: acquiring target operating modes within multiple time window lengths and determining the total number of acquisitions; determining the number of target operating modes belonging to the same operating mode; calculating mode stability based on the total number of acquisitions and the number of acquisitions; and adjusting the time window length if the mode stability is less than a preset stability threshold.

[0109] Optionally, Figure 8 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 8 As shown, the electronic device may include: one or more ( Figure 8 (Only one is shown) processor 802, memory 804, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0110] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the antenna system configuration method and apparatus in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned antenna system configuration method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0111] The processor can access the information and application program stored in the memory via the transmission device to execute the steps described above in the antenna system configuration method.

[0112] This application provides a scheme for configuring an antenna system. First, a signal processing unit continuously or periodically monitors and analyzes the collected wireless signals, extracting key signal characteristic parameters such as time slot power variation patterns and frequency distribution. Then, based on these parameters, it determines the corresponding duplex mode of the signal: whether it is a periodic time-division TDD system or a fixed-band paired FDD system. Subsequently, according to the determination result, the antenna system is intelligently controlled to switch to the appropriate transmit / receive mode: in TDD mode, time slot synchronization technology ensures that the antenna performs transmit and receive tasks in the correct time segments, avoiding self-interference; in FDD mode, the duplexer is activated, utilizing its filtering characteristics to achieve synchronous transmit and receive across different frequency bands, achieving efficient full-duplex communication. This realizes dynamic adjustment and optimization of the antenna system's operating mode, thus solving the technical problem in related technologies where different duplex modes of the antenna system cannot be automatically configured.

[0113] Those skilled in the art will understand that Figure 8 The structure shown is for illustrative purposes only. Electronic devices can also be terminal devices such as smartphones, tablets, PDAs, and mobile internet devices (MIDs). Figure 8 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 8 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 8 The different configurations shown.

[0114] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0115] Example 4

[0116] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the antenna system configuration method provided in Embodiment 1.

[0117] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0118] This application also provides a computer program product that, when executed on a data processing device, is suitable for performing the steps of an antenna system configuration method.

[0119] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0120] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0121] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0122] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0123] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0124] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0125] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for configuring an antenna system, characterized in that, The method is applied to fiber optic repeaters, wherein the fiber optic repeater includes at least a near-end unit and a far-end unit, and the far-end unit includes at least a signal processing unit and an antenna system; the configuration method includes: The signal processing unit is controlled to extract data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window. Based on the time-domain data and the frequency-domain data, the target operating mode of the antenna system is determined; Based on the target operating mode, the antenna system is configured, and the operating mode of the next time window length is monitored, wherein each time window length is the same, and the start point of the next time window length is later than the end point of the current time window length. If the operating mode changes during the next time window, the antenna system is reconfigured.

2. The antenna system configuration method according to claim 1, characterized in that, The step of controlling the signal processing unit to extract data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window includes: Within the current time window length, the wireless signal is sampled to obtain multiple sampled signals, wherein each sampled signal corresponds to a signal power; Determine the power of all signals within the current time window length; Based on all the signal powers, a signal power sequence is constructed, and based on the signal power sequence, the time-domain data is determined; Within the current time window length, perform Fourier transform on all the sampled signals to obtain a spectrum, and determine the frequency domain data based on the spectrum.

3. The antenna system configuration method according to claim 2, characterized in that, The step of determining the time-domain data based on the signal power sequence includes: Determine the sliding window length, and determine all the sampled signals within each said sliding window length; Based on the signal power sequence, calculate the average signal power within each sliding window length; For each sliding window length, the signal power variance is calculated based on the average signal power, and the signal power variance is represented as the time-domain data.

4. The antenna system configuration method according to claim 2, characterized in that, The spectrum data includes at least: multiple frequency points, the frequency value of each frequency point, and the amplitude of each frequency point. The step of determining the frequency domain data based on the spectrum includes: Calculate the mean of all said amplitudes, and calculate the derivative of each said amplitude at the corresponding said frequency point; For each amplitude, if the amplitude is greater than a target amplitude threshold and the derivative is equal to zero, the frequency value of the frequency point corresponding to the amplitude is added to the frequency point set, wherein the target amplitude threshold is determined based on a preset amplitude threshold and the mean. Calculate the difference between any two frequency values ​​in the set of frequency points, and represent the difference as frequency domain data.

5. The antenna system configuration method according to claim 1, characterized in that, The steps for determining the target operating mode of the antenna system based on the time-domain data and the frequency-domain data include: If the signal power variance is greater than a preset variance threshold, and the signal power exhibits periodicity within the current time window length, the target operating mode is determined to be time-division duplex mode, wherein the periodicity is detected by an autocorrelation function; or, If any difference is detected to be within a preset frequency range, determine the two frequency points corresponding to that difference; Monitor the amplitude of the two frequency points within a preset time period; If the amplitude is detected to be within a preset range, the target operating mode is determined to be frequency division duplex mode.

6. The antenna system configuration method according to claim 1, characterized in that, The steps for configuring the antenna system based on the target operating mode include: When the target working mode is time division duplex mode, the duration of each time slot in the sampled signal is determined based on a preset synchronization algorithm, and the transmit and receive modes of the antenna system are switched based on the duration. When the target operating mode is frequency division duplex mode, the duplexer in the antenna system is enabled, and the frequency of the multiple filters of the duplexer is configured.

7. The antenna system configuration method according to claim 1, characterized in that, After reconfiguring the antenna system, the following is also included: Collect the target working mode within multiple time windows and determine the total number of collections; Determine the number of target working modes that belong to the same working mode; Based on the total number of data collections and the number of data points, the mode stability is calculated. If the mode stability is less than a preset stability threshold, the length of the time window is adjusted.

8. A configuration device for an antenna system, characterized in that, This is applied to fiber optic repeaters, wherein the fiber optic repeater includes at least: a near-end unit and a far-end unit, the far-end unit including at least: a signal processing unit and an antenna system, and the configuration device includes: The first control unit is used to control the signal processing unit to extract data from the received wireless signal to obtain time-domain data and frequency-domain data within the current time window. The first determining unit is used to determine the target operating mode of the antenna system based on the time-domain data and the frequency-domain data. The first configuration unit is used to configure the antenna system based on the target operating mode and monitor the operating mode for the next time window length, wherein each time window length is the same, and the start point of the next time window length is later than the end point of the current time window length. The second configuration unit is used to reconfigure the antenna system if the operating mode changes during the next time window.

9. A computer program product, characterized in that, The method includes a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the configuration method of the antenna system according to any one of claims 1 to 7.

10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the configuration method of the antenna system according to any one of claims 1 to 7.