Voltage parameter matching method of high-precision dual-voltage control attenuator and related equipment
By using a segmented gradient scanning and standing wave ratio iterative adjustment method, the problem of low voltage parameter matching efficiency of high-performance attenuators was solved, achieving efficient and accurate voltage parameter matching, and improving production efficiency and parameter set reliability.
Patent Information
- Application Number
- CN202610017065.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-07
- Publication Date
- 2026-11-17
AI Technical Summary
The low voltage parameter matching efficiency of high-performance attenuators leads to extremely low mass production efficiency, and the huge time cost caused by full-space traversal testing in existing technologies is difficult to solve.
A segmented gradient scan is used to establish a mapping relationship between voltage and attenuation value, accurately locate the initial voltage parameters, and make targeted iterative adjustments based on the standing wave ratio, reducing ineffective adjustment steps and improving matching efficiency.
By narrowing the range of test voltage combinations and reducing ineffective adjustments, the efficiency and accuracy of voltage parameter matching are improved, ensuring the reliability and stability of the output parameter set.
Smart Images

Figure CN123122497A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of attenuator technology, and in particular to a voltage parameter matching method and related equipment for a high-precision dual-voltage controlled attenuator. Background Technology
[0002] In the signal link of high-performance radio frequency systems, dual-voltage controlled attenuators are critical control components due to their ability to finely adjust amplitude and optimize port impedance. To ensure the integrity of signal transmission, both precision instruments and communication base stations require this device to maintain an extremely low voltage standing wave ratio (VSWR) simultaneously when outputting a specified attenuation, in order to eliminate mismatch errors.
[0003] In related technologies, a full-space traversal test based on a high-density grid is employed. Specifically, due to the nonlinear characteristics of active devices and the lack of a universal analytical model, technicians typically set extremely small step values within the effective range of two control voltages, driving the test equipment to scan all possible voltage coordinate combinations one by one. This approach essentially constructs a massive two-dimensional test matrix, physically applies voltage to each node in the matrix, and measures its response indicators to establish a detailed database. From this database, voltage operating points that meet the performance requirements are then selected.
[0004] However, due to the exponential distribution of the combined space of the two voltages, the test grid often contains tens of millions of test points to ensure search accuracy. In actual production lines, the testing equipment requires a fixed amount of time to set the voltage, stabilize the signal, and read the data for each test point, resulting in an extremely long single-chip calibration cycle. This huge time cost caused by the massive number of test points leads to extremely low mass production efficiency for high-performance attenuators. Summary of the Invention
[0005] This application provides a voltage parameter matching method and related equipment for a high-precision dual-voltage controlled attenuator, which alleviates the technical problem of low voltage parameter matching efficiency of high-performance attenuators and improves the mass production efficiency of dual-voltage controlled attenuators.
[0006] In a first aspect, this application provides a voltage parameter matching method for a high-precision dual-voltage controlled attenuator, comprising: performing segmented gradient scanning on the first voltage value and the second voltage value of the dual-voltage controlled attenuator to obtain the corresponding second voltage sub-intervals and corresponding attenuation value intervals under different first voltage values, and establishing a mapping relationship between the first voltage value, the attenuation value interval, and the second voltage sub-interval; generating a target attenuation value sequence according to a preset attenuation value interval and a preset attenuation value step; for each target attenuation value in the target attenuation value sequence, finding the target attenuation value interval in the mapping relationship, and determining the first voltage value corresponding to the target attenuation value interval as the initial attenuation value interval. The first voltage reference value is used to determine the maximum value of the second voltage sub-interval corresponding to the target attenuation value interval as the initial second voltage value. The initial first voltage reference value and the initial second voltage value are input into the dual-voltage control attenuator to obtain the real-time attenuation value and voltage standing wave ratio (VSWR). Based on the relationship between the VSWR and the preset VSWR threshold, the first voltage value or the second voltage value is iteratively adjusted until the absolute value of the difference between the real-time attenuation value and the target attenuation value after adjustment does not exceed the preset attenuation deviation threshold, and the measured VSWR does not exceed the preset VSWR threshold. The current first voltage value and the current second voltage value at the time of stopping adjustment are determined as the voltage parameter set of the target attenuation value.
[0007] By adopting the above technical solution, the voltage parameter matching system first performs traversal testing of the first and second voltage values through segmented gradient scanning, which can significantly narrow down the range of voltage combinations to be tested, and simultaneously establish a mapping relationship between the first voltage value, attenuation value range, and the second voltage sub-range. Then, the voltage parameter matching system generates a target attenuation value sequence according to preset conditions. Through this mapping relationship, the initial first voltage reference value and initial second voltage value corresponding to the target attenuation value can be directly found, avoiding blind setting of initial voltage parameters and reducing ineffective adjustment steps. Next, the voltage parameter matching system inputs the initial voltage parameters into the attenuator to obtain the real-time attenuation value and voltage standing wave ratio (VSWR). Based on the relationship between the VSWR and a preset threshold, the first or second voltage value is adjusted specifically, reducing the complexity of the adjustment process and improving the targeting of the adjustment. Finally, the voltage parameter matching system iteratively adjusts until both the attenuation deviation threshold and the VSWR threshold requirements are simultaneously met, ensuring that the output voltage parameter set meets the performance requirements. This method alleviates the technical problem of low voltage parameter matching efficiency in high-performance attenuators, reduces the number of voltage combinations to be tested, and thus improves the efficiency of voltage parameter matching.
[0008] In conjunction with some embodiments of the first aspect, in some embodiments, by performing segmented gradient scanning on the first voltage value and the second voltage value of the dual-voltage controlled attenuator, the corresponding second voltage sub-intervals and corresponding attenuation value intervals under different first voltage values are obtained. Specifically, this includes: setting a first scanning range and a first scanning step for the first voltage value, and a second scanning range and a second scanning step for the second voltage value; traversing within the first scanning range of the first voltage value according to the first scanning step to obtain multiple first voltage values; for each first voltage value, traversing within the second scanning range of the second voltage value according to the second scanning step to measure the attenuation measurement value and voltage standing wave ratio measurement value corresponding to each combination of first voltage value and second voltage value; retaining the combination of first voltage value and second voltage value corresponding to the attenuation measurement value within the preset attenuation value interval and the voltage standing wave ratio measurement value not exceeding the preset voltage standing wave ratio threshold; determining the continuous second voltage values retained under each first voltage value as the second voltage sub-interval, and determining the attenuation measurement value range corresponding to the second voltage sub-interval as the attenuation value interval.
[0009] By adopting the above technical solution, the voltage parameter matching system first ensures that the scan covers the effective voltage range while avoiding test redundancy caused by excessively small steps by setting a clear scan range and scan step. Then, the system performs a dual screening of voltage combination validity by traversing measurements and simultaneously acquiring attenuation and voltage standing wave ratio (VSWR) measurements, eliminating combinations that do not meet the requirements. Finally, the system determines the second voltage sub-interval as the consecutive qualified second voltage values under each first voltage value, and correspondingly determines the attenuation value interval, ensuring that the mapping relationship accurately associates the first voltage value with the corresponding effective attenuation and second voltage range. This method achieves accurate screening and orderly classification of effective voltage combinations, while further reducing the initial test data volume and improving execution efficiency.
[0010] In conjunction with some embodiments of the first aspect, in some embodiments, based on the relationship between the voltage standing wave ratio (VSWR) and a preset VSWR threshold, the first voltage value or the second voltage value is iteratively adjusted until the absolute value of the difference between the measured real-time attenuation value and the target attenuation value is within a preset attenuation deviation threshold, and the measured VSWR is within the preset VSWR threshold. Specifically, this includes: inputting an initial first voltage reference value and an initial second voltage value into a dual-voltage controlled attenuator to obtain the current attenuation value; calculating the current attenuation deviation value between the current attenuation value and the target attenuation value; when the VSWR is not less than the preset VSWR threshold, according to the preset... The first voltage value is adjusted using a first adjustment step and a preset first adjustment direction to obtain the adjusted first voltage value. The adjusted first voltage value and the second voltage value are input into a dual-voltage control attenuator to obtain the adjusted real-time attenuation value. The absolute value of the difference between the adjusted real-time attenuation value and the target attenuation value is calculated to obtain the first adjusted attenuation deviation value. When the first adjusted attenuation deviation value is greater than the current attenuation deviation value, the preset first adjustment direction is switched to the opposite direction, and the first voltage value is continuously compensated and adjusted multiple times based on the switched direction. When the voltage standing wave ratio is less than the preset voltage standing wave ratio threshold, the second voltage value is adjusted.
[0011] By adopting the above technical solution, the voltage parameter matching system first calculates the current attenuation deviation value in the initial stage of iterative adjustment. Then, based on the relationship between the voltage standing wave ratio (VSWR) and the threshold, it distinguishes the adjustment targets. When the VSWR is not up to standard, it prioritizes adjusting the first voltage value, making the adjustment more targeted and avoiding blindly adjusting two voltage values simultaneously, thus reducing adjustment redundancy. Next, the voltage parameter matching system compares the adjusted attenuation deviation value with the current attenuation deviation value to determine the rationality of the adjustment direction. It then promptly switches directions and performs compensatory adjustments to ensure that the adjustment of the first voltage value can reduce the VSWR while controlling the increase of the attenuation deviation as much as possible. This method ensures the efficiency and accuracy of the adjustment process, enabling it to quickly approach the condition of both VSWR and attenuation value meeting the standards, reducing the number of iterations.
[0012] In conjunction with some embodiments of the first aspect, in some embodiments, adjusting the second voltage value specifically includes: adjusting the second voltage value according to a preset second adjustment step and a preset second adjustment direction to obtain an adjusted second voltage value; inputting the first voltage value and the adjusted second voltage value into a dual-voltage control attenuator to obtain an adjusted real-time attenuation value, calculating the absolute value of the difference between the adjusted real-time attenuation value and the target attenuation value to obtain a second adjusted attenuation deviation value; when the second adjusted attenuation deviation value is less than the current attenuation deviation value, maintaining the preset second adjustment direction to continue adjusting the second voltage value; when the second adjusted attenuation deviation value is not less than the current attenuation deviation value, switching the preset second adjustment direction to the opposite direction and reverting the second voltage value; when the voltage standing wave ratio corresponding to the adjusted second voltage value reaches a preset voltage standing wave ratio threshold, or when the adjusted second voltage value reaches the adjustment lower limit value, adjusting the first voltage value according to a preset first adjustment step, and readjusting the second voltage value based on the adjusted first voltage value.
[0013] By employing the above technical solution, the voltage parameter matching system first adjusts the second voltage value according to a preset step and direction, making the adjustment process controllable while focusing on optimizing the attenuation deviation. Then, by comparing the adjusted attenuation deviation value with the current attenuation deviation value, the system determines the correctness of the adjustment direction, promptly switches the direction and reverts, avoiding over-adjustment that could lead to an increase in attenuation deviation and improving the accuracy of the second voltage value adjustment. Finally, when the VSWR approaches the threshold or the second voltage value reaches the lower limit of adjustment, the voltage parameter matching system promptly adjusts the first voltage value in conjunction with the second voltage value, then re-optimizes the second voltage value, achieving coordinated adjustment of both voltage values and preventing single voltage adjustment from becoming a bottleneck. This method ensures that while the attenuation value accurately meets the target, the VSWR remains within the acceptable range, improving the accuracy and stability of parameter matching.
[0014] In conjunction with some embodiments of the first aspect, in some embodiments, after determining the voltage parameter group for the target attenuation value, the method further includes: constructing a parameter data table; sequentially inputting the voltage parameter groups in the parameter data table into a dual-voltage controlled attenuator according to the order of the target attenuation value sequence; obtaining the verification attenuation value and verification voltage standing wave ratio (VSWR) through a vector network analyzer; the parameter data table is used to store the voltage parameter groups corresponding to each target attenuation value in the target attenuation value sequence; calculating the absolute value of the verification attenuation deviation between the verification attenuation value and the corresponding target attenuation value; if the absolute value of the verification attenuation deviation does not exceed a preset attenuation deviation threshold, and the verification VSWR is less than a preset VSWR threshold, then the voltage parameter group corresponding to the current target attenuation value is determined to be a qualified parameter group; if the absolute value of the verification attenuation deviation exceeds the preset attenuation deviation threshold, or the verification VSWR is not less than the preset VSWR threshold, then the voltage parameter group corresponding to the current target attenuation value is determined to be an abnormal parameter group.
[0015] By adopting the above technical solution, the voltage parameter matching system first constructs a parameter data table to centrally store the voltage parameter groups corresponding to each target attenuation value. Then, the system uses a vector network analyzer to perform actual measurements on the parameter groups, obtaining the attenuation values and VSWR under real operating conditions to ensure the accuracy of the verification results. Finally, the system calculates and verifies the absolute value of the attenuation deviation to quantitatively determine whether the attenuation accuracy of the parameter groups meets the standards, achieving dual verification of the parameter groups by combining this with the VSWR index. Ultimately, this method ensures the reliability of the output parameter groups, preventing substandard performance caused by using unqualified parameter groups in the attenuator.
[0016] In conjunction with some embodiments of the first aspect, in some embodiments, after determining the voltage parameter group corresponding to the current target attenuation value as an abnormal parameter group, the method further includes: obtaining the adjacent target attenuation values of the current target attenuation value to which the abnormal parameter group belongs in the target attenuation value sequence, and retrieving the qualified voltage parameter group corresponding to the adjacent target attenuation value from the parameter data table as a reference voltage parameter group; determining the first voltage value and the second voltage value in the reference voltage parameter group as the optimized first voltage reference value and the optimized second voltage initial value, respectively, replacing the initial first voltage reference value and the initial second voltage value, and iteratively adjusting the first voltage value or the second voltage value again; when the absolute value of the difference between the real-time attenuation value measured after adjustment and the current target attenuation value does not exceed the preset attenuation deviation threshold, and the measured voltage standing wave ratio does not exceed the preset voltage standing wave ratio threshold, determining the first voltage value and the second voltage value at the time of stopping adjustment as the optimized qualified voltage parameter group, and updating it to the parameter data table.
[0017] By employing the above technical solution, the voltage parameter matching system first utilizes the continuity of the target attenuation value sequence to retrieve qualified parameter sets of adjacent target attenuation values as references. Leveraging the correlation between voltage parameters corresponding to adjacent attenuation values, a reasonable initial benchmark is provided for optimizing abnormal parameter sets, avoiding the tedious process of re-performing piecewise gradient scans. Then, the voltage parameter matching system re-optimizes based on existing iterative adjustment logic by replacing the initial voltage benchmark value and the initial second voltage value, ensuring the efficiency of the optimization process. Finally, the voltage parameter matching system iteratively adjusts the abnormal parameter sets to correct them into qualified parameter sets, improving the completeness of the parameter data table. This method achieves the repair of abnormal parameter sets, shortens the time for handling abnormal parameters, and ensures the comprehensiveness and reliability of parameter matching.
[0018] In conjunction with some embodiments of the first aspect, in some embodiments, after updating to the parameter data table, the method further includes: if no optimized qualified voltage parameter set exists, retrieving qualified voltage parameter sets corresponding to the upper and lower adjacent target attenuation values of the current target attenuation value from the parameter data table; calculating the first deviation between the measured attenuation value generated by the qualified voltage parameter set corresponding to the upper adjacent target attenuation value and the current target attenuation value, and the second deviation between the measured attenuation value generated by the qualified voltage parameter set corresponding to the lower adjacent target attenuation value and the current target attenuation value; selecting the qualified voltage parameter set corresponding to the minimum of the first deviation and the second deviation as the final recorded parameter set for the current target attenuation value; integrating all qualified voltage parameter sets, optimized qualified voltage parameter sets, and final recorded parameter sets in the parameter data table, and performing full-range verification according to the target attenuation value sequence, and determining the verified voltage parameter set as the final voltage parameter set.
[0019] By adopting the above technical solution, the voltage parameter matching system first retrieves adjacent qualified parameter sets when an optimized qualified parameter set cannot be obtained. The effectiveness of these adjacent parameter sets provides a feasible alternative for the current target attenuation value, avoiding gaps in the parameter data table. Then, the voltage parameter matching system calculates the deviation between the measured attenuation values of adjacent parameter sets and the current target attenuation value, selecting the parameter set with the smallest deviation as the final recorded parameter set, ensuring that the attenuation accuracy of the alternative parameter set is as close to the requirement as possible. Finally, the voltage parameter matching system performs full-range verification on all integrated parameter sets, further ensuring the overall reliability and consistency of the final parameter set. This method improves the applicability and completeness of the parameter matching scheme, ensuring the stable performance of the dual-voltage controlled attenuator across the entire attenuation range.
[0020] In a second aspect, this application provides a voltage parameter matching system, including one or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and the one or more processors calling the computer instructions to cause the voltage parameter matching system to perform the methods described in the first aspect and any possible implementation thereof.
[0021] Thirdly, this application provides a computer-readable storage medium including instructions that, when executed on a voltage parameter matching system, cause the voltage parameter matching system to perform the method described in the first aspect and any possible implementation thereof.
[0022] Fourthly, this application provides a computer program product, including a computer program / instructions that, when run on a voltage parameter matching system, cause the voltage parameter matching system to perform the method described in the first aspect and any possible implementation thereof.
[0023] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. By adopting the technical means of establishing the mapping relationship between voltage and attenuation value through segmented gradient scanning, accurately locating the initial voltage parameters, and making targeted iterative adjustments based on the standing wave ratio, the technical problem of low voltage parameter matching efficiency caused by traversal testing is alleviated, the number of test voltage combinations is reduced, the calibration cycle is shortened, and the matching efficiency of voltage parameters of dual-voltage control attenuators is improved.
[0024] 2. By adopting standardized segmented gradient scanning, effective voltage combination screening, and interval mapping relationship construction techniques, the technical problems of low efficiency and poor accuracy in mapping relationship construction caused by the lack of standards and invalid data redundancy in segmented scanning are alleviated, thereby improving the orderliness and effectiveness of mapping relationship construction.
[0025] 3. By adopting centralized management of parameter data tables, batch verification, and qualified / abnormal judgment based on dual thresholds of attenuation deviation and VSWR, the technical problems of lack of verification of parameter groups and easy use of unqualified parameter groups have been alleviated. This has achieved the technical effect of accurately eliminating abnormal parameter groups and improving the reliability of the final output voltage parameter group. Attached Figure Description
[0026] Figure 1 This is a flowchart illustrating a voltage parameter matching method for a high-precision dual-voltage control attenuator in an embodiment of this application. Figure 2 This is another flowchart illustrating the voltage parameter matching method for the high-precision dual-voltage control attenuator in this application embodiment; Figure 3 This is a schematic diagram of a hardware structure of the voltage parameter matching system in an embodiment of this application. Detailed Implementation
[0027] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.
[0028] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0029] For ease of understanding, the method provided in this implementation is described in process below. Please refer to [link / reference]. Figure 1 This is a flowchart illustrating a voltage parameter matching method for a high-precision dual-voltage control attenuator in an embodiment of this application.
[0030] 101. By performing segmented gradient scanning on the first and second voltage values of the dual-voltage controlled attenuator, the corresponding second voltage sub-intervals and corresponding attenuation value intervals under different first voltage values are obtained, and the mapping relationship between the first voltage value, the attenuation value interval, and the second voltage sub-interval is established.
[0031] A dual-voltage controlled attenuator is an electronic device that controls the attenuation of a radio frequency (RF) signal using two independent voltage signals. This device typically uses a PIN diode or varactor diode as the core attenuation element. By adjusting the two control voltages, the equivalent impedance of the device is changed, thereby achieving precise control of the RF signal amplitude. The first voltage value refers to the DC bias voltage applied to the first control port of the dual-voltage controlled attenuator, usually used for coarse adjustment of the attenuation or control of the attenuator's operating point; its value is generally between 0 and 5 volts or 0 and 10 volts. The second voltage value refers to the DC bias voltage applied to the second control port of the dual-voltage controlled attenuator, mainly used for fine adjustment of the attenuation or optimization of port impedance matching. Segmented gradient scanning refers to the voltage parameter matching system... The entire voltage control range is divided into multiple sub-segments. Within each sub-segment, a point-by-point scanning test method is used according to a preset step value. For example, the first voltage range of 0 to 5 volts is divided into 50 value points in 0.1 volt steps. The first voltage value represents the specific numerical point of the first voltage value during the segmented gradient scanning process. The second voltage sub-interval is used to represent the effective continuous range of the second voltage value under a certain fixed first voltage value. For example, when the first voltage value is 2.0 volts, the second voltage sub-interval may be [1.2 volts, 3.5 volts]. The attenuation value interval represents the attenuation range that the dual voltage control attenuator can achieve within a specific first voltage value and the corresponding second voltage sub-interval. It is usually expressed in decibels (dB), such as [10dB, 25dB].
[0032] Specifically, the voltage parameter matching system first sets a first scan range (e.g., 0 to 5 volts) and a first scan step (e.g., 0.05 volts) for a first voltage value, and a second scan range (e.g., 0 to 5 volts) and a second scan step (e.g., 0.01 volts) for a second voltage value. Then, it iterates through the first scan range of the first voltage value according to the first scan step, obtaining multiple first voltage values, for example, 101 first voltage value points ranging from 0, 0.05, 0.10, 0.15...5.00 volts. For each first voltage value, the voltage parameter matching system iterates through the second scan range of the second voltage value according to the second scan step, applying the corresponding voltage combination to the dual-voltage controlled attenuator via a programmable DC power supply, and measuring the attenuation and voltage standing wave ratio (VSWR) values corresponding to each first voltage value and second voltage value combination using a vector network analyzer or power meter. During the measurement process, the voltage parameter matching system continuously judges and retains combinations of first and second voltage values corresponding to attenuation measurements within a preset attenuation range and voltage standing wave ratio (VSWR) measurements not exceeding a preset VSWR threshold, while eliminating invalid combinations that do not meet the requirements. Next, the voltage parameter matching system determines the continuous second voltage values retained for each first voltage value as a second voltage sub-interval. For example, when the first voltage value is 2.0 volts, the second voltage values that meet the conditions are a continuous range from 1.2 volts to 3.5 volts; therefore, [1.2 volts, 3.5 volts] is determined as the second voltage sub-interval corresponding to this first voltage value. Simultaneously, the voltage parameter matching system determines the attenuation measurement range corresponding to the second voltage sub-interval as the attenuation value interval. For instance, within the range of the first voltage value of 2.0 volts and the second voltage value of [1.2 volts, 3.5 volts], the measured attenuation value range is [12.5 dB, 28.3 dB]; this range is then determined as the corresponding attenuation value interval. Finally, the voltage parameter matching system constructs a mapping table between the first voltage value, the attenuation value interval, and the second voltage sub-interval.
[0033] 102. Generate the target attenuation value sequence based on the preset attenuation value range and preset attenuation value step.
[0034] The preset attenuation range represents the range of attenuation values that the voltage parameter matching system needs to match. This range is usually determined by the application scenario and technical specifications of the dual-voltage controlled attenuator. For example, a wide dynamic range of [0dB, 60dB] may be required in RF test instruments, while an adjustment range of [10dB, 30dB] may only be needed in communication base stations. The preset attenuation step refers to the fixed interval between two adjacent attenuation values in the target attenuation value sequence. This step value determines the resolution and accuracy of the attenuation control and is usually set to standard values such as 0.1dB, 0.25dB, 0.5dB, or 1dB according to system requirements. The target attenuation value sequence is used to represent the set of attenuation value points that the voltage parameter matching system needs to determine one by one. This sequence is arranged in ascending or descending order.
[0035] Specifically, the voltage parameter matching system first reads the start and end values of a preset attenuation range, for example, the start value is 5.0dB and the end value is 35.0dB, determining that the total attenuation range to be covered is 30dB. Then, the system reads the preset attenuation step, for example, a step value of 0.25dB, calculating the total number of attenuation value points in the sequence as (35.0-5.0) / 0.25+1=121. The system generates the target attenuation value sequence using an iterative process, starting from the start value and increasing the step value each time until the end value is reached or exceeded. During the generation process, the system performs numerical precision processing on each attenuation value to avoid accumulated floating-point arithmetic errors; for example, it calculates 5.0+0.25×40=15.0 instead of accumulating it 40 times to obtain 14.9999... When generating the sequence, the voltage parameter matching system also verifies whether each target attenuation value is within the effective attenuation range covered by the mapping relationship. For target attenuation values that exceed the effective range, the voltage parameter matching system will mark or remove them and generate a prompt message informing the operator that the preset attenuation value range may need to be adjusted or a segmented gradient scan may need to be performed again to expand the effective range. After generation, the voltage parameter matching system stores the target attenuation value sequence in a memory array or data table, providing input data for subsequent voltage parameter lookup and adjustment steps.
[0036] 103. For each target attenuation value in the target attenuation value sequence, find the target attenuation value interval in the mapping relationship, and determine the first voltage value corresponding to the target attenuation value interval as the initial first voltage reference value, and determine the maximum value of the second voltage sub-interval corresponding to the target attenuation value interval as the initial second voltage value.
[0037] The initial first voltage reference value is used to represent the first voltage starting value selected by the voltage parameter matching system for the current target attenuation value. This value is taken from the first voltage value corresponding to the target attenuation value interval in the mapping relationship. The maximum value of the second voltage sub-interval refers to the upper limit of the effective range of the second voltage corresponding to the target attenuation value interval in the mapping relationship. For example, when the second voltage sub-interval is [1.2V, 3.5V], the maximum value is 3.5V. The initial second voltage value represents the second voltage starting value set by the voltage parameter matching system for the current target attenuation value. The selection of the maximum value of the second voltage sub-interval as the initial value is based on the characteristics of the dual voltage control attenuator. Usually, adjusting from the maximum value of the interval can obtain a better initial state of voltage standing wave ratio.
[0038] Specifically, the voltage parameter matching system first extracts a target attenuation value sequentially from the target attenuation value sequence, for example, 15.5dB as the current processing target. Then, the system performs a search operation in the mapping table, traversing all attenuation value intervals to determine if the current target attenuation value of 15.5dB falls within a certain interval. For example, the system finds that when the first voltage is 2.0 volts, the corresponding attenuation value interval is [12.5dB, 18.3dB]. Since 15.5dB is greater than or equal to 12.5dB and less than or equal to 18.3dB, it determines that 15.5dB falls within this attenuation value interval. The system then designates the found attenuation value interval [12.5dB, 18.3dB] as the target attenuation value interval and extracts the corresponding first voltage value of 2.0 volts from the mapping table, setting it as the initial first voltage reference value. Simultaneously, the voltage parameter matching system extracts the second voltage sub-interval [1.2V, 3.5V] corresponding to the target attenuation value interval from the mapping relationship, and takes the maximum value of this interval, 3.5V, as the initial second voltage value. The reason why the voltage parameter matching system chooses the maximum value of the second voltage sub-interval as the initial value is that, according to the circuit characteristics of the dual-voltage controlled attenuator, a higher second voltage value usually corresponds to a better port impedance matching state, which is conducive to obtaining a lower initial voltage standing wave ratio and providing a good starting point for subsequent iterative adjustments.
[0039] In the above process, due to the nonlinear characteristics of the dual-voltage controlled attenuator, there may be multiple different first voltage values, and their corresponding attenuation value ranges all cover the current target attenuation value. To ensure the stability and uniqueness of the voltage parameter set generation, this embodiment uses the following method to determine the initial first voltage reference value: First, calculate the center value of the attenuation value range corresponding to each candidate first voltage value, and select the first voltage value with the smallest absolute difference between the center value and the target attenuation value as the initial first voltage reference value; this method can ensure that the attenuator has the maximum adjustment redundancy when operating at the target voltage point. Second, if multiple candidate first voltage values all meet the attenuation range requirements, the system will call the voltage standing wave ratio (VSWR) measurement values of each voltage combination recorded in the segmented gradient scan stage, calculate the average VSWR of each first voltage value in its attenuation value range, and select the first voltage value with the smallest average VSWR as the initial first voltage reference value.
[0040] 104. Input the initial first voltage reference value and the initial second voltage value into the dual voltage control attenuator to obtain the real-time attenuation value and voltage standing wave ratio.
[0041] The real-time attenuation value is used to represent the actual attenuation of the radio frequency signal by the dual-voltage controlled attenuator under the current voltage parameter combination. This value is obtained in real time by the measuring device and the unit is decibel (dB). The voltage standing wave ratio (VSWR) is a parameter that represents the degree of impedance matching at the port of the dual-voltage controlled attenuator. The voltage standing wave ratio is 1 when the matching is ideal. The larger the value, the worse the matching and the more severe the reflection.
[0042] Specifically, the voltage parameter matching system first sends commands to the programmable DC power supply via the control interface, setting the first output voltage to an initial first voltage reference value, such as 2.0 volts, and the second output voltage to an initial second voltage value, such as 3.5 volts. The voltage parameter matching system waits for the power supply output to stabilize, typically requiring 10 to 50 milliseconds to ensure the voltage reaches the set value and the bias circuitry inside the attenuator fully responds. Then, the voltage parameter matching system injects a test signal into the RF input port of the dual-voltage controlled attenuator via a vector network analyzer. The test signal is typically a continuous wave signal, with the frequency set at the center frequency of the attenuator's operating band, such as 2.4 GHz, and the power level set to 0 dBm. The voltage parameter matching system controls a vector network analyzer to perform S-parameter measurements, acquiring the S21 parameter (forward transmission coefficient) and the S11 parameter (input reflection coefficient). The amplitude value of the S21 parameter directly corresponds to the real-time attenuation value; for example, |S21| = -15.8dB means the real-time attenuation value is 15.8dB. The S11 parameter is used to calculate the voltage standing wave ratio (VSWR). The voltage parameter matching system converts VSWR using the formula VSWR = (1 + |S11|) / (1 - |S11|). For example, when |S11| = -20dB (i.e., a linear value of 0.1), the calculated VSWR is VSWR = (1 + 0.1) / (1 - 0.1) ≈ 1.22. The voltage parameter matching system also performs multiple measurements and averages them to improve measurement accuracy, typically performing 10 to 100 measurements. After removing outliers, the average value is calculated as the final real-time attenuation value and voltage standing wave ratio. The voltage parameter matching system stores the measured real-time attenuation value of 15.8dB and voltage standing wave ratio of 1.22 in the data structure, and records the corresponding initial first voltage reference value of 2.0V and initial second voltage value of 3.5V, forming a complete set of test data records, which provides basic data for subsequent iterative adjustment and judgment.
[0043] 105. Based on the relationship between the voltage standing wave ratio and the preset voltage standing wave ratio threshold, the first voltage value or the second voltage value is iteratively adjusted until the absolute value of the difference between the real-time attenuation value measured after adjustment and the target attenuation value does not exceed the preset attenuation deviation threshold, and the measured voltage standing wave ratio does not exceed the preset voltage standing wave ratio threshold.
[0044] The preset voltage standing wave ratio (VSWR) threshold refers to the maximum allowable VSWR value preset by the voltage parameter matching system, usually set to 1.5 or 2.0. Exceeding this threshold means that the port impedance mismatch is severe, which will lead to signal reflection and system performance degradation. Iterative adjustment refers to the voltage parameter matching system using a cyclic feedback method, determining the next adjustment strategy based on the measurement results after each adjustment, and gradually approaching the target performance index. The preset attenuation deviation threshold represents the maximum allowable deviation between the real-time attenuation value and the target attenuation value, usually set to ±0.1dB, ±0.2dB, or ±0.5dB. This threshold determines the accuracy requirements of attenuation control.
[0045] Specifically, the voltage parameter matching system first inputs the initial first voltage reference value and the initial second voltage value into the dual-voltage control attenuator to obtain the current attenuation value. For example, if the current attenuation value is measured to be 15.8 dB and the target attenuation value is 15.5 dB, the voltage parameter matching system calculates the current attenuation deviation between the current attenuation value and the target attenuation value as |15.8 - 15.5| = 0.3 dB. Simultaneously, the voltage parameter matching system obtains the current voltage standing wave ratio (VSWR), for example, if measured to be 1.6, and compares it with the preset VSWR threshold of 1.5. When the VSWR of 1.6 is not less than the preset VSWR threshold of 1.5, the voltage parameter matching system determines that impedance matching needs to be improved first. Therefore, it adjusts the first voltage value according to the preset first adjustment step of 0.02 volts and the preset first adjustment direction (assuming it is negative), adjusting the first voltage value from 2.0 volts to 1.98 volts, obtaining the adjusted first voltage value. The voltage parameter matching system inputs the adjusted first voltage value of 1.98V and the second voltage value of 3.5V into the dual-voltage controlled attenuator. The measured real-time attenuation value after adjustment is 16.1dB. The absolute value of the difference between the real-time attenuation value after adjustment and the target attenuation value is calculated, yielding the first adjusted attenuation deviation value |16.1-15.5|=0.6dB. When the first adjusted attenuation deviation value of 0.6dB is greater than the current attenuation deviation value of 0.3dB, the voltage parameter matching system determines that the adjustment direction is incorrect, switches the preset first adjustment direction from negative to positive, and performs continuous compensation adjustments on the first voltage value based on the switched direction. In the operation of switching the preset first adjustment direction to the opposite direction, in order to prevent the algorithm from generating cyclic oscillations near local extreme points, the system introduces forced backtracking counting logic. Specifically, once a change in adjustment direction is triggered (e.g., from positive to negative), the system starts and resets the iteration counter. Then, based on the changed direction, it performs forced continuous adjustments. Each adjustment step increments the counter until the counter reaches a preset backtracking step threshold (e.g., 3 times). At this point, the system stops the forced backtracking and resumes the normal judgment logic based on real-time deviation. This logic, through a forced causal decoupling mechanism, ensures that the adjustment point effectively deviates from the original oscillation region, thereby guaranteeing the stability of iterative convergence. For example, performing 3 consecutive adjustments successively adjusts the first voltage value to 2.02V, 2.04V, and 2.06V until the voltage standing wave ratio (VSWR) drops below 1.5. When the VSWR is less than the preset VSWR threshold, for example, if the measured VSWR after adjustment is 1.4, the voltage parameter matching system optimizes the attenuation accuracy. Based on the preset second adjustment step of 0.01V and the preset second adjustment direction (assuming it is negative), the second voltage value is adjusted from 3.5V to 3.49V, resulting in the adjusted second voltage value.The voltage parameter matching system inputs a first voltage value of 2.06 volts and an adjusted second voltage value of 3.49 volts into the dual-voltage control attenuator. The measured real-time attenuation value after adjustment is 15.7 dB, and the calculated second adjusted attenuation deviation value is |15.7 - 15.5| = 0.2 dB. When the second adjusted attenuation deviation value of 0.2 dB is less than the current attenuation deviation value of 0.3 dB, the voltage parameter matching system maintains the preset second adjustment direction and continues to adjust the second voltage value, further adjusting it to 3.48 volts and 3.47 volts to bring the attenuation value closer to the target value. When the second adjusted attenuation deviation value is not less than the current attenuation deviation value, the voltage parameter matching system switches the preset second adjustment direction to the opposite direction and reverts the second voltage value back to the previous, more optimal voltage value. When the voltage standing wave ratio (VSWR) corresponding to the adjusted second voltage value approaches or reaches the preset VSWR threshold of 1.5, or when the adjusted second voltage value reaches the lower limit of adjustment of 1.0 volt, the voltage parameter matching system determines that the adjustment space of the second voltage value has been exhausted. At this time, the first voltage value is fine-tuned according to the preset first adjustment step, for example, the first voltage value is adjusted from 2.06 volts to 2.08 volts. After changing the operating point, the second voltage value is readjusted based on the adjusted first voltage value, and the optimal second voltage value is found at the new operating point. During the iterative adjustment process, the voltage parameter matching system also monitors the adjustment status in real time to perform jump condition judgment. Specifically, this includes cumulatively calculating the adjustment range of the first voltage value and recording the search time of the current target attenuation value. If the cumulative adjustment range of the first voltage value is detected to exceed the preset range safety threshold (e.g., 20mV), or the search time recorded by the timer exceeds the preset time threshold (e.g., 3 minutes), the voltage parameter matching system determines that the current search has failed, marks the current target attenuation value as "to be optimized", and forcibly terminates the current search process to avoid the system from falling into an infinite loop or causing the voltage parameters to deviate excessively.
[0046] The voltage parameter matching system continues to execute the above iterative process until the absolute value of the difference between the real-time attenuation value and the target attenuation value after adjustment does not exceed the preset attenuation deviation threshold of 0.1dB, and the measured voltage standing wave ratio does not exceed the preset voltage standing wave ratio threshold of 1.5. For example, when the first voltage value is 2.08 volts and the second voltage value is 3.42 volts, the real-time attenuation value is 15.52dB and the voltage standing wave ratio is 1.45. Both indicators meet the requirements, and the iterative process ends.
[0047] During the parameter search for the current target attenuation value, the voltage parameter matching system also executes a multi-point parallel recording mechanism. Specifically, after each iteration, the system compares the measured real-time attenuation value with other unmatched target attenuation values in the target attenuation value sequence. If the current real-time attenuation value falls within the accuracy range of other target attenuation values (e.g., meets other 0.05dB step node requirements), and the corresponding real-time voltage standing wave ratio meets a preset threshold, the voltage parameter matching system synchronously marks and stores the current voltage parameter set as a candidate parameter set for that target attenuation value. This path reuse logic can fully utilize intermediate data during the search process, avoid repeated and invalid searches for subsequent target values, and thus significantly improve the overall parameter matching efficiency of the entire sequence.
[0048] 106. Determine the current first voltage value and the current second voltage value when the adjustment stops as the voltage parameter group for the target attenuation value.
[0049] The "stop adjustment" indicates that the voltage parameter matching system has simultaneously met the dual requirements of attenuation accuracy and voltage standing wave ratio during the iterative adjustment process, and there is no longer a need to continue adjusting the voltage value. The current first voltage value refers to the actual voltage value applied to the first control port of the dual-voltage controlled attenuator at the time when the iterative adjustment stops. This value is the final value obtained after multiple optimization adjustments. The current second voltage value refers to the actual voltage value applied to the second control port of the dual-voltage controlled attenuator at the time when the iterative adjustment stops. This value is also the final value after iterative optimization. The voltage parameter group of the target attenuation value is used to represent the combination of the first voltage value and the second voltage value required to achieve a specific target attenuation value.
[0050] Specifically, the voltage parameter matching system first reads the current first voltage value (e.g., 2.08 volts) from the control variables when adjustment stops, and simultaneously reads the current second voltage value (e.g., 3.42 volts). The current first and second voltage values are then used as the voltage parameter set for the target attenuation value. The voltage parameter matching system performs numerical precision processing on the read voltage values. Based on actual application requirements and hardware precision limitations, the voltage values are rounded appropriately. For example, if the digital-to-analog converter has a 12-bit resolution, the minimum resolution corresponding to a 5-volt full-scale range is approximately 1.22 millivolts. Therefore, the voltage parameter matching system rounds the voltage values to the nearest integer multiple of 1 millivolt, processing 2.083 volts as 2.083 volts and 3.417 volts as 3.417 volts. The voltage parameter matching system creates a voltage parameter set data structure containing a target attenuation value field (e.g., 15.5 dB), a first voltage value field (2.083 volts), a second voltage value field (3.417 volts), and actual measured attenuation values (15.52 dB) and actual measured voltage standing wave ratios (VSWR) (1.45). The voltage parameter matching system stores the voltage parameter set in a designated data storage location. For batch processing, the voltage parameter matching system marks the target attenuation value as completed and prepares to process the next value in the target attenuation value sequence, repeating steps 103 to 106.
[0051] The voltage parameter matching method for the high-precision dual-voltage controlled attenuator adopted in this application embodiment first establishes a mapping relationship between the first voltage value, the attenuation value range, and the second voltage sub-range by performing segmented gradient scanning on the first and second voltage values, thereby narrowing down the range of voltage combinations to be tested. Then, the voltage parameter matching system generates a target attenuation value sequence based on a preset attenuation value range and step size, and locates the initial first voltage reference value and the initial second voltage value through the mapping relationship, avoiding blind setting of initial voltage parameters and reducing ineffective adjustment steps. Next, the voltage parameter matching system inputs the initial voltage parameters into the attenuator to obtain real-time attenuation values and voltage standing wave ratio (VSWR), and adjusts the first or second voltage value specifically based on the relationship between the VSWR and a preset threshold, reducing the complexity of the adjustment process. Finally, iterative adjustments are made until both the attenuation deviation threshold and the VSWR threshold requirements are simultaneously met, ensuring that the output voltage parameter set meets the performance requirements. This method alleviates the technical problem of low voltage parameter matching efficiency in high-performance attenuators, reduces the number of voltage combinations to be tested, and improves the efficiency of voltage parameter matching for dual-voltage controlled attenuators.
[0052] Based on the above, the method provided in this embodiment will be further described below. Following step 106, there are further steps to perform a further conformity check on the voltage parameter set; please refer to [link to relevant documentation]. Figure 2This is another flowchart illustrating the voltage parameter matching method for a high-precision dual-voltage control attenuator in this application embodiment.
[0053] 201. Construct a parameter data table. According to the order of the target attenuation value sequence, input the voltage parameter groups in the parameter data table into the dual voltage control attenuator in sequence. Obtain the verification attenuation value and verification voltage standing wave ratio through the vector network analyzer. The parameter data table is used to store the voltage parameter groups corresponding to each target attenuation value in the target attenuation value sequence.
[0054] The parameter data table represents the data structure created by the voltage parameter matching system for the systematic management and storage of voltage parameter information. This data table is usually in the form of a relational database or a structured array, and includes multiple fields such as target attenuation value, first voltage value, second voltage value, measured attenuation value, and voltage standing wave ratio (VSWR). The verified attenuation value represents the actual attenuation produced by the dual-voltage controlled attenuator under the action of a specific voltage parameter set, as measured by the voltage parameter matching system using a vector network analyzer, and is expressed in decibels (dB). The verified voltage standing wave ratio (VSWR) is a parameter value that reflects the degree of impedance matching at the ports of the dual-voltage controlled attenuator, measured by the voltage parameter matching system using a vector network analyzer during the verification phase. The ideal value is 1, and a larger value indicates a more severe impedance mismatch.
[0055] Specifically, the voltage parameter matching system first initializes the data structure of the parameter data table, creating a complete table structure including a primary key index (target attenuation value), a first voltage value field, a second voltage value field, a measured attenuation value field, and a voltage standing wave ratio (VSWR) field. Sufficient storage space is allocated to the data table to accommodate the parameter records for the entire target attenuation value sequence. The voltage parameter matching system stores all voltage parameter groups obtained in step 106 into the parameter data table using their corresponding target attenuation values as index keys, forming an initial set of candidate parameters. Then, following the predetermined order of the target attenuation value sequence, the voltage parameter matching system reads the candidate voltage parameter groups corresponding to each target attenuation value sequentially, starting from the beginning of the sequence. For example, it first reads the first voltage value of 1.2V and the second voltage value of 2.8V corresponding to 5.0dB. The voltage parameter matching system sends control commands to the DC power supply through the programmable interface, precisely setting the read first and second voltage values to the two control ports of the dual-voltage controlled attenuator, and waits 20 to 100 milliseconds to ensure voltage stability and complete device response. Next, the voltage parameter matching system controls the vector network analyzer to perform S-parameter scanning measurements at preset test frequency points, obtaining the amplitude value of parameter S21 as the verification attenuation value, and simultaneously calculating the verification voltage standing wave ratio (VSWR) using parameter S11. To improve measurement accuracy, the voltage parameter matching system performs multiple repeated measurements for each candidate voltage parameter group, typically 10 to 50 times, removing outliers and calculating the average value as the final verification result. The voltage parameter matching system updates the verification attenuation value and verification VSWR to the corresponding records in the parameter data table in real time, while also recording auxiliary information such as verification time, ambient temperature, and test equipment model. During the verification process, the voltage parameter matching system also monitors the stability of the measurement data in real time. If it finds that the multiple measurement results of a certain parameter group fluctuate significantly, it will increase the number of measurements or mark that the parameter group needs to be re-optimized. After completing the verification of a candidate voltage parameter group, the voltage parameter matching system automatically switches to the next value in the target attenuation value sequence and repeats the above verification process until all candidate parameter groups in the entire sequence have been traversed.
[0056] 202. Calculate the absolute value of the verification attenuation deviation between the verification attenuation value and the corresponding target attenuation value.
[0057] The absolute value of the verification attenuation deviation is used to represent the absolute value of the difference between the verification attenuation value and the target attenuation value. This value quantifies the attenuation control accuracy of the voltage parameter group. The calculation formula is |verification attenuation value - target attenuation value|, and the unit is decibel (dB).
[0058] Specifically, the voltage parameter matching system first reads the target attenuation value currently being processed from the parameter data table. For example, if the target attenuation value is 15.5 dB, this value serves as the ideal reference. Simultaneously, the system reads the corresponding measured value from the verification attenuation value field of the parameter data table. For example, if the verification attenuation value is 15.52 dB, this is the actual attenuation measured using a vector network analyzer. The system then performs a subtraction operation to calculate the difference between the verification attenuation value and the target attenuation value: 15.52 - 15.5 = 0.02 dB. This difference can be positive (actual attenuation greater than the target value) or negative (actual attenuation less than the target value). Since both positive and negative deviations affect system performance in attenuator performance evaluation, the system needs to calculate the absolute value of the difference. The absolute value of the verification attenuation deviation is obtained through absolute value calculation, for example, |0.02| = 0.02 dB or |-0.03| = 0.03 dB. For batch processing, the voltage parameter matching system uses a loop structure to traverse all records in the parameter data table and performs the same deviation calculation process for each record. For example, it calculates the absolute value of the verification attenuation deviation for each of the 121 target attenuation values.
[0059] 203. If the absolute value of the verification attenuation deviation does not exceed the preset attenuation deviation threshold, and the verification voltage standing wave ratio is less than the preset voltage standing wave ratio threshold, then the voltage parameter group corresponding to the current target attenuation value is determined to be a qualified parameter group.
[0060] The preset attenuation deviation threshold represents the maximum permissible range allowed by the voltage parameter matching system for the verification attenuation value to deviate from the target attenuation value. This threshold is typically set to ±0.1dB, ±0.2dB, or ±0.5dB depending on the application requirements. For example, it may be set to 0.1dB in high-precision testing instruments, while it may be relaxed to 0.5dB in general communication equipment. The verification voltage standing wave ratio (VSWR) represents the parameter value measured by the voltage parameter matching system during the verification process, reflecting the impedance matching status of the dual-voltage controlled attenuator port. The preset VSWR threshold refers to the maximum permissible value of the VSWR set by the voltage parameter matching system, typically set to 1.5, 1.8, or 2.0. This value determines the stringency of the impedance matching quality requirements. The qualified parameter set represents the combination of voltage parameters that simultaneously meets the dual requirements of attenuation accuracy and impedance matching.
[0061] Specifically, the voltage parameter matching system first reads a preset attenuation deviation threshold from the system configuration or user settings, for example, a threshold of 0.2 dB. This threshold defines the acceptable attenuation accuracy range. The system compares the absolute value of the verified attenuation deviation with the preset attenuation deviation threshold. If the absolute value of the verified attenuation deviation does not exceed the preset attenuation deviation threshold, the attenuation accuracy meets the requirements, and the system proceeds to the second judgment. The system reads a preset voltage standing wave ratio (VSWR) threshold from the system configuration, for example, a threshold of 1.5. This threshold defines the acceptable impedance matching level. The system reads the verified VSWR corresponding to the current target attenuation value from the parameter data table and compares it with the preset VSWR threshold. It checks whether the verified VSWR is less than the preset VSWR threshold; "strictly less than" is used here instead of "less than or equal to" to leave a certain safety margin. When both conditions are met simultaneously—that is, the absolute value of the verified attenuation deviation does not exceed the preset attenuation deviation threshold and the verified VSWR is less than the preset VSWR threshold—the system determines the voltage parameter group corresponding to the current target attenuation value as a qualified parameter group. The voltage parameter matching system updates the status field of the record in the parameter data table, marking it as "PASS" or "qualified".
[0062] 204. If the absolute value of the verification attenuation deviation exceeds the preset attenuation deviation threshold, or the verification voltage standing wave is not less than the preset voltage standing wave ratio threshold, then the voltage parameter group corresponding to the current target attenuation value is determined as an abnormal parameter group.
[0063] Abnormal parameter groups refer to voltage parameter combinations that the voltage parameter matching system determines do not meet the performance requirements. These parameter groups either have insufficient attenuation accuracy or poor impedance matching.
[0064] Specifically, the voltage parameter matching system first reads the absolute value of the verification attenuation deviation and the preset attenuation deviation threshold, and determines whether the absolute value of the verification attenuation deviation exceeds the preset attenuation deviation threshold (0.35dB > 0.2dB) through a comparison operation. The system then reads the verification voltage standing wave ratio (VSWR) corresponding to the current target attenuation value and the preset VSWR threshold, determining whether the verification VSWR is not less than the preset VSWR threshold. The system uses a logical OR operation to evaluate two conditions; if either condition is met (attenuation deviation or VSWR exceeds the limit), an anomaly detection process is triggered. When the detection condition is met, the system marks the voltage parameter group corresponding to the current target attenuation value as an abnormal parameter group and updates the status field of the corresponding record in the parameter data table to "FAIL" or "abnormal". The system also classifies and statistically analyzes abnormal parameter groups, distinguishing between single-indicator anomalies (only attenuation or only VSWR exceeding the limit) and dual-indicator anomalies (both exceeding the limit), and calculates the number and proportion of each type of anomaly. The system stores the information of abnormal parameter groups in a separate anomaly queue or anomaly list.
[0065] 205. Obtain the adjacent target attenuation values in the target attenuation value sequence for the current target attenuation value of the abnormal parameter group, and retrieve the qualified voltage parameter group corresponding to the adjacent target attenuation value from the parameter data table as the reference voltage parameter group.
[0066] The adjacent target attenuation value is used to represent the previous and next values in the target attenuation value sequence that are adjacent to the current target attenuation value. For example, for 15.5dB, its adjacent target attenuation values are 15.25dB (previous adjacent) and 15.75dB (next adjacent). If the current value is at the end of the sequence, there are only adjacent values on one side. The reference voltage parameter group refers to the qualified voltage parameter group selected by the voltage parameter matching system and used as the starting point for optimization of abnormal parameter groups.
[0067] Specifically, the voltage parameter matching system first extracts the current target attenuation value from the abnormal parameter group record, for example, extracting 15.5dB. Then, it locates the index position of this value in the target attenuation value sequence. For example, in the sequence [5.0, 5.25, 5.5, ..., 15.25, 15.5, 15.75, ..., 35.0], the index of 15.5dB is 42. The voltage parameter matching system determines the adjacent target attenuation values based on the index position. It calculates the previous adjacent index as 41 corresponding to 15.25dB, and the next adjacent index as 43 corresponding to 15.75dB. For sequence boundary cases, such as when the current value is 5.0dB, only the next adjacent value of 5.25dB is available, and when the current value is 35.0dB, only the previous adjacent value of 34.75dB is available. The voltage parameter matching system accesses the parameter data table and queries the status of the corresponding parameter group based on the adjacent target attenuation value. First, it attempts to acquire the parameter group adjacent to the previous 15.25dB and checks if its status field is "qualified." If qualified, it reads its first voltage value (e.g., 2.05V) and second voltage value (e.g., 3.38V). Simultaneously, the system attempts to acquire the parameter group adjacent to the next 15.75dB and checks if its status is qualified. If qualified, it reads its voltage parameters (e.g., first voltage 2.10V, second voltage 3.45V). Based on the acquired data, the system selects a reference voltage parameter group, prioritizing adjacent parameter groups with smaller differences from the current target attenuation value and better verification indicators. For example, if both adjacent parameters are qualified, the system compares their verification attenuation deviation and VSWR, selecting the group with better overall performance. If only one adjacent parameter is qualified, the system directly selects that parameter group as the reference. For example, if only 15.25dB is qualified, its parameter group (2.05V, 3.38V) is used as the reference. If there are no qualified parameter sets in the preceding and following rows, the voltage parameter matching system will expand the search range and look for the second (two-step interval) or third adjacent qualified parameter sets, such as 15.0dB or 16.0dB qualified parameters, thereby determining the reference voltage parameter set.
[0068] 206. Determine the first voltage value and the second voltage value in the reference voltage parameter group as the optimized first voltage reference value and the optimized second voltage initial value, respectively. Replace the initial first voltage reference value and the initial second voltage value, and iteratively adjust the first voltage value or the second voltage value again.
[0069] The optimized first voltage reference value represents the new first voltage starting value used by the voltage parameter matching system during the optimization of abnormal parameter groups; the optimized second voltage initial value represents the new second voltage starting value used during the optimization process; iterative adjustment refers to the voltage parameter matching system repeatedly executing the voltage parameter optimization process described in step 105.
[0070] Specifically, the voltage parameter matching system first reads the specific values of the reference voltage parameter set. For example, it reads a first reference voltage value of 2.05V and a second reference voltage value of 3.38V, which come from a qualified parameter set of 15.25dB. The voltage parameter matching system assigns the first reference voltage value of 2.05V to the optimized first voltage reference value variable and the second reference voltage value of 3.38V to the optimized second voltage initial value variable. This assignment operation creates a new optimization starting point in the system memory. The voltage parameter matching system then performs a parameter replacement operation, replacing the original initial first voltage reference value (e.g., the original value was 2.00V) determined in step 103 with the optimized first voltage reference value of 2.05V, and replacing the original initial second voltage value (e.g., the original value was 3.50V) with the optimized second voltage initial value of 3.38V. This replacement is a complete overwrite; the original values will no longer be used. The voltage parameter matching system re-executes the iterative adjustment process based on the new optimization starting point. First, the optimized first voltage reference value of 2.05V and the optimized second initial voltage value of 3.38V are input to the dual-voltage control attenuator. A vector network analyzer measures the new real-time attenuation value (e.g., 15.42dB) and voltage standing wave ratio (VSWR) (e.g., 1.48). The voltage parameter matching system calculates the new attenuation deviation |15.42 - 15.5| = 0.08dB, compares the VSWR of 1.48 with the preset threshold of 1.5, and determines the adjustment strategy based on the comparison result. Because the new starting point is closer to the target state, the voltage parameter matching system can use smaller adjustment steps during iterative adjustments. For example, the first voltage adjustment step can be reduced from 0.02V to 0.01V, and the second voltage adjustment step from 0.01V to 0.005V, achieving finer parameter optimization. The voltage parameter matching system continues to execute the same iterative logic as in step 105. When the voltage standing wave ratio (VSWR) of 1.48 is less than the threshold of 1.5, it prioritizes adjusting the second voltage value to optimize attenuation accuracy. For example, it fine-tunes the second voltage from 3.38V to 3.40V to make the attenuation value closer to 15.5dB. The voltage parameter matching system remeasures and evaluates after each adjustment, iterating until both the attenuation deviation and VSWR of less than 1.5 are simultaneously met. Throughout the optimization process, the voltage parameter matching system records the adjustment trajectory, including the voltage value, measurement results, and deviation changes for each iteration. This data is used to analyze optimization efficiency and improve the adjustment strategy. When optimization is successful, the voltage parameter matching system updates the parameter data table with the newly obtained qualified parameter set, replacing the original abnormal parameter set record.
[0071] 207. When the absolute value of the difference between the real-time attenuation value measured after adjustment and the current target attenuation value does not exceed the preset attenuation deviation threshold, and the measured voltage standing wave ratio does not exceed the preset voltage standing wave ratio threshold, the first voltage value and the second voltage value at the time of stopping adjustment are determined as the optimized qualified voltage parameter group and updated to the parameter data table.
[0072] The optimized qualified voltage parameter set refers to the voltage parameter combination that meets the dual technical indicators of attenuation accuracy and impedance matching after being judged as abnormal in the initial verification and iteratively adjusted by referring to the adjacent parameter sets; updating to the parameter data table refers to the operation of overwriting or correcting the status of data records that were originally marked as "abnormal" or "FAIL".
[0073] Specifically, the voltage parameter matching system first acquires the final measurement data at the end of the iterative adjustment in step 206. For example, for a target attenuation value of 15.5dB, the system acquires a real-time attenuation value of 15.54dB after adjustment, and the measured voltage standing wave ratio (VSWR) is 1.42. The voltage parameter matching system reads the preset attenuation deviation threshold (e.g., 0.1dB) and the preset VSWR threshold (e.g., 1.5). The system performs a dual logic judgment: first, it calculates the absolute value of the difference |15.54-15.5|=0.04dB, determining that it is less than 0.1dB; second, it determines that 1.42 is less than 1.5. When both conditions are met simultaneously, it indicates that the original mismatch or deviation problem has been successfully solved by introducing a reference voltage parameter set as a starting point. Next, the voltage parameter matching system locks the current voltage value at the time of stopping adjustment, such as the first voltage value of 2.05V and the second voltage value of 3.39V, and determines it as the optimized qualified voltage parameter set. The system then accesses the parameter data table, locates the record row containing the current target attenuation value of 15.5dB, and performs a write operation: updating the first and second voltage value fields to the new values, changing the status field from "abnormal" to "optimization qualified," and recording the new measured attenuation value and VSWR. In addition, the system records the number of iterations and the time consumed in this optimization process for subsequent analysis of the equipment's convergence performance. Through this step, the system achieves closed-loop repair of the anomaly, ensuring the integrity and usability of the final output parameter table.
[0074] 208. If there is no optimized qualified voltage parameter set, retrieve the qualified voltage parameter set corresponding to the upper and lower adjacent target attenuation values of the current target attenuation value from the parameter data table.
[0075] The upper adjacent target attenuation value is used to represent the attenuation value that is before and adjacent to the current target attenuation value in the target attenuation value sequence. For example, for 15.5dB, the upper adjacent value is 15.25dB, which represents the adjacent value with a smaller attenuation. The lower adjacent target attenuation value is the attenuation value that is after and adjacent to the current target attenuation value in the target attenuation value sequence. For example, for 15.5dB, the lower adjacent value is 15.75dB, which represents the adjacent value with a larger attenuation. The qualified voltage parameter group represents the voltage parameter matching system has been verified and the voltage parameter combination meets the preset threshold requirements for attenuation accuracy and voltage standing wave ratio.
[0076] Specifically, the voltage parameter matching system first determines whether an optimized and qualified voltage parameter set exists. If no optimized and qualified voltage parameter set exists, after confirming the optimization failure, the system first locates the index of the current target attenuation value in the target attenuation value sequence. For example, 15.5dB has an index of 42 in the sequence [5.0, 5.25, 5.5, ..., 15.25, 15.5, 15.75, ..., 35.0]. The system calculates the positions of the upper and lower adjacent values based on the index. The upper adjacent index is 41, corresponding to the target attenuation value of 15.25dB, and the lower adjacent index is 43, corresponding to the target attenuation value of 15.75dB. The system then reads the complete parameter record of the upper adjacent target attenuation value of 15.25dB from the parameter data table through database query or array access operations. After checking that its status field is "qualified", the system extracts the corresponding first voltage value, second voltage value, verification attenuation value, verification voltage standing wave ratio, and other information. Similarly, the voltage parameter matching system reads the parameter record of the next adjacent target attenuation value of 15.75dB from the parameter data table. After confirming that the status is "qualified", it extracts its first voltage value, second voltage value, verification attenuation value, and verification voltage standing wave ratio. If a qualified parameter group is not found in either the upper or lower adjacent group, the voltage parameter matching system will expand the search range to find the second adjacent qualified parameter group (separated by two steps). For example, if 15.25dB is also abnormal, then the parameter group of 15.0dB will be searched. In special cases, if the sequence endpoints (such as the minimum value of 5.0dB or the maximum value of 35.0dB) need to be processed, the voltage parameter matching system will adaptively use only the adjacent parameters on one side, or use extrapolation to estimate the missing parameters on one side.
[0077] 209. Calculate the first deviation between the measured attenuation value generated by the qualified voltage parameter group corresponding to the upper adjacent target attenuation value and the current target attenuation value, and the second deviation between the measured attenuation value generated by the qualified voltage parameter group corresponding to the lower adjacent target attenuation value and the current target attenuation value.
[0078] The first bias indicates the degree of difference between the measured attenuation value of the upper adjacent qualified parameter group and the current target attenuation value. This value quantifies the accuracy loss when using the upper adjacent parameter as a substitute. The second bias indicates the degree of difference between the measured attenuation value of the lower adjacent qualified parameter group and the current target attenuation value. It is used to evaluate the applicability of the lower adjacent parameter as a substitute.
[0079] Specifically, the voltage parameter matching system first reads the qualified voltage parameter set corresponding to the adjacent target attenuation value of 15.25dB, extracting its first voltage value of 2.05V and second voltage value of 3.38V. The system then applies this voltage parameter set to the control port of the dual-voltage controlled attenuator via a programmable interface, waiting 30-50 milliseconds to ensure voltage stability and full device response. Next, the system controls a vector network analyzer to measure the S21 parameter at a specified test frequency (e.g., 2.4GHz), obtaining the measured attenuation value generated by the adjacent parameter set, for example, 15.28dB. This value may differ slightly from the adjacent target attenuation value of 15.25dB due to minor variations in measurement conditions or environmental factors. The system calculates the first deviation by performing a subtraction operation: |15.28-15.5|=0.22dB. This deviation indicates that if the adjacent parameter set were used as a substitute for 15.5dB, the actual attenuation value would deviate from the target by 0.22dB. Similarly, the voltage parameter matching system processes the lower adjacent parameter group, applying the first voltage value of 2.10V and the second voltage value of 3.45V corresponding to the lower adjacent target attenuation value of 15.75dB to the dual-voltage controlled attenuator. The measured attenuation value generated by the lower adjacent parameter group is obtained through a vector network analyzer, for example, 15.73dB. The voltage parameter matching system calculates a second deviation |15.73-15.5|=0.23dB, representing the accuracy loss when using the lower adjacent parameter group. During the measurement process, the voltage parameter matching system performs multiple repeated measurements (usually 5-10 times) and calculates the average value to reduce the impact of random measurement errors. For example, measuring the upper adjacent parameter group 5 times yields [15.27, 15.28, 15.29, 15.28, 15.28]dB, with an average value of 15.28dB. In special cases, such as when a certain adjacent parameter group is nonexistent or the measurement fails, the voltage parameter matching system sets the corresponding deviation value to a maximum value (e.g., 999dB) to ensure it is not selected in subsequent selections.
[0080] 210. Select the qualified voltage parameter set corresponding to the minimum value between the first deviation and the second deviation as the final recorded parameter set for the current target attenuation value.
[0081] The final recorded parameter set refers to the combination of voltage parameters that the voltage parameter matching system finally selects and records for the current target attenuation value. This parameter set will be stored in the parameter data table as the formal control parameter for the target attenuation value.
[0082] Specifically, the voltage parameter matching system first reads the first deviation value, for example, 0.22dB, and the complete information of the corresponding upper adjacent parameter group, including the first voltage value of 2.05V, the second voltage value of 3.38V, and the measured attenuation value of 15.28dB. Simultaneously, the voltage parameter matching system reads the second deviation value of 0.23dB and the complete information of the lower adjacent parameter group, including the first voltage value of 2.10V, the second voltage value of 3.45V, and the measured attenuation value of 15.73dB. The voltage parameter matching system performs a numerical comparison operation to determine the relationship between the first deviation of 0.22dB and the second deviation of 0.23dB. In this example, 0.22 < 0.23, determining the first deviation as the minimum value. Based on the comparison result, the voltage parameter matching system selects the upper adjacent qualified voltage parameter group corresponding to the first deviation as the preferred solution, i.e., the selected parameter group (V1=2.05V, V2=3.38V). In the special case where two deviations are exactly equal (e.g., both are 0.22dB), the voltage parameter matching system will use auxiliary criteria for selection. For example, it might compare the voltage standing wave ratio (VSWR) of the two parameter groups and select the parameter group with the lower VSWR, or the parameter group whose voltage value is closer to the nominal operating point. The voltage parameter matching system will then designate the selected parameter group as the final recorded parameter group for the current target attenuation value of 15.5dB, creating a new parameter record containing the target attenuation value, first voltage value, second voltage value, expected measured attenuation value, deviation, and parameter source marker "upper adjacent substitution." The voltage parameter matching system will update the parameter data table, changing the record status of the current target attenuation value of 15.5dB from "optimization failed" to "substitute parameter," and writing the complete information of the final recorded parameter group.
[0083] The method described above for selecting the parameter set corresponding to the minimum deviation relies on the physical continuity of the voltage-attenuation characteristics of the dual-voltage controlled attenuator. Because the preset target attenuation value sequence has a high-density step characteristic (e.g., 0.05dB), the physical characteristics between adjacent attenuation points have a very high correlation. Therefore, in the rare extreme cases where it is impossible to obtain a parameter set that perfectly meets the accuracy requirements through iterative search, selecting the closest adjacent qualified parameter set as an administrative substitute by calculating the deviation ensures, within the limits of hardware physical capabilities, from a statistical perspective that the final recorded parameter set is the optimal solution under the current conditions, thereby guaranteeing the integrity and usability of the parameters across the entire range.
[0084] 211. Integrate all qualified voltage parameter groups, optimized qualified voltage parameter groups, and final recorded parameter groups in the parameter data table, and perform full-range verification according to the target attenuation value sequence. Determine the voltage parameter groups that pass the verification as the final voltage parameter groups.
[0085] Full-range verification refers to the process by which the voltage parameter matching system verifies the continuity and consistency of all voltage parameter sets within the entire target attenuation value sequence. The final voltage parameter set refers to the set of voltage parameter sets that, after full-range verification and confirmation, can be formally applied to the control of dual-voltage control attenuators.
[0086] Specifically, the voltage parameter matching system first performs parameter integration, extracting all voltage parameter groups marked "qualified" from the parameter data table. Next, it extracts all voltage parameter groups marked "qualified after optimization," which were originally abnormal but successfully met the target through reference-based optimization. Finally, it extracts the final recorded parameter groups marked "alternative parameters." The system combines these three types of parameters into a complete parameter set of 121 groups, covering the entire target attenuation value sequence, and reorders them according to the target attenuation value in ascending order, forming an ordered parameter array. The system then begins full-range verification, first configuring the test environment by initializing the dual-voltage controlled attenuator, vector network analyzer, programmable power supply, and other equipment to standard test conditions, setting the test frequency to 2.4 GHz and the power to 0 dBm. The voltage parameter matching system verifies each parameter group sequentially, starting from 5.0dB, according to the target attenuation value sequence. The voltage values of the first parameter group (V1=1.2V, V2=2.8V) are applied to the attenuator, and after 50 milliseconds of stabilization, the actual attenuation value and VSWR are measured using a vector network analyzer. The system not only verifies the performance of individual parameter groups but also checks the continuity between adjacent groups. For example, it verifies whether the voltage change is smooth (the first voltage change does not exceed 0.1V) and whether the attenuation transition is continuous (without abrupt changes or jumps) when switching from 5.0dB to 5.25dB. During the verification process, the system records the verification results for each parameter group in real time, including the measured attenuation value, measured VSWR, deviation from the target value, and verification timestamp. For example, the verification result for the 5.0dB parameter group is: measured 4.98dB, VSWR 1.35, deviation 0.02dB, verification passed. The voltage parameter matching system sets full-range verification pass criteria, requiring that the attenuation deviation of each parameter group not exceed 0.3dB (a slight relaxation compared to the 0.1dB requirement for single-point verification to account for cumulative errors), the VSWR not exceed 1.6, and the voltage variation between adjacent parameter groups not exceed the preset maximum jump value. After completing the verification of all parameter groups, the voltage parameter matching system calculates the verification pass rate; for example, if 118 out of 121 parameter groups pass verification, the pass rate is 97.5%. The voltage parameter matching system determines all verified voltage parameter groups as the final voltage parameter groups and generates a final parameter file. This file contains a complete parameter mapping table, performance indicators, verification reports, etc., which can be directly imported into the attenuator control system for use.
[0087] The voltage parameter matching method for the high-precision dual-voltage control attenuator adopted in this application embodiment first constructs a parameter data table to store the voltage parameter groups corresponding to each target attenuation value. These parameters are then input into the attenuator sequentially, and the verification attenuation value and verification voltage standing wave ratio (VSWR) are obtained through a vector network analyzer, achieving centralized management and experimental verification of the parameter groups. Next, the voltage parameter matching system calculates the absolute value of the verification attenuation deviation and, combined with the VSWR threshold, determines qualified or abnormal parameter groups, completing a dual screening of parameter groups. Then, for abnormal parameter groups, the system retrieves qualified parameter groups of adjacent target attenuation values as references, replaces the initial voltage parameters, and iteratively adjusts them to repair the abnormal parameter groups. If optimization fails, it retrieves adjacent qualified parameter groups, calculates the deviation, and selects the parameter group corresponding to the minimum value as the final recorded parameter group, avoiding data gaps. Finally, all parameter groups are integrated for full-range verification to determine the final voltage parameter group. This method alleviates the problems of insufficient effective verification of parameter groups and difficulty in handling abnormal parameters, improving the reliability and integrity of the voltage parameter groups.
[0088] The method provided in the above embodiments can be executed by a voltage parameter matching system. The voltage parameter matching system in the embodiments of this invention is described below from a hardware processing perspective. Please refer to [link to relevant documentation]. Figure 3 This is a schematic diagram of a physical device structure of a voltage parameter matching system in an embodiment of this application.
[0089] It should be noted that, Figure 3 The structure of the voltage parameter matching system shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0090] like Figure 3 As shown, the voltage parameter matching system includes a Central Processing Unit (CPU) 301, which can perform various appropriate actions and processes based on a program stored in Read-Only Memory (ROM) 302 or a program loaded from storage section 308 into Random Access Memory (RAM) 303, such as performing the methods described in the above embodiments. The RAM 303 also stores various programs and data required for system operation. The CPU 301, ROM 302, and RAM 303 are interconnected via a bus 304. An Input / Output (I / O) interface 305 is also connected to the bus 304.
[0091] The following components are connected to I / O interface 305: input section 306 including audio input devices, push-button switches, etc.; output section 307 including a liquid crystal display (LCD) and audio output devices, indicator lights, etc.; storage section 308 including a hard disk, etc.; and communication section 309 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 309 performs communication processing via a network such as the Internet. Drive 310 is also connected to I / O interface 305 as needed. Removable media 311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 310 as needed so that computer programs read from them can be installed into storage section 308 as needed.
[0092] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 309, and / or installed from removable medium 311. When the computer program is executed by central processing unit (CPU) 301, it performs the various functions defined in the present invention.
[0093] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those shown in the drawings.
[0095] Specifically, the voltage parameter matching system of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, it implements the voltage parameter matching method of the high-precision dual-voltage control attenuator provided in the above embodiment.
[0096] In another aspect, the present invention also provides a computer-readable storage medium, which may be included in the voltage parameter matching system described in the above embodiments; or it may exist independently and not assembled into the voltage parameter matching system. The storage medium carries one or more computer programs that, when executed by a processor of the voltage parameter matching system, cause the voltage parameter matching system to implement the voltage parameter matching method for the high-precision dual-voltage control attenuator provided in the above embodiments.
[0097] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0098] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0099] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0100] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A voltage parameter matching method of a high-precision dual-voltage control attenuator, characterized in that, include: By performing segmented gradient scanning on the first and second voltage values of the dual-voltage controlled attenuator, the corresponding second voltage sub-intervals and corresponding attenuation value intervals under different first voltage values are obtained, and a mapping relationship is established between the first voltage value, the attenuation value interval, and the second voltage sub-interval. Generate a target attenuation value sequence based on a preset attenuation value range and a preset attenuation value step; For each target attenuation value in the target attenuation value sequence, the target attenuation value interval where the target attenuation value is located is found in the mapping relationship, and the first voltage value corresponding to the target attenuation value interval is determined as the initial first voltage reference value, and the maximum value of the second voltage sub-interval corresponding to the target attenuation value interval is determined as the initial second voltage value; The initial first voltage reference value and the initial second voltage value are input into the dual-voltage controlled attenuator to obtain the real-time attenuation value and voltage standing wave ratio. Based on the relationship between the voltage standing wave ratio and the preset voltage standing wave ratio threshold, the first voltage value or the second voltage value is iteratively adjusted until the absolute value of the difference between the real-time attenuation value measured after adjustment and the target attenuation value does not exceed the preset attenuation deviation threshold, and the measured voltage standing wave ratio does not exceed the preset voltage standing wave ratio threshold. The current first voltage value and the current second voltage value at the time of stopping adjustment are determined as the voltage parameter group of the target attenuation value.
2. The method of claim 1, wherein, By performing piecewise gradient scanning on the first and second voltage values of the dual-voltage controlled attenuator, the corresponding second voltage sub-intervals and corresponding attenuation value intervals for different first voltage values are obtained, specifically including: Set a first scan range and a first scan step for a first voltage value, and a second scan range and a second scan step for a second voltage value. Traverse within the first scan range of the first voltage value according to the first scan step to obtain multiple first voltage values. For each of the first voltage values, the second scanning step is used to traverse the second scanning range of the second voltage value, and the attenuation measurement value and voltage standing wave ratio measurement value corresponding to each combination of the first voltage value and the second voltage value are measured. The combination of the first voltage value and the second voltage value corresponding to the preset attenuation value range and the voltage standing wave ratio (VSWR) measurement value not exceeding the preset VSWR threshold is retained. The continuous second voltage values retained under each first voltage value are defined as the second voltage sub-interval, and the range of attenuation measurement values corresponding to the second voltage sub-interval is defined as the attenuation value interval.
3. The method of claim 1, wherein, Based on the relationship between the voltage standing wave ratio (VSWR) and a preset VSWR threshold, the first voltage value or the second voltage value is iteratively adjusted until the absolute value of the difference between the real-time attenuation value measured after adjustment and the target attenuation value is within a preset attenuation deviation threshold, and the measured VSWR is within the preset VSWR threshold. Specifically, this includes: The initial first voltage reference value and the initial second voltage value are input into the dual-voltage control attenuator to obtain the current attenuation value, and the current attenuation deviation value between the current attenuation value and the target attenuation value is calculated. When the voltage standing wave ratio is not less than the preset voltage standing wave ratio threshold, the first voltage value is adjusted according to the preset first adjustment step and the preset first adjustment direction to obtain the adjusted first voltage value; The adjusted first voltage value and the second voltage value are input into the dual-voltage control attenuator to obtain the adjusted real-time attenuation value. The absolute value of the difference between the adjusted real-time attenuation value and the target attenuation value is calculated to obtain the first adjusted attenuation deviation value. When the first adjusted attenuation deviation value is greater than the current attenuation deviation value, the preset first adjustment direction is switched to the opposite direction, and the first voltage value is continuously compensated and adjusted multiple times based on the switched direction. When the voltage standing wave ratio is less than the preset voltage standing wave ratio threshold, the second voltage value is adjusted.
4. The method of claim 3, wherein, Adjusting the second voltage value specifically includes: The second voltage value is adjusted according to the preset second adjustment step and the preset second adjustment direction to obtain the adjusted second voltage value; The first voltage value and the adjusted second voltage value are input into the dual-voltage control attenuator to obtain the adjusted real-time attenuation value. The absolute value of the difference between the adjusted real-time attenuation value and the target attenuation value is calculated to obtain the second adjusted attenuation deviation value. When the second adjusted attenuation deviation value is less than the current attenuation deviation value, the second voltage value is adjusted by maintaining the preset second adjustment direction. When the second adjusted attenuation deviation value is not less than the current attenuation deviation value, the preset second adjustment direction is switched to the opposite direction, and the second voltage value is rolled back. When the voltage standing wave ratio corresponding to the adjusted second voltage value reaches the preset voltage standing wave ratio threshold, or when the adjusted second voltage value reaches the adjustment lower limit, the first voltage value is adjusted according to the preset first adjustment step, and the second voltage value is readjusted based on the adjusted first voltage value.
5. The method of claim 1, wherein, Following the step of determining the voltage parameter set as the target attenuation value, the method further includes: Construct a parameter data table, and input the voltage parameter groups in the parameter data table into the dual-voltage control attenuator in the order of the target attenuation value sequence. Obtain the verification attenuation value and verification voltage standing wave ratio through a vector network analyzer. The parameter data table is used to store the voltage parameter groups corresponding to each target attenuation value in the target attenuation value sequence. Calculate the absolute value of the verification attenuation deviation between the verification attenuation value and the corresponding target attenuation value; If the absolute value of the verification attenuation deviation does not exceed the preset attenuation deviation threshold, and the verification voltage standing wave ratio is less than the preset voltage standing wave ratio threshold, then the voltage parameter group corresponding to the current target attenuation value is determined to be a qualified parameter group. If the absolute value of the verification attenuation deviation exceeds the preset attenuation deviation threshold, or the verification voltage standing wave ratio is not less than the preset voltage standing wave ratio threshold, then the voltage parameter group corresponding to the current target attenuation value is determined to be an abnormal parameter group.
6. The method of claim 5, wherein, After the step of determining the voltage parameter group corresponding to the current target attenuation value as an abnormal parameter group, the method further includes: Obtain the adjacent target attenuation values in the target attenuation value sequence to which the current target attenuation value belongs to the abnormal parameter group, and retrieve the qualified voltage parameter group corresponding to the adjacent target attenuation value from the parameter data table as the reference voltage parameter group; The first voltage value and the second voltage value in the reference voltage parameter group are respectively determined as the optimized first voltage reference value and the optimized second voltage initial value. The initial first voltage reference value and the initial second voltage value are replaced, and the first voltage value or the second voltage value is iteratively adjusted again. When the absolute value of the difference between the real-time attenuation value measured after adjustment and the current target attenuation value does not exceed the preset attenuation deviation threshold, and the measured voltage standing wave ratio does not exceed the preset voltage standing wave ratio threshold, the first voltage value and the second voltage value at the time of stopping adjustment are determined as the optimized qualified voltage parameter group and updated to the parameter data table.
7. The method of claim 6, wherein, After the step of updating the parameter data table, the method further includes: If the optimized qualified voltage parameter set does not exist, retrieve the qualified voltage parameter set corresponding to the upper and lower adjacent target attenuation values of the current target attenuation value from the parameter data table; Calculate the first deviation between the measured attenuation value generated by the qualified voltage parameter group corresponding to the upper adjacent target attenuation value and the current target attenuation value, and the second deviation between the measured attenuation value generated by the qualified voltage parameter group corresponding to the lower adjacent target attenuation value and the current target attenuation value; Select the qualified voltage parameter set corresponding to the minimum value of the first deviation and the second deviation as the final recorded parameter set of the current target attenuation value; All qualified voltage parameter groups, optimized qualified voltage parameter groups, and final recorded parameter groups in the parameter data table are integrated and verified across the entire range according to the target attenuation value sequence. The voltage parameter groups that pass the verification are determined as the final voltage parameter groups.
8. A voltage parameter matching system, characterized by, Includes one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the voltage parameter matching system to perform the method as described in any one of claims 1-7.
9. A computer-readable storage medium comprising instructions, characterized in that, When the computer instructions are executed on the voltage parameter matching system, the voltage parameter matching system performs the method as described in any one of claims 1-7.
10. A computer program product comprising computer programs / instructions, characterized in that, When the computer program / instructions are run on the voltage parameter matching system, the voltage parameter matching system performs the method as described in any one of claims 1-7.
