CN108287605A - charge control method, device, terminal device and storage medium - Google Patents

charge control method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108287605A
CN108287605A CN201810015934.0A CN201810015934A CN108287605A CN 108287605 A CN108287605 A CN 108287605A CN 201810015934 A CN201810015934 A CN 201810015934A CN 108287605 A CN108287605 A CN 108287605A
Authority
CN
China
Prior art keywords
terminal device
current value
predeterminable event
application program
set current
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.)
Pending
Application number
CN201810015934.0A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810015934.0A priority Critical patent/CN108287605A/en
Publication of CN108287605A publication Critical patent/CN108287605A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of charge control method, device, terminal device and storage medium, when this method is included in terminal device and is in charged state, predeterminable event is monitored, the application program installed in the predeterminable event and the terminal device is associated with;If the predeterminable event is triggered, pre-set current value is obtained, wherein the pre-set current value is less than present charging current value;The charging current for controlling the terminal device is less than or equal to the pre-set current value, this programme avoids the problem that terminal device temperature is excessively high caused by charging, security risk caused by reducing charging, improves the hardware service life and operational efficiency of terminal device.

Description

Charge control method, device, terminal device and storage medium
Technical field
The invention relates to computer technology more particularly to a kind of charge control method, device, terminal device and deposit Storage media.
Background technology
With the raising of terminal device popularity, more and more users' using terminal equipment executes various work( Can be to meet self-demand, such as using terminal equipment reads word, viewing video, listens to music, plays game, terminal device uses In the process, electric quantity consumption to a certain extent after, charge and support system and application program to keep enough electricity Operation.
In the prior art, user can be charged by electric power data line for terminal device, however existing charging modes Existing defects need to improve.
Invention content
The present invention provides a kind of charge control method, device, terminal device and storage mediums, and avoiding is caused by charging The excessively high problem of terminal device temperature, security risk caused by reducing charging, the hardware for improving terminal device uses the longevity Life and operational efficiency.
In a first aspect, the embodiment of the present application provides a kind of charge control method, including:
When terminal device is in charged state, predeterminable event is monitored, the predeterminable event and the terminal are set The application program of standby middle installation is associated with;
If the predeterminable event is triggered, pre-set current value is obtained, wherein the pre-set current value, which is less than, currently to be filled Electric current value;
The charging current for controlling the terminal device is less than or equal to the pre-set current value.
Second aspect, the embodiment of the present application also provides a kind of battery charge controllers, including:
Module is monitored, for when terminal device is in charged state, monitoring predeterminable event, the predeterminable event It is associated with the application program installed in the terminal device;
Data processing module obtains pre-set current value if be triggered for the predeterminable event, wherein described pre- If current value is less than present charging current value;
Current control module, the charging current for controlling the terminal device are less than or equal to the predetermined current Value.
The third aspect, the embodiment of the present application also provides a kind of terminal devices, including:Processor, memory and storage On a memory and the computer program that can run on a processor, the processor are realized such as when executing the computer program Charge control method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, institutes Terminal device executable instruction is stated when being executed by terminal device processor for executing the charging control described in the embodiment of the present application Method processed.
In the present solution, when terminal device is in charged state, predeterminable event is monitored, the predeterminable event and institute The application program association installed in terminal device is stated, if the predeterminable event is triggered, obtains pre-set current value, wherein The pre-set current value is less than present charging current value, controls the charging current of the terminal device less than or equal to described Pre-set current value, this programme avoid the problem that terminal device temperature is excessively high caused by charging, and pacify caused by reducing charging Full hidden danger improves the hardware service life and operational efficiency of terminal device.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of charge control method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another charge control method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another charge control method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another charge control method provided by the embodiments of the present application;
Fig. 5 is the flow chart of another charge control method provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of battery charge controller provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is for explaining the present invention rather than limitation of the invention.It also should be noted that for the ease of retouching It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of charge control method provided by the embodiments of the present application, is applicable to terminal device Charging is controlled, and this method can be executed by terminal device provided by the embodiments of the present application, the charging control of the terminal device Software can be used in device processed and/or the mode of hardware is realized, as shown in Figure 1, concrete scheme provided in this embodiment is as follows:
Step S101, when terminal device is in charged state, predeterminable event is monitored.
Terminal device is performed battery charging by the power cord of connection, the charged state refer to power cord connection, battery into The state of row charging.In one embodiment, the charged state of terminal device can be judged, when determining that terminal device is in Under charged state, then the predeterminable event in terminal device is monitored.Illustratively, by taking android system as an example, can pass through The battery charging situation for obtaining BatteryManager broadcast determines whether terminal device is in charged state, specifically, can be with It is:
IntentFilter ifilter=
new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
Intent batteryStatus=context.registerReceiver (null, ifilter);
Int status=batteryStatus.getIntExtra (BatteryManager.EXTRA_STATUS ,- 1);
Boolean isCharging=status
==BatteryManager.BATTERY_STATUS_CHARGING | | status
==BatteryManager.BATTERY_STATUS_FULL.
In another embodiment, it can judge whether terminal device is in by monitoring the plugged/unplugged status of charger Charged state illustratively by registering radio receiver in Androidmanifest.xml, and carries out corresponding filtering rod The setting of part.Specifically, can refer to as follows:
Wherein, the application program installed in the predeterminable event and the terminal device is associated with, as the correlation of application program Predeterminable event.In one embodiment, which can be the click event of the icon of application program, in another implementation In example, which can be the operating status of application program.Correspondingly, to predeterminable event carry out monitor include:To default The click event of the icon of application program is monitored, or is monitored the operating status for presetting application program.
If step S102, the described predeterminable event is triggered, pre-set current value is obtained.
Wherein, which can be the current value for pre-setting and storing, which is less than current Charging current value, when terminal device passes through power source charges, current value is usually the fixed current value given tacit consent to, different terminals Equipment and power supply adaptor default setting have different current values, usually 1.5A to 2A, and the range of the pre-set current value can be with It is 0.9A to 1.5A.
In one embodiment, which is the click event of the icon of default application program, wherein this is preset and answers It can be set by system default with program, can be take pictures application program, video application and game application, when detecting It is corresponding to obtain pre-set current value corresponding with the application icon after the icon of the application program is clicked, it can also be Obtain preset fixed current value.
In another embodiment, which is the different operation/use state of default application program.It is exemplary , when detecting that the camera function of camera application program is currently running, pre-set current value is obtained.Specifically, passing through As under type determines whether the state of taking pictures of terminal device is in taking pictures:
Step S103, the charging current for controlling the terminal device is less than or equal to the pre-set current value.
When terminal device is under charged state, after predeterminable event is triggered and gets pre-set current value, described in control The charging current of terminal device is less than or equal to the pre-set current value.It in one embodiment, can be by current charging Size of current is set as the size of the pre-set current value obtained, further by being filled with end to the control of charging circuit to realize The electric current of end equipment is pre-set current value.Illustratively, it is assumed that pre-set current value size is 1.2A, and the charging current of acquiescence is 1.8A, when aforementioned condition meets, it is 1.2A that current charging current value, which is arranged, and realization process can be:
chip->chg_ops->input_current_write(chip,current_limit)
I.e. terminal device take pictures charging when electric current by chip->Limits.input_current_camera_ma is assigned to Current_limit, wherein limits.input_current_camera_ma is the pre-set current value got.
In another embodiment, if the predeterminable event is triggered, obtaining pre-set current value includes:If described pre- If event is triggered, the current remaining capacity of terminal device is determined, determined according to the size of the remaining capacity corresponding default Current value.Wherein, it can be illustratively 1.0,1.1,1.2,1.3,1.4 and that pre-set current value, which includes multiple specific numerical value, 1.5, the smaller corresponding pre-set current value of the current remaining capacity of terminal device is bigger, avoids remaining capacity too low and what is be arranged fills Electric current too small the problem of causing terminal device that can not be used due to not enough power supply.
It should be noted that in another embodiment, can also monitor predeterminable event, when predeterminable event is triggered Judge whether present terminal equipment is in charged state afterwards, if it is, obtaining pre-set current value, controls the terminal device Charging current is less than or equal to the pre-set current value.
As shown in the above, terminal device is in charging process, if detecting being closed with application program for the condition of satisfaction The predeterminable event of connection is triggered, then reduces charging current accordingly, and thus avoiding operation application program in charging process causes Terminal device overheat the problem of, improve terminal device operational efficiency (terminal device temperature raising can lead to CPU frequency reducings, Thermal energy, which improves, simultaneously reduces resource utilization).
Fig. 2 is the flow chart of another charge control method provided by the embodiments of the present application, optionally, described pair of default thing Part monitor:The click event of icon to presetting application program is monitored;If correspondingly, described default Event is triggered, then obtains pre-set current value and include:If detecting the click event quilt of the icon of the default application program Triggering, then obtain pre-set current value.As shown in Fig. 2, technical solution is specific as follows:
Step S201, the click event of the icon to presetting application program is monitored.
Wherein, which can be take pictures application program, video application or game application etc., with Can be the application programs such as the youku.com's video, iqiyi.com video, Tencent's video of installing terminal equipment for video application, Default application program can be determined by the selection operation of user, can also be that system default determines.Wherein, the default application Program is the higher application program of data processing amount.
If step S202, detecting that the click event of the icon of the default application program is triggered, obtain default Current value.
If detecting that the icon of default application program is clicked, i.e., default application program will subsequently be opened, then phase The acquisition pre-set current value answered.
Step S203, when terminal device is in charged state, the charging current for controlling the terminal device is less than Or it is equal to the pre-set current value.
It can be seen from the above, when terminal device runs more complex application program, if dropped accordingly in charged state Low charging current, to reduce the degree of heat of terminal device so that the operation of terminal device is more smooth, stable.
Fig. 3 is the flow chart of another charge control method provided by the embodiments of the present application, optionally, described pair of default thing Part monitor:Operating status to presetting application program is monitored;If correspondingly, the predeterminable event quilt Triggering, then obtaining pre-set current value includes:If detecting that the default application program is in front stage operation state, obtain pre- If current value.As shown in figure 3, technical solution is specific as follows:
Step S301, the operating status for presetting application program is monitored.
If step S302, detecting that the default application program is in front stage operation state, pre-set current value is obtained.
In one embodiment, by taking android system as an example, by the life for monitoring Activity in BaseActivity The mode in period is ordered, judges to preset whether application program is in front stage operation state.Specifically:
By checking to count whether be more than 0 to judge default application program whether in front stage operation, specifically:
Optionally, the program of front stage operation can be also monitored, if it find that front stage operation when terminal device charges Program is to preset to answer program, then obtains the predetermined current of storage.In another embodiment, by being noted in Application The monitoring callback interface of volume Activity states switching, which is realized, judges to preset whether application program is in front stage operation state.
Step S303, when terminal device is in charged state, the charging current for controlling the terminal device is less than Or it is equal to the pre-set current value.
It can be seen from the above, when default application program is in front stage operation, if terminal device is in charged state, reduce Charging current, temperature is excessively high when terminal device being avoided to run damages equipment.
In a possible embodiment, it is less than or equal to the default electricity in the charging current of control terminal equipment After flow valuve, further include:If detecting that the default application program is in non-operating state, the terminal device is controlled Charging current is acquiescence current value.Illustratively, it is right after user closes currently running camera program or games The electric current that is filled with of terminal device carries out control recovery to acquiescence size of current, so that terminal device presets application program in inoperative In the case of keep original charging current, ensure charge efficiency.
Fig. 4 is that the flow chart of another charge control method provided by the embodiments of the present application is optionally preset at described Dui Before event is monitored, further include:The mapping relations for presetting different application and predetermined current are created, wherein can be pair The setting of different default application programs and corresponding predetermined current;If correspondingly, the predeterminable event is triggered, Obtaining pre-set current value includes:If the predeterminable event is triggered, obtained and the predeterminable event pair according to mapping relations The pre-set current value answered.As shown in figure 4, technical solution is specific as follows:
Step S401, the mapping relations for presetting different application and predetermined current are created.
Wherein, different default application programs can be correspondingly arranged different predetermined currents, illustratively, it is assumed that terminal device Acquiescence charging current be 1.5A, the corresponding predetermined current of the other application program of game class can be 0.8A, and news category is answered Can be 1.3A etc. with the corresponding predetermined current of program, specifically, according to disappearing to hardware resource in application program operational process The difference of consumption and set different predetermined currents, it is lower to consume the more high predetermined current being arranged accordingly.In one embodiment, The mapping relations can be stored in by the form of mapping table in the memory of terminal device.
Step S402, the click event of the icon to presetting application program is monitored.
Step S403, judge whether the click event of the icon of the default application program is triggered, if it is, executing Step S404, if it is not, then continuing to monitor.
Step S404, the corresponding pre-set current value of the default application program is determined according to mapping relations.
Step S405, when terminal device is in charged state, the charging current for controlling the terminal device is less than Or it is equal to the pre-set current value.
Step S406, the operating status of the default application program is monitored.
Step S407, judge whether the default application program is closed, if so, S408 is thened follow the steps, if not, Then continue to monitor.
Step S408, the charging current for controlling the terminal device is acquiescence current value.
It can be seen from the above, for and the associated predeterminable event of different application, different predetermined currents is set so that right The control of size of current is more reasonable in terminal device charging process, saves and fills to the full extent while improving charge efficiency The electric time.
Fig. 5 is that the flow chart of another charge control method provided by the embodiments of the present application is optionally preset at described Dui Before event is monitored, further include:According to terminal device different application, corresponding equipment operation is joined in the process of running Number determines the corresponding predeterminable event of different application, and the equipment operating parameter includes CPU usage, memory usage and consumption At least one of electricity.As shown in figure 5, technical solution is specific as follows:
Step S501, according to terminal device different application, corresponding equipment operating parameter determines not in the process of running The corresponding predeterminable event with application program.
Wherein, equipment operating parameter includes at least one of CPU usage, memory usage and power consumption.It is exemplary , when application program A in the process of running, determine its CPU usage be more than 45% (or memory usage be more than 50%, it is pre- If duration such as 20 minutes power consumption is more than 15%), then the front stage operation state of application program A to be determined as predeterminable event, work as inspection When measuring the predeterminable event and being triggered that i.e. the operating status of application program A is in front stage operation, then subsequently terminal is set accordingly Standby charging current is controlled.
Step S502, predeterminable event is monitored.
As previously mentioned, can whether monitor in front stage operation state application program A.
Step S503, judge whether the predeterminable event is triggered, if so, S504 is thened follow the steps, if it is not, then after It is continuous to monitor.
Step S504, pre-set current value is obtained.
Step S505, when terminal device is in charged state, the charging current for controlling the terminal device is less than Or it is equal to the pre-set current value.
Step S506, the operating status of the application program of triggering charging current control is monitored.
Step S507, judge whether the application program is in running background or is closed state, if it is, executing Step S508, if it is not, then continuing to monitor.
Step S508, the charging current for controlling the terminal device is acquiescence current value.
It can be seen from the above, being united by the device parameter in the application program operational process to being installed in terminal device Meter, determines the predeterminable event of corresponding application program, corresponding to reduce when the higher application program of resource consumption brings into operation The charging current of terminal device avoids the problem that terminal device temperature is excessively high caused by charging, caused by reducing charging Security risk improves the hardware service life and operational efficiency of terminal device.
Fig. 6 is a kind of structure diagram of battery charge controller provided by the embodiments of the present application, and the device is above-mentioned for executing The charge control method that embodiment provides, has the corresponding function module of execution method and advantageous effect.As shown in fig. 6, the dress It sets and specifically includes:Monitor module 101, data processing module 102 and current control module 103, wherein
Module 101 is monitored, it is described default for when terminal device is in charged state, monitoring predeterminable event The application program installed in event and the terminal device is associated with.
Terminal device is performed battery charging by the power cord of connection, the charged state refer to power cord connection, battery into The state of row charging.In one embodiment, the charged state of terminal device can be judged, when determining that terminal device is in Under charged state, then the predeterminable event in terminal device is monitored.Illustratively, by taking android system as an example, can pass through The battery charging situation for obtaining BatteryManager broadcast determines whether terminal device is in charged state.
In another embodiment, it can judge whether terminal device is in by monitoring the plugged/unplugged status of charger Charged state illustratively by registering radio receiver in Androidmanifest.xml, and carries out corresponding filtering rod The setting of part.
Wherein, the application program installed in the predeterminable event and the terminal device is associated with, as the correlation of application program Predeterminable event.In one embodiment, which can be the click event of the icon of application program, in another implementation In example, which can be the operating status of application program.Correspondingly, to predeterminable event carry out monitor include:To default The click event of the icon of application program is monitored, or is monitored the operating status for presetting application program.
Data processing module 102 obtains pre-set current value if be triggered for the predeterminable event, wherein described Pre-set current value is less than present charging current value.
Wherein, which can be the current value for pre-setting and storing, which is less than current Charging current value, when terminal device passes through power source charges, current value is usually the fixed current value given tacit consent to, different terminals Equipment and power supply adaptor default setting have different current values, usually 1.5A to 2A, and the range of the pre-set current value can be with It is 0.9A to 1.5A.
In one embodiment, which is the click event of the icon of default application program, wherein this is preset and answers It can be set by system default with program, can be take pictures application program, video application and game application, when detecting It is corresponding to obtain pre-set current value corresponding with the application icon after the icon of the application program is clicked, it can also be Obtain preset fixed current value.
In another embodiment, which is the different operation/use state of default application program.It is exemplary , when detecting that the camera function of camera application program is currently running, pre-set current value is obtained.
Current control module 103, the charging current for controlling the terminal device are less than or equal to described default Current value.
When terminal device is under charged state, after predeterminable event is triggered and gets pre-set current value, described in control The charging current of terminal device is less than or equal to the pre-set current value.It in one embodiment, can be by current charging Size of current is set as the size of the pre-set current value obtained, further by being filled with end to the control of charging circuit to realize The electric current of end equipment is pre-set current value.Illustratively, it is assumed that pre-set current value size is 1.2A, and the charging current of acquiescence is 1.8A, when aforementioned condition meets, it is 1.2A that current charging current value, which is arranged,.
In another embodiment, if the predeterminable event is triggered, obtaining pre-set current value includes:If described pre- If event is triggered, the current remaining capacity of terminal device is determined, determined according to the size of the remaining capacity corresponding default Current value.Wherein, it can be illustratively 1.0,1.1,1.2,1.3,1.4 and that pre-set current value, which includes multiple specific numerical value, 1.5, the smaller corresponding pre-set current value of the current remaining capacity of terminal device is bigger, avoids remaining capacity too low and what is be arranged fills Electric current too small the problem of causing terminal device that can not be used due to not enough power supply.
As shown in the above, terminal device is in charging process, if detecting being closed with application program for the condition of satisfaction The predeterminable event of connection is triggered, then reduces charging current accordingly, and thus avoiding operation application program in charging process causes Terminal device overheat the problem of, improve terminal device operational efficiency (terminal device temperature raising can lead to CPU frequency reducings, Thermal energy, which improves, simultaneously reduces resource utilization).
In a possible embodiment, the monitoring module 101 is specifically used for:
The click event of icon to presetting application program is monitored;
The data processing module 102 is specifically used for:
If detecting that the click event of the icon of the default application program is triggered, pre-set current value is obtained.
In a possible embodiment, the monitoring module 101 is specifically used for:
Operating status to presetting application program is monitored;
The data processing module 102 is specifically used for:
If detecting that the default application program is in front stage operation state, pre-set current value is obtained.
In a possible embodiment, the default application program include take pictures application program, video application and At least one of game application.
In a possible embodiment, the current control module 103 is additionally operable to:
After the charging current of the control terminal device is less than or equal to the pre-set current value, if Detect that the default application program is in non-operating state, then the charging current for controlling the terminal device is acquiescence electricity Flow valuve.
In a possible embodiment, further include configuration module 104, be used for:
It is described predeterminable event is monitored before, create and preset the mapping of different application and predetermined current and close System;
The data processing module 102 is specifically used for:
If the predeterminable event is triggered, predetermined current corresponding with the predeterminable event is obtained according to mapping relations Value.
In a possible embodiment, the configuration module 104 is additionally operable to:
It is described predeterminable event is monitored before, corresponded in the process of running according to terminal device different application Equipment operating parameter determine the corresponding predeterminable event of different application, the equipment operating parameter includes CPU usage, interior Deposit at least one of occupancy and power consumption.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 7 is that the embodiment of the present application carries The structural schematic diagram of a kind of terminal device supplied, as shown in fig. 7, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loud speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, other Input/control devices 210 and outside port 204, these components are led to by one or more communication bus or signal wire 207 Letter.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device of the rights management provided in this embodiment for more opening application is described in detail below, should Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be by access such as CPU202, Peripheral Interfaces 203, and the memory 201 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch screen 212 With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystems 209 may include 2091 He of display controller One or more input controllers 2092 for controlling other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 2092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 2091 in I/O subsystems 209 receives electric signal from touch screen 212 or is sent out to touch screen 212 Electric signals.Touch screen 212 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 2091 The interaction of user interface object on touch screen 212, that is, realize human-computer interaction, the user interface being shown on touch screen 212 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 205 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 205 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 205 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 211.
Loud speaker 211, the voice signal for receiving mobile phone from wireless network by RF circuits 205, is reduced to sound And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of the battery charge controller and terminal device of the terminal device provided in above-described embodiment is arbitrary real The charge control method for applying the terminal device that example is provided has and executes the corresponding function module of this method and advantageous effect.Not The technical detail of detailed description in the above-described embodiments, reference can be made to the charging for the terminal device that any embodiment of the present invention is provided Control method.
The embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of charge control method, this method includes:
When terminal device is in charged state, predeterminable event is monitored, the predeterminable event and the terminal are set The application program of standby middle installation is associated with;
If the predeterminable event is triggered, pre-set current value is obtained, wherein the pre-set current value, which is less than, currently to be filled Electric current value;
The charging current for controlling the terminal device is less than or equal to the pre-set current value.
In a possible embodiment, it is described to predeterminable event carry out monitor include:
The click event of icon to presetting application program is monitored;
If correspondingly, the predeterminable event is triggered, obtaining pre-set current value includes:
If detecting that the click event of the icon of the default application program is triggered, pre-set current value is obtained.
In a possible embodiment, it is described to predeterminable event carry out monitor include:
Operating status to presetting application program is monitored;
If correspondingly, the predeterminable event is triggered, obtaining pre-set current value includes:
If detecting that the default application program is in front stage operation state, pre-set current value is obtained.
In a possible embodiment, the default application program include take pictures application program, video application and At least one of game application.
In a possible embodiment, it is less than or equal to institute in the charging current of the control terminal device After stating pre-set current value, further include:
If detecting that the default application program is in non-operating state, the charging current of the terminal device is controlled Size is acquiescence current value.
In a possible embodiment, it is described predeterminable event is monitored before, further include:
Create the mapping relations for presetting different application and predetermined current;
If correspondingly, the predeterminable event is triggered, obtaining pre-set current value includes:
If the predeterminable event is triggered, predetermined current corresponding with the predeterminable event is obtained according to mapping relations Value.
In a possible embodiment, it is described predeterminable event is monitored before, further include:
According to terminal device different application, corresponding equipment operating parameter determines different application journey in the process of running The corresponding predeterminable event of sequence, the equipment operating parameter include at least one in CPU usage, memory usage and power consumption Kind.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the program instruction that can be executed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The charge control method operation that executable instruction is not limited to the described above, can also be performed what any embodiment of the present invention was provided Relevant operation in charge control method.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. charge control method, which is characterized in that including:
When terminal device is in charged state, predeterminable event is monitored, in the predeterminable event and the terminal device The application program of installation is associated with;
If the predeterminable event is triggered, pre-set current value is obtained, wherein the pre-set current value is less than current charging electricity Flow valuve;
The charging current for controlling the terminal device is less than or equal to the pre-set current value.
2. according to the method described in claim 1, it is characterized in that, it is described to predeterminable event carry out monitor include:
The click event of icon to presetting application program is monitored;
If correspondingly, the predeterminable event is triggered, obtaining pre-set current value includes:
If detecting that the click event of the icon of the default application program is triggered, pre-set current value is obtained.
3. according to the method described in claim 1, it is characterized in that, it is described to predeterminable event carry out monitor include:
Operating status to presetting application program is monitored;
If correspondingly, the predeterminable event is triggered, obtaining pre-set current value includes:
If detecting that the default application program is in front stage operation state, pre-set current value is obtained.
4. according to the method in claim 2 or 3, which is characterized in that the default application program include take pictures application program, At least one of video application and game application.
5. according to the method described in claim 3, it is characterized in that, in the charging current for controlling the terminal device After the pre-set current value, further include:
If detecting that the default application program is in non-operating state, the charging current of the terminal device is controlled To give tacit consent to current value.
6. method according to any one of claim 1-3, which is characterized in that carry out monitoring it to predeterminable event described Before, further include:
Create the mapping relations for presetting different application and predetermined current;
If correspondingly, the predeterminable event is triggered, obtaining pre-set current value includes:
If the predeterminable event is triggered, pre-set current value corresponding with the predeterminable event is obtained according to mapping relations.
7. method according to any one of claim 1-3, which is characterized in that carry out monitoring it to predeterminable event described Before, further include:
According to terminal device different application, corresponding equipment operating parameter determines different application pair in the process of running The predeterminable event answered, the equipment operating parameter include at least one of CPU usage, memory usage and power consumption.
8. battery charge controller, which is characterized in that including:
Module is monitored, for when terminal device is in charged state, monitoring predeterminable event, the predeterminable event and institute State the application program association installed in terminal device;
Data processing module obtains pre-set current value if be triggered for the predeterminable event, wherein the default electricity Flow valuve is less than present charging current value;
Current control module, the charging current for controlling the terminal device are less than or equal to the pre-set current value.
9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7 institutes The charge control method stated.
10. a kind of storage medium including terminal device executable instruction, which is characterized in that the terminal device executable instruction When being executed by terminal device processor for executing the charge control method as described in any one of claim 1-7.
CN201810015934.0A 2018-01-08 2018-01-08 charge control method, device, terminal device and storage medium Pending CN108287605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810015934.0A CN108287605A (en) 2018-01-08 2018-01-08 charge control method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810015934.0A CN108287605A (en) 2018-01-08 2018-01-08 charge control method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN108287605A true CN108287605A (en) 2018-07-17

Family

ID=62835092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810015934.0A Pending CN108287605A (en) 2018-01-08 2018-01-08 charge control method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN108287605A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120040A (en) * 2018-10-15 2019-01-01 珠海格力电器股份有限公司 Charging method of terminal equipment, terminal equipment and computer storage medium
CN110797986A (en) * 2018-08-02 2020-02-14 西安中兴新软件有限责任公司 Charging control method and device
CN112701759A (en) * 2021-01-13 2021-04-23 惠州Tcl移动通信有限公司 Terminal device control method, storage medium and terminal device
CN112737061A (en) * 2021-01-22 2021-04-30 惠州Tcl移动通信有限公司 Charger charging processing method and device, charging terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516004A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 Information processing method and device
CN104022544A (en) * 2014-04-30 2014-09-03 深圳市中兴移动通信有限公司 Charging management method and device of mobile terminal
US20150227387A1 (en) * 2014-02-07 2015-08-13 Advanced Micro Devices, Inc. Method and apparatus of adaptive application performance
CN104917241A (en) * 2015-06-15 2015-09-16 陆俊 Control method for charging current of mobile terminal and mobile terminal
CN106712161A (en) * 2016-11-28 2017-05-24 上海青橙实业有限公司 Mobile terminal and charging current regulation method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516004A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 Information processing method and device
US20150227387A1 (en) * 2014-02-07 2015-08-13 Advanced Micro Devices, Inc. Method and apparatus of adaptive application performance
CN104022544A (en) * 2014-04-30 2014-09-03 深圳市中兴移动通信有限公司 Charging management method and device of mobile terminal
CN104917241A (en) * 2015-06-15 2015-09-16 陆俊 Control method for charging current of mobile terminal and mobile terminal
CN106712161A (en) * 2016-11-28 2017-05-24 上海青橙实业有限公司 Mobile terminal and charging current regulation method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110797986A (en) * 2018-08-02 2020-02-14 西安中兴新软件有限责任公司 Charging control method and device
CN110797986B (en) * 2018-08-02 2023-10-27 西安中兴新软件有限责任公司 Charging control method and device
CN109120040A (en) * 2018-10-15 2019-01-01 珠海格力电器股份有限公司 Charging method of terminal equipment, terminal equipment and computer storage medium
CN112701759A (en) * 2021-01-13 2021-04-23 惠州Tcl移动通信有限公司 Terminal device control method, storage medium and terminal device
CN112701759B (en) * 2021-01-13 2023-06-20 惠州Tcl移动通信有限公司 Control method of terminal equipment, storage medium and terminal equipment
CN112737061A (en) * 2021-01-22 2021-04-30 惠州Tcl移动通信有限公司 Charger charging processing method and device, charging terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3502880B1 (en) Method for preloading application, storage medium, and terminal device
CN107483751B (en) Terminal device, electric quantity distribution method thereof and computer-readable storage medium
CN108287605A (en) charge control method, device, terminal device and storage medium
US20190188595A1 (en) Method for Preloading Application, Storage Medium, and Terminal Device
CN108509176A (en) A kind of method, apparatus of playing audio-fequency data, storage medium and intelligent terminal
CN101984404B (en) Method and device for controlling parallel running of application programs and terminal having device
CN105049423A (en) Authority management system, device and method
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN107943269A (en) Schedule job control method, device, terminal device and storage medium
CN108810749A (en) player control method, device, terminal device and storage medium
KR20130083116A (en) Recharging control system and method for battery of electronic device
CN106937258B (en) A kind of control method of broadcast, device and mobile terminal
CN107423064A (en) Message treatment method, device, terminal device and storage medium
CN107070670A (en) Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message
CN108519808A (en) Frame per second method of adjustment, device, terminal device and storage medium
CN102752445B (en) Mobile terminal and communication log analysis method thereof
CN108170585A (en) log processing method, device, terminal device and storage medium
KR102566099B1 (en) Power supply control method of power strip, device and power strip
CN108693948A (en) Frame per second method of adjustment, device, terminal device and storage medium
CN107908953A (en) Notifications service control method, device, terminal device and storage medium
CN108155693B (en) Charging control method and device of mobile terminal, storage medium and mobile terminal
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN104427118A (en) Method for recommending contents and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180717

RJ01 Rejection of invention patent application after publication