Summary of the invention
In view of above-mentioned weak point of the prior art, the object of the invention is to provide for user a kind of control method, system and mobile terminal of earphone power supply, overcome in prior art earphone in hot plug or use procedure, because earphone load impedance increases or reduces, cause the abnormal defect of terminal closedown.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A control method for earphone power supply, wherein, comprises the following steps:
A, when earphone is in hot pluggable condition or under the state using, obtain the resistance value that earphone load produces, and judge whether described resistance value exceeds or lower than default resistance value, if exceed, perform step B, if lower than, perform step C;
B, the signal that the resistance value of load is greater than to default resistance value are input to boost module, after the voltage of described boost module control inputs earphone raises for earphone is powered;
C, the signal that the resistance value of load is less than to default resistance value are input to voltage reduction module, after the lower voltage of described voltage reduction module control inputs earphone for earphone is powered.
The control method of described earphone power supply, wherein, described steps A comprises:
A1, obtain respectively the resistance value of earphone L channel and R channel load, and judge respectively whether the resistance value of L channel and R channel load exceeds default resistance value;
Described step B comprises:
If the resistance value of B1 L channel load exceeds default resistance value, the signal that resistance value of described L channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module is exported the first level signal to boost module;
If the resistance value of B2 R channel load exceeds default resistance value, the signal that resistance value of described R channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module output second electrical level signal is to boost module.
The control method of described earphone power supply, wherein, described steps A comprises:
A2, obtain respectively the resistance value of earphone L channel and R channel load, and whether the resistance value that judges respectively L channel and R channel load is lower than default resistance value;
Described step C comprises:
If the resistance value of C1 L channel load, lower than default resistance value, sends to voltage detection module by the resistance value of described L channel load lower than the signal of default resistance value, described voltage detection module is exported three level signal to voltage reduction module;
If the resistance value of C2 R channel load, lower than default resistance value, sends to voltage detection module by the resistance value of described R channel load lower than the signal of default resistance value, described voltage detection module output the 4th level signal is to voltage reduction module.
The control method of described earphone power supply, wherein, the voltage of the earphone of boost module control inputs described in described step B also comprises after raising:
The voltage after raising is input to Voltage stabilizing module by boost module, by Voltage stabilizing module, the voltage after raising is input to earphone.
The control method of described earphone power supply, wherein, after the lower voltage of the earphone of voltage reduction module control inputs described in described step C, also comprises:
The voltage after reducing is input to Voltage stabilizing module by voltage reduction module, by Voltage stabilizing module, the voltage after reducing is input to earphone.
A control system for earphone power supply, wherein, described system comprises:
Impedance detection module, for when earphone is in hot pluggable condition or under the state using, obtains the resistance value that earphone load produces, and judges whether described resistance value exceeds or lower than default resistance value;
Boosting rectifier control module, while exceeding default impedance for the resistance value producing when earphone load, the signal that the resistance value of load is greater than to default resistance value is input to boost module, is earphone power supply after the voltage of described boost module control inputs earphone raises;
Step-down control module, for the resistance value that produces when earphone load, during lower than default impedance, the signal that the resistance value of load is less than to default resistance value is input to voltage reduction module, after the lower voltage of described voltage reduction module control inputs earphone for earphone is powered.
The control system of described earphone power supply, wherein, described impedance detection module comprises:
Left and right acoustic channels exceeds detecting unit, for obtaining respectively the resistance value of earphone L channel and R channel load, and judges respectively whether the resistance value of L channel and R channel load exceeds default resistance value;
Described boosting rectifier control module also comprises:
First signal output unit, exceed default resistance value for the resistance value when L channel load, the signal that resistance value of described L channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module is exported the first level signal to boost module;
Secondary signal output unit, exceed default resistance value for the resistance value when R channel load, the signal that resistance value of described R channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module output second electrical level signal is to boost module.
The control system of described earphone power supply, wherein, described impedance detection module comprises:
Left and right acoustic channels reduces detecting unit, and for obtaining respectively the resistance value of earphone L channel and R channel load, and whether the resistance value that judges respectively L channel and R channel load is lower than default resistance value;
Described step-down control module also comprises:
The 3rd signal output unit, the resistance value that is used for working as L channel load is lower than default resistance value, the resistance value of described L channel load is sent to voltage detection module lower than the signal of default resistance value, described voltage detection module is exported three level signal to voltage reduction module;
The 4th signal output unit, the resistance value that is used for working as R channel load is lower than default resistance value, the resistance value of described R channel load is sent to voltage detection module lower than the signal of default resistance value, described voltage detection module output the 4th level signal is to voltage reduction module.
The control system of described earphone power supply, wherein, described system also comprises:
Voltage stabilizing module, carries out, after voltage stabilizing processing, being input to earphone for the voltage of boosting rectifier control module or the input of step-down control module.
A kind of mobile terminal, wherein, utilizes the control system of described earphone power supply to control the voltage of its input earphone.
Beneficial effect, the invention provides a kind of control method, system and mobile terminal of earphone power supply, by working as earphone in hot pluggable condition or under the state using, obtain the resistance value that earphone load produces, and judge whether described resistance value exceeds or lower than default resistance value, if exceed, the signal that resistance value of load is greater than to default resistance value is input to boost module, is earphone power supply after the voltage of described boost module control inputs earphone raises; If lower than, the signal that resistance value of load is less than to default resistance value is input to voltage reduction module, it after the lower voltage of described voltage reduction module control inputs earphone, is earphone power supply, thereby for earphone provides stable supply voltage, avoid causing terminal abnormal shutdown because its both end voltage changes, facilitated for user uses the audio frequency of terminal.
Detailed description of the invention
For making object of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment. Should be appreciated that specific embodiment described herein, only for explaining the present invention, is not intended to limit the present invention.
The invention provides a kind of control method of earphone power supply, as shown in Figure 2, said method comprising the steps of:
S1, when earphone is in hot pluggable condition or under the state using, obtain the resistance value that earphone load produces, and judge whether described resistance value exceeds or lower than default resistance value, if exceed, perform step S2, if lower than, perform step S3.
Due to when earphone is in hot plug or use state lower time, the resistance value that its load produces may change, by the load impedance value detection module being connected with load is set in the sound channel of earphone, resistance value to earphone load detects, and the size of described resistance value and default resistance value are compared, described default resistance value is the resistance value of earphone load in the time of normal work, if this resistance value is greater than default resistance value, the resistance value that present load is described has exceeded its normal value, may be because of separating of load the voltage of too much headphone unit, cause the magnitude of voltage of headphone unit low, cause terminal closedown. equally, if this resistance value is less than default resistance value, illustrate that the resistance value of present load is less than its normal value, may, because of the overtension of headphone unit, cause terminal closedown. therefore when described resistance value exceeds or during lower than default resistance value, need to do further control operation to it.
S2, the signal that the resistance value of load is greater than to default resistance value are input to boost module, after the voltage of described boost module control inputs earphone raises for earphone is powered.
Because the resistance value of load is greater than default resistance value, current earphone voltage is less,, now by utilizing boost module, the voltage on earphone is raise, and when realizing its normal work, has avoided terminal to occur the possibility of abnormal shutdown.
S3, the signal that the resistance value of load is less than to default resistance value are input to voltage reduction module, after the lower voltage of described voltage reduction module control inputs earphone for earphone is powered.
Because the resistance value of load is greater than default resistance value, current earphone voltage is less,, now by utilizing boost module, the voltage on earphone is reduced, and when realizing its normal work, has avoided terminal to occur the possibility of abnormal shutdown.
Concrete, in order to realize better, earphone power supply being controlled, described step S1 comprises:
S11, obtain respectively the resistance value of earphone L channel and R channel load, and judge respectively whether the resistance value of L channel and R channel load exceeds default resistance value.
Respectively the resistance value of earphone L channel and R channel is detected, and judge according to testing result whether the resistance value of L channel and R channel exceeds default resistance value, if exceed, illustrate that the current supply voltage that is provided to earphone two ends is lower than its normal job requirement, need to be to the processing of boosting of its both end voltage, concrete steps are as follows:
If the resistance value of S21 L channel load exceeds default resistance value, the signal that resistance value of described L channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module is exported the first level signal to boost module;
If the resistance value of S22 R channel load exceeds default resistance value, the signal that resistance value of described R channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module output second electrical level signal is to boost module.
In like manner, in order to realize the accurate detection to L channel and R channel impedance, be convenient to the voltage swing at earphone two ends accurately to control, described step S1 comprises:
S12, obtain respectively the resistance value of earphone L channel and R channel load, and whether the resistance value that judges respectively L channel and R channel load is lower than default resistance value;
Described step S3 comprises:
If the resistance value of S31 L channel load, lower than default resistance value, sends to voltage detection module by the resistance value of described L channel load lower than the signal of default resistance value, described voltage detection module is exported three level signal to voltage reduction module;
If the resistance value of S32 R channel load, lower than default resistance value, sends to voltage detection module by the resistance value of described R channel load lower than the signal of default resistance value, described voltage detection module output the 4th level signal is to voltage reduction module.
In order to give earphone two ends input stabilized supply voltage, the voltage of the earphone of boost module control inputs described in described step S2 also comprises step after raising:
The voltage after raising is input to Voltage stabilizing module by boost module, by Voltage stabilizing module, the voltage after raising is input to earphone.
In like manner, after the lower voltage of the earphone of voltage reduction module control inputs described in described step S3, also comprise step:
The voltage after reducing is input to Voltage stabilizing module by voltage reduction module, by Voltage stabilizing module, the voltage after reducing is input to earphone.
The present invention based on the above method, has also invented a kind of control system of earphone power supply, and as shown in Figure 2, described system comprises:
Impedance detection module 110, for when earphone is in hot pluggable condition or under the state using, obtains the resistance value that earphone load produces, and judges whether described resistance value exceeds or lower than default resistance value;
Boosting rectifier control module 120, while exceeding default impedance for the resistance value producing when earphone load, the signal that the resistance value of load is greater than to default resistance value is input to boost module, is earphone power supply after the voltage of described boost module control inputs earphone raises;
Step-down control module 130, for the resistance value that produces when earphone load, during lower than default impedance, the signal that the resistance value of load is less than to default resistance value is input to voltage reduction module, after the lower voltage of described voltage reduction module control inputs earphone for earphone is powered.
Described impedance detection module 110 comprises:
Left and right acoustic channels exceeds detecting unit, for obtaining respectively the resistance value of earphone L channel and R channel load, and judges respectively whether the resistance value of L channel and R channel load exceeds default resistance value;
Described boosting rectifier control module 120 also comprises:
First signal output unit, exceed default resistance value for the resistance value when L channel load, the signal that resistance value of described L channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module is exported the first level signal to boost module;
Secondary signal output unit, exceed default resistance value for the resistance value when R channel load, the signal that resistance value of described R channel load is exceeded to default resistance value sends to voltage detection module, and described voltage detection module output second electrical level signal is to boost module.
Described impedance detection module 110 comprises:
Left and right acoustic channels reduces detecting unit, and for obtaining respectively the resistance value of earphone L channel and R channel load, and whether the resistance value that judges respectively L channel and R channel load is lower than default resistance value;
Described step-down control module 130 also comprises:
The 3rd signal output unit, the resistance value that is used for working as L channel load is lower than default resistance value, the resistance value of described L channel load is sent to voltage detection module lower than the signal of default resistance value, described voltage detection module is exported three level signal to voltage reduction module;
The 4th signal output unit, the resistance value that is used for working as R channel load is lower than default resistance value, the resistance value of described R channel load is sent to voltage detection module lower than the signal of default resistance value, described voltage detection module output the 4th level signal is to voltage reduction module.
Described system also comprises:
Voltage stabilizing module, carries out, after voltage stabilizing processing, being input to earphone for the voltage of boosting rectifier control module or the input of step-down control module.
The present invention also provides a kind of mobile terminal, utilizes the control system of described earphone power supply to control the voltage of its input earphone.
As an example of its detailed description of the invention example, said method and system are further explained below.
Shown in Fig. 1 and Fig. 4, the headphone unit of intelligent mobile terminal, all can produce load △ R on its left and right acoustic channels, and establishing headphone unit workload is R0. Impedance detection module is set, this impedance detection module detects in real time to the load △ R producing on headphone unit left and right acoustic channels on the one hand, and this impedance detection module has identical detection effect to intelligent mobile terminal because the variation of impedance causes other unit of bad problem on the other hand.
Preferably, be provided with impedance detection passage 1 in this impedance detection inside modules, impedance detection passage 2, impedance detection passage 3, impedance detection passage n, guarantees that this impedance detection module detects at other unit of bad problem to intelligent mobile terminal because the variation of impedance causes by its impedance detection passage.
In the specific implementation, the load △ R producing while can be respectively work on the L channel to headphone unit and R channel respectively by different impedance detection passages changes and detects. For example: if impedance detection module detects that while work on headphone unit L channel, load △ R increases, be made as the left increasing of △ R, it is the impedance detection passage 1 of impedance detection inside modules, while work on Test earphone unit L channel, when the left workload R0 increasing in headphone unit of load △ R, impedance detection module outputs level signals 1 is to voltage detection module. If load △ R increases when impedance detection module detects and works on headphone unit R channel, be made as the right increasing of △ R, be while working on the impedance detection passage 2 Test earphone unit R channels of impedance detection inside modules when the left workload R0 increasing in headphone unit of load △ R, impedance detection module outputs level signals 2 is to voltage detection module.
Same, voltage detection module inside arranges two voltage detection units that respectively voltage of L channel and R channel detected 1 and voltage detection unit 2 again, when headphone unit L channel is in the time working, when load is △ R, power management module is detected and is outputed to headphone unit by the voltage detection unit 1 of voltage detection module inside to the voltage signal of headphone unit power supply this part; When headphone unit R channel is in when work, load is △ R while changing, and power management module detects output to the voltage signal of headphone unit power supply this part by the voltage detection unit 2 of voltage detection module inside.
As shown in Figure 5, when voltage detection module receives after the level signal 1 of impedance detection module transmission, power management module is detected and is outputed to boost module by the voltage detection unit 2 of voltage detection module inside to the voltage signal of headphone unit power supply this part, by boost module, this voltage signal is increased, meet the demand of headphone unit operating voltage.
The voltage signal of increase is outputed to Voltage stabilizing module by boost module, exports by Voltage stabilizing module voltage stabilizing, powers to headphone unit. The voltage signal of Voltage stabilizing module voltage stabilizing here output is equivalent to power to headphone unit by a partial pressure unit, and this partial pressure unit is made up of headphone unit L channel load R0 of the load left increasing of △ R and headphone unit work when the work.
In like manner, if load △ R increases when impedance detection module detects headphone unit R channel, be made as the right increasing of △ R, it is the impedance detection passage 2 of impedance detection inside modules, Test earphone unit R channel is in the time of work, the right workload R0 increasing on headphone unit R channel of load △ R, impedance detection module outputs level signals 2 is to voltage detection module.
Power management module detects output to the voltage signal of headphone unit power supply this part by the voltage detection unit 2 of voltage detection module inside.
Voltage detection module receives after the level signal 2 of impedance detection module transmission, and power management module is detected and outputed to boost module by the voltage detection unit 2 of voltage detection module inside to the voltage signal of headphone unit power supply this part.
The voltage signal of increase is outputed to Voltage stabilizing module by boost module, outputs to the partial pressure unit being made up of the load R0 of the right increasing of load △ R and headphone unit work by Voltage stabilizing module voltage stabilizing, powers to headphone unit.
The present invention is equally applicable to solve the problem that on headphone unit left and right acoustic channels, workload △ R reduces, if the impedance detection passage 1 in impedance detection module detects that on headphone unit L channel, workload △ R reduces, being made as a △ R left side subtracts, impedance detection module outputs level signals 3 is to voltage detection module, the voltage detection unit 2 of voltage detection module inside, detect the voltage signal of power management module to headphone unit power supply this part, output to voltage reduction module, the voltage signal of reduction is outputed to Voltage stabilizing module by voltage reduction module, export by Voltage stabilizing module voltage stabilizing, power to headphone unit by subtracting by a △ R left side partial pressure unit forming with the load R0 of headphone unit work.
In like manner, if the impedance detection passage 2 in impedance detection module detects that on headphone unit R channel, workload △ R reduces, being made as the △ R right side subtracts, impedance detection module outputs level signals 4 is to voltage detection module, the voltage detection unit 2 of voltage detection module inside, detect the voltage signal of power management module to headphone unit power supply this part, output to voltage reduction module, the voltage signal of reduction is outputed to Voltage stabilizing module by voltage reduction module, export by Voltage stabilizing module voltage stabilizing, power to headphone unit by subtracting by the △ R right side partial pressure unit forming with the load R0 of headphone unit work.
The invention provides a kind of control method, system and mobile terminal of earphone power supply, by working as earphone in hot pluggable condition or under the state using, obtain the resistance value that earphone load produces, and judge whether described resistance value exceeds or lower than default resistance value, if exceed, the signal that resistance value of load is greater than to default resistance value is input to boost module, is earphone power supply after the voltage of described boost module control inputs earphone raises; If lower than, the signal that resistance value of load is less than to default resistance value is input to voltage reduction module, it after the lower voltage of described voltage reduction module control inputs earphone, is earphone power supply, thereby for earphone provides stable supply voltage, avoid causing terminal abnormal shutdown because its both end voltage changes, facilitated for user uses the audio frequency of terminal.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection domain of the appended claim of the present invention.