CN108539823A - charging method and device - Google Patents

charging method and device Download PDF

Info

Publication number
CN108539823A
CN108539823A CN201810432903.5A CN201810432903A CN108539823A CN 108539823 A CN108539823 A CN 108539823A CN 201810432903 A CN201810432903 A CN 201810432903A CN 108539823 A CN108539823 A CN 108539823A
Authority
CN
China
Prior art keywords
terminal
current value
application
screen
charge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810432903.5A
Other languages
Chinese (zh)
Other versions
CN108539823B (en
Inventor
陈俊国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810432903.5A priority Critical patent/CN108539823B/en
Publication of CN108539823A publication Critical patent/CN108539823A/en
Application granted granted Critical
Publication of CN108539823B publication Critical patent/CN108539823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • H02J7/0077
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge

Landscapes

  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure is directed to a kind of charging method and devices.This method includes:When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determine whether the currently running application of terminal is default application;If currently running application is the default application, the current value to charge is adjusted to pre-set current value, the pre-set current value is less than the predetermined current threshold.In the technical solution, detecting that the electric current currently to charge is larger, and currently running application is when presetting application, illustrate at this time due to caused by large current charge terminal generate heat may influence user to terminal normal use, therefore terminal can reduce the current value of charging, the case where avoiding increasing due to terminal temperature caused by charging, and then the case where being scalded by the terminal when user uses the terminal to charge is avoided, improve user experience.

Description

Charging method and device
Technical field
This disclosure relates to terminal control technical field more particularly to a kind of charging method and device.
Background technology
With the development of electronics technology, the function of terminal is stronger and stronger, and user not only can carry out voice with using terminal Call can watch video, shopping at network or object for appreciation game etc. with using terminal, therefore terminal has become user's daily life Necessity.
In practical application, it often will appear user and need to go out, but the situation that terminal power is relatively low.In order to meet user Demand, most of manufacturer terminal all can be that fast charge function is arranged in terminal, you can be that end cell supplement is more in a short time Electricity, avoid user it is outgoing when due to terminal power it is relatively low caused by be unable to normal use terminal the case where.
Invention content
To overcome the problems in correlation technique, a kind of charging method of embodiment of the present disclosure offer and device.The skill Art scheme is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of charging method is provided, including:
When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determine that terminal is currently run Application whether be default application;
If currently running application is the default application, the current value to charge is adjusted to predetermined current Value, the pre-set current value are less than the predetermined current threshold.
The technical scheme provided by this disclosed embodiment can include the following benefits:Detecting the electricity currently to charge Flow larger, and currently running application is default in application, explanation is at this time since terminal fever caused by large current charge may Normal use of the user to terminal can be influenced, therefore terminal can reduce the current value of charging, avoided due to whole caused by charging The case where holding temperature to increase, and then the case where being scalded by the terminal when user uses the terminal to charge is avoided, it improves User experience.
In one embodiment, which can be voice communication.If the currently running application is described pre- If using the current value to charge being adjusted to pre-set current value including:
If currently running application is voice communication, determine the screen whether in screen state of going out;
If the screen is in screen state of going out, the current value to charge is adjusted to the pre-set current value.
In one embodiment, if the screen is in screen state of going out, the current value to charge is adjusted Include to the pre-set current value:
It goes out screen state if the screen is in, determines that trigger the go out barrier of screen of the screen is at a distance from the screen It is no to be less than or equal to pre-determined distance threshold value;
If the barrier is less than or equal to pre-determined distance threshold value at a distance from the screen, by the electricity to charge Flow valuve is adjusted to the pre-set current value.
In one embodiment, if the currently running application is the default application, by the electricity to charge Flow valuve is adjusted to pre-set current value:
If currently running application is the default application, determine that active user holds the state of the terminal and whether meets Preset condition;
If the state that active user holds the terminal meets the preset condition, the current value is adjusted to described pre- If current value.
In one embodiment, the determining active user holds the state of the terminal and whether meets preset condition packet It includes:
It determines and whether is greater than or equal to preset area with the contact area of the terminal when active user holds the terminal Threshold value;
If being greater than or equal to preset area threshold with the contact area of the terminal when active user holds the terminal Value, the state that confirmation active user holds the terminal meet the preset condition.
In one embodiment, the method further includes:
Setting instruction is obtained, the setting instruction includes at least one application identities;
It is instructed according to the setting, sets the corresponding application of at least one application identities to the default application.
According to the second aspect of the embodiment of the present disclosure, a kind of charging unit is provided, including:
Determining module, for when detecting that the current current value to charge is greater than or equal to predetermined current threshold, really Determine whether the currently running application of terminal is default application;
Module is adjusted, for being described default in application, by the current value to charge in currently running application It adjusts to pre-set current value, the pre-set current value is less than the predetermined current threshold.
In one embodiment, the default application is voice communication;The adjustment module includes:
First determination sub-module determines whether the screen is in and goes out if being voice communication for currently running application Screen state;
The first adjustment submodule adjusts the current value to charge if being in screen state of going out for the screen To the pre-set current value.
In one embodiment, the first adjustment submodule includes:
Determination unit is gone out screen state if being in for the screen, determine trigger the screen go out screen barrier and institute Whether the distance for stating screen is less than or equal to pre-determined distance threshold value;
Adjustment unit, if being less than or equal to pre-determined distance threshold value at a distance from the screen for the barrier, by institute The current value to charge is stated to adjust to the pre-set current value.
In one embodiment, the adjustment module includes:
Second determination sub-module determines that active user holds institute if being the default application for currently running application Whether the state for stating terminal meets preset condition;
Second adjustment submodule, if the state for holding the terminal for active user meets the preset condition, by institute Current value is stated to adjust to the pre-set current value.
In one embodiment, second determination sub-module includes:
Determination unit, when for determining that active user holds the terminal with the contact area of the terminal whether be more than or Equal to preset area threshold value;
Confirmation unit, if being more than or waiting with the contact area of the terminal when holding the terminal for the active user In preset area threshold value, the state that confirmation active user holds the terminal meets the preset condition.
In one embodiment, described device further includes:
Acquisition module, for obtaining setting instruction, the setting instruction includes at least one application identities;
Setup module, for according to setting instruction, setting the corresponding application of at least one application identities to The default application.
According to the third aspect of the embodiment of the present disclosure, a kind of charging unit is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determine that terminal is currently run Application whether be default application;
If currently running application is the default application, the current value to charge is adjusted to predetermined current Value, the pre-set current value are less than the predetermined current threshold.
According to the fourth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating Machine instructs, when which is executed by processor the step of realization first aspect any embodiment the method.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 a are the flow charts according to the charging method shown in an exemplary embodiment.
Fig. 1 b are the flow charts according to the charging method shown in an exemplary embodiment.
Fig. 2 is the flow chart according to the charging method shown in an exemplary embodiment.
Fig. 3 is the flow chart according to the charging method shown in an exemplary embodiment.
Fig. 4 a are the structural schematic diagrams according to the charging unit shown in an exemplary embodiment.
Fig. 4 b are the structural schematic diagrams according to the charging unit shown in an exemplary embodiment.
Fig. 4 c are the structural schematic diagrams according to the charging unit shown in an exemplary embodiment.
Fig. 4 d are the structural schematic diagrams according to the charging unit shown in an exemplary embodiment.
Fig. 4 e are the structural schematic diagrams according to the charging unit shown in an exemplary embodiment.
Fig. 4 f are the structural schematic diagrams according to the charging unit shown in an exemplary embodiment.
Fig. 5 is the structure diagram according to the charging unit shown in an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The technical solution that the embodiment of the present disclosure provides is related to terminal, which can be mobile phone, tablet computer, smartwatch And other can be charged and be equipped with the device of application, the embodiment of the present disclosure is not construed as limiting this.In the related technology, factory Quotient is that the fast charge function of terminal setting is that larger charging current is used to charge for terminal.Although can be using fast charge function More electricity is supplemented for end cell in short period, but terminal temperature may also can be caused to increase in charging process. If user needs using the terminal for carrying out fast charge, it is possible that the case where user is scalded by terminal, user experience is not It is good.In the technical scheme provided by this disclosed embodiment, detecting that the electric current currently to charge is larger, and currently running application To be default in application, explanation at this time makes the normal of terminal since terminal fever caused by large current charge may influence user With, therefore terminal can reduce the current value of charging, the case where avoiding increasing due to terminal temperature caused by charging, and then avoid The case where being scalded by the terminal when user is using the terminal to charge, improves user experience.
Fig. 1 a are a kind of flow charts of charging method shown according to an exemplary embodiment, and this method is used for terminal, such as Shown in Fig. 1 a, which includes the following steps 101 to step 102:
In a step 101, it when detecting that the current current value to charge is greater than or equal to predetermined current threshold, determines Whether the currently running application of terminal is default application.
It is exemplary, it is not that terminal charges since fast charge function is typically all to start when terminal power is relatively low When current value be bound to larger, so when terminal is charging, need to determine that the current current value to charge is first It is no to be greater than or equal to predetermined current threshold.Terminal can set the corresponding current value of fast charge function to predetermined current threshold, example Such as, which can be 2A (peace), i.e., whether terminal can detect currently is charged using fast charge function;Or Terminal can also indicate that it is predetermined current threshold that other current values, which are arranged, according to user, and the embodiment of the present disclosure is not construed as limiting this. Terminal when determining that currently the current value that charges is greater than or equal to predetermined current threshold, illustrate the current value currently to charge compared with Greatly, it is possible that the case where terminal is generated heat, in order to avoid terminal fever has an impact user, terminal can determine current fortune Whether capable application is default application, that is, passes through the current service condition of terminal, it is determined whether can be had an impact to user, if The current value for needing adjustment to charge.If terminal determines that the current value currently to charge is less than predetermined current threshold, illustrate current Charging current is smaller, is not in the case where terminal is generated heat, can continue to charge using current current value.
Optionally, terminal can indicate that multiple default applications are arranged according to user, and multiple default application needs for user Handheld terminal or the application that could be used of face's contact terminal, for example, the application of voice communication class, game class apply with And shopping class application etc..Optionally, terminal can indicate that there is the terminal at display setting interface, the setting interface display according to user The application identities and ACK button of multiple applications of installation.User can click one or more of application marks as needed Know, and the ACK button is clicked after selection terminates.When detecting that the ACK button is clicked, confirmation receives to be set terminal Instruction is set, setting instruction includes the application identities for the one or more application that user clicks at setting interface.Terminal is at this time It can be instructed according to the setting and set the corresponding application of one or more application mark that user selects to default application.Actually answer In, which can also receive the setting instruction that server or other-end are sent, and include by setting instruction one The corresponding application of a or multiple application identities is set as default application.Default list of application can be arranged in terminal, remember in the list The default application of one or more of terminal setting is recorded.It is default to determine that the current value currently to charge is greater than or equal in terminal When current threshold, the mark of currently running application can be obtained, then inquires the list, determines to whether there is in the list and work as The mark of the application of preceding operation, and if it exists, illustrate that currently running application is default application;If being not present, illustrate currently to run Application be not default application.
In a step 102, if currently running application is default application, the current value to charge is adjusted to default electricity Flow valuve, the pre-set current value are less than predetermined current threshold.
It is exemplary, if terminal determines that currently running application is default application, illustrate that user may currently hold end The case where end is used or face's contact terminal is used, and terminal is generated heat may have an impact user, because This terminal can adjust the current value to charge to pre-set current value, that is, reduces the current value of charging, terminal is avoided to fill It generates heat in electric process.The pre-set current value can be that user be rule of thumb arranged, for example, the pre-set current value can be 1A or Person 0.5A, the embodiment of the present disclosure are not construed as limiting this.
Optionally, which can be voice communication.Terminal is detecting that the current value currently to charge is more than or waits When predetermined current threshold, determine whether the currently running application of terminal is voice communication.If the currently running application of terminal is Voice communication, illustrating user currently may use hand-free function to carry out voice communication or logical using receiver progress voice Words.If user using hand-free function carry out voice communication, will not with terminal generate contact, therefore terminal fever will not to Family has an impact;If user carries out voice communication using receiver, user needs gripping terminal to make terminal close to face Receiver is contacted with ear, and terminal fever at this time can influence the normal talking of user.And voice communication is carried out using receiver in user When, the optical sensor that terminal receiver is nearby arranged can detect that brightness is less than or equal to predetermined luminance threshold value, and then instruction terminal Screen, which is in, to go out power consumption of the screen state for reducing terminal in voice communication, therefore terminal is determining that currently running application is When voice communication, terminal screen can also be determined whether in screen state of going out, if the screen illustrates that user can in screen state of going out Can voice communication be carried out using receiver, therefore terminal can adjust the current value to charge to pre-set current value, avoid by In large current charge cause terminal generate heat and the case where scald the face or ear of user.
Optionally, due to optical sensor be determine whether that terminal screen goes out screen according to brightness, so even with The face or ear at family apart from terminal screen farther out in the case of, if ambient enviroment is dark, which still can examine It measures brightness and is less than or equal to predetermined luminance threshold value, and then instruction terminal screen goes out screen.I.e. in the face of the user or ear Apart from terminal screen farther out in the case of, the face or ear of user still can be gone out screen with triggering terminal screen.Even and if at this time It is terminal to cause to generate heat using large current charge, user will not be had an impact, if at this time adjusts the current value of charging To pre-set current value, the meaningless reduction of charge efficiency may result in.Therefore terminal determine screen be in go out screen state when, Can also determine that triggering screen goes out the barrier of screen, for example, at a distance from the face of user or ear, with terminal screen it is whether small In or equal to pre-determined distance threshold value.Specifically, the optical sensor can also determine barrier and screen by the reflection of light The distance between or terminal range sensor can also be set, and using the range sensor determine barrier and screen it Between distance.If the barrier is less than or equal to pre-determined distance threshold value at a distance from terminal screen, illustrate that user may adopt Voice communication is carried out with receiver, and face or ear are closer at a distance from terminal, therefore the electric current that terminal can will charge Value is adjusted to pre-set current value, avoids scalding the face of user or the feelings of ear since large current charge causes terminal to be generated heat Condition.If the barrier is more than pre-determined distance threshold value at a distance from terminal screen, it is logical to illustrate that user may use receiver to carry out voice Words, but at a distance from terminal farther out, the fever of terminal will not temporarily have an impact user, therefore terminal can continue using working as The current value of preceding charging charges, and ensure that the charge efficiency of terminal.
In the technical scheme provided by this disclosed embodiment, detecting that the electric current currently to charge is larger, and current operation Application be default in application, explanation is at this time since terminal fever caused by large current charge may influence user to terminal Normal use, therefore terminal can reduce the current value of charging, the case where avoiding increasing due to terminal temperature caused by charging, into And the case where being scalded by the terminal when avoiding user using the terminal to charge, improve user experience.
It in one embodiment, as shown in Figure 1 b, in a step 102, will be into if currently running application is default application The current value of row charging is adjusted to pre-set current value, can be realized by step 1021 to step 1022.
In step 1021, if currently running application is default application, determine that the state that active user holds terminal is It is no to meet preset condition.
In step 1022, if the state that active user holds terminal meets preset condition, current value is adjusted to default Current value.
Exemplary, user can use relatively fixed posture to hold terminal when using terminal plays game or shopping And contacted with terminal generation, therefore preset condition can be arranged in user accordingly, the preset condition is for limiting user's using terminal When grip state.It is to preset in application, may further determine that active user holds terminal in the currently running application of terminal State whether meet preset condition.If the state that active user holds terminal meets preset condition, illustrate user currently Using normal grip using terminal, terminal fever at this time may influence the normal use of user, therefore terminal can electricity Flow valuve is adjusted to pre-set current value;If the state that active user holds terminal is unsatisfactory for preset condition, although illustrating terminal Either there is no hold terminal or contacted with terminal generation, terminal hair by the application of video class but user for running game, shopping Heat can't have an impact user, therefore terminal can continue to charge using current flow.
Optionally, which can be that contact area is greater than or equal to preset area threshold value, i.e. terminal is worked as in determination The application of preceding operation be it is default in application, can determine when active user holds terminal and the contact area of terminal whether be more than or Equal to preset area threshold value.If when active user holds terminal and the contact area of terminal is greater than or equal to preset area threshold value, Illustrate that user is currently using normal grip using terminal, terminal fever at this time, which may influence the normal of user, to be made With, therefore terminal can be adjusted with current value to pre-set current value;If when active user's gripping terminal and the contact area of terminal is small In preset area threshold value, although illustrating that terminal is currently running the application of game, shopping or video class, user does not hold It holds terminal or is contacted with terminal generation, therefore terminal can continue to charge using current flow.
In the technical scheme provided by this disclosed embodiment, detecting that the electric current currently to charge is larger, it is currently running Using for default application, and when the state of the currently used terminal of user meets preset condition, illustrate at this time due to large current charge Caused terminal fever may influence normal use of the user to terminal, therefore terminal can reduce the current value of charging, keep away The case where exempting to increase due to terminal temperature caused by charging, and then avoid when user uses the terminal to charge by the terminal The case where scald, improves user experience.
Realization process is discussed in detail below by several embodiments.
Fig. 2 is a kind of flow chart of charging method shown according to an exemplary embodiment, and executive agent is terminal, is such as schemed Shown in 2, include the following steps 201 to step 207:
In step 201, setting instruction is obtained, setting instruction includes at least one application identities.
In step 202, it is instructed according to the setting, instructs at least one application identities for including are corresponding to answer the setting With being set as default application.
The default application can be voice communication.
In step 203, in charging, whether the current value that detection is currently charged is greater than or equal to predetermined current threshold Value executes step 204 if the current current value to charge is less than the predetermined current threshold;If the electric current currently to charge Value is greater than or equal to the predetermined current threshold, executes step 205.
In step 204, continue to charge according to present current value, this flow terminates.
In step 205, determine current screen whether in screen state of going out;If current screen is in bright screen state, execute Step 204;If current screen is in screen state of going out, step 206 is executed.
In step 206, determine trigger the screen go out screen barrier whether be less than or equal at a distance from screen it is default Distance threshold;If whether the barrier is more than pre-determined distance threshold value at a distance from screen, step 204 is executed;If the barrier with Whether the distance of screen is less than or equal to pre-determined distance threshold value, executes step 207.
In step 207, the current value currently to charge is adjusted to pre-set current value, which is less than pre- If current threshold.
Embodiment of the disclosure provides a kind of charging method, is detecting that the electric current currently to charge is larger, and current operation Application be default in application, explanation is at this time since terminal fever caused by large current charge may influence user to terminal Normal use, therefore terminal can reduce the current value of charging, the case where avoiding increasing due to terminal temperature caused by charging, into And the case where being scalded by the terminal when avoiding user using the terminal to charge, improve user experience.
Fig. 3 is a kind of flow chart of charging method shown according to an exemplary embodiment, and executive agent is terminal, is such as schemed Shown in 3, include the following steps 301 to step 306:
In step 301, setting instruction is obtained, setting instruction includes at least one application identities.
In step 302, it is instructed according to the setting, instructs at least one application identities for including are corresponding to answer the setting With being set as default application.
The default application can be game class application, the application of shopping class or video class application etc..
In step 303, in charging, whether the current value that detection is currently charged is greater than or equal to predetermined current threshold Value executes step 304 if the current current value to charge is less than the predetermined current threshold;If the electric current currently to charge Value is greater than or equal to the predetermined current threshold, executes step 305.
In step 304, continue to charge according to present current value, this flow terminates.
In step 305, it determines when active user holds terminal and whether the contact area of terminal is more than or equal to default Area threshold;If when active user holds terminal and the contact area of terminal is less than preset area threshold value, step 304 is executed;If When active user holds terminal and the contact area of terminal is greater than or equal to preset area threshold value, executes step 306.
Within step 306, the current value currently to charge is adjusted to pre-set current value, which is less than pre- If current threshold.
Embodiment of the disclosure provides a kind of charging method, is detecting that the electric current currently to charge is larger, and current operation Application be default in application, explanation is at this time since terminal fever caused by large current charge may influence user to terminal Normal use, therefore terminal can reduce the current value of charging, the case where avoiding increasing due to terminal temperature caused by charging, into And the case where being scalded by the terminal when avoiding user using the terminal to charge, improve user experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 4 a are a kind of structural schematic diagrams of charging unit 40 shown according to an exemplary embodiment, which can be with Pass through being implemented in combination with as some or all of of electronic equipment for software, hardware or both.As shown in fig. 4 a, which fills It includes determining module 401 and adjustment module 402 to set 40.
Wherein it is determined that module 401, for detecting the current current value to charge more than or equal to predetermined current threshold When value, determine whether the currently running application of terminal is default application.
Module 402 is adjusted, for being described default in application, by the electric current to charge in currently running application Value is adjusted to pre-set current value, and the pre-set current value is less than the predetermined current threshold.
In one embodiment, the default application is voice communication.As shown in Figure 4 b, the adjustment module 402 includes First determination sub-module 4021 and the first adjustment submodule 4022.
Wherein, the first determination sub-module 4021 determines that the screen is if being voice communication for currently running application It is no to be in screen state of going out.
The first adjustment submodule 4022, if screen state of going out is in for the screen, by the current value to charge It adjusts to the pre-set current value.
In one embodiment, as illustrated in fig. 4 c, the first adjustment submodule 4022 includes determination unit 4022a and tune Whole unit 4022b.
Wherein it is determined that unit 4022a, if being in screen state of going out for the screen, determine that triggering the screen goes out screen Whether barrier is less than or equal to pre-determined distance threshold value at a distance from the screen.
Adjustment unit 4022b, if being less than or equal to pre-determined distance threshold value at a distance from the screen for the barrier, The current value to charge is adjusted to the pre-set current value.
In one embodiment, as shown in figure 4d, the adjustment module 402 includes the second determination sub-module 4023 and second Adjust submodule 4024.
Wherein, the second determination sub-module 4023 determines current use if being the default application for currently running application Whether the state that family holds the terminal meets preset condition.
Second adjustment submodule 4024, if the state for holding the terminal for active user meets the preset condition, The current value is adjusted to the pre-set current value.
In one embodiment, as shown in fig 4e, second determination sub-module 4023 include determination unit 4023a and really Recognize unit 4023b.
Wherein it is determined that unit 4023a, when for determining that active user holds the terminal with the contact area of the terminal Whether preset area threshold value is greater than or equal to.
Confirmation unit 4023b, if big with the contact area of the terminal when holding the terminal for the active user In or be equal to preset area threshold value, confirm that active user holds the state of the terminal and meets the preset condition.
In one embodiment, as shown in fig. 4f, described device 40 further includes acquisition module 403 and setup module 404.
Wherein, acquisition module 403, for obtaining setting instruction, the setting instruction includes at least one application identities.
Setup module 404, for being instructed according to the setting, by the corresponding application setting of at least one application identities For the default application.
Embodiment of the disclosure provides a kind of charging unit, is detecting that the electric current currently to charge is larger, and current operation Application be default in application, explanation is at this time since terminal fever caused by large current charge may influence user to terminal The case where normal use, the device can reduce the current value of charging, avoid increasing due to terminal temperature caused by charging at this time, And then the case where being scalded by the terminal when avoiding user using the terminal to charge, improve user experience.
The embodiment of the present disclosure provides a kind of charging unit, which includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determine that terminal is currently run Application whether be default application;
If currently running application is the default application, the current value to charge is adjusted to predetermined current Value, the pre-set current value are less than the predetermined current threshold.
In one embodiment, above-mentioned processor is also configured to:If currently running application is voice communication, determine Whether the screen is in screen state of going out;Go out screen state if the screen is in, by the current value to charge adjust to The pre-set current value.
In one embodiment, above-mentioned processor is also configured to:If the screen is in screen state of going out, triggering is determined The screen go out screen barrier at a distance from the screen whether be less than or equal to pre-determined distance threshold value;If the barrier with The distance of the screen is less than or equal to pre-determined distance threshold value, and the current value to charge is adjusted to the predetermined current Value.
In one embodiment, above-mentioned processor is also configured to:If currently running application is the default application, Determine that active user holds the state of the terminal and whether meets preset condition;If the state that active user holds the terminal is full The foot preset condition, the current value is adjusted to the pre-set current value.
In one embodiment, above-mentioned processor is also configured to:Determine active user hold the terminal when and institute Whether the contact area for stating terminal is greater than or equal to preset area threshold value;If when the active user holds the terminal with it is described The contact area of terminal be greater than or equal to preset area threshold value, confirm active user hold the terminal state meet it is described pre- If condition.
In one embodiment, above-mentioned processor is also configured to:Setting instruction is obtained, the setting instruction includes extremely Few application identities;It is instructed according to the setting, the corresponding application of at least one application identities is set as described pre- If using.
Embodiment of the disclosure provides a kind of charging unit, is detecting that the electric current currently to charge is larger, and current operation Application be default in application, explanation is at this time since terminal fever caused by large current charge may influence user to terminal The case where normal use, the device can reduce the current value of charging, avoid increasing due to terminal temperature caused by charging at this time, And then the case where being scalded by the terminal when avoiding user using the terminal to charge, improve user experience.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of structure diagram for charging unit 50 shown according to an exemplary embodiment, and the device 50 is suitable For terminal device.For example, device 50 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game Console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 50 may include following one or more components:Processing component 502, memory 504, power supply module 506 are more Media component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514 and communication component 516。
The integrated operation of 502 usual control device 50 of processing component, such as with display, call, data communication, camera Operation and record operate associated operation.Processing component 502 may include one or more processors 520 to execute instruction, To perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, it is convenient for Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, to facilitate more matchmakers Interaction between body component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 50.These data are shown Example includes instruction for any application program or method that operate on apparatus 50, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 50.Power supply module 506 may include power management system System, one or more power supplys and other generated with for device 50, management and the associated component of distribution electric power.
Multimedia component 508 is included in the screen of one output interface of offer between described device 50 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 50 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 50 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone is configured To receive external audio signal.The received audio signal can be further stored in memory 504 or via communication component 516 send.In some embodiments, audio component 510 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, the status assessment for providing various aspects for device 50. For example, sensor module 514 can detect the state that opens/closes of device 50, the relative positioning of component, such as the component For the display and keypad of device 50, sensor module 514 can be with the position of 50 1 components of detection device 50 or device Change, the existence or non-existence that user contacts with device 50, the temperature change of 50 orientation of device or acceleration/deceleration and device 50. Sensor module 514 may include proximity sensor, be configured to detect object nearby without any physical contact Presence.Sensor module 514 can also include that optical sensor is used for such as CMOS or ccd image sensor in imaging applications It uses.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic sensing Device, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 50 and other equipment.Device 50 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 50 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 50 to complete the above method.For example, institute State non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
The embodiment of the present disclosure also provides a kind of non-transitorycomputer readable storage medium, the finger in the storage medium When enabling the processor execution by device 50 so that device 50 is able to carry out above-mentioned charging method, the method includes:
When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determine that terminal is currently run Application whether be default application.
If currently running application is the default application, the current value to charge is adjusted to predetermined current Value, the pre-set current value are less than the predetermined current threshold.
In one embodiment, the default application is voice communication;If the currently running application is described default Using the current value to charge adjusted to pre-set current value including:If currently running application is voice communication, really Whether the fixed screen is in screen state of going out;If the screen is in screen state of going out, the current value to charge is adjusted To the pre-set current value.
In one embodiment, if the screen is in screen state of going out, the current value to charge is adjusted Include to the pre-set current value:Go out screen state if the screen is in, determine trigger the screen go out screen barrier and institute Whether the distance for stating screen is less than or equal to pre-determined distance threshold value;If the barrier is less than or equal at a distance from the screen Pre-determined distance threshold value adjusts the current value to charge to the pre-set current value.
In one embodiment, if the currently running application is the default application, by the electricity to charge Flow valuve is adjusted to pre-set current value:If currently running application is the default application, determine described in active user's gripping Whether the state of terminal meets preset condition;If the state that active user holds the terminal meets the preset condition, by institute Current value is stated to adjust to the pre-set current value.
In one embodiment, the determining active user holds the state of the terminal and whether meets preset condition packet It includes:It determines and whether is greater than or equal to preset area threshold value with the contact area of the terminal when active user holds the terminal; If being greater than or equal to preset area threshold value with the contact area of the terminal when active user holds the terminal, confirmation is worked as The state that preceding user holds the terminal meets the preset condition.
In one embodiment, the method further includes:Setting instruction is obtained, the setting instruction includes at least one answers With mark;It is instructed according to the setting, sets the corresponding application of at least one application identities to the default application.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of charging method, which is characterized in that including:
When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determines that terminal is currently running and answer With whether being default application;
If currently running application is the default application, the current value to charge is adjusted to pre-set current value, institute It states pre-set current value and is less than the predetermined current threshold.
2. according to the method described in claim 1, it is characterized in that, the default application is voice communication;If the current fortune Capable application is the default application, the current value to charge is adjusted to pre-set current value includes:
If currently running application is voice communication, determine the screen whether in screen state of going out;
If the screen is in screen state of going out, the current value to charge is adjusted to the pre-set current value.
If 3. according to the method described in claim 2, it is characterized in that, the screen is in goes out screen state, will it is described into The current value of row charging, which is adjusted to the pre-set current value, includes:
Go out screen state if the screen is in, determine trigger the screen go out screen barrier it is whether small at a distance from the screen In or equal to pre-determined distance threshold value;
If the barrier is less than or equal to pre-determined distance threshold value at a distance from the screen, by the current value to charge It adjusts to the pre-set current value.
If 4. according to the method described in claim 1, it is characterized in that, the currently running application be the default application, The current value to charge is adjusted to pre-set current value and includes:
If currently running application be the default application, determine active user hold the terminal state whether meet it is default Condition;
If the state that active user holds the terminal meets the preset condition, the current value is adjusted to the default electricity Flow valuve.
5. according to the method described in claim 4, it is characterized in that, the state that the determining active user holds the terminal is The no preset condition that meets includes:
It determines and whether is greater than or equal to preset area threshold value with the contact area of the terminal when active user holds the terminal;
If being greater than or equal to preset area threshold value with the contact area of the terminal when active user holds the terminal, really Recognize active user and hold the state of the terminal and meets the preset condition.
6. according to the method described in claim 1 to 5 any one claim, which is characterized in that the method further includes:
Setting instruction is obtained, the setting instruction includes at least one application identities;
It is instructed according to the setting, sets the corresponding application of at least one application identities to the default application.
7. a kind of charging unit, which is characterized in that including:
Determining module, for when detecting that the current current value to charge is greater than or equal to predetermined current threshold, determining eventually Hold whether currently running application is default application;
Module is adjusted, for being described preset in application, the current value to charge is adjusted in currently running application To pre-set current value, the pre-set current value is less than the predetermined current threshold.
8. device according to claim 7, which is characterized in that the default application is voice communication;The adjustment module Including:
Whether the first determination sub-module determines the screen in the screen shape that goes out if being voice communication for currently running application State;
The first adjustment submodule adjusts the current value to charge to institute if being in screen state of going out for the screen State pre-set current value.
9. device according to claim 8, which is characterized in that the first adjustment submodule includes:
Determination unit is gone out screen state if being in for the screen, determine trigger the screen go out screen barrier and the screen Whether the distance of curtain is less than or equal to pre-determined distance threshold value;
Adjustment unit, if for the barrier with the screen at a distance from be less than or equal to pre-determined distance threshold value, will described in into The current value of row charging is adjusted to the pre-set current value.
10. device according to claim 7, which is characterized in that the adjustment module includes:
Second determination sub-module determines that active user holds the end if being the default application for currently running application Whether the state at end meets preset condition;
Second adjustment submodule, if the state for holding the terminal for active user meets the preset condition, by the electricity Flow valuve is adjusted to the pre-set current value.
11. device according to claim 10, which is characterized in that second determination sub-module includes:
Whether determination unit is greater than or equal to when for determining that active user holds the terminal with the contact area of the terminal Preset area threshold value;
Confirmation unit, if being greater than or equal in advance with the contact area of the terminal when holding the terminal for the active user If area threshold, the state that confirmation active user holds the terminal meets the preset condition.
12. according to the device described in claim 7 to 12 any one claim, which is characterized in that described device further includes:
Acquisition module, for obtaining setting instruction, the setting instruction includes at least one application identities;
Setup module, for being instructed according to the setting, set the corresponding application of at least one application identities to described in Default application.
13. a kind of charging unit, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When detecting that the current current value to charge is greater than or equal to predetermined current threshold, determines that terminal is currently running and answer With whether being default application;
If currently running application is the default application, the current value to charge is adjusted to pre-set current value, institute It states pre-set current value and is less than the predetermined current threshold.
14. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of claim 1 to 6 any one claim the method is realized when execution.
CN201810432903.5A 2018-05-08 2018-05-08 Charging method and device Active CN108539823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810432903.5A CN108539823B (en) 2018-05-08 2018-05-08 Charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810432903.5A CN108539823B (en) 2018-05-08 2018-05-08 Charging method and device

Publications (2)

Publication Number Publication Date
CN108539823A true CN108539823A (en) 2018-09-14
CN108539823B CN108539823B (en) 2021-06-22

Family

ID=63475705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810432903.5A Active CN108539823B (en) 2018-05-08 2018-05-08 Charging method and device

Country Status (1)

Country Link
CN (1) CN108539823B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114365055A (en) * 2019-07-24 2022-04-15 苏州宝时得电动工具有限公司 Control method for automatic walking equipment to return to stop station and automatic walking equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103956792A (en) * 2014-05-08 2014-07-30 深圳市中兴移动通信有限公司 Method and device for controlling charging temperature rise of mobile terminal
CN104052138A (en) * 2014-05-28 2014-09-17 惠州Tcl移动通信有限公司 Intelligent mobile terminal and temperature control method during charging of intelligent mobile terminal
CN104935044A (en) * 2015-06-17 2015-09-23 努比亚技术有限公司 Charging method and charging device
CN105261803A (en) * 2015-09-07 2016-01-20 小米科技有限责任公司 Method and device for charging terminal and terminal
CN106208208A (en) * 2016-07-29 2016-12-07 乐视控股(北京)有限公司 Charge protection method and charge protection device
CN106207294A (en) * 2016-07-26 2016-12-07 深圳天珑无线科技有限公司 A kind of charging method and device
CN106329650A (en) * 2016-09-21 2017-01-11 奇酷互联网络科技(深圳)有限公司 Intelligent device and charging method thereof
CN106451612A (en) * 2016-09-21 2017-02-22 奇酷互联网络科技(深圳)有限公司 Charging method and charging apparatus
CN106654424A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Charging method and terminal
CN107077181A (en) * 2016-10-18 2017-08-18 深圳达闼科技控股有限公司 A kind of charging current limiter method, device and electronic equipment
US20170346306A1 (en) * 2016-05-27 2017-11-30 Samsung Electronics Co., Ltd. Method for controlling charge for improving receive sensitivity and electronic device for the same
CN107425564A (en) * 2017-06-23 2017-12-01 珠海格力电器股份有限公司 A kind of intelligent charging method, device and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103956792A (en) * 2014-05-08 2014-07-30 深圳市中兴移动通信有限公司 Method and device for controlling charging temperature rise of mobile terminal
CN104052138A (en) * 2014-05-28 2014-09-17 惠州Tcl移动通信有限公司 Intelligent mobile terminal and temperature control method during charging of intelligent mobile terminal
CN104935044A (en) * 2015-06-17 2015-09-23 努比亚技术有限公司 Charging method and charging device
CN105261803A (en) * 2015-09-07 2016-01-20 小米科技有限责任公司 Method and device for charging terminal and terminal
US20170346306A1 (en) * 2016-05-27 2017-11-30 Samsung Electronics Co., Ltd. Method for controlling charge for improving receive sensitivity and electronic device for the same
CN106207294A (en) * 2016-07-26 2016-12-07 深圳天珑无线科技有限公司 A kind of charging method and device
CN106208208A (en) * 2016-07-29 2016-12-07 乐视控股(北京)有限公司 Charge protection method and charge protection device
CN106329650A (en) * 2016-09-21 2017-01-11 奇酷互联网络科技(深圳)有限公司 Intelligent device and charging method thereof
CN106451612A (en) * 2016-09-21 2017-02-22 奇酷互联网络科技(深圳)有限公司 Charging method and charging apparatus
CN107077181A (en) * 2016-10-18 2017-08-18 深圳达闼科技控股有限公司 A kind of charging current limiter method, device and electronic equipment
CN106654424A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Charging method and terminal
CN107425564A (en) * 2017-06-23 2017-12-01 珠海格力电器股份有限公司 A kind of intelligent charging method, device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114365055A (en) * 2019-07-24 2022-04-15 苏州宝时得电动工具有限公司 Control method for automatic walking equipment to return to stop station and automatic walking equipment
CN114365055B (en) * 2019-07-24 2023-12-08 苏州宝时得电动工具有限公司 Control method for automatic walking equipment to return to stop station and automatic walking equipment

Also Published As

Publication number Publication date
CN108539823B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN105049923B (en) Wake up the method and device of electronic equipment
US11644904B2 (en) Snap motion gesture detection and response
CN106371802A (en) Terminal volume control method and device
CN104902059A (en) Call reminding method and device
CN107608561A (en) Touch-screen control method and device
CN105704317A (en) Antenna parameter adjustment method and apparatus, and electronic device
CN106385488B (en) Restore the method and device of normal mode of operation
CN106231137A (en) Processing method and processing device based on electricity
CN106231072B (en) Control method, device and the terminal device of prompting message
WO2021244058A1 (en) Process execution method, device, and readable medium
CN107566750A (en) Control method, device and the storage medium of flash lamp
CN110223500A (en) Infrared equipment control method and device
CN105187612B (en) A kind of reminding method and device of talking state
CN109769191A (en) Audio output detection method and device, electronic equipment
CN108539823A (en) charging method and device
CN106603882A (en) Incoming call sound volume adjusting method, incoming call sound volume adjusting device and terminal
CN103986819B (en) Terminal control method and relevant apparatus
CN109471666A (en) Charge starting processing method, equipment and storage medium
CN108962189A (en) Luminance regulating method and device
CN109862171A (en) Terminal equipment control method and device
CN108833728A (en) Adjust the method and device of incoming call prompting volume
CN106657580B (en) Call handling method and device
CN109194808A (en) Volume adjusting method and device
CN104869261B (en) Automatic call method and device
CN109120793A (en) Method of speech processing and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant