A method for adjusting the tilt angle of a smart antenna, a smart antenna and a controller

By using adaptive Kalman filtering and a wind load prediction model to drive the motor to adjust the antenna tilt angle, the problem of traditional antenna manual adjustment being difficult to respond to changes in the external environment in real time is solved, achieving efficient antenna performance optimization and improved communication stability.

CN123183669APending Publication Date: 2026-11-27SEEED TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611432094.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional antenna tilt adjustment relies on manual on-site debugging, which makes it difficult to respond to changes in the external environment in real time, causing the antenna to deviate from the optimal operating point and affecting communication quality.

Method used

Adaptive Kalman filtering is used to process triaxial acceleration data. Combined with wind load torque model and mechanical transfer function, forward multi-step prediction is performed to generate target control quantity. The motor is then driven by pulse width modulation signal to adjust the antenna tilt angle.

Benefits of technology

This enables smart antennas to quickly and smoothly approach optimal radiation performance, reducing adjustment lag and transient deviations, improving wireless coverage quality and communication stability, and reducing manual debugging and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123183669A_ABST
    Figure CN123183669A_ABST
Patent Text Reader

Abstract

The embodiment of the application relates to the technical field of wireless communication, and particularly relates to a tilt angle adjustment method of a smart antenna, a smart antenna and a controller. The method comprises the following steps: acquiring real-time three-axis acceleration data of the smart antenna and a preset target tilt angle; performing adaptive Kalman filtering on the three-axis acceleration data to obtain a tilt angle estimation value; calculating an angle deviation based on the tilt angle estimation value and the target tilt angle; acquiring disturbance information, performing forward multi-step prediction based on a preset disturbance prediction model to obtain a tilt angle disturbance prediction value, and calculating a prediction deviation based on the angle deviation and the tilt angle disturbance prediction value; generating a target control quantity based on the angle deviation and the prediction deviation; generating a pulse width modulation signal based on the target control quantity to drive the smart antenna to adjust a tilt angle to approach or reach the target tilt angle. Through adaptive Kalman filtering, disturbance prediction and feedforward control, the application reduces adjustment lag and transient deviation, improves wireless coverage quality and communication stability, and reduces artificial maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and in particular to a method for tilting an intelligent antenna, an intelligent antenna, and a controller. Background Technology

[0002] In wireless communication, antennas play an extremely important role. The radiation pattern of an antenna (especially the main lobe) is crucial to network coverage quality, signal strength, and system capacity, significantly impacting overall wireless transmission performance. The tilt angle of an antenna is a key parameter determining its optimal radiation performance.

[0003] However, traditional antenna tilt adjustment relies heavily on manual on-site debugging and regular maintenance, which is not only inefficient and costly, but also difficult to respond in real time to changes in antenna attitude caused by external environmental factors such as wind and mechanical vibration. This causes the antenna to deviate from the optimal operating point for a long time, resulting in coverage blind spots and seriously affecting communication quality. Summary of the Invention

[0004] One objective of this application is to provide a tilt adjustment method for a smart antenna, a smart antenna, and a controller, in order to solve the technical problem in the prior art where the antenna deviates from its optimal performance radiation position due to external influences and requires manual on-site adjustment.

[0005] In a first aspect, embodiments of this application provide a method for adjusting the tilt angle of a smart antenna, comprising: The real-time triaxial acceleration data and preset target tilt angle of the smart antenna are obtained. The target tilt angle is the tilt angle corresponding to the best radiation performance of the smart antenna. An adaptive Kalman filter is applied to the triaxial acceleration data to obtain an estimated tilt angle of the smart antenna. The angle deviation is calculated based on the estimated tilt angle and the target tilt angle. Obtain disturbance information, perform forward multi-step prediction based on a preset disturbance prediction model and the disturbance information to obtain tilt angle disturbance prediction value, and calculate prediction deviation based on the angle deviation and the tilt angle disturbance prediction value; The target control quantity is generated based on the angle deviation and the prediction deviation; A pulse width modulation signal is generated based on the target control quantity to drive the smart antenna to adjust its tilt angle to approach or reach the target tilt angle.

[0006] Optionally, the step of performing adaptive Kalman filtering on the triaxial acceleration data to obtain the tilt angle estimate of the smart antenna includes: Construct the innovation vector of the adaptive Kalman filter, wherein the innovation vector is the difference between the observation vector and the prediction vector of the corresponding one-step prediction state; Based on the sliding window sample covariance and the baseline noise covariance of the innovation vector, the process noise covariance is adaptively adjusted, and the process noise covariance is used to characterize the noise in the state transition process; The tilt angle estimate is obtained by performing Kalman filtering based on the adjusted process noise covariance.

[0007] Optionally, the step of performing adaptive Kalman filtering on the triaxial acceleration data to obtain the tilt angle estimate of the smart antenna further includes: Calculate the Mahalanobis distance of the innovation vector corresponding to the current sampling point based on the innovation covariance matrix; The dynamic threshold is determined based on the mean and standard deviation of the Mahalanobis distance statistics within the window; In response to the Mahalanobis distance being greater than the dynamic threshold, the observation vector corresponding to the current sampling point is determined as an abnormal observation vector, and the prediction vector corresponding to the one-step prediction state is used to replace the observation vector in the filtering update to obtain the tilt angle estimate.

[0008] Optionally, the disturbance information includes wind speed information and wind direction information. The preset disturbance prediction model includes a wind load moment model and a mechanical transfer function. The wind load moment model is used to characterize the relationship between wind speed, wind direction, and wind load moment. The mechanical transfer function is used to convert the wind load moment into an estimated tilt angle disturbance value. The process of acquiring disturbance information, performing forward multi-step prediction based on the preset disturbance prediction model and the disturbance information to obtain a tilt angle disturbance prediction value, and calculating the prediction deviation based on the angle deviation and the tilt angle disturbance prediction value includes: Obtain wind speed and wind direction information; Based on the wind load moment model, the wind speed information, and the wind direction information, the wind load moment is calculated. The wind load torque is input into the mechanical transfer function to obtain the tilt angle disturbance estimate; Based on the estimated tilt angle disturbance value and the number of prediction steps, a forward multi-step prediction is performed to obtain the predicted tilt angle disturbance value. The number of prediction steps for the forward multi-step prediction is determined according to the wind speed information. The predicted deviation is obtained by subtracting the predicted tilt angle disturbance value from the predicted angle deviation.

[0009] Optionally, the wind load moment model includes parameters to be identified, which include at least one of drag coefficient, natural frequency, and damping ratio. The calculation of the wind load moment based on the wind load moment model, the wind speed information, and the wind direction information further includes: The parameters to be identified are identified online using the recursive least squares method with an adaptive forgetting factor, and the adaptive forgetting factor is adaptively adjusted according to the prediction error of the recursive least squares method. The wind load moment is calculated based on the wind load moment model after determining the parameters to be identified, the wind speed information, and the wind direction information.

[0010] Optionally, generating the target control quantity based on the angle deviation and the prediction deviation includes: A feedback control component is generated based on the aforementioned angle deviation; A feedforward compensation component is generated based on the prediction bias; The target control quantity is obtained by superimposing the feedback control component and the feedforward compensation component.

[0011] Optionally, generating feedback control components based on the angle deviation includes: Based on the angle deviation, the multi-mode fuzzy PID control algorithm switches between multiple control modes, each of which is configured with different proportional, integral, and derivative parameters. Based on the switched control mode, determine the proportional parameters, integral parameters, and derivative parameters; The feedback control component is generated based on the proportional parameter, the integral parameter, the derivative parameter, and the angle deviation.

[0012] Optionally, the multiple control modes include a fast tracking mode, a precise holding mode, and an anti-disturbance lock-in mode, and the switching between the multiple control modes corresponding to the multi-mode fuzzy PID control algorithm based on the angle deviation includes: In response to the absolute value of the angle deviation being greater than a first threshold, the system switches to the fast tracking mode; In response to the absolute value of the angle deviation being less than or equal to a second threshold, the system switches to the precision hold mode, wherein the second threshold is less than the first threshold; In response to the absolute value of the angle deviation being greater than the second threshold and less than or equal to the first threshold, and the prediction deviation satisfying the interference condition, the system switches to the anti-interference locking mode.

[0013] Secondly, embodiments of this application provide a controller, including a memory and a processor, wherein the memory is connected to the processor, and the processor is configured to execute one or more computer programs stored in the memory, wherein when the processor executes the one or more computer programs, the controller implements the method described above.

[0014] Thirdly, embodiments of this application provide a smart antenna, comprising: A three-axis accelerometer is used to collect real-time three-axis acceleration data of the smart antenna; An antenna device, wherein a motor is provided below the antenna device, and the motor is used to drive the antenna device to adjust the tilt angle; A motor control module, connected to the motor, is used to output a drive voltage or pulse width modulation signal according to the target control quantity to control the rotation angle and speed of the motor; The controller described above is connected to the triaxial accelerometer and the motor control module respectively, and is used to implement the method described above.

[0015] The embodiments of this application can achieve the following technical effects: In the tilt adjustment method of the smart antenna provided in this application embodiment, the three-axis acceleration data is processed by adaptive Kalman filtering, which can suppress time-varying interference and outliers and improve the tilt angle estimation accuracy; by acquiring disturbance information and using a preset interference prediction model to perform forward multi-step prediction, the tilt angle disturbance prediction value is obtained, and the prediction deviation is calculated in combination with the angle deviation, which can detect the impact of disturbance in advance; based on the angle deviation and the prediction deviation, a target control quantity is generated, which is then converted into a pulse width modulation signal to drive the motor adjustment, which can enable the smart antenna to quickly and smoothly approach or reach the target tilt angle corresponding to the best radiation performance, reduce adjustment lag and transient deviation, improve wireless coverage quality and communication stability, and reduce manual on-site debugging and maintenance costs. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the structure of a smart antenna provided in an embodiment of this application; Figure 2 A schematic flowchart illustrating a tilt adjustment method for a smart antenna provided in an embodiment of this application; Figure 3 A schematic diagram of an adaptive Kalman filter provided for an embodiment of this application; Figure 4 A schematic diagram of a wind load disturbance prediction process provided in an embodiment of this application; Figure 5 A flowchart illustrating a multi-mode fuzzy PID control provided in an embodiment of this application; Figure 6A schematic diagram of the tilt adjustment device for a smart antenna provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a controller provided in an embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0019] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this application do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.

[0020] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of a smart antenna provided in an embodiment of this application. The smart antenna 100 provided in this embodiment includes a triaxial accelerometer 10, an antenna device 20, a motor control module 30, and a controller 40.

[0021] The triaxial accelerometer 10 is a sensor capable of measuring acceleration along three spatial axes. It is used to acquire real-time triaxial acceleration data from the smart antenna, providing raw observation data for tilt angle calculation. The triaxial accelerometer 10 can be mounted on the smart antenna's housing, bracket, or pole, and tilts with the antenna. It can be connected to the controller via wired or wireless means.

[0022] Antenna device 20 is a component in a smart antenna used for transmitting and receiving wireless signals. A motor is located below antenna device 20, which drives antenna device 20 to adjust its tilt angle. The motor can be a stepper motor, servo motor, or DC motor, etc. The motor can be connected to antenna device 20 through a mechanical transmission structure, such as a gear, worm gear, connecting rod, or shaft structure. When the motor rotates, it drives antenna device 20 to rotate around a preset shaft, thereby changing the tilt angle of antenna device 20.

[0023] The motor control module 30 is connected to the motor and is used to output a drive voltage or pulse width modulation signal according to the target control quantity to control the rotation angle and speed of the motor. The motor control module 30 may include a motor driver chip, a power amplifier circuit, a protection circuit, etc. The motor control module 30 receives the target control quantity output by the controller 40 and converts it into a drive voltage or pulse width modulation signal that the motor can execute. The pulse width modulation signal is simply referred to as a PWM signal, which controls the average drive voltage or current of the motor by adjusting the pulse duty cycle, thereby driving the motor to rotate and causing the smart antenna to adjust its tilt angle to approach or reach the target tilt angle.

[0024] The controller 40 is connected to the triaxial accelerometer 10 and the motor control module 30 respectively, and is used to implement the tilt angle adjustment method of the smart antenna provided in this embodiment. The controller 40 can be a microcontroller, digital signal processor, application-specific integrated circuit, field-programmable gate array, etc. With the above structure, the smart antenna 100 can automatically adjust the tilt angle to obtain the best radiation performance, reduce the cost of manual on-site debugging and maintenance, and improve the quality of wireless coverage and communication stability.

[0025] In some embodiments, the smart antenna 100 may further include a voltage monitoring module, a non-volatile memory, a wireless communication module, etc. The voltage monitoring module monitors the supply voltage, triggers an interrupt before power failure, and writes the current optimal angle, control parameters, and an empirical database into the non-volatile memory. The non-volatile memory can be a flash memory. The wireless communication module can be a VPN, Bluetooth, long-range low-power wireless communication module, etc., for collaborative sensing among multiple antennas.

[0026] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for adjusting the tilt angle of a smart antenna according to an embodiment of this application. This embodiment adjusts the tilt angle of the smart antenna through steps S21 to S26, as detailed below: S21: Acquire real-time triaxial acceleration data of the smart antenna and the preset target tilt angle, which is the tilt angle corresponding to the best radiation performance of the smart antenna.

[0027] In step S21, the triaxial acceleration data consists of acceleration signals collected by a triaxial accelerometer along the three spatial axes. The triaxial acceleration data may include components of gravitational acceleration along the three axes, as well as dynamic acceleration components caused by wind, mechanical vibration, etc. The target tilt angle is the tilt angle corresponding to the optimal radiation performance of the smart antenna.

[0028] The target tilt angle can be preset or calculated based on the optimal radiation position coordinates of the smart antenna. For example, setting the optimal radiation position coordinates (X,Y,Z) of the smart antenna to (0,0,0), and calculating the real-time spatial attitude angle of the smart antenna based on triaxial acceleration data, the tilt angle that allows the smart antenna to achieve optimal radiation performance is determined as the target tilt angle. For example, the target tilt angle can be 3.0°.

[0029] It should be noted that the target tilt angle can be a single angular value, or it can include both pitch and roll angles. When the smart antenna only needs to adjust the tilt angle in one direction, the target tilt angle can be a single angular value; when the smart antenna needs to adjust the tilt angle in two directions, the target tilt angle can include both the pitch and roll angle target values.

[0030] In some embodiments, the process of calculating the tilt angle from triaxial acceleration data may include: calculating the pitch angle and roll angle based on the first-axis acceleration a_x, the second-axis acceleration a_y, and the third-axis acceleration a_z. For example, the pitch angle θ_pitch can be expressed as: θ_pitch = arctan2(a_y, sqrt(a_x^2 + a_z^2)) The roll angle θ_roll can be expressed as: θ_roll = arctan2(-a_x, a_z) Where arctan2 is the arctangent function in the four quadrants, and sqrt is the square root function. Through the above calculations, the triaxial acceleration data can be converted into measured tilt angles, which serve as the observation vector for adaptive Kalman filtering.

[0031] S22: Perform adaptive Kalman filtering on the triaxial acceleration data to obtain the tilt angle estimate of the smart antenna.

[0032] In step S22, the adaptive Kalman filter is a filtering algorithm in this application that adaptively adjusts the process noise covariance or observation noise covariance based on the statistical characteristics of the innovation, on the basis of the standard Kalman filter. The tilt angle estimate is the estimation result of the current tilt angle of the smart antenna. Through adaptive Kalman filtering, time-varying interference and outliers in the triaxial acceleration data can be suppressed, and the tilt angle estimation accuracy can be improved. For example, after the triaxial acceleration data is processed by adaptive Kalman filtering, the output tilt angle estimate θ_est(t) is obtained.

[0033] In some embodiments, please refer to Figure 3 , Figure 3 This is a flowchart illustrating an adaptive Kalman filter provided in an embodiment of this application. The process of performing adaptive Kalman filtering on triaxial acceleration data to obtain a tilt angle estimate for the smart antenna includes the following steps: S31: Construct the innovation vector of the adaptive Kalman filter, which is the difference between the observation vector and the prediction vector of the corresponding prediction state in one step; S32: Based on the innovation vector, the sliding window sample covariance and the baseline noise covariance are adaptively adjusted to improve the process noise covariance, which is used to characterize the noise during the state transition process. S33: Perform Kalman filtering based on the adjusted process noise covariance to obtain the tilt angle estimate.

[0034] In step S31, the innovation vector is the difference between the observation vector and the prediction vector of the corresponding one-step predicted state. The observation vector is a vector composed of the measured tilt angles calculated from the triaxial acceleration data. The one-step predicted state is the estimated value obtained by predicting the current state based on the state estimate of the previous time step and the state transition model. The prediction vector is the vector obtained by mapping the one-step predicted state through the observation matrix. Before constructing the innovation vector of the adaptive Kalman filter, the state equation and observation equation need to be established. The state equation can be expressed as: X(t) = F × X(t-1) + w(t) The observation equation can be expressed as: Z(t) = H × X(t) + v(t) Where X(t) is the state vector, F is the state transition matrix, w(t) is the process noise, Z(t) is the observation vector, H is the observation matrix, and v(t) is the observation noise. The state vector X(t) can include the tilt angle and its rate of change. For example, X(t) = [θ(t), θ'(t)]^T, where θ(t) is the tilt angle and θ'(t) is the rate of change of the tilt angle. The observation vector Z(t) can be determined based on the measured tilt angle obtained from the triaxial acceleration data. The observation matrix H can be set to H = [1, 0].

[0035] In this embodiment, the innovation vector ε(t) of the adaptive Kalman filter can be expressed as: ε(t) = Z(t) - H × X(t|t-1) Where Z(t) is the observation vector, H is the observation matrix, and X(t|t-1) is the one-step predicted state. The one-step predicted state X(t|t-1) can be obtained from the state estimate X(t-1|t-1) at the previous time step through the state transition matrix F: X(t|t-1) = F × X(t-1|t-1) It should be noted that the innovation vector ε(t) reflects the difference between the observed value and the predicted value. When external disturbances increase, the fluctuation of the innovation vector ε(t) increases; when the environment is stable, the fluctuation of the innovation vector ε(t) decreases.

[0036] In step S32, the sliding window sample covariance is the covariance calculated within the data window consisting of the most recent N sampling points. The reference noise covariance is a preset initial process noise covariance. The process noise covariance is a covariance matrix used to characterize the noise magnitude during state transition. Based on the sliding window sample covariance and the reference noise covariance of the innovation vector, the process noise covariance is adaptively adjusted. The process noise covariance is used to characterize the noise during state transition. The sliding window sample covariance refers to the covariance calculated on the innovation vector of the most recent N sampling points. The sliding window is a time window consisting of the most recent N sampling points of the triaxial acceleration data. Specifically, the adaptive adjustment of the process noise covariance can be expressed as: Q(t) = Q0 + α × Cov(ε(t)) Where Q(t) is the adjusted process noise covariance, Q0 is the reference noise covariance, α is the adaptive gain, and Cov(ε(t)) is the sliding window sample covariance of the innovation vector. For example, the sliding window length N can be 20, α can be 0.1~0.5, and Q0 can be set according to the noise level of the triaxial accelerometer. When external interference increases, Cov(ε(t)) increases, and Q(t) automatically increases to accelerate the filtering and tracking speed; when the environment is stable, Q(t) converges to Q0, resulting in a smooth output.

[0037] In step S33, Kalman filtering is performed based on the adjusted process noise covariance to obtain the tilt angle estimate. The Kalman filtering update process may include calculating the Kalman gain, updating the state estimate, and updating the covariance matrix. For example, the Kalman gain K(t) can be expressed as: K(t) = P(t|t-1) × H^T / (H × P(t|t-1) × H^T + R) Where P(t|t-1) is the one-step prediction covariance matrix, and R is the observation noise covariance. The state estimate X(t|t) can be expressed as: X(t|t) = X(t|t-1) + K(t) × ε(t) The covariance matrix P(t|t) can be expressed as: P(t|t) = (I - K(t) × H) × P(t|t-1) Where I is the identity matrix. Through the above update, the state estimate X(t|t) can be obtained, and the dip angle component can be extracted from it to obtain the dip angle estimate θ_est(t).

[0038] This application embodiment adaptively adjusts the process noise covariance by using the sliding window sample covariance of the innovation vector, enabling the Kalman filter to maintain high tilt estimation accuracy under time-varying interference, avoiding performance degradation caused by fixed noise parameters, and improving the attitude estimation reliability of smart antennas in complex environments such as wind and mechanical vibration.

[0039] In some embodiments, the method of performing adaptive Kalman filtering on triaxial acceleration data to obtain the tilt angle estimate of the smart antenna further includes: calculating the Mahalanobis distance of the innovation vector corresponding to the current sampling point based on the innovation covariance matrix; determining a dynamic threshold based on the mean and standard deviation of the Mahalanobis distance statistics within the window; and, in response to the Mahalanobis distance being greater than the dynamic threshold, determining the observation vector corresponding to the current sampling point as an abnormal observation vector, and replacing the observation vector with the prediction vector corresponding to the one-step prediction state to participate in the filtering update, so as to obtain the tilt angle estimate.

[0040] Specifically, the innovation covariance matrix, denoted as S, is the covariance matrix used to describe the statistical characteristics of the innovation vector. Mahalanobis distance is a multidimensional statistical distance considering the innovation covariance matrix, used to measure the deviation between observed and predicted values. The mean of the Mahalanobis distance statistics within the window is the average of the Mahalanobis distances within the data window formed by the N most recent sampling points. The standard deviation of the Mahalanobis distance statistics within the window is the standard deviation of the Mahalanobis distances within the data window formed by the N most recent sampling points. A dynamic threshold is used to determine the anomaly threshold for abnormal sampling points. The abnormal observation vector is the observation vector corresponding to the current sampling point that is determined to be abnormal. The prediction vector is the vector obtained by mapping the one-step prediction state through the observation matrix.

[0041] The innovation covariance matrix S can be determined from the sliding window sample covariance of the innovation vector, or from the one-step prediction covariance matrix and the observation noise covariance. For example, the innovation covariance matrix S can be expressed as: S = H × P(t|t-1) × H^T + R The Mahalanobis distance DM(t) can be expressed as: DM(t) = sqrt([Z(t) - H × X(t|t-1)]^T × S^(-1) × [Z(t) - H × X(t|t-1)]) Where sqrt is the square root function, and S^(-1) is the inverse of the new information covariance matrix S.

[0042] The dynamic threshold Th can be expressed as: Th = μ_DM + κ × σ_DM Where μ_DM is the statistical mean of Mahalanobis distance within the sliding window, σ_DM is the statistical standard deviation of Mahalanobis distance within the sliding window, and κ can be taken as 2.0~3.0.

[0043] When DM(t)>Th, the current sampling point is determined to be an outlier. The prediction vector corresponding to the one-step prediction state is used to replace the observation vector in the filtering update, thereby preventing outliers from contaminating the state estimation.

[0044] For example, if a sampling point experiences abnormal acceleration due to a momentary mechanical impact on the antenna, and the Mahalanobis distance exceeds the dynamic threshold, then the observation vector is identified as an abnormal observation vector, and the observation vector is replaced by a one-step predicted state H × X(t|t-1) to obtain a more accurate tilt angle estimate.

[0045] This application's embodiments identify abnormal observation vectors using Mahalanobis distance and dynamic thresholds, and replace the observation vectors with a one-step predicted state when an anomaly occurs. This effectively suppresses the impact of abnormal data such as instantaneous mechanical shocks and sensor mutations on tilt angle estimation, improving the robustness of adaptive Kalman filtering and the smoothness of tilt angle estimates.

[0046] S23: Calculate the angle deviation based on the estimated tilt angle and the target tilt angle.

[0047] In step S23, specifically, the angle deviation e(t) can be expressed as: e(t) = θ_target - θ_est(t) Where θ_target is the target tilt angle, and θ_est(t) is the estimated tilt angle. For example, if the target tilt angle is 3.0° and the estimated tilt angle is 2.6°, then the angle deviation e(t) is 0.4°. By calculating the angle deviation, the difference between the current tilt angle of the smart antenna and the target tilt angle can be quantified, providing a basis for subsequent control.

[0048] S24: Obtain disturbance information, perform forward multi-step prediction based on the preset disturbance prediction model and disturbance information, obtain the tilt angle disturbance prediction value, and calculate the prediction deviation based on the angle deviation and the tilt angle disturbance prediction value.

[0049] In step S24, specifically, the disturbance information refers to external disturbance information that can cause a change in the tilt angle of the smart antenna. In this embodiment, the disturbance information may include wind speed information and wind direction information. The preset interference prediction model is a model used to predict the impact of external disturbances on the tilt angle of the smart antenna. The tilt angle disturbance prediction value refers to the prediction result of the amount of tilt angle change caused by external disturbances at a future time. The prediction deviation refers to the prediction result of the angle deviation at a future time.

[0050] In some embodiments, please refer to Figure 4 , Figure 4This is a schematic flowchart illustrating a wind load disturbance prediction process provided in this application embodiment. The disturbance information includes wind speed and wind direction information. The preset disturbance prediction model includes a wind load moment model and a mechanical transfer function. The wind load moment model characterizes the relationship between wind speed, wind direction, and wind load moment, while the mechanical transfer function converts the wind load moment into an estimated tilt angle disturbance value. The process involves acquiring disturbance information, performing forward multi-step prediction based on the preset disturbance prediction model and the disturbance information to obtain a tilt angle disturbance prediction value, and calculating the prediction deviation based on the angle deviation and the tilt angle disturbance prediction value. This includes the following steps: S41: Obtain wind speed and wind direction information; S42: Calculate the wind load moment based on the wind load moment model, wind speed information, and wind direction information; S43: Input the wind load moment into the mechanical transfer function to obtain the tilt angle disturbance estimate; S44: Based on the estimated tilt disturbance value and the number of prediction steps, perform forward multi-step prediction to obtain the tilt disturbance prediction value. The number of prediction steps for forward multi-step prediction is determined based on the wind speed information. S45: Subtract the tilt angle disturbance prediction value from the angle deviation to obtain the prediction deviation.

[0051] In step S41, wind speed and wind direction information are acquired. Wind speed information is data representing the current wind speed magnitude. Wind direction information is data representing the current wind direction angle. Specifically, wind speed and wind direction information can be collected by wind speed and direction sensors or obtained through an external meteorological data interface. For example, the wind speed information v_w(t) can be 10 m / s, and the wind direction information φ(t) can be 30°.

[0052] In step S42, the wind load moment is calculated based on the wind load moment model, wind speed information, and wind direction information. The wind load moment is the moment generated by the wind acting on the antenna device. Specifically, the wind load moment model can be expressed as: T_w(t) = 0.5 × ρ × C_d × S × v_w(t)^2 × H × sin(φ(t)) Where T_w(t) is the wind load torque, ρ is the air density, C_d is the drag coefficient, S is the equivalent cross-sectional area of ​​the smart antenna, v_w(t) is the wind speed, H is the installation height, and φ(t) is the wind direction angle.

[0053] For example, if ρ is taken as 1.225 kg / m³, C_d as 1.2, S as 0.5 m², v_w(t) as 10 m / s, H as 20 m, and φ(t) as 30°, then the wind load moment T_w(t) is approximately 367.5 N·m. It should be noted that the parameters in the wind load moment model can be set or identified according to the actual installation environment.

[0054] In step S43, the wind load moment is input into the mechanical transfer function to obtain an estimate of the tilt angle disturbance. The tilt angle disturbance estimate is an estimate of the change in tilt angle caused by the wind load moment. Specifically, the mechanical transfer function characterizes the dynamic response between the wind load moment and the tilt angle disturbance. The mechanical transfer function can be expressed as: G_mech(s) = ω_n^2 / (s^2 + 2ζω_n × s + ω_n^2) Where ω_n is the natural frequency of the structure, and ζ is the damping ratio. Inputting the wind load torque T_w(t) into the mechanical transfer function G_mech(s) yields the tilt disturbance estimate Δθ_wind(t). In practical implementation, the mechanical transfer function G_mech(s) can be discretized to obtain a discrete transfer function, which is then numerically calculated by the controller. For example, the bilinear transform method can be used to discretize the mechanical transfer function.

[0055] In step S44, forward multi-step prediction is performed based on the estimated tilt angle disturbance value and the number of prediction steps to obtain the predicted tilt angle disturbance value. The number of prediction steps in the forward multi-step prediction is determined based on the wind speed information. Forward multi-step prediction predicts the tilt angle disturbance for multiple future control cycles based on the disturbance information and model parameters at the current moment. The number of prediction steps k is the number of control cycles spanned by the forward multi-step prediction. The predicted tilt angle disturbance value is the predicted result of the tilt angle change caused by the external disturbance in the k-th future step.

[0056] Specifically, the prediction step number k can be expressed as: k = k0 × (1 + |v_w(t)| / v_ref) Where k0 is the baseline prediction step number, v_w(t) is the current wind speed, and v_ref is the reference wind speed. For example, k0 can be 2, and v_ref can be 5 m / s. When the wind speed is 10 m / s, the prediction step number k is 2 × (1 + 10 / 5) = 6. The higher the wind speed, the further the prediction step, thus providing ample pre-compensation time for control. Based on the discretized state equation and the tilt disturbance estimate, forward multi-step prediction can be performed to obtain the predicted tilt disturbance value Δθ_wind,pred(t+k) for the k-th future step.

[0057] In step S45, the predicted tilt angle disturbance value is subtracted from the angle deviation to obtain the prediction deviation. Specifically, the prediction deviation e_pred(t+k) can be expressed as: e_pred(t+k) = e(t) - Δθ_wind,pred(t+k) For example, if the current angle deviation e(t) is 0.4°, and the predicted tilt disturbance value Δθ_wind,pred(t+k) in the k-th step is 0.1°, then the prediction deviation e_pred(t+k) is 0.3°. This step, through forward multi-step prediction, can detect the impact of external disturbances such as wind load on the tilt angle of the smart antenna in advance, thereby reducing adjustment lag and transient deviation.

[0058] This application embodiment uses a wind load moment model and mechanical transfer function to convert disturbance information such as wind speed and wind direction into predicted values ​​of tilt angle disturbance. It also calculates the predicted deviation by combining the angle deviation, enabling the control system to perform feedforward compensation in advance, thereby improving the ability to resist wind disturbance and reducing adjustment lag and transient deviation.

[0059] In some embodiments, the wind load moment model includes parameters to be identified, which include at least one of drag coefficient, natural frequency, and damping ratio. The calculation of wind load moment based on the wind load moment model, wind speed information, and wind direction information further includes: online identification of the parameters to be identified using a recursive least squares method with an adaptive forgetting factor to obtain the identified parameters, wherein the adaptive forgetting factor is adaptively adjusted according to the prediction error of the recursive least squares method; and calculation of wind load moment based on the wind load moment model, wind speed information, and wind direction information after determining the parameters to be identified.

[0060] Specifically, recursive least squares is an online parameter identification method. The recursive least squares method with adaptive forgetting factor in this application introduces an adaptive forgetting factor into the recursive least squares method to accelerate tracking when parameters are time-varying and retain historical information when parameters are stable. The adaptive forgetting factor is a factor used in the recursive least squares method to adjust the weight of historical data, and it can be adaptively adjusted according to the prediction error. The prediction error is the difference between the model prediction value and the actual observed value of the recursive least squares method. The parameters to be identified are the parameters that need to be estimated online in the wind load moment model, including at least one of the drag coefficient, natural frequency, and damping ratio. In this embodiment, the vector of parameters to be identified can be represented as: Θ = [C_d, ω_n, ζ]^T In practical identification, the actual wind-induced tilt angle disturbance Δθ_actual(t) can be extracted from the tilt angle estimate first. For example, the actual wind-induced tilt angle disturbance can be expressed as: Δθ_actual(t) = θ_est(t) - θ_est(t-1) - Δθ_ctrl(t-1) Where θ_est(t) is the estimated tilt angle at the current moment, θ_est(t-1) is the estimated tilt angle at the previous moment, and Δθ_ctrl(t-1) is the angle change caused by motor control at the previous moment. Δθ_ctrl(t-1) can be calculated from the target control quantity through the motor model and can be ignored when the motor is not in operation.

[0061] The recursive formula can be expressed as: Θ(t) = Θ(t-1) + K(t) × [Δθ_actual(t) - φ(t)^T × Θ(t-1)] K(t) = P(t-1) × φ(t) / [λ(t) + φ(t)^T × P(t-1) × φ(t)] P(t) = [I - K(t) × φ(t)^T] × P(t-1) / λ(t) Where Δθ_actual(t) represents the actual wind-induced tilt angle disturbance, φ(t) is the regression vector, K(t) is the gain vector, P(t) is the covariance matrix, and λ(t) is the adaptive forgetting factor. The regression vector φ(t) can be constructed based on the input-output relationship of the wind load moment model. For example, φ(t) may include terms such as v_w(t)^2 × sin(φ(t)).

[0062] The adaptive forgetting factor can be expressed as: λ(t) = λ_min + (1 - λ_min) × exp(-γ × |ε_RLS(t)|^2) Where λ_min is the lower limit of the forgetting factor, γ is the adjustment coefficient, and ε_RLS(t) is the prediction error of the recursive least squares method. As the prediction error increases, λ(t) approaches λ_min, achieving rapid tracking; as the error decreases, λ(t) approaches 1.0, preserving historical information. For example, λ_min can be 0.95, and γ can be 0.1. Through online identification, the wind load moment model can adapt to different wind speeds, wind directions, and installation environments, improving the accuracy of tilt disturbance predictions.

[0063] This application embodiment identifies the parameters to be identified in the wind load moment model online using a recursive least squares method with an adaptive forgetting factor, enabling the disturbance prediction model to adapt to different wind speeds, wind directions, and installation environments, thereby improving the accuracy of forward multi-step prediction and its wind disturbance resistance and adaptive capability.

[0064] S25: Generate target control variables based on angle deviation and prediction deviation.

[0065] In step S25, the target control quantity is the control quantity used to drive the motor control module to output the drive voltage or pulse width modulation signal. The target control quantity can simultaneously consider the current angle deviation and the predicted deviation, thereby achieving a combination of feedback control and feedforward compensation.

[0066] In some embodiments, please refer to Figure 5 , Figure 5 This is a flowchart illustrating a multi-mode fuzzy PID control method provided in an embodiment of this application. The method generates a target control quantity based on angle deviation and prediction deviation, including the following steps: S51: Generate feedback control components based on angle deviation; S52: Generate feedforward compensation components based on prediction bias; S53: The feedback control component and the feedforward compensation component are superimposed to obtain the target control quantity.

[0067] In step S51, specifically, the feedback control component is a control component generated based on the current angle deviation for feedback adjustment. For example, the feedback control component can be Kp × e(t) + Ki × ∫e(t)dt + Kd × de(t) / dt.

[0068] In some embodiments, generating feedback control components based on angle deviation includes: switching between multiple control modes corresponding to a multi-mode fuzzy PID control algorithm according to the angle deviation, wherein each control mode is configured with different proportional parameters, integral parameters, and derivative parameters; determining the proportional parameters, integral parameters, and derivative parameters based on the switched control mode; and generating feedback control components based on the proportional parameters, integral parameters, derivative parameters, and angle deviation.

[0069] Specifically, the multi-mode fuzzy PID control algorithm in this application is based on traditional PID control. It switches between multiple control modes according to the magnitude of the angle deviation and the predicted deviation, and dynamically adjusts the proportional parameter Kp, integral parameter Ki, and derivative parameter Kd using fuzzy rules. The control modes are control strategies set for different operating conditions, and each control mode is configured with different proportional, integral, and derivative parameters. The proportional parameter is the control parameter in PID control that is proportional to the angle deviation. The integral parameter is the control parameter in PID control that is proportional to the integral of the angle deviation. The derivative parameter is the control parameter in PID control that is proportional to the derivative of the angle deviation. For example, the multiple control modes may include a fast tracking mode, a precise holding mode, and a disturbance rejection locking mode. Each control mode is configured with different Kp, Ki, and Kd. For example, the fast tracking mode uses a large Kp and a small Ki; the precise holding mode uses a small Kp and a medium Ki; and the disturbance rejection locking mode uses a medium Kp and a large Kd.

[0070] In some embodiments, the multiple control modes include a fast tracking mode, a precise holding mode, and an anti-interference locking mode, and switching between the multiple control modes corresponding to the multi-mode fuzzy PID control algorithm is performed according to the angle deviation, including: in response to the absolute value of the angle deviation being greater than a first threshold, switching to the fast tracking mode; in response to the absolute value of the angle deviation being less than or equal to a second threshold, switching to the precise holding mode, wherein the second threshold is less than the first threshold; and in response to the absolute value of the angle deviation being greater than the second threshold and less than or equal to the first threshold, and the predicted deviation satisfying an interference condition, switching to the anti-interference locking mode.

[0071] Specifically, the first threshold e_th1 and the second threshold e_th2 may be set according to actual control accuracy requirements, and e_th2 < e_th1. Illustratively, e_th1 may be 1.0°, and e_th2 may be 0.2°. When |e(t)| > 1.0°, it indicates that the current angle deviation is large, and the mode is switched to the fast tracking mode, where a large Kp and a small Ki are used to accelerate the response speed. When |e(t)| ≤ 0.2°, it indicates that the current angle deviation is small, and the mode is switched to the precise holding mode, where a small Kp and a medium Ki are used to improve the steady-state accuracy. When 0.2° < |e(t)| ≤ 1.0° and the predicted deviation satisfies the interference condition, it indicates that the external interference is strong, and the mode is switched to the anti-interference locking mode, where a medium Kp and a large Kd are used to enhance the anti-interference capability. The interference condition may include that the absolute value of the predicted deviation is greater than a predicted deviation threshold, and / or the wind speed is greater than a wind speed threshold. Illustratively, if the absolute value of the predicted deviation is greater than 0.3°, and / or the wind speed is greater than 8 m / s, it is determined that the interference condition is satisfied.

[0072] During switching, a hysteresis coefficient β=1.2~1.5 may be used to prevent frequent mode jitter. The hysteresis coefficient is a coefficient used to prevent frequent mode switching. Illustratively, when switching from the fast tracking mode to the precise holding mode, the switching threshold may be set to e_th2 × β; when switching from the precise holding mode to the fast tracking mode, the switching threshold may be set to e_th1 × β.

[0073] In the embodiments of the present application, through multi-mode fuzzy PID control, the control mode is adaptively switched according to the angle deviation and the PID parameters are dynamically adjusted, which can balance rapidity, stability, and anti-interference performance, and improve the control accuracy of the smart antenna under different working conditions. In the embodiments of the present application, through hysteresis switching among the fast tracking mode, the precise holding mode, and the anti-interference locking mode, the smart antenna can respond quickly when the deviation is large, maintain precision when the deviation is small, and enhance damping when the deviation is medium and the interference is strong, avoiding jitter caused by frequent mode switching, and improving adjustment accuracy and stability in complex environments.

[0074] In step S52, a feedforward compensation component is generated based on the prediction deviation. Specifically, the feedforward compensation component is a control component generated based on the prediction deviation to compensate for the effects of external disturbances in advance. Superimposing the feedforward compensation component with the feedback control component allows the smart antenna to quickly and smoothly approach or reach the target tilt angle. For example, the feedforward compensation component can be Kff × e_pred(t+k), where Kff is the feedforward compensation coefficient.

[0075] In step S53, the feedback control component and the feedforward compensation component are superimposed to obtain the target control quantity. Specifically, in this embodiment, the multi-mode fuzzy PID control algorithm can use the angle deviation e(t) and the deviation change rate ec(t) as fuzzy inputs, where the deviation change rate ec(t) is the derivative of the angle deviation with respect to time. The angle deviation e(t) and the deviation change rate ec(t) define seven fuzzy subsets {NB, NM, NS, ZO, PS, PM, PB}, respectively, and construct 49 fuzzy rules to tune Kp, Ki, and Kd. The membership function can use asymmetric trigonometric functions to make the direction with greater deviation severity more sensitive. For example, the PS vertex offset can be +β × e_range / 6, and the NS vertex offset can be -α × e_range / 6, where α=β, determined by the asymmetry of the antenna radiation pattern. The target control quantity u(t) can be expressed as: u(t) = Kp(t) × e(t) + Ki(t) × ∫e(t)dt + Kd(t) × de(t) / dt + Kff ×e_pred(t+k) Where Kp(t) × e(t) + Ki(t) × ∫e(t)dt + Kd(t) × de(t) / dt are the feedback control components, Kff × e_pred(t+k) are the feedforward compensation components, and Kff is the feedforward compensation coefficient. For example, Kp(t) can be 1.2, Ki(t) can be 0.1, Kd(t) can be 0.05, and Kff can be 0.8. Through the above calculation of control quantities, precise control of the tilt angle of the smart antenna can be achieved.

[0076] In some embodiments, an anti-integral saturation strategy can also be employed. When |e(t)|>e_sat and |u(t)|>u_max, the accumulation of the integral term is frozen to prevent motor overshoot. Here, e_sat is the integral saturation threshold, and u_max is the upper limit of the control quantity. For example, e_sat can be 1.5°, and u_max can be the maximum allowable control quantity of the motor.

[0077] This step utilizes multi-mode fuzzy PID control, which adaptively switches control modes and dynamically adjusts PID parameters based on angle deviation and prediction deviation. This improves the control accuracy and anti-interference capability of the smart antenna under different operating conditions. Through feedforward compensation, external disturbances such as wind load can be offset in advance, reducing transient deviations. And through anti-integral saturation, motor overshoot can be prevented.

[0078] S26: Generate a pulse width modulation signal based on the target control quantity to drive the smart antenna to adjust the tilt angle to approach or reach the target tilt angle.

[0079] In step S26, the pulse width modulation signal is a signal that controls the motor drive voltage or current by adjusting the duty cycle of the pulse. The duty cycle is the ratio of the high-level duration to the period time within one pulse cycle. The motor control module can output a drive voltage or pulse width modulation signal according to the target control quantity to control the rotation angle and speed of the motor. For example, the larger the target control quantity, the larger the duty cycle of the pulse width modulation signal, and the faster the motor rotates; the smaller the target control quantity, the smaller the duty cycle, and the slower the motor rotates. By adjusting the tilt angle through the motor-driven antenna device, the smart antenna can approach or reach the target tilt angle.

[0080] It should be noted that during the tilt adjustment process, steps S21 to S26 can be repeated until the absolute value of the angle deviation is less than or equal to the allowable error threshold, and the absolute value of the prediction deviation is less than or equal to the prediction error threshold, or the maximum number of adjustments is reached. For example, the allowable error threshold can be 0.1. The prediction error threshold can be set to 0.1. The maximum number of adjustments can be 20.

[0081] This application embodiment processes triaxial acceleration data using adaptive Kalman filtering, which can suppress time-varying interference and outliers, and improve tilt angle estimation accuracy. By acquiring disturbance information and using a preset interference prediction model for forward multi-step prediction, the tilt angle disturbance prediction value is obtained, and the prediction deviation is calculated in conjunction with the angle deviation, which can detect the impact of disturbance in advance. Based on the angle deviation and prediction deviation, a target control quantity is generated, which is then converted into a pulse width modulation signal to drive the motor adjustment. This allows the smart antenna to quickly and smoothly approach or reach the target tilt angle corresponding to the optimal radiation performance, reducing adjustment lag and transient deviation, improving wireless coverage quality and communication stability, and reducing manual on-site debugging and maintenance costs.

[0082] In some embodiments, the smart antenna can also perform fault diagnosis. Specifically, the controller can acquire sensor residuals and / or motor residuals corresponding to the triaxial acceleration data. The sensor residual is the deviation between the observed value of the triaxial acceleration data and the estimated tilt angle. The motor residual is the deviation between the actual angle change of the smart antenna and the commanded angle change determined according to the target control quantity. When the sensor residual is greater than a sensor residual threshold and / or the motor residual is greater than a motor residual threshold, the smart antenna is switched to a preset emergency angle and an alarm is triggered.

[0083] For example, the sensor residual r_s(t) can be expressed as: r_s(t) = |θ_meas(t) - θ_est(t)| Where θ_meas(t) is the measured tilt angle calculated from the triaxial acceleration data, and θ_est(t) is the estimated tilt angle. If r_s(t) > r_th, then the sensor is considered faulty. The motor residual r_m(t) can be expressed as: r_m(t) = |Δθ_actual(t) - Δθ_cmd(t)| Where Δθ_actual(t) is the actual angle change of the smart antenna 100, and Δθ_cmd(t) is the command angle change determined according to the target control quantity. If r_m(t) > r_m_th, then a motor fault or actuator jamming is determined. Fault diagnosis can improve the reliability and safety of the system.

[0084] In some embodiments, the smart antenna can also store historical adjustment records categorized by wind speed level and wind direction, and reuse the historical optimal parameter set when real-time operating conditions match historical records. The historical adjustment records include angle deviation, recovery time, control parameters, and control effect scores. For example, wind speed levels can be divided into multiple levels such as 0~3m / s, 3~6m / s, 6~10m / s, and above 10m / s, and wind direction can be divided into multiple azimuth ranges. When real-time operating conditions match historical records, the optimal parameter set is directly reused, skipping the trial-and-error process. Simultaneously, the validity of historical records is periodically evaluated, and outdated data is discarded. Compared to traditional historical learning schemes, this improves response speed under repetitive operating conditions.

[0085] In some embodiments, the smart antenna can also broadcast the predicted wind speed, wind direction, and tilt angle disturbance values ​​from the upwind smart antenna to the downwind smart antenna via a wireless sensing network, enabling the downwind smart antenna to perform pre-compensation control in advance. For example, multiple smart antennas within the same base station area can form a wireless sensing network via Zigbee or Bluetooth. After detecting a change in wind load, the upwind antenna broadcasts the wind speed, wind direction, and predicted disturbance amount to all antennas in the area. The downwind antenna estimates the wind arrival delay Δt and intensity attenuation coefficient based on its distance and orientation from the upwind antenna, and initiates pre-compensation control Δt time in advance. Compared to the independent operating mode, transient deviations can be significantly improved.

[0086] In some embodiments, the smart antenna can also write the current optimal angle, control parameters, and experience database into non-volatile memory before power failure, and read the actual angle and target tilt angle for adaptive recovery after power is restored. For example, power failure protection and intelligent recovery can include three stages: First stage: Before power failure, when the voltage monitoring module detects a drop in Vcc, it triggers an interrupt to write the current optimal angle, PID parameters, and experience database into Flash memory; Second stage: After power is restored, the actual angle θ_actual is obtained by reading the triaxial accelerometer 10, and the target tilt angle θ_target in Flash memory is read, calculating the deviation Δθ = θ_target - θ_actual; Third stage: Adaptive recovery. If Δθ ≤ Δθ_th, it directly drives back to the optimal angle; if Δθ > Δθ_th, it recovers in stages using a multi-mode fuzzy PID controller to avoid mechanical shock. The recovery time can be reduced from minutes to seconds.

[0087] In some embodiments, the smart antenna can also dynamically adjust the sampling rate according to the short-time variance of the triaxial acceleration data using a Sigmoid function. For example, the short-time variance σ^2(t) of the acceleration signal is calculated in real time, and the sampling rate is smoothly adjusted using a Sigmoid function: f(t) = f_low + (f_high - f_low) / (1 + exp(-β × (σ^2(t) - σ^2_mid))) Where f_low and f_high are the lower and upper limits of the sampling rate, β controls the transition speed, and σ^2_mid is the intermediate threshold. The Sigmoid transition avoids data discontinuity caused by sampling rate jumps. Compared to a fixed sampling rate, average power consumption can be reduced.

[0088] In some embodiments, the smart antenna can also search for the optimal control quantity in the neighborhood of the target control quantity based on a comprehensive cost function, which includes the square of the angle deviation, the cumulative number of motor actions, control energy consumption, and recovery time. For example, the comprehensive cost function J(t) can be expressed as: J(t) = w1 × |e(t)|^2 + w2 × N_motor(t) + w3 × E(t) + w4 × T_rec(t) The four components are: squared angle deviation, cumulative motor action count, control energy consumption, and recovery time. The weight vector w=[w1,w2,w3,w4] is dynamically adjusted according to the operating conditions: during strong winds, w4 is increased for faster recovery; during stable conditions, w2 and w3 are increased to reduce wear and energy consumption. Each control cycle searches for the optimal control quantity that minimizes J(t) within the neighborhood of u(t). Through multi-objective optimization, the number of motor adjustments can be reduced, and energy consumption can be lowered.

[0089] In some embodiments, the smart antenna can also perform a short-time Fourier transform (STFT) on the triaxial acceleration data to extract the dominant frequency and switch the control strategy according to the frequency band of the dominant frequency. For example, a short-time Fourier transform (STFT) is performed on the acceleration signal to extract the dominant frequency f_main. Control is then performed by frequency band: if f_main < 1Hz, it is determined to be low-frequency wind interference, and wind load prediction feedforward compensation is enabled; if 1Hz ≤ f_main < 10Hz, it is determined to be mechanical resonance, and the system switches to a strong damping mode with high Kd and low Ki; if f_main ≥ 10Hz, it is determined to be high-frequency environmental noise, and low-pass filtering is enabled and the sampling rate is reduced. A 0.5Hz overlap transition zone is set at the boundaries of each frequency band, and the two strategies are mixed linearly within the transition zone to avoid frequent switching. Through intelligent vibration mode identification, the adjustment accuracy under various interference scenarios can be improved.

[0090] It should be noted that in the above embodiments, there is no necessarily a certain order between the steps. Those skilled in the art can understand from the description of the embodiments of this application that the above steps may have different execution orders in different embodiments, that is, they may be executed in parallel or in turn, etc.

[0091] As another aspect of the embodiments of this application, this application provides a tilt adjustment device for a smart antenna. The tilt adjustment device for the smart antenna can be a software module, which includes several instructions stored in a memory. A processor can access the memory, call the instructions, and execute them to complete the tilt adjustment method for the smart antenna described in the various embodiments above.

[0092] In some embodiments, the tilt adjustment device of the smart antenna can also be constructed from hardware components. For example, the tilt adjustment device of the smart antenna can be constructed from one or more chips, which can work together to complete the tilt adjustment method of the smart antenna described in the various embodiments above. As another example, the tilt adjustment device of the smart antenna can also be constructed from various logic devices, such as general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), microcontrollers, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0093] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a tilt adjustment device for a smart antenna provided in an embodiment of this application. The tilt adjustment device 600 for a smart antenna provided in this embodiment includes a data acquisition module 601, a filtering processing module 602, an angle deviation calculation module 603, a prediction deviation calculation module 604, a control quantity calculation module 605, and a driving module 606.

[0094] The data acquisition module 601 is used to acquire real-time triaxial acceleration data and a preset target tilt angle of the smart antenna, wherein the target tilt angle is the tilt angle corresponding to the optimal radiation performance of the smart antenna; the filtering module 602 is used to perform adaptive Kalman filtering on the triaxial acceleration data to obtain an estimated tilt angle of the smart antenna; the angle deviation calculation module 603 is used to calculate the angle deviation based on the estimated tilt angle and the target tilt angle; the prediction deviation calculation module 604 is used to acquire disturbance information, perform forward multi-step prediction based on a preset interference prediction model and the disturbance information to obtain a tilt angle disturbance prediction value, and calculate the prediction deviation based on the angle deviation and the tilt angle disturbance prediction value; the control quantity calculation module 605 is used to generate a target control quantity based on the angle deviation and the prediction deviation; the driving module 606 is used to generate a pulse width modulation signal based on the target control quantity to drive the smart antenna to adjust its tilt angle to approach or reach the target tilt angle.

[0095] The filtering module 602 is further specifically used for: constructing the innovation vector of the adaptive Kalman filter, wherein the innovation vector is the difference between the observation vector and the prediction vector of the corresponding predicted state; adaptively adjusting the process noise covariance based on the sliding window sample covariance and the reference noise covariance of the innovation vector, wherein the process noise covariance is used to characterize the noise in the state transition process; and performing Kalman filtering based on the adjusted process noise covariance to obtain the tilt angle estimate.

[0096] The filtering module 602 is further specifically used for: calculating the Mahalanobis distance of the innovation vector corresponding to the current sampling point based on the innovation covariance matrix; determining a dynamic threshold based on the mean and standard deviation of the Mahalanobis distance statistics within the window; and, in response to the Mahalanobis distance being greater than the dynamic threshold, determining the observation vector corresponding to the current sampling point as an abnormal observation vector, and replacing the observation vector with the prediction vector corresponding to the one-step prediction state to participate in the filtering update, thereby obtaining the tilt angle estimate.

[0097] The disturbance information includes wind speed and wind direction information. The preset disturbance prediction model includes a wind load moment model and a mechanical transfer function. The wind load moment model is used to characterize the relationship between wind speed, wind direction, and wind load moment. The mechanical transfer function is used to convert the wind load moment into an estimated tilt angle disturbance value. The prediction deviation calculation module 604 is further specifically used for: acquiring wind speed and wind direction information; calculating the wind load moment based on the wind load moment model, the wind speed information, and the wind direction information; inputting the wind load moment into the mechanical transfer function to obtain an estimated tilt angle disturbance value; performing forward multi-step prediction based on the estimated tilt angle disturbance value and the number of prediction steps to obtain the predicted tilt angle disturbance value. The number of prediction steps for the forward multi-step prediction is determined according to the wind speed information; and subtracting the predicted tilt angle disturbance value from the angle deviation to obtain the prediction deviation.

[0098] The wind load moment model includes parameters to be identified, which include at least one of drag coefficient, natural frequency, and damping ratio. The prediction deviation calculation module 604 is further specifically used to: perform online identification of the parameters to be identified based on a recursive least squares method with an adaptive forgetting factor, obtaining the identified parameters; the adaptive forgetting factor is adaptively adjusted according to the prediction error of the recursive least squares method; and calculate the wind load moment based on the wind load moment model after determining the parameters to be identified, the wind speed information, and the wind direction information. The control quantity calculation module 605 is further specifically used to: generate a feedback control component based on the angle deviation; generate a feedforward compensation component based on the prediction deviation; and superimpose the feedback control component and the feedforward compensation component to obtain the target control quantity.

[0099] The control quantity calculation module 605 is further specifically used for: switching between multiple control modes corresponding to the multi-mode fuzzy PID control algorithm according to the angle deviation, wherein each control mode is configured with different proportional parameters, integral parameters and derivative parameters; determining the proportional parameters, integral parameters and derivative parameters based on the switched control mode; and generating the feedback control component based on the proportional parameters, the integral parameters, the derivative parameters and the angle deviation.

[0100] The multiple control modes include a fast tracking mode, a precise hold mode, and an anti-interference lock-on mode. The control quantity calculation module 605 is further specifically used to: switch to the fast tracking mode in response to the absolute value of the angle deviation being greater than a first threshold; switch to the precise hold mode in response to the absolute value of the angle deviation being less than or equal to a second threshold, wherein the second threshold is less than the first threshold; and switch to the anti-interference lock-on mode in response to the absolute value of the angle deviation being greater than the second threshold and less than or equal to the first threshold, and the predicted deviation satisfying the interference condition.

[0101] It should be noted that the tilt adjustment device for the smart antenna described above can execute the tilt adjustment method for the smart antenna provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects of the method. Technical details not described in detail in the embodiments of the smart antenna tilt adjustment device can be found in the tilt adjustment method for the smart antenna provided in the embodiments of this application.

[0102] Please see Figure 7 , Figure 7 This is a schematic diagram of a controller provided in an embodiment of this application. The controller 40 includes one or more processors 41 and a memory 42. The memory 42 is connected to one or more processors 41, for example, via a bus.

[0103] Processor 41 is configured to support the controller in performing the corresponding functions in the methods described in the above method embodiments. Processor 41 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0104] Memory 42 is used to store program code, etc. Memory 42 may include volatile memory (VM), such as random access memory (RAM); memory may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory may also include combinations of the above types of memory.

[0105] The memory 42 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the tilt adjustment method of the smart antenna in the embodiments of this application. The processor 41 executes various functional applications and data processing of the tilt adjustment method and tilt adjustment device of the smart antenna by running the non-volatile software programs, instructions, and modules stored in the memory, that is, it realizes the functions of each module or unit of the tilt adjustment method and tilt adjustment device of the smart antenna provided in the above method embodiments.

[0106] The memory 42 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function. The data storage area may store data created based on the use of the tilt adjustment device of the smart antenna, etc. In some embodiments, the memory 42 may optionally include memory remotely located relative to the processor 41, and this remote memory may be connected to the tilt adjustment device of the smart antenna 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.

[0107] The one or more modules are stored in the memory 42. When executed by the one or more processors 41, they perform the tilt adjustment method of the smart antenna in any of the above method embodiments. For example, they perform the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.

[0108] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer device, cause the computer device to perform the method described in the foregoing embodiments.

[0109] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0110] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for adjusting the tilt angle of a smart antenna, characterized in that, include: The real-time triaxial acceleration data and preset target tilt angle of the smart antenna are obtained. The target tilt angle is the tilt angle corresponding to the best radiation performance of the smart antenna. An adaptive Kalman filter is applied to the triaxial acceleration data to obtain an estimated tilt angle of the smart antenna. The angle deviation is calculated based on the estimated tilt angle and the target tilt angle. Obtain disturbance information, perform forward multi-step prediction based on a preset disturbance prediction model and the disturbance information to obtain tilt angle disturbance prediction value, and calculate prediction deviation based on the angle deviation and the tilt angle disturbance prediction value; The target control quantity is generated based on the angle deviation and the prediction deviation; A pulse width modulation signal is generated based on the target control quantity to drive the smart antenna to adjust its tilt angle to approach or reach the target tilt angle.

2. The method according to claim 1, characterized in that, The step of performing adaptive Kalman filtering on the triaxial acceleration data to obtain the tilt angle estimate of the smart antenna includes: Construct the innovation vector of the adaptive Kalman filter, wherein the innovation vector is the difference between the observation vector and the prediction vector of the corresponding one-step prediction state; Based on the sliding window sample covariance and the baseline noise covariance of the innovation vector, the process noise covariance is adaptively adjusted, and the process noise covariance is used to characterize the noise in the state transition process; The tilt angle estimate is obtained by performing Kalman filtering based on the adjusted process noise covariance.

3. The method according to claim 2, characterized in that, The step of performing adaptive Kalman filtering on the triaxial acceleration data to obtain the tilt angle estimate of the smart antenna further includes: Calculate the Mahalanobis distance of the innovation vector corresponding to the current sampling point based on the innovation covariance matrix; The dynamic threshold is determined based on the mean and standard deviation of the Mahalanobis distance statistics within the window; In response to the Mahalanobis distance being greater than the dynamic threshold, the observation vector corresponding to the current sampling point is determined as an abnormal observation vector, and the prediction vector corresponding to the one-step prediction state is used to replace the observation vector in the filtering update to obtain the tilt angle estimate.

4. The method according to claim 1, characterized in that, The disturbance information includes wind speed and wind direction information. The preset disturbance prediction model includes a wind load moment model and a mechanical transfer function. The wind load moment model is used to characterize the relationship between wind speed, wind direction, and wind load moment. The mechanical transfer function is used to convert the wind load moment into an estimated tilt angle disturbance value. The process involves acquiring the disturbance information, performing forward multi-step prediction based on the preset disturbance prediction model and the disturbance information to obtain a tilt angle disturbance prediction value, and calculating the prediction deviation based on the angle deviation and the tilt angle disturbance prediction value, including: Obtain wind speed and wind direction information; Based on the wind load moment model, the wind speed information, and the wind direction information, the wind load moment is calculated. The wind load torque is input into the mechanical transfer function to obtain the tilt angle disturbance estimate; Based on the estimated tilt angle disturbance value and the number of prediction steps, a forward multi-step prediction is performed to obtain the predicted tilt angle disturbance value. The number of prediction steps for the forward multi-step prediction is determined according to the wind speed information. The predicted deviation is obtained by subtracting the predicted tilt angle disturbance value from the predicted angle deviation.

5. The method according to claim 4, characterized in that, The wind load moment model includes parameters to be identified, which include at least one of drag coefficient, natural frequency, and damping ratio. The calculation of the wind load moment based on the wind load moment model, the wind speed information, and the wind direction information further includes: The parameters to be identified are identified online using the recursive least squares method with an adaptive forgetting factor, and the adaptive forgetting factor is adaptively adjusted according to the prediction error of the recursive least squares method. The wind load moment is calculated based on the wind load moment model after determining the parameters to be identified, the wind speed information, and the wind direction information.

6. The method according to claim 1, characterized in that, The generation of the target control quantity based on the angle deviation and the prediction deviation includes: A feedback control component is generated based on the aforementioned angle deviation; A feedforward compensation component is generated based on the prediction bias; The target control quantity is obtained by superimposing the feedback control component and the feedforward compensation component.

7. The method according to claim 6, characterized in that, The generation of feedback control components based on the angle deviation includes: Based on the angle deviation, the multi-mode fuzzy PID control algorithm switches between multiple control modes, each of which is configured with different proportional, integral, and derivative parameters. Based on the switched control mode, determine the proportional parameter, integral parameter, and derivative parameter; The feedback control component is generated based on the proportional parameter, the integral parameter, the derivative parameter, and the angle deviation.

8. The method according to claim 7, characterized in that, The multiple control modes include fast tracking mode, precise hold mode, and disturbance rejection lock-in mode. Switching between the multiple control modes corresponding to the multi-mode fuzzy PID control algorithm based on the angle deviation includes: In response to the absolute value of the angle deviation being greater than a first threshold, the system switches to the fast tracking mode; In response to the absolute value of the angle deviation being less than or equal to a second threshold, the system switches to the precision hold mode, wherein the second threshold is less than the first threshold; In response to the absolute value of the angle deviation being greater than the second threshold and less than or equal to the first threshold, and the prediction deviation satisfying the interference condition, the system switches to the anti-interference locking mode.

9. A controller, characterized in that, The system includes a memory and a processor, the memory being connected to the processor, the processor being configured to execute one or more computer programs stored in the memory, and the processor, when executing the one or more computer programs, causing the controller to perform the method as described in any one of claims 1-8.

10. A smart antenna, characterized in that, include: A three-axis accelerometer is used to collect real-time three-axis acceleration data of the smart antenna; An antenna device, wherein a motor is provided below the antenna device, and the motor is used to drive the antenna device to adjust the tilt angle; A motor control module, connected to the motor, is used to output a drive voltage or pulse width modulation signal according to the target control quantity to control the rotation angle and speed of the motor; The controller as described in claim 9 is connected to the triaxial accelerometer and the motor control module respectively, and is used to implement the method as described in any one of claims 1-8.