CN109089190B - Impedance curve determination method and device, storage medium and terminal equipment - Google Patents

Impedance curve determination method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN109089190B
CN109089190B CN201811258377.1A CN201811258377A CN109089190B CN 109089190 B CN109089190 B CN 109089190B CN 201811258377 A CN201811258377 A CN 201811258377A CN 109089190 B CN109089190 B CN 109089190B
Authority
CN
China
Prior art keywords
current
signal
transfer parameter
impedance
frequency domain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811258377.1A
Other languages
Chinese (zh)
Other versions
CN109089190A (en
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811258377.1A priority Critical patent/CN109089190B/en
Publication of CN109089190A publication Critical patent/CN109089190A/en
Application granted granted Critical
Publication of CN109089190B publication Critical patent/CN109089190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The method comprises the steps of obtaining a current signal and a voltage signal of a loudspeaker; determining whether the current impedance transmission parameter meets a preset condition or not according to the current signal and the voltage signal; if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter; and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker. By adopting the technical scheme, the preliminarily determined impedance curve can be adjusted according to the current signal and the voltage signal, so that the impedance curve is continuously close to a real value, and the current state of the loudspeaker is reflected.

Description

Impedance curve determination method and device, storage medium and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of speakers, in particular to an impedance curve determining method and device, a storage medium and a terminal device.
Background
With the rapid development of multimedia technology on mobile terminals, people are used to listen to music and watch videos on mobile terminals, and speakers are important parts to be used when users listen to music or watch videos, so that monitoring of the performance of the speakers in the mobile terminals is more important.
The impedance curve is an important index capable of representing the loudspeaker, and means that the loudspeaker represents a curve with different impedance values when inputting different frequency signals, but the impedance curve calculated in the prior art cannot well represent the state of the loudspeaker in real time, so that the calculation method of the impedance curve needs to be optimized.
Disclosure of Invention
The impedance curve determining method and device, the storage medium and the terminal device provided by the embodiment of the application can improve the accuracy of the impedance curve.
In a first aspect, an embodiment of the present application provides an impedance curve determining method, including:
acquiring a current signal and a voltage signal of a loudspeaker;
determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal;
if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter;
and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
In a second aspect, an embodiment of the present application provides an impedance curve determining apparatus, including:
the signal acquisition module is used for acquiring a current signal and a voltage signal of the loudspeaker;
the condition judgment module is used for determining whether the current impedance transmission parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal;
a curve determining module, configured to determine an impedance curve of the speaker according to the current impedance transfer parameter if the current impedance transfer parameter meets a preset condition;
and the parameter adjusting module is used for determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal if the current impedance transfer parameter does not meet a preset condition, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements an impedance curve determining method according to embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program to implement the impedance curve determining method according to the embodiment of the present application.
According to the impedance curve determining scheme provided by the embodiment of the application, a current signal and a voltage signal of a loudspeaker are obtained; determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal; if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter; and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker. By adopting the technical scheme, the preliminarily determined impedance curve can be adjusted according to the current signal and the voltage signal, so that the impedance curve is continuously close to a real value, and the current state of the loudspeaker is reflected.
Drawings
Fig. 1 is a schematic flowchart of an impedance curve determining method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another impedance curve determination method according to an embodiment of the present disclosure;
fig. 3 is a schematic block diagram of an adaptive filter provided in an embodiment of the present application;
fig. 4 is a block diagram of an impedance curve determining apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another terminal device provided in the embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The impedance curve is an important index capable of representing the loudspeaker, and means that the loudspeaker shows a curve with different impedance values when inputting different frequency signals, and a general impedance curve calculation method of the loudspeaker is mainly based on averaging the impedance within a period of time, but the method cannot well represent the state of the loudspeaker in real time.
Fig. 1 is a schematic flowchart of an impedance curve determining method provided in an embodiment of the present application, where the method may be executed by an impedance curve determining apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal device, or may be integrated in other devices installed with an operating system. As shown in fig. 1, the method includes:
and S110, acquiring a current signal and a voltage signal of the loudspeaker.
When the loudspeaker plays audio, the current signal and the voltage signal of the loudspeaker can change along with the flowing of the audio. The current signal of the loudspeaker may include current data in a time interval, the time interval may be one frame, and the amount of current data included in each frame may be set according to the specific application requirements. For example, the current signal may include N current data, and the current signal i (N) ═ i1,i2,…in]Wherein N is 1,2 … N, N is 1024.
The voltage signal of the loudspeaker may comprise voltage data for a time interval,the time interval may be one frame, and the amount of the voltage data included in each frame may be set according to the specific application requirement. For example, the voltage signal may include N voltage data, and the voltage signal u (N) ═ u1,u2,…un]Wherein N is 1,2 … N, N is 1024.
And S111, determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal.
The current impedance transfer parameter includes impedance data of a current time interval, which may be predicted impedance data of the current time interval, and the number of the impedance data may correspond to the number of current data included in the current signal. The initial current impedance transfer parameter may be a set of estimated impedance data, and the current impedance transfer parameter may change as subsequent iterations proceed. Illustratively, the initial present impedance transfer parameter Z0(k)=[0,0,0,…0]. The current impedance transfer parameter may determine an estimated impedance curve of the speaker by using a set of impedance data included in the current impedance transfer parameter, i.e., the impedance change state of the speaker may be reflected.
The preset condition is a condition for judging an error range of the current impedance transfer parameter and the change state of the real impedance of the loudspeaker. If the current impedance transmission parameter meets the preset condition, the error ratio of the current impedance transmission parameter to the real impedance change state is smaller, and the current impedance transmission parameter can be used for determining the impedance curve of the loudspeaker; if the preset condition is not met, the error between the current impedance transfer parameter and the change state of the real impedance is larger, and the current impedance transfer parameter needs to be updated iteratively so as to determine the impedance transfer parameter closer to the change state of the real impedance.
The current signal and the voltage signal are the current state and the voltage state of the loudspeaker which are actually measured, and the impedance of the loudspeaker has a certain correlation relation with the voltage and the voltage, so that the current signal and the voltage signal of the loudspeaker can reflect the change state of the impedance of the loudspeaker, and whether the estimated current impedance transmission parameter meets the preset condition or not can be determined according to the current signal and the voltage signal.
Optionally, determining whether the current impedance transfer parameter of the speaker meets the preset condition according to the current signal and the voltage signal may be implemented by:
performing Fourier transform on the current signal and the voltage signal to obtain a frequency domain current signal and a frequency domain voltage signal; and determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the frequency domain current signal and the frequency domain voltage signal.
The fourier transform may be a fast fourier transform, the frequency domain current signal i (K) ═ FFT (i (n)), and the frequency domain voltage signal u (K) ═ FFT (u (n)), where K ═ 1,2, … K, K is a sampling point in the frequency domain, and K may be 1024.
The acquired current signal and voltage signal of the loudspeaker comprise current data and voltage data on a time domain, so that Fourier change needs to be carried out on the current signal and the voltage signal to obtain a current signal on a frequency domain and a voltage signal on the frequency domain; the change states of the voltages at different frequencies and the change of the current at different frequencies can be obtained, and then whether the current impedance transmission parameter meets the preset condition or not can be determined according to the frequency domain current signal and the frequency domain voltage signal, wherein the change states of the impedance are the change states of the impedance at different frequencies.
Optionally, determining whether the current impedance transfer parameter of the speaker meets the preset condition according to the frequency domain current signal and the frequency domain voltage signal may be implemented by:
determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal; and if the voltage error is lower than a preset error threshold value, determining that the current impedance transfer parameter meets a preset condition.
The present impedance transfer parameter comprises predicted impedance data, so that a group of predicted voltage data can be calculated according to the relation of current, impedance and voltage according to the frequency domain current and the present impedance transfer parameter and serve as a voltage prediction signal. The frequency domain voltage signal is actually measured voltage data of the loudspeaker, and a certain error exists between the voltage prediction signal and the frequency domain voltage signal, namely a prediction error; the error between the voltage prediction signal and the frequency domain voltage signal may reflect the error of the current impedance transfer parameter and the real changing state of the impedance. If the voltage error is lower than the preset error threshold, it indicates that the error ratio between the voltage prediction signal and the frequency domain voltage signal determined according to the current impedance transfer parameter is small, and the error between the current impedance transfer parameter and the real impedance change state is also small, so that it can be determined that the current impedance producing area parameter meets the preset condition.
And S112, if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter.
If the current impedance transfer parameter meets the preset condition, the current impedance transfer parameter is very close to the real impedance change state of the loudspeaker, and the impedance curve of the loudspeaker can be determined according to the current impedance transfer parameter.
And S113, if the current impedance transfer parameter does not meet a preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
If the current impedance transfer parameter does not meet the preset condition, it indicates that a large error exists between the current impedance transfer parameter and the change state of the real impedance of the loudspeaker, so that the impedance transfer parameter needs to be updated iteratively. The current impedance transfer parameter may be iteratively updated according to the current signal and the voltage signal to obtain an updated impedance transfer parameter, the updated impedance transfer parameter is used as the current impedance transfer parameter, and the operation of obtaining the current signal and the voltage signal of the speaker is returned to be executed, that is, whether the new current impedance transfer parameter meets the preset condition is judged again. And continuously iterating and updating the current impedance transfer parameter until the current impedance transfer parameter meets the preset condition, so that the current impedance transfer parameter which is closer to the real impedance change state can be obtained.
Optionally, determining an updated impedance transfer parameter from the voltage signal, the present impedance transfer parameter, and the current signal may be performed by:
and determining a calibration parameter according to the voltage error and the frequency domain current signal, and calibrating the current impedance transfer parameter according to the calibration parameter to obtain an updated impedance transfer parameter.
The voltage error may reflect an error of the predicted voltage signal and the frequency domain voltage signal, and may also reflect an error of a current impedance transfer parameter and a change state of a real impedance of the speaker, so that a calibration parameter may be determined according to the voltage error and the frequency domain current signal, where the calibration parameter is a calibration parameter in an impedance dimension, and the current impedance transfer parameter may be calibrated according to the calibration parameter, so as to obtain an updated impedance transfer parameter.
Optionally, determining an impedance curve according to the current impedance transfer parameter may be implemented by:
and extracting a real part array of the current impedance transfer parameter, and determining an impedance curve according to the real part array, wherein the current impedance transfer parameter is a complex array.
The current impedance transmission parameters are continuously updated by iteration through the frequency domain voltage signals and the frequency domain current signals, the current impedance transmission parameters are a group of complex impedance data, a real part in the current impedance transmission parameters can be extracted to serve as a real part array, the real part array reflects the change state of real numbers of impedances corresponding to different frequencies, and therefore an impedance curve can be determined according to the real part array.
Real part array Rt(k)=real(Zt(k) Wherein Z) ist(k) For the current impedance transfer parameter, real () is the real part, and the real part array is finally obtainedRt(k) From this set of real numbers, an impedance curve can be determined.
The impedance curve determining method provided by the embodiment of the application comprises the steps of obtaining a current signal and a voltage signal of a loudspeaker; determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal; if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter; and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker. By adopting the technical scheme, the preliminarily determined impedance curve can be adjusted according to the current signal and the voltage signal, so that the impedance curve is continuously close to a real value, and the current state of the loudspeaker is reflected.
Fig. 2 is a schematic flow chart of another impedance curve determining method provided in an embodiment of the present application, and on the basis of the technical solution provided in the foregoing embodiment, as shown in fig. 2, optionally, the method includes:
and S120, acquiring a current signal and a voltage signal of the loudspeaker.
Reference may be made to the above description for specific embodiments, which are not repeated herein.
And S121, inputting the current signal as an input signal and the voltage signal as a desired response to an adaptive filter.
S122, carrying out Fourier transform on the current signal and the voltage signal through the adaptive filter to obtain a frequency domain current signal and a frequency domain voltage signal, and determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition according to the frequency domain current signal and the frequency domain voltage signal.
The adaptive filter may be a frequency domain adaptive filter, and after the current signal is used as an input signal and the voltage signal is input to the frequency domain adaptive filter as an expected response according to the characteristics of the frequency domain adaptive filter, the adaptive filter performs fourier transform on the current signal and the voltage signal to obtain a frequency domain current signal and a frequency domain voltage signal. And determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition according to the frequency domain current signal and the frequency domain voltage signal.
As shown in fig. 3, the current signal is used as an input signal, and the voltage signal is used as a desired signal input to the value adaptive filter. The self-adaptive filter comprises a Fourier transform unit, an error calculation unit, a self-adaptive unit and a time-varying iterative filter; the Fourier transform unit is used for carrying out frequency domain transform on the input signal and the expected response, the error calculation unit is used for calculating the error between the value obtained by multiplying the input signal by the time-varying iteration coefficient and the expected response, the self-adaption unit is used for generating an adjustment signal according to the error and the input signal, and the time-varying iteration filter is used for adjusting the time-varying iteration coefficient according to the adjustment signal so as to obtain a new time-varying iteration coefficient. The frequency domain adaptive filter is applied to the determined impedance curve, the time-varying iteration coefficient of the time-varying iteration filter is the current impedance transfer parameter in the embodiment of the application, and different current impedance transfer parameters form an impedance transfer function.
Optionally, determining whether the current impedance transfer parameter of the speaker meets the preset condition according to the frequency domain current signal and the frequency domain voltage signal may be implemented by:
determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal; and if the voltage error is lower than a preset error threshold value, determining that the current impedance transfer parameter meets a preset condition.
Wherein the voltage prediction signal is determined by the adaptive filter according to the following formula:
Yt(k)=It(k)Zt(k);
determining a voltage error by the adaptive filter according to the following equation:
Et(k)=Ut(k)-Yt(k);
wherein, It(k) For frequency-domain current signals, Zt(k) For the current impedance transfer parameter, Yt(k) For voltage prediction signals, Ut(k) For a frequency domain voltage signal, Et(k) Is a voltage error.
And S123, if the adaptive filter is in a convergence state, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter.
The adaptive filter can continuously iterate internal filtering parameters until the adaptive filter enters a convergence state, the fact that the adaptive filter enters the convergence state means that the determined voltage error is lower than a preset error threshold value, and then an impedance curve of the loudspeaker can be determined according to the current impedance transfer parameters.
And S124, if the adaptive filter is not in a convergence state, determining an updated impedance transmission parameter according to the voltage signal, the current impedance transmission parameter and the current signal, taking the updated impedance transmission parameter as the current impedance transmission parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
If the adaptive filter is not in the convergence state, it indicates that the adaptive filter is still in the iterative process of the filter parameters, that is, the adaptive filter is still in the training stage, and the voltage error is still higher than the preset error threshold, so that the current impedance transfer parameter needs to be iteratively updated.
And determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal through the adaptive filter, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
Optionally, determining, by the adaptive filter, an updated impedance transfer parameter from the voltage signal, the present impedance transfer parameter, and the current signal may be implemented by:
a voltage prediction signal is determined according to the frequency domain current signal and the current impedance transfer parameter, and a voltage error between the voltage prediction signal and the frequency domain voltage signal is determined.
Determining an updated impedance transfer parameter according to the following equation:
Figure BDA0001843294760000081
wherein Z ist(k) For the current impedance transfer parameter, It(k) In the form of a frequency-domain current signal,
Figure BDA0001843294760000082
is a complex conjugate of the frequency domain current signal, Et(k) Is a voltage error, Zt+1(k) For updating the impedance transfer parameter, k is a frequency domain sampling point, and u is a convergence step length of the adaptive filter. Wherein, u can be 0.1-0.2, and can also adopt variable step length, that is, the current signal and the voltage signal are changed with the input of new current signals and new voltage signals each time; can be set according to the requirements in practical application.
The embodiment of the application provides an impedance curve determining method, which is characterized in that an adaptive filter is adopted to determine an impedance curve, and iterative time-varying coefficients are continuously updated through the adaptive filter, so that predicted current impedance transfer parameters are closer to a real impedance curve, and the current state of a loudspeaker is reflected.
Fig. 4 is a block diagram of an impedance curve determining apparatus according to an embodiment of the present application, where the apparatus may perform an impedance curve determining method, as shown in fig. 4, the apparatus includes:
a signal obtaining module 210, configured to obtain a current signal and a voltage signal of the speaker;
the condition judgment module 211 is configured to determine whether a current impedance transfer parameter of the speaker meets a preset condition according to the current signal and the voltage signal;
a curve determining module 212, configured to determine an impedance curve of the speaker according to the current impedance transfer parameter if the current impedance transfer parameter meets a preset condition;
and the parameter adjusting module 213 is configured to determine, if the current impedance transfer parameter does not meet a preset condition, an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter, and the current signal, use the updated impedance transfer parameter as the current impedance transfer parameter, and return to perform an operation of obtaining the current signal and the voltage signal of the speaker.
The impedance curve determining device provided by the embodiment of the application comprises a current signal and a voltage signal of a loudspeaker; determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal; if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter; and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker. By adopting the technical scheme, the preliminarily determined impedance curve can be adjusted according to the current signal and the voltage signal, so that the impedance curve is continuously close to a real value, and the current state of the loudspeaker is reflected.
Optionally, the condition determining module is specifically configured to:
performing Fourier transform on the current signal and the voltage signal to obtain a frequency domain current signal and a frequency domain voltage signal;
and determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the frequency domain current signal and the frequency domain voltage signal.
Optionally, the condition determining module is specifically configured to:
determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal;
and if the voltage error is lower than a preset error threshold value, determining that the current impedance transfer parameter meets a preset condition.
Optionally, the parameter adjusting module is specifically configured to:
determining a calibration parameter according to the voltage error and the frequency domain current signal;
and calibrating the current impedance transfer parameter according to the calibration parameter to obtain an updated impedance transfer parameter.
Optionally, the method further comprises:
the input module is used for taking the current signal and the voltage signal of the loudspeaker as input signals after acquiring the current signal and the voltage signal, and inputting the voltage signal to the adaptive filter as expected response;
the condition judgment module is specifically configured to:
carrying out Fourier transform on the current signal and the voltage signal through the self-adaptive filter to obtain a frequency domain current signal and a frequency domain voltage signal, and determining whether the current impedance transmission parameter of the loudspeaker meets a preset condition or not according to the frequency domain current signal and the frequency domain voltage signal; and if the self-adaptive filter is in a convergence state, determining that the current impedance transmission parameter meets a preset condition.
Optionally, the parameter adjusting module is specifically configured to:
determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal;
determining an updated impedance transfer parameter according to the following equation:
Figure BDA0001843294760000101
wherein Z ist(k) For the current impedance transfer parameter, It(k) In the form of a frequency-domain current signal,
Figure BDA0001843294760000102
is a complex conjugate of the frequency domain current signal, Et(k) Is a voltage error, Zt+1(k) For updating the impedance transfer parameter, k is a frequency domain sampling point, and u is a convergence step length of the adaptive filter.
Optionally, the curve determining module is specifically configured to:
and extracting a real part array of the current impedance transfer parameter, and determining an impedance curve according to the real part array, wherein the current impedance transfer parameter is a complex array.
The storage medium containing the computer-executable instructions provided by the embodiments of the present application is not limited to the impedance curve determination operation described above, and may also perform related operations in the impedance curve determination method provided by any embodiments of the present application.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of impedance curve determination, the method comprising:
acquiring a current signal and a voltage signal of a loudspeaker;
determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal;
if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter;
and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
The embodiment of the application provides a terminal device, and the impedance curve determining device provided by the embodiment of the application can be integrated in the terminal device.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application, and the embodiment of the present application provides a terminal device 30, which includes a memory 31, a processor 32, and a computer program stored on the memory 31 and executable on the processor, and when the processor executes the computer program, the impedance curve determining method according to the above embodiment is implemented. The terminal equipment provided by the embodiment of the application can improve the accuracy of the impedance curve.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device may include: a casing (not shown), a touch screen (not shown), touch keys (not shown), a memory 301, a Central Processing Unit (CPU) 302 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU302 and the memory 301 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory 301 is used for storing executable program codes; the CPU302 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 301 to implement the steps of:
acquiring a current signal and a voltage signal of a loudspeaker;
determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the current signal and the voltage signal;
if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter;
and if the current impedance transfer parameter does not meet the preset condition, determining an updated impedance transfer parameter according to the voltage signal, the current impedance transfer parameter and the current signal, taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
The terminal device further includes: peripheral interface 303, RF (Radio Frequency) circuitry 305, audio circuitry 306, speakers 311, power management chip 308, input/output (I/O) subsystems 309, touch screen 312, other input/control devices 310, and external ports 304, which communicate via one or more communication buses or signal lines 307.
It should be understood that the illustrated terminal device 300 is only one example of a terminal device, and that the terminal device 300 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal device for implementing impedance curve determination provided in this embodiment, where the terminal device is a mobile phone as an example.
A memory 301, the memory 301 being accessible by a CPU302, a peripheral interface 303, or the like, the memory 301 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 303, said peripheral interface 303 being capable of connecting input and output peripherals of the device to the CPU302 and the memory 301.
I/O subsystem 309, the I/O subsystem 309 may connect input and output peripherals on the device, such as touch screen 312 and other input/control devices 310, to the peripheral interface 303. The I/O subsystem 309 may include a display controller 3091 and one or more input controllers 3092 for controlling other input/control devices 310. Where one or more input controllers 3092 receive electrical signals from or send electrical signals to other input/control devices 310, the other input/control devices 310 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 3092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 312, which touch screen 312 is an input interface and an output interface between the user terminal device and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 3091 in the I/O subsystem 309 receives electrical signals from the touch screen 312 or transmits electrical signals to the touch screen 312. The touch screen 312 detects a contact on the touch screen, and the display controller 3091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 312, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 312 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 305 is mainly used to establish communication between the mobile phone and the wireless network (i.e., the network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 305 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 305 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 305 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 306 is mainly used to receive audio data from the peripheral interface 303, convert the audio data into an electric signal, and transmit the electric signal to the speaker 311.
And a speaker 311 for converting the voice signal received by the handset from the wireless network through the RF circuit 305 into sound and playing the sound to the user.
And the power management chip 308 is used for supplying power and managing power to the hardware connected with the CPU302, the I/O subsystem, and the peripheral interface.
The terminal equipment provided by the embodiment of the application can improve the accuracy of the impedance curve.
The impedance curve determining apparatus, the storage medium, and the terminal device provided in the above embodiments may execute the impedance curve determining method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the above embodiments, reference may be made to the impedance curve determination method provided in any of the embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. An impedance curve determination method, comprising:
acquiring a current signal and a voltage signal of a loudspeaker;
inputting the current signal as an input signal and the voltage signal as an expected response to an adaptive filter to obtain a current impedance transfer parameter of the loudspeaker; the self-adaptive filter comprises a Fourier transform unit, an error calculation unit, a self-adaptive unit and a time-varying iterative filter; the Fourier transform unit is used for performing frequency domain transform on the input signal and the expected response, the error calculation unit is used for calculating an error between a value obtained by multiplying the input signal by a time-varying iteration coefficient and the expected response, the adaptive unit is used for generating an adjusting signal according to the error and the input signal, and the time-varying iteration filter is used for adjusting the time-varying iteration coefficient according to the adjusting signal to obtain a new time-varying iteration coefficient, wherein the new time-varying iteration coefficient is the current impedance transfer parameter;
performing Fourier transform on the current signal and the voltage signal to obtain a frequency domain current signal and a frequency domain voltage signal;
determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the frequency domain current signal and the frequency domain voltage signal;
if the current impedance transfer parameter meets a preset condition, determining an impedance curve of the loudspeaker according to the current impedance transfer parameter;
if the current impedance transfer parameter does not meet a preset condition, determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal;
determining an updated impedance transfer parameter according to the following equation:
Figure 452832DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 121710DEST_PATH_IMAGE002
for the current impedance-transfer parameter to be,
Figure 974129DEST_PATH_IMAGE003
is the complex conjugate of the frequency domain current signal,
Figure 728458DEST_PATH_IMAGE004
in order to be able to measure the voltage error,
Figure 199891DEST_PATH_IMAGE005
in order to update the impedance transfer parameter,
Figure 723276DEST_PATH_IMAGE006
are the frequency domain sampling points and are,
Figure 887541DEST_PATH_IMAGE007
is the convergence step size of the adaptive filter;
and taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
2. The method of claim 1, wherein determining from the frequency domain current signal and the frequency domain voltage signal whether a present impedance transfer parameter of the speaker meets a preset condition comprises:
determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal;
and if the voltage error is lower than a preset error threshold value, determining that the current impedance transfer parameter meets a preset condition.
3. The method of claim 2, wherein determining updated impedance transfer parameters from the voltage signal, the present impedance transfer parameters, and the current signal comprises:
determining a calibration parameter according to the voltage error and the frequency domain current signal;
and calibrating the current impedance transfer parameter according to the calibration parameter to obtain an updated impedance transfer parameter.
4. The method of claim 1,
determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition according to the current signal and the voltage signal, wherein the determining comprises the following steps:
carrying out Fourier transform on the current signal and the voltage signal through the self-adaptive filter to obtain a frequency domain current signal and a frequency domain voltage signal, and determining whether the current impedance transmission parameter of the loudspeaker meets a preset condition or not according to the frequency domain current signal and the frequency domain voltage signal;
and if the self-adaptive filter is in a convergence state, determining that the current impedance transmission parameter meets a preset condition.
5. The method of any of claims 1 to 4, wherein determining an impedance curve based on the current impedance transfer parameter comprises:
and extracting a real part array of the current impedance transfer parameter, and determining an impedance curve according to the real part array, wherein the current impedance transfer parameter is a complex array.
6. An impedance curve determining apparatus, comprising:
the signal acquisition module is used for acquiring a current signal and a voltage signal of the loudspeaker;
the condition judgment module is used for inputting the current signal as an input signal and the voltage signal as an expected response to the adaptive filter so as to obtain the current impedance transfer parameter of the loudspeaker; the self-adaptive filter comprises a Fourier transform unit, an error calculation unit, a self-adaptive unit and a time-varying iterative filter; the Fourier transform unit is used for performing frequency domain transform on the input signal and the expected response, the error calculation unit is used for calculating an error between a value obtained by multiplying the input signal by a time-varying iteration coefficient and the expected response, the adaptive unit is used for generating an adjusting signal according to the error and the input signal, and the time-varying iteration filter is used for adjusting the time-varying iteration coefficient according to the adjusting signal to obtain a new time-varying iteration coefficient, wherein the new time-varying iteration coefficient is the current impedance transfer parameter;
the condition judgment module is further used for carrying out Fourier transform on the current signal and the voltage signal to obtain a frequency domain current signal and a frequency domain voltage signal;
determining whether the current impedance transfer parameter of the loudspeaker meets a preset condition or not according to the frequency domain current signal and the frequency domain voltage signal;
a curve determining module, configured to determine an impedance curve of the speaker according to the current impedance transfer parameter if the current impedance transfer parameter meets a preset condition;
a parameter adjusting module for adjusting the current impedance transmission parameter if the current impedance transmission parameter does not meet a preset condition
Determining a voltage prediction signal according to the frequency domain current signal and the current impedance transfer parameter, and determining a voltage error of the voltage prediction signal and the frequency domain voltage signal;
determining an updated impedance transfer parameter according to the following equation:
Figure 129167DEST_PATH_IMAGE008
wherein the content of the first and second substances,
Figure 138711DEST_PATH_IMAGE009
for the current impedance-transfer parameter to be,
Figure 782182DEST_PATH_IMAGE010
is the complex conjugate of the frequency domain current signal,
Figure 976403DEST_PATH_IMAGE011
in order to be able to measure the voltage error,
Figure 705324DEST_PATH_IMAGE012
in order to update the impedance transfer parameter,
Figure 784139DEST_PATH_IMAGE013
are the frequency domain sampling points and are,
Figure 16537DEST_PATH_IMAGE014
is the convergence step size of the adaptive filter;
and taking the updated impedance transfer parameter as the current impedance transfer parameter, and returning to execute the operation of acquiring the current signal and the voltage signal of the loudspeaker.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the impedance curve determination method according to any one of claims 1 to 5.
8. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the impedance curve determination method according to any one of claims 1 to 5 when executing the computer program.
CN201811258377.1A 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment Active CN109089190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811258377.1A CN109089190B (en) 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811258377.1A CN109089190B (en) 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109089190A CN109089190A (en) 2018-12-25
CN109089190B true CN109089190B (en) 2021-05-18

Family

ID=64844291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811258377.1A Active CN109089190B (en) 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN109089190B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654799A (en) * 2019-12-31 2020-09-11 广州励丰文化科技股份有限公司 Loudspeaker unit identification method and device
CN112887893A (en) * 2021-02-03 2021-06-01 北京小米移动软件有限公司 Loudspeaker using method, device and medium
CN115550829B (en) * 2022-11-28 2023-02-28 杭州兆华电子股份有限公司 Method and system for testing T/S parameters of loudspeaker

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196336A (en) * 2010-03-17 2011-09-21 哈曼国际工业有限公司 Audio power management system
CN104635050A (en) * 2013-11-08 2015-05-20 瑞昱半导体股份有限公司 Impedance detection device and method
CN106068007A (en) * 2016-06-07 2016-11-02 瑞声科技(新加坡)有限公司 Nonlinear loudspeaker system identifying method
CN106454679A (en) * 2016-11-17 2017-02-22 矽力杰半导体技术(杭州)有限公司 Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196336A (en) * 2010-03-17 2011-09-21 哈曼国际工业有限公司 Audio power management system
CN104635050A (en) * 2013-11-08 2015-05-20 瑞昱半导体股份有限公司 Impedance detection device and method
CN106068007A (en) * 2016-06-07 2016-11-02 瑞声科技(新加坡)有限公司 Nonlinear loudspeaker system identifying method
CN106454679A (en) * 2016-11-17 2017-02-22 矽力杰半导体技术(杭州)有限公司 Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Also Published As

Publication number Publication date
CN109089190A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN106782431B (en) Screen backlight brightness adjusting method and device and mobile terminal
CN109089190B (en) Impedance curve determination method and device, storage medium and terminal equipment
CN107294522B (en) Response method and device based on touch key, storage medium and electronic equipment
CN109379678B (en) Nonlinear compensation method, nonlinear compensation device, storage medium and terminal equipment
WO2020088153A1 (en) Speech processing method and apparatus, storage medium and electronic device
CN108156317B (en) Call voice control method and device, storage medium and mobile terminal
CN106911956B (en) Audio data playing method and device and mobile terminal
CN108810749B (en) Player control method, device, terminal equipment and storage medium
CN107770759B (en) Bluetooth voice link establishing method and device, storage medium and mobile terminal
CN108681474B (en) Application preloading method and device, storage medium and terminal
CN106776385A (en) A kind of transmission method of daily record log information, device and terminal
CN107463289A (en) A kind of calibration method of touch-screen, device, storage medium and terminal
CN107404753B (en) Volume adjusting method, device, terminal and storage medium
CN107508983B (en) Volume adjusting method and device, storage medium and terminal equipment
CN107040661A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN109119097B (en) Pitch detection method, device, storage medium and mobile terminal
CN107766546B (en) Application recommendation method and device, storage medium and terminal equipment
CN111477243A (en) Audio signal processing method and electronic equipment
CN107526569B (en) A kind of volume adjusting method, device, storage medium and mobile terminal
WO2019033436A1 (en) Volume adjustment method, device, storage medium and mobile terminal
CN108886548B (en) Method for determining device power consumption of electronic equipment, electronic equipment and storage medium
CN106603870B (en) Control method and device of playing equipment, playing equipment and mobile terminal
CN114785363A (en) Noise compensation method, device, electronic equipment and computer readable storage medium
CN107493380A (en) volume adjusting method, device, storage medium and terminal device
CN108174452B (en) Wireless network connection control method, device, storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant