Intelligent power amplifier calibration method, system and device

By real-time monitoring and analyzing the voltage and current waveforms of the intelligent amplifier, detecting its load impedance and audio distortion, and performing gain adaptive adjustment and frequency response optimization, the problem that the existing intelligent amplifier calibration methods cannot quickly and accurately reflect the amplifier performance in a variety of environments, achieving efficient and stable audio output.

CN119255182BActive Publication Date: 2025-03-11深圳远虑科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411776728.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-03-11
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

The existing intelligent amplifier calibration methods cannot quickly and accurately reflect the changes in amplifier performance under changing working environments and load conditions, resulting in the overall efficiency and audio quality of the intelligent amplifier system being affected.

Method used

By monitoring the voltage and current waveform of the power amplifier in real time, performing load impedance response analysis, obtaining the amplifier output audio signal for spectrum analysis, detecting the degree of audio distortion, and using this data to perform gain adaptive adjustment and frequency response optimization, ultimately realizing intelligent feedback calibration.

Benefits of technology

It realizes rapid and accurate calibration under variable environments and load conditions, improves the overall efficiency and audio quality of the intelligent amplifier system, and ensures the stability and quality of the audio output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255182B_ABST
    Figure CN119255182B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of audio processing technology, and in particular to an intelligent power amplifier calibration method, system and device. The method comprises the following steps: by real-time monitoring of the corresponding voltage and current waveforms of the power amplifier and performing load impedance response analysis, the load impedance of the power amplifier is obtained; the power amplifier output audio signal is obtained and spectrum analysis and audio distortion detection are performed to obtain the degree of distortion of the power amplifier output audio; based on the degree of distortion of the power amplifier output audio, the gain of the power amplifier is adaptively adjusted to obtain the power amplifier output adaptive adjustment gain; the frequency response of the power amplifier output audio spectrum corresponding to different frequency bands is optimized to generate the power amplifier response optimized output frequency corresponding to different frequency bands; based on the power amplifier output adaptive adjustment gain and the power amplifier response optimized output frequency corresponding to different frequency bands, the power amplifier is intelligently feedback calibrated to generate an intelligent calibration power amplifier. The present invention can improve the overall performance and user experience of the power amplifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio processing, and in particular to an intelligent power amplifier calibration method, system and device. Background Art

[0002] Smart amplifiers (power amplifiers) are widely used in audio systems, communication equipment, radio and television, in-car entertainment and other fields. The calibration of the amplifier is mainly to adjust its operating parameters to ensure that the quality and power of the output signal meet the design requirements and minimize distortion, noise and energy waste. Modern smart amplifiers are usually equipped with built-in sensors, digital signal processors (DSP) and automatic control systems, which can make real-time adjustments under different working conditions. However, the current smart amplifier calibration methods still have problems with calibration accuracy and response speed. Especially under changing working environments and load conditions, the existing calibration technology often cannot quickly and accurately reflect the changes in amplifier performance, thus affecting the overall efficiency and audio quality of the smart amplifier system. Summary of the invention

[0003] Based on this, it is necessary for the present invention to provide a smart power amplifier calibration method, system and device to solve at least one of the above technical problems.

[0004] To achieve the above object, a smart power amplifier calibration method includes the following steps:

[0005] Step S1: monitoring the corresponding voltage and current waveforms of the power amplifier in real time, and analyzing the load impedance response of the power amplifier based on the voltage and current waveforms to obtain the load impedance of the power amplifier;

[0006] Step S2: obtaining an audio signal output by the power amplifier, and performing spectrum analysis on the audio signal output by the power amplifier to generate an audio spectrum output by the power amplifier; obtaining a corresponding external noise signal of the power amplifier by designing a simulation condition of the working environment of the power amplifier, and performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of distortion of the audio output by the power amplifier;

[0007] Step S3: adaptively adjusting the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain an adaptively adjusted gain of the power amplifier output; optimizing the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate power amplifier response optimized output frequencies corresponding to different frequency bands;

[0008] Step S4: Based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands, the power amplifier is intelligently feedback calibrated to generate an intelligently calibrated power amplifier.

[0009] Further, step S1 includes the following steps:

[0010] Step S11: Setting the same sampling frequency of 40 MHz by the voltage probe and the current probe to synchronously trigger the real-time monitoring of the corresponding voltage and current waveforms during the output process of the power amplifier, so as to generate the voltage and current waveforms corresponding to the power amplifier;

[0011] Step S12: Perform time domain filtering on the voltage and current waveforms corresponding to the power amplifier to obtain time domain filtering waveforms corresponding to the power amplifier voltage and current, wherein the power amplifier voltage and power amplifier current at each time point in the time domain filtering waveform are specifically:

[0012] ;

[0013] ;

[0014] in, is the time point variable parameter, For at time point The power amplifier voltage on For at time point The power amplifier current on is the amplifier gain, is the input signal amplitude, is the signal angular frequency, is the signal phase, For the amplifier load;

[0015] Step S13: performing point-by-point power multiplication calculation of the voltage and current on the time-domain filtered waveforms corresponding to the power amplifier voltage and current, so as to obtain the instantaneous output power waveforms corresponding to the power amplifier at different time points;

[0016] Step S14: performing power reverse transfer response on the instantaneous output power waveforms corresponding to the power amplifier at different time points to generate ideal response waveforms corresponding to the power amplifier voltage and current;

[0017] Step S15: performing load impedance response calculation on the time-domain filtered waveform corresponding to the power amplifier voltage and current based on the ideal response waveform corresponding to the power amplifier voltage and current to obtain the power amplifier load impedance.

[0018] Further, step S14 includes the following steps:

[0019] Step S141: dynamically analyzing the instantaneous amplitude and phase of the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points;

[0020] Step S142: performing amplitude modulation response modeling and analysis on the corresponding instantaneous output power waveform based on the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an amplifier instantaneous output power response model;

[0021] Step S143: Based on the instantaneous output power response model of the power amplifier, power reverse mapping is performed on the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the power amplifier output power reverse transfer model coefficients;

[0022] Step S144: performing reverse compensation correction and frequency domain characteristic reconstruction on the voltage and current waveforms corresponding to the power amplifier according to the power amplifier output power reverse transfer model coefficient, so as to generate a power amplifier reverse transfer voltage and current spectrum reconstruction diagram;

[0023] Step S145: performing phase matching and amplitude adjustment on the power amplifier reverse transfer voltage and current spectrum reconstruction diagram according to the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an ideal response waveform corresponding to the power amplifier voltage and current.

[0024] Further, step S145 includes the following steps:

[0025] The instantaneous output amplitude and instantaneous output phase of the power amplifier at different time points are subjected to dynamic amplitude-phase analysis to generate an instantaneous amplitude-phase response function of the power amplifier, wherein the instantaneous amplitude-phase response function of the power amplifier is specifically:

[0026] ;

[0027] in, For at time point The instantaneous amplitude-phase response function of the power amplifier on For at time point The corresponding instantaneous output amplitude is, is the total number of time points in the time domain, is the item index at the time point, The power amplifier is Time point The corresponding nonlinear correction factor is, is an imaginary unit, For at time point The corresponding instantaneous output phase is, For at time point The corresponding phase error compensation;

[0028] Based on the instantaneous amplitude-phase response function of the power amplifier, the power amplifier reverse transfer voltage and current spectrum reconstruction diagram is decomposed in the power amplifier frequency domain to obtain the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current;

[0029] Based on the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current, the corresponding amplitude and phase in the power amplifier reverse transfer voltage and current spectrum reconstruction diagram are corrected for spectrum mismatch and phase reconstruction to generate an amplifier reverse transfer voltage and current spectrum optimization diagram;

[0030] According to the power amplifier reverse transfer voltage and current spectrum optimization diagram, amplitude adjustment and phase coupling tuning are performed to obtain the power amplifier reverse transfer voltage and current spectrum coupling tuning waveform;

[0031] The power amplifier reverse transfer voltage and current spectrum coupling tuning waveform is reversely synthesized in time domain to generate the ideal response waveform corresponding to the power amplifier voltage and current.

[0032] Further, step S15 includes the following steps:

[0033] Step S151: performing waveform deviation comparison analysis on the time domain filtering waveforms corresponding to the power amplifier voltage and current based on the ideal response waveforms corresponding to the power amplifier voltage and current, and obtaining the deviation between the actual waveforms of the power amplifier voltage and current and the ideal waveforms;

[0034] Step S152: performing frequency domain distribution response analysis on the deviation between the actual waveform and the ideal waveform of the power amplifier voltage and current to obtain the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies;

[0035] Step S153: performing load impedance target estimation on the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies to obtain the power amplifier load impedance frequency response target;

[0036] Step S154: performing impedance response optimization calculation on the power amplifier load impedance frequency response target to obtain the power amplifier load impedance.

[0037] Further, step S2 includes the following steps:

[0038] Step S21: obtaining an audio signal output by the power amplifier;

[0039] Step S22: performing spectrum analysis on the power amplifier output audio signal to generate the power amplifier output audio spectrum;

[0040] Step S23: performing a working environment simulation design on the power amplifier to generate a working environment simulation condition for the power amplifier;

[0041] Step S24: monitoring the working environment noise response of the power amplifier based on the working environment simulation conditions of the power amplifier to obtain the corresponding external noise signal of the power amplifier, including noise, echo and room sound;

[0042] Step S25: performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of audio distortion of the output by the power amplifier.

[0043] Further, step S25 includes the following steps:

[0044] Step S251: performing spatiotemporal noise suppression on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier to obtain the spatiotemporal noise suppression spectrum of the audio spectrum output by the power amplifier;

[0045] Step S252: performing load impedance compensation processing on the audio spectrum output by the power amplifier based on the load impedance of the power amplifier to obtain a spectrum after the load impedance of the power amplifier output is adjusted;

[0046] Step S253: performing spectrum difference analysis based on the spatiotemporal suppression spectrum of the power amplifier output audio noise and the spectrum after the power amplifier output load impedance is adjusted, so as to obtain the difference characteristics of the audio distortion components between the noise suppression spectrum and the impedance adjustment spectrum;

[0047] Step S254: performing audio distortion index statistical analysis on the audio noise spatiotemporal suppression spectrum of the power amplifier output and the spectrum after the power amplifier output load impedance is adjusted based on the audio distortion component difference characteristics between the noise suppression and impedance adjustment spectrum, to obtain the audio total harmonic distortion of the power amplifier output and the audio intermodulation distortion of the power amplifier output;

[0048] Step S255: performing audio distortion measurement calculation on the power amplifier output audio spectrum based on the power amplifier output audio total harmonic distortion and the power amplifier output audio intermodulation distortion to obtain the power amplifier output audio distortion degree.

[0049] Further, step S3 includes the following steps:

[0050] Step S31: performing a distortion time-varying statistical analysis on the power amplifier based on the degree of distortion of the power amplifier output audio, and obtaining a distortion time-varying characteristic of the power amplifier output audio;

[0051] Step S32: Adaptively adjust the gain of the power amplifier using proportional-integral-differential control based on the time-varying characteristics of the audio distortion output by the power amplifier to obtain an adaptively adjusted gain of the power amplifier output;

[0052] Step S33: performing frequency domain distribution analysis on the power amplifier output audio spectrum to obtain the power amplifier output frequency domain distribution characteristics; performing adaptive frequency band division on the power amplifier output audio spectrum based on the power amplifier output frequency domain distribution characteristics to obtain different power amplifier output audio frequency bands;

[0053] Step S34: performing frequency factor response calculation between different power amplifier output audio frequency bands to obtain power amplifier output frequency response factors corresponding to different frequency bands;

[0054] Step S35: optimizing the frequency responses of the corresponding power amplifier output audio frequency bands based on the power amplifier output frequency response factors corresponding to the different frequency bands, so as to generate power amplifier response optimized output frequencies corresponding to the different frequency bands.

[0055] Furthermore, the present invention also provides an intelligent power amplifier calibration system, which is used to execute the intelligent power amplifier calibration method as described above, and the intelligent power amplifier calibration system includes:

[0056] A power amplifier load impedance response analysis module is used to monitor the corresponding voltage and current waveforms of the power amplifier in real time, and perform load impedance response analysis on the power amplifier based on the voltage and current waveforms to obtain the power amplifier load impedance;

[0057] The power amplifier output audio distortion detection module is used to obtain the power amplifier output audio signal and perform spectrum analysis on the power amplifier output audio signal to generate the power amplifier output audio spectrum; obtain the corresponding power amplifier external noise signal by designing the power amplifier working environment simulation conditions, and perform audio distortion detection on the power amplifier output audio spectrum based on the power amplifier external noise signal and the power amplifier load impedance, so as to obtain the power amplifier output audio distortion degree;

[0058] The power amplifier parameter adaptive adjustment and optimization module is used to adaptively adjust the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain the power amplifier output adaptive adjustment gain; optimize the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate the power amplifier response optimized output frequency corresponding to different frequency bands;

[0059] The power amplifier intelligent feedback calibration module is used to perform intelligent feedback calibration on the power amplifier based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands to generate an intelligent calibration power amplifier.

[0060] Furthermore, the present invention also provides an intelligent power amplifier calibration device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, for executing the intelligent power amplifier calibration method as described above.

[0061] Beneficial effects of the present invention:

[0062] 1. Compared with the prior art, the intelligent power amplifier calibration method proposed in the present invention has the beneficial effect that by synchronously setting voltage and current probes at the output end of the power amplifier, setting the same sampling frequency to 40 MHz, and monitoring the voltage and current output of the power amplifier in real time through synchronous triggering, the instantaneous changes of the voltage and current waveforms can be accurately captured. The synchronous triggering ensures the time alignment of the voltage and current waveforms, avoids signal mismatch caused by different sampling frequencies or different triggering mechanisms, and can obtain very detailed time domain signal characteristics, so that the output characteristics of the power amplifier (such as gain, distortion, etc.) in the subsequent analysis are more accurate, which provides important experimental data support for the performance optimization of the power amplifier system. At the same time, by analyzing the load impedance response of the power amplifier based on the voltage and current waveforms, the matching degree between the power amplifier and the load can be effectively evaluated. Impedance mismatch leads to signal reflection, power loss, thermal damage and other performance degradation problems. Therefore, accurate calculation of load impedance can help analyze the impact of load changes on the performance of the power amplifier and provide a reference for the optimization design of the power amplifier to ensure that it can efficiently and stably drive the load equipment in practical applications. Especially for high-frequency power amplifiers that require high efficiency and high reliability (such as power amplifiers in communication systems), this calculation can effectively prevent potential power amplifier failures, thereby improving the overall performance and safety of smart power amplifiers. Secondly, by obtaining the output audio signal of the power amplifier, a real data source can be provided for the subsequent spectrum analysis, distortion detection and noise response monitoring. The key to this step is to provide a high-quality, lossless signal foundation to ensure that the data analyzed later reflects the actual system performance and help engineers identify the performance of the power amplifier under different working conditions. By performing spectrum analysis on the audio signal output by the power amplifier, it can reveal the intensity distribution of each frequency component in the audio signal output by the power amplifier. In the audio system, spectrum analysis helps to evaluate the quality of the output signal of the power amplifier, and can intuitively display the amplitude changes of each frequency point in the frequency range, thereby helping engineers evaluate the clarity, balance and potential distortion of the audio signal of the power amplifier. This can reveal whether there is an unbalanced frequency response or over-emphasis on certain frequency bands, and promptly discover abnormal behavior in the output signal of the power amplifier. Especially during audio debugging and frequency equalization adjustment, through detailed spectrum diagrams, fine adjustments can be made to different frequency bands to ensure that the output audio signal is more balanced and natural.By designing the simulation conditions of the power amplifier working environment, the corresponding external noise signals of the power amplifier are obtained. These noises come from the power supply, electromagnetic interference, external environment or room reflection, etc. By monitoring the noise response of the power amplifier working environment, the real external noise signals can be obtained, including noise, echo and room sound, etc. These factors have an adverse effect on the audio output of the power amplifier. The key to this step is to be able to comprehensively evaluate the performance of the power amplifier in a complex environment, identify the degree of interference of environmental noise on the signal, and provide a basis for subsequent noise suppression or echo elimination. Noise response monitoring helps to improve the anti-interference ability of the power amplifier system, reduce the pollution of external noise to the audio signal, and ensure that the final output sound quality is clearer. Audio distortion detection is also performed on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier. Audio distortion is caused by multiple factors, including nonlinear distortion of the power amplifier, interference from environmental noise, changes in load impedance, etc. By combining the external noise signal of the power amplifier with the load impedance information of the power amplifier, distortion detection is performed on the audio spectrum output by the power amplifier, so that the degree of audio distortion of the power amplifier under specific working conditions can be accurately evaluated. The key to this step is to provide strong support for the performance optimization of the power amplifier. Distortion detection can reveal undesirable harmonics, overload or other distortion components in the output of the power amplifier, thereby helping engineers adjust the design or working parameters of the power amplifier, reduce audio distortion, and improve the fidelity of the audio signal. By comparing the degree of distortion under different load conditions, the adaptability of the power amplifier under different working conditions can be evaluated to ensure that it can provide clear and true sound quality in actual applications. It can quickly and accurately reflect changes in the performance of the power amplifier, while optimizing the working performance of the power amplifier, thereby avoiding unnecessary audio distortion. Then, by adaptively adjusting the gain of the power amplifier based on the degree of audio distortion at the power amplifier output, precise control of the power amplifier gain can be achieved to reduce distortion and improve the quality of the output signal. The PID controller dynamically adjusts the gain through three control parameters (proportional, integral, and differential): the proportional part ensures instant adjustment based on the current distortion level, the integral part compensates for the long-term accumulated distortion error, and the differential part predicts future distortion trends and responds in advance. Through PID control, the gain can be automatically adjusted according to the distortion characteristics of the power amplifier under different working conditions to maintain the optimal state of the power amplifier output audio signal. This dynamic adjustment can effectively avoid the excessive distortion problem caused by fixed gain settings in traditional power amplifiers, and ensure the stability of sound quality during long-term operation.The frequency response of the power amplifier output audio spectrum is optimized for different frequency bands, so as to achieve fine adjustment of the power amplifier output frequency response. The goal of frequency response optimization is to minimize the mutual interference between frequency bands and optimize the gain of each frequency band, so that the output of the power amplifier can maintain high quality and low distortion in the entire spectrum. Frequency response optimization is not just a simple gain adjustment, but also involves the adjustment of parameters such as phase and delay, so as to improve the clarity and dynamic range of the audio signal, so that the audio output is always maintained in the optimal working state, thereby greatly enhancing the listening experience of the smart power amplifier. Finally, by performing intelligent feedback calibration on the power amplifier based on the adaptive gain adjustment of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands, it is possible to perform intelligent feedback calibration by combining adaptive gain adjustment and frequency band optimization, so that closed-loop control can be achieved in the entire intelligent power amplifier system, and the working status of the power amplifier can be monitored and adjusted in real time to ensure that it always remains at the optimal working point. This process will automatically perform fine-tuning based on the actual performance of the power amplifier output audio, as well as changes in the external environment and load. This can not only optimize the sound quality, but also effectively reduce the errors caused by manual adjustments, thus providing more stable and high-quality audio output. Through the implementation of this technology, the power amplifier can respond to changes under different environmental conditions more intelligently and automatically, greatly improving the applicability, reliability and performance of the intelligent power amplifier during long-term use, thereby effectively solving the problems of power amplifier calibration accuracy and response speed.

[0063] 2. The intelligent power amplifier calibration system proposed in the present invention is composed of a power amplifier load impedance response analysis module, a power amplifier output audio distortion detection module, a power amplifier parameter adaptive adjustment and optimization module, and a power amplifier intelligent feedback calibration module. It can implement any intelligent power amplifier calibration method described in the present invention, and is used to combine the operations between computer programs running on each module to implement the intelligent power amplifier calibration method. The internal structures of the system cooperate with each other, which can greatly reduce duplication of work and manpower investment, and can quickly and effectively provide a more accurate and efficient intelligent power amplifier calibration process, thereby simplifying the operation process of the intelligent power amplifier calibration system. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:

[0065] Figure 1 A schematic diagram of the steps of the intelligent power amplifier calibration method of the present invention;

[0066] Figure 2 for Figure 1 Detailed step flow diagram of step S1;

[0067] Figure 3 for Figure 2Detailed step flow chart of step S15 in FIG. DETAILED DESCRIPTION

[0068] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.

[0069] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.

[0070] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0071] To achieve this, please refer to Figures 1 to 3 The present invention provides a smart power amplifier calibration method, the method comprising the following steps:

[0072] Step S1: monitoring the corresponding voltage and current waveforms of the power amplifier in real time, and analyzing the load impedance response of the power amplifier based on the voltage and current waveforms to obtain the load impedance of the power amplifier;

[0073] Step S2: obtaining an audio signal output by the power amplifier, and performing spectrum analysis on the audio signal output by the power amplifier to generate an audio spectrum output by the power amplifier; obtaining a corresponding external noise signal of the power amplifier by designing a simulation condition of the working environment of the power amplifier, and performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of distortion of the audio output by the power amplifier;

[0074] Step S3: adaptively adjusting the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain an adaptively adjusted gain of the power amplifier output; optimizing the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate power amplifier response optimized output frequencies corresponding to different frequency bands;

[0075] Step S4: Based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands, the power amplifier is intelligently feedback calibrated to generate an intelligently calibrated power amplifier.

[0076] In the embodiment of the present invention, please refer to Figure 1 FIG. 1 is a flow chart of the steps of the smart power amplifier calibration method of the present invention. In this example, the smart power amplifier calibration method includes the following steps:

[0077] Step S1: monitoring the corresponding voltage and current waveforms of the power amplifier in real time, and analyzing the load impedance response of the power amplifier based on the voltage and current waveforms to obtain the load impedance of the power amplifier;

[0078] In the embodiment of the present invention, a voltage probe and a current probe are set to ensure that their sampling frequencies are consistent and are synchronized at a sampling frequency of 40 MHz. This operation is implemented through an oscilloscope or a dedicated signal acquisition system to ensure that the sampling clocks of voltage and current are strictly synchronized. The voltage probe is connected to the output end of the power amplifier, and the current probe is installed on the output line of the power amplifier to capture the voltage and current signal waveforms at the output end of the power amplifier in real time, thereby generating the voltage and current waveforms corresponding to the power amplifier. The previously obtained voltage and current waveforms are subjected to time domain filtering. At this time, a low-pass filter or an appropriate band-pass filter is used to process the voltage and current waveforms to filter out high-frequency noise or unnecessary frequency band signals. The cutoff frequency of the filter needs to be determined based on the operating frequency range of the power amplifier. The voltage and current waveforms will present a smoother time domain response, removing high-frequency components introduced by system noise, signal interference and other factors. The signal waveform after time domain filtering is specifically as follows: ,in, is the time point variable parameter, For at time point The power amplifier voltage on For at time point The power amplifier current on is the amplifier gain, is the input signal amplitude, is the signal angular frequency, is the signal phase, At the same time, the power of the voltage and current waveforms after time domain filtering is calculated point by point. First, according to the sampling values ​​of the voltage and current waveforms at the same time, the mathematical formula Calculate the instantaneous output power at each time point. The calculated instantaneous power waveform will describe the output power change of the power amplifier at different time points, and process the power reverse transfer response by multiplying the instantaneous output power waveform of the power amplifier at different time points obtained by the previous point-by-point multiplication. The power reverse transfer response is a reverse calculation process, the purpose of which is to recover the ideal voltage and current response waveform from the power waveform. This process can be achieved by a known transfer function or model of the power amplifier. The specific method is to obtain the corresponding voltage and current waveforms through inverse operations based on the relationship between power and voltage and current, combined with the characteristics of the power amplifier. The reverse transfer calculation can use numerical solution methods, such as the least squares method or other optimization algorithms, to obtain the ideal response waveform corresponding to the voltage and current by fitting or solving the model parameters. Then, the load impedance response is calculated based on the ideal response waveform and the actual time-domain filtered voltage and current waveform. The load impedance is one of the key parameters of the power amplifier output characteristics and can reflect the matching degree between the power amplifier and the load. The method for calculating the load impedance is to compare the difference between the ideal response waveform and the actual measured waveform, based on the voltage and current waveform of the power amplifier, and use Ohm's law Or a more complex impedance model is used to calculate the load impedance. In this process, taking into account factors such as the phase difference and amplitude change of the output voltage and current of the power amplifier, the calculation can be performed by minimizing the error to obtain an accurate load impedance value. The calculation result of the load impedance can help adjust the working state of the power amplifier or optimize its matching with the load, and finally obtain the load impedance of the power amplifier.

[0079] Step S2: obtaining an audio signal output by the power amplifier, and performing spectrum analysis on the audio signal output by the power amplifier to generate an audio spectrum output by the power amplifier; obtaining an external noise signal of the power amplifier, and performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of distortion of the audio output by the power amplifier;

[0080] In the embodiment of the present invention, by connecting the output end of the power amplifier to a suitable measuring device, such as a high-quality oscilloscope or audio analyzer, an audio signal is generated by the output end of the power amplifier and transmitted to the analyzer through an audio line. In order to ensure the accuracy of the measurement result, the measuring device used should have a high-precision frequency response to ensure that the full-band audio signal can be captured, thereby obtaining the power amplifier output audio signal. After obtaining the audio signal output by the power amplifier, the signal is subjected to spectrum analysis. To this end, a spectrum analyzer is used to perform Fourier transform (FFT) on the signal. The spectrum analyzer can accurately convert the signal from the time domain to the frequency domain, and display the amplitude distribution of the power amplifier output signal at different frequencies, ensuring that all important signal features from low frequency to high frequency can be clearly displayed. The spectrum diagram needs to be recorded to generate the power amplifier output audio spectrum. At the same time, by simulating the performance of the power amplifier in the actual working environment, simulation software (such as COMSOL, ANSYS, etc.) can be used to simulate the working conditions of the power amplifier in a specific environment. During the simulation, multiple factors such as the thermal environment, vibration, external electromagnetic interference, and sound propagation characteristics of the power amplifier are considered. The environmental simulation model can set reasonable simulation parameters according to the specifications, workload, and operating environment (such as temperature, humidity, vibration, etc.) of the power amplifier, and monitor the working environment noise response of the power amplifier by combining the previously obtained working environment simulation conditions. According to the simulation data, the environmental parameters of the power amplifier are set, such as temperature, humidity, electromagnetic interference, and external noise sources. These noise sources include background noise, echo, reflected sound in the room, etc. By using special environmental noise monitoring equipment, such as a noise meter or an audio pickup device, the external noise signals generated by the power amplifier when working can be collected, which can accurately capture the changes in noise, echo, and room sound, and through real-time monitoring of the environmental noise signal, the noise performance of the power amplifier under different working conditions can be clearly evaluated, thereby obtaining the corresponding external noise signal of the power amplifier. Then, by combining the previously obtained external noise signal of the power amplifier and the load impedance of the power amplifier, the influence of the noise signal and the load impedance will cause the output audio signal of the power amplifier to be distorted, especially in complex environmental noise conditions, the distortion of the power amplifier will be more obvious, and by comprehensively analyzing the external noise signal, the load impedance of the power amplifier and the output spectrum of the power amplifier, the distortion components in the signal can be identified. Audio distortion detection can be carried out with the help of a high-precision audio analyzer, using different detection indicators, such as total harmonic distortion (THD), intermodulation distortion (IMD) and distortion order, for detailed quantification. Through the analysis of these distortion parameters, the quality of the audio output by the power amplifier can be accurately evaluated, that is, , and finally the degree of audio distortion of the power amplifier output is obtained.

[0081] Step S3: adaptively adjusting the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain an adaptively adjusted gain of the power amplifier output; optimizing the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate power amplifier response optimized output frequencies corresponding to different frequency bands;

[0082] In an embodiment of the present invention, the audio signal output by the power amplifier is collected for real-time analysis. First, a high-precision oscilloscope or spectrum analyzer is used to monitor the output signal of the power amplifier. After the signal is sampled from the output end of the power amplifier, a fast Fourier transform (FFT) method is used for frequency domain analysis, and the distortion degree of the audio signal is quantitatively evaluated through distortion indicators such as total harmonic distortion (THD) and intermodulation distortion (IMD). At the same time, based on the audio distortion degree of the power amplifier output obtained by the previous evaluation, a time-varying statistical analysis is performed on the corresponding power amplifier to calculate the trend and amplitude of the distortion over time, determine the distortion time-varying characteristics of the power amplifier output signal, that is, the proportion, integration and differentiation of the distortion degree over time, and use the power amplifier output distortion time-varying characteristics obtained by the previous analysis as a feedback signal, input Proportional-integral-differential (PID) controller, the PID controller is used to adjust the amplifier gain according to the distortion monitored in real time, so that the audio signal output by the amplifier is kept in the optimal linear state and the distortion is minimized. In the specific implementation, the controller dynamically adjusts the gain value according to the trend and amplitude of the amplifier distortion change. The proportional control part adjusts the gain according to the current distortion amplitude, the integral control part corrects the long-term deviation, and the differential control part predicts the distortion change trend and adjusts the gain in advance to ensure that the audio distortion output by the amplifier is always maintained within a minimum value range, so that when the distortion degree gradually increases, the corresponding gain is reduced, and when the distortion degree gradually decreases, the corresponding gain is increased to ensure the stability and excellence of the output sound quality, thereby obtaining the amplifier output adaptive adjustment gain. At the same time, by performing frequency domain analysis on the audio signal output by the power amplifier, a high-precision spectrum analyzer is used to perform fast Fourier transform (FFT) processing on the audio signal to obtain the frequency domain distribution of the signal. The analyzer will output the relationship between frequency and amplitude to form a spectrum diagram. Based on the spectrum diagram, the distribution characteristics of the power amplifier output signal in different frequency ranges are further extracted, such as the frequency distribution of the main frequency band, the intensity of the harmonic components, and the noise distribution in the spectrum, and the power amplifier output audio spectrum is adaptively divided into frequency bands. In the specific operation, firstly, according to the distribution of the frequency in the spectrum, a suitable threshold or sampling interval is set, and the spectrum is divided into multiple frequency bands using spectrum analysis methods (such as short-time Fourier transform, continuous wavelet transform, etc.). The basis for the division of these frequency bands includes the main frequency band, harmonic components, noise distribution, etc. of the audio signal. In addition, according to the adaptive frequency band division results obtained previously, the frequency response calculation is performed for each frequency band. Specifically, the amplitude response and phase response of each frequency band are calculated using digital signal processing technology to obtain the power amplifier output frequency response factor corresponding to the frequency band. This process is usually achieved through system identification technology or interpolation methods. The frequency response curve is fitted in each frequency band, and the change law of the frequency response factor is analyzed, especially the relationship between the amplitude response and the phase response. If the response of a certain frequency band has a large deviation, it is necessary to further optimize the power amplifier parameters of the frequency band, and apply the frequency response factor to the corresponding frequency band adjustment to ensure that the power amplifier can stably output high-quality audio signals in different frequency bands. Then, the frequency response of each frequency band is optimized by using the corresponding power amplifier output frequency response factors between different frequency bands. The optimization goal is to maximize the gain, phase and filter characteristics of the power amplifier. The signal quality within the frequency band is improved and a smooth transition between frequency bands is ensured. If the distortion or attenuation of a certain frequency band is found to be too large, compensation is made by adjusting the gain of the corresponding frequency band or by designing a digital filter. For the high-frequency band, a high-pass filter is required for attenuation control; for the low-frequency band, a low-pass filter is used to reduce the impact of low-frequency noise. By setting a precise control algorithm, the power amplifier gain and frequency response are adjusted in real time to ensure that high-fidelity audio signals can be output in all frequency bands. This process continues through a feedback adjustment mechanism until the frequency response of each frequency band reaches the preset optimization standard, and finally optimizes the power amplifier response corresponding to different frequency bands to optimize the output frequency.

[0083] Step S4: Based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands, the power amplifier is intelligently feedback calibrated to generate an intelligently calibrated power amplifier.

[0084] In an embodiment of the present invention, by combining the results of adaptive gain adjustment and frequency band response optimization of the power amplifier output, an intelligent feedback calibration process is started. First, the power amplifier system (including the calibration system and the control system) automatically adjusts the parameters of the power amplifier according to the optimized gain and spectrum response of each frequency band. Specifically, the fine adjustment of the output power and distortion control can be achieved by modifying the power supply voltage of the power amplifier or adjusting the working point of the output stage. In this process, the calibration system will automatically read various parameters of the power amplifier (such as output power, gain value, frequency band response, etc.), and feed these data back to the control system to calibrate the working state of the power amplifier and optimize its performance. In order to ensure that each calibration can adapt to changes in the external environment, dynamic adjustments can be made according to the real-time working state of the power amplifier, and the distortion of the output audio signal can be monitored in real time to ensure the accuracy and stability of the output results. The power amplifier after intelligent feedback calibration will have good audio output characteristics, the distortion is minimized, the spectrum response tends to be balanced, and it can continuously provide high-quality audio output under different working environments, and finally generate an intelligent calibration power amplifier.

[0085] Further, step S1 includes the following steps:

[0086] Step S11: Setting the same sampling frequency of 40 MHz by the voltage probe and the current probe to synchronously trigger the real-time monitoring of the corresponding voltage and current waveforms during the output process of the power amplifier, so as to generate the voltage and current waveforms corresponding to the power amplifier;

[0087] Step S12: Perform time domain filtering on the voltage and current waveforms corresponding to the power amplifier to obtain time domain filtering waveforms corresponding to the power amplifier voltage and current, wherein the power amplifier voltage and power amplifier current at each time point in the time domain filtering waveform are specifically:

[0088] ;

[0089] ;

[0090] in, is the time point variable parameter, For at time point The power amplifier voltage on For at time point The power amplifier current on is the amplifier gain, is the input signal amplitude, is the signal angular frequency, is the signal phase, For the amplifier load;

[0091] Step S13: performing point-by-point power multiplication calculation of the voltage and current on the time-domain filtered waveforms corresponding to the power amplifier voltage and current, so as to obtain the instantaneous output power waveforms corresponding to the power amplifier at different time points;

[0092] Step S14: performing power reverse transfer response on the instantaneous output power waveforms corresponding to the power amplifier at different time points to generate ideal response waveforms corresponding to the power amplifier voltage and current;

[0093] Step S15: performing load impedance response calculation on the time-domain filtered waveform corresponding to the power amplifier voltage and current based on the ideal response waveform corresponding to the power amplifier voltage and current to obtain the power amplifier load impedance.

[0094] As an embodiment of the present invention, refer to Figure 2 As shown, Figure 1 Detailed step flow diagram of step S1 in FIG. 1 , in this embodiment, step S1 includes the following steps:

[0095] Step S11: Setting the same sampling frequency of 40 MHz by the voltage probe and the current probe to synchronously trigger the real-time monitoring of the corresponding voltage and current waveforms during the output process of the power amplifier, so as to generate the voltage and current waveforms corresponding to the power amplifier;

[0096] In an embodiment of the present invention, a voltage probe and a current probe are set to ensure that their sampling frequencies are consistent and are a synchronous sampling frequency of 40 MHz. This operation is achieved through an oscilloscope or a dedicated signal acquisition system to ensure that the sampling clocks of voltage and current are strictly synchronized. The voltage probe is connected to the output end of the power amplifier, and the current probe is installed on the output line of the power amplifier to capture the voltage and current signals at the output end of the power amplifier in real time. Through the synchronous trigger mechanism, the acquisition of voltage and current waveforms can be accurately synchronized to prevent timing disorder of the waveforms. In this way, complete voltage and current waveform data can be obtained, and finally the voltage and current waveforms corresponding to the power amplifier are generated.

[0097] Step S12: Perform time domain filtering on the voltage and current waveforms corresponding to the power amplifier to obtain time domain filtering waveforms corresponding to the power amplifier voltage and current, wherein the power amplifier voltage and power amplifier current at each time point in the time domain filtering waveform are specifically:

[0098] ;

[0099] ;

[0100] in, is the time point variable parameter, For at time point The power amplifier voltage on For at time point The power amplifier current on is the amplifier gain, is the input signal amplitude, is the signal angular frequency, is the signal phase, For the amplifier load;

[0101] In an embodiment of the present invention, the previously obtained voltage and current waveforms are subjected to time domain filtering. At this time, a low-pass filter or an appropriate band-pass filter is used to process the voltage and current waveforms to filter out high-frequency noise or unnecessary frequency band signals. The cutoff frequency of the filter needs to be determined based on the operating frequency range of the power amplifier. Generally, the cutoff frequency of the filter is selected to be slightly higher than the operating frequency bandwidth of the power amplifier. After filtering, the voltage and current waveforms will present a smoother time domain response, and the high-frequency components introduced by factors such as system noise and signal interference are removed, ensuring that the signals obtained in subsequent calculations are more real and accurate, reflecting the real output characteristics of the power amplifier, and finally obtaining the time domain filtering waveforms corresponding to the power amplifier voltage and current, wherein the signal waveform after time domain filtering is specifically: ,in, is the time point variable parameter, For at time point The power amplifier voltage on For at time point The power amplifier current on is the amplifier gain, is the input signal amplitude, is the signal angular frequency, is the signal phase, For the amplifier load.

[0102] Step S13: performing point-by-point power multiplication calculation of the voltage and current on the time-domain filtered waveforms corresponding to the power amplifier voltage and current, so as to obtain the instantaneous output power waveforms corresponding to the power amplifier at different time points;

[0103] In the embodiment of the present invention, the power of the voltage and current waveforms after time domain filtering is calculated point by point. First, according to the sampling values ​​of the voltage waveform and the current waveform at the same time, the mathematical formula is used to calculate the power of the voltage and current waveforms. Calculate the instantaneous output power at each time point. At this time, the units and ranges of voltage and current need to be properly converted to ensure consistency. The calculated instantaneous power waveform will describe the output power changes of the power amplifier at different time points, reflect the dynamic characteristics of the power amplifier, and finally obtain the instantaneous output power waveform corresponding to the power amplifier at different time points.

[0104] Step S14: performing power reverse transfer response on the instantaneous output power waveforms corresponding to the power amplifier at different time points to generate ideal response waveforms corresponding to the power amplifier voltage and current;

[0105] In an embodiment of the present invention, a power reverse transfer response is processed by the instantaneous output power waveform corresponding to the power amplifier at different time points obtained by the previous point-by-point multiplication calculation, wherein the power reverse transfer response is a reverse calculation process, the purpose of which is to recover the ideal voltage and current response waveforms from the power waveform. This process can be achieved by a known transfer function or model of the power amplifier. The specific method is to obtain the corresponding voltage and current waveforms through inverse operations based on the relationship between power and voltage and current, combined with the characteristics of the power amplifier. The reverse transfer calculation can use a numerical solution method, such as the least squares method or other optimization algorithms, to obtain the ideal response waveform by fitting or solving the model parameters. The ideal response waveform will reflect the theoretical output characteristics of the power amplifier, and finally the response generates an ideal response waveform corresponding to the amplifier voltage and current.

[0106] Step S15: performing load impedance response calculation on the time-domain filtered waveform corresponding to the power amplifier voltage and current based on the ideal response waveform corresponding to the power amplifier voltage and current to obtain the power amplifier load impedance.

[0107] In the embodiment of the present invention, the load impedance response calculation is performed based on the ideal response waveform and the actual voltage and current waveforms after time domain filtering. The load impedance is one of the key parameters of the output characteristics of the power amplifier and can reflect the matching degree between the power amplifier and the load. The method for calculating the load impedance is to compare the difference between the ideal response waveform and the actual measured waveform, based on the voltage and current waveforms of the power amplifier, and use Ohm's law to calculate the load impedance. Or a more complex impedance model is used to calculate the load impedance. In this process, the phase difference, amplitude change and other factors of the output voltage and current of the power amplifier are taken into account. The calculation can be performed by minimizing the error to obtain an accurate load impedance value. This calculation process usually requires high-precision mathematical algorithms or dedicated hardware equipment to ensure the accuracy of the calculation results. The calculation results of the load impedance can help adjust the working state of the power amplifier or optimize its matching with the load, and finally obtain the load impedance of the power amplifier.

[0108] Further, step S14 includes the following steps:

[0109] Step S141: dynamically analyzing the instantaneous amplitude and phase of the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points;

[0110] Step S142: performing amplitude modulation response modeling and analysis on the corresponding instantaneous output power waveform based on the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an amplifier instantaneous output power response model;

[0111] Step S143: Based on the instantaneous output power response model of the power amplifier, power reverse mapping is performed on the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the power amplifier output power reverse transfer model coefficients;

[0112] Step S144: performing reverse compensation correction and frequency domain characteristic reconstruction on the voltage and current waveforms corresponding to the power amplifier according to the power amplifier output power reverse transfer model coefficient, so as to generate a power amplifier reverse transfer voltage and current spectrum reconstruction diagram;

[0113] Step S145: performing phase matching and amplitude adjustment on the power amplifier reverse transfer voltage and current spectrum reconstruction diagram according to the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an ideal response waveform corresponding to the power amplifier voltage and current.

[0114] As an embodiment of the present invention, refer to Figure 3 As shown, Figure 2 Detailed step flow diagram of step S14 in the embodiment, step S14 includes the following steps:

[0115] Step S141: dynamically analyzing the instantaneous amplitude and phase of the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points;

[0116] In the embodiment of the present invention, by acquiring the instantaneous power waveform output by the power amplifier at different time points, the output signal of the power amplifier is collected by using a high-precision oscilloscope or a digital signal processor (DSP) to obtain the time series of the output signal. At this time, the power waveform can be derived by calculating the product of voltage and current: that is, the power ,Next, based on the output power of the power amplifier at different time points, the instantaneous amplitude and phase are analyzed respectively. The amplitude analysis can be obtained by calculating the absolute value of the instantaneous power, and the phase is obtained by extracting the phase information of the power waveform. The instantaneous power waveform can be analyzed in the frequency domain by fast Fourier transform (FFT), so as to extract the amplitude and phase of the instantaneous power. ,What is obtained is a set of instantaneous amplitude and instantaneous phase data with time dependence, and finally the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points are obtained.

[0117] Step S142: performing amplitude modulation response modeling and analysis on the corresponding instantaneous output power waveform based on the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an amplifier instantaneous output power response model;

[0118] In an embodiment of the present invention, the amplitude modulation response modeling and analysis of the corresponding instantaneous output power waveform is performed based on the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points obtained previously, so as to model the relationship between the instantaneous amplitude and the instantaneous phase, and use an appropriate mathematical model (such as a linear modulation model or a more complex nonlinear modulation model) to describe the influence of amplitude and phase changes on the power waveform. The model should be able to accurately represent the dynamic response characteristics of the output power with amplitude and phase changes. In the implementation process, numerical methods such as the least squares method or the optimization algorithm are used to fit the dynamic change process of the power waveform, so as to obtain the instantaneous power response model of the power amplifier. The key to this process is to verify and adjust the model through systematic experimental data to ensure that the model can accurately describe the instantaneous power change characteristics of the power amplifier output, and finally respond to generate the instantaneous output power response model of the power amplifier.

[0119] Step S143: Based on the instantaneous output power response model of the power amplifier, power reverse mapping is performed on the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the power amplifier output power reverse transfer model coefficients;

[0120] In an embodiment of the present invention, the corresponding instantaneous output power waveform is reversely mapped and derived by combining the instantaneous output power response model of the power amplifier generated by the previous response to obtain the output power reverse transfer model coefficient of the power amplifier. First, according to the previously obtained instantaneous power response model, the power waveform is reversely derived using the inverse solution method. This process needs to consider the nonlinear behavior and time-varying characteristics of the power amplifier. Therefore, the reverse mapping needs to adopt numerical optimization technology, such as gradient descent method or Newton method, to minimize the error of the reverse mapping of the power waveform. The reverse mapping process is to reversely derive the voltage and current waveforms from the output power, and then combine the linear or nonlinear relationship in the model to gradually derive the output power reverse transfer model coefficients of the power amplifier. These coefficients can represent the voltage and current responses of the power amplifier during the power transfer process, and finally obtain the output power reverse transfer model coefficients of the power amplifier.

[0121] Step S144: performing reverse compensation correction and frequency domain characteristic reconstruction on the voltage and current waveforms corresponding to the power amplifier according to the power amplifier output power reverse transfer model coefficient, so as to generate a power amplifier reverse transfer voltage and current spectrum reconstruction diagram;

[0122] In an embodiment of the present invention, the voltage and current waveforms of the power amplifier are reversely compensated and corrected based on the power amplifier output power reverse transfer model coefficients obtained based on the previous analysis, and the frequency domain characteristics are reconstructed. First, the reverse transfer model coefficients obtained previously are applied to the voltage and current waveforms of the power amplifier to perform time domain compensation correction. The key to this step is to correct the voltage and current waveforms of the power amplifier output signal through the reverse transfer coefficients to eliminate errors caused by nonlinear and time-varying characteristics. Through this compensation process, voltage and current waveforms that are closer to the ideal can be obtained, and the compensated voltage and current waveforms are converted to the frequency domain using Fourier transform to obtain corresponding spectrum information. By comparing the ideal spectrum with the actual spectrum, the reverse compensation process is further adjusted to ensure that the frequency domain characteristics of the power amplifier output signal are effectively reconstructed to meet the desired performance requirements, and finally generate a reconstruction diagram of the amplifier reverse transfer voltage and current spectrum.

[0123] Step S145: performing phase matching and amplitude adjustment on the power amplifier reverse transfer voltage and current spectrum reconstruction diagram according to the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an ideal response waveform corresponding to the power amplifier voltage and current.

[0124] In an embodiment of the present invention, by further performing phase matching and amplitude adjustment on the reverse transmission voltage and current spectrum of the power amplifier based on the changes of the instantaneous output amplitude and instantaneous output phase obtained by the previous analysis, the ideal response waveform of the amplifier voltage and current is generated in response. In the specific operation, the reverse transmission voltage and current spectrum are firstly phase-adjusted according to the instantaneous amplitude and phase data extracted previously. The phase matching can correct the deviation by comparing the phase deviation in the spectrum and using a phase adjustment algorithm (such as phase compensation technology or cross-correlation method). The amplitude of the output voltage and current spectrum of the power amplifier is adjusted based on the amplitude adjustment algorithm to ensure that they are consistent with the ideal response. The adjustment method can use adaptive filtering or optimization algorithms to refine the amplitude adjustment process to ensure that the amplitude of each frequency component reaches the predetermined target. After phase matching and amplitude adjustment, the voltage and current waveforms obtained are the ideal response waveforms of the power amplifier, ensuring that it can provide the best performance in practical applications, and finally generating the ideal response waveforms corresponding to the amplifier voltage and current, wherein the corresponding ideal response waveform is specifically: .

[0125] Further, step S145 includes the following steps:

[0126] The instantaneous output amplitude and instantaneous output phase of the power amplifier at different time points are subjected to dynamic amplitude-phase analysis to generate an instantaneous amplitude-phase response function of the power amplifier, wherein the instantaneous amplitude-phase response function of the power amplifier is specifically:

[0127] ;

[0128] in, For at time point The instantaneous amplitude-phase response function of the power amplifier on For at time point The corresponding instantaneous output amplitude is, is the total number of time points in the time domain, is the item index at the time point, The power amplifier is Time point The corresponding nonlinear correction factor is, is an imaginary unit, For at time point The corresponding instantaneous output phase is, For at time point The corresponding phase error compensation;

[0129] The present invention obtains a power amplifier instantaneous amplitude-phase response function by using a specific mathematical model and verifying that the instantaneous output amplitude and instantaneous output phase of the power amplifier at different time points are dynamically analyzed. The function fully considers the instantaneous output amplitude and instantaneous output phase at the time point. The instantaneous amplitude-phase response function of the power amplifier on , at the time point The corresponding instantaneous output amplitude , the total number of time points in the time domain , the item index at the time point , the power amplifier is in the time domain Time point The corresponding nonlinear correction factor , imaginary unit , at the time point The corresponding instantaneous output phase , at the time point The corresponding phase error compensation , according to the time point The instantaneous amplitude-phase response function of the power amplifier on The correlation between the above parameters constitutes a functional relationship The instantaneous amplitude-phase response function of the power amplifier can accurately capture the performance changes of the power amplifier under actual working conditions by dynamically analyzing the instantaneous output amplitude and phase of the power amplifier at different time points. This dynamic characteristic analysis helps to understand the response of the power amplifier under different input signal conditions, thereby optimizing its design and use. The instantaneous amplitude-phase response function of the power amplifier takes into account the nonlinear correction factor, which can effectively describe the nonlinear behavior of the power amplifier under high power or complex signal conditions. This modeling can improve the prediction accuracy of the actual performance of the power amplifier. In addition, by introducing the phase error compensation term, the phase distortion caused by signal transmission or power amplifier characteristics can be effectively reduced, which is very important for maintaining signal coherence and avoiding distortion, especially in high-frequency applications. By establishing the instantaneous amplitude-phase response function of the power amplifier, the reverse transfer voltage and current of the power amplifier can be decomposed in the frequency domain. This frequency domain analysis can reveal the amplitude and phase characteristics of the power amplifier at different frequencies, which helps to optimize its frequency response and improve the overall performance of the system, thereby improving the accuracy and applicability of the instantaneous amplitude-phase response function of the power amplifier.

[0130] In the embodiment of the present invention, by acquiring the instantaneous amplitude and instantaneous phase of the output signal of the power amplifier, the output waveforms of the power amplifier at different time points are collected in real time through a high-precision oscilloscope or spectrum analyzer. These output waveforms contain the instantaneous amplitude and instantaneous phase information of the power amplifier. For the signal at each moment, the Fourier transform is used to convert the time domain to the frequency domain to extract the spectrum characteristics of the signal. According to the spectrum data, the instantaneous amplitude and phase of the power amplifier are calculated through a mathematical model or a signal processing algorithm (for example, short-time Fourier transform, STFT). After that, the instantaneous amplitude and phase of the power amplifier are combined through a joint analysis of the time domain and the frequency domain to obtain the instantaneous amplitude and phase of the power amplifier by combining the instantaneous amplitude and phase information at the time point. The corresponding instantaneous output amplitude , the total number of time points in the time domain , the item index at the time point , the power amplifier is in the time domain Time point The corresponding nonlinear correction factor , imaginary unit , at the time point The corresponding instantaneous output phase and at the time point The corresponding phase error compensation generates the instantaneous amplitude-phase response function of the amplifier To construct a point in time The functional relationship of the instantaneous amplitude-phase response function of the power amplifier on is:

[0131] , which describes the relationship between the amplitude and phase of the power amplifier output at different time points. This function is used for subsequent spectrum decomposition and correction, and finally generates the instantaneous amplitude-phase response function of the power amplifier.

[0132] Preferably, the power amplifier reverse transfer voltage and current spectrum reconstruction diagram is decomposed in the power amplifier frequency domain based on the power amplifier instantaneous amplitude-phase response function to obtain the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current;

[0133] In an embodiment of the present invention, the spectrum of the voltage and current transmitted in reverse by the power amplifier is decomposed by combining the previously constructed instantaneous amplitude-phase response function of the power amplifier, so as to collect and analyze the voltage and current signals transmitted in reverse by the power amplifier, firstly, a spectrum reconstruction diagram of the power amplifier is constructed, and the time domain waveforms of the reverse transmission voltage and current are converted by a spectrum analysis tool (such as an FFT analyzer) to obtain its spectrum, and then combined with the instantaneous amplitude-phase response function, the frequency domain amplitude and phase components of the reverse transmission voltage and current are separated by a decoupling processing algorithm (such as a spectrum decoupling technology based on the least squares method). This process can be completed by a dedicated signal processing platform or a computer program to ensure that clear voltage and current frequency domain characteristics are extracted from the complex spectrum reconstruction diagram, and finally the frequency domain amplitude-phase components corresponding to the reverse transmission voltage and current of the power amplifier are obtained.

[0134] Preferably, based on the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current, the corresponding amplitude and phase in the power amplifier reverse transfer voltage and current spectrum reconstruction diagram are subjected to spectrum mismatch correction and phase reconstruction to generate an amplifier reverse transfer voltage and current spectrum optimization diagram;

[0135] In an embodiment of the present invention, the corresponding amplitude and phase in the power amplifier reverse transfer voltage and current spectrum reconstruction diagram are corrected by combining the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current previously decomposed, so as to check whether there is amplitude mismatch or phase inconsistency by comparing the frequency domain amplitude and phase components previously obtained. If mismatch is found, correction is performed through a frequency domain correction algorithm. Specifically, a spectrum balancing algorithm and phase reconstruction technology are used to optimize the amplitude and phase data of the reverse transfer voltage and current. Phase interpolation, amplitude normalization and other methods can be used to compensate for the amplitude and phase distortion in the spectrum to ensure that the signal matches best in the frequency domain. After correction, an optimized power amplifier reverse transfer voltage and current spectrum diagram is generated, in which the amplitude and phase of each frequency point are precisely adjusted to ensure the matching of the signal with the ideal output, and finally the amplifier reverse transfer voltage and current spectrum optimization diagram is reconstructed.

[0136] Preferably, amplitude adjustment and phase coupling tuning are performed according to the power amplifier reverse transfer voltage and current spectrum optimization diagram to obtain a power amplifier reverse transfer voltage and current spectrum coupling tuning waveform;

[0137] In an embodiment of the present invention, the amplitude adjustment and phase coupling tuning of the power amplifier reverse transfer voltage and current are further performed based on the previously obtained spectrum optimization diagram. This tuning is achieved by adjusting the working parameters of the power amplifier, mainly including gain adjustment, phase correction and feedback loop optimization, so as to accurately control the input signal and feedback loop of the power amplifier, monitor and adjust the amplitude and phase of the reverse transfer voltage and current in real time, and optimize the spectrum response of the power amplifier. The adjustment can be achieved through a closed-loop control system, and the amplitude and phase characteristics of the power amplifier are optimized by real-time feedback. Through multiple iterations, a spectrum coupling tuning waveform is obtained to ensure the stability and optimal performance of the power amplifier within the working frequency band, and finally a spectrum coupling tuning waveform of the power amplifier reverse transfer voltage and current is obtained.

[0138] Preferably, the power amplifier reverse transfer voltage and current spectrum coupling tuning waveform is reversely synthesized in the time domain to generate an ideal response waveform corresponding to the power amplifier voltage and current.

[0139] In an embodiment of the present invention, the spectrum coupling tuning waveform of the power amplifier reverse transmission voltage and current previously obtained is reconstructed in the time domain by using the time domain inverse synthesis technology, and the optimized spectrum information is converted into a time domain waveform by using the inverse Fourier transform (Inverse FFT), and the various amplitude and phase components in the frequency domain are synthesized into a complete time domain signal by inverse synthesis. This process needs to ensure that the phase and amplitude of each frequency component are accurately restored, so as to ensure that the output waveform is consistent with the theoretical ideal waveform. After time domain inverse synthesis, the ideal response waveform of the voltage and current output by the power amplifier is obtained. This waveform represents the optimized signal output by the power amplifier after comprehensive calibration, meets the design requirements and has the best performance, and finally generates the ideal response waveform corresponding to the amplifier voltage and current.

[0140] Further, step S15 includes the following steps:

[0141] Step S151: performing waveform deviation comparison analysis on the time domain filtering waveforms corresponding to the power amplifier voltage and current based on the ideal response waveforms corresponding to the power amplifier voltage and current, and obtaining the deviation between the actual waveforms of the power amplifier voltage and current and the ideal waveforms;

[0142] In an embodiment of the present invention, a comparison analysis is performed between the ideal response waveforms of the power amplifier (PA) voltage and current obtained by combining the previous analysis and the time domain filtering waveform to obtain the deviation between the actual waveform of the PA voltage and current and the ideal waveform. The specific operation is to capture the actual waveform of the PA voltage and current through a test device such as an oscilloscope or a spectrum analyzer, and compare it with the waveform in a theoretical calculation or a standard model (such as an ideal PA response model). At this time, the ideal waveform can be simulated by a mathematical model, assuming its output response under lossless and ideal conditions, and compare the actual waveform obtained by the test with the ideal waveform point by point, calculate the deviation at each moment in the time domain, quantify the deviation, and use a standard error measurement method, such as the root mean square error (RMSE) or the maximum deviation value, to obtain the deviation value of the PA voltage and current, and finally obtain the deviation between the actual waveform of the PA voltage and current and the ideal waveform.

[0143] Step S152: performing frequency domain distribution response analysis on the deviation between the actual waveform and the ideal waveform of the power amplifier voltage and current to obtain the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies;

[0144] In an embodiment of the present invention, a frequency domain analysis is performed on the deviation between the actual waveform and the ideal waveform of the power amplifier voltage and current in order to understand the signal deviation distribution at different frequencies. The specific operation is to first input the previously obtained time domain deviation waveform into a frequency domain conversion tool, and usually use the fast Fourier transform (FFT) technology to convert the time domain signal into a frequency domain signal. Through FFT, the amplitude and phase information of the power amplifier voltage and current deviation at each frequency component can be obtained, and the deviation spectrum in the frequency domain is analyzed to extract the main frequency components and their corresponding amplitude and phase information. The deviation degree corresponding to these frequency components is further analyzed to identify which frequency bands have larger deviations, and the frequency domain distribution characteristics of the signal are displayed in combination with the spectrum diagram, and finally the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies is obtained.

[0145] Step S153: performing load impedance target estimation on the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies to obtain the power amplifier load impedance frequency response target;

[0146] In an embodiment of the present invention, the frequency response target of the power amplifier load impedance is calculated based on the frequency domain distribution of the power amplifier voltage and current deviations. The specific operation is to analyze the deviation spectra at different frequencies based on the previously obtained frequency domain analysis results, and combine these frequency components with the response relationship of the load impedance. The relationship between the load impedance and the frequency response can be derived through an impedance model or an empirical formula. For example, by applying power amplifier design software with a load impedance adjustment function, the ideal response of the load impedance at different frequencies is simulated. According to the working characteristics of the power amplifier, the frequency response target of the load impedance should match the working frequency band of the power amplifier and the actual deviation requirements. In the calculation process, by considering the changes in the current and voltage waveforms, the difference between the ideal load impedance and the actual power amplifier load is further calculated to ensure that the impedance target accurately meets the design requirements, and finally the power amplifier load impedance frequency response target is obtained.

[0147] Step S154: performing impedance response optimization calculation on the power amplifier load impedance frequency response target to obtain the power amplifier load impedance.

[0148] In an embodiment of the present invention, an impedance response optimization calculation is performed for the obtained power amplifier load impedance frequency response target to determine the load impedance of the power amplifier. The specific operation is to input the previously obtained load impedance frequency response target into an impedance optimization algorithm. Common optimization algorithms include gradient descent method, genetic algorithm or simulated annealing algorithm, and these algorithms are used to gradually adjust the load parameters in the power amplifier design so that the error between the frequency response of the actual load impedance and the target response is minimized. During the optimization process, the algorithm automatically adjusts the component parameters (such as capacitors, inductors, etc.) of the impedance matching circuit according to the deviation data, and evaluates the performance after each adjustment until the optimized load impedance frequency response is obtained. In this process, professional circuit simulation software can be used for verification and simulation, such as using an EM simulation tool to analyze whether the optimized impedance response meets the expected requirements, and finally the power amplifier load impedance is obtained.

[0149] Further, step S2 includes the following steps:

[0150] Step S21: obtaining an audio signal output by the power amplifier;

[0151] In an embodiment of the present invention, by connecting the output end of the power amplifier to a suitable measuring device, such as a high-quality oscilloscope or an audio analyzer, an audio signal is generated by the output end of the power amplifier and transmitted to the analyzer through an audio line. In order to ensure the accuracy of the measurement result, the measuring device used should have a high-precision frequency response and be able to stably capture the waveform of the power amplifier output signal to ensure that the full-band audio signal can be captured, and finally the power amplifier output audio signal is obtained.

[0152] Step S22: performing spectrum analysis on the power amplifier output audio signal to generate the power amplifier output audio spectrum;

[0153] In an embodiment of the present invention, after obtaining the audio signal output by the power amplifier, the signal is subjected to spectrum analysis. To this end, a spectrum analyzer is used to perform Fourier transform (FFT) on the signal. The spectrum analyzer can accurately convert the signal from the time domain to the frequency domain, and display the amplitude distribution of the power amplifier output signal at different frequencies. By setting the frequency range and resolution bandwidth of the analyzer, it is ensured that all important signal features from low frequency to high frequency can be clearly displayed. It is necessary to record the spectrum diagram and analyze the frequency response characteristics of the power amplifier output signal to finally generate the amplifier output audio spectrum.

[0154] Step S23: performing a working environment simulation design on the power amplifier to generate a working environment simulation condition for the power amplifier;

[0155] In an embodiment of the present invention, the performance of the power amplifier in an actual working environment is simulated and designed. At this time, simulation software (such as COMSOL, ANSYS, etc.) can be used to simulate the working conditions of the power amplifier in a specific environment. During the simulation, multiple factors such as the thermal environment, vibration, external electromagnetic interference, and sound propagation characteristics of the power amplifier are considered. The environmental simulation model can set reasonable simulation parameters according to the specifications, workload, and operating environment (such as temperature, humidity, vibration, etc.) of the power amplifier. During the simulation process, it is necessary to simulate multiple scenarios, such as the performance of the power amplifier under different load conditions, to ensure that it will not have problems such as overheating, distortion or damage in the expected application environment, and finally design and generate simulation conditions for the power amplifier working environment.

[0156] Step S24: monitoring the working environment noise response of the power amplifier based on the working environment simulation conditions of the power amplifier to obtain the corresponding external noise signal of the power amplifier, including noise, echo and room sound;

[0157] In an embodiment of the present invention, the working environment noise response of the power amplifier is monitored by combining the previously obtained power amplifier working environment simulation conditions, so as to set the environmental parameters of the power amplifier according to the simulation data, such as temperature, humidity, electromagnetic interference and external noise sources. These noise sources include background noise, echo, reflected sound in the room, etc., and collect the external noise signals generated when the power amplifier is working by using special environmental noise monitoring equipment, such as a noise meter or an audio pickup device. The monitoring equipment should be located at a specific position around the power amplifier, and can accurately capture the changes in noise, echo and room sound. Through real-time monitoring of the environmental noise signal, the noise performance of the power amplifier under different working conditions can be clearly evaluated, which helps to identify the impact of any unnecessary environmental noise sources on the sound quality, and finally obtain the corresponding external noise signal of the power amplifier.

[0158] Step S25: performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of distortion of the audio output by the power amplifier.

[0159] In the embodiment of the present invention, by combining the previously obtained external noise signal of the power amplifier and the load impedance of the power amplifier, the influence of the noise signal and the load impedance will cause the output audio signal of the power amplifier to be distorted, especially in the case of complex environmental noise, the distortion degree of the power amplifier will be more obvious, and by comprehensively analyzing the external noise signal, the load impedance of the power amplifier and the output spectrum of the power amplifier, the distortion components in the signal can be identified. The audio distortion detection can be performed with the help of a high-precision audio analyzer, and different detection indicators, such as total harmonic distortion (THD), intermodulation distortion (IMD) and distortion order, are used for detailed quantification. Through the analysis of these distortion parameters, the quality of the audio output by the power amplifier can be accurately evaluated, that is, , and finally the degree of audio distortion of the power amplifier output is obtained.

[0160] Further, step S25 includes the following steps:

[0161] Step S251: performing spatiotemporal noise suppression on the power amplifier output audio spectrum based on the external noise signal of the power amplifier to obtain the spatiotemporal noise suppression spectrum of the power amplifier output audio;

[0162] In an embodiment of the present invention, a high-precision noise measurement device (such as a high-performance audio analyzer or a noise spectrum analyzer) is used to collect the external noise portion of the power amplifier output audio signal. The external noise generally includes noise, echo, and room sound introduced by the power amplifier working environment, the device itself, or other external factors. The collected power amplifier output audio spectrum is subjected to noise suppression by combining time domain and frequency domain analysis methods with adaptive filtering technology. Specifically, a spatiotemporal adaptive filter, such as a Kalman filter or a minimum mean square error filter (LMS filter), is used to estimate the noise signal in real time, and the noise component is subtracted from the original audio signal to obtain a clearer audio spectrum. After this process, the noise component in the power amplifier output audio is significantly suppressed, and finally a spatiotemporal suppression spectrum of the power amplifier output audio noise is obtained.

[0163] Step S252: performing load impedance compensation processing on the audio spectrum output by the power amplifier based on the load impedance of the power amplifier to obtain a spectrum after the load impedance of the power amplifier output is adjusted;

[0164] In an embodiment of the present invention, audio compensation processing is performed on the corresponding audio spectrum output by the power amplifier through the previously acquired power amplifier load impedance. The load impedance is usually determined by the electrical characteristics of the speaker, and the impedance will affect the current and voltage waveforms of the power amplifier output, thereby affecting the spectral characteristics of the audio signal. In order to compensate for the spectral distortion caused by the load impedance, spectral compensation processing is required. This process uses an impedance compensation algorithm to calculate a corresponding compensation coefficient based on the actual measured load impedance. The power amplifier output spectrum is adjusted through this compensation coefficient. The spectrum is usually corrected by an inverse filtering or dynamic equalization algorithm so that the output signal can maintain consistent spectral characteristics as much as possible under various load conditions, thereby obtaining a spectrum after the load impedance is adjusted, and finally obtaining a spectrum after the load impedance of the power amplifier output is adjusted.

[0165] Step S253: performing spectrum difference analysis based on the spatiotemporal suppression spectrum of the power amplifier output audio noise and the spectrum after the power amplifier output load impedance is adjusted, so as to obtain the difference characteristics of the audio distortion components between the noise suppression spectrum and the impedance adjustment spectrum;

[0166] In an embodiment of the present invention, a difference analysis is performed on the two previously obtained processed spectra (i.e., the noise spatiotemporal suppression spectrum and the load impedance adjusted spectrum). This step utilizes a spectrum comparison algorithm, such as a spectral difference algorithm (spectral difference) or a root mean square error (RMSE) analysis, to compare the difference between the two. By calculating the difference characteristics, the audio distortion components generated in the noise suppression process and the distortion components in the impedance compensation process can be accurately analyzed. The results of the difference analysis reveal the spectrum changes introduced by the two processes of noise spatiotemporal suppression and load impedance compensation, so that the impact of each processing step on the audio signal can be specifically quantified, forming the difference characteristics of the audio distortion components, and finally obtaining the difference characteristics of the audio distortion components between the noise suppression and impedance adjustment spectra.

[0167] Step S254: performing audio distortion index statistical analysis on the audio noise spatiotemporal suppression spectrum of the power amplifier output and the spectrum after the power amplifier output load impedance is adjusted based on the audio distortion component difference characteristics between the noise suppression and impedance adjustment spectrum, to obtain the audio total harmonic distortion of the power amplifier output and the audio intermodulation distortion of the power amplifier output;

[0168] In an embodiment of the present invention, by using the previously obtained audio distortion component difference characteristics, a statistical analysis of the audio distortion index is performed between the previously obtained power amplifier output audio noise spatiotemporal suppression spectrum and the power amplifier output load impedance adjustment spectrum. At this time, the focus is on two common types of audio distortion: total harmonic distortion (THD) and intermodulation distortion (IMD). In order to calculate the total harmonic distortion, the spectrum data can be converted into a time domain signal by Fourier transform, and then the harmonic components in the signal are calculated and compared with the fundamental wave of the original signal to obtain the total harmonic distortion index. For intermodulation distortion, a multi-frequency excitation signal is used to calculate the distortion components after the interaction of different frequency signals between the noise suppression spectrum and the load impedance adjustment spectrum, especially the spectrum crossover caused by nonlinear effects. By statistically analyzing the amplitude and frequency characteristics of the distortion components, the total harmonic distortion and intermodulation distortion indicators of the power amplifier output are calculated, and finally the power amplifier output audio total harmonic distortion and the power amplifier output audio intermodulation distortion are obtained.

[0169] Step S255: performing audio distortion measurement calculation on the power amplifier output audio spectrum based on the power amplifier output audio total harmonic distortion and the power amplifier output audio intermodulation distortion to obtain the power amplifier output audio distortion degree.

[0170] In an embodiment of the present invention, based on the previously obtained total harmonic distortion (THD) and intermodulation distortion (IMD) indicators, a distortion metric calculation is further performed on the audio signal output by the power amplifier. The audio distortion metric adopts a comprehensive algorithm, takes THD and IMD as key parameters of distortion, and combines the two through weighted averaging or other synthesis algorithms to obtain a comprehensive audio distortion indicator. Specifically, the distortion metric calculation can adopt a weighted function, taking into account the weights of the influence of different frequency intervals on the audio quality, and finally calculates a distortion index, which represents the distortion degree of the audio signal output by the power amplifier, and finally obtains the distortion degree of the audio output by the power amplifier.

[0171] Further, step S3 includes the following steps:

[0172] Step S31: performing a distortion time-varying statistical analysis on the power amplifier based on the degree of distortion of the power amplifier output audio, and obtaining a distortion time-varying characteristic of the power amplifier output audio;

[0173] In an embodiment of the present invention, the audio signal output by the power amplifier is collected for real-time analysis. First, a high-precision oscilloscope or spectrum analyzer is used to monitor the output signal of the power amplifier. After the signal is sampled from the output end of the power amplifier, a fast Fourier transform (FFT) method is used for frequency domain analysis, and the distortion degree of the audio signal is quantitatively evaluated through distortion indicators such as total harmonic distortion (THD) and intermodulation distortion (IMD). At the same time, based on the distortion degree of the power amplifier output audio obtained by the previous evaluation, a time-varying statistical analysis is performed on the corresponding power amplifier to calculate the trend and amplitude of the distortion over time, and determine the distortion time-varying characteristics of the power amplifier output signal. In specific operations, a multi-period audio signal is set for sampling, and the distortion changes in each time period are analyzed to obtain the evolution of the distortion of the power amplifier under different working conditions, and finally the distortion time-varying characteristics of the power amplifier output audio, that is, the change ratio, integral and differential of the distortion degree over time, are obtained.

[0174] Step S32: Adaptively adjust the gain of the power amplifier using proportional-integral-differential control based on the time-varying characteristics of the audio distortion output by the power amplifier to obtain an adaptively adjusted gain of the power amplifier output;

[0175] In an embodiment of the present invention, the time-varying characteristics of the distortion of the power amplifier output obtained by the previous analysis are used as a feedback signal and input into a proportional-integral-differential (PID) controller. The PID controller is used to adjust the gain of the power amplifier according to the distortion degree monitored in real time, so that the audio signal output by the power amplifier is kept in an optimal linear state and the distortion is minimized. In a specific implementation, the controller dynamically adjusts the gain value according to the trend and amplitude of the distortion change of the power amplifier. The proportional control part adjusts the gain according to the current distortion amplitude, the integral control part corrects the long-term deviation, and the differential control part predicts the distortion change trend and adjusts the gain in advance. This process automatically adjusts the gain by combining the real-time data acquisition system and the control algorithm to ensure that the audio distortion output by the power amplifier is always maintained within a minimum value range, so that when the distortion degree gradually increases, the corresponding gain is reduced, and when the distortion degree gradually decreases, the corresponding gain is increased, so as to ensure the stability and excellence of the output sound quality, and finally obtain the adaptive adjustment gain of the power amplifier output.

[0176] Step S33: performing frequency domain distribution analysis on the power amplifier output audio spectrum to obtain the power amplifier output frequency domain distribution characteristics; performing adaptive frequency band division on the power amplifier output audio spectrum based on the power amplifier output frequency domain distribution characteristics to obtain different power amplifier output audio frequency bands;

[0177] In an embodiment of the present invention, by performing frequency domain analysis on the audio signal output by the power amplifier, a high-precision spectrum analyzer is used to perform fast Fourier transform (FFT) processing on the audio signal to obtain the frequency domain distribution of the signal. The analyzer will output the relationship between frequency and amplitude to form a spectrum diagram. Based on the spectrum diagram, the distribution characteristics of the power amplifier output signal in different frequency ranges are further extracted, such as the frequency distribution of the main frequency band, the intensity of the harmonic components, and the noise distribution in the spectrum, thereby obtaining the frequency domain distribution characteristics of the power amplifier output. At the same time, the audio spectrum of the power amplifier output is adaptively divided into frequency bands by combining the previously obtained frequency domain distribution characteristics of the power amplifier output. In the specific operation, first, according to the distribution of frequencies in the spectrum, a suitable threshold or sampling interval is set, and the spectrum is divided into multiple frequency bands using spectral analysis methods (such as short-time Fourier transform, continuous wavelet transform, etc.). The basis for the division of these frequency bands includes the main frequency band, harmonic components, noise distribution, etc. of the audio signal. The divided frequency bands should focus as much as possible on the frequency range in the power amplifier output signal that has a greater impact on the sound quality, while unimportant frequency intervals are divided more widely or directly discarded. Through the adaptive division strategy, different frequency bands can accurately reflect the characteristics of the power amplifier at different frequencies, and ultimately different power amplifier output audio bands are obtained.

[0178] Step S34: performing frequency factor response calculation between different power amplifier output audio frequency bands to obtain power amplifier output frequency response factors corresponding to different frequency bands;

[0179] In an embodiment of the present invention, frequency response calculation is performed for each frequency band according to the adaptive frequency band division result obtained previously. Specifically, the amplitude response and phase response of each frequency band are calculated using digital signal processing technology to obtain the power amplifier output frequency response factor corresponding to the frequency band. This process is usually achieved through system identification technology or interpolation method. The frequency response curve is fitted in each frequency band, and the variation law of the frequency response factor is analyzed, especially the relationship between the amplitude response and the phase response. If the response of a certain frequency band has a large deviation, it is necessary to further optimize the power amplifier parameters of the frequency band, and apply the frequency response factor to the corresponding frequency band adjustment to ensure that the power amplifier can stably output high-quality audio signals in different frequency bands, and finally obtain the power amplifier output frequency response factors corresponding to different frequency bands.

[0180] Step S35: optimizing the frequency responses of the corresponding power amplifier output audio frequency bands based on the power amplifier output frequency response factors corresponding to the different frequency bands, so as to generate power amplifier response optimized output frequencies corresponding to the different frequency bands.

[0181] In an embodiment of the present invention, the frequency response of each frequency band is optimized by utilizing the corresponding power amplifier output frequency response factors between different frequency bands. The optimization goal is to maximize the signal quality within the frequency band and ensure a smooth transition between the frequency bands by adjusting the gain, phase and filter characteristics of the power amplifier. If it is found that the distortion or attenuation of a certain frequency band is too large, it is compensated by adjusting the gain of the corresponding frequency band or by designing a digital filter. For high-frequency bands, a high-pass filter is required for attenuation control; and for low-frequency bands, a low-pass filter is used to reduce the influence of low-frequency noise. By setting a precise control algorithm, the power amplifier gain and frequency response are adjusted in real time to ensure that high-fidelity audio signals can be output in all frequency bands. This process is continued through a feedback adjustment mechanism until the frequency response of each frequency band reaches a preset optimization standard, and finally the power amplifier response optimized output frequency corresponding to different frequency bands is optimized and generated.

[0182] Furthermore, the present invention also provides an intelligent power amplifier calibration system, which is used to execute the intelligent power amplifier calibration method as described above, and the intelligent power amplifier calibration system includes:

[0183] A power amplifier load impedance response analysis module is used to monitor the corresponding voltage and current waveforms of the power amplifier in real time, and perform load impedance response analysis on the power amplifier based on the voltage and current waveforms to obtain the power amplifier load impedance;

[0184] The power amplifier output audio distortion detection module is used to obtain the power amplifier output audio signal and perform spectrum analysis on the power amplifier output audio signal to generate the power amplifier output audio spectrum; obtain the corresponding power amplifier external noise signal by designing the power amplifier working environment simulation conditions, and perform audio distortion detection on the power amplifier output audio spectrum based on the power amplifier external noise signal and the power amplifier load impedance, so as to obtain the power amplifier output audio distortion degree;

[0185] The power amplifier parameter adaptive adjustment and optimization module is used to adaptively adjust the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain the power amplifier output adaptive adjustment gain; optimize the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate the power amplifier response optimized output frequency corresponding to different frequency bands;

[0186] The power amplifier intelligent feedback calibration module is used to perform intelligent feedback calibration on the power amplifier based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands to generate an intelligent calibration power amplifier.

[0187] Furthermore, the present invention also provides an intelligent power amplifier calibration device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, for executing the intelligent power amplifier calibration method as described above.

[0188] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.

[0189] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A smart power amplifier calibration method, characterized in that: The following steps are involved: Step S1: monitoring the corresponding voltage and current waveforms of the power amplifier in real time, and analyzing the load impedance response of the power amplifier based on the voltage and current waveforms to obtain the load impedance of the power amplifier; Step S2: obtaining an audio signal output by the power amplifier, and performing spectrum analysis on the audio signal output by the power amplifier to generate an audio spectrum output by the power amplifier; obtaining a corresponding external noise signal of the power amplifier by designing a simulation condition of the working environment of the power amplifier, and performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of distortion of the audio output by the power amplifier; Step S3: adaptively adjusting the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain the power amplifier output adaptive adjustment gain; optimizing the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate power amplifier response optimized output frequencies corresponding to different frequency bands; Step S3 includes the following steps: Step S31: performing a distortion time-varying statistical analysis on the power amplifier based on the degree of distortion of the power amplifier output audio, and obtaining a distortion time-varying characteristic of the power amplifier output audio; Step S32: Adaptively adjust the gain of the power amplifier using proportional-integral-differential control based on the time-varying characteristics of the audio distortion output by the power amplifier to obtain an adaptively adjusted gain of the power amplifier output; Step S33: performing frequency domain distribution analysis on the power amplifier output audio spectrum to obtain the power amplifier output frequency domain distribution characteristics; performing adaptive frequency band division on the power amplifier output audio spectrum based on the power amplifier output frequency domain distribution characteristics to obtain different power amplifier output audio frequency bands; Step S34: performing frequency factor response calculation between different power amplifier output audio frequency bands to obtain power amplifier output frequency response factors corresponding to different frequency bands; Step S35: optimizing the frequency responses of the corresponding power amplifier output audio frequency bands according to the power amplifier output frequency response factors corresponding to the different frequency bands, so as to generate power amplifier response optimized output frequencies corresponding to the different frequency bands; Step S4: Based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands, the power amplifier is intelligently feedback calibrated to generate an intelligently calibrated power amplifier.

2. The intelligent power amplifier calibration method according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Setting the same sampling frequency of 40 MHz by the voltage probe and the current probe to synchronously trigger the real-time monitoring of the corresponding voltage and current waveforms during the output process of the power amplifier, so as to generate the voltage and current waveforms corresponding to the power amplifier; Step S12: Perform time domain filtering on the voltage and current waveforms corresponding to the power amplifier to obtain time domain filtering waveforms corresponding to the power amplifier voltage and current, wherein the power amplifier voltage and power amplifier current at each time point in the time domain filtering waveform are specifically: ; ; in, is the time point variable parameter, For at time point The power amplifier voltage on For at time point The power amplifier current on is the amplifier gain, is the input signal amplitude, is the signal angular frequency, is the signal phase, For the amplifier load; Step S13: performing point-by-point power multiplication calculation of the voltage and current on the time-domain filtered waveforms corresponding to the power amplifier voltage and current, so as to obtain the instantaneous output power waveforms corresponding to the power amplifier at different time points; Step S14: performing power reverse transfer response on the instantaneous output power waveforms corresponding to the power amplifier at different time points to generate ideal response waveforms corresponding to the power amplifier voltage and current; Step S15: performing load impedance response calculation on the time-domain filtered waveform corresponding to the power amplifier voltage and current based on the ideal response waveform corresponding to the power amplifier voltage and current to obtain the power amplifier load impedance.

3. The intelligent power amplifier calibration method according to claim 2, characterized in that: Step S14 includes the following steps: Step S141: dynamically analyzing the instantaneous amplitude and phase of the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points; Step S142: performing amplitude modulation response modeling and analysis on the corresponding instantaneous output power waveform based on the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an amplifier instantaneous output power response model; Step S143: Based on the instantaneous output power response model of the power amplifier, power reverse mapping is performed on the instantaneous output power waveforms corresponding to the power amplifier at different time points to obtain the power amplifier output power reverse transfer model coefficients; Step S144: performing reverse compensation correction and frequency domain characteristic reconstruction on the voltage and current waveforms corresponding to the power amplifier according to the power amplifier output power reverse transfer model coefficient, so as to generate a power amplifier reverse transfer voltage and current spectrum reconstruction diagram; Step S145: performing phase matching and amplitude adjustment on the power amplifier reverse transfer voltage and current spectrum reconstruction diagram according to the instantaneous output amplitude and instantaneous output phase corresponding to the power amplifier at different time points to generate an ideal response waveform corresponding to the power amplifier voltage and current.

4. The intelligent power amplifier calibration method according to claim 3, characterized in that: Step S145 includes the following steps: The instantaneous output amplitude and instantaneous output phase of the power amplifier at different time points are subjected to dynamic amplitude-phase analysis to generate an instantaneous amplitude-phase response function of the power amplifier, wherein the instantaneous amplitude-phase response function of the power amplifier is specifically: ; in, For at time point The instantaneous amplitude-phase response function of the power amplifier on For at time point The corresponding instantaneous output amplitude is, is the total number of time points in the time domain, is the item index at the time point, The power amplifier is Time point The corresponding nonlinear correction factor is, is an imaginary unit, For at time point The corresponding instantaneous output phase is, For at time point The corresponding phase error compensation; Based on the instantaneous amplitude-phase response function of the power amplifier, the power amplifier reverse transfer voltage and current spectrum reconstruction diagram is decomposed in the power amplifier frequency domain to obtain the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current; Based on the frequency domain amplitude-phase components corresponding to the power amplifier reverse transfer voltage and current, the corresponding amplitude and phase in the power amplifier reverse transfer voltage and current spectrum reconstruction diagram are corrected for spectrum mismatch and phase reconstruction to generate an amplifier reverse transfer voltage and current spectrum optimization diagram; According to the power amplifier reverse transfer voltage and current spectrum optimization diagram, amplitude adjustment and phase coupling tuning are performed to obtain the power amplifier reverse transfer voltage and current spectrum coupling tuning waveform; The power amplifier reverse transfer voltage and current spectrum coupling tuning waveform is reversely synthesized in time domain to generate the ideal response waveform corresponding to the power amplifier voltage and current.

5. The intelligent power amplifier calibration method according to claim 2, characterized in that: Step S15 includes the following steps: Step S151: performing waveform deviation comparison analysis on the time domain filtering waveforms corresponding to the power amplifier voltage and current based on the ideal response waveforms corresponding to the power amplifier voltage and current, and obtaining the deviation between the actual waveforms of the power amplifier voltage and current and the ideal waveforms; Step S152: performing frequency domain distribution response analysis on the deviation between the actual waveform and the ideal waveform of the power amplifier voltage and current to obtain the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies; Step S153: performing load impedance target estimation on the signal deviation frequency domain distribution corresponding to the power amplifier voltage and current deviation at different frequencies to obtain the power amplifier load impedance frequency response target; Step S154: performing impedance response optimization calculation on the power amplifier load impedance frequency response target to obtain the power amplifier load impedance.

6. The intelligent power amplifier calibration method according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: obtaining an audio signal output by the power amplifier; Step S22: performing spectrum analysis on the power amplifier output audio signal to generate the power amplifier output audio spectrum; Step S23: performing a working environment simulation design on the power amplifier to generate a working environment simulation condition for the power amplifier; Step S24: monitoring the working environment noise response of the power amplifier based on the working environment simulation conditions of the power amplifier to obtain the corresponding external noise signal of the power amplifier, including noise, echo and room sound; Step S25: performing audio distortion detection on the audio spectrum output by the power amplifier based on the external noise signal of the power amplifier and the load impedance of the power amplifier to obtain the degree of distortion of the audio output by the power amplifier.

7. The intelligent power amplifier calibration method according to claim 6, characterized in that: Step S25 includes the following steps: Step S251: performing spatiotemporal noise suppression on the power amplifier output audio spectrum based on the external noise signal of the power amplifier to obtain the spatiotemporal noise suppression spectrum of the power amplifier output audio; Step S252: performing load impedance compensation processing on the audio spectrum output by the power amplifier based on the load impedance of the power amplifier to obtain a spectrum after the load impedance of the power amplifier output is adjusted; Step S253: performing spectrum difference analysis based on the spatiotemporal suppression spectrum of the power amplifier output audio noise and the spectrum after the power amplifier output load impedance is adjusted, so as to obtain the difference characteristics of the audio distortion components between the noise suppression spectrum and the impedance adjustment spectrum; Step S254: performing audio distortion index statistical analysis on the audio noise spatiotemporal suppression spectrum of the power amplifier output and the spectrum after the power amplifier output load impedance is adjusted based on the audio distortion component difference characteristics between the noise suppression and impedance adjustment spectrum, to obtain the audio total harmonic distortion of the power amplifier output and the audio intermodulation distortion of the power amplifier output; Step S255: performing audio distortion measurement calculation on the power amplifier output audio spectrum based on the power amplifier output audio total harmonic distortion and the power amplifier output audio intermodulation distortion to obtain the power amplifier output audio distortion degree.

8. An intelligent power amplifier calibration system, characterized in that: Used to perform the smart power amplifier calibration method according to claim 1, the smart power amplifier calibration system comprises: A power amplifier load impedance response analysis module is used to monitor the corresponding voltage and current waveforms of the power amplifier in real time, and perform load impedance response analysis on the power amplifier based on the voltage and current waveforms to obtain the power amplifier load impedance; The power amplifier output audio distortion detection module is used to obtain the power amplifier output audio signal and perform spectrum analysis on the power amplifier output audio signal to generate the power amplifier output audio spectrum; obtain the corresponding power amplifier external noise signal by designing the power amplifier working environment simulation conditions, and perform audio distortion detection on the power amplifier output audio spectrum based on the power amplifier external noise signal and the power amplifier load impedance, so as to obtain the power amplifier output audio distortion degree; The power amplifier parameter adaptive adjustment and optimization module is used to adaptively adjust the gain of the power amplifier based on the degree of distortion of the power amplifier output audio to obtain the power amplifier output adaptive adjustment gain; optimize the frequency response corresponding to different frequency bands of the power amplifier output audio spectrum to generate the power amplifier response optimized output frequency corresponding to different frequency bands; The power amplifier intelligent feedback calibration module is used to perform intelligent feedback calibration on the power amplifier based on the adaptive adjustment gain of the power amplifier output and the optimized output frequency of the power amplifier response corresponding to different frequency bands to generate an intelligent calibration power amplifier.

9. An intelligent power amplifier calibration device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, and is used to execute the intelligent power amplifier calibration method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Audio power amplifier test system based on virtual instrument technology

    CN118175494A

  • Display control method and system of audio power amplifier

    CN119045773A