Power calibration method of multi-stage attenuator RF channel based on fuzzy PID controller

Through the multi-level attenuator RF channel power calibration method based on fuzzy PID controller, the problem of delay and slow speed of RF channel calibration is solved, faster and more accurate calibration is achieved, and the calibration efficiency of communication products is improved.

CN117792530BActive Publication Date: 2024-10-01成都玖锦科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410036290.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2024-10-01
Estimated Expiration
2044-01-10

AI Technical Summary

Technical Problem

In the existing technology, there is a delay in RF channel power calibration and the adjustment speed is slow, especially when the frequency range is large, the device linearity is poor, and the broadband power flatness is poor, resulting in a long calibration time.

Method used

A multi-stage attenuator RF channel power calibration method based on fuzzy PID controller is used to determine the frequency point and power starting value, calculate the power error and error change value, and perform fuzzification processing. According to the logical subset, membership function and fuzzy The rule table calculates the PID controller parameters, defuzzifies the output value, and uses the PID algorithm to control the attenuator until the power error meets the calibration requirements.

Benefits of technology

It significantly improves the calibration speed and accuracy of the RF channel. Compared with the traditional dichotomy method and traditional PID control, it shortens the calibration time and achieves denser calibration points in the same time, improving the calibration accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117792530B_ABST
    Figure CN117792530B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of digital communication, and specifically relates to a method for calibrating the radio frequency channel power of a multi-stage attenuator based on a fuzzy PID controller. The specific technical scheme is: determine the frequency point that needs to be calibrated for the radio frequency channel and the power starting value of the frequency point calibration, calculate the power error value and the error change value; perform fuzzification processing on the power error value and the error change value, respectively calculate the membership of the PID controller parameters according to different logical subsets, membership functions and fuzzy rule tables, then defuzzify and solve the output value of the PID controller parameters and substitute it into the PID controller, read the current power value and the power difference, until the power error value meets the calibration requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of digital communication, and in particular relates to a multi-stage attenuator radio frequency channel power calibration method based on a fuzzy PID controller. Background Art

[0002] In a communication link, both the transmitter and the receiver need to perform power calibration, and when faced with situations such as a large frequency range for transmission or reception, poor device linearity, and poor broadband power flatness, a long calibration time is required.

[0003] In the prior art, when calibrating the RF channel, the power value is read through an external spectrum analyzer, power meter and other instruments. The computer program used for calibration usually runs on an X86 computer, and uses a network cable, serial port cable, and a dedicated interface to connect the RF channel to be calibrated. There is a delay in the communication between the X86 computer and the RF channel, a delay in each adjustment of the RF channel power, and a delay in reading the instrument power value. These delays result in a long time interval for adjusting the power. In the traditional method, the RF channel uses the binary method to adjust the power, which faces the problem of slow adjustment to the target power. When the digital-to-analog conversion chip used on the RF channel has a large range and a small step value, the problem of slow adjustment of the RF channel to the target power is more prominent.

[0004] The present invention is dedicated to solving the above problems, improving the calibration accuracy of communication products and reducing the calibration time. Summary of the invention

[0005] The purpose of the present invention is to provide a multi-stage attenuator radio frequency channel power calibration method based on a fuzzy PID controller.

[0006] To achieve the above-mentioned purpose of the invention, the technical solution adopted by the present invention is: a multi-stage attenuator RF channel power calibration method based on a fuzzy PID controller, determining the frequency point that needs to be calibrated for the RF channel and the power starting value of the frequency point calibration, and calculating the power error value and the error change value; fuzzifying the power error value and the error change value, respectively calculating the membership of the PID controller parameters according to different logical subsets, membership functions and fuzzy rule tables, and then defuzzifying the output value of the PID controller parameters and substituting it into the PID controller, reading the current power value and the power difference until the power error value meets the calibration requirements.

[0007] Preferably: the PID controller parameters include Kp, Ki and Kd.

[0008] Preferably, the method comprises the following steps:

[0009] S1, determine the frequency point f0 that needs to be calibrated for the RF channel, the power starting value P0 and power ending value P1 of the frequency point calibration, and the maximum adjustment range L of ALC max, Maximum adjustment range of voltage-controlled attenuator A max ;

[0010] S2. Set the initial attenuator value to the minimum to maximize the output power; continue to increase the value of the voltage-controlled attenuator to keep the RF channel in the linear region;

[0011] S3. Read the power value P at the current calibration frequency x , calculate the power error value: E = P x -P0; Calculate the error change value: E c =E n -E n-1 ; where E n Indicates the current power error value, E n-1 Indicates the power error value calculated last time;

[0012] S4. Power error value E and error change value E c To perform fuzzification;

[0013] S5, solving the membership degree of the power error value E;

[0014] S6. Solve the error change value E c The degree of membership;

[0015] S7, according to the power error value E and the error change value E c The membership degree of the PID parameters is calculated by using the maximum and minimum operation method to transform and map the fuzzy rule table.

[0016] S8, converting according to the membership degree of the PID parameters to solve the clear PID parameter control quantity output value;

[0017] S9, using the clear PID parameter control quantity output value for the PID controller, reading the current power value and the difference between the current power value and the previous power value, and when the difference between the current output power and the target power is small, performing conventional PID fine adjustment until the difference between the output power and the target power meets the calibration requirements;

[0018] Repeat steps S3-S8 until the calibration of all power points between the power start value P0 and the power end value P1 is completed;

[0019] S10. Before formal calibration, adjust the control parameters through steps S1-S9 and conduct experiments using multiple groups of fuzzy rule tables.

[0020] Preferably: in step S4, the power error value E is in the range of [-A max ,+A max ], error change value E c The range is [-2·A max,+2·A max ], the power error value E and the error change value E c The interval is evenly divided into 8 parts, and the dividing points of the 8 parts are represented by NB, NM, NS, ZO, PS, PM, and PB respectively. NB, NM, NS, ZO, PS, PM, and PB correspond to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large in the fuzzy subset respectively.

[0021] Preferably: in step S5, the process of solving the membership degree of the power error value E is: the range of the power error value E calculated in step S3 is within interval a i and a i+1 Between i Indicates that in the set <-A max ,NB,NM,NS,ZO,PS,PM,PB,+A max >The i-th dividing point from left to right, i=1,2,……,8;

[0022] And / or, in step S6, the error change value E c Membership degree solution process: power error value E Membership degree solution process: error change value E calculated in step S3 c The range is in interval b i and b i+1 Between i Indicates that <-2·A in the set max ,NB,NM,NS,ZO,PS,PM,PB,+2·A max >The i-th dividing point from left to right, i=1,2,…,8.

[0023] Preferably: the fuzzy rule table is as follows:

[0024] K p The corresponding membership degree is:

[0025]

[0026] K i The corresponding membership degree is:

[0027]

[0028] K d The corresponding membership degree is:

[0029]

[0030] Preferably: in the step S8, the fuzzy inference result is converted into an exact value using the centroid method.

[0031] Preferred: Take the centroid of the area enclosed by the membership function curve and the horizontal coordinate as the final output value v0 of the fuzzy reasoning:

[0032]

[0033] Where V represents the power error value E and the error change value E c The domain of K p ,K i ,K d The corresponding membership degree μ p ,μ i ,μd,v represents each value in the domain,μ v (v) represents the membership function.

[0034] Preferably: the final output value v0 of fuzzy reasoning is calculated for the discrete domain case with m output quantization levels:

[0035]

[0036] Among them, v k represents any discrete value in the discrete domain V, V represents the power error value E, the error change value E c The domain of discourse, μ v (v k ) represents the discrete form of the membership function.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] The present invention determines the frequency point that needs to be calibrated for the radio frequency channel and the power starting value of the frequency point calibration, calculates the power error value and the error change value, fuzzifies the error and the error change value respectively, and obtains the membership of the output values ​​Ki, Kd, ​​Kp (PID parameters) according to different logical subsets, membership functions, and fuzzy rule tables, and then defuzzifies to obtain Kp, Ki and Kd. Kp, Ki and Kd are then substituted into the PID formula. The first-stage variable attenuator is controlled by the PID algorithm to make the output power value close to the starting calibration power point. When the output power fluctuates within a small range of the starting calibration power point, the PID algorithm is used to adjust the subsequent variable attenuator so that the output power fluctuation range meets the power calibration accuracy. The calibration of the radio frequency channel has a wide application range and has obvious speed advantages compared to the traditional binary search method. At the same time, compared with the wider range of traditional PID control, less time is required to adjust the PID parameters. Calibration with more dense calibration points within the same calibration time can improve the calibration accuracy of the radio frequency channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flowchart of the calibration method of the present invention;

[0040] Figure 2 Schematic diagram of a radio frequency channel controlled by a multi-stage voltage-controlled attenuator in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Unless otherwise specified, the technical means used in the embodiments are conventional means well known to those skilled in the art.

[0042] like Figure 1 As shown, the present invention discloses a method for calibrating the radio frequency channel power of a multi-stage attenuator based on a fuzzy PID controller, the core idea of ​​which is: determining the frequency point that the radio frequency channel needs to be calibrated and the power starting value of the frequency point calibration, calculating the power error value and the error change value; fuzzifying the power error value and the error change value, respectively obtaining the membership of the PID controller parameters according to different logical subsets, membership functions and fuzzy rule tables, and then defuzzifying to obtain the clear output value of the PID controller parameters and substitute it into the PID controller, reading the current power value and the power difference, until the power error value meets the calibration requirements. The PID controller parameters include Kp, Ki and Kd. That is: calculating the power error value and the error change value, obtaining the membership according to the membership function for fuzzification, and obtaining the membership of the fuzzy quantity belonging to the fuzzy subset (negative large, negative medium, negative small, zero, positive small, positive medium, positive large); obtaining the membership of the output value according to the fuzzy rule table, and using the defuzzification method to determine an exact and accurate quantity.

[0043] The first-stage variable attenuator is controlled by the PID algorithm to make the output power value close to the starting calibration power point. When the output power fluctuates within a small range of the starting calibration power point, the PID algorithm is used to adjust the subsequent variable attenuator so that the output power fluctuation range meets the power calibration accuracy.

[0044] Furthermore, the present invention also discloses the specific steps of the calibration method, including the following steps:

[0045] S1, determine the frequency point f0 that needs to be calibrated for the RF channel, the power starting value P0 and power ending value P1 of the frequency point calibration, and the maximum adjustment range L of ALC max ,,The maximum adjustment range of the voltage controlled attenuator is A max .

[0046] S2. Set the initial attenuator value to the minimum to maximize the output power; continue to increase the value of the voltage-controlled attenuator to keep the RF channel in the linear region.

[0047] S3. Read the power value P at the current calibration frequency through the spectrum analyzer. x, the power value P x Divide the power value from the target power value (i.e. the power starting value P0) to calculate the power error value: E = P x -P0; Calculate the error change value: E c =E n -E n-1 , where E n Indicates the current power error value, E n-1 Indicates the power error value calculated last time.

[0048] S4. Power error value E and error change value E c To fuzzify.

[0049] Specifically, in step S4, the power error value E is in the range of [-A max ,+A max ], error change value E c The range is [-2·A max ,+2·A max ], the power error value E and the error change value E c The interval is evenly divided into 8 parts, and the dividing points of the 8 parts are represented by NB, NM, NS, ZO, PS, PM, and PB respectively. NB, NM, NS, ZO, PS, PM, and PB correspond to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large in the fuzzy subset respectively.

[0050] S5. Calculate the degree of membership of the power error value E.

[0051] Specifically, in step S5, the process of solving the membership degree of the power error value E is as follows: the range of the power error value E calculated in step S3 is within interval a i and a i+1 Between i Indicates that in the set <-A max ,NB,NM,NS,ZO,PS,PM,PB,+A max >From left to right, the i-th dividing point, i = 1, 2, ..., 8. This set is the domain of the power error value E.

[0052] For example, when E belongs between PM and PB, E corresponds to 2 memberships. The membership of E to PM is (PB-E) / (PB-PM), and the membership of E to PB is (E-PM) / (PB-PM). The meaning of membership is the linear division between PM and PB. The closer E is to PM or PB, the greater the corresponding membership.

[0053] S6. Solve the error change value E c The membership degree of is calculated in the same way as the membership degree of the power error value E. This set is the error change value Ec The domain of discussion.

[0054] Specifically, in step S6, the error change value E c Membership degree solution process: power error value E Membership degree solution process: error change value E calculated in step S3 c The range is in interval b i and b i+1 Between i Indicates that <-2·A in the set max ,NB,NM,NS,ZO,PS,PM,PB,+2·A max >The i-th dividing point from left to right, i=1,2,…,8.

[0055] S7, fuzzy reasoning: According to the obtained power error value E and error change value E c , use the maximum and minimum operation method in fuzzy operation to transform and map the fuzzy rule table and calculate the membership of PID parameters. According to the following fuzzy rule table, the output value K is calculated respectively. p ,K i ,K d The corresponding membership degrees are shown in Table 1-3.

[0056] Table 1K p The corresponding membership

[0057]

[0058] Table 2K i The corresponding membership

[0059]

[0060] Table 3K d The corresponding membership

[0061]

[0062]

[0063] S8, defuzzification is performed, which is used to convert K p ,K i ,K d The corresponding membership degree μ p ,μ i ,μ d Perform the conversion to obtain a clear control output. Use the centroid method to convert the fuzzy reasoning result into an accurate value v0. Specifically, take the centroid of the area enclosed by the membership function curve and the horizontal coordinate as the final output value of the fuzzy reasoning. The specific solution formula is as follows:

[0064]

[0065] Where V represents the power error value E and the error change value E c The domain of K p ,K i ,K d The corresponding membership degree μ p ,μ i ,μ d , v represents each value in the domain, μ v (v) represents the membership function.

[0066] For the discrete domain case with m output quantization levels:

[0067]

[0068] Among them, v k Represents any discrete value in the discrete domain V. v (v k ) represents the discrete form of the membership function.

[0069] S9. Use the clear PID parameter control quantity output value for the PID controller, read the current power value and the power error value E, and when the difference between the current output power and the target power is small, perform conventional PID fine-tuning until the difference between the output power and the target power meets the calibration requirements; repeat steps S3-S8 until the calibration of all power points between the power starting value P0 and the power ending value P1 is completed.

[0070] S10. Before formal calibration, adjust the control parameters through steps S1-S9 and use multiple groups of fuzzy rule tables to conduct experiments. Determine the control parameters and fuzzy rule tables for RF power adjustment. Since the range of fine-tuning PID is small, the RF channels of the same batch can be adjusted using the same fine-tuning PID parameters.

[0071] Example 1

[0072] like Figure 2 As shown, the RF channel controlled by the multi-stage voltage-controlled attenuator, ① in the figure represents the first-stage voltage-controlled attenuator aatt1, which has the characteristics of a large attenuation control range and a large attenuation step value, and ② in the figure represents the second-stage voltage-controlled attenuator aatt2, which has a small control range and a small attenuation step value. In this embodiment, the RF channel is controlled by only two-stage voltage-controlled attenuators.

[0073] (1) Determine the frequency point f0 that needs to be calibrated for the RF channel and the power starting value 0dBm and ending value -10dBm of the frequency point calibration. The maximum adjustment range of ALC is 10dBm. The maximum adjustment range of the first-stage voltage-controlled attenuator is 31.5dBm, and the control amount is [0,63]. The maximum adjustment range of the second-stage voltage-controlled attenuator is 13dBm, and the control amount is [0,52000].

[0074] (2) Set the initial attenuator aatt1 and aatt2 attenuation values ​​to the minimum to maximize the output power of the RF channel. Continue to increase the value of the aatt1 voltage-controlled attenuator to find the 1dBm compression point so that the RF channel is in the linear region. At this time, the aatt2 attenuation value remains at the minimum value.

[0075] (3) Read the power value P at the current calibration frequency through the spectrum analyzer. x , the power value is subtracted from the calibrated target power value to obtain the power error value E = P x -P0. The power difference between adjacent calibration points is 1dBm, the range of E is [-1,1], and the error value E and the error change value E are recorded. c =E n -E n-1 ,E c The range is [-1,1].

[0076] (4) For E and E c Fuzzy. c The interval is evenly divided into 8 parts. The dividing points of these 8 parts are represented by NB, NM, NS, ZO, PS, PM, and PB (corresponding to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large in the fuzzy subset), and the corresponding domain is {-1, -0.75, -0.5, -0.25, 0, 0.25, 0.5, 0.75, 1}.

[0077] (7) Fuzzy reasoning, the obtained E and E c , use the maximum and minimum operation method in fuzzy operation to transform the rule table and map it to calculate the membership. According to the following fuzzy rule table, the output value K is calculated respectively p ,K i ,K d The corresponding membership degrees are shown in Table 4-6.

[0078] Table 4K p The corresponding membership

[0079]

[0080]

[0081] Table 5K iThe corresponding membership

[0082]

[0083] Table 6K d The corresponding membership

[0084]

[0085] (8) Then perform defuzzification, which is to convert K p ,K i ,K d The corresponding membership degree μ p ,μ i ,μ d The fuzzy reasoning result is converted into an accurate value using the centroid method, and the centroid of the area enclosed by the membership function curve and the horizontal coordinate is taken as the final output value of the fuzzy reasoning, that is:

[0086]

[0087] Among them, V represents the domain of the previous text, μ represents K p ,K i ,K d The corresponding membership degree μ p ,μ i ,μ d , v represents each value in the domain, μ v (v) represents the membership function.

[0088] For the discrete domain case with m output quantization levels:

[0089]

[0090] (9) The obtained clear control quantity K p ,K i ,K d For PID controller, read the current power value and power difference, and perform regular PID fine bar when the difference between the output power and the target power is small, until the difference between the output power and the target power meets the calibration requirements. Repeat steps (3), (4), (5), (6), (7), (8) until the calibration of all power points between P0 and P1 is completed.

[0091] (10) Before the formal calibration, adjust the control parameters through (1) to (9) and use multiple sets of fuzzy rule tables to conduct experiments. Determine the control parameters and fuzzy rule tables for the RF power adjustment speed. Since the fine-tuning PID has a small range of variation, the RF channels of the same batch can be adjusted using the same fine-tuning PID parameters.

[0092] The embodiments described above are only descriptions of the preferred modes of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various deformations, modifications, and substitutions made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. Multi-stage attenuator RF channel power calibration method based on fuzzy PID controller, Features: Determine the frequency point that needs to be calibrated for the RF channel and the power starting value for frequency point calibration, and calculate the power error value and error change value; perform fuzzy processing on the power error value and error change value, and respectively calculate the membership of the PID controller parameters according to different logical subsets, membership functions and fuzzy rule tables, and then defuzzify the output value of the PID controller parameters and substitute it into the PID controller, read the current output power and power error value, until the current power error value meets the calibration requirements; PID controller parameters include Kp, Ki and Kd; The multi-stage attenuator RF channel power calibration method includes the following steps: S1. Determine the frequency point f that needs to be calibrated for the RF channel 0 , the power starting value P of the frequency calibration 0 And the power end value P 1 、ALC maximum adjustment range L max , Maximum adjustment range of voltage-controlled attenuator A max ; S2. Set the initial attenuator value to the minimum to maximize the output power; continue to increase the value of the voltage-controlled attenuator to keep the RF channel in the linear region; S3. Read the power value P at the current calibration frequency x , calculate the power error value: E = P x -P 0 ; Calculate the error change: E c =E n -E n-1 ; where E n Indicates the current power error value, E n-1 Indicates the power error value calculated last time; S4. Power error value E and error change value E c To perform fuzzification; S5, solving the membership degree of the power error value E; S6. Solve the error change value E c The degree of membership; S7, according to the power error value E and the error change value E c The membership degree of the fuzzy rule table is transformed and mapped using the maximum and minimum operation method to calculate the membership degree of the PID controller parameters; S8, converting according to the membership degree of the PID controller parameters to solve a clear PID controller parameter control quantity output value; S9, using the clear PID controller parameter control quantity output value for the PID controller, reading the current output power and the power error value E, and when the current power error value between the current output power and the target power is small, performing PID fine adjustment until the current power error value meets the calibration requirements; Repeat steps S3-S8 until the power starting value P is reached. 0 To the power end value P 1 Calibration of all power points in between.

2. The multi-stage attenuator radio frequency channel power calibration method based on fuzzy PID controller according to claim 1, Features: In step S4, the power error value E is in the range of [-A max ,+A max ], error change value E c The range is [-2·A max ,+2·A max ], the power error value E and the error change value E c The interval is evenly divided into 8 parts, and the dividing points of the 8 parts are represented by NB, NM, NS, ZO, PS, PM, and PB respectively. NB, NM, NS, ZO, PS, PM, and PB correspond to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large in the fuzzy subset respectively.

3. The multi-stage attenuator radio frequency channel power calibration method based on fuzzy PID controller according to claim 2, Features: In step S5, the process of calculating the membership of the power error value E is as follows: the range of the power error value E calculated in step S3 is within interval a i and a i+1 Between i Indicates that in the set <-A max ,NB,NM,NS,ZO,PS,PM,PB,+A max >The i-th dividing point from left to right, i=1,2,……,8; In step S6, the error change value E is calculated. c The membership process is as follows: The error change value E calculated in step S3 c The range is in interval b i and b i+1 Between i Indicates that <-2·A in the set max ,NB,NM,NS,ZO,PS,PM,PB,+2·A max >The i-th dividing point from left to right, i=1,2,…,8.

4. The multi-stage attenuator radio frequency channel power calibration method based on fuzzy PID controller according to claim 3, Features: The fuzzy rule table is as follows: K p The corresponding membership degree is: K i The corresponding membership degree is: K d The corresponding membership degree is:

5. The multi-stage attenuator radio frequency channel power calibration method based on fuzzy PID controller according to claim 4, Features: In step S8, the degree of membership of the PID controller parameter obtained in step S7 is converted into a clear PID controller parameter control quantity output value using the center of gravity method.

6. The multi-stage attenuator radio frequency channel power calibration method based on fuzzy PID controller according to claim 5, Features: Take the centroid of the area enclosed by the membership function curve and the horizontal coordinate as the final output value of fuzzy reasoning: Among them, v 0 For clear PID controller parameter control output value, V represents power error value E, error change value E c The domain of discourse, v represents each value in the domain, μ v (v) represents the membership function.