CN108539823B - Charging method and device - Google Patents

Charging method and device Download PDF

Info

Publication number
CN108539823B
CN108539823B CN201810432903.5A CN201810432903A CN108539823B CN 108539823 B CN108539823 B CN 108539823B CN 201810432903 A CN201810432903 A CN 201810432903A CN 108539823 B CN108539823 B CN 108539823B
Authority
CN
China
Prior art keywords
preset
terminal
current
application
current value
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.)
Active
Application number
CN201810432903.5A
Other languages
Chinese (zh)
Other versions
CN108539823A (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

Images

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 relates to a charging method and a charging device. The method comprises the following steps: when the current value of the current charging is detected to be larger than or equal to a preset current threshold value, determining whether the application currently running in the terminal is a preset application; if the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value. In the technical scheme, when the current which is charged at present is detected to be large, and the current running application is the preset application, the situation that the normal use of a user for the terminal is possibly influenced due to the fact that the terminal which is caused by large-current charging generates heat at the moment is described, so that the current value of charging of the terminal can be reduced, the situation that the temperature of the terminal which is caused by charging is increased is avoided, the situation that the user is scalded by the terminal when the user uses the terminal which is being charged is further avoided, and the user experience is improved.

Description

Charging method and device
Technical Field
The present disclosure relates to the field of terminal control technologies, and in particular, to a charging method and apparatus.
Background
With the development of electronic technology, the functions of the terminal become more and more powerful, and a user can use the terminal to not only make a voice call but also watch videos, shop online or play games and the like, so that the terminal becomes a necessity of the daily life of the user.
In practical application, the situation that the user needs to go out but the power of the terminal is low often occurs. In order to meet the requirements of users, most terminal manufacturers can set a quick charging function for the terminal, namely more electric quantity can be supplemented for the terminal battery in a short time, and the condition that the terminal cannot be normally used due to the fact that the electric quantity of the terminal is low when the user goes out is avoided.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a charging method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a charging method, including:
when the current value of the current charging is detected to be larger than or equal to a preset current threshold value, determining whether the application currently running in the terminal is a preset application;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the current of charging is detected to be large, and the current running application is the preset application, the normal use of the user to the terminal can be influenced due to the fact that the terminal caused by large-current charging generates heat at the moment, the current value of charging can be reduced by the terminal, the condition that the temperature of the terminal caused by charging is increased is avoided, the condition that the user is scalded by the terminal when the user uses the terminal which is being charged is further avoided, and user experience is improved.
In one embodiment, the predetermined application may be a voice call. If the currently running application is the preset application, adjusting the current value for charging to a preset current value comprises:
if the currently running application is a voice call, determining whether the screen is in a screen-off state;
and if the screen is in a screen-off state, adjusting the current value for charging to the preset current value.
In one embodiment, if the screen is in a screen-off state, adjusting the current value for charging to the preset current value includes:
if the screen is in a screen-off state, determining whether the distance between an obstacle triggering screen-off and the screen is smaller than or equal to a preset distance threshold value;
and if the distance between the barrier and the screen is smaller than or equal to a preset distance threshold value, adjusting the current value for charging to the preset current value.
In an embodiment, if the currently running application is the preset application, adjusting the current value for charging to a preset current value includes:
if the currently running application is the preset application, determining whether the state of the terminal held by the current user meets a preset condition;
and if the current state of the terminal held by the user meets the preset condition, adjusting the current value to the preset current value.
In one embodiment, the determining whether the state of the terminal held by the current user satisfies a preset condition includes:
determining whether the contact area with the terminal when the current user holds the terminal is larger than or equal to a preset area threshold value;
and if the contact area between the current user and the terminal when holding the terminal is larger than or equal to a preset area threshold value, confirming that the state of holding the terminal by the current user meets the preset condition.
In one embodiment, the method further comprises:
acquiring a setting instruction, wherein the setting instruction comprises at least one application identifier;
and setting the application corresponding to the at least one application identifier as the preset application according to the setting instruction.
According to a second aspect of the embodiments of the present disclosure, there is provided a charging device including:
the determining module is used for determining whether the application currently running by the terminal is a preset application or not when the current value of the current charging is detected to be larger than or equal to a preset current threshold value;
and the adjusting module is used for adjusting the current value for charging to a preset current value when the current running application is the preset application, and the preset current value is smaller than the preset current threshold value.
In one embodiment, the preset application is a voice call; the adjustment module includes:
the first determining submodule is used for determining whether the screen is in a screen-off state or not if the currently running application is a voice call;
and the first adjusting submodule is used for adjusting the current value for charging to the preset current value if the screen is in a screen-off state.
In one embodiment, the first adjustment submodule includes:
the determining unit is used for determining whether the distance between an obstacle triggering screen turn-off and the screen is smaller than or equal to a preset distance threshold value or not if the screen is in a turn-off state;
and the adjusting unit is used for adjusting the current value for charging to the preset current value if the distance between the barrier and the screen is less than or equal to a preset distance threshold value.
In one embodiment, the adjustment module comprises:
the second determining submodule is used for determining whether the state of the terminal held by the current user meets a preset condition or not if the currently running application is the preset application;
and the second adjusting submodule is used for adjusting the current value to the preset current value if the current state of the terminal held by the user meets the preset condition.
In one embodiment, the second determination submodule includes:
the determining unit is used for determining whether the contact area with the terminal is larger than or equal to a preset area threshold value when the current user holds the terminal;
and the confirming unit is used for confirming that the state of the current user holding the terminal meets the preset condition if the contact area of the current user holding the terminal is larger than or equal to a preset area threshold value.
In one embodiment, the apparatus further comprises:
the device comprises an acquisition module, a setting module and a display module, wherein the acquisition module is used for acquiring a setting instruction, and the setting instruction comprises at least one application identifier;
and the setting module is used for setting the application corresponding to the at least one application identifier as the preset application according to the setting instruction.
According to a third aspect of the embodiments of the present disclosure, there is provided a charging device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the current value of the current charging is detected to be larger than or equal to a preset current threshold value, determining whether the application currently running in the terminal is a preset application;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method according to any one of the embodiments of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1a is a flow chart illustrating a charging method according to an exemplary embodiment.
FIG. 1b is a flow chart illustrating a charging method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a charging method according to an example embodiment.
Fig. 3 is a flow chart illustrating a charging method according to an example embodiment.
Fig. 4a is a schematic structural diagram of a charging device according to an exemplary embodiment.
Fig. 4b is a schematic structural diagram of a charging device according to an exemplary embodiment.
Fig. 4c is a schematic structural diagram of a charging device according to an exemplary embodiment.
Fig. 4d is a schematic structural diagram of a charging device according to an exemplary embodiment.
Fig. 4e is a schematic structural diagram of a charging device according to an exemplary embodiment.
Fig. 4f is a schematic diagram illustrating a structure of a charging device according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a structure of a charging device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal, which can be a mobile phone, a tablet computer, a smart watch and other devices capable of being charged and provided with applications, and the embodiment of the disclosure does not limit the devices. In the related art, the quick charging function set for the terminal by the manufacturer is to charge the terminal by using a large charging current. Although the terminal battery can be replenished with a large amount of electricity in a short time by using the quick charge function, the temperature of the terminal may be increased during the charging process. If the user needs to use the terminal which is performing fast charging, the user may be scalded by the terminal, and the user experience is not good. In the technical scheme provided by the embodiment of the disclosure, when the current of charging is detected to be large and the current running application is the preset application, it is described that the normal use of the user to the terminal may be affected due to the heating of the terminal caused by the large-current charging at the moment, so that the terminal can reduce the charging current value, the situation that the temperature of the terminal rises due to the charging is avoided, the situation that the user is scalded by the terminal when using the terminal being charged is further avoided, and the user experience is improved.
Fig. 1a is a flowchart illustrating a charging method for a terminal according to an exemplary embodiment, as shown in fig. 1a, the charging method includes the following steps 101 to 102:
in step 101, when it is detected that a current value currently performing charging is greater than or equal to a preset current threshold, it is determined whether an application currently running by the terminal is a preset application.
For example, since the quick charging function is generally started when the terminal has a low electric quantity, and the current value of the terminal during charging is not necessarily large, when the terminal is charging, it is necessary to first determine whether the current value currently being charged is greater than or equal to a preset current threshold value. The terminal may set a current value corresponding to the fast charging function as a preset current threshold, for example, the preset current threshold may be 2A (ampere), that is, the terminal may detect whether the fast charging function is currently used for charging; or the terminal may set another current value as the preset current threshold according to a user instruction, which is not limited in the embodiment of the present disclosure. When the terminal determines that the current value of the current charging is greater than or equal to the preset current threshold, it indicates that the current value of the current charging is large, and a terminal heating situation may occur. If the terminal determines that the current value of the current charging is smaller than the preset current threshold, the current charging current is smaller, the terminal does not generate heat, and the current value can be continuously used for charging.
Optionally, the terminal may set a plurality of preset applications according to the user instruction, where the preset applications are applications that the user needs to hold the terminal or make contact with the terminal by the face to use, such as a voice call application, a game application, and a shopping application. Optionally, the terminal may display a setting interface according to a user instruction, where the setting interface displays application identifiers and confirmation buttons of multiple applications installed in the terminal. The user may click on one or more of the application identifications as desired and click on the confirmation button after the selection is complete. And when detecting that the confirmation button is clicked, the terminal confirms that a setting instruction is received, wherein the setting instruction comprises application identifications of one or more applications clicked on a setting interface by a user. At this time, the terminal can set the application corresponding to the one or more application identifiers selected by the user as the preset application according to the setting instruction. In practical application, the terminal may also receive a setting instruction sent by a server or other terminals, and set an application corresponding to one or more application identifiers included in the setting instruction as a preset application. The terminal may set a preset application list in which one or more preset applications set by the terminal are recorded. When the terminal determines that the current value of the current charging is greater than or equal to the preset current threshold, the identifier of the currently running application can be obtained, then the list is inquired, whether the identifier of the currently running application exists in the list is determined, and if the identifier of the currently running application exists in the list, the currently running application is indicated as the preset application; if the current running application is not the preset application, the current running application is not the preset application.
In step 102, if the currently running application is a preset application, the current value for charging is adjusted to a preset current value, and the preset current value is smaller than a preset current threshold.
For example, if the terminal determines that the currently running application is the preset application, it indicates that the user may be holding the terminal for use currently or touching the terminal for use, and the terminal may generate heat, which may affect the user, so that the terminal may adjust the current value for charging to the preset current value, that is, reduce the current value for charging, and avoid the terminal generating heat during charging. The preset current value may be set by a user according to experience, for example, the preset current value may be 1A or 0.5A, which is not limited in the embodiment of the present disclosure.
Optionally, the preset application may be a voice call. When the terminal detects that the current charging current value is larger than or equal to the preset current threshold value, whether the application currently running in the terminal is a voice call is determined. If the application currently running in the terminal is voice call, it indicates that the user may be currently using the hands-free function for voice call or using the receiver for voice call. If the user adopts the hands-free function to carry out voice communication, the user cannot be in contact with the terminal, so that the terminal generates heat and cannot influence the user; if the user adopts the earphone to carry out voice call, the user needs to hold the terminal and is close to the face so that the earphone of the terminal is contacted with the ear, and at the moment, the terminal generates heat to influence the normal call of the user. When a user adopts a receiver to carry out voice call, a light sensor arranged near the terminal receiver can detect that the brightness is smaller than or equal to a preset brightness threshold value, and then the terminal screen is indicated to be in a screen-off state to reduce the power consumption of the terminal in the voice call, therefore, when the terminal determines that the application running at present is the voice call, whether the terminal screen is in the screen-off state can be determined, if the screen is in the screen-off state, the user probably adopts the receiver to carry out the voice call is explained, therefore, the terminal can adjust the current value for charging to the preset current value, and the situation that the face or the ear of the user is scalded due to the fact that the terminal generates heat due to high-current.
Optionally, since the light sensor determines whether to instruct the terminal screen to turn off the screen according to the brightness, even when the face or the ear of the user is far away from the terminal screen, if the surrounding environment is dark, the light sensor may detect that the brightness is less than or equal to the preset brightness threshold, and further instruct the terminal screen to turn off the screen. That is, in the case that the face or ear of the user is far away from the terminal screen, the face or ear of the user can still trigger the terminal screen to be turned off. In this case, even if the terminal is charged with a large current to generate heat, the terminal does not affect the user, and if the charging current value is adjusted to a preset current value, the charging efficiency may be decreased meaninglessly. Therefore, when the terminal determines that the screen is in the screen-off state, it may also determine whether an obstacle triggering screen-off, such as the face or the ear of a user, is a distance from the terminal screen that is less than or equal to a preset distance threshold. Specifically, the light sensor may determine the distance between the obstacle and the screen by reflection of light, or the terminal may be provided with a distance sensor and determine the distance between the obstacle and the screen by using the distance sensor. If the distance between the barrier and the terminal screen is smaller than or equal to the preset distance threshold value, it is indicated that the user may be using a receiver to perform voice call, and the distance between the face or the ear and the terminal is short, so that the terminal can adjust the charged current value to the preset current value, and the situation that the face or the ear of the user is scalded due to the fact that the terminal generates heat due to large-current charging is avoided. If the distance between the barrier and the terminal screen is greater than the preset distance threshold, it indicates that the user may use a receiver to perform voice call, but the distance from the user to the terminal is long, and the heat generated by the terminal will not affect the user temporarily, so that the terminal can continue to use the current charging current value to perform charging, and the charging efficiency of the terminal is ensured.
In the technical scheme provided by the embodiment of the disclosure, when the current of charging is detected to be large and the current running application is the preset application, it is described that the normal use of the user to the terminal may be affected due to the heating of the terminal caused by the large-current charging at the moment, so that the terminal can reduce the charging current value, the situation that the temperature of the terminal rises due to the charging is avoided, the situation that the user is scalded by the terminal when using the terminal being charged is further avoided, and the user experience is improved.
In one embodiment, as shown in fig. 1b, in step 102, if the currently running application is a preset application, adjusting the current value for charging to a preset current value may be implemented through steps 1021 to 1022.
In step 1021, if the currently running application is a preset application, it is determined whether the state of the current user holding the terminal meets a preset condition.
In step 1022, if the current state of the user holding the terminal satisfies the predetermined condition, the current value is adjusted to the predetermined current value.
For example, when the user uses the terminal to play a game or shop, the user may hold the terminal in a relatively fixed posture and make contact with the terminal, so that the user may set a preset condition according to the posture, where the preset condition is used to limit a holding state of the user when the user uses the terminal. When the application currently running in the terminal is the preset application, whether the state of the current user holding the terminal meets the preset condition or not can be further determined. If the current state of the terminal held by the user meets the preset condition, the user is currently using the terminal in a normal holding posture, and the normal use of the user is possibly influenced by the heating of the terminal at the moment, so that the terminal can be adjusted to a preset current value by the current value; if the current state of the terminal held by the user does not meet the preset condition, it is indicated that although the terminal is running the application such as games, shopping or videos, the user does not hold the terminal or contacts the terminal, the terminal generates heat and does not affect the user, and therefore the terminal can continue to be charged by adopting the current.
Optionally, the preset condition may be that the contact area is greater than or equal to a preset area threshold, that is, when the terminal determines that the currently running application is the preset application, it may be determined whether the contact area with the terminal when the terminal is held by the current user is greater than or equal to the preset area threshold. If the contact area with the terminal when the terminal is held by the current user is larger than or equal to the preset area threshold, the fact that the user is using the terminal in a normal holding posture currently indicates that the normal use of the user is possibly influenced by the heating of the terminal, and therefore the terminal can be adjusted to the preset current value through the current value; if the contact area with the terminal when the current user holds the terminal is smaller than the preset area threshold, it indicates that although the terminal is running the application such as games, shopping or videos, the user does not hold the terminal or makes contact with the terminal, so the terminal can continue to be charged by using the current.
In the technical scheme provided by the embodiment of the disclosure, when the current of charging is detected to be large, the current running application is the preset application, and the state of the user using the terminal at present meets the preset condition, it is described that the normal use of the user on the terminal may be influenced by the terminal heating caused by the large-current charging, so that the terminal can reduce the charging current value, the condition that the temperature of the terminal rises caused by charging is avoided, the condition that the user is scalded by the terminal when using the charging terminal is further avoided, and the user experience is improved.
The implementation is described in detail below by way of several embodiments.
Fig. 2 is a flowchart illustrating a charging method according to an exemplary embodiment, where an execution subject is a terminal, as shown in fig. 2, and the method includes the following steps 201 to 207:
in step 201, a setting instruction is obtained, the setting instruction including at least one application identifier.
In step 202, according to the setting instruction, an application corresponding to at least one application identifier included in the setting instruction is set as a preset application.
The preset application may be a voice call.
In step 203, during charging, detecting whether a current value currently being charged is greater than or equal to a preset current threshold, and if the current value currently being charged is less than the preset current threshold, executing step 204; if the current value of the current charging is greater than or equal to the preset current threshold, step 205 is executed.
In step 204, the charging is continued according to the current value, and the present routine is ended.
In step 205, determining whether the current screen is in a screen-off state; if the current screen is in a bright screen state, executing step 204; if the current screen is in the off-screen state, go to step 206.
In step 206, determining whether the distance between the screen and the obstacle triggering the screen-off is smaller than or equal to a preset distance threshold; if the distance between the obstacle and the screen is greater than the preset distance threshold, executing step 204; if the distance between the obstacle and the screen is less than or equal to the preset distance threshold, step 207 is executed.
In step 207, the current value of the current charging is adjusted to a preset current value, where the preset current value is smaller than a preset current threshold.
The embodiment of the disclosure provides a charging method, which is used for detecting that the current for charging is large and the current running application is a preset application, and therefore the normal use of a user on a terminal can be influenced by the terminal heating caused by large-current charging, the terminal can reduce the current value for charging, the situation that the temperature of the terminal rises caused by charging is avoided, the situation that the user is scalded by the terminal when the user uses the terminal being charged is further avoided, and the user experience is improved.
Fig. 3 is a flowchart illustrating a charging method according to an exemplary embodiment, where an execution subject is a terminal, as shown in fig. 3, including the following steps 301 to 306:
in step 301, a setting instruction is obtained, the setting instruction including at least one application identifier.
In step 302, according to the setting instruction, an application corresponding to at least one application identifier included in the setting instruction is set as a preset application.
The preset application can be a game application, a shopping application or a video application.
In step 303, during charging, detecting whether a current value currently being charged is greater than or equal to a preset current threshold, if the current value currently being charged is less than the preset current threshold, executing step 304; if the current value of the current charging is greater than or equal to the preset current threshold, step 305 is executed.
In step 304, the charging is continued at the current value, and the present routine is ended.
In step 305, determining whether the contact area with the terminal when the current user holds the terminal is larger than or equal to a preset area threshold value; if the contact area with the terminal is smaller than the preset area threshold when the current user holds the terminal, executing step 304; if the contact area with the terminal when the current user holds the terminal is greater than or equal to the preset area threshold, go to step 306.
In step 306, the current value of the current charging is adjusted to a preset current value, where the preset current value is smaller than a preset current threshold.
The embodiment of the disclosure provides a charging method, which is used for detecting that the current for charging is large and the current running application is a preset application, and therefore the normal use of a user on a terminal can be influenced by the terminal heating caused by large-current charging, the terminal can reduce the current value for charging, the situation that the temperature of the terminal rises caused by charging is avoided, the situation that the user is scalded by the terminal when the user uses the terminal being charged is further avoided, and the user experience is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 4a is a schematic structural diagram illustrating a charging device 40 according to an exemplary embodiment, where the charging device 40 may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 4a, the charging device 40 includes a determination module 401 and an adjustment module 402.
The determining module 401 is configured to determine whether an application currently running by the terminal is a preset application when it is detected that a current value currently performing charging is greater than or equal to a preset current threshold.
An adjusting module 402, configured to adjust the current value for charging to a preset current value when the currently running application is the preset application, where the preset current value is smaller than the preset current threshold.
In one embodiment, the predetermined application is a voice call. As shown in fig. 4b, the tuning module 402 includes a first determination sub-module 4021 and a first tuning sub-module 4022.
The first determining sub-module 4021 is configured to determine whether the screen is in a screen-off state if the currently running application is a voice call.
The first adjusting submodule 4022 is configured to adjust the current value for charging to the preset current value if the screen is in a screen-off state.
In one embodiment, as shown in fig. 4c, the first adjusting sub-module 4022 comprises a determining unit 4022a and an adjusting unit 4022 b.
The determining unit 4022a is configured to determine whether a distance between an obstacle triggering screen turn-off of the screen and the screen is smaller than or equal to a preset distance threshold if the screen is in a turn-off state.
The adjusting unit 4022b is configured to adjust the current value for charging to a preset current value if the distance between the obstacle and the screen is less than or equal to a preset distance threshold.
In one embodiment, as shown in FIG. 4d, the adjustment module 402 includes a second determination sub-module 4023 and a second adjustment sub-module 4024.
The second determining submodule 4023 is configured to determine whether a state of the terminal held by the current user meets a preset condition if the currently running application is the preset application.
The second adjusting submodule 4024 is configured to adjust the current value to the preset current value if the current state of the terminal held by the user meets the preset condition.
In one embodiment, as shown in fig. 4e, the second determination sub-module 4023 comprises a determination unit 4023a and a validation unit 4023 b.
The determining unit 4023a is configured to determine whether a contact area with the terminal when the terminal is held by the current user is greater than or equal to a preset area threshold.
A confirming unit 4023b, configured to confirm that a state of the terminal held by the current user satisfies the preset condition if a contact area with the terminal when the current user holds the terminal is greater than or equal to a preset area threshold.
In one embodiment, as shown in fig. 4f, the apparatus 40 further comprises an obtaining module 403 and a setting module 404.
The obtaining module 403 is configured to obtain a setting instruction, where the setting instruction includes at least one application identifier.
A setting module 404, configured to set, according to the setting instruction, an application corresponding to the at least one application identifier as the preset application.
The embodiment of the disclosure provides a charging device, it is great to detect the current that charges at present, and when the application of current operation is for predetermineeing the application, explains that the normal use of user to the terminal may be influenced because the terminal that the heavy current charge leads to generates heat this moment, and the device can reduce the current value of charging this moment, avoids the condition that the terminal temperature that leads to because charging risees, and then has avoided the condition that the user is scalded by this terminal when using the terminal that is charging, has improved user experience.
The disclosed embodiment provides a charging device, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the current value of the current charging is detected to be larger than or equal to a preset current threshold value, determining whether the application currently running in the terminal is a preset application;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value.
In one embodiment, the processor may be further configured to: if the currently running application is a voice call, determining whether the screen is in a screen-off state; and if the screen is in a screen-off state, adjusting the current value for charging to the preset current value.
In one embodiment, the processor may be further configured to: if the screen is in a screen-off state, determining whether the distance between an obstacle triggering screen-off and the screen is smaller than or equal to a preset distance threshold value; and if the distance between the barrier and the screen is smaller than or equal to a preset distance threshold value, adjusting the current value for charging to the preset current value.
In one embodiment, the processor may be further configured to: if the currently running application is the preset application, determining whether the state of the terminal held by the current user meets a preset condition; and if the current state of the terminal held by the user meets the preset condition, adjusting the current value to the preset current value.
In one embodiment, the processor may be further configured to: determining whether the contact area with the terminal when the current user holds the terminal is larger than or equal to a preset area threshold value; and if the contact area between the current user and the terminal when holding the terminal is larger than or equal to a preset area threshold value, confirming that the state of holding the terminal by the current user meets the preset condition.
In one embodiment, the processor may be further configured to: acquiring a setting instruction, wherein the setting instruction comprises at least one application identifier; and setting the application corresponding to the at least one application identifier as the preset application according to the setting instruction.
The embodiment of the disclosure provides a charging device, it is great to detect the current that charges at present, and when the application of current operation is for predetermineeing the application, explains that the normal use of user to the terminal may be influenced because the terminal that the heavy current charge leads to generates heat this moment, and the device can reduce the current value of charging this moment, avoids the condition that the terminal temperature that leads to because charging risees, and then has avoided the condition that the user is scalded by this terminal when using the terminal that is charging, has improved user experience.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a structure of a charging apparatus 50 according to an exemplary embodiment, wherein the apparatus 50 is suitable for a terminal device. For example, the apparatus 50 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 50 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 50, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 50. Examples of such data include instructions for any application or method operating on the device 50, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 50. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 50.
The multimedia component 508 includes a screen that provides an output interface between the device 50 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 50 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 50 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 50. For example, the sensor assembly 514 may detect an open/closed state of the device 50, the relative positioning of the components, such as a display and keypad of the device 50, the sensor assembly 514 may also detect a change in the position of the device 50 or a component of the device 50, the presence or absence of user contact with the device 50, the orientation or acceleration/deceleration of the device 50, and a change in the temperature of the device 50. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 50 and other devices in a wired or wireless manner. The device 50 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 50 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 50 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The disclosed embodiments also provide a non-transitory computer readable storage medium, where instructions, when executed by a processor of the apparatus 50, enable the apparatus 50 to perform the above charging method, the method including:
and when the current value of the current charging is detected to be larger than or equal to the preset current threshold, determining whether the application currently running in the terminal is the preset application.
If the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value.
In one embodiment, the preset application is a voice call; if the currently running application is the preset application, adjusting the current value for charging to a preset current value comprises: if the currently running application is a voice call, determining whether the screen is in a screen-off state; and if the screen is in a screen-off state, adjusting the current value for charging to the preset current value.
In one embodiment, if the screen is in a screen-off state, adjusting the current value for charging to the preset current value includes: if the screen is in a screen-off state, determining whether the distance between an obstacle triggering screen-off and the screen is smaller than or equal to a preset distance threshold value; and if the distance between the barrier and the screen is smaller than or equal to a preset distance threshold value, adjusting the current value for charging to the preset current value.
In an embodiment, if the currently running application is the preset application, adjusting the current value for charging to a preset current value includes: if the currently running application is the preset application, determining whether the state of the terminal held by the current user meets a preset condition; and if the current state of the terminal held by the user meets the preset condition, adjusting the current value to the preset current value.
In one embodiment, the determining whether the state of the terminal held by the current user satisfies a preset condition includes: determining whether the contact area with the terminal when the current user holds the terminal is larger than or equal to a preset area threshold value; and if the contact area between the current user and the terminal when holding the terminal is larger than or equal to a preset area threshold value, confirming that the state of holding the terminal by the current user meets the preset condition.
In one embodiment, the method further comprises: acquiring a setting instruction, wherein the setting instruction comprises at least one application identifier; and setting the application corresponding to the at least one application identifier as the preset application according to the setting instruction.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A method of charging, comprising:
when the current value of the current charging is detected to be larger than or equal to a preset current threshold value, determining whether the application currently running in the terminal is a preset application;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value comprises:
if the currently running application is the preset application, determining whether the state of the terminal held by the current user meets a preset condition, wherein the preset condition is used for indicating that the user holds the terminal in a relatively fixed posture and contacts the terminal; if the current state of the user holding the terminal meets the preset condition, adjusting the current value to the preset current value; alternatively, the first and second electrodes may be,
if the currently running application is a voice call, determining whether the screen is in a screen-off state; if the screen is in a screen-off state, determining whether the distance between an obstacle triggering screen-off and the screen is smaller than or equal to a preset distance threshold value; and if the distance between the barrier and the screen is smaller than or equal to a preset distance threshold value, adjusting the current value for charging to the preset current value.
2. The method according to claim 1, wherein the determining whether the state of the current user holding the terminal satisfies a preset condition comprises:
determining whether the contact area with the terminal when the current user holds the terminal is larger than or equal to a preset area threshold value;
and if the contact area between the current user and the terminal when holding the terminal is larger than or equal to a preset area threshold value, confirming that the state of holding the terminal by the current user meets the preset condition.
3. The method according to any of claims 1 to 2, further comprising:
acquiring a setting instruction, wherein the setting instruction comprises at least one application identifier;
and setting the application corresponding to the at least one application identifier as the preset application according to the setting instruction.
4. A charging device, comprising:
the determining module is used for determining whether the application currently running by the terminal is a preset application or not when the current value of the current charging is detected to be larger than or equal to a preset current threshold value;
the adjusting module is used for adjusting the current value for charging to a preset current value when the currently running application is the preset application, and the preset current value is smaller than the preset current threshold value;
the adjustment module includes:
the second determining submodule is used for determining whether the current state of holding the terminal by the user meets a preset condition or not if the current running application is the preset application, wherein the preset condition is used for indicating that the user holds the terminal in a relatively fixed posture and contacts the terminal;
the second adjusting submodule is used for adjusting the current value to the preset current value if the state that the current user holds the terminal meets the preset condition; alternatively, the first and second electrodes may be,
the preset application is a voice call; the adjustment module includes:
the first determining submodule is used for determining whether the screen is in a screen-off state or not if the currently running application is a voice call;
the first adjusting submodule is used for adjusting the current value for charging to the preset current value if the screen is in a screen-off state;
the first adjustment submodule includes:
the determining unit is used for determining whether the distance between an obstacle triggering screen turn-off and the screen is smaller than or equal to a preset distance threshold value or not if the screen is in a turn-off state;
and the adjusting unit is used for adjusting the current value for charging to the preset current value if the distance between the barrier and the screen is less than or equal to a preset distance threshold value.
5. The apparatus of claim 4, wherein the second determination submodule comprises:
the determining unit is used for determining whether the contact area with the terminal is larger than or equal to a preset area threshold value when the current user holds the terminal;
and the confirming unit is used for confirming that the state of the current user holding the terminal meets the preset condition if the contact area of the current user holding the terminal is larger than or equal to a preset area threshold value.
6. The apparatus of any one of claims 4 to 5, further comprising:
the device comprises an acquisition module, a setting module and a display module, wherein the acquisition module is used for acquiring a setting instruction, and the setting instruction comprises at least one application identifier;
and the setting module is used for setting the application corresponding to the at least one application identifier as the preset application according to the setting instruction.
7. A charging device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the current value of the current charging is detected to be larger than or equal to a preset current threshold value, determining whether the application currently running in the terminal is a preset application;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value, wherein the preset current value is smaller than the preset current threshold value;
if the currently running application is the preset application, adjusting the current value for charging to a preset current value comprises:
if the currently running application is the preset application, determining whether the state of the terminal held by the current user meets a preset condition, wherein the preset condition is used for indicating that the user holds the terminal in a relatively fixed posture and contacts the terminal; if the current state of the user holding the terminal meets the preset condition, adjusting the current value to the preset current value; alternatively, the first and second electrodes may be,
if the currently running application is a voice call, determining whether the screen is in a screen-off state; if the screen is in a screen-off state, determining whether the distance between an obstacle triggering screen-off and the screen is smaller than or equal to a preset distance threshold value; and if the distance between the barrier and the screen is smaller than or equal to a preset distance threshold value, adjusting the current value for charging to the preset current value.
8. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 3.
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 CN108539823A (en) 2018-09-14
CN108539823B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021012525A1 (en) * 2019-07-24 2021-01-28 苏州宝时得电动工具有限公司 Method for controlling automatic locomotion device to return to station, and automatic locomotion device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107077181A (en) * 2016-10-18 2017-08-18 深圳达闼科技控股有限公司 A kind of charging current limiter method, device and electronic equipment
CN107425564A (en) * 2017-06-23 2017-12-01 珠海格力电器股份有限公司 A kind of intelligent charging method, device and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103956792B (en) * 2014-05-08 2016-08-17 努比亚技术有限公司 A kind of method and device controlling mobile terminal charging temperature rise
CN104052138B (en) * 2014-05-28 2017-07-11 惠州Tcl移动通信有限公司 The control method of temperature when a kind of intelligent mobile terminal and its charging
KR102613489B1 (en) * 2016-05-27 2023-12-14 삼성전자주식회사 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
CN106451612B (en) * 2016-09-21 2020-05-12 奇酷互联网络科技(深圳)有限公司 Charging method and charging device
CN106329650A (en) * 2016-09-21 2017-01-11 奇酷互联网络科技(深圳)有限公司 Intelligent device and charging method thereof
CN106654424A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Charging method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107077181A (en) * 2016-10-18 2017-08-18 深圳达闼科技控股有限公司 A kind of charging current limiter method, device and electronic equipment
CN107425564A (en) * 2017-06-23 2017-12-01 珠海格力电器股份有限公司 A kind of intelligent charging method, device and electronic equipment

Also Published As

Publication number Publication date
CN108539823A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108110854B (en) Charging method, charging device and computer-readable storage medium
CN108091808B (en) Battery, equipment, charging control method and device
CN109862169B (en) Electronic equipment control method, device and storage medium
US11510253B2 (en) Random access control method and random access control apparatus
CN112821508B (en) Charging method, device and storage medium
CN106990984B (en) Method and device for updating system
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106535147B (en) Communication signal processing method and device
CN108539823B (en) Charging method and device
CN107733021B (en) Control method and device of electronic equipment
CN108429312B (en) Charging control method and device
CN107528098B (en) Charging method and device
CN109922203B (en) Terminal, screen off method and device
CN106060104B (en) Application management method and device
CN115940310A (en) Charging method, charging device, and storage medium
CN112448052B (en) Battery charging control method and device
CN109450032B (en) Wireless charging processing method, device and equipment
CN112905027A (en) Timing method and device, mobile terminal and storage medium
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN106170038B (en) Recording method and device
CN111130223B (en) Wireless charging display method and device
CN113138036B (en) Temperature detection method and device and electronic equipment
EP4170855A1 (en) Charging method, electronic device and storage medium
CN112821515B (en) Charging method, device and system
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium

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