The content of the invention
May if occurring electric leakage accident during it is a primary object of the present invention to solve and mobile terminal is charged in the prior artThe technical problem damaged to human body.
To achieve the above object, a kind of charge control method that the present invention is provided, applied to mobile terminal, charge control sideMethod includes:
When detecting mobile terminal in charged state, detect the mobile terminal currently whether in default busy shapeState;
If the mobile terminal is currently at default busy condition, default open command is sent external to mobile terminalControl device, for disconnecting the charging connection between the mobile terminal and preset power.
Preferably, if the mobile terminal is currently at default busy condition, by default open command send toInclude after the step of mobile terminal external control device:
When detecting the mobile terminal and being not currently in default busy condition, default link order is sent to describedControl device, for setting up the charging connection between the mobile terminal and power supply.
Preferably, it is described when detecting mobile terminal in charged state, detect whether the mobile terminal is currently locatedInclude after default busy condition:
When detecting the mobile terminal and being not currently in default busy condition, the mobile terminal filling currently is detectedElectric current, and judge whether the charging current is more than predetermined current threshold;
If the current charging current of the mobile terminal is more than predetermined current threshold, default open command is sent to instituteControl device is stated, for disconnecting the charging connection between the mobile terminal and preset power.
Preferably, it is described when detecting mobile terminal in charged state, detect whether the mobile terminal is currently locatedAlso include after default busy condition:
When detecting the mobile terminal and being not currently in default busy condition, the current electricity of the mobile terminal is detectedPond temperature, and judge whether the battery temperature is more than preset temperature threshold value;
If the current battery temperature of the mobile terminal is more than preset temperature threshold value, default open command is sent to instituteControl device is stated, for disconnecting the charging connection between the mobile terminal and preset power.
Preferably, the charge control method also includes:
When the mobile terminal is in charge, detect whether the mobile terminal current electric quantity is more than default power threshold;
If the mobile terminal current electric quantity is more than default power threshold, default open command is sent to the controlEquipment, for disconnecting the charging connection between the mobile terminal and preset power.
In addition, to achieve the above object, the present invention also provides a kind of battery charge controller, including:
First detection module, for when detecting mobile terminal in charged state, detecting that the mobile terminal is currentWhether in default busy condition;
First sending module, if being currently at default busy condition for the mobile terminal, by default open commandSend to the external control device of mobile terminal, for disconnecting the charging connection between the mobile terminal and preset power.
Preferably, the battery charge controller also includes:
Second sending module, will be default for when detecting the mobile terminal and being not currently in default busy conditionLink order is sent to the control device, for setting up the charging connection between the mobile terminal and power supply.
Preferably, the battery charge controller includes:
Second detection module, for when detecting the mobile terminal and being not currently in default busy condition, detecting instituteThe current charging current of mobile terminal is stated, and judges whether the charging current is more than predetermined current threshold;
3rd sending module, will be pre- if the charging current current for the mobile terminal is more than predetermined current thresholdIf open command is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
Preferably, the battery charge controller also includes:
3rd detection module, for when detecting the mobile terminal and being not currently in default busy condition, detecting instituteThe current battery temperature of mobile terminal is stated, and judges whether the battery temperature is more than preset temperature threshold value;
4th sending module, will be pre- if the battery temperature current for the mobile terminal is more than preset temperature threshold valueIf open command is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
Preferably, the battery charge controller also includes:
4th detection module, for when the mobile terminal is in charge, detecting whether the mobile terminal current electric quantity is more thanDefault power threshold;
5th sending module, if being more than default power threshold for the mobile terminal current electric quantity, disconnects defaultInstruction is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
By the present invention, mobile terminal, if detecting mobile terminal is in default busy condition, sends pre- in chargingIf open command is to control device, so that control device disconnects mobile phone with the charging connection between preset power.It effectively preventThe situation for occurring electric leakage when mobile terminal charges to damage human body occurs.
Embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of charge control method, applied to mobile terminal.
Reference picture 1, Fig. 1 is the schematic flow sheet of charge control method first embodiment of the present invention.
In the present embodiment, charge control method includes:
Whether step S10, when detecting mobile terminal in charged state, detect the mobile terminal currently in pre-If busy condition;
In the present embodiment, the type to mobile terminal is not restricted, for example, mobile terminal can be that mobile phone, flat board etc. are easyCarry the electronic product used.
In the present embodiment, it is attached between mobile terminal, control device, power supply by way of USB data line, such asShown in Fig. 2, Fig. 2 is mobile terminal, control device, the schematic diagram of a scenario of the embodiment of power supply connected mode one.In control deviceIt is provided with cut-offing protecting switch, normal condition, the switch is closure state, the electric current of power supply output can be passed by control deviceMobile phone is transported to, when the switch is off-state, the electric current of power supply output can not be transmitted by control device to mobile phone.
In the present embodiment, judge currently whether the purpose in default busy condition is to judge current use to mobile terminalWhether family is in operation mobile terminal.For example, the touch operation of the currently detected user of mobile phone, then now mobile phone is busy in presettingState.Here, to how to judge whether mobile terminal is not restricted in default busy condition, for example, it may be from movement eventuallyThe current power consumption in end judged, or judged according to mobile terminal current application service condition, can be withIt is that the current state of mobile terminal is judged by sensor gathered data, for example, the pressure sensor by being placed in fuselage, ifThe pressure data for being gripped based on user or clicking on and producing is collected, then judges that current phone is in busy condition.Herein notIt is restricted, depending on actual conditions.
Optionally, in an embodiment of the present invention, it can come from the following aspects to mobile terminal in default busyState is illustrated:
The current operating current of A, mobile terminal is more than predetermined threshold value;
In the present embodiment, the setting to the threshold value is not restricted.For example, by taking mobile phone as an example, general mobile phone normal StandbyWhen electricity in 10-20mA or so, in 150mA or so when normally using, can set the threshold value be 135mA, even detectThe current operating current of mobile phone is more than 135mA, then judges that mobile terminal is currently at default busy condition.
There is the nonsystematic process unrelated with charging process in B, mobile terminal in operation;
In the present embodiment, when mobile phone charges, if user is without using mobile phone, the process of now mobile phone operation only includes oneA little system process and the process related to charge function, if detecting the presence of the nonsystematic process unrelated with charging process in fortuneOK, then illustrate that user, in operating handset, thus, judges that mobile phone is now in default busy condition.For example, in the present embodiment,If conversation function of mobile phone is in and enables state, illustrate that user is conversed using mobile phone, when mobile phone charges, if detectingMobile phone communication process then judges that mobile phone is in busy condition in operation.
Step S20, if the mobile terminal is currently at default busy condition, default open command is sent to movementThe external control device of terminal, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, control device is not only, such as connected mode Fig. 2 shown in external with mobile terminal, may be used alsoBeing built in inside mobile terminal, the connection and disconnection of charged state are controlled, or is to be built in power end, control chargingThe connection and disconnection of state, this is not restricted, depending on being actually needed.
In an alternate embodiment of the present invention, when mobile terminal is currently default busy condition, then open command is sentTo control device, cut-offing protecting switch is adjusted to off-state by control device after the open command is received, now, electricityThe electric current of stream output just can not be transmitted to mobile terminal.For example, pre-setting one group of open command A in mobile phone, set in controlIt is set in standby:If receiving open command A, cut-offing protecting switch is adjusted to off-state.Pass through in mobile phone with Fig. 2'sWhen connected mode is charged, if mobile phone is in default operating condition, it will be switched off instruction A and send to control device, control is setIt is standby to receive after open command A, cut-offing protecting switch is adjusted to off-state, the electric current of power supply output just can not be transmitted to handMachine.
In the present embodiment, when mobile terminal charges, if mobile terminal is in busy condition, mobile terminal is disconnected sameCharging connection between charging equipment, effectively prevent mobile terminal and occurs electric leakage in charging process to cause human body woundHarmful situation occurs.
Reference picture 3, Fig. 3 is the schematic flow sheet of charge control method second embodiment of the present invention.
In the present embodiment, include after step S20:
Step S30, when detecting the mobile terminal and being not currently in default busy condition, default link order is sent outThe control device is delivered to, for setting up the charging connection between the mobile terminal and power supply.
In the present embodiment, link order B is set in the terminal in advance, set in control device, if receivingLink order B, then be adjusted to closure state by cut-offing protecting switch, and the electric current of power supply output just can be transmitted to mobile phone.
In an application scenarios, only using with the presence or absence of call process run as judge mobile phone whether be busy condition markIt is accurate.Mobile phone, control device, power supply are attached by way of Fig. 2, and mobile phone is started to charge up, in charging process, and user usesMobile phone dialing phone (uses call function), now, detects mobile phone communication process in operation, then sends out default open commandControl device is delivered to, control device adjustment cut-offing protecting switch is off-state, is just disconnected mobile phone with the charging between power supplyConnection;After user terminates call, call process is closed, then now detects mobile phone and be not at busy condition, then will be defaultLink order is sent to control device, and control device adjustment cut-offing protecting switch is closure state, so that, the electric current of power supply outputJust it can transmit to mobile phone, mobile phone continues to start to charge up.
Reference picture 4, Fig. 4 is the schematic flow sheet of charge control method 3rd embodiment of the present invention.
In the present embodiment, include after step S10:
Step S401, when detecting the mobile terminal and being not currently in default busy condition, detect it is described it is mobile eventuallyThe current charging current in end, and judge whether the charging current is more than predetermined current threshold;
In the present embodiment, when mobile phone is not currently in busy condition, then charging can be normally carried out, now, to chargingElectric current is detected, judges whether charging current is more than predetermined current threshold.
In the present embodiment, the selection to the predetermined current threshold is not restricted.In general, the charging current of mobile phone is got overGreatly, charging rate is faster, but battery also has internal resistance, and electric current is excessive, easily causes battery explosion, charging current is with battery capacityIt is related.For example, the battery capacity that a mobile phone is used is 1000mAH, then it is 1000mA that can set current threshold.
Step S402, if the current charging current of the mobile terminal is more than predetermined current threshold, default disconnection is referred toOrder is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, when the current charging current of mobile phone is more than predetermined current threshold, then will in advance it be set in mobile phoneThe open command put is sent to control device, and control device is received after the open command, and cut-offing protecting switch is adjusted into disconnectedOpen state, the electric current of charging equipment output just can not be transmitted to mobile phone.
In the present embodiment, detected by the charging current to mobile terminal, be more than predetermined threshold value in charging currentWhen, mobile terminal is disconnected with the charging connection between charging equipment so that mobile phone charging process is safer.
Reference picture 5, Fig. 5 is the schematic flow sheet of charge control method fourth embodiment of the present invention.
In the present embodiment, also include after step S10:
Step S501, when detecting the mobile terminal and being not currently in default busy condition, detect it is described it is mobile eventuallyThe current battery temperature in end, and judge whether the battery temperature is more than preset temperature threshold value;
In the present embodiment, when mobile phone is not currently in busy condition, then charging can be normally carried out, now, to mobile phoneBattery temperature is detected, judges whether battery temperature is more than preset temperature threshold value.
In the present embodiment, the selection to the preset temperature threshold value is not restricted.In general, mobile phone temp is at 20 DEG C -52All it is normal in the range of DEG C, when outside this scope, all easily battery is damaged, can also increases in charging process and send outRaw dangerous probability.In this regard, we can set temperature threshold to be 50 DEG C.
Step S502, if the current battery temperature of the mobile terminal is more than preset temperature threshold value, default disconnection is referred toOrder is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, when the current battery temperature of mobile phone is more than preset temperature threshold value, then will in advance it be set in mobile phoneThe open command put is sent to control device, and control device is received after the open command, and cut-offing protecting switch is adjusted into disconnectedOpen state, the electric current of charging equipment output just can not be transmitted to mobile phone.
In the present embodiment, detected by the battery temperature to mobile terminal, be more than preset temperature in battery temperatureDuring threshold value, mobile terminal is disconnected with the charging connection between charging equipment, plays a part of protecting battery, also causes mobile phone chargingProcess is safer.
Optionally, in an embodiment of the present invention, charge control method also includes:
When the mobile terminal is in charge, detect whether the mobile terminal current electric quantity is more than default power threshold;
If the mobile terminal current electric quantity is more than default power threshold, default open command is sent to the controlEquipment, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, when being charged to mobile phone, (generally 100%), charging when battery electric quantity reaches some valueSwitch (mobile phone) can disconnect automatically, stop charging to battery, and now the electric current of power delivery is responsible for fuselage and powered,The electric current of mobile phone is transmitted that is, still suffering from power supply, just there is the danger of electric leakage.It therefore, it can set an electricity thresholdValue, such as 98%, as long as in charging process, the electricity for detecting mobile phone is more than 98%, then sends open command to control and setStandby, control device is received after the open command, disconnects cut-offing protecting switch, that is, is disconnected mobile phone and is directly charged with power supply companyConnect.
In this embodiment, detected by the current electric quantity to mobile terminal, when electricity is more than default power threshold,Mobile terminal is disconnected with the charging connection between power supply, also make it that mobile phone charging process is safer.
The present invention further provides a kind of battery charge controller.
Reference picture 6, Fig. 6 is the high-level schematic functional block diagram of battery charge controller first embodiment of the present invention.
In the present embodiment, battery charge controller includes:
First detection module 10, for when detecting mobile terminal in charged state, detecting that the mobile terminal is worked asIt is preceding whether to be in default busy condition;
In the present embodiment, the type to mobile terminal is not restricted, for example, mobile terminal can be that mobile phone, flat board etc. are easyCarry the electronic product used.
In the present embodiment, it is attached between mobile terminal, control device, power supply by way of USB data line, such asShown in Fig. 2, Fig. 2 is mobile terminal, control device, the schematic diagram of a scenario of the embodiment of power supply connected mode one.In control deviceIt is provided with cut-offing protecting switch, normal condition, the switch is closure state, the electric current of power supply output can be passed by control deviceMobile phone is transported to, when the switch is off-state, the electric current of power supply output can not be transmitted by control device to mobile phone.
In the present embodiment, judge currently whether the purpose in default busy condition is to judge current use to mobile terminalWhether family is in operation mobile terminal.For example, the touch operation of the currently detected user of mobile phone, then now mobile phone is busy in presettingState.Here, to how to judge whether mobile terminal is not restricted in default busy condition, for example, it may be from movement eventuallyThe current power consumption in end judged, or judged according to mobile terminal current application service condition, can be withIt is that the current state of mobile terminal is judged by sensor gathered data, for example, the pressure sensor by being placed in fuselage, ifThe pressure data for being gripped based on user or clicking on and producing is collected, then judges that current phone is in busy condition.Herein notIt is restricted, depending on actual conditions.
Optionally, in an embodiment of the present invention, it can come from the following aspects to mobile terminal in default busyState is illustrated:
The current operating current of A, mobile terminal is more than predetermined threshold value;
In the present embodiment, the setting to the threshold value is not restricted.For example, by taking mobile phone as an example, general mobile phone normal StandbyWhen electricity in 10-20mA or so, in 150mA or so when normally using, can set the threshold value be 135mA, even detectThe current operating current of mobile phone is more than 135mA, then judges that mobile terminal is currently at default busy condition.
There is the nonsystematic process unrelated with charging process in B, mobile terminal in operation;
In the present embodiment, when mobile phone charges, if user is without using mobile phone, the process of now mobile phone operation only includes oneA little system process and the process related to charge function, if detecting the presence of the nonsystematic process unrelated with charging process in fortuneOK, then illustrate that user, in operating handset, thus, judges that mobile phone is now in default busy condition.For example, in the present embodiment,If conversation function of mobile phone is in and enables state, illustrate that user is conversed using mobile phone, when mobile phone charges, if detectingMobile phone communication process then judges that mobile phone is in busy condition in operation.
First sending module 20, if being currently at default busy condition for the mobile terminal, default disconnection is referred toOrder is sent to the external control device of mobile terminal, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, control device is not only, such as connected mode Fig. 2 shown in external with mobile terminal, may be used alsoBeing built in inside mobile terminal, the connection and disconnection of charged state are controlled, or is to be built in power end, control chargingThe connection and disconnection of state, this is not restricted, depending on being actually needed.
In an alternate embodiment of the present invention, when mobile terminal is currently default busy condition, then open command is sentTo control device, cut-offing protecting switch is adjusted to off-state by control device after the open command is received, now, electricityThe electric current of stream output just can not be transmitted to mobile terminal.For example, pre-setting one group of open command A in mobile phone, set in controlIt is set in standby:If receiving open command A, cut-offing protecting switch is adjusted to off-state.Pass through in mobile phone with Fig. 2'sWhen connected mode is charged, if mobile phone is in default operating condition, it will be switched off instruction A and send to control device, control is setIt is standby to receive after open command A, cut-offing protecting switch is adjusted to off-state, the electric current of power supply output just can not be transmitted to handMachine.
In the present embodiment, when mobile terminal charges, if mobile terminal is in busy condition, mobile terminal is disconnected sameCharging connection between charging equipment, effectively prevent mobile terminal and occurs electric leakage in charging process to cause human body woundHarmful situation occurs.
Reference picture 7, Fig. 7 is the high-level schematic functional block diagram of battery charge controller second embodiment of the present invention.
In the present embodiment, battery charge controller also includes:
Second sending module 30, will be pre- for when detecting the mobile terminal and being not currently in default busy conditionIf link order is sent to the control device, for setting up the charging connection between the mobile terminal and power supply.
In the present embodiment, link order B is set in the terminal in advance, set in control device, if receivingLink order B, then be adjusted to closure state by cut-offing protecting switch, and the electric current of power supply output just can be transmitted to mobile phone.
In an application scenarios, only using with the presence or absence of call process run as judge mobile phone whether be busy condition markIt is accurate.Mobile phone, control device, power supply are attached by way of Fig. 2, and mobile phone is started to charge up, in charging process, and user usesMobile phone dialing phone (uses call function), now, detects mobile phone communication process in operation, then sends out default open commandControl device is delivered to, control device adjustment cut-offing protecting switch is off-state, is just disconnected mobile phone with the charging between power supplyConnection;After user terminates call, call process is closed, then now detects mobile phone and be not at busy condition, then will be defaultLink order is sent to control device, and control device adjustment cut-offing protecting switch is closure state, so that, the electric current of power supply outputJust it can transmit to mobile phone, mobile phone continues to start to charge up.
Reference picture 8, Fig. 8 is the high-level schematic functional block diagram of battery charge controller 3rd embodiment of the present invention.
In the present embodiment, battery charge controller also includes:
Second detection module 401, for when detecting the mobile terminal and being not currently in default busy condition, detectionThe current charging current of the mobile terminal, and judge whether the charging current is more than predetermined current threshold;
In the present embodiment, when mobile phone is not currently in busy condition, then charging can be normally carried out, now, to chargingElectric current is detected, judges whether charging current is more than predetermined current threshold.
In the present embodiment, the selection to the predetermined current threshold is not restricted.In general, the charging current of mobile phone is got overGreatly, charging rate is faster, but battery also has internal resistance, and electric current is excessive, easily causes battery explosion, charging current is with battery capacityIt is related.For example, the battery capacity that a mobile phone is used is 1000mAH, then it is 1000mA that can set current threshold.
3rd sending module 402, will if the charging current current for the mobile terminal is more than predetermined current thresholdDefault open command is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, when the current charging current of mobile phone is more than predetermined current threshold, then will in advance it be set in mobile phoneThe open command put is sent to control device, and control device is received after the open command, and cut-offing protecting switch is adjusted into disconnectedOpen state, the electric current of charging equipment output just can not be transmitted to mobile phone.
In the present embodiment, detected by the charging current to mobile terminal, be more than predetermined threshold value in charging currentWhen, mobile terminal is disconnected with the charging connection between charging equipment so that mobile phone charging process is safer.
Reference picture 9, Fig. 9 is the high-level schematic functional block diagram of battery charge controller fourth embodiment of the present invention.
In the present embodiment, battery charge controller also includes:
3rd detection module 501, for when detecting the mobile terminal and being not currently in default busy condition, detectionThe current battery temperature of the mobile terminal, and judge whether the battery temperature is more than preset temperature threshold value;
In the present embodiment, when mobile phone is not currently in busy condition, then charging can be normally carried out, now, to mobile phoneBattery temperature is detected, judges whether battery temperature is more than preset temperature threshold value.
In the present embodiment, the selection to the preset temperature threshold value is not restricted.In general, mobile phone temp is at 20 DEG C -52All it is normal in the range of DEG C, when outside this scope, all easily battery is damaged, can also increases in charging process and send outRaw dangerous probability.In this regard, we can set temperature threshold to be 50 DEG C.
4th sending module 502, will if the battery temperature current for the mobile terminal is more than preset temperature threshold valueDefault open command is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, when the current battery temperature of mobile phone is more than preset temperature threshold value, then will in advance it be set in mobile phoneThe open command put is sent to control device, and control device is received after the open command, and cut-offing protecting switch is adjusted into disconnectedOpen state, the electric current of charging equipment output just can not be transmitted to mobile phone.
In the present embodiment, detected by the battery temperature to mobile terminal, be more than preset temperature in battery temperatureDuring threshold value, mobile terminal is disconnected with the charging connection between charging equipment, plays a part of protecting battery, also causes mobile phone chargingProcess is safer.
Optionally, in an embodiment of the present invention, battery charge controller also includes;
4th detection module, for when the mobile terminal is in charge, detecting whether the mobile terminal current electric quantity is more thanDefault power threshold;
5th sending module, if being more than default power threshold for the mobile terminal current electric quantity, disconnects defaultInstruction is sent to the control device, for disconnecting the charging connection between the mobile terminal and preset power.
In the present embodiment, when being charged to mobile phone, (generally 100%), charging when battery electric quantity reaches some valueSwitch (mobile phone) can disconnect automatically, stop charging to battery, and now the electric current of power delivery is responsible for fuselage and powered,The electric current of mobile phone is transmitted that is, still suffering from power supply, just there is the danger of electric leakage.It therefore, it can set an electricity thresholdValue, such as 98%, as long as in charging process, the electricity for detecting mobile phone is more than 98%, then sends open command to control and setStandby, control device is received after the open command, disconnects cut-offing protecting switch, that is, is disconnected mobile phone and is directly charged with power supply companyConnect.
In this embodiment, detected by the current electric quantity to mobile terminal, when electricity is more than default power threshold,Mobile terminal is disconnected with the charging connection between power supply, also make it that mobile phone charging process is safer.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hairEquivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skillsArt field, is included within the scope of the present invention.