CN117388754A - Load detection method, chip and electronic equipment - Google Patents

Load detection method, chip and electronic equipment Download PDF

Info

Publication number
CN117388754A
CN117388754A CN202311544632.XA CN202311544632A CN117388754A CN 117388754 A CN117388754 A CN 117388754A CN 202311544632 A CN202311544632 A CN 202311544632A CN 117388754 A CN117388754 A CN 117388754A
Authority
CN
China
Prior art keywords
signal
voltage signal
load detection
current feedback
load
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.)
Pending
Application number
CN202311544632.XA
Other languages
Chinese (zh)
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.)
Shanghai Awinic Technology Co Ltd
Original Assignee
Shanghai Awinic Technology Co 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 Shanghai Awinic Technology Co Ltd filed Critical Shanghai Awinic Technology Co Ltd
Priority to CN202311544632.XA priority Critical patent/CN117388754A/en
Publication of CN117388754A publication Critical patent/CN117388754A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/08Measuring resistance by measuring both voltage and current
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/54Testing for continuity

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The application relates to the field of audio power amplification, in particular to a load detection method, a chip and electronic equipment, which are applied to a load detection system, wherein the method comprises the following steps: judging whether the load detection system is in a first detection state or not, wherein the first detection state is an alternating current load detection state; corresponding to the load detection system being in a first detection state, acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal; and calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating load value. Thus, the accuracy of the ac load detection result can be improved.

Description

Load detection method, chip and electronic equipment
Technical Field
The application relates to the field of audio power amplification, in particular to a load detection method, a chip and electronic equipment.
Background
The audio power amplifier refers to an audio power amplifier in audio equipment, and an alternating current load of the audio power amplifier is an important technical index capable of measuring whether a loudspeaker of the audio equipment is in a normal working state or not. In some application scenarios, for example, a car audio power amplifier, whether the speaker of the audio device has an abnormal condition such as a short circuit or an open circuit can be determined by detecting the ac load of the car audio power amplifier. Therefore, how to accurately detect the ac load of the audio power amplifier is a current direction worthy of research.
Disclosure of Invention
In order to accurately detect the alternating current load of the audio power amplifier, the application provides a load detection method, a chip and electronic equipment.
In a first aspect, the present application provides a load detection method, applied to a load detection system, the method including: judging whether the load detection system is in a first detection state or not, wherein the first detection state is an alternating current load detection state; corresponding to the load detection system being in a first detection state, acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal; and calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating load value.
Based on the above-described scheme, the ac load value, which is the first load value, may be obtained by obtaining the first ac voltage signal, the second ac voltage signal, and the first current feedback signal, and based on the first ac voltage signal, the second ac voltage signal, and the first current feedback signal, without adding an additional peripheral circuit such as a digital signal processor to obtain the ac voltage signal, or detecting the ac load value by additionally providing the ac signal. And finally, the working state of the current load can be judged and processed in time based on the alternating current load value, so that the accuracy and the detection efficiency of the alternating current load detection result are improved.
In some embodiments, the first load value (i.e., the ac load value) may be obtained by fourier transform or adaptive filtering based on the first ac voltage signal, the second ac voltage signal, and the first current feedback signal.
In one possible implementation of the first aspect, the method further includes: acquiring a first direct current voltage difference and a first direct current voltage difference of the load detection system corresponding to the load detection system not being in a first detection state; and calculating a second load value corresponding to the load detection system based on the first direct current voltage difference and the first direct current difference, wherein the second load value is a direct current load value.
It can be understood that the load detection method provided by the embodiment of the application can support alternating current load detection, direct current load detection and the like, further can determine the working state of the load in the load detection system based on the detected load value, improves the accuracy and efficiency of the detection result, and does not need to acquire the voltage or current required by load detection through a peripheral circuit.
In one possible implementation of the first aspect, a first current feedback signal is obtained; comprising the following steps: acquiring a first initial current feedback signal; and filtering the first initial current feedback signal to remove the direct current signal in the first initial current feedback signal so as to obtain a first current feedback signal corresponding to the first initial current feedback signal.
Based on the scheme, the direct current signal in the first current feedback signal can be filtered, so that inherent errors existing in the analog sampling circuit in the load detection system can be eliminated, and the accuracy of the load detection result is improved.
In one possible implementation of the first aspect, the first ac voltage signal and the second ac voltage signal are acquired; comprising the following steps: acquiring a first initial alternating voltage signal; judging whether the first current feedback signal is smaller than a first preset current feedback value or not; corresponding to the fact that the first current feedback signal is smaller than or equal to a first preset current feedback value, increasing the amplitude of the first initial alternating voltage signal to obtain a first alternating voltage signal corresponding to the first initial alternating voltage signal after the amplitude is increased; corresponding to the fact that the first current feedback signal is larger than a first preset current feedback value, reducing the amplitude of the first initial alternating voltage signal to obtain a first alternating voltage signal corresponding to the first initial alternating voltage signal with smaller amplitude; a second alternating voltage signal is obtained based on the first alternating voltage signal, wherein the second alternating voltage signal is a quadrature signal of the first alternating voltage signal.
Based on the scheme, the magnitude of the first current feedback signal can be kept at one half of the current range which can be detected by the current sampling module in the load detection system, and then the accuracy of the first load value which is finally detected based on the first current feedback signal is improved.
In one possible implementation of the first aspect, the value of the first current feedback signal is 40% -60% of the current range corresponding to the load detection system.
Based on the above scheme, the accuracy of the detection result of the first load value can be improved.
In one possible implementation manner of the first aspect, corresponding to the first current feedback signal being less than or equal to the first preset current feedback value, increasing the amplitude of the first initial ac voltage signal to obtain a first ac voltage signal corresponding to the first initial ac voltage signal after the amplitude is increased, including: and generating a first sine signal and a first cosine signal based on the first initial alternating voltage signal, and obtaining a first alternating voltage signal corresponding to the first initial alternating voltage signal after the amplitude is increased by increasing the amplitude of the first sine signal and the first cosine signal, wherein the first sine signal and the first cosine signal are in an inverse relation.
In one possible implementation manner of the first aspect, the amplitude of the first initial ac voltage signal is reduced corresponding to the first current feedback signal being greater than the first preset current feedback value, so as to obtain a first ac voltage signal corresponding to the first initial ac voltage signal after the amplitude is reduced; comprising the following steps: and obtaining a first alternating voltage signal corresponding to the first initial alternating voltage signal after the amplitude reduction by reducing the amplitude of the first sine signal and the first cosine signal, wherein the first sine signal and the first cosine signal are in an inverse relation.
Based on the scheme, the first alternating voltage signals with different amplitudes and frequencies can be obtained by changing the amplitudes and frequencies of the first sine signals and the first cosine signals, and then the accurate alternating load value can be obtained while the detection range of the first load value, namely the alternating load value, is improved.
In one possible implementation of the first aspect, calculating a first load value corresponding to the load detection system based on the first ac voltage signal, the second ac voltage signal, and the first current feedback signal includes: and calculating a first load value corresponding to the load detection system and a phase difference corresponding to the first load value by utilizing a Fourier transformation iteration mode or an adaptive filtering mode based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal.
Based on the scheme, the first load value, namely the alternating current load value and the phase thereof, is calculated through a Fourier transformation iteration mode or an adaptive filtering mode, so that the accurate alternating current load value can be obtained.
In one possible implementation manner of the first aspect, the adaptive filtering manner includes a polyphase filtering manner and a hilbert filtering manner.
In a second aspect, the present application provides a load detection system comprising an arbitration module and a diagnostic module; the arbitration module is used for judging whether the load detection system is in a first detection state, wherein the first detection state is an alternating current load detection state; the diagnosis module is used for acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal corresponding to the load detection system being in a first detection state; the diagnosis module is used for calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating load value.
Based on the above-described scheme, the ac load value, which is the first load value, may be obtained by obtaining the first ac voltage signal, the second ac voltage signal, and the first current feedback signal, and based on the first ac voltage signal, the second ac voltage signal, and the first current feedback signal, without adding an additional peripheral circuit such as a digital signal processor to obtain the ac voltage signal, or detecting the ac load value by additionally providing the ac signal. And finally, the working state of the current load can be judged and processed in time based on the alternating current load value, so that the accuracy and the detection efficiency of the alternating current load detection result are improved.
In one possible implementation manner of the second aspect, the arbitration module is configured to detect that the load detection system is in a first detection state, and send a first detection instruction corresponding to the first detection state to the diagnosis module; the diagnosis module is used for detecting a first load value corresponding to the load detection system based on the first detection instruction.
In one possible implementation of the second aspect, the load detection system further includes a signal generation module, a current sampling module, and a filter; the signal generation module is used for generating a first alternating voltage signal and a second alternating voltage signal; the current sampling module is used for generating a first current feedback signal; the filter is used for filtering the first initial current feedback signal to filter the direct current signal in the first initial current feedback signal so as to obtain a first current feedback signal corresponding to the first initial current feedback signal.
In a third aspect, the present application provides a chip comprising the load detection system provided in the second aspect.
In a fourth aspect, the present application provides an electronic device, including: a memory for storing instructions; and a processor for executing instructions to implement the load detection method provided in the first aspect.
In a fifth aspect, the present application provides an electronic device, including the load detection system provided in the second aspect.
Drawings
FIG. 1 shows a schematic diagram of a load detection system 10;
FIG. 2 illustrates an arbitration logic diagram of a load detection system;
FIG. 3 shows a flow diagram of a load detection method;
FIG. 4 shows a schematic of an algorithm architecture of a signal generation module;
fig. 5 shows a schematic diagram of a signal generation module generating an ac voltage signal.
Detailed Description
Illustrative embodiments of the present application include, but are not limited to, a load detection method, a chip, and an electronic device.
The following describes in detail the specific implementation procedure of the technical solution provided in the embodiments of the present application with reference to the accompanying drawings.
It can be appreciated that the load detection method of the embodiment of the present application may be applied to any electronic device including an audio power amplifier, for example, a car audio, a sound box, a multimedia console, a digital sound console, and the like, which is not limited herein.
In order to solve the above problems, an embodiment of the present application provides a load detection method, which is applied to a load detection system, and the method includes: judging whether the load detection system is in a first detection state or not, wherein the first detection state is an alternating current load detection state; corresponding to the load detection system being in a first detection state, acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal; and calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating load value.
Based on the above scheme, the ac load value can be obtained by obtaining the first ac voltage signal, the second ac voltage signal and the first current feedback signal, wherein the second voltage signal is an orthogonal signal of the first ac voltage signal, and further based on the first ac voltage signal, the second ac voltage signal and the first current feedback signal, the ac load value can be obtained by using fourier transform or adaptive filtering, without adding an additional peripheral circuit such as a digital signal processor to obtain the ac voltage signal, or detecting the ac load value by additionally providing the ac signal, thereby improving the accuracy and the detection efficiency of ac load detection.
In some embodiments, a first direct current voltage difference and a first direct current voltage difference of the load detection system may be obtained corresponding to the load detection system not being in the first detection state; and then, calculating a second load value corresponding to the load detection system based on the first direct current voltage difference and the first direct current voltage difference, wherein the second load value is a direct current load value.
The load detection system mentioned in the present application will be described in detail. Fig. 1 shows a schematic diagram of a load detection system 10. The load detection system 10 as shown in fig. 1 may have a plurality of functional modules including: the system comprises an arbitration module, a diagnosis module, a signal generation module, a current sampling module, a digital-to-analog converter and a filter. Wherein:
the arbitration module can judge the working state of the diagnosis module of the current load detection system, and then gives corresponding load detection instructions to the diagnosis module based on the detection state of the diagnosis module. For example, the arbitration module may be configured to determine whether the load detection system is in a first detection state, the first detection state being an ac load detection state.
In some embodiments, when the arbitration module detects that the load detection system is in the first detection state, a first detection instruction corresponding to the first detection state, that is, an ac load detection instruction, may be sent to the diagnostic module of the load detection system.
In some embodiments, the arbitration logic of the load detection system, i.e., the priority of load detection, may perform load detection in the order of diagnosis in progress by the diagnostic module > direct current load detection > alternating current load detection. For example, as shown in fig. 2, first, the arbitration module determines whether the current diagnosis module is performing load detection, and if the current load detection system is performing load detection, the diagnosis module is controlled to continue to perform the current load detection; if the current load detection system does not detect the load, judging whether the diagnosis module receives a direct current detection instruction, and if the diagnosis module receives the direct current detection instruction, controlling the diagnosis module to detect the direct current load; otherwise, further judging whether the diagnosis module receives the alternating current load detection instruction, and if the diagnosis module receives the alternating current load detection instruction, controlling the diagnosis module to be in a first detection state, namely, an alternating current load detection state. It will be appreciated that in some embodiments, if no ac load detection instruction is received, the arbitration module may send an instruction to the diagnostic module to perform dc load detection, and the diagnostic module may perform dc load detection based on the instruction.
It will be appreciated that the load detection system may support both ac load detection, dc load detection, and multi-channel load detection, without limitation.
It is understood that the arbitration module may send different load detection instructions to the diagnostic module based on different operating states of the load detection module, which may include: the control diagnostic module performs/interrupts the ac load detection process, the control diagnostic module performs/interrupts the dc load detection process, adjusts the frequency of the ac load detection signal, and the detection channel, etc., which are not limited herein.
It can be understood that, in the load detection system provided in the embodiment of the present application, when multi-channel load detection is performed on the audio power amplifier, a plurality of digital-to-analog converters and current sampling modules may be added, and the above remaining functional modules may achieve the effect of reducing the circuit area of the functional modules through multiplexing.
The diagnostic module may be configured to respond to the load detection instruction sent by the arbitration module and perform a responsive operation based on the load detection instruction. For example, when the diagnostic module receives the first detection instruction sent by the arbitration module, that is, the ac load detection instruction, the diagnostic module may acquire the first ac voltage signal, the second ac voltage signal, and the first current feedback signal based on the first detection instruction; further, the diagnostic module may calculate a first load value corresponding to the load detection system based on the first ac voltage signal, the second ac voltage signal, and the first current feedback signal, wherein the first load value is an ac load value.
It can be understood that, for the result of the first load value, the load detection system can determine the current working state of the load and report the current working state, if current/voltage fluctuation caused by the environment occurs in the load detection process, the load detection system can report the current/voltage fluctuation, and the load detection result is marked as invalid.
The current sampling module may be configured to obtain a first initial current feedback signal; and filtering the first initial current feedback signal to remove the direct current signal in the first initial current feedback signal so as to obtain a first current feedback signal corresponding to the first initial current feedback signal.
It can be appreciated that the current sampling module may be composed of an analog high-speed sampling circuit and a digital sampling filter circuit, and may filter the first initial current feedback signal, and filter the direct current signal in the direct current signal to obtain the first current feedback signal.
The filter may be configured to filter the first current feedback signal, and filter direct current signals in the first initial load current and the second initial load current, so that the current sampling module may generate a first current feedback signal corresponding to the first initial current feedback signal.
The signal generation module may be configured to obtain a first ac voltage signal and a second ac voltage signal. The signal generating module may generate a first initial ac voltage signal, and then control the amplitude of the first initial ac voltage signal to increase or decrease based on the magnitude of the first current feedback signal in the current sampling module, so as to generate a first ac voltage signal corresponding to the first initial ac voltage signal. In some embodiments, when the first current feedback signal is less than or equal to a first preset current feedback value, increasing the amplitude of the first initial ac voltage signal to obtain a first ac voltage signal corresponding to the first initial ac voltage signal after the amplitude is increased; when the first load current is larger than a first preset current feedback value, the amplitude of the first initial alternating voltage signal is reduced, so that a first alternating voltage signal corresponding to the first initial alternating voltage signal with the reduced amplitude is obtained.
It is understood that the signal generation module may generate a second ac voltage signal based on the first ac voltage signal, wherein the second ac voltage signal is a quadrature signal of the first ac voltage signal.
It can be understood that the frequency of the ac signal corresponding to the ac voltage signal generated by the signal generating module can be controlled in a frequency band outside the audible frequency range (20 Hz-20 kHz) of the human ear, so that the frequency of the ac signal will not affect the hearing of the human ear during load detection.
The digital-to-analog converter may be configured to generate a first sine signal and a first cosine signal based on the first ac voltage signal generated by the signal generating module, wherein the first sine signal and the first cosine signal are in an inverse relationship, and the amplitude of the first ac voltage signal may be changed by changing the amplitudes of the first cosine signal and the second cosine signal.
Fig. 3 illustrates a flow diagram of a load detection method, according to some embodiments of the present application. The load detection method may be performed by a load detection system, as shown in fig. 3, and a specific flow of the load detection method may include:
s101: it is determined whether the load detection system is in a first detection state.
In some embodiments, the arbitration module of the load detection system may determine whether the load detection system is in the first detection state based on the operating state of the diagnostic module, i.e., determine whether the diagnostic module is in the first detection state. If the load detection system is in the first detection state, turning to step S102, namely acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal; if it is determined that the load detection system is not in the first detection state, the process goes to step S104, i.e. the first dc voltage difference and the first dc voltage difference of the load detection system are obtained. It can be understood that the first detection state may be an ac load detection state, that is, a first load value corresponding to a load in the load detection system is detected, where the first load value is an ac load value.
S102: a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal are obtained.
In some embodiments, the diagnostic module obtains the first ac voltage signal, the second ac voltage signal, and the first current feedback signal when the load detection system is determined to be in the first detection state.
In some embodiments, the diagnostic module may obtain the first current feedback signal through a current sampling module. Specifically, the current sampling module may obtain a first initial current feedback signal, and filter the first initial current feedback signal, so as to filter a direct current signal in the first initial current feedback signal, so as to obtain a first current feedback signal corresponding to the first initial current feedback signal.
In some embodiments, the diagnostic module may obtain the first alternating voltage signal and the second alternating voltage signal through the signal generation module. Specifically, the signal generating module may generate a first initial ac voltage signal, and then control the amplitude of the first initial ac voltage signal to increase or decrease based on the magnitude of the first current feedback signal in the current sampling module, so as to generate a first ac voltage signal corresponding to the first initial ac voltage signal. For example, when the first current feedback signal is smaller than or equal to a first preset current feedback value, the amplitude of the first initial ac voltage signal is increased, so as to obtain a first ac voltage signal corresponding to the first initial ac voltage signal after the amplitude is increased. For another example, when the first load current is greater than the first preset current feedback value, the amplitude of the first initial ac voltage signal is reduced, so as to obtain a first ac voltage signal corresponding to the first initial ac voltage signal after the amplitude is reduced. Further, a second alternating voltage signal may be obtained based on the first alternating voltage signal, wherein the second alternating voltage signal is a quadrature signal of the first alternating voltage signal.
In some embodiments, as shown in fig. 4, fig. 4 shows a schematic algorithm structure of a signal generating module. As in fig. 4, the signal generation module may generate the first ac voltage signal and the second ac voltage signal by a digital sine oscillator under dual input coupling, and the zero input response in the algorithm structure of the signal generation module may be sin (w 0) and cos (w 0) with an amplitude of 1, where the zero input response refers to a response caused when no signal is applied to excite. Further, by configuring the values of sin (w 0) and cos (w 0), a first alternating voltage signal and a second alternating voltage signal with different frequencies can be obtained, and then the first alternating voltage signal and the second alternating voltage signal are multiplied by different amplitudes respectively, so that a first alternating voltage signal ys (n) =sin (w 0 n) and a second alternating voltage signal yc (n) =cos (w 0 n) with different amplitudes and different frequencies can be obtained, wherein the second alternating voltage signal yc (n) =cos (w 0 n) is an orthogonal signal obtained based on the first alternating voltage signal ys (n) =sin (w 0 n).
It will be appreciated that in some embodiments, the first ac voltage signal ys (n) =sin (w 0 n) and the second ac voltage signal yc (n) =cos (w 0 n) may be changed in amplitude by multiplying different amplitudes, for example, the amplitude may be 1; in other embodiments, the amplitude may be set to other values, which are not limited herein.
It will be appreciated that z in FIG. 4 -1 Configuring transformation coefficients required by sine signals and cosine signals in an algorithm structure of a signal generation module; w0 is an angular frequency, w0 is a phase angle radian value of alternating current signal change in unit time, is proportional to the frequency of the alternating current signal, and can reflect the frequency of different alternating current signals, and the relation between the frequency of the alternating current signal and the frequency f of the alternating current signal is w0=2pi f.
In some embodiments, the frequencies and the amplitudes of the first ac voltage signal and the second ac voltage signal generated by the signal generating module are adjustable, so as to prevent the ac voltage signal from suddenly changing to generate a pop (short pop occurs in the sound effect), and the ac voltage signal can be adjusted in a fade-in fade-out manner.
For example, fig. 5 shows a schematic diagram of a first ac voltage signal generated by a signal generating module.
Specifically, in fig. 5, FBN and FBP are a first sinusoidal signal 50 and a first cosine signal 51 generated based on a first ac voltage signal, respectively, and the first ac voltage signal with different amplitudes can be obtained by changing the amplitudes of the first sinusoidal signal 50 and the first cosine signal 51, where the amplitude of the first ac voltage signal can be denoted by v_flag, and it can be seen that the first sinusoidal signal 50 and the first cosine signal 51 are in an inverse relationship. The whole alternating voltage signal comprises three stages of fade-in, stabilization and fade-out, when the amplitude V_Diag of the first initial alternating voltage signal is gradually increased, the first current feedback signal can be monitored in real time, the amplitude V_Diag of the first initial alternating voltage signal can be changed along with the change of the first current feedback signal, when the fade-in stage monitors that the first current feedback signal is increased faster, i.e. the first current feedback signal is larger than a first preset current feedback value, the amplitude V_Diag of the first initial alternating voltage signal can be controlled to be reduced to the amplitude of the corresponding first alternating voltage signal, for example V_Diag1, when the fade-in stage the first current feedback signal is increased slowly, i.e. the first current feedback signal is smaller than or equal to the first preset current feedback value, the amplitude V_Diag2 of the first initial alternating voltage signal can be controlled to be increased to the amplitude of the corresponding first alternating voltage signal, and then the amplitude V_Diag2 of the first current feedback signal can be enabled to be as fast as possible in the half of the current feedback signal, and the current feedback signal can be enabled to be in a large current feedback module with a large current feedback range. Based on this, the range of resistance values of the load that can be detected by the load detection system can be increased, that is, an accurate ac load value can be detected.
It will be appreciated that in some embodiments, the magnitude of the first current feedback signal may also be 40% -60% of the current range of the current sampling module, which is not limited herein.
It will be appreciated that based on the first ac voltage signal described above, a quadrature signal of the first ac voltage signal, i.e. the second ac voltage signal, may be obtained.
S103: a first load value corresponding to the load detection system is calculated based on the first AC voltage signal, the second AC voltage signal and the first current feedback signal.
In some embodiments, after the diagnostic module obtains the first ac voltage signal, the second ac voltage signal, and the first current feedback signal, a phase difference between the first load value corresponding to the load detection system and the first load value, that is, the ac load value and the phase difference corresponding to the ac load value, may be calculated by using a fourier transform iteration method or an adaptive filtering method.
It is understood that the adaptive filtering mode may include a polyphase filtering mode and a hilbert filtering mode, which are not limited herein.
S104: a first direct current voltage difference and a first direct current voltage difference of a load detection system are obtained.
In some embodiments, when the load detection system is not in the first detection state, the arbitration module may control the load detection system to obtain a first dc voltage difference by obtaining a first dc voltage and a second dc voltage of the load in the load detection system and to obtain a first dc current difference by obtaining a first dc current and a second dc current by obtaining a difference.
S105: and calculating a second load value corresponding to the load detection system based on the first direct current voltage difference and the first direct current difference.
In some embodiments, the diagnostic module may calculate a second load value corresponding to the load detection system using ohm's law based on the first direct current voltage difference and the first direct current voltage difference, wherein the second load value is a direct current load value.
According to the load detection method, the first alternating voltage signal and the second alternating voltage signal required by alternating load detection can be obtained based on the signal generation module of the load detection system, and the required first load current can be obtained through the current sampling module, so that the alternating load value can be obtained through Fourier transformation or adaptive filtering based on the alternating current parameters, an additional peripheral circuit such as a digital signal processor is not required to be added to obtain the alternating voltage signal, or impedance is detected through an additional alternating current test signal providing mode, and the accuracy and detection efficiency of alternating load detection are improved.
It can be understood that the load detection method provided by the embodiment of the application can be used for detecting the ac load of the digital audio power amplifier, and also can be used for detecting the ac load of the analog audio power amplifier, and is not limited herein.
It can be understood that the signal generating module in the load detection system provided in the present application may also be compatible with an ac load detection system that externally provides a test signal, and if an externally provided external signal is used for ac load detection, the signal generating module may perform a filtering operation on the external signal to generate a quadrature signal of the external signal, and then transmit the external signal and the quadrature signal of the external signal to the diagnostic module, which is not limited herein.
It can be understood that the load detection system provided in the embodiment of the application can implement the algorithm architecture in the signal generation module through a digital hardware circuit, so as to perform alternating current load iterative computation, and only the current sampling loop in the current sampling module is required to provide the first current feedback signal, so that more analog circuit support is not required, and the alternating current load computation with higher precision and wider frequency range can be implemented.
It can be understood that the load detection system provided in the embodiment of the present application has low requirements on the external environment/host computer, no additional micro control unit (Microcontroller Unit, MCU) or digital signal processing (Digital Signal Processing, DSP) is required to provide additional detection parameters, the structure of the load detection system is simplified, and the arbitration module does not have specific condition limitation when sending detection instructions to the diagnosis module, but can send all instructions related to load detection to the diagnosis module together when the digital audio power amplifier works.
The application also provides a load detection system, which comprises an arbitration module and a diagnosis module; the arbitration module is used for judging whether the load detection system is in a first detection state, wherein the first detection state is an alternating current load detection state; the diagnosis module is used for acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal corresponding to the load detection system being in a first detection state; the diagnosis module is used for calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating load value.
The application also provides a chip, which comprises the load detection system provided by the embodiment of the application.
The application also provides an electronic device, comprising: a memory for storing instructions; and the processor is used for executing the instructions to realize the load detection method.
The application also provides electronic equipment, which comprises the load detection system.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as a computer program or program code that is executed on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), microcontroller, application Specific Integrated Circuit (ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy diskettes, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random Access Memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of propagated signal using the internet. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module is a logic unit/module, and in physical aspect, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is the key to solve the technical problem posed by the present application. Furthermore, to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems presented by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (15)

1. A load detection method, applied to a load detection system, the method comprising:
judging whether the load detection system is in a first detection state or not, wherein the first detection state is an alternating current load detection state;
acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal corresponding to the load detection system being in the first detection state;
and calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating load value.
2. The method according to claim 1, wherein the method further comprises:
acquiring a first direct current voltage difference and a first direct current voltage difference of the load detection system corresponding to the load detection system not being in the first detection state;
and calculating a second load value corresponding to the load detection system based on the first direct current voltage difference and the first direct current voltage difference, wherein the second load value is a direct current load value.
3. The method of claim 1, wherein a first current feedback signal is obtained; comprising the following steps:
acquiring a first initial current feedback signal;
and filtering the first initial current feedback signal to remove a direct current signal in the first initial current feedback signal so as to obtain the first current feedback signal corresponding to the first initial current feedback signal.
4. The method of claim 1, wherein the first ac voltage signal and the second ac voltage signal are obtained; comprising the following steps:
acquiring a first initial alternating voltage signal;
judging whether the first current feedback signal is smaller than a first preset current feedback value or not;
corresponding to the first current feedback signal being smaller than or equal to the first preset current feedback value, increasing the amplitude of the first initial alternating voltage signal to obtain the first alternating voltage signal corresponding to the first initial alternating voltage signal after the amplitude is increased;
the amplitude of the first initial alternating voltage signal is reduced corresponding to the fact that the first current feedback signal is larger than the first preset current feedback value, so that the first alternating voltage signal corresponding to the first initial alternating voltage signal with the reduced amplitude is obtained;
and acquiring the second alternating voltage signal based on the first alternating voltage signal, wherein the second alternating voltage signal is a quadrature signal of the first alternating voltage signal.
5. A load detection method according to claim 3, wherein the value of the first current feedback signal is 40% -60% of the current range corresponding to the load detection system.
6. The method of claim 4, wherein the increasing the amplitude of the first initial ac voltage signal corresponding to the first current feedback signal being less than or equal to the first preset current feedback value to obtain the first ac voltage signal corresponding to the first initial ac voltage signal with the increased amplitude comprises:
generating a first sine signal and a first cosine signal based on the first initial alternating voltage signal, and obtaining the first alternating voltage signal corresponding to the first initial alternating voltage signal after the amplitude is increased by increasing the amplitude of the first sine signal and the first cosine signal, wherein the first sine signal and the first cosine signal are in an inverse relation.
7. The method of claim 6, wherein the magnitude of the first initial ac voltage signal is reduced to obtain the first ac voltage signal corresponding to the reduced magnitude of the first initial ac voltage signal corresponding to the first current feedback signal being greater than the first preset current feedback value; comprising the following steps:
and obtaining the first alternating voltage signal corresponding to the first initial alternating voltage signal after the amplitude reduction by reducing the amplitudes of the first sine signal and the first cosine signal, wherein the first sine signal and the first cosine signal are in an inverse relation.
8. The method of claim 1, wherein calculating a first load value for the load detection system based on the first ac voltage signal, the second ac voltage signal, and the first current feedback signal comprises:
and calculating a phase difference between the first load value corresponding to the load detection system and the phase difference corresponding to the first load value by utilizing a Fourier transform iteration mode or an adaptive filtering mode based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal.
9. The method of claim 8, wherein the adaptive filtering mode comprises a polyphase filtering mode and a hilbert filtering mode.
10. A load detection system, wherein the load detection system comprises an arbitration module and a diagnostic module;
the arbitration module is used for judging whether the load detection system is in a first detection state or not, wherein the first detection state is an alternating current load detection state;
the diagnostic module is used for acquiring a first alternating voltage signal, a second alternating voltage signal and a first current feedback signal corresponding to the load detection system being in the first detection state;
the diagnosis module is used for calculating a first load value corresponding to the load detection system based on the first alternating voltage signal, the second alternating voltage signal and the first current feedback signal, wherein the first load value is an alternating current load value.
11. The system of claim 10, wherein the system further comprises a controller configured to control the controller,
the arbitration module is used for detecting that the load detection system is in the first detection state and sending a first detection instruction corresponding to the first detection state to the diagnosis module;
the diagnosis module is used for detecting the first load value corresponding to the load detection system based on the first detection instruction.
12. The system of claim 10, wherein the load detection system further comprises a signal generation module, a current sampling module, and a filter;
the signal generation module is used for generating the first alternating voltage signal and the second alternating voltage signal;
the current sampling module is used for generating the first current feedback signal;
the filter is used for filtering the first initial current feedback signal, filtering the direct current signal in the first initial current feedback signal, and obtaining the first current feedback signal corresponding to the first initial current feedback signal.
13. A chip comprising the load detection system of any one of claims 10-12.
14. An electronic device, comprising: a memory for storing instructions; a processor for executing the instructions to implement the load detection method of any one of claims 1-9.
15. An electronic device comprising a load detection system according to any of claims 10-12.
CN202311544632.XA 2023-11-17 2023-11-17 Load detection method, chip and electronic equipment Pending CN117388754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311544632.XA CN117388754A (en) 2023-11-17 2023-11-17 Load detection method, chip and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311544632.XA CN117388754A (en) 2023-11-17 2023-11-17 Load detection method, chip and electronic equipment

Publications (1)

Publication Number Publication Date
CN117388754A true CN117388754A (en) 2024-01-12

Family

ID=89466640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311544632.XA Pending CN117388754A (en) 2023-11-17 2023-11-17 Load detection method, chip and electronic equipment

Country Status (1)

Country Link
CN (1) CN117388754A (en)

Similar Documents

Publication Publication Date Title
US8063698B2 (en) Bypassing amplification
US10498304B2 (en) Audio processor
JP6444298B2 (en) Method and system for identifying acoustic transducers
US9578416B2 (en) Control of a loudspeaker output
US20090274312A1 (en) Detecting a Loudspeaker Configuration
JP6062716B2 (en) Anomaly detection device
US10045124B2 (en) Crosstalk mitigation
US20200029162A1 (en) Audio device and computer readable program
JP6671036B2 (en) Noise reduction device, mobile device, and noise reduction method
US8385563B2 (en) Sound level control in responding to the estimated impedances indicating that the medium being an auditory canal and other than the auditory canal
CN117388754A (en) Load detection method, chip and electronic equipment
US10891933B2 (en) Audio processing system
US9357322B2 (en) Loudspeaker polarity detector
CN111343548B (en) Audio processor
CN113940095B (en) Peak current limiter
WO2015053068A1 (en) Sound field measurement device, sound field measurement method, and sound field measurement program
US20230022551A1 (en) Method for estimating fundamental resonance frequency of loudspeaker and associated loudspeaker controller
CN117388753A (en) Load detection method, chip and electronic equipment
WO2018227952A1 (en) Method and device for use in adjusting passband bandwidth of filter
JP7151472B2 (en) AUDIO SIGNAL CONTROL CIRCUIT, AUDIO SYSTEM, AND AUDIO SIGNAL CONTROL METHOD
JP2001024459A (en) Audio device
CN112995855B (en) Filter step length coefficient determining method and device and noise reduction device
CN110326306B (en) Digital signal processing device and acoustic device
CN117880725A (en) Speaker resonant frequency detection method and device and speaker fault detection system
CN117880691A (en) Earphone noise reduction method, device, equipment and storage medium

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