CN107708039A - Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit - Google Patents
Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit Download PDFInfo
- Publication number
- CN107708039A CN107708039A CN201710927734.8A CN201710927734A CN107708039A CN 107708039 A CN107708039 A CN 107708039A CN 201710927734 A CN201710927734 A CN 201710927734A CN 107708039 A CN107708039 A CN 107708039A
- Authority
- CN
- China
- Prior art keywords
- loudspeaker
- switch
- impedance
- pin
- voicefrequency 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/12—Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
- H04R29/002—Loudspeaker arrays
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of control method of voicefrequency circuit, this method includes:When detecting audio output event, detect the first loudspeaker and whether the second loudspeaker are normal;When detecting the first loudspeaker normally and the second loudspeaker damage, control first switch disconnects and second switch turns on, so that the first loudspeaker audio signal that outwardly output control circuit transmits;When detecting the damage of the first loudspeaker and normal the second loudspeaker, the conducting of control first switch and second switch disconnection, so that the second loudspeaker audio signal that outwardly output control circuit transmits.The invention also discloses a kind of voicefrequency circuit, mobile terminal and a kind of computer-readable recording medium.The present invention can solve the problem that in existing double horn series connection voicefrequency circuit, the technical problem of whole voicefrequency circuit tone-off caused by any loudspeaker damage.
Description
Technical field
The present invention relates to Audiotechnica field, more particularly to the control method of voicefrequency circuit, mobile terminal and computer can
Read storage medium.
Background technology
Current most mobile terminals such as mobile phone, flat board etc. all possess audio playing function, and are to meet volume and sound
The requirement of matter, the voicefrequency circuit of mobile terminal usually require integrated power amplifier to be amplified to original audio signal, entered
And the signal after amplification is transmitted to horn element and realizes that audio plays.
In the design of voicefrequency circuit, to meet thin design demand of the market to mobile terminal, generally use is double at present
The mode of loudspeaker series connection, by taking flat board as an example, the power output of the audio frequency power amplifier of flat board is generally in more than 3W at present, and can bear 3W
The loudspeaker volume of power amplifier is larger, therefore, can be connected using two 1.5W loudspeaker instead of 3W loudspeaker, to therefore save on
Loudspeaker are taken up space.However, there is also following defect for the mode of double horn series connection:When one of loudspeaker break because of damage
Lu Shi, whole voicefrequency circuit tone-off is may result in, so as to influence Consumer's Experience.
The content of the invention
It is a primary object of the present invention to propose a kind of control method of voicefrequency circuit, mobile terminal and computer-readable deposit
Storage media, it is intended to solve in existing double horn series connection voicefrequency circuit, the whole audio-frequency electric caused by any loudspeaker damage
The technical problem of road tone-off.
To achieve the above object, the present invention provides a kind of control method of voicefrequency circuit, and the voicefrequency circuit includes control
Circuit, first switch, second switch, and the first loudspeaker and the second loudspeaker being in series, the first switch and described first
Loudspeaker are in parallel, and the second switch is in parallel with second loudspeaker, the first pin of the control circuit and first loudspeaker
It is connected, second pin is connected with second loudspeaker, and the 3rd pin is connected with the first switch, for controlling described first to open
The break-make of pass, the 4th pin are connected with the second switch, for controlling the break-make of the second switch;
The control method of the voicefrequency circuit comprises the following steps:
When detecting audio output event, detect first loudspeaker and whether second loudspeaker are normal;
When detecting normal first loudspeaker and second loudspeaker damage, the first switch is controlled to disconnect and institute
Second switch conducting is stated, so that first loudspeaker outwardly export the audio signal of the control circuit transmission;
When detecting the first loudspeaker damage and normal second loudspeaker, the first switch conducting and institute are controlled
Second switch disconnection is stated, so that second loudspeaker outwardly export the audio signal of the control circuit transmission.
Alternatively, it is described when detecting audio output event, whether detect first loudspeaker and second loudspeaker
Normal step includes:
When detecting audio output event, control the first switch conducting and the second switch disconnects, and obtain
The first impedance between first pin and the second pin;
After first impedance is obtained, control the first switch disconnection and the second switch turns on, and obtain
The second impedance between first pin and the second pin;
Judge whether first impedance that gets and second impedance are in default impedance ranges respectively;
When first impedance is in default impedance ranges, judge that second loudspeaker are normal, otherwise described in judgement
Second loudspeaker damage;When second impedance is in default impedance ranges, judges that first loudspeaker are normal, otherwise judge
The first loudspeaker damage.
Alternatively, it is described obtain between first pin and the second pin the first impedance the step of include:
The first impedance between first pin and the second pin is detected according to default detection number,
And the first average value of first impedance detected is asked for, it regard first average value as first pin and described
The first impedance between second pin;
It is described obtain between first pin and the second pin the second impedance the step of include:
The second impedance between first pin and the second pin is detected according to default detection number,
And the second average value of second impedance detected is asked for, it regard second average value as first pin and described
The second impedance between second pin.
Alternatively, whether first impedance for judging to get respectively and second impedance are in default resistance
The step of anti-scope, includes:
The first ratio of the rated impedance of first impedance got and second loudspeaker pre-saved is calculated,
And the second ratio of the rated impedance of second impedance and first loudspeaker pre-saved;
Judge whether first ratio and second ratio are in default ratio range respectively;
If first ratio is in default ratio range, first impedance for judging to get is in default
Impedance ranges, first impedance for otherwise judging to get are not at default impedance ranges;If second ratio is in
Default ratio range, then second impedance for judging to get are in default impedance ranges, otherwise judge what is got
Second impedance is not at default impedance ranges.
Alternatively, it is described when detecting audio output event, whether detect first loudspeaker and second loudspeaker
After normal step, in addition to:
When detecting that first loudspeaker and second loudspeaker are normal, the first switch and described second are controlled
Switch off, so that first loudspeaker and second loudspeaker outwardly export the audio signal of the control circuit transmission.
Alternatively, it is described when detecting audio output event, whether detect first loudspeaker and second loudspeaker
After normal step, in addition to:
When detecting that first loudspeaker and second loudspeaker damage, the prompting letter of output two-in-series loudspeaker damage
Breath.
Alternatively, the first switch and the second switch are metal-oxide-semiconductor field effect transistor.
In addition, to achieve the above object, the present invention also provides a kind of voicefrequency circuit, the voicefrequency circuit includes control electricity
Road, first switch, second switch, and the first loudspeaker and the second loudspeaker being in series, the first switch and first loudspeaker
Parallel connection, the second switch is in parallel with second loudspeaker, the first pin of the control circuit and the first loudspeaker phase
Even, second pin is connected with second loudspeaker, and the 3rd pin is connected with the first switch, for controlling the first switch
Break-make, the 4th pin is connected with the second switch, for controlling the break-make of the second switch.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, and the mobile terminal includes:Audio-frequency electric
Road, memory, processor and the control journey for being stored in the voicefrequency circuit that can be run on the memory and on the processor
Sequence, the voicefrequency circuit include control circuit, first switch, second switch, and the first loudspeaker and the second loudspeaker being in series,
The first switch is in parallel with first loudspeaker, and the second switch is in parallel with second loudspeaker, the control circuit
First pin is connected with first loudspeaker, and second pin is connected with second loudspeaker, the 3rd pin and the first switch
It is connected, for controlling the break-make of the first switch, the 4th pin is connected with the second switch, for controlling described second to open
The break-make of pass;
The control of voicefrequency circuit as described above is realized when the control program of the voicefrequency circuit is by the computing device
The step of method.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
The control program of voicefrequency circuit is stored with storage medium, is realized such as when the control program of the voicefrequency circuit is executed by processor
The step of control method of upper described voicefrequency circuit.
When detecting audio output event, detect first loudspeaker and second loudspeaker is control circuit of the present invention
It is no normal;When detecting normal first loudspeaker and second loudspeaker damage, the first switch is controlled to disconnect and institute
Second switch conducting is stated, so that first loudspeaker outwardly export the audio signal of the control circuit transmission;Detecting
When the first loudspeaker damage and normal second loudspeaker, control the first switch conducting and the second switch disconnect,
So that second loudspeaker outwardly export the audio signal of the control circuit transmission.By the above-mentioned means, present invention control
Circuit can automatic detection two-in-series loudspeaker whether be damaged, and when detecting that one of loudspeaker are damaged, from
The dynamic annexation for changing circuit, work is continued to so as to turn on another normal loudspeaker, existing double so as to solve
In loudspeaker series connection voicefrequency circuit, the technical problem of whole voicefrequency circuit tone-off caused by any loudspeaker damage.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the control method embodiment middle pitch frequency circuit of voicefrequency circuit of the present invention;
Fig. 4 is the schematic flow sheet of the control method first embodiment of voicefrequency circuit of the present invention;
Fig. 5 is the refinement step schematic diagram of step S10 in Fig. 4;
Fig. 6 is the schematic flow sheet of the control method second embodiment of voicefrequency circuit of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, the control method of voicefrequency circuit of the present invention is proposed
Each embodiment.
The present invention provides a kind of control method of voicefrequency circuit.
Reference picture 3, Fig. 3 are the schematic diagram of the control method embodiment middle pitch frequency circuit of voicefrequency circuit of the present invention.The audio
Circuit includes control circuit, first switch Q1, second switch Q2, and the first loudspeaker SPK1 being in series and the second loudspeaker
SPK2, wherein, first switch Q1 is in parallel with the first loudspeaker SPK1, and second switch Q2 is in parallel with the second loudspeaker SPK2, control circuit
Including 4 external pins, wherein the first pin 1 is connected with the first loudspeaker SPK1, second pin 2 is connected with the second loudspeaker SPK2,
3rd pin 3 is connected with first switch Q1, and for controlling first switch Q1 break-make, the 4th pin 4 is connected with second switch Q2,
For controlling second switch Q2 break-make.
First switch Q1 and second switch Q2 can be metal-oxide-semiconductor field effect transistor, or triode or other controlling switches,
Control circuit can control Q1 and Q2 to turn on respectively by drawing high the level of the 3rd pin 3 and the 4th pin 4, by dragging down the
The level of three pins 3 and the 4th pin 4, Q1 and Q2 can be controlled to disconnect respectively.
Reference picture 4, Fig. 4 are the schematic flow sheet of the control method first embodiment of voicefrequency circuit of the present invention.Methods described
Including:
Step S10, when detecting audio output event, whether just to detect first loudspeaker and second loudspeaker
Often.
In the step, when playing music by mobile terminal, video or when needing to use using other application program of loudspeaker,
Source of sound to be played is first applied to the control circuit of audio frequency of mobile terminal circuit.When control circuit detects audio output event
When, the first loudspeaker are detected first and whether the second loudspeaker are normal.
Specifically, reference picture 5, Fig. 5 are the refinement step schematic diagram of step S10 in Fig. 4.Step S10 can include:
Step S11, when detecting audio output event, control the first switch conducting and the second switch breaks
Open, and obtain the first impedance between first pin and the second pin;
Step S12, after first impedance is obtained, control the first switch disconnection and the second switch is led
It is logical, and obtain the second impedance between first pin and the second pin;
Step S13, judges whether first impedance that gets and second impedance are in default impedance respectively
Scope;
Step S14, when first impedance is in default impedance ranges, judge that second loudspeaker are normal, otherwise
Judge the second loudspeaker damage;When second impedance is in default impedance ranges, judge that first loudspeaker are normal,
Otherwise the first loudspeaker damage is judged.
First, control circuit enables pin 3 by it and controls first switch Q1 to lead when receiving audio output event
It is logical, pin 4 is enabled by it and controls second switch Q2 to disconnect, is then obtained under the state between the first pin 1 and second pin 2
The first impedance, that is, the impedance at the second loudspeaker SPK2 both ends;Afterwards, first switch Q1 disconnections and second switch Q2 are controlled
Conducting, then obtains the first impedance between the first pin 1 and second pin 2 under the state, that is, the first loudspeaker SPK1
The impedance at both ends.
After the first impedance and the second impedance is got, judge the first impedance and the second impedance whether in default respectively
Impedance ranges;If the first impedance is in default impedance ranges, illustrates the second loudspeaker SPK2 normallies, now judge second
Loudspeaker SPK2 is normal, otherwise judges that the second loudspeaker SPK2 is damaged;If the second impedance is in default impedance ranges, illustrate the first loudspeaker
SPK1 normallies, now judge that the first loudspeaker SPK1 is normal, otherwise judge the first loudspeaker SPK1 damages.Wherein, hinder
Anti- scope can be configured according to SPK1 and SPK2 rated impedance value, such as, when SPK1 and SPK2 rated impedance is 8
During Ω, impedance ranges can be set for the Ω of 7.5 Ω~9.5.
In addition, control circuit when receiving audio output event, can also control first switch Q1 to disconnect and the first
Two switch Q2 conductings, then control first switch Q1 conducting and second switch Q2 disconnect, thus get respectively the first impedance and
Second impedance;When carrying out impedance judgement, it can also directly judge whether the first impedance and the second impedance are default impedance value,
Can flexibly it be set during specific implementation.
Based on above-mentioned steps S10, when detecting that the first loudspeaker are normal and the second loudspeaker damage, step S20, control are performed
The first switch disconnects and the second switch turns on, so that first loudspeaker outwardly export the control circuit transmission
Audio signal;
When detecting the damage of the first loudspeaker and normal the second loudspeaker, step S30 is performed, controls the first switch to turn on
And the second switch disconnects, so that second loudspeaker outwardly export the audio signal of the control circuit transmission.
If detecting, the first loudspeaker SPK1 is normal and the second loudspeaker SPK2 is damaged, now control circuit control first switch Q1
Disconnect and the second switch Q2 is turned on, now control circuit passes through the first loudspeaker SPK1 outwardly exports audio signals;If inspection
Measure the first loudspeaker SPK1 damages and the second loudspeaker SPK2 is normal, now control circuit control first switch Q2 disconnects and described the
Two switch Q1 conductings, now control circuit pass through the first loudspeaker SPK2 outwardly exports audio signals.Thus, in SPK1 and SPK2
In loudspeaker when being damaged, audio signal can be outwardly transmitted by another normal loudspeaker, so as to avoid
Whole voicefrequency circuit tone-off.
By the above-mentioned means, the present embodiment control circuit can automatic detection two-in-series loudspeaker whether be damaged, and
When detecting that one of loudspeaker are damaged, the automatic annexation for changing circuit, so as to turn on another normal loudspeaker
Continue to work, so as to solve in existing double horn series connection voicefrequency circuit, caused by any loudspeaker damage
The technical problem of whole voicefrequency circuit tone-off.
Further, based on the above embodiments, it is described obtain between first pin and the second pin the
The step of one impedance, can include:According to default detection number to first between first pin and the second pin
Impedance is detected, and asks for the first average value of first impedance detected, using first average value as described in
The first impedance between first pin and the second pin;
It is described obtain between first pin and the second pin the second impedance the step of can include:According to pre-
If detection number the second impedance between first pin and the second pin is detected, and ask for what is detected
Second average value of second impedance, using second average value as between first pin and the second pin
Second impedance.
Wherein, detection number can flexibly be set, such as, when default detection number is 3 times, the first impedance for detecting
Value is respectively R2_1, R2_2, R2_3, and R2_1, R2_2, R2_3 are averaged and obtain the first impedance R2_avg=(R2_1+
R2_2+R2_3)/3;Similarly, the second impedance value detected is respectively R1_1, R1_2, R1_3, and R1_1, R1_2, R1_3 are made even
Average obtains the first impedance R1_avg=(R1_1+R1_2+R1_3)/3.
By continuously detecting and averaged, avoid caused by one-time detection impedance detection resultant error compared with
Greatly, the accuracy of detection is improved.
Further, whether first impedance for judging to get respectively and second impedance are in default
The step of impedance ranges, can include:
The first ratio of the rated impedance of first impedance got and second loudspeaker pre-saved is calculated,
And the second ratio of the rated impedance of second impedance and first loudspeaker pre-saved;
Judge whether first ratio and second ratio are in default ratio range respectively;
If first ratio is in default ratio range, first impedance for judging to get is in default
Impedance ranges, first impedance for otherwise judging to get are not at default impedance ranges;If second ratio is in
Default ratio range, then second impedance for judging to get are in default impedance ranges, otherwise judge what is got
Second impedance is not at default impedance ranges.
For example the first impedance got might as well be set as R2_avg, the second impedance is R1_avg, the first loudspeaker SPK1 and
Two loudspeaker SPK2 rated impedance is R, and default ratio range is 0.9~1.1, then as 0.9≤R2_avg/R≤1.1,
Judge that R2_avg is in default impedance ranges, otherwise judge that R2_avg is not at default impedance ranges;As 0.9≤R1_
During avg/R≤1.1, judge that R1_avg be in default impedance ranges, otherwise judgement R1_avg is in default impedance ranges.
Further, reference picture 6, Fig. 6 are the schematic flow sheet of the control method second embodiment of voicefrequency circuit of the present invention.
Based on the above embodiments, after step slo, can also include:
Step S40, when detecting that first loudspeaker and second loudspeaker are normal, control the first switch and
The second switch disconnects, so that first loudspeaker and second loudspeaker outwardly export the sound of the control circuit transmission
Frequency signal;
Step S50, when detecting that first loudspeaker and second loudspeaker damage, the loudspeaker damage of output two-in-series
Prompt message.
In the present embodiment, if detecting, the first loudspeaker SPK1 and the second loudspeaker SPK2 are normal, now control circuit control
First switch Q1 and second switch Q2 processed disconnect, so that SPK1 and SPK2 series connection and the outwardly audio of output control circuit transmission
Signal;If detecting, the first loudspeaker SPK1 and the second loudspeaker SPK2 are damaged, the prompt message of output two-in-series loudspeaker damage,
To prompt user to change the loudspeaker of damage in time.
The present invention also provides a kind of voicefrequency circuit.
The voicefrequency circuit includes control circuit, first switch, second switch, and the first loudspeaker being in series and second
Loudspeaker, the first switch is in parallel with first loudspeaker, and the second switch is in parallel with second loudspeaker, the control electricity
First pin on road is connected with first loudspeaker, and second pin is connected with second loudspeaker, the 3rd pin and described first
Switch is connected, and for controlling the break-make of the first switch, the 4th pin is connected with the second switch, for controlling described the
Two switch on-off.
Wherein, the elements of composing and control of voicefrequency circuit can refer to the control method embodiment of voicefrequency circuit of the present invention, this
Place repeats no more.
The present invention also provides a kind of mobile terminal.
Mobile terminal of the present invention includes:Voicefrequency circuit, memory, processor and it is stored on the memory and can be in institute
The control program of the voicefrequency circuit run on processor is stated, the voicefrequency circuit is opened including control circuit, first switch, second
Close, and the first loudspeaker and the second loudspeaker being in series, the first switch is in parallel with first loudspeaker, the second switch
In parallel with second loudspeaker, the first pin of the control circuit is connected with first loudspeaker, second pin and described the
Two loudspeaker are connected, and the 3rd pin is connected with the first switch, for controlling the break-make of the first switch, the 4th pin and institute
State second switch to be connected, for controlling the break-make of the second switch;The control program of the voicefrequency circuit is by the processor
The step of control method of voicefrequency circuit as described above is realized during execution.
Wherein, the method that the control program of the voicefrequency circuit run on the processor is realized when being performed can refer to
The control method embodiment of voicefrequency circuit of the present invention, here is omitted.
The present invention also provides a kind of computer-readable recording medium.
The control program of voicefrequency circuit, the control of the voicefrequency circuit are stored with computer-readable recording medium of the present invention
The step of control method of voicefrequency circuit as described above is realized when program is executed by processor.
Wherein, the method that the control program of the voicefrequency circuit run on the processor is realized when being performed can refer to
The control method embodiment of voicefrequency circuit of the present invention, here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of control method of voicefrequency circuit, it is characterised in that the voicefrequency circuit includes control circuit, first switch, the
Two switches, and the first loudspeaker and the second loudspeaker being in series, the first switch is in parallel with first loudspeaker, and described second
Switch is in parallel with second loudspeaker, and the first pin of the control circuit is connected with first loudspeaker, second pin and institute
State the second loudspeaker to be connected, the 3rd pin is connected with the first switch, for controlling the break-make of the first switch, the 4th pin
It is connected with the second switch, for controlling the break-make of the second switch;
The control method of the voicefrequency circuit comprises the following steps:
When detecting audio output event, detect first loudspeaker and whether second loudspeaker are normal;
When detecting normal first loudspeaker and second loudspeaker damage, the first switch is controlled to disconnect and described the
Two switch conductions, so that first loudspeaker outwardly export the audio signal of the control circuit transmission;
When detecting first loudspeaker damage and normal second loudspeaker, the first switch is controlled to turn on and described the
Two switch off, so that second loudspeaker outwardly export the audio signal of the control circuit transmission.
2. the control method of voicefrequency circuit as claimed in claim 1, it is characterised in that described to detect audio output event
When, detecting first loudspeaker and the whether normal step of second loudspeaker includes:
When detecting audio output event, control the first switch conducting and the second switch disconnects, and described in acquisition
The first impedance between first pin and the second pin;
After first impedance is obtained, control the first switch disconnection and the second switch turns on, and described in acquisition
The second impedance between first pin and the second pin;
Judge whether first impedance that gets and second impedance are in default impedance ranges respectively;
When first impedance is in default impedance ranges, judges that second loudspeaker are normal, otherwise judge described second
Loudspeaker damage;When second impedance is in default impedance ranges, judge that first loudspeaker are normal, otherwise described in judgement
First loudspeaker damage.
3. the control method of voicefrequency circuit as claimed in claim 2, it is characterised in that described to obtain first pin and institute
The step of stating the first impedance between second pin includes:
The first impedance between first pin and the second pin is detected according to default detection number, and asked
The first average value of first impedance detected is taken, using first average value as first pin and described second
The first impedance between pin;
It is described obtain between first pin and the second pin the second impedance the step of include:
The second impedance between first pin and the second pin is detected according to default detection number, and asked
The second average value of second impedance detected is taken, using second average value as first pin and described second
The second impedance between pin.
4. the control method of voicefrequency circuit as claimed in claim 3, it is characterised in that it is described judge to get respectively it is described
The step of whether the first impedance and second impedance are in default impedance ranges includes:
The first ratio of the rated impedance of first impedance got and second loudspeaker pre-saved is calculated, and
Second ratio of the rated impedance of second impedance and first loudspeaker pre-saved;
Judge whether first ratio and second ratio are in default ratio range respectively;
If first ratio is in default ratio range, first impedance for judging to get is in default impedance
Scope, first impedance for otherwise judging to get are not at default impedance ranges;If second ratio is in default
Ratio range, then second impedance for judging to get is in default impedance ranges, otherwise judges to get described
Second impedance is not at default impedance ranges.
5. the control method of voicefrequency circuit as claimed in claim 1, it is characterised in that described to detect audio output event
When, after detecting first loudspeaker and the whether normal step of second loudspeaker, in addition to:
When detecting that first loudspeaker and second loudspeaker are normal, the first switch and the second switch are controlled
Disconnect, so that first loudspeaker and second loudspeaker outwardly export the audio signal of the control circuit transmission.
6. the control method of voicefrequency circuit as claimed in claim 1, it is characterised in that described to detect audio output event
When, after detecting first loudspeaker and the whether normal step of second loudspeaker, in addition to:
When detecting that first loudspeaker and second loudspeaker damage, the prompt message of output two-in-series loudspeaker damage.
7. the control method of the voicefrequency circuit as any one of claim 1 to 6, it is characterised in that the first switch
It is metal-oxide-semiconductor field effect transistor with the second switch.
A kind of 8. voicefrequency circuit, it is characterised in that the voicefrequency circuit includes control circuit, first switch, second switch, and
The first loudspeaker and the second loudspeaker being in series, the first switch is in parallel with first loudspeaker, the second switch with it is described
Second loudspeaker are in parallel, and the first pin of the control circuit is connected with first loudspeaker, second pin and second loudspeaker
It is connected, the 3rd pin is connected with the first switch, for controlling the break-make of the first switch, the 4th pin and described second
Switch is connected, for controlling the break-make of the second switch.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Voicefrequency circuit, memory, processor and it is stored in
On the memory and the control program of voicefrequency circuit that can run on the processor, the voicefrequency circuit include control electricity
Road, first switch, second switch, and the first loudspeaker and the second loudspeaker being in series, the first switch and first loudspeaker
Parallel connection, the second switch is in parallel with second loudspeaker, the first pin of the control circuit and the first loudspeaker phase
Even, second pin is connected with second loudspeaker, and the 3rd pin is connected with the first switch, for controlling the first switch
Break-make, the 4th pin is connected with the second switch, for controlling the break-make of the second switch;
The control program of the voicefrequency circuit is realized as any one of claim 1 to 7 during the computing device
The step of control method of voicefrequency circuit.
10. a kind of computer-readable recording medium, it is characterised in that be stored with audio-frequency electric on the computer-readable recording medium
The control program on road, realized when the control program of the voicefrequency circuit is executed by processor such as any one of claim 1 to 7 institute
The step of control method for the voicefrequency circuit stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710927734.8A CN107708039A (en) | 2017-09-30 | 2017-09-30 | Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710927734.8A CN107708039A (en) | 2017-09-30 | 2017-09-30 | Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107708039A true CN107708039A (en) | 2018-02-16 |
Family
ID=61184645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710927734.8A Pending CN107708039A (en) | 2017-09-30 | 2017-09-30 | Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107708039A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600918A (en) * | 2018-04-13 | 2018-09-28 | 潍坊歌尔电子有限公司 | a kind of audio output circuit and earphone |
CN111629304A (en) * | 2020-05-15 | 2020-09-04 | 维沃移动通信有限公司 | Loudspeaker control method and device and electronic equipment |
CN112965551A (en) * | 2021-01-29 | 2021-06-15 | 维沃移动通信有限公司 | Heating control method and device for loudspeaker |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201001196Y (en) * | 2007-04-24 | 2008-01-02 | 王克芹 | Dual-woofer bass speaker |
CN202019441U (en) * | 2011-04-22 | 2011-10-26 | 关义刚 | Subwoofer with plurality of sackbuts |
CN202059375U (en) * | 2011-05-20 | 2011-11-30 | 广州励丰声光科技有限公司 | Device for automatic fault detection and hot standby of power amplifier |
CN202841478U (en) * | 2012-09-21 | 2013-03-27 | 郑全录 | Three-layer speaker box |
CN203617789U (en) * | 2013-11-13 | 2014-05-28 | 国家电网公司 | Power electronic equipment fault self-healing device |
CN205987376U (en) * | 2016-08-17 | 2017-02-22 | 宝沃汽车(中国)有限公司 | Speaker fault monitoring system and vehicle of vehicle |
CN206077230U (en) * | 2016-08-31 | 2017-04-05 | 广东自动化电气股份有限公司 | A kind of dc bus regulator for preventing from opening a way |
-
2017
- 2017-09-30 CN CN201710927734.8A patent/CN107708039A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201001196Y (en) * | 2007-04-24 | 2008-01-02 | 王克芹 | Dual-woofer bass speaker |
CN202019441U (en) * | 2011-04-22 | 2011-10-26 | 关义刚 | Subwoofer with plurality of sackbuts |
CN202059375U (en) * | 2011-05-20 | 2011-11-30 | 广州励丰声光科技有限公司 | Device for automatic fault detection and hot standby of power amplifier |
CN202841478U (en) * | 2012-09-21 | 2013-03-27 | 郑全录 | Three-layer speaker box |
CN203617789U (en) * | 2013-11-13 | 2014-05-28 | 国家电网公司 | Power electronic equipment fault self-healing device |
CN205987376U (en) * | 2016-08-17 | 2017-02-22 | 宝沃汽车(中国)有限公司 | Speaker fault monitoring system and vehicle of vehicle |
CN206077230U (en) * | 2016-08-31 | 2017-04-05 | 广东自动化电气股份有限公司 | A kind of dc bus regulator for preventing from opening a way |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600918A (en) * | 2018-04-13 | 2018-09-28 | 潍坊歌尔电子有限公司 | a kind of audio output circuit and earphone |
CN111629304A (en) * | 2020-05-15 | 2020-09-04 | 维沃移动通信有限公司 | Loudspeaker control method and device and electronic equipment |
CN112965551A (en) * | 2021-01-29 | 2021-06-15 | 维沃移动通信有限公司 | Heating control method and device for loudspeaker |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107343083A (en) | One kind lifting game experiencing method, apparatus and computer-readable recording medium | |
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN107463481A (en) | Data interactive method, mobile terminal and storage medium | |
CN107704571A (en) | Information intelligent recommends method, apparatus and computer-readable recording medium | |
CN107566635A (en) | Screen intensity method to set up, mobile terminal and computer-readable recording medium | |
CN107181700A (en) | Control method, mobile terminal and the storage medium of application program for mobile terminal | |
CN107729115A (en) | A kind of display methods, equipment and computer-readable storage medium | |
CN108021698A (en) | Delet method, device and the computer-readable storage medium of storage file | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107506163A (en) | Adjust method, terminal and the computer-readable recording medium of screen display | |
CN107678634A (en) | The method to set up and terminal of game mode, computer-readable recording medium | |
CN107729103A (en) | A kind of method for switching theme, mobile terminal and computer-readable storage medium | |
CN107341067A (en) | A kind of keys deactivation processing method, equipment and computer-readable recording medium | |
CN109901980A (en) | Serial ports log grabs circuit, method, terminal and computer readable storage medium | |
CN107705247A (en) | A kind of method of adjustment of image saturation, terminal and storage medium | |
CN107390856A (en) | A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN107247606A (en) | Application management method, device and computer-readable recording medium | |
CN107708039A (en) | Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit | |
CN108322595A (en) | A kind of control method, terminal and computer readable storage medium | |
CN107197101A (en) | Audio regulation method, mobile terminal and computer-readable recording medium | |
CN107423065A (en) | Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else | |
CN107911778A (en) | A kind of playback method based on loudspeaker in parallel, mobile terminal and readable storage medium storing program for executing | |
CN108540697A (en) | It is double before and after one kind to take the photograph circuit structure and its mobile terminal | |
CN107491709A (en) | A kind of recognition methods of code figure, terminal and computer-readable recording 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180216 |
|
RJ01 | Rejection of invention patent application after publication |