CN113225661A - Loudspeaker identification method and device and electronic equipment - Google Patents

Loudspeaker identification method and device and electronic equipment Download PDF

Info

Publication number
CN113225661A
CN113225661A CN202110349144.8A CN202110349144A CN113225661A CN 113225661 A CN113225661 A CN 113225661A CN 202110349144 A CN202110349144 A CN 202110349144A CN 113225661 A CN113225661 A CN 113225661A
Authority
CN
China
Prior art keywords
frequency
loudspeaker
resonant
signal
resonant circuit
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
CN202110349144.8A
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110349144.8A priority Critical patent/CN113225661A/en
Publication of CN113225661A publication Critical patent/CN113225661A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • 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
    • H04R2203/00Details of circuits for transducers, loudspeakers or microphones covered by H04R3/00 but not provided for in any of its subgroups

Abstract

The embodiment of the application provides a loudspeaker identification method, a loudspeaker identification device and electronic equipment, wherein the method comprises the following steps: sending a frequency sweeping signal to the loudspeaker module, wherein the frequency of the frequency sweeping signal continuously changes in a preset frequency band; detecting a voltage signal and a current signal of the loudspeaker module, and determining a frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal; determining a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit; comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module; and the second resonant frequency is in a preset frequency band of the sweep frequency signal. In the embodiment of the application, the loudspeaker model is identified based on the frequency/impedance curve, so that the use of a PIN foot of the loudspeaker is saved. Accordingly, wiring of the speaker on the main board is simplified.

Description

Loudspeaker identification method and device and electronic equipment
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a speaker identification method and apparatus, and an electronic device.
Background
The audio performance is an important performance index of the electronic equipment, and is a key field for the development and updating of the electronic equipment. The combination of an intelligent Power Amplifier chip (Smart Power Amplifier, Smart PA) and a speaker (Speak, SPK) is a main development direction in the industry, and can effectively improve a series of performances such as loudness and tone quality of the audio played by the electronic device. The change of the characteristics of the SPK is related to the frequency/impedance curve, and the Smart PA can measure the output voltage and current in real time so as to calculate the frequency/impedance curve of the SPK. The Smart PA can calculate the current amplitude, the temperature and the like of the SPK according to a pre-established algorithm and preset algorithm parameters, and can predict the future amplitude of the SPK through calculation of an input signal, so that the performance of the SPK can be effectively adjusted, such as volume increase, tone quality improvement, temperature control and the like. The regulation and control of the SPK by the Smart PA depends on preset algorithm parameters, and in order to enable the Smart PA to accurately control the real-time output of the SPK to achieve the best effect, an audio engineer needs to repeatedly debug the SPK according to the original performance of the SPK to determine the preset algorithm parameters.
In practical applications, the SPKs supplied by different suppliers have different models, i.e., the physical properties of the SPKs supplied by different suppliers are different. In order to obtain a better audio effect, multiple sets of algorithm parameters need to be preset in Smart PA, and identification of SPK models is carried out on SPK by adding identification pins. When the method is used, the SPK model is firstly identified according to the identification pin, the algorithm parameter corresponding to the SPK is obtained in the preset algorithm parameter library, and the Smart PA drives the SPK by using the algorithm parameter, so that the problem of performance reduction caused by different SPK models is solved.
However, by adding identification pins to the SPK, the number of SPK models that can be distinguished is limited. For example, one ID pin and one GND pin are provided on the SPK, one state when the ID pin and the GND pin are connected, and the other state when the ID pin and the GND pin are disconnected. That is, one ID pin can distinguish only two SPK models, and when there are 3 or more SPK models, the ID pin needs to be added for further distinction. In addition, the PIN PINs which are identified by the matched ID PINs are connected to the processor side, so that the using number of the PIN PINs on the processor side is increased.
Disclosure of Invention
In view of this, the present application provides a speaker identification method, a speaker identification device, and an electronic device, so as to solve the problems that in the prior art, the number of speaker models that can be identified by a speaker model identification scheme is limited, and a PIN on a processor side is occupied.
In a first aspect, an embodiment of the present application provides a speaker identification method, which is applied to a speaker module, where the speaker module includes a speaker, and the speaker includes a corresponding first resonant circuit; the loudspeaker module further comprises a second resonant circuit, the first resonant circuit and the second resonant circuit are connected in series, a first resonant frequency corresponding to the first resonant circuit is different from a second resonant frequency corresponding to the second resonant circuit, and the second resonant frequency is greater than or equal to an audio output frequency band of the loudspeaker;
the method comprises the following steps: sending a frequency sweeping signal to the loudspeaker module, wherein the frequency of the frequency sweeping signal continuously changes in a preset frequency band; detecting a voltage signal and a current signal of the loudspeaker module, and determining a frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal; determining a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit; comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module; and the second resonant frequency is in a preset frequency band of the sweep frequency signal.
In an alternative embodiment, the audio output frequency band of the loudspeaker is 20Hz-20 KHZ.
In an alternative embodiment, the second resonant circuit is a parallel resonant circuit or a series resonant circuit.
In an alternative embodiment, the parallel resonant circuit comprises a first inductor, a first resistor and a first capacitor, and the first inductor, the first resistor and the first capacitor are connected in parallel; or, the parallel resonant circuit includes a second inductor and a second capacitor, and the second inductor and the second capacitor are connected in parallel.
In an alternative embodiment, the series resonant circuit comprises a third inductor, a third resistor and a third capacitor, the third inductor, the third resistor and the third capacitor being connected in series; or, the series resonant circuit includes a fourth inductor and a fourth capacitor, and the fourth inductor and the fourth capacitor are connected in series.
In an optional embodiment, the first resonant frequency corresponding to the loudspeaker is outside the preset frequency band of the sweep signal.
In a second aspect, an embodiment of the present application provides a speaker identification apparatus, including: the audio driving unit is used for sending a frequency sweeping signal to the loudspeaker module, and the frequency of the frequency sweeping signal continuously changes in a preset frequency band; the impedance detection unit is used for detecting the voltage signal and the current signal of the loudspeaker module and determining the frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal; a first determining unit for determining a second resonance frequency according to the frequency/impedance curve, the second resonance frequency corresponding to the second resonance circuit; the second determining unit is used for comparing the second resonant frequency with a preset frequency/model comparison table and determining the model of the loudspeaker corresponding to the loudspeaker module; and the second resonant frequency is in a preset frequency band of the sweep frequency signal.
In an optional embodiment, the first resonant frequency corresponding to the loudspeaker is outside the preset frequency band of the sweep signal.
In a third aspect, an embodiment of the present application provides an electronic device, including an audio processing module, a memory, a processor, and the speaker module of any one of the first aspect; the audio processing module is used for sending a frequency sweeping signal to the loudspeaker module, and the frequency of the frequency sweeping signal continuously changes in a preset frequency band; detecting a voltage signal and a current signal of the loudspeaker module, and determining a frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal; the memory is used for storing a frequency/model comparison table, and the frequency/model comparison table is used for describing the corresponding relation between the resonant frequency and the model of the loudspeaker; the processor is configured to determine a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit; comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module; and the second resonant frequency is in a preset frequency band of the sweep frequency signal.
In an optional embodiment, the first resonant frequency corresponding to the loudspeaker is outside the preset frequency band of the sweep signal.
In the embodiment of the application, the loudspeaker model is identified based on the frequency/impedance curve, so that the use of a PIN foot of the loudspeaker is saved. Accordingly, wiring of the speaker on the main board is simplified.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
FIG. 3A is a schematic diagram of an electronic device according to the related art;
FIG. 3B is a schematic diagram of an electrical model of the loudspeaker shown in FIG. 3A;
FIG. 3C is a schematic frequency/impedance curve for the speaker of FIG. 3A;
fig. 4A is a schematic structural diagram of a speaker module according to an embodiment of the present disclosure;
fig. 4B is a schematic circuit diagram of a speaker module according to an embodiment of the present disclosure;
FIG. 4C is an electrical model of the speaker module shown in FIG. 4B;
FIG. 4D is a schematic frequency/impedance curve of the speaker module shown in FIG. 4C;
fig. 4E is a schematic diagram illustrating a mapping relationship between a model of a speaker and a second resonant frequency according to an embodiment of the present disclosure;
fig. 5A is a schematic diagram of another implementation manner of a second resonant circuit provided in the embodiment of the present application;
fig. 5B is a schematic diagram of another implementation manner of the second resonant circuit provided in the embodiment of the present application;
fig. 5C is a schematic diagram of another implementation manner of the second resonant circuit provided in the embodiment of the present application;
fig. 6 is a schematic flowchart of a speaker identification method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a speaker identification apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Before specifically describing the embodiments of the present application, a brief description will be given of the scenario referred to in the present application.
Referring to fig. 1, a schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. As shown in fig. 1, an electronic device 100 according to an embodiment of the present application includes an audio processing module 101 and a speaker 102, where the audio processing module 101 is configured to control output of a sound signal from the speaker 102, for example, convert digital audio information into an analog audio signal and output the analog audio signal to the speaker 102, encode and decode the audio signal, and so on. The speaker 102, also called "horn", is used to convert electrical audio signals into sound signals.
It should be noted that fig. 1 is only an exemplary illustration, and should not be taken as a limitation to the scope of the present application. For example, in different electronic devices 100, the setting positions and the number of the speakers 102 may be different, and the connection relationship between the audio processing module 101 and the speakers 102 may also be different. In addition, the electronic device 100 may be a tablet PC, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device 100, an Augmented Reality (AR) device, a Virtual Reality (VR) device, an in-vehicle device, a smart car, a smart audio, a robot, smart glasses, or the like, in addition to a mobile phone.
Referring to fig. 2, a schematic structural diagram of another electronic device provided in the embodiment of the present application is shown. As shown in fig. 2, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, a Subscriber Identity Module (SIM) card interface 295, and the like. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 210 may include multiple sets of I2C buses. The processor 210 may be coupled to the touch sensor 280K, the charger, the flash, the camera 293, etc. through different I2C bus interfaces. For example: the processor 210 may be coupled to the touch sensor 280K via an I2C interface, such that the processor 210 and the touch sensor 280K communicate via an I2C bus interface to implement the touch function of the electronic device 200.
The I2S interface may be used for audio communication. In some embodiments, processor 210 may include multiple sets of I2S buses. Processor 210 may be coupled to audio module 270 via an I2S bus to enable communication between processor 210 and audio module 270. In some embodiments, the audio module 270 may communicate audio signals to the wireless communication module 260 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, audio module 270 and wireless communication module 260 may be coupled by a PCM bus interface. In some embodiments, the audio module 270 may also transmit audio signals to the wireless communication module 260 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 210 with the wireless communication module 260. For example: the processor 210 communicates with the bluetooth module in the wireless communication module 260 through the UART interface to implement the bluetooth function. In some embodiments, the audio module 270 may transmit the audio signal to the wireless communication module 260 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 210 with peripheral devices such as the display screen 294, the camera 293, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 210 and camera 293 communicate via a CSI interface to implement the capture functionality of electronic device 200. The processor 210 and the display screen 294 communicate through the DSI interface to implement a display function of the electronic device 200.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect processor 210 with camera 293, display 294, wireless communication module 260, audio module 270, sensor module 280, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 230 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 230 may be used to connect a charger to charge the electronic device 200, and may also be used to transmit data between the electronic device 200 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger via the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive a wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also supply power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the display 294, the camera 293, and the wireless communication module 260. The power management module 241 may also be used to monitor parameters such as battery capacity, battery cycle number, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 may be disposed in the same device.
The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 270A, the receiver 270B, etc.) or displays images or video through the display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 210, and may be disposed in the same device as the mobile communication module 250 or other functional modules.
The wireless communication module 260 may provide a solution for wireless communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that electronic device 200 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 200 implements display functions via the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 200 may include 1 or N display screens 294, N being a positive integer greater than 1.
The electronic device 200 may implement a shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor.
The ISP is used to process the data fed back by the camera 293. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 293.
The camera 293 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, electronic device 200 may include 1 or N cameras 293, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 200 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 200 may support one or more video codecs. In this way, the electronic device 200 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the electronic device 200, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including instructions. The internal memory 222 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, a phone book, etc.) created during use of the electronic device 200, and the like. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
Electronic device 200 may implement audio functions via audio module 270, speaker 270A, receiver 270B, microphone 270C, headset interface 270D, and an application processor, among other things. Such as music playing, recording, etc.
Audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. Audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210.
The speaker 270A, also called a "horn", is used to convert an audio electrical signal into an acoustic signal. The electronic apparatus 200 can listen to music through the speaker 270A or listen to a handsfree call.
The receiver 270B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 200 receives a call or voice information, it is possible to receive voice by placing the receiver 270B close to the human ear.
The microphone 270C, also referred to as a "microphone," is used to convert acoustic signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 270C by speaking the user's mouth near the microphone 270C. The electronic device 200 may be provided with at least one microphone 270C. In other embodiments, the electronic device 200 may be provided with two microphones 270C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 200 may further include three, four or more microphones 270C to collect sound signals, reduce noise, identify sound sources, implement directional recording functions, and so on.
The headphone interface 270D is used to connect wired headphones. The headset interface 270D may be the USB interface 230, or may be an open mobile electronic device platform (OMTP) standard interface of 3.5mm, or a Cellular Telecommunications Industry Association (CTIA) standard interface.
The pressure sensor 280A is used to sense a pressure signal, which can be converted into an electrical signal. In some embodiments, the pressure sensor 280A may be disposed on the display screen 294. Pressure sensor 280A
Such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 294, the electronic apparatus 200 detects the intensity of the touch operation according to the pressure sensor 280A. The electronic apparatus 200 may also calculate the touched position from the detection signal of the pressure sensor 280A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 280B may be used to determine the motion pose of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 about three axes (i.e., x, y, and z axes) may be determined by the gyroscope sensor 280B. The gyro sensor 280B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 280B detects a shake angle of the electronic device 200, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 200 through a reverse movement, thereby achieving anti-shake. The gyro sensor 280B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 280C is used to measure air pressure. In some embodiments, electronic device 200 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 280C.
The magnetic sensor 280D includes a hall sensor. The electronic device 200 may detect the opening and closing of the flip holster using the magnetic sensor 280D. In some embodiments, when the electronic device 200 is a flip, the electronic device 200 may detect the opening and closing of the flip according to the magnetic sensor 280D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 280E may detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 200 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 280F for measuring distance. The electronic device 200 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, the electronic device 200 may utilize the distance sensor 280F to range for fast focus.
The proximity light sensor 280G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic apparatus 200 emits infrared light to the outside through the light emitting diode. The electronic device 200 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 may determine that there are no objects near the electronic device 200. The electronic device 200 can utilize the proximity sensor 280G to detect that the user holds the electronic device 200 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 280G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 280L is used to sense the ambient light level. The electronic device 200 may adaptively adjust the brightness of the display screen 294 based on the perceived ambient light level. The ambient light sensor 280L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 280L may also cooperate with the proximity light sensor 280G to detect whether the electronic device 200 is in a pocket to prevent inadvertent contact.
The fingerprint sensor 280H is used to collect a fingerprint. The electronic device 200 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and the like.
The temperature sensor 280J is used to detect temperature. In some embodiments, the electronic device 200 implements a temperature processing strategy using the temperature detected by the temperature sensor 280J. For example, when the temperature reported by the temperature sensor 280J exceeds the threshold, the electronic device 200 performs a reduction in performance of a processor located near the temperature sensor 280J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 200 heats the battery 242 when the temperature is below another threshold to avoid the low temperature causing the electronic device 200 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the electronic device 200 performs a boost on the output voltage of the battery 242 to avoid an abnormal shutdown due to low temperature.
The touch sensor 280K is also referred to as a "touch device". The touch sensor 280K may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, which is also called a "touch screen". The touch sensor 280K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 294. In other embodiments, the touch sensor 280K can be disposed on a surface of the electronic device 200 at a different location than the display screen 294.
The bone conduction sensor 280M may acquire a vibration signal. In some embodiments, the bone conduction sensor 280M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 280M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 280M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 270 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 280M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure pulsation signal acquired by the bone conduction sensor 280M, so as to realize a heart rate detection function.
The keys 290 include a power-on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be touch keys. The electronic apparatus 200 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 200.
The motor 291 may generate a vibration cue. The motor 291 can be used for both incoming call vibration prompting and touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 291 may also respond to different vibration feedback effects for touch operations on different areas of the display 294. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc.
The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic apparatus 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 295 may also be compatible with different types of SIM cards. The SIM card interface 295 may also be compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 200 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.
Fig. 3A is a schematic structural diagram of an electronic device in the related art. As shown in fig. 3A, the electronic device 300 includes an audio processing module 301 and a speaker 302, wherein the audio processing module 301 includes an audio driving unit and an identification unit therein. The audio driving unit is connected with a pin P and a pin N of the loudspeaker 302, the pin P is connected with a positive electrode (SPK +) of the loudspeaker core, the pin N is connected with a negative electrode (SPK-) of the loudspeaker core, the audio driving unit transmits an audio electric signal to the loudspeaker 302 through the pin P and the pin N, and the loudspeaker 302 converts the audio electric signal into a sound signal. The identification unit is connected to an ID pin and a GND pin of the speaker 302, which are designed to be short-circuited or open-circuited according to design requirements. It is understood that one ID pin can distinguish two speaker models (two states of short circuit and open circuit), and if 3 or more speaker models are to be distinguished, the ID pin needs to be added.
In view of the above problem, an embodiment of the present application provides another speaker model identification scheme, where a speaker model is identified based on a frequency/impedance curve of a speaker. First, a frequency/impedance curve of the speaker will be described below.
Fig. 3B is a schematic diagram of an electrical model of a speaker in the electronic device shown in fig. 3A. The electric appliance model comprises a group of LRC circuits and a wiring impedance RDCAnd a line inductance LINPUT. It is understood that the LRC circuit is the first resonant circuit corresponding to the speaker 302. For ease of distinction from the second resonance circuit in the following, the LRC circuit is referred to as the first LRC circuit 303, said first LRC circuit 303 comprising a loudspeaker inductance L in parallel0Loudspeaker resistor R0And a loudspeaker capacitor C0
It can be understood that V in the electrical model shown in FIG. 3BINThe terminal and the GND terminal are used to connect to a signal output port of the audio processing module 301. When the audio frequency driving unit works, the audio frequency driving unit enables the audio frequency electric signal to pass through VINThe terminal and GND terminal are inputted to a speaker 302, and the speaker 302 converts an audio electric signal into an acoustic signal and outputs it, where VINThe terminals GND and GND correspond to the P pin and N pin in fig. 3A, respectively. In addition, the audio processing module 301 may measure the output voltage and current in real time, i.e., measure the voltage across the first LRC circuit 303 and the current flowing through the first LRC circuit 303 in real time, so that the frequency/impedance curve of the speaker may be calculated.
Referring to fig. 3C, a frequency/impedance curve of the speaker shown in fig. 3A is shown. As shown in fig. 3C, there is a frequency/impedance peak, i.e., the maximum point of impedance, in the frequency/impedance curve, the frequency at the peak is referred to as the resonant frequency, and for the convenience of distinguishing from the resonant frequency of the second resonant circuit hereinafter, the resonant frequency is referred to as the first resonant frequency f0. The impedance of the loudspeaker and the frequency are corresponding to each other as shown in formula I.
The formula I is as follows:
Figure BDA0003001898360000111
wherein Z is1Is the loudspeaker impedance, ω is the angular frequency, ω L0For the loudspeaker inductance L0Inductive reactance of, omega C0Is a loudspeaker capacitor C0The inverse of capacitive reactance of (c).
According to the formula I, when the speaker inductance L is obtained0Inductive reactance and loudspeaker capacitance C0When the capacitive reactance of (c) is equal, the loudspeaker impedance Z1Maximum is taken and resonance is generated. The resonance condition of the loudspeaker is shown in equation two.
The formula II is as follows:
Figure BDA0003001898360000112
since ω is 2 pi f, the speaker resonance frequency is as shown in equation three.
The formula III is as follows:
Figure BDA0003001898360000113
from the above formula, the resonant frequency of the speaker and the speaker inductance L0And a loudspeaker capacitor C0Is related to the size of the loudspeaker, and the loudspeaker inductance L is obtained after the loudspeaker is designed0And a loudspeaker capacitor C0It has been determined that the frequency/impedance curve of the loudspeaker is also determined accordingly, i.e. the resonance frequency of the loudspeaker is the natural frequency of the loudspeaker.
Fig. 4A is a schematic structural diagram of a speaker module according to an embodiment of the present disclosure. As shown in fig. 4A, a speaker module 400 provided in the embodiment of the present application includes a speaker 401 and a second resonant circuit 402. It will be appreciated that the loudspeaker 401 comprises a corresponding first resonant circuit, the first resonant circuit and the second resonant circuit being connected in series. For convenience of explanation, the resonant frequency corresponding to the first resonant circuit is referred to as a first resonant frequency, and the resonant frequency corresponding to the second resonant circuit 402 is referred to as a second resonant frequency. That is, the first resonant frequency is the natural frequency of the speaker 401, and after the design of the speaker is completed, the natural frequency of the speaker is determined and cannot be adjusted; the second resonant frequency is the resonant frequency of the second resonant circuit 402, and the size of the second resonant frequency can be configured according to specific parameters of devices in the second resonant circuit 402, so that the model of the speaker can be identified through the second resonant frequency, and the model of the speaker can be further identified. It will be appreciated that the second resonant frequency should be of a different magnitude than the first resonant frequency in order to facilitate identification of the second resonant frequency. The details will be described below.
Fig. 4B is a schematic circuit diagram of a speaker module according to an embodiment of the present disclosure; fig. 4C is a schematic diagram of an electrical model of the speaker module shown in fig. 4B. As shown in fig. 4B in combination with fig. 4C, in the embodiment of the present application, the second resonant circuit 402 is a set of LRC circuits. That is, the speaker module 400 includes two sets of LRC circuits, for the convenience of distinction, the LRC circuit corresponding to the speaker 401 is referred to as a first LRC circuit 4011, and the LRC circuit corresponding to the second resonant circuit 402 is referred to as a second LRC circuit 4021, wherein the second LRC circuit 4021 includes a first inductor L connected in parallel1A first resistor R1And a first capacitor C1. Since the speaker module 400 has two resonant circuits, two resonant frequencies exist accordingly when frequency/impedance detection is performed. The corresponding relationship between the impedance and the frequency of the speaker module is shown in formula four.
The formula four is as follows:
Figure BDA0003001898360000121
wherein Z is2Is the impedance of the speaker module, omega is the angular frequency, omega L0For the loudspeaker inductance L0Inductive reactance of, omega C0Is a loudspeaker capacitor C0Reciprocal of capacitive reactance of (1), ω L1Is a first inductance L1Inductive reactance of, omega C1Is a loudspeaker capacitor C1The inverse of capacitive reactance of (c).
From the fourth formula, the speaker module 400 has two resonant frequencies, i.e. the first resonant frequency f corresponding to the first LRC circuit 40110A second resonant frequency f corresponding to the second LRC circuit 40211. Wherein the content of the first and second substances,
first resonant frequency f0See equation five for the size of (c).
The formula five is as follows:
Figure BDA0003001898360000122
second resonance frequency f1See equation six for the magnitude of (c).
Formula six:
Figure BDA0003001898360000123
fig. 4D is a schematic diagram of a frequency/impedance curve of the speaker module shown in fig. 4C. As shown in fig. 4D, there are two frequency/impedance peaks, i.e. two impedance maximum points, in the frequency/impedance curve, corresponding to the first resonant frequency f0And a second resonance frequency f1. Wherein the first resonant frequency f0Corresponding to the resonant frequency of the first LRC circuit 4011, i.e. the loudspeaker itself; second resonance frequency f1Corresponding to the second LRC circuit 4021, i.e., the increased resonant frequency of the LRC circuit.
After the speaker 401 is designed, its first resonance frequency f0Fixed, second resonant frequency f1May pass through the first inductance L in the second LRC circuit 40211And a first capacitor C1And (6) adjusting. Thus, different second resonance frequencies f can be configured for different models of loudspeakers1And then, in the working process, judging the model of the loudspeaker according to the size of the second resonant frequency.
Referring to fig. 4E, a schematic diagram of a mapping relationship between a model of a speaker and a second resonant frequency is provided in the embodiment of the present application. As shown in FIG. 4E, the second resonant frequency for speaker type1 is 0.5 MHz; the second resonant frequency corresponding to speaker type2 is 1.0 MHZ; the second resonant frequency for speaker type3 is 1.5 MHZ; the second resonant frequency for speaker type4 is 2.0 MHZ. In the working process, if the second resonance frequency in the detection frequency/impedance curve is 1.5MHZ, the type of the loudspeaker is determined to be type3, and then corresponding algorithm parameters can be configured for the loudspeaker.
Normally, the frequency band of the audio output by the speaker is 20HZ-20KHZ, and in order to reduce the interference of the second LRC circuit on the audio output of the speaker, the resonant frequency of the second LRC circuit may be set to be greater than or equal to the audio output frequency band of the speaker, i.e. greater than 20KHZ, for example, 1MHZ or 1.5MHZ, etc.
It is understood that the LRC circuit shown in fig. 4A-4E is only one possible implementation of the second resonant circuit listed in the embodiments of the present application, and should not be taken as limiting the scope of the present application. For example, the second resonant circuit may be a parallel resonant circuit or a series resonant circuit, which will be described in detail below.
Referring to fig. 5A, a schematic diagram of another implementation manner of the second resonant circuit provided in the embodiment of the present application is shown. As shown in fig. 5A, the second resonant circuit 4022 includes a second inductor L2And a second capacitor C2Said second inductance L2And a second capacitor C2And (4) connecting in parallel.
Referring to fig. 5B, a schematic diagram of another implementation manner of the second resonant circuit provided in the embodiment of the present application is shown. As shown in fig. 5B, the second resonant circuit 4023 includes a third inductor L3A third resistor R3And a third capacitance C3Said third inductance L3A third resistor R3And a third capacitance C3Are connected in series.
Referring to fig. 5C, a schematic diagram of another implementation manner of the second resonant circuit provided in the embodiment of the present application is shown. As shown in fig. 5C, the second resonant circuit 4024 includes a fourth inductor L4And a fourth capacitance C4Said fourth inductance L4And a fourth capacitance C4Are connected in series.
It can be understood that the implementation manner of the resonant circuit is various, and the embodiments of the present application are not exhaustive here. In practical applications, it is necessary to ensure that the second resonant circuit can generate a resonant frequency, and the second resonant circuit has a small influence on the audio playing of the speaker itself. Referring to fig. 6, a schematic flowchart of a speaker identification method provided in the embodiment of the present application is shown. The speaker can be applied to the speaker module shown in fig. 4A-4E, and as shown in fig. 6, the method mainly includes the following steps.
Step S601: and sending a frequency sweeping signal to the loudspeaker module, wherein the frequency of the frequency sweeping signal continuously changes in a preset frequency band.
In particular, the swept frequency signal may vary continuously from low to high, or continuously from high to low. For example, the frequency of the swept frequency signal varies continuously from 0-2M frequency. Typically, the swept frequency signal should cover both the first resonant frequency and the second resonant frequency of the loudspeaker module. For example, the first resonance frequency is 700K and the second resonance frequency is 1M, then the frequency band of the swept frequency signal should cover 700K and 1M, so that the two resonance frequencies can be detected in the frequency/impedance curve. Step S602: and determining the frequency/impedance curve of the loudspeaker module according to the detected voltage signal and current signal of the loudspeaker module.
Specifically, when the audio processing module sends the sweep frequency signal to the speaker module, the audio processing module can acquire the current and the voltage of the speaker module in real time and calculate the frequency/impedance curve of the speaker module according to the current and voltage values.
Step S603: determining a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit.
Because the speaker module includes two sets of LRC circuits, the frequency/impedance curve corresponds to two resonant frequencies, which are the first resonant frequency and the second resonant frequency, respectively, and further determines the second resonant frequency. For example, in an alternative embodiment, the second resonant frequency is set to be greater than the first resonant frequency, and thus, the greater resonant frequency in the frequency/impedance curve is taken as the second resonant frequency.
Step S604: and comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module.
As shown in fig. 5, if the second resonant frequency is 1.0MHZ, the model of the speaker in the speaker module is determined to be type2, and then the corresponding algorithm parameter can be configured for the speaker.
In the embodiment of the application, the loudspeaker model is identified based on the frequency/impedance curve, so that the use of a PIN foot of the loudspeaker is saved.
In an alternative embodiment, the frequency sweep signal may also cover only the second resonant frequency. For example, the first resonant frequency is 700K, the second resonant frequency is 1M, and the frequency of the frequency sweep signal continuously changes within the frequency band of 0.8M-1.2M. Accordingly, the frequency/impedance curve detected at this time includes only one resonance point, i.e., only one resonance frequency, i.e., the second resonance frequency.
In the embodiment of the application, as the frequency band range of the sweep frequency signal is narrowed, the detection efficiency can be improved by adopting the method. Corresponding to the method embodiment, the application also provides a loudspeaker identification device. Referring to fig. 7, a schematic structural diagram of a speaker identification apparatus according to an embodiment of the present application is provided. As shown in fig. 7, it mainly includes the following units.
The audio driving unit 701 is configured to send a frequency sweep signal to the speaker module, where the frequency of the frequency sweep signal continuously changes within a preset frequency band;
an impedance detection unit 702, configured to detect a voltage signal and a current signal of the speaker module, and determine a frequency/impedance curve of the speaker module according to the voltage signal and the current signal;
a first determining unit 703 for determining a second resonance frequency according to the frequency/impedance curve, the second resonance frequency corresponding to the second resonance circuit;
a second determining unit 704, configured to compare the second resonant frequency with a preset frequency/model comparison table, and determine a model of a speaker corresponding to the speaker module.
And the second resonant frequency is in a preset frequency band of the sweep frequency signal. In an optional embodiment, the first resonant frequency corresponding to the loudspeaker is outside the preset frequency band of the sweep signal.
In the embodiment of the application, the loudspeaker model is identified based on the frequency/impedance curve, so that the use of a PIN foot of the loudspeaker is saved.
Referring to fig. 8, a schematic structural diagram of another electronic device provided in the embodiment of the present application is shown. As shown in fig. 8, an electronic device 800 provided in the embodiment of the present application includes a speaker module 810, an audio processing module 820, a processor 830, and a memory 840. The speaker module 810 includes a speaker 811 and a second resonant circuit 812, and the audio processing module 820 includes an audio driving unit and an impedance detecting unit.
The audio driving unit is used for sending a frequency sweeping signal to the loudspeaker module, and the frequency of the frequency sweeping signal continuously changes in a preset frequency band.
And the impedance detection unit is used for detecting the voltage signal and the current signal of the loudspeaker module and determining the frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal.
The memory 840 is used for storing a frequency/model comparison table, and the frequency/model comparison table is used for describing the corresponding relation between the resonant frequency and the model of the loudspeaker.
A processor 830 for determining a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit; and comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module.
And the second resonant frequency is in a preset frequency band of the sweep frequency signal. In an optional embodiment, the first resonant frequency corresponding to the loudspeaker is outside the preset frequency band of the sweep signal.
The electronic equipment provided by the embodiment of the application identifies the loudspeaker model based on the frequency/impedance curve, and saves the use of the PIN of the loudspeaker. Accordingly, wiring of the speaker on the main board is simplified.
In specific implementation, the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
In a specific implementation, an embodiment of the present application further provides a computer program product, where the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer is caused to perform some or all of the steps in the foregoing method embodiments.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided by the present invention, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A loudspeaker identification method is applied to a loudspeaker module, and is characterized in that the loudspeaker module comprises a loudspeaker, and the loudspeaker comprises a corresponding first resonant circuit; the loudspeaker module further comprises a second resonant circuit, the first resonant circuit and the second resonant circuit are connected in series, a first resonant frequency corresponding to the first resonant circuit is different from a second resonant frequency corresponding to the second resonant circuit, and the second resonant frequency is greater than or equal to an audio output frequency band of the loudspeaker;
the method comprises the following steps: sending a frequency sweeping signal to the loudspeaker module, wherein the frequency of the frequency sweeping signal continuously changes in a preset frequency band;
detecting a voltage signal and a current signal of the loudspeaker module, and determining a frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal;
determining a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit;
comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module;
and the second resonant frequency is in a preset frequency band of the sweep frequency signal.
2. The method of claim 1, wherein the speaker has an audio output band of 20HZ to 20 KHZ.
3. The method of claim 1, wherein the second resonant circuit is a parallel resonant circuit or a series resonant circuit.
4. The method of claim 3,
the parallel resonant circuit comprises a first inductor, a first resistor and a first capacitor, and the first inductor, the first resistor and the first capacitor are connected in parallel; alternatively, the first and second electrodes may be,
the parallel resonant circuit comprises a second inductor and a second capacitor, and the second inductor is connected with the second capacitor in parallel.
5. The method of claim 3,
the series resonant circuit comprises a third inductor, a third resistor and a third capacitor, and the third inductor, the third resistor and the third capacitor are connected in series; alternatively, the first and second electrodes may be,
the series resonant circuit comprises a fourth inductor and a fourth capacitor, and the fourth inductor and the fourth capacitor are connected in series.
6. The method of claim 1, wherein the first resonant frequency corresponding to the speaker is outside a predetermined frequency range of the swept frequency signal.
7. A speaker identification device, comprising:
the audio driving unit is used for sending a frequency sweeping signal to the loudspeaker module, and the frequency of the frequency sweeping signal continuously changes in a preset frequency band;
the impedance detection unit is used for detecting the voltage signal and the current signal of the loudspeaker module and determining the frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal;
a first determining unit for determining a second resonance frequency according to the frequency/impedance curve, the second resonance frequency corresponding to the second resonance circuit;
the second determining unit is used for comparing the second resonant frequency with a preset frequency/model comparison table and determining the model of the loudspeaker corresponding to the loudspeaker module;
and the second resonant frequency is in a preset frequency band of the sweep frequency signal.
8. The apparatus of claim 7, wherein the first resonant frequency corresponding to the speaker is outside the predetermined frequency range of the swept frequency signal.
9. An electronic device comprising an audio processing module, a memory, a processor, and a speaker module, wherein the speaker module comprises a speaker including a corresponding first resonant circuit; the loudspeaker module further comprises a second resonant circuit, the first resonant circuit and the second resonant circuit are connected in series, a first resonant frequency corresponding to the first resonant circuit is different from a second resonant frequency corresponding to the second resonant circuit, and the second resonant frequency is greater than or equal to an audio output frequency band of the loudspeaker;
the audio processing module is used for sending a frequency sweeping signal to the loudspeaker module, and the frequency of the frequency sweeping signal continuously changes in a preset frequency band; detecting a voltage signal and a current signal of the loudspeaker module, and determining a frequency/impedance curve of the loudspeaker module according to the voltage signal and the current signal;
the memory is used for storing a frequency/model comparison table, and the frequency/model comparison table is used for describing the corresponding relation between the resonant frequency and the model of the loudspeaker;
the processor is configured to determine a second resonant frequency from the frequency/impedance curve, the second resonant frequency corresponding to the second resonant circuit; comparing the second resonance frequency with a preset frequency/model comparison table, and determining the model of the loudspeaker corresponding to the loudspeaker module;
and the second resonant frequency is in a preset frequency band of the sweep frequency signal.
10. The electronic device of claim 9, wherein the first resonant frequency corresponding to the speaker is outside a preset frequency band of the swept frequency signal.
CN202110349144.8A 2021-03-31 2021-03-31 Loudspeaker identification method and device and electronic equipment Pending CN113225661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110349144.8A CN113225661A (en) 2021-03-31 2021-03-31 Loudspeaker identification method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110349144.8A CN113225661A (en) 2021-03-31 2021-03-31 Loudspeaker identification method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113225661A true CN113225661A (en) 2021-08-06

Family

ID=77086052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110349144.8A Pending CN113225661A (en) 2021-03-31 2021-03-31 Loudspeaker identification method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113225661A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840212A (en) * 2021-08-23 2021-12-24 荣耀终端有限公司 Audio signal processing circuit and electronic equipment
CN116155143A (en) * 2021-12-24 2023-05-23 武汉市聚芯微电子有限责任公司 Method and device for acquiring motor parameters
CN117135538A (en) * 2023-02-21 2023-11-28 荣耀终端有限公司 Speaker driving circuit and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857228A (en) * 2011-06-30 2013-01-02 富泰华工业(深圳)有限公司 Electronic equipment and audio output control method thereof
CN104113804A (en) * 2014-07-28 2014-10-22 瑞声光电科技(常州)有限公司 Loudspeaker system and driving method thereof
US20150030169A1 (en) * 2013-07-23 2015-01-29 Analog Devices A/S Method of Controlling Sound Reproduction of Enclosure Mounted Loudspeakers
CN111654799A (en) * 2019-12-31 2020-09-11 广州励丰文化科技股份有限公司 Loudspeaker unit identification method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857228A (en) * 2011-06-30 2013-01-02 富泰华工业(深圳)有限公司 Electronic equipment and audio output control method thereof
US20150030169A1 (en) * 2013-07-23 2015-01-29 Analog Devices A/S Method of Controlling Sound Reproduction of Enclosure Mounted Loudspeakers
CN104113804A (en) * 2014-07-28 2014-10-22 瑞声光电科技(常州)有限公司 Loudspeaker system and driving method thereof
CN111654799A (en) * 2019-12-31 2020-09-11 广州励丰文化科技股份有限公司 Loudspeaker unit identification method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
穆瑞林等: "扬声器参数集成检测系统的研究", 《中国传媒大学学报(自然科学版)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840212A (en) * 2021-08-23 2021-12-24 荣耀终端有限公司 Audio signal processing circuit and electronic equipment
CN113840212B (en) * 2021-08-23 2022-12-23 荣耀终端有限公司 Audio signal processing circuit and electronic equipment
CN116155143A (en) * 2021-12-24 2023-05-23 武汉市聚芯微电子有限责任公司 Method and device for acquiring motor parameters
CN117135538A (en) * 2023-02-21 2023-11-28 荣耀终端有限公司 Speaker driving circuit and electronic device

Similar Documents

Publication Publication Date Title
CN110347269B (en) Empty mouse mode realization method and related equipment
CN113225661A (en) Loudspeaker identification method and device and electronic equipment
CN114422340A (en) Log reporting method, electronic device and storage medium
CN111865646A (en) Terminal upgrading method and related device
CN114257920B (en) Audio playing method and system and electronic equipment
CN113571035A (en) Noise reduction method and noise reduction device
CN112532145B (en) Motor vibration control method and electronic device
CN113438364B (en) Vibration adjustment method, electronic device, and storage medium
CN113490291B (en) Data downloading method and device and terminal equipment
CN114490174A (en) File system detection method, electronic device and computer readable storage medium
CN113129916A (en) Audio acquisition method, system and related device
CN109285563B (en) Voice data processing method and device in online translation process
CN114120950B (en) Human voice shielding method and electronic equipment
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN115665632A (en) Audio circuit, related device and control method
CN111309130B (en) Mobile terminal and method for realizing water inflow protection
CN110806994B (en) Signal transmission method and device
CN115393676A (en) Gesture control optimization method and device, terminal and storage medium
CN113467735A (en) Image adjusting method, electronic device and storage medium
CN115514844A (en) Volume adjusting method, electronic equipment and system
CN115714890A (en) Power supply circuit and electronic device
CN114661258A (en) Adaptive display method, electronic device, and storage medium
CN115389927A (en) Method and system for measuring and calculating motor damping
CN114339429A (en) Audio and video playing control method, electronic equipment and storage medium
CN115145527A (en) Method and system for adjusting volume and electronic 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210806