Summary of the invention
In view of the above shortcomings in the prior art, it is an object of the invention to provide a kind of earphone power supply electricity for user
Control method, system and the mobile terminal in source, overcome in the prior art that earphone is in hot plug or use process, due to earphone
Load impedance increases or reduces, and leads to the defect of terminal closedown exception.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of control method of earphone power supply, wherein the following steps are included:
A, in the state that earphone is in hot pluggable condition or is used, the impedance value that earphone load generates is obtained,
And judge whether the impedance value exceeds or then follow the steps B if exceeding lower than default impedance value, if being lower than, execute step
Rapid C;
B, the signal that the impedance value of load is greater than default impedance value is input to boost module, the boost module control is defeated
It powers after entering the voltage raising of earphone for earphone;
C, the signal that the impedance value of load is less than default impedance value is input to voltage reduction module, the voltage reduction module control is defeated
It powers after entering the voltage reduction of earphone for earphone.
The control method of the earphone power supply, wherein the step A includes:
A1, the impedance value for obtaining headset left channel and right channel load respectively, and judge that L channel and right channel are negative respectively
Whether the impedance value of load exceeds default impedance value;
The step B includes:
If the impedance value of B1, L channel load exceeds default impedance value, the impedance value that the L channel loads is exceeded
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports the first level signal to boosting mould
Block;
If the impedance value of B2, right channel load exceeds default impedance value, the impedance value that the right channel loads is exceeded
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports second electrical level signal to boosting mould
Block.
The control method of the earphone power supply, wherein the step A includes:
A2, the impedance value for obtaining headset left channel and right channel load respectively, and judge that L channel and right channel are negative respectively
Whether the impedance value of load is lower than default impedance value;
The step C includes:
If the impedance value of C1, L channel load is lower than default impedance value, the impedance value that the L channel loads is lower than
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports third level signal to decompression mould
Block;
If the impedance value of C2, right channel load is lower than default impedance value, the impedance value that the right channel loads is lower than
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports the 4th level signal to decompression mould
Block.
The control method of the earphone power supply, wherein the control input earphone of boost module described in the step B
After voltage increases, further includes:
Boost module arrives the voltage input after raising by the voltage input after raising to Voltage stabilizing module, by Voltage stabilizing module
Earphone.
The control method of the earphone power supply, wherein the control input earphone of voltage reduction module described in the step C
After voltage reduces, further includes:
Voltage reduction module arrives the voltage input after reduction by the voltage input after reduction to Voltage stabilizing module, by Voltage stabilizing module
Earphone.
A kind of control system of earphone power supply, wherein the system comprises:
Impedance detection module, for it is negative to obtain earphone in the state that earphone is in hot pluggable condition or is used
The impedance value generated is carried, and judges whether the impedance value exceeds or lower than default impedance value;
Boosting rectifier control module, when the impedance value for generating when earphone load exceeds default impedance, by the impedance value of load
Signal greater than default impedance value is input to boost module, is earphone after the voltage raising of the boost module control input earphone
Power supply;
It is depressured control module, when the impedance value for generating when earphone load is lower than default impedance, by the impedance value of load
Signal less than default impedance value is input to voltage reduction module, is earphone after the voltage reduction of the voltage reduction module control input earphone
Power supply.
The control system of the earphone power supply, wherein the impedance detection module includes:
Left and right acoustic channels exceed detection unit, for obtaining the impedance value of headset left channel and right channel load respectively, and divide
Do not judge whether L channel and the impedance value of right channel load exceed default impedance value;
The boosting rectifier control module further include:
First signal output unit, for exceeding default impedance value when the impedance value of L channel load, then by the left sound
The signal that the impedance value of road load exceeds default impedance value is sent to voltage detection module, the voltage detection module output first
Level signal is to boost module;
Second signal output unit, for exceeding default impedance value when the impedance value of right channel load, then by the right sound
The signal that the impedance value of road load exceeds default impedance value is sent to voltage detection module, the voltage detection module output second
Level signal is to boost module.
The control system of the earphone power supply, wherein the impedance detection module includes:
Left and right acoustic channels reduce detection unit, for obtaining the impedance value of headset left channel and right channel load respectively, and divide
Do not judge whether L channel and the impedance value of right channel load are lower than default impedance value;
The decompression control module further include:
Third signal output unit, for being lower than default impedance value when the impedance value of L channel load, then by the left sound
The signal that the impedance value of road load is lower than default impedance value is sent to voltage detection module, and the voltage detection module exports third
Level signal is to voltage reduction module;
Fourth signal output unit, for being lower than default impedance value when the impedance value of right channel load, then by the right sound
The signal that the impedance value of road load is lower than default impedance value is sent to voltage detection module, the voltage detection module output the 4th
Level signal is to voltage reduction module.
The control system of the earphone power supply, wherein the system also includes:
Voltage stabilizing module, it is defeated after the voltage for boosting rectifier control module or decompression control module input carries out steady pressure treatment
Enter to earphone.
A kind of mobile terminal, wherein input the voltage of earphone to it using the control system of the earphone power supply
It is controlled.
Beneficial effect, the present invention provides control method, system and the mobile terminals of a kind of earphone power supply, by working as
In the state that earphone is in hot pluggable condition or is used, the impedance value that earphone load generates is obtained, and judge the resistance
Whether anti-value exceeds or lower than default impedance value, if exceeding, the signal that the impedance value of load is greater than default impedance value is defeated
Enter to boost module, the voltage of the boost module control input earphone is powered after increasing for earphone;If being lower than, by load
The signal that impedance value is less than default impedance value is input to voltage reduction module, after the voltage of the voltage reduction module control input earphone reduces
It is avoided to provide stable supply voltage for earphone since the variation of its both end voltage leads to terminal abnormal for earphone power supply
Shutdown, the audio for user's using terminal provide convenience.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and do not have to
It is of the invention in limiting.
The present invention provides a kind of control methods of earphone power supply, as shown in Fig. 2, the method includes following steps
It is rapid:
S1, in the state that earphone is in hot pluggable condition or is used, obtain earphone load generate impedance value,
And judge whether the impedance value exceeds or then follow the steps S2 if exceeding lower than default impedance value, if being lower than, execute
Step S3.
Since when earphone is under hot plug or use state, the impedance value that load generates may become
Change, by the way that the load impedance value detection module being connected with load is arranged in the sound channel of earphone, to the impedance value of earphone load
It is detected, and the size of the impedance value is compared with preset impedance value, the default impedance value is earphone load
Impedance value in normal work illustrates that the impedance value of present load has exceeded if the impedance value is greater than preset impedance value
Its normal value may cause the voltage value of headphone unit low, cause because of the voltage for having separated excessive headphone unit of load
Terminal closedown.Equally, if the impedance value is less than preset impedance value, illustrate that the impedance value of present load is less than its normal value,
It may lead to terminal closedown because of the overtension of headphone unit.Therefore when the impedance value exceeds or is lower than pre- handicapping
When anti-value, need to do it further control operation.
S2, the signal that the impedance value of load is greater than default impedance value is input to boost module, the boost module control
It powers after inputting the voltage raising of earphone for earphone.
Since the impedance value of load is greater than default impedance value, current earphone voltage is smaller, then at this time by utilizing boosting mould
Block increases the voltage on earphone, while realizing its normal work, avoids terminal and the possibility shut down extremely occurs.
S3, the signal that the impedance value of load is less than default impedance value is input to voltage reduction module, the voltage reduction module control
It powers after inputting the voltage reduction of earphone for earphone.
Since the impedance value of load is greater than default impedance value, current earphone voltage is smaller, then at this time by utilizing boosting mould
Block reduces the voltage on earphone, while realizing its normal work, avoids terminal and the possibility shut down extremely occurs.
Specifically, preferably controlling earphone power supply to realize, the step S1 includes:
S11, the impedance value for obtaining headset left channel and right channel load respectively, and judge that L channel and right channel are negative respectively
Whether the impedance value of load exceeds default impedance value.
The impedance value of headset left channel and right channel is detected respectively, and judges L channel and the right side according to testing result
Whether the impedance value of sound channel exceeds default impedance value, if exceeding, illustrates that the supply voltage for being currently provided to earphone both ends is lower than
It, which is worked normally, requires, and needs to carry out boosting processing to its both end voltage, the specific steps are as follows:
If the impedance value of S21, L channel load exceeds default impedance value, the impedance value that the L channel loads is exceeded
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports the first level signal to boosting mould
Block;
If the impedance value of S22, right channel load exceeds default impedance value, the impedance value that the right channel loads is exceeded
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports second electrical level signal to boosting mould
Block.
Similarly, in order to realize the accurate detection to L channel and right channel impedance, convenient for the voltage swing to earphone both ends
It is accurately controlled, the step S1 includes:
S12, the impedance value for obtaining headset left channel and right channel load respectively, and judge that L channel and right channel are negative respectively
Whether the impedance value of load is lower than default impedance value;
The step S3 includes:
If the impedance value of S31, L channel load is lower than default impedance value, the impedance value that the L channel loads is lower than
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports third level signal to decompression mould
Block;
If the impedance value of S32, right channel load is lower than default impedance value, the impedance value that the right channel loads is lower than
The signal of default impedance value is sent to voltage detection module, and the voltage detection module exports the 4th level signal to decompression mould
Block.
In order to input stabilized supply voltage to earphone both ends, the control input earphone of boost module described in the step S2
After voltage increases, further comprise the steps of:
Boost module arrives the voltage input after raising by the voltage input after raising to Voltage stabilizing module, by Voltage stabilizing module
Earphone.
Similarly, it after the voltage of the control of voltage reduction module described in step S3 input earphone reduces, further comprises the steps of:
Voltage reduction module arrives the voltage input after reduction by the voltage input after reduction to Voltage stabilizing module, by Voltage stabilizing module
Earphone.
The present invention based on the above method, also invented a kind of control system of earphone power supply, such as Fig. 2 institute
Show, the system comprises:
Impedance detection module 110, for obtaining earphone in the state that earphone is in hot pluggable condition or is used
The impedance value generated is loaded, and judges whether the impedance value exceeds or lower than default impedance value;
Boosting rectifier control module 120, when the impedance value for generating when earphone load exceeds default impedance, by the impedance of load
The signal that value is greater than default impedance value is input to boost module, is ear after the voltage raising of the boost module control input earphone
Machine power supply;
It is depressured control module 130, when the impedance value for generating when earphone load is lower than default impedance, by the impedance of load
The signal that value is less than default impedance value is input to voltage reduction module, is ear after the voltage reduction of the voltage reduction module control input earphone
Machine power supply.
The impedance detection module 110 includes:
Left and right acoustic channels exceed detection unit, for obtaining the impedance value of headset left channel and right channel load respectively, and divide
Do not judge whether L channel and the impedance value of right channel load exceed default impedance value;
The boosting rectifier control module 120 further include:
First signal output unit, for exceeding default impedance value when the impedance value of L channel load, then by the left sound
The signal that the impedance value of road load exceeds default impedance value is sent to voltage detection module, the voltage detection module output first
Level signal is to boost module;
Second signal output unit, for exceeding default impedance value when the impedance value of right channel load, then by the right sound
The signal that the impedance value of road load exceeds default impedance value is sent to voltage detection module, the voltage detection module output second
Level signal is to boost module.
The impedance detection module 110 includes:
Left and right acoustic channels reduce detection unit, for obtaining the impedance value of headset left channel and right channel load respectively, and divide
Do not judge whether L channel and the impedance value of right channel load are lower than default impedance value;
The decompression control module 130 further include:
Third signal output unit, for being lower than default impedance value when the impedance value of L channel load, then by the left sound
The signal that the impedance value of road load is lower than default impedance value is sent to voltage detection module, and the voltage detection module exports third
Level signal is to voltage reduction module;
Fourth signal output unit, for being lower than default impedance value when the impedance value of right channel load, then by the right sound
The signal that the impedance value of road load is lower than default impedance value is sent to voltage detection module, the voltage detection module output the 4th
Level signal is to voltage reduction module.
The system also includes:
Voltage stabilizing module, it is defeated after the voltage for boosting rectifier control module or decompression control module input carries out steady pressure treatment
Enter to earphone.
The present invention also provides a kind of mobile terminals, input ear to it using the control system of the earphone power supply
The voltage of machine is controlled.
The above method and system are further explained by taking its specific embodiment as an example below.
In conjunction with shown in Fig. 1 and Fig. 4, the headphone unit of intelligent mobile terminal can all generate load △ R on left and right acoustic channels,
If headphone unit workload is R0.Impedance detection module is set, and the impedance detection module is on the one hand to headphone unit or so sound
The load △ R generated on road is measured in real time, and on the other hand the impedance detection module is to intelligent mobile terminal due to impedance
Variation causes the detection effect having the same of other units of bad problem.
Preferably, it is equipped with impedance detection channel 1, impedance detection channel 2 in the impedance detection inside modules, impedance detection is led to
Road 3 ..., impedance detection channel n, it is ensured that the impedance detection module is to intelligent mobile terminal since the variation of impedance causes bad ask
Other units of topic, are detected by its impedance detection channel.
It in the specific implementation, can be respectively by different impedance detection channels respectively to the L channel of headphone unit and the right side
The load △ R variation generated when working in sound channel is detected.Such as: if impedance detection module detects headphone unit L channel
△ R is loaded when upper work to increase, and is set as the left increasing of △ R, i.e. the impedance detection channel 1 of impedance detection inside modules, test earphone list
△ R left increase is loaded when working on first L channel when the workload R0 of headphone unit, impedance detection module output level letter
Number 1 arrives voltage detection module.If impedance detection module detects when working on headphone unit right channel, load △ R increases, and is set as
It is left to load △ R for △ R right increasing when working on the 2 test earphone unit right channel of impedance detection channel of impedance detection inside modules
Increase when the workload R0 of headphone unit, impedance detection module outputs level signals 2 arrive voltage detection module.
Likewise, voltage detection module inside setting two can also be carried out respectively to the voltage of L channel and right channel again
The voltage detection unit 1 and voltage detection unit 2 of detection, when headphone unit L channel at work, when loading as △ R, power supply
Management module is detected to the power voltage signal of this part of headphone unit by the voltage detection unit 1 inside voltage detection module
It is output to headphone unit;When headphone unit right channel at work, load when changing for △ R, power management module is to ear
The power voltage signal of this part of machine unit passes through the detection output of voltage detection unit 2 inside voltage detection module.
As shown in figure 5, after voltage detection module receives level signal 1 of impedance detection module transmission, power management
Module passes through the detection output of voltage detection unit 2 inside voltage detection module to the power voltage signal of this part of headphone unit
To boost module, the voltage signal is increased by boost module, meets the needs of headphone unit operating voltage.
The voltage signal of increase is output to Voltage stabilizing module by boost module, is exported by Voltage stabilizing module pressure stabilizing, and earphone list is given
Member power supply.Here the voltage signal that Voltage stabilizing module pressure stabilizing exports, which is equivalent to, is powered by a partial pressure unit to headphone unit, should
Partial pressure unit loads the left load R0 to work with headphone unit that increases of △ R by headphone unit L channel at work and forms.
Similarly, if load △ R increases when impedance detection module detects headphone unit right channel, it is set as the right increasing of △ R, that is, is hindered
Impedance detection channel 2 inside anti-detection module, at work, the right increase of load △ R is in earphone for test earphone unit right channel
Workload R0 on unit right channel, then impedance detection module outputs level signals 2 arrive voltage detection module.
Power management module passes through the voltage inside voltage detection module to the power voltage signal of this part of headphone unit
The detection output of detection unit 2.
After voltage detection module receives the level signal 2 of impedance detection module transmission, power management module gives earphone list
The voltage signal of member power supply this part is output to boost module by the detection of voltage detection unit 2 inside voltage detection module.
The voltage signal of increase is output to Voltage stabilizing module by boost module, is output to by Voltage stabilizing module pressure stabilizing by loading △
The partial pressure unit of the right increasing of R and the load R0 composition of headphone unit work, powers to headphone unit.
The present disclosure applies equally to solve the problems, such as that workload △ R reduces on headphone unit left and right acoustic channels, if impedance is examined
The impedance detection channel 1 surveyed in module detects that workload △ R reduces on headphone unit L channel, is set as the left side △ R and subtracts, then hinders
Anti- detection module outputs level signals 3 arrive voltage detection module, the voltage detection unit 2 inside voltage detection module, detection electricity
Source control module is powered the voltage signal of this part to headphone unit, is output to voltage reduction module, and voltage reduction module is by reduced voltage
Signal is output to Voltage stabilizing module, is exported by Voltage stabilizing module pressure stabilizing, by subtracting the load R0 group with headphone unit work by the left side △ R
At partial pressure unit give headphone unit power supply.
Similarly, if the impedance detection channel 2 in impedance detection module detects workload △ R on headphone unit right channel
Reduce, be set as the right side △ R and subtract, then impedance detection module outputs level signals 4 to voltage detection module, inside voltage detection module
Voltage detection unit 2, detection power management module are powered the voltage signal of this part to headphone unit, are output to voltage reduction module,
Reduced voltage signal is output to Voltage stabilizing module by voltage reduction module, is exported by Voltage stabilizing module pressure stabilizing, by being subtracted by the right side △ R and ear
The partial pressure unit of the load R0 composition of machine cell operation is powered to headphone unit.
The present invention provides control method, system and the mobile terminals of a kind of earphone power supply, by being in when earphone
Hot pluggable condition or in the state of being used, obtains the impedance value that earphone load generates, and whether judge the impedance value
Exceed or lower than default impedance value, if exceeding, the signal that the impedance value of load is greater than default impedance value is input to boosting
Module, the voltage of the boost module control input earphone are powered after increasing for earphone;It is if being lower than, the impedance value of load is small
It is input to voltage reduction module in the signal of default impedance value, the voltage of the voltage reduction module control input earphone supplies after reducing for earphone
Electricity is avoided since the variation of its both end voltage leads to exception shutdown of terminal to provide stable supply voltage for earphone, for
The audio of family using terminal provides convenience.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills
Bright design is subject to equivalent substitution or change, and all these changes or replacement all should belong to the guarantor of appended claims of the invention
Protect range.