The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of power protection of mobile device
System and method, for solving hardware-initiated in charging process in the prior art and stopping asking to the rush of current of charging circuit
Topic.
In order to achieve the above objects and other related objects, the present invention provides a kind of power protection system of mobile device, bag
Include:Charhing unit, including:Two inputs being connected with power supply adaptor and battery respectively and with output end and Enable Pin,
For determining to be charged from the power supply adaptor to battery when the voltage of the voltage and battery for being based on relatively more described power supply adaptor
When, export gating signal;Processing unit, for when there is startup hardware instruction in monitoring mobile device, not output to be allowed
Charging signals, and the corresponding hardware of delayed startup;And for when there is stopping hardware instruction in monitoring mobile device, stopping phase
Hardware is answered, and time delay output allows charging signals;Protection location, including:Output end with the charhing unit and treatment respectively
Two inputs and output end of the output end connection of unit connect the Enable Pin of the charhing unit, for by analyzing
State the signal of the output end of charhing unit and the output end of processing unit, it is determined whether allow to battery to Enable Pin output
The enable signal of charging;If exporting the enable signal, the charhing unit charges to the battery.
Preferably, the charhing unit includes:Power supply adaptor battery detecting module, comprising:Respectively with power supply adaptor
Two inputs and output end being connected with battery, it is true for voltage and the voltage of battery based on relatively more described power supply adaptor
It is fixed whether to be charged from the power supply adaptor to battery, and when it is determined that exporting gating when the power supply adaptor charges to battery
Signal to the charhing unit output end;The power supply selection being connected with the output end of the power supply adaptor battery detecting module
Module, for being powered from the power supply adaptor to the hardware of the mobile device based on gating signal selection;Control end
The charging module being connected with the Enable Pin of the charhing unit, for determining the power adaptation based on the enable signal for being received
Device charges to battery.
Preferably, the protection location includes:Make energy control module, including respectively with the output end of the charhing unit and
Two inputs and the output end that is connected with the Enable Pin of the charhing unit of the output end connection of processing unit, for
When receiving the gating signal and allowing charging signals, the enable signal is exported to the Enable Pin.
Preferably, the processing unit be used for based on the protection location response whether to the Enable Pin output allow to
The duration that the enable signal that battery charges is spent, setting starts the first delay duration of corresponding hardware;And for based on institute
Hardware Response Delay halt instruction is stated and spent duration out of service, when setting time delay output allows the second time delay of charging signals
It is long.
Preferably, the instruction for starting hardware and the instruction of stopping hardware including following at least one or more of group
Close:Start and stop the instruction of the hardware related to voice calling service, start and stop the hardware related with sensing business
Instruction, the instruction for starting and stopping the hardware related to man-machine interaction business.
Based on above-mentioned purpose, a kind of power protection method of mobile device of the invention, including:When based on comparing power adaptation
The voltage of device and the voltage of battery determine when power supply adaptor charges to battery, to export gating signal;It is hard when monitoring to start
When part is instructed, not output allows charging signals, and the corresponding hardware of delayed startup;And stopping hardware instruction ought having been monitored
When, stop corresponding hardware, and time delay output allows charging signals;By analyzing gating signal and allowing the combination of charging signals,
Determine whether that power supply adaptor charges to battery.
Preferably, also include:Based on gating signal selection from the power supply adaptor to the hard of the mobile device
Part is powered.
Preferably, described when monitoring to start hardware instruction, not output allows charging signals, and delayed startup is corresponding
Hardware;And when having monitored to stop hardware instruction, stop corresponding hardware, and time delay output allows the mode bag of charging signals
Include:Allowed to the spent duration of battery charging based on response, setting starts the first delay duration of corresponding hardware;And be based on
The Hardware Response Delay halt instruction and spent duration out of service, setting time delay output allow the second time delay of charging signals
Duration.
Preferably, the instruction for starting hardware and the instruction of stopping hardware including following at least one or more of group
Close:Start and stop the instruction of the hardware related to voice calling service, start and stop the hardware related with sensing business
Instruction, the instruction for starting and stopping the hardware related to man-machine interaction business.
As described above, the power protection system and method for mobile device of the invention, have the advantages that:Work as monitoring
When hardware instruction is started, not output allows charging signals, and when having monitored to stop hardware instruction, time delay output allows to fill
Electric signal, is prevented from power supply adaptor to hardware-initiated in battery charging process and stop to the rush of current of charging circuit;
Delayed startup and time delay output allow charging signals, are prevented from the transient high-current produced during hardware-initiated and stopping.
Specific embodiment
Embodiments of the present invention are illustrated below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages of the invention and effect easily.The present invention can also be by specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under spirit of the invention.
Refer to Fig. 1.The present invention provides a kind of power protection system of mobile device.Included in the mobile device and referred to
Order starts/stops the hardware for starting.Such as, the mobile device is mobile phone, then when voice communication instruction is received, movement sets
Loudspeaker and its peripheral circuit in standby are activated.The power protection system is used to protect in mobile device during charging
Influence of the rush of current that these hardware are produced when starting, stopping to the charging circuit of battery.
The power protection system 3 is located in the mobile device, and it includes:Charhing unit 31, processing unit 32 and guarantor
Shield unit 33.
The charhing unit 31 includes:Two inputs being connected with power supply adaptor 1 and battery 2 respectively and with defeated
Go out end and Enable Pin, for determining to be fitted by the power supply when the voltage of the voltage and battery 2 for being based on relatively more described power supply adaptor 1
When orchestration 1 charges to battery 2, gating signal is exported.
Specifically, when power supply adaptor 1 connects external power source (such as charger, USB power supply units), the charhing unit
31 are determined whether from the power supply adaptor 1 to battery 2 by the voltage swing of relatively more described power supply adaptor 1 and battery 2
Charge.When the voltage of the power supply adaptor 1 is more than the voltage of the battery 2, it is determined that from the power supply adaptor 1 to battery
2 charge, and export gating signal (high level as exported predeterminated voltage).Conversely, then not output gating signal (is such as exported low
Level).When the charhing unit 31 exports gating signal, not described power supply adaptor 1 can necessarily charge to battery 2.
And need the further monitoring result of the processing unit 32.
Preferably, as shown in Fig. 2 the charhing unit 31 includes:Power supply adaptor battery detecting module 311, power supply choosing
Select module 312, charging module 313.Wherein, the charhing unit 31 can be comprising power supply adaptor battery detecting module 311, supply
The integrated circuit of electric selecting module 312, charging module 313.
The power supply adaptor battery detecting module 311 is included:Two for being connected with power supply adaptor 1 and battery 2 respectively
Input and output end, determine whether by the electricity for voltage and the voltage of battery 2 based on relatively more described power supply adaptor 1
Source adapter 1 charges to battery 2, and when it is determined that exporting gating signal when the power supply adaptor 1 charges to battery 2 to described
The output end of charhing unit 31.
Output end of the power supply selecting module 312 also with the power supply adaptor battery detecting module 311 is connected, and is used for
Powered from the power supply adaptor 1 to the hardware of the mobile device based on gating signal selection.Wherein, the power supply choosing
Selecting module 312 includes:It is connected between the power supply adaptor 1 and the system power supply output port of the mobile device first
On-off circuit and the second switch circuit being connected between the battery 2 and the system power supply output port.
Specifically, the power supply selecting module 312 controls the first switch electricity when effective gating signal is received
Road turns on, and controls the second switch circuit between the battery 2 and the system power supply output port to disconnect.In the power supply
Under the control of selecting module 312, the power supply adaptor 1 is powered to the system power supply output port.Wherein, the system electricity
The power port of each hardware in the source output terminal mouthful connection mobile device.
When the power supply selecting module 312 receives invalid gating signal, the first switch circuit is controlled to disconnect,
And control the second switch circuit turn-on.Under the control of the power supply selecting module 312, the battery 2 is to the system
Output port of power source is powered.
The charging module 313 includes:The control end being connected with the Enable Pin of the charhing unit 31, for based on being connect
The enable signal of receipts determines that the power supply adaptor 1 charges to battery 2.
Here, the charging module 313 can include the DC-DC converter being connected with power supply adaptor 1 and the-DC
The control circuit of converter.Wherein, the control circuit is connected with the Enable Pin, when enable signal is received, connects institute
State the electrical connection of DC-DC converter and battery 2.
The processing unit 32 is used for when there is startup hardware instruction in monitoring mobile device, and not output allows to charge
Signal, and the corresponding hardware of delayed startup;And it is corresponding hard for when there is stopping hardware instruction in monitoring mobile device, stopping
Part, and time delay output allows charging signals.
Here, the instruction for starting hardware and the instruction of stopping hardware including following at least one or more of combination:
Start and stop the instruction of the hardware related to voice calling service, start and stop the finger of the hardware related with sensing business
Make, start and stop the instruction of the hardware related to man-machine interaction business.The instruction for starting hardware and the finger of stopping hardware
Order can be digital information, or the hopping edge of level.The instruction for starting hardware can be instantaneous instruction, also may be used
With since start to it is described stopping hardware instruction when stop.
Specifically, the processing unit 32 is when there is the instruction for starting hardware in monitoring mobile device, and non-immediate is opened
Corresponding hardware is moved, but first keeps in the instruction, and not to the output permission charging signals of the protection location 33, in the first time delay
After duration, then the instruction is performed to start corresponding hardware.Wherein, first delay duration is based on the sound of the protection location 33
Whether should allow to be set to the duration that the enable signal of the charging of battery 2 is spent to Enable Pin output.Described first
Whether delay duration can be equal to or be responded slightly larger than the protection location 33 and allow to be filled to battery 2 to Enable Pin output
The duration that the enable signal of electricity is spent.
The processing unit 32 is exportable to permit from after enabled instruction to the corresponding hardware delayed startup for receiving corresponding hardware
Perhaps charging signals.So avoid it is hardware-initiated during rush of current.
Or, the processing unit 32 when the enabled instruction of corresponding hardware is received, it is same hard up to receiving
Part be based on halt instruction it is out of service after in a period of, not output allow charging signals.Based on stopping the of hardware instruction
After two delay durations, the output of the processing unit 32 allows charging signals.Wherein, second delay duration is based on described hard
Part in response to halt instruction spent duration out of service and set.Second delay duration can be equal to or bigger
In the hardware spent duration out of service.In this way, not charged to battery 2 during whole hardware runs.Avoid
The influence that produced current fluctuation is charged to battery 2 during hardware-initiated, operation and stopping.
The protection location 33 includes:Connect with the output end of the charhing unit 31 and the output end of processing unit 32 respectively
Two inputs and output end for connecing connect the Enable Pin of the charhing unit 31, for by analyzing the charhing unit 31
Output end and processing unit 32 output end signal, it is determined whether to the Enable Pin output allow to battery 2 charge
Enable signal;If exporting the enable signal, the charhing unit 31 charges to the battery 2.
Here, the protection location 33 includes making energy control module.
It is described make energy control module include respectively with the output end and the output end of processing unit 32 of the charhing unit 31
Two inputs of connection and the output end being connected with the Enable Pin of the charhing unit 31, for receiving the gating
When signal and permission charging signals, the enable signal is exported to the charhing unit 31.For example, described make energy control module bag
Include and door.When the gating signal and permission charging signals are high level, described and door exports high level, then the high level
It is the enable signal.The charhing unit 31 is based on the enable signal allows power supply adaptor 1 to be charged to battery 2.
For example, during the charhing unit 31 determines that power supply adaptor 1 charges to battery 2, being exhaled when user initiates voice
When crying, the processing unit 32 receives the operational order that user calls, then determine to start receiver, words based on the instruction
The hardware such as cylinder, antenna, radio-frequency communication module.Now, the processing unit 32 does not start each hardware immediately, to perform initiation language
The operation of sound calling, but continue not to export permission charging signals (such as output low level) based on the operational order, and
Start corresponding hardware after one delay duration, the operation of audio call is initiated to perform.The protection location 33 is based on not receiving institute
The gating signal for allowing charging signals and receiving the charhing unit 31 is stated, it is determined that not to the enable of the charhing unit 31
End output enables signal, then the charhing unit 31 does not allow power supply adaptor 1 to be charged to the battery 2.
When user terminates audio call on-hook, the processing unit 32 receives the operational order that user hangs up the telephone,
Then determine to stop the hardware such as receiver, microphone, antenna, radio-frequency communication module based on the instruction.Now, the processing unit 32 is not
Stop each hardware immediately, the operation of audio call is terminated to perform, but the letter that charges is allowed based on operational order output one
Number (such as high level), and stop corresponding hardware after a delay duration, the operation of audio call is terminated to perform.The protection
Unit 33 is based on the gating signal of the permission charging signals and the charhing unit 31, it is determined that making to the charhing unit 31
The output of energy end enables signal, then the charhing unit 31 allows power supply adaptor 1 to be charged to the battery 2.
As shown in Fig. 2 the structure example of the power protection system 3 is as follows:
The power protection system 3 includes:Charhing unit 31, processing unit 32 and protection location 33.The charhing unit
31 include:Power supply adaptor battery detecting module 311, power supply selecting module 312 and charging module 313.The protection location 33
Including:Make energy control module.
Wherein, two inputs of the power supply adaptor battery detecting module 311 respectively with power supply adaptor 1 and battery 2
Make an input of energy control module described in connected, output end connection.Another input for making energy control module also with institute
State processing unit 32 to be connected, its output end connects the charging module 313.First switch in the power supply selecting module 312
The output end of circuit and second switch circuit with the power supply adaptor battery detecting module 311 is connected.
The course of work of power protection system 3 as shown in Figure 2 is as follows:
After power supply adaptor 1 connects external power source, the power supply adaptor battery detecting module 311 compares power supply and fits
The voltage of orchestration 1 more than battery 2 voltage, therefore output high level gating signal respectively to it is described power supply selecting module 312 in
First switch circuit and second switch circuit and make an input of energy control module to described.When the processing unit
32 receive hardware enabled instruction when, the enabled instruction is kept in, and defeated to another input for making energy control module
Go out low level, i.e., the permission charging signals that not output high level is represented, until when receiving the halt instruction of same hardware
The second delay duration after, just export the permission charging signals.During this period, it is described making in energy control module to be received with door
To the low level that the gating signal and processing unit 32 of high level are exported, to the control end of the charging module 313, (correspondence is described
The Enable Pin of charhing unit 31) output low level electric signal (i.e. not output enables signal), then the charging module 313 is not permitted
Perhaps power supply adaptor 1 charges to battery 2.Wherein, the processing unit 32 performs the enabled instruction after the first delay duration,
And stop hardware operation immediately when halt instruction is received.
When the output of the processing unit 32 allows charging signals, the gating signal and height that high level is received with door
The permission charging signals of level, export high level electric signal, then the charging module to the control end of the charging module 313
313 permission power supply adaptors 1 charge to battery 2.
Refer to Fig. 3.The present invention provides a kind of power protection method of mobile device.The power protection method it is main by
Power protection system in a mobile device is installed to perform.Included in the mobile device by instruction startup/stopping startup
Hardware.Such as, the mobile device is mobile phone, then when receiving voice communication and instructing, loudspeaker in mobile device and its
Peripheral circuit is activated.The power protection system is used to protecting these hardware in mobile device during charging starting,
Influence of the rush of current produced during stopping to the charging circuit of battery.
The power protection system is located in the mobile device, and it includes:Charhing unit, processing unit and protection are single
Unit.
The charhing unit includes:Two inputs being connected with power supply adaptor and battery respectively and with output end
And Enable Pin.In step sl, the charhing unit is when true based on the voltage for comparing the power supply adaptor and the voltage of battery
Determine when the power supply adaptor charges to battery, to export gating signal.
Specifically, when power supply adaptor connects external power source (such as charger, USB power supply units), the charhing unit
Determine whether to be charged from the power supply adaptor to battery by the voltage swing of relatively more described power supply adaptor and battery.
When the voltage of the power supply adaptor is more than the voltage of the battery, it is determined that charged from the power supply adaptor to battery, and
Output gating signal (high level as exported predeterminated voltage).Conversely, then not exporting gating signal (such as output low level).When
During the charhing unit output gating signal, not described power supply adaptor can necessarily charge to battery.And need the treatment
The further monitoring result of unit.
Preferably, as shown in Fig. 2 the charhing unit includes:Power supply adaptor battery detecting module, power supply selection mould
Block, charging module.Wherein, the charhing unit can be comprising power supply adaptor battery detecting module, power supply selecting module, charge
The integrated circuit of module.The step S1 includes step S11, S12 and S13.(being unillustrated)
The power supply adaptor battery detecting module is included:Two inputs being connected with power supply adaptor and battery respectively
And output end.In step s 11, the power supply adaptor battery detecting module be based on the relatively voltage of the power supply adaptor and
The voltage of battery determines whether to be charged from the power supply adaptor to battery, and when determination is filled from the power supply adaptor to battery
The output end of gating signal to the charhing unit is exported when electric.
Output end of the power supply selecting module also with the power supply adaptor battery detecting module is connected.In step S12
In, the power supply selecting module is based on the gating signal and selects to be supplied from the power supply adaptor to the hardware of the mobile device
Electricity.Wherein, the power supply selecting module includes:The power supply adaptor is connected to be exported with the system power supply of the mobile device
First switch circuit between port and the second switch electricity being connected between the battery and the system power supply output port
Road.
Specifically, the power supply selecting module controls the first switch circuit when effective gating signal is received
Conducting, and control the second switch circuit between the battery and the system power supply output port to disconnect.In the power supply choosing
Select under the control of module, the power supply adaptor is powered to the system power supply output port.Wherein, the system power supply output
Port connects the power port of each hardware in the mobile device.
When the power supply selecting module receives invalid gating signal, the first switch circuit is controlled to disconnect, and
Control the second switch circuit turn-on.Under the control of the power supply selecting module, the battery is defeated to the system power supply
Exit port is powered.
The charging module includes:The control end being connected with the Enable Pin of the charhing unit.In step s 13, it is described
Charging module determines that the power supply adaptor charges to battery based on received enable signal.
Here, the charging module can include the DC-DC converter being connected with power supply adaptor and-DC conversion
The control circuit of device.Wherein, the control circuit is connected with the Enable Pin, when enable signal is received, connects the DC-
The electrical connection of DC converters and battery.
In step s 2, the processing unit is exported when there is startup hardware instruction in monitoring mobile device, not and permitted
Perhaps the corresponding hardware of charging signals, and delayed startup;And for when there is stopping hardware instruction in monitoring mobile device, stopping
Corresponding hardware, and time delay output allows charging signals.
Here, the instruction for starting hardware and the instruction of stopping hardware including following at least one or more of combination:
Start and stop the instruction of the hardware related to voice calling service, start and stop the finger of the hardware related with sensing business
Make, start and stop the instruction of the hardware related to man-machine interaction business.The instruction for starting hardware and the finger of stopping hardware
Order can be digital information, or the hopping edge of level.The instruction for starting hardware can be instantaneous instruction, also may be used
With since start to it is described stopping hardware instruction when stop.
Specifically, the processing unit is when there is the instruction for starting hardware in monitoring mobile device, and non-immediate starts
Corresponding hardware, but the instruction is first kept in, and not to protection location output permission charging signals, in the first delay duration
Afterwards, then the instruction is performed to start corresponding hardware.Wherein, whether first delay duration is to be based on protection location response
Allow to be set to the duration that the enable signal of battery charging is spent to Enable Pin output.First delay duration
Can be equal to or whether the enable signal to battery charging is allowed to Enable Pin output slightly larger than protection location response
The duration for being spent.
The processing unit from after enabled instruction to the corresponding hardware delayed startup for receiving corresponding hardware, exportable permission
Charging signals.So avoid it is hardware-initiated during rush of current.
Or, the processing unit when enabled instruction of corresponding hardware is received, up to receiving same hardware
Based on halt instruction it is out of service after in a period of, not output allow charging signals.Based on stopping hardware instruction second
After delay duration, the processing unit output allows charging signals.Wherein, second delay duration is rung based on the hardware
Answer halt instruction and spent duration out of service and set.Second delay duration can be equal to or slightly larger than institute
State hardware spent duration out of service.In this way, not charged to battery during whole hardware runs.Hardware is avoided to open
The influence that produced current fluctuation is charged to battery during dynamic, operation and stopping.
The protection location includes:Two for being connected with the output end of the charhing unit and the output end of processing unit respectively
The Enable Pin of individual input and the output end connection charhing unit.In step s3, the protection location is gated by analyzing
The combination of signal and permission charging signals, it is determined whether to the enable signal that Enable Pin output allows to be charged to battery;If
The enable signal is exported, then the charhing unit charges to the battery.
Here, the protection location includes making energy control module.
It is described to make energy control module include being connected with the output end of the charhing unit and the output end of processing unit respectively
Two inputs and the output end that is connected with the Enable Pin of the charhing unit, for receive the gating signal and
When allowing charging signals, the enable signal is exported to the charhing unit.For example, described make energy control module include and door.
When the gating signal and permission charging signals are high level, described to export high level with door, then the high level is described
Enable signal.The charhing unit is based on the enable signal allows power supply adaptor to be charged to battery.
For example, during the charhing unit determines that power supply adaptor charges to battery, when user initiates audio call,
The processing unit receives the operational order that user calls, then based on the instruction determine start receiver, microphone, antenna,
The hardware such as radio-frequency communication module.Now, the processing unit does not start each hardware immediately, and the behaviour of audio call is initiated to perform
Make, but continue not to export permission charging signals (such as output low level) based on the operational order, and in a delay duration
After start corresponding hardware, with perform initiate audio call operation.The protection location be based on do not receive it is described allow charge believe
Number and receive the gating signal of the charhing unit, it is determined that not enable signal to the Enable Pin output of the charhing unit, then
The charhing unit does not allow power supply adaptor to be charged to the battery.
When user terminates audio call on-hook, the processing unit receives the operational order that user hangs up the telephone, then
Determine to stop the hardware such as receiver, microphone, antenna, radio-frequency communication module based on the instruction.Now, the processing unit is not immediately
Stop each hardware, the operation of audio call is terminated to perform, but charging signals are allowed (such as based on operational order output one
High level), and stop corresponding hardware after a delay duration, the operation of audio call is terminated to perform.The protection location
Gating signal based on the permission charging signals and the charhing unit, it is determined that making to the Enable Pin output of the charhing unit
Can signal, then the charhing unit allow power supply adaptor to be charged to the battery.
In sum, the present invention, when monitoring to start hardware instruction, not output allows charging signals, when monitoring
When having stopping hardware instruction, time delay output allows charging signals, is prevented from power supply adaptor to hardware in battery charging process
Start and stop the rush of current to charging circuit;Delayed startup and time delay output allow charging signals, are prevented from hardware and open
The transient high-current produced during dynamic and stopping.So, the present invention effectively overcomes various shortcoming of the prior art and has height
Industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
The personage for knowing this technology all can carry out modifications and changes under without prejudice to spirit and scope of the invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete with institute under technological thought without departing from disclosed spirit such as
Into all equivalent modifications or change, should be covered by claim of the invention.