Peak current control method and device of power supply, electronic equipment and storage medium
By using the prediction signal and signal prediction model of the electroacoustic transducer, the input power of the electroacoustic transducer is adjusted, and the problem of inaccurate power peak current control in the prior art is solved, and the precise control of the power peak current and the real-time and accuracy of the input power are achieved.
Patent Information
- Application Number
- CN202311370681.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2043-10-20
AI Technical Summary
The prior art is difficult to accurately control the peak current of the power supply, and there are problems of delay and inaccuracy in real-time monitoring and battery prediction models.
By obtaining the prediction signal of the electroacoustic transducer, the input power of the electroacoustic transducer is predicted using a preset signal prediction model, and the input power of the electroacoustic transducer is adjusted to control the peak current of the power supply according to the mapping relationship between the power supply output power and the input power of the electroacoustic transducer.
Accurate control of the peak current of the power supply is achieved, ensuring the real-time and accuracy of the input power, and improving the accuracy of the peak current control of the power supply.
Smart Images

Figure CN119861788A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supply technology, and in particular to a peak current control method, device, electronic device and storage medium of a power supply. Background Art
[0002] At present, the protection of power supply is mainly achieved by limiting the peak current during its use. Therefore, it is particularly important to accurately control the peak current of the power supply.
[0003] In the related technology, on the one hand, the peak current of the power supply is controlled by real-time monitoring of the current and voltage of the power supply. This actual measurement control method has a certain delay; on the other hand, the input power of the power supply is predicted by the battery model, such as the impedance model. However, due to the instability of the load impedance, the input power predicted by the battery prediction model is not accurate enough. Therefore, it is necessary to provide a technical solution that can accurately control the peak current of the power supply. Summary of the invention
[0004] The present application provides a peak current control method, device, electronic device and storage medium of a power supply, aiming to solve the technical problem in the prior art that it is difficult to accurately control the peak current of a power supply through actual measurement or battery prediction model.
[0005] In a first aspect, the present application provides a peak current control method of a power supply, wherein the power supply is used to power a power amplifier, and the power amplifier is used to power an electroacoustic transducer, and the peak current control method of the power supply includes:
[0006] Acquire a first prediction signal of the electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal;
[0007] determining an input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal;
[0008] Determining the output power of the power supply according to a preset mapping relationship between the output power of the power supply and the input power of the electroacoustic transducer, and the input power;
[0009] Based on the output power and a preset power threshold, the input power of the electroacoustic transducer is adjusted to achieve control of the peak current of the power supply.
[0010] In some embodiments, the preset signal prediction model is a preset impedance model or a preset admittance model;
[0011] The step of predicting a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal includes:
[0012] If the preset signal prediction model is a preset impedance model, determining that the first prediction signal is a current signal and the second prediction signal is a voltage signal;
[0013] Based on the first prediction signal, using a preset impedance model to predict a second prediction signal of the electroacoustic transducer;
[0014] If the preset signal prediction model is a preset admittance model, determining that the first prediction signal is a voltage signal and the second prediction signal is a current signal;
[0015] Based on the first prediction signal, a preset admittance model is used to predict a second prediction signal of the electroacoustic transducer.
[0016] In some embodiments, the obtaining of the first prediction signal of the electroacoustic transducer includes:
[0017] If the first prediction signal is a voltage signal, obtaining an audio input signal and a corresponding gain of the electroacoustic transducer;
[0018] The output voltage is determined according to the audio input signal and the gain.
[0019] In some embodiments, predicting a second prediction signal of the electroacoustic transducer using a preset admittance model based on the first prediction signal includes:
[0020] The first prediction signal is used as the input of the preset admittance model, and is processed by the preset admittance model to obtain the second prediction signal output by the preset admittance model, wherein the preset admittance model is an electroacoustic transducer admittance model that updates the model parameters of the electroacoustic transducer admittance model in real time.
[0021] In some embodiments, the method further comprises:
[0022] Acquiring an original electroacoustic transducer admittance model, voltage data and current data of the electroacoustic transducer;
[0023] Determining actual admittance model parameters of the electroacoustic transducer according to the voltage data and the current data;
[0024] The original electroacoustic transducer admittance model is updated according to the actual admittance model parameters to obtain the preset admittance model.
[0025] In some embodiments, adjusting the input power of the electroacoustic transducer based on the output power and a preset power threshold comprises:
[0026] If the output power is greater than the preset power threshold, the gain corresponding to the audio input signal is adjusted to a preset gain, or the gain corresponding to the audio input signal is adjusted according to the preset power threshold and the output power.
[0027] In some embodiments, adjusting the gain corresponding to the audio input signal to a preset gain includes:
[0028] Adjusting the gain corresponding to the audio input signal from a current gain to a preset gain, wherein the current gain is greater than the preset gain;
[0029] The adjusting the gain corresponding to the audio input signal according to the preset power threshold and the output power comprises: determining a target gain corresponding to the audio input signal according to the preset power threshold and the output power;
[0030] The gain corresponding to the audio input signal is adjusted according to the target gain.
[0031] In some embodiments, before determining the output power of the power supply according to the preset mapping relationship between the power supply output power and the input power of the electroacoustic transducer and the input power, the method further includes:
[0032] Acquire a historical output power set of the power supply within a preset period of time, wherein the historical output power set includes a plurality of historical output powers;
[0033] Acquire a historical input power set of the electroacoustic transducer within the preset time period, wherein the historical output power set includes a plurality of historical input powers;
[0034] A mapping relationship between the preset power supply output power and the electroacoustic transducer input power is constructed according to the historical output power set and the historical input power set.
[0035] In a second aspect, the present application provides a peak current control device for a power supply, wherein the power supply is used to power a power amplifier, and the power amplifier is used to power an electroacoustic transducer, and the peak current control device for the power supply includes:
[0036] A prediction module, used to obtain a first prediction signal of the electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal;
[0037] a first determination module, configured to determine the input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal; and a second determination module, configured to determine the output power of the power supply according to a preset mapping relationship between the power supply output power and the input power of the electroacoustic transducer and the input power;
[0038] A control module is used to adjust the input power of the electroacoustic transducer based on the output power and a preset power threshold so as to control the peak current of the power supply.
[0039] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the peak current control method of a power supply as described in the first aspect.
[0040] In a fourth aspect, the present application provides a storage medium storing a plurality of instructions, wherein the instructions are suitable for loading by a processor to execute the steps in the peak current control method of a power supply as described in the first aspect.
[0041] The present application obtains a first prediction signal of an electroacoustic transducer, and according to the first prediction signal, uses a preset signal prediction model to predict a second prediction signal of the electroacoustic transducer, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal; determines the input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal; determines the output power of the power supply according to a preset mapping relationship between the power supply output power and the electroacoustic transducer input power, and the input power; adjusts the input power of the electroacoustic transducer based on the output power and the preset power threshold to achieve control of the peak current of the power supply. Since the present application determines the input power based on the predicted current signal and voltage signal, the real-time nature of the input power is ensured, and there is no need to determine the input power based on impedance, so that the input power is more accurate. At the same time, the output power of the power supply is determined based on the input power, so that the output power is real-time and accurate. Therefore, the input power is adjusted according to the output power, which improves the accuracy of the peak current control of the power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1It is a flow chart of a peak current control method of a power supply provided in an embodiment of the present application;
[0044] Figure 2 This is a schematic diagram of a process for obtaining a first prediction signal of an electroacoustic transducer provided in an embodiment of the present application;
[0045] Figure 3 It is a module schematic diagram of the peak current control device of the power supply provided in the embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0047] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0048] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0049] The embodiments of the present application provide a peak current control method and device for a power supply, an electroacoustic transducer control method, an electronic device, and a storage medium, which are described in detail below.
[0050] First, see Figure 1 , Figure 1 A flow chart of a peak current control method of a power supply in an embodiment of the present application is shown, wherein the power supply is used to power an amplifier, and the amplifier is used to power an electroacoustic transducer. The peak current control method of the power supply may include the following steps 101 to 106, which are as follows:
[0051] 101. Obtain a first prediction signal of an electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer using a preset signal prediction model based on the first prediction signal, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal.
[0052] Specifically, in this embodiment, the power supply is used to supply power to a power amplifier (PA), and the power amplifier is used to supply power to the electro-acoustic transducer, and the power amplifier is electrically connected to the electro-acoustic transducer.
[0053] An electroacoustic transducer is a device that converts sound energy into electrical energy or electrical energy into sound energy, such as microphones, speakers and headphones in electroacoustic engineering.
[0054] Among them, the first prediction signal and the second prediction signal are both predicted electrical signals of the electroacoustic transducer, such as current signal and voltage signal, wherein the first prediction signal is one of the voltage signal and the current signal, and the second prediction signal is the other of the voltage signal and the current signal.
[0055] The first prediction signal and the second prediction signal may be instantaneous current or instantaneous voltage obtained by real-time prediction of a current signal or a voltage signal of an electroacoustic transducer in an electronic device. The preset signal prediction model refers to a preset model for predicting a current signal or a voltage signal of an electroacoustic transducer, and illustratively, the preset signal prediction model is a preset impedance model or a preset admittance model.
[0056] Specifically, the first prediction signal may be used as an input of a preset signal prediction model to process the first prediction signal, and the output of the preset signal prediction model is the second prediction signal.
[0057] It is worth noting that the power amplifier in this embodiment can be one or more. In the case of multiple power amplifiers, the first prediction signal and the second prediction signal of each power amplifier can be predicted separately, so as to subsequently determine the combined input power of the multiple power amplifiers based on their respective first prediction signals and the second prediction signals, and use the combined input power as the input power.
[0058] In a specific implementation, the preset signal prediction model is a preset impedance model or a preset admittance model; the step 101 of predicting the second prediction signal of the electroacoustic transducer using the preset signal prediction model according to the first prediction signal may include the following steps 101A to 101D, which are as follows:
[0059] 101A. If the preset signal prediction model is a preset impedance model, determine that the first prediction signal is a current signal and the second prediction signal is a voltage signal;
[0060] 101B. Based on the first prediction signal, use a preset impedance model to predict a second prediction signal of the electroacoustic transducer;
[0061] 101C. If the preset signal prediction model is a preset admittance model, determining that the first prediction signal is a voltage signal and the second prediction signal is a current signal;
[0062] 101D. Based on the first prediction signal, use a preset admittance model to predict a second prediction signal of the electroacoustic transducer.
[0063] Specifically, when the preset signal prediction model is a preset impedance model, the first prediction signal is determined to be a current signal and the second prediction signal is a voltage signal. At this time, the process of using the preset signal prediction model to predict the second prediction signal of the electroacoustic transducer is: taking the current signal as the input of the preset impedance model, processing the current signal, and the output of the preset impedance model is the voltage signal; when the preset signal prediction model is a preset admittance model, the first prediction signal is determined to be a voltage signal and the second prediction signal is a current signal. At this time, the process of using the preset admittance model to predict the second prediction signal of the electroacoustic transducer is: taking the voltage signal as the input of the preset admittance model, processing the voltage signal, and the output of the preset impedance model is the current signal, that is, the voltage signal is input into the electroacoustic transducer admittance model, and the output of the electroacoustic transducer admittance model is the predicted current signal. It can be understood that in this embodiment, the current signal is predicted by the electroacoustic transducer admittance model, which reduces the current prediction error near the resonant frequency and improves the accuracy of the current signal.
[0064] In a specific embodiment, continue to refer to Figure 2 , Figure 2A schematic diagram of a process for obtaining a first prediction signal of an electroacoustic transducer in an embodiment of the present application is shown. The obtaining of the first prediction signal of the electroacoustic transducer in step 101 may include the following steps 101E to 101G, which are specifically as follows:
[0065] 101E. If the first prediction signal is a voltage signal, obtaining an audio input signal and a corresponding gain of the electroacoustic transducer;
[0066] 101F. determining the voltage signal according to the audio input signal and the gain;
[0067] 101G. If the first prediction signal is a current signal, collect the current signal through a current collector.
[0068] Specifically, when the electronic device inputs the audio input signal in the terminal device to the electroacoustic transducer, the voltage signal can be predicted based on the input audio input signal and the corresponding gain. More specifically, the gain can be determined based on the frequency response curve of the electroacoustic transducer, which refers to the gain variation curve with frequency, and then the product of the audio input signal of the electroacoustic transducer and the corresponding gain is calculated to predict the output voltage, that is, output(s)=input(s)*H(s), where output(s) is represented as a current signal, input(s) is represented as an audio input signal, and H(s) is represented as a gain. It can be understood that in this embodiment, the voltage signal is determined based on the audio input signal and the gain, which avoids the delay problem of real-time detection of the voltage signal, so that the output voltage is real-time and accurate. When the first predicted signal is a current signal, the current signal of the electroacoustic transducer can be acquired by collecting the current signal through a current collector.
[0069] In a specific implementation, the step 101D of predicting the second prediction signal of the electroacoustic transducer based on the first prediction signal using a preset admittance model may include the following step 101D1, specifically as follows:
[0070] 101D1. Use the first prediction signal as the input of a preset admittance model, and process it using the preset admittance model to obtain the second prediction signal output by the preset admittance model. The preset admittance model is an electroacoustic transducer admittance model that updates the model parameters of the electroacoustic transducer admittance model in real time.
[0071] Specifically, the output voltage is used as the input of the preset admittance model, and the output of the preset admittance model is a current signal. It can be understood that since the model parameters in the preset admittance model are updated in real time, the preset admittance model predicts the current more accurately, thereby further improving the accuracy of the output current.
[0072] In a specific implementation, the method may further include the following steps 105 to 107, which are as follows:
[0073] 105. Obtain an original electroacoustic transducer admittance model, voltage data, and current data of the electroacoustic transducer;
[0074] 106. Determine actual admittance model parameters of the electroacoustic transducer according to the voltage data and the current data;
[0075] 107. Update the original electroacoustic transducer admittance model according to the actual admittance model parameters to obtain the preset admittance model.
[0076] The voltage data and the current data are the voltage and current at both ends of the electroacoustic transducer. The original electroacoustic transducer admittance model refers to the electroacoustic transducer admittance model whose model parameters are not updated in real time.
[0077] Specifically, the voltage and current at both ends of the electroacoustic transducer can be monitored by a voltage and current collector (IV sensor), or the voltage data and current data can also be obtained through analog signals. The voltage values and current values corresponding to multiple frequencies of the analog signal are intercepted and converted into digital signals to calculate the actual admittance model parameters of the electroacoustic transducer. Then, the model parameters of the original electroacoustic transducer admittance model are updated according to the actual admittance model parameters to obtain a preset admittance model.
[0078] The original electroacoustic transducer admittance model can be expressed by the following function:
[0079]
[0080] The electroacoustic transducer in the original electroacoustic transducer admittance model may be a moving coil electroacoustic transducer, such as the moving coil electroacoustic transducer corresponding to the above function, which is only used as an example in this embodiment. I(s) is a current signal function, U(s) is a voltage signal function, and w 0 is the resonant angular frequency of the electroacoustic transducer, Q ts The quality factor, Q ms is the mechanical quality factor of the electroacoustic transducer, R e is the DC resistance of the electroacoustic transducer, and Le is the inductance of the voice coil of the electroacoustic transducer.
[0081] It should be noted that, since the ratio of the current signal function to the voltage signal function of the electroacoustic transducer at the corresponding frequency can be directly calculated through the voltage data and the current data, if the solution of the above function is known, the parameters of the function can be reversely deduced through the above function, thereby solving the actual admittance model parameters of the electroacoustic transducer, such as the actual resonant angular frequency w of the electroacoustic transducer in the above function.0 , the actual mechanical quality factor Q of the electroacoustic transducer ms , the actual quality factor Q of the electroacoustic transducer ts , the actual DC resistance of the electroacoustic transducer, the actual inductance of the voice coil of the electroacoustic transducer, etc. Exemplarily, the actual admittance model parameters of the electroacoustic transducer can be obtained by least square method or solving multiple sets of equations.
[0082] 102. Determine an input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal.
[0083] Specifically, since the first prediction signal is one of the voltage signal and the current signal, and the second prediction signal is the other of the voltage signal and the current signal, the product of the first prediction signal and the second prediction signal can be directly calculated to obtain the input power. Since both the voltage signal and the current signal have high accuracy, the input power of the electroacoustic transducer determined based on the voltage signal and the current signal is more accurate.
[0084] It is worth noting that, when there are multiple power amplifiers, the input powers of the various power amplifiers may be accumulated, and the accumulated result may be used as the input power.
[0085] 103 . Determine the output power of the power supply according to a preset mapping relationship between the output power of the power supply and the input power of the electroacoustic transducer, and the input power.
[0086] Among them, the preset mapping relationship between the power supply output power and the electroacoustic transducer input power is used to characterize the correlation between the power supply output power and the electroacoustic transducer input power. The mapping relationship can be a functional expression between the power supply output power and the electroacoustic transducer input power, or it can be a mapping relationship table between multiple power supply powers and corresponding multiple electroacoustic transducer input powers.
[0087] Specifically, after the input power is determined, the output power can be determined according to a preset mapping relationship between the power output power and the electroacoustic transducer input power, so that the peak current of the power supply can be subsequently analyzed and controlled based on the output power.
[0088] In a specific implementation, before determining the output power of the power supply according to the preset mapping relationship between the power supply output power and the electroacoustic transducer input power and the input power in step 103, the method may further include the following steps 108 to 110, which are as follows:
[0089] 108. Obtain a historical output power set of the power source within a preset period of time, wherein the historical output power set includes a plurality of historical output powers;
[0090] 109. Obtain a historical input power set of the electroacoustic transducer within the preset time period, wherein the historical output power set includes a plurality of historical input powers;
[0091] 110. Construct a mapping relationship between the preset power supply output power and the electroacoustic transducer input power according to the historical output power set and the historical input power set.
[0092] The preset time period may be the last week, last month, etc.
[0093] Specifically, multiple historical output powers of the power supply within a preset time period and multiple historical input powers of the electroacoustic transducer within a preset time period can be fitted. For example, the historical output power at the same moment is used as the horizontal coordinate, and the historical input power is used as the vertical coordinate. Points are plotted and fitted on a two-dimensional coordinate system to construct a mapping relationship between the preset power supply output power and the electroacoustic transducer input power.
[0094] 104. Adjust the input power of the electroacoustic transducer based on the output power and a preset power threshold to control the peak current of the power supply.
[0095] The preset power threshold refers to a pre-set critical power used to determine whether the peak current of the power supply exceeds the peak current limit condition. The preset power threshold can be set according to the actual working power supply.
[0096] Specifically, after determining the output power of the power supply, it is possible to determine whether the peak current of the power supply meets the peak current limiting condition of the power supply based on the output power and the preset power threshold. If the peak current of the power supply does not meet the peak current limiting condition of the power supply, the input power of the electroacoustic transducer is adjusted so that the peak current of the power supply meets the peak current limiting condition, thereby achieving control of the peak current of the power supply and protecting the power supply. Since the output power of the power supply is real-time and accurate, the input power is adjusted according to the output power, thereby improving the accuracy of the peak current control of the power supply.
[0097] In the present embodiment, since the input power is determined based on the predicted output voltage and output current, the real-time nature of the input power is ensured. Compared with the input power calculated based on impedance, the input power is more accurate. At the same time, the output power of the power supply is determined based on the mapping relationship between the preset power supply output power and the electroacoustic transducer input power, so that the output power is real-time and accurate. The input power is adjusted according to the output power, thereby improving the accuracy of the peak current control of the power supply.
[0098] In a specific implementation, the step 104 of adjusting the input power of the electroacoustic transducer based on the output power and the preset power threshold to achieve control of the peak current of the power supply may include the following step 104A, which is as follows:
[0099] 104A. If the output power is greater than the preset power threshold, adjust the gain corresponding to the audio input signal to a preset gain, or adjust the gain corresponding to the audio input signal according to the preset power threshold and the output power.
[0100] Specifically, since the output power is positively correlated with the peak current of the power supply, when the output power is greater than the preset power threshold, it indicates that the peak current of the power supply does not meet the peak current limiting condition of the power supply. The peak current is controlled by controlling the input power of the electroacoustic transducer. By controlling the input power of the electroacoustic transducer, the input power of the electroacoustic transducer can be adjusted by adjusting the gain corresponding to the audio input signal. The gain to be adjusted can also be determined based on the preset power threshold and the output power, such as the difference or ratio between the preset power threshold and the output power, and then the gain of the audio input signal is adjusted according to the gain to be adjusted, so that the peak current of the electroacoustic transducer meets the peak current limiting condition of the power supply, thereby protecting the power supply.
[0101] In a specific implementation, the step 104A of adjusting the gain corresponding to the audio input signal to a preset gain may include the following step 104A1, which is specifically as follows:
[0102] 104A1. Adjust the gain corresponding to the audio input signal from the current gain to the preset gain, wherein the current gain is greater than the preset gain;
[0103] The step 104A of adjusting the gain corresponding to the audio input signal according to the preset power threshold and the output power may include the following steps 104A2 to 104A3, which are specifically as follows:
[0104] 104A2. If the output power is greater than the preset power threshold, determine a target gain corresponding to the audio input signal according to the preset power threshold and the output power;
[0105] 104A3. Adjust the gain corresponding to the audio input signal according to the target gain.
[0106] Specifically, when the output power is greater than the preset power threshold, it indicates that the peak current of the power supply does not meet the peak current limiting condition of the power supply. Then, the peak current is controlled by controlling the input power of the electroacoustic transducer. The input power of the electroacoustic transducer can be controlled by adjusting the gain corresponding to the audio input signal to adjust the input power of the electroacoustic transducer. The adjustment method can be: adjusting the gain corresponding to the audio input signal from the current gain to the preset gain, and the current gain is greater than the preset gain, that is, attenuating the audio input signal, that is, reducing the input power, so that the peak current of the electroacoustic transducer meets the peak current limiting condition of the power supply, and the power supply is protected. The adjustment method can also be: calculating the ratio of the preset power threshold to the output power, taking the ratio as the target gain, and adjusting the gain corresponding to the audio input signal to the target gain. Since the ratio is less than 1, the audio input signal is attenuated, that is, reducing the input power, so that the peak current of the electroacoustic transducer meets the peak current limiting condition of the power supply, and the power supply is protected.
[0107] Furthermore, in order to better implement the peak current control method of the power supply in the embodiment of the present application, on the basis of the peak current control method of the power supply, the present application also provides a peak current control device of the power supply, see Figure 2 , Figure 2 A schematic diagram of a module of a peak current control device of a power supply in an embodiment of the present application is shown, wherein the power supply is used to power an amplifier, and the amplifier is used to power an electroacoustic transducer, and the peak current control device 200 of the power supply includes:
[0108] A prediction module 201 is used to obtain a first prediction signal of the electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer according to the first prediction signal using a preset signal prediction model, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal;
[0109] A first determination module 202 is used to determine the input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal; a second determination module 203 is used to determine the output power of the power supply according to a preset mapping relationship between the power supply output power and the input power of the electroacoustic transducer and the input power;
[0110] The control module 204 is configured to adjust the input power of the electroacoustic transducer based on the output power and a preset power threshold, so as to control the peak current of the power supply.
[0111] In the embodiment of the present application, the preset signal prediction model is a preset impedance model or a preset admittance model; the prediction module 201 is specifically used for:
[0112] If the preset signal prediction model is a preset impedance model, determining that the first prediction signal is a current signal and the second prediction signal is a voltage signal;
[0113] Based on the first prediction signal, using a preset impedance model to predict a second prediction signal of the electroacoustic transducer;
[0114] If the preset signal prediction model is a preset admittance model, determining that the first prediction signal is a voltage signal and the second prediction signal is a current signal;
[0115] Based on the first prediction signal, a preset admittance model is used to predict a second prediction signal of the electroacoustic transducer.
[0116] In the embodiment of the present application, the prediction module 201 is further used for:
[0117] If the first prediction signal is a voltage signal, obtaining an audio input signal and a corresponding gain of the electroacoustic transducer;
[0118] determining the voltage signal according to the audio input signal and the gain;
[0119] If the first prediction signal is a current signal, the current signal is collected by a current collector.
[0120] In the embodiment of the present application, the prediction module 201 is further used for:
[0121] If the first prediction signal is a voltage signal, obtaining an audio input signal and a corresponding gain of the electroacoustic transducer;
[0122] determining the voltage signal according to the audio input signal and the gain;
[0123] If the first prediction signal is a current signal, the current signal is collected by a current collector.
[0124] In the embodiment of the present application, the prediction module 201 is further used for:
[0125] The first prediction signal is used as the input of the preset admittance model, and is processed by the preset admittance model to obtain the second prediction signal output by the preset admittance model, wherein the preset admittance model is an electroacoustic transducer admittance model that updates the model parameters of the electroacoustic transducer admittance model in real time.
[0126] In the embodiment of the present application, the peak current control device 200 of the power supply further includes:
[0127] A first acquisition module is used to acquire an original electroacoustic transducer admittance model, voltage data and current data of the electroacoustic transducer;
[0128] A third determination module, used to determine actual admittance model parameters of the electroacoustic transducer according to the voltage data and the current data;
[0129] An updating module is used to update the original electroacoustic transducer admittance model according to the actual admittance model parameters to obtain the preset admittance model.
[0130] In the embodiment of the present application, the control module 204 is specifically used for:
[0131] If the output power is greater than the preset power threshold, the gain corresponding to the audio input signal is adjusted to a preset gain, or the gain corresponding to the audio input signal is adjusted according to the preset power threshold and the output power.
[0132] In the embodiment of the present application, the control module 204 is further used to:
[0133] Adjusting the gain corresponding to the audio input signal from a current gain to a preset gain, wherein the current gain is greater than the preset gain;
[0134] Wherein, adjusting the gain corresponding to the audio input signal according to the preset power threshold and the output power includes:
[0135] Determining a target gain corresponding to the audio input signal according to the preset power threshold and the output power;
[0136] The gain corresponding to the audio input signal is adjusted according to the target gain.
[0137] In the embodiment of the present application, the peak current control device 200 of the power supply further includes:
[0138] A second acquisition module is used to acquire a historical output power set of the power supply within a preset period of time, wherein the historical output power set includes a plurality of historical output powers;
[0139] A third acquisition module is used to acquire a historical input power set of the electroacoustic transducer within the preset time period, wherein the historical output power set includes a plurality of historical input powers;
[0140] A construction module is used to construct a mapping relationship between the preset power supply output power and the electroacoustic transducer input power according to the historical output power set and the historical input power set.
[0141] It should be understood that Figure 3The device and its modules shown can be implemented in various ways. For example, in some embodiments, the device and its modules can be implemented by hardware, software or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art will understand that the above-mentioned method and system can be implemented using computer executable instructions and / or included in a processor control code, for example, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The system and its modules of the present application can not only be implemented by hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software such as executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (for example, firmware).
[0142] It should be noted that the above description of the device and its modules is only for convenience of description and does not limit the present application to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. For example, Figure 3 The prediction module 201, the first determination module 202, the second determination module 203, and the control module 204 disclosed in the system may be different modules in a system, or one module may realize the functions of two or more of the above modules.
[0143] Furthermore, an embodiment of the present application also provides an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the peak current control method of the power supply described in any of the above embodiments. The electronic device can be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a Universal Serial Bus (USB) docking station, a stylus, a True Wireless Stereo (TWS) headset, a car console, a car, a smart wearable device, a mobile terminal, a smart home device, etc.
[0144] Among them, smart wearable devices include but are not limited to smart watches, smart bracelets, and cervical massagers. Mobile terminals include but are not limited to smart phones, laptops, tablets, and point of sales terminals (POS). Smart home devices include but are not limited to smart sockets, smart rice cookers, smart sweepers, and smart lights.
[0145] Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the peak current control methods of a power supply provided in the embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:
[0146] Acquire a first prediction signal of the electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal;
[0147] determining an input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal;
[0148] Determining the output power of the power supply according to a preset mapping relationship between the output power of the power supply and the input power of the electroacoustic transducer, and the input power;
[0149] Based on the output power and a preset power threshold, the input power of the electroacoustic transducer is adjusted to achieve control of the peak current of the power supply.
[0150] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0151] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0152] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0153] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0154] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0155] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this application is hereby incorporated by reference in its entirety, except for application history documents that are inconsistent with or conflicting with the content of this application, and documents that limit the broadest scope of the claims of this application (currently or later attached to this application). It should be noted that if the descriptions, definitions, and / or use of terms in the accompanying materials of this application are inconsistent or conflicting with the content described in this application, the descriptions, definitions, and / or use of terms in this application shall prevail.
[0156] The peak current control method, device, electroacoustic transducer control method, electronic device and storage medium of a power supply provided in the embodiments of the present application are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A peak current control method for a power supply, characterized in that: The power supply is used to supply power to a power amplifier, and the power amplifier is used to supply power to an electroacoustic transducer. The peak current control method of the power supply includes: Acquire a first prediction signal of the electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal; determining an input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal; Determining the output power of the power supply according to a preset mapping relationship between the output power of the power supply and the input power of the electroacoustic transducer, and the input power; Based on the output power and a preset power threshold, the input power of the electroacoustic transducer is adjusted to achieve control of the peak current of the power supply.
2. The peak current control method of a power supply according to claim 1, characterized in that: The preset signal prediction model is a preset impedance model or a preset admittance model; The step of predicting a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal includes: If the preset signal prediction model is a preset impedance model, determining that the first prediction signal is a current signal and the second prediction signal is a voltage signal; Based on the first prediction signal, using a preset impedance model to predict a second prediction signal of the electroacoustic transducer; If the preset signal prediction model is a preset admittance model, determining that the first prediction signal is a voltage signal and the second prediction signal is a current signal; Based on the first prediction signal, a preset admittance model is used to predict a second prediction signal of the electroacoustic transducer.
3. The peak current control method of a power supply according to claim 1, characterized in that: The obtaining of the first prediction signal of the electroacoustic transducer comprises: If the first prediction signal is a voltage signal, obtaining an audio input signal and a corresponding gain of the electroacoustic transducer; determining the voltage signal according to the audio input signal and the gain; If the first prediction signal is a current signal, the current signal is collected by a current collector.
4. The peak current control method of a power supply as claimed in claim 2, characterized in that: The step of predicting a second prediction signal of the electroacoustic transducer based on the first prediction signal using a preset admittance model includes: The first prediction signal is used as the input of the preset admittance model, and is processed by the preset admittance model to obtain the second prediction signal output by the preset admittance model, wherein the preset admittance model is an electroacoustic transducer admittance model that updates the model parameters of the electroacoustic transducer admittance model in real time.
5. The peak current control method of a power supply as claimed in claim 4, characterized in that: The method further comprises: Acquiring an original electroacoustic transducer admittance model, voltage data and current data of the electroacoustic transducer; Determining actual admittance model parameters of the electroacoustic transducer according to the voltage data and the current data; The original electroacoustic transducer admittance model is updated according to the actual admittance model parameters to obtain the preset admittance model.
6. The peak current control method of a power supply as claimed in claim 3, characterized in that: The step of adjusting the input power of the electroacoustic transducer based on the output power and a preset power threshold comprises: If the output power is greater than the preset power threshold, the gain corresponding to the audio input signal is adjusted to a preset gain, or the gain corresponding to the audio input signal is adjusted according to the preset power threshold and the output power.
7. The peak current control method of a power supply as claimed in claim 6, characterized in that: The step of adjusting the gain corresponding to the audio input signal to a preset gain includes: Adjusting the gain corresponding to the audio input signal from a current gain to a preset gain, wherein the current gain is greater than the preset gain; The adjusting the gain corresponding to the audio input signal according to the preset power threshold and the output power includes: Determining a target gain corresponding to the audio input signal according to the preset power threshold and the output power; The gain corresponding to the audio input signal is adjusted according to the target gain.
8. The peak current control method of a power supply as claimed in claim 1, characterized in that: Before determining the output power of the power supply according to the preset mapping relationship between the power supply output power and the input power of the electroacoustic transducer and the input power, the method further includes: Acquire a historical output power set of the power supply within a preset period of time, wherein the historical output power set includes a plurality of historical output powers; Acquire a historical input power set of the electroacoustic transducer within the preset time period, wherein the historical output power set includes a plurality of historical input powers; A mapping relationship between the preset power supply output power and the electroacoustic transducer input power is constructed according to the historical output power set and the historical input power set.
9. A peak current control device for a power supply, characterized in that: The power supply is used to supply power to the power amplifier, and the power amplifier is used to supply power to the electroacoustic transducer. The peak current control device of the power supply includes: A prediction module, used to obtain a first prediction signal of the electroacoustic transducer, and predict a second prediction signal of the electroacoustic transducer using a preset signal prediction model according to the first prediction signal, wherein the first prediction signal is one of a voltage signal and a current signal, and the second prediction signal is the other of the voltage signal and the current signal; A first determination module, configured to determine an input power of the electroacoustic transducer according to the first prediction signal and the second prediction signal; A second determination module, configured to determine the output power of the power supply according to a preset mapping relationship between the power supply output power and the input power of the electroacoustic transducer, and the input power; A control module is used to adjust the input power of the electroacoustic transducer based on the output power and a preset power threshold so as to control the peak current of the power supply.
10. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the peak current control method of a power supply according to any one of claims 1 to 8.
11. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the peak current control method of a power supply according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for numeral sound signal processing and digital type sound frequency directional loudspeaker
CN101203062A
Photovoltaic grid-connected inverter power limit method and device, controller and inverter
CN109888827A
Loudspeaker output power control method and system
CN113271522A
Battery control method and device, electronic equipment and computer readable storage medium
CN113547953A
Amplifier, wireless communication device, and amplification method
JP2019068225A