CN107508350B - Electronic device, charging method thereof, and storage medium - Google Patents

Electronic device, charging method thereof, and storage medium Download PDF

Info

Publication number
CN107508350B
CN107508350B CN201710776724.9A CN201710776724A CN107508350B CN 107508350 B CN107508350 B CN 107508350B CN 201710776724 A CN201710776724 A CN 201710776724A CN 107508350 B CN107508350 B CN 107508350B
Authority
CN
China
Prior art keywords
electronic device
application
preset
electronic equipment
ratio
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
CN201710776724.9A
Other languages
Chinese (zh)
Other versions
CN107508350A (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.)
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 CN201710776724.9A priority Critical patent/CN107508350B/en
Publication of CN107508350A publication Critical patent/CN107508350A/en
Application granted granted Critical
Publication of CN107508350B publication Critical patent/CN107508350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/0077
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides an electronic device, a charging method thereof and a storage medium, wherein the charging method comprises the following steps: monitoring whether the electronic equipment starts application or not when the electronic equipment is charged with a first charging current; if it is monitored that the electronic equipment starts the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time; acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio; and if the ratio is greater than the preset ratio, controlling the electronic equipment to switch to a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is less than the first charging current. According to the method, when the electronic equipment is charged, the electronic equipment is monitored to start the application, the electronic equipment can be controlled to be charged at a low current, the temperature of the electronic equipment is further reduced, and the experience effect of a user is improved.

Description

Electronic device, charging method thereof, and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an electronic device, a charging method thereof, and a storage medium.
Background
With the rapid development of electronic devices, users use the electronic devices more and more frequently, wherein the electronic devices need to be charged after being used for a period of time. When the electronic equipment is charged, the electronic equipment is used for making a call or dialing a call, and the temperature of the electronic equipment is increased due to the fact that the charging current and the call current of the electronic equipment are large, and the experience effect of a user is seriously influenced.
Disclosure of Invention
An aspect of an embodiment of the present application provides a charging method for an electronic device, where the charging method includes:
monitoring whether the electronic equipment starts an application or not when the electronic equipment is charged with a first charging current;
if the electronic equipment is monitored to start the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time;
acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio;
and if the ratio is greater than the preset ratio, controlling the electronic equipment to switch to a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is less than the first charging current.
Another aspect of the embodiments of the present application further provides an electronic device, where the electronic device includes:
the monitoring module is used for monitoring whether the electronic equipment starts an application or not when the electronic equipment is charged with a first charging current;
the electric quantity detection module is used for acquiring a first electric quantity value of the electronic equipment when the application is started and monitoring a second electric quantity value of the electronic equipment in real time if the monitoring module monitors that the electronic equipment starts the application; (ii) a
The comparison module is used for acquiring the ratio between the second electric quantity value and the first electric quantity value and comparing the ratio with a preset ratio;
and the execution module is used for controlling the electronic equipment to be switched into a data transmission mode when the ratio is greater than the preset ratio, and charging according to a preset second charging current, wherein the preset second charging current is smaller than the first charging current.
Further, an embodiment of the present application also provides an electronic device, where the electronic device includes a processor and a memory, where the processor is coupled to the memory, and when the processor is in operation, the processor executes instructions to implement the charging method according to any one of the foregoing embodiments.
In addition, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the charging method as described in any one of the above embodiments.
According to the charging method for the electronic equipment, when the electronic equipment is charged with the first charging current, whether the electronic equipment starts an application or not is monitored; if the electronic equipment is monitored to start the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time; acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio; if the ratio is larger than the preset ratio, controlling the electronic equipment to be switched to a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is smaller than the first charging current; therefore, when the electronic equipment is charged, the electronic equipment is monitored to start application, the electronic equipment can be controlled to be charged at a low current, the temperature of the electronic equipment is further reduced, and the experience effect of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flowchart of an embodiment of a charging method for an electronic device according to the present application;
FIG. 2 is a schematic diagram of an application scenario of the electronic device in FIG. 1;
FIG. 3 is a schematic flow chart diagram illustrating another embodiment of a charging method for an electronic device according to the present application;
FIG. 4 is a schematic flowchart of a charging method for an electronic device according to another embodiment of the present application;
FIG. 5 is a schematic diagram of an application scenario of the electronic device in FIG. 4;
FIG. 6 is a schematic flow chart diagram illustrating a charging method for an electronic device according to another embodiment of the present disclosure;
FIG. 7 is a block diagram of the architecture of an embodiment of the electronic device of the present application;
FIG. 8 is a schematic structural component diagram of an embodiment of an electronic device of the present application;
FIG. 9 is a schematic structural diagram of an embodiment of a storage medium of the present application;
fig. 10 is a schematic structural component diagram of another embodiment of an electronic device according to the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be noted that the following examples are only illustrative of the present application, and do not limit the scope of the present application. Likewise, the following examples are only some examples and not all examples of the present application, and all other examples obtained by a person of ordinary skill in the art without any inventive step are within the scope of the present application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1-2, fig. 1 is a schematic flowchart illustrating a charging method for an electronic device according to an embodiment of the present disclosure; fig. 2 is a schematic view of an application scenario of the electronic device in fig. 1. It should be noted that the electronic device 20 referred to in this application includes a mobile phone, a tablet computer, a notebook computer, a wearable device, and the like. The charging method is applied to the electronic device 20 to start the application during charging, and the electronic device 20 can run the application while charging. The electronic device 20 of the present embodiment is charged by the charger 21, and in other embodiments, the electronic device 20 may be charged by a wireless charger. The charging method includes, but is not limited to, the following steps:
step 110: monitoring whether the electronic equipment starts application or not when the electronic equipment is charged with a first charging current;
when the electronic device 20 is charged, the charging current of the electronic device 20 is the first charging current. When the electronic device 20 is rapidly charged, the first charging current is large; when the electronic device 20 is normally charged, the first charging current is small; and the charging method is suitable for fast charging or ordinary charging of the electronic device 20.
The electronic device 20 further monitors whether the electronic device 20 starts an application, that is, the electronic device 20 monitors whether the user starts an application of the electronic device 20, and the application of the electronic device 20 may include, but is not limited to, a call application, a WeChat application, a QQ application, or a photo application.
Step 120: if it is monitored that the electronic equipment starts the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time;
when the electronic device 20 monitors that the electronic device 20 starts the application, the electronic device 20 obtains a first electric quantity value of the electronic device 20 when the application starts, and monitors a second electric quantity value of the electronic device 20 in real time. That is, when the electronic device 20 monitors that the user starts the application, the electric quantity acquired by the electronic device 20 is used as a current first electric quantity value; the amount of power detected by the electronic device 20 in real time is used as the second power value before the electronic device 20 monitors that the user closes the application. It is understood that the first electrical quantity value is equal to the second electrical quantity value when the electronic device 20 detects that the application is started.
Step 130: acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio;
the preset ratio is preset by the electronic device 20, for example, the preset ratio may be set by the electronic device 20 when the electronic device 20 is shipped from a factory or when the electronic device 20 is initially used by a user. The electronic device 20 further obtains a ratio between the second electric quantity value and the first electric quantity value and compares the ratio with a preset ratio.
The predetermined ratio may range from 0.2 to 0.7. Specifically, the preset ratio may be set to 0.5; in other embodiments, the preset ratio may be set to 0.2, or the preset ratio may be set to 0.7.
It is understood that in other embodiments, the electronic device 20 may obtain a ratio of the first electric quantity value and the second electric quantity value, and accordingly the preset ratio may range from 1 to 5.
Step 140: and if the ratio is greater than the preset ratio, controlling the electronic equipment to switch to a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is less than the first charging current.
If the electronic device 20 determines that the ratio is greater than the preset ratio, the electronic device 20 controls the electronic device 20 to switch to the data transmission mode, and the electronic device 20 charges according to a preset second charging current in the data transmission mode, where the preset second charging current is smaller than the first charging current, that is, the electronic device 20 charges with a small-current preset second charging current.
In this embodiment, when the electronic device 20 is charged with the first charging current, whether the electronic device 20 starts an application is monitored; if it is monitored that the electronic device 20 starts the application, acquiring a first electric quantity value of the electronic device 20 when the application is started, and monitoring a second electric quantity value of the electronic device 20 in real time; acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio; if the ratio is greater than the preset ratio, controlling the electronic device 20 to switch to the data transmission mode, and charging according to a preset second charging current, where the preset second charging current is smaller than the first charging current; therefore, when the electronic device 20 is charged, it is monitored that the electronic device 20 starts the application, and the electronic device 20 can be controlled to be charged with a small current, so that the temperature of the electronic device 20 is reduced, and the experience effect of a user is improved.
Further, please refer to fig. 3, wherein fig. 3 is a schematic flowchart illustrating a charging method for an electronic device according to another embodiment of the present application. The charging method of this embodiment includes the steps of:
step 310: monitoring whether the electronic equipment starts application or not when the electronic equipment is charged with a first charging current;
when the electronic device 20 is charged, the charging current of the electronic device 20 is the first charging current. Please refer to the related description of the above embodiments.
Step 320: if it is monitored that the electronic equipment starts the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time;
when the electronic device 20 monitors that the electronic device 20 starts the application, the electronic device 20 obtains a first electric quantity value of the electronic device 20 when the application starts, and monitors a second electric quantity value of the electronic device 20 in real time. Please refer to the related description of the above embodiments.
Step 330: acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio;
please refer to the related description of the above embodiment, wherein the electronic device 20 presets the preset ratio.
If the ratio is greater than the preset ratio, go to step 340; if the ratio is less than or equal to the predetermined ratio, go to step 350.
Step 340: controlling the electronic equipment to switch into a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is smaller than the first charging current;
in the data transmission mode, the electronic device 20 is charged according to a preset second charging current, where the preset second charging current is smaller than the first charging current, that is, the electronic device 20 is charged with a small current of the preset second charging current.
Step 350: charging according to the first charging current;
when the ratio of the electronic device 20 is smaller than or equal to the preset ratio, for example, the ratio between the second electric quantity value and the first electric quantity value is smaller than 0.5, the electronic device 20 is kept in the charging mode, and at this time, the electronic device 20 is charged according to the first charging current. That is, when the power of the electronic device 20 is too low, the electronic device 20 is charged according to the first charging current, so that the power of the electronic device 20 is prevented from being exhausted, and the power of the electronic device 20 can be ensured.
Step 360: and if the electronic equipment is monitored to close the application, controlling the electronic equipment to be switched into a charging mode.
When the electronic device 20 monitors that the user closes the application of the electronic device 20, the electronic device 20 controls the electronic device 20 to switch to the charging mode, for example, when the electronic device 20 is in the data transmission mode, the electronic device 20 switches the data transmission mode to the charging mode; if the electronic device 20 is in the charging mode, the electronic device 20 determines that the electronic device 20 is in the charging mode, and the electronic device 20 is charged according to the first charging current.
In the embodiment, when the ratio is smaller than or equal to the preset ratio, the electronic equipment is controlled to be switched to the charging mode, and the charging is carried out according to the first charging current, so that the electric quantity of the electronic equipment can be ensured; when the electronic equipment is closed to use, the electronic equipment is controlled to be switched to a charging mode in time, and the experience effect of a user is further improved.
Further, please refer to fig. 4, wherein fig. 4 is a schematic flowchart illustrating a charging method for an electronic device according to another embodiment of the present application. The application started by the electronic device 20 is a call application, and as shown in fig. 5, the electronic device 20 performs a call application with another electronic device 50. The charging method of the embodiment is applied to the electronic device 20 and the other electronic device 50 for communication, and includes the following steps:
step 410: monitoring whether the electronic equipment starts application or not when the electronic equipment is charged with a first charging current;
please refer to the above description for step 410.
Step 420: if the situation that the electronic equipment starting application is a call application is monitored, acquiring a first electric quantity value of the electronic equipment when the call application is started, and monitoring a second electric quantity value of the electronic equipment in real time;
when the electronic device 20 monitors that the application started by the electronic device 20 is a call application, that is, the user performs a call application with the electronic device 50 of another user through the electronic device 20, the electronic device 20 obtains a first electric quantity value of the electronic device 20 when the call application is started, and monitors a second electric quantity value of the electronic device 20 in real time. Please refer to the related description of the above embodiments.
Step 430: acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio;
please refer to the related description of the above embodiment for step 430.
If the ratio is greater than the preset ratio, go to step 440; if the ratio is less than or equal to the predetermined ratio, go to step 460.
Step 440: acquiring the call duration of the call application, and comparing the call duration with preset time;
the electronic device 20 further obtains the call duration of the call application, for example, when the electronic device 20 starts the call application, the electronic device 20 starts counting the call duration. The electronic device 20 compares the call duration with a preset time; if the call duration exceeds the preset time, go to step 450; if the call duration does not exceed the preset time, step 460 is entered. Therefore, the electronic device 20 can avoid frequent switching of the electronic device 20 to the data transmission mode due to too short call duration, and improve the experience effect of the user.
Step 450: controlling the electronic equipment to switch into a data transmission mode;
wherein, the electronic device 20 switches to the data transmission mode, and sets the preset second charging current to zero to control the electronic device 20 to stop charging.
Specifically, since the electronic device 20 has a large current when running the call application, which results in a high temperature generated by the electronic device 20 when running the call application, the electronic device 20 sets the preset second charging current to zero when the ratio is greater than the preset ratio, that is, the electronic device 20 is disconnected from the charger 21, and the electronic device 20 stops charging.
Since the ratio is greater than the preset ratio, that is, when the power of the electronic device 20 is sufficient, the electronic device 20 may be controlled to stop charging. In other embodiments, the electronic device 20 may also set the second charging current to be greater than zero and less than the first charging current when the ratio is greater than a preset ratio.
Step 460: and charging according to the first charging current.
When the ratio of the electronic device 20 is smaller than or equal to the preset ratio, that is, when the electric quantity of the electronic device 20 is too low, the electronic device 20 is charged according to the first charging current, so that the electric quantity of the electronic device 20 is prevented from being exhausted, and the electric quantity of the electronic device 20 can be ensured.
The application that electronic device 20 of this embodiment starts is conversation application, if the ratio is greater than preset ratio, then control electronic device switches into data transmission mode to preset second charging current is zero, stops to charge with control electronic device, avoids electronic device 20's high temperature, improves user's experience effect.
Further, please refer to fig. 6, wherein fig. 6 is a schematic flowchart illustrating a charging method for an electronic device according to another embodiment of the present application. The charging method of this embodiment includes the steps of:
step 610: monitoring whether the electronic equipment starts application or not when the electronic equipment is charged with a first charging current;
if the electronic device 20 does not monitor that the electronic device starts the application, the electronic device keeps being charged with the first charging current.
Step 620: if the electronic equipment starts the application, acquiring the priority of the application, and comparing the priority of the application with the preset priority;
the electronic device 20 is preset with priorities of all applications, for example, the electronic device 20 is provided with a relationship table of the applications corresponding to the priorities, as shown in table 1 below. The call application is a first priority, the WeChat, the QQ and the photographing are a second priority, and the schedule management is a third priority. Wherein the first priority is higher than the second priority, which is higher than the third priority.
Specifically, the preset priority may be set as the second priority, and if the priority is higher than or equal to the preset priority, for example, the application is a call application, WeChat, QQ, or photo, step 630 is entered; if the priority is lower than the predetermined priority, for example, the application is schedule management, step 660 is entered.
Table 1 application and priority correspondence table
Priority level Applications of
First priority Call application
Second priority Wechat, QQ and take a picture
Third priority Schedule management
Besides, the electronic device 20 may also update the priority of the application according to the setting of the user, for example, if the user modifies the priority of the WeChat and the QQ to the first priority, the electronic device 20 updates the relationship table of the application corresponding to the priority.
Step 630: acquiring a first electric quantity value of the electronic equipment when an application is started, and monitoring a second electric quantity value of the electronic equipment in real time;
step 640: acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio;
if the ratio is greater than the preset ratio, go to step 650; if the ratio is less than or equal to the predetermined ratio, go to step 670.
Step 650: controlling the electronic equipment to switch into a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is smaller than the first charging current;
in the data transmission mode, the electronic device 20 is charged according to a preset second charging current, where the preset second charging current is smaller than the first charging current, that is, the electronic device 20 is charged with a low-current second charging current.
Step 660: acquiring the number of started applications, and comparing the number with a preset number;
wherein the electronic device 20 further obtains the number of applications that have been started, for example, if the electronic device 20 is running a plurality of applications of the third priority at the same time, the electronic device 20 obtains the number of applications that have been started. The electronic device 20 compares the number of applications that have been started with a preset number; if the number of the started applications is greater than or equal to the preset number, returning to step 630; if the number of applications that have already been started is less than the predetermined number, step 670 is entered.
Step 670: and charging according to the first charging current.
According to the embodiment, the electronic equipment is controlled to be switched to the data transmission mode or the charging mode according to the priority of the application, so that the experience effect of a user is improved.
Further, an electronic device is provided in an embodiment of the present application, please refer to fig. 7, where fig. 7 is a block diagram illustrating a structure of an embodiment of the electronic device, and the electronic device 70 includes, but is not limited to, the following modules: a monitoring module 710, a power detection module 720, a comparison module 730, and an execution module 740.
When the electronic device 70 is charged with the first charging current, the monitoring module 710 is configured to monitor whether the electronic device 70 starts an application; if the monitoring module 710 monitors that the electronic device 70 starts an application, the power detection module 720 is configured to obtain a first power value of the electronic device 70 when the application starts, and monitor a second power value of the electronic device 70 in real time; the comparison module 730 is configured to obtain a ratio between the second electric quantity value and the first electric quantity value, and compare the ratio with a preset ratio; when the ratio is greater than the preset ratio, the executing module 740 is configured to control the electronic device 70 to switch to the data transmission mode, and perform charging according to a preset second charging current, where the preset second charging current is smaller than the first charging current.
For a specific coordination work flow among the monitoring module 710, the electric quantity detecting module 720, the comparing module 730 and the executing module 740, please refer to the related description in the above method embodiments, which is not described herein again.
In addition, referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of the electronic device of the present application, and the electronic device 80 may include an RF circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wifi module 870, a processor 880, a power supply 890, and the like. Wherein, the RF circuit 810, the memory 820, the input unit 830, the display unit 840, the sensor 850, the audio circuit 860 and the wifi module 870 are respectively connected with the processor 880; power supply 890 is used to provide power to the entire electronic device 80.
Specifically, the RF circuit 810 is used for transmitting and receiving signals; the memory 820 is used for storing data instruction information; the input unit 830 is used for inputting information, and may specifically include a touch panel 831 and other input devices 832 such as operation keys; the display unit 840 may include a display panel 841 and the like; the sensor 850 includes an infrared sensor, a laser sensor, etc. for detecting a user approach signal, a distance signal, etc.; a speaker 861 and a microphone (or microphone) 862 are coupled to the processor 880 via the audio circuit 860 for emitting and receiving audio signals; wifi module 870 is configured to receive and transmit wifi signals.
The processor 880 is further configured to monitor whether the electronic device 80 starts an application while the electronic device 80 is charged at the first charging current; if it is monitored that the electronic device 80 starts the application, acquiring a first electric quantity value of the electronic device 80 when the application is started, and monitoring a second electric quantity value of the electronic device 80 in real time; acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio; if the ratio is greater than the preset ratio, the control electronic device 80 switches to the data transmission mode and charges according to a preset second charging current, which is smaller than the first charging current. The memory 820 is used for storing information such as operation instructions of the processor 880. For the specific operation flow of the processor 880, please refer to the detailed description of the above method embodiments.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a storage medium according to an embodiment of the present application.
The storage medium 90 stores program data 910, and the program data 910 can be executed to implement the charging method of the electronic device described in the above embodiments, which is not described herein again.
As will be understood by those skilled in the art, the storage medium 90 may be a physical storage medium such as a usb disk or an optical disk, or may be a virtual storage medium such as a server.
In the several embodiments provided in this application, it should be understood that the disclosed method, apparatus, and device may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to another embodiment of the present application, where the electronic device includes a processor 101 and a memory 102. Wherein the processor 101 is coupled to the memory 102.
Specifically, the processor 101 is configured to monitor whether the electronic device starts an application when the electronic device is charged at a first charging current; if it is monitored that the electronic equipment starts the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time; acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio; and if the ratio is greater than the preset ratio, controlling the electronic equipment to switch to a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is less than the first charging current. The memory 102 is used for storing information such as operation instructions of the processor 101. For a detailed operation flow of the processor 101, please refer to the detailed description of the above method embodiment.
According to the electronic equipment and the storage medium thereof, when the electronic equipment is charged with the first charging current, whether the electronic equipment starts application or not is monitored; if it is monitored that the electronic equipment starts the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time; acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio; if the ratio is greater than the preset ratio, the electronic equipment is controlled to be switched to a data transmission mode, charging is carried out according to the preset second charging current, the preset second charging current is smaller than the first charging current, charging can be carried out with small current when the electronic equipment starts application, the temperature of the electronic equipment is further reduced, and the experience effect of a user is improved.
The above description is only a part of the embodiments of the present application, and not intended to limit the scope of the present application, and all equivalent devices or equivalent processes performed by the content of the present application and the attached drawings, or directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (9)

1. A charging method for an electronic device, the charging method comprising:
monitoring whether the electronic equipment starts an application or not when the electronic equipment is charged with a first charging current;
if the electronic equipment is monitored to start the application, acquiring a first electric quantity value of the electronic equipment when the application is started, and monitoring a second electric quantity value of the electronic equipment in real time;
acquiring a ratio between the second electric quantity value and the first electric quantity value, and comparing the ratio with a preset ratio;
if the ratio is larger than the preset ratio, controlling the electronic equipment to be switched to a data transmission mode, and charging according to a preset second charging current, wherein the preset second charging current is smaller than the first charging current;
if it is monitored that the electronic device starts the application, acquiring a first electric quantity value of the electronic device when the application is started, and monitoring a second electric quantity value of the electronic device in real time includes:
acquiring the priority of the application, and comparing the priority of the application with a preset priority;
and if the priority of the application is higher than or equal to the preset priority, acquiring the first electric quantity value, and monitoring a second electric quantity value of the electronic equipment in real time.
2. The charging method according to claim 1, wherein the application is a call application, the controlling the electronic device to switch to a data transmission mode if the ratio is greater than the preset ratio, and the charging according to a preset second charging current comprises:
and if the ratio is greater than the preset ratio, controlling the electronic equipment to be switched to the data transmission mode, and controlling the electronic equipment to stop charging when the preset second charging current is zero.
3. The charging method according to claim 2, wherein if the ratio is greater than the preset ratio, controlling the electronic device to switch to the data transmission mode comprises:
if the ratio is larger than the preset ratio, acquiring the call duration of the call application, and comparing the call duration with preset time;
and if the call duration exceeds the preset time, controlling the electronic equipment to be switched to the data transmission mode.
4. The charging method according to claim 1, wherein after obtaining a first electric quantity value of the electronic device at the time of application start and monitoring a second electric quantity value of the electronic device in real time, the charging method further comprises:
and if the electronic equipment is monitored to close the application, controlling the electronic equipment to be switched into the charging mode, and charging according to the first charging current.
5. The charging method according to claim 1, wherein after comparing the priority of the application with a preset priority, the charging method further comprises:
if the priority is lower than the preset priority, acquiring the number of started applications, and comparing the number with the preset number;
and if the number is greater than or equal to a preset number, acquiring the first electric quantity value, and monitoring a second electric quantity value of the electronic equipment in real time.
6. An electronic device, characterized in that the electronic device comprises:
a monitoring module in the electronic device
When the electronic equipment is charged by first charging current, the electronic equipment is used for monitoring whether the electronic equipment starts application or not;
the electric quantity detection module is used for acquiring a first electric quantity value of the electronic equipment when the application is started and monitoring a second electric quantity value of the electronic equipment in real time if the monitoring module monitors that the electronic equipment starts the application;
the comparison module is used for acquiring the ratio between the second electric quantity value and the first electric quantity value and comparing the ratio with a preset ratio;
the execution module is used for controlling the electronic equipment to be switched into a data transmission mode when the ratio is larger than the preset ratio, and charging according to a preset second charging current, wherein the preset second charging current is smaller than the first charging current;
the comparison module is used for acquiring the priority of the application and comparing the priority of the application with a preset priority;
and if the priority of the application is higher than or equal to the preset priority, the comparison module is used for acquiring the first electric quantity value and monitoring a second electric quantity value of the electronic equipment in real time.
7. The electronic device of claim 6, wherein the application is a call application, the execution module controls the electronic device to switch to the data transmission mode when the ratio is greater than the preset ratio, and the preset second charging current is zero to control the electronic device to stop charging.
8. An electronic device, comprising a processor and a memory, the processor coupled to the memory, the processor executing instructions to implement the charging method of any of claims 1-5 when in operation.
9. A computer-readable storage medium on which a computer program is stored, the program being executed by a processor to implement the charging method according to any one of claims 1 to 5.
CN201710776724.9A 2017-08-31 2017-08-31 Electronic device, charging method thereof, and storage medium Active CN107508350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710776724.9A CN107508350B (en) 2017-08-31 2017-08-31 Electronic device, charging method thereof, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710776724.9A CN107508350B (en) 2017-08-31 2017-08-31 Electronic device, charging method thereof, and storage medium

Publications (2)

Publication Number Publication Date
CN107508350A CN107508350A (en) 2017-12-22
CN107508350B true CN107508350B (en) 2020-01-24

Family

ID=60694650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710776724.9A Active CN107508350B (en) 2017-08-31 2017-08-31 Electronic device, charging method thereof, and storage medium

Country Status (1)

Country Link
CN (1) CN107508350B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109378870A (en) * 2018-09-25 2019-02-22 广州极飞科技有限公司 Charging method and device
CN110970952B (en) * 2018-09-29 2021-06-15 Oppo广东移动通信有限公司 Charging control method and device, storage medium and split type electronic equipment
CN109120040A (en) * 2018-10-15 2019-01-01 珠海格力电器股份有限公司 A kind of charging method of terminal device, terminal device and computer storage medium
CN110138942A (en) * 2019-01-18 2019-08-16 青岛海信移动通信技术股份有限公司 Terminal and processing method
CN112671080B (en) * 2021-03-16 2021-06-22 荣耀终端有限公司 Charging method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009257775A (en) * 2008-04-11 2009-11-05 Kawasaki Heavy Ind Ltd Charging rate estimation method and device for secondary battery
CN103219769A (en) * 2013-04-17 2013-07-24 广东欧珀移动通信有限公司 Battery charging method, battery charging system and mobile terminal
CN103580249A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method and system for restraining overlarge temperature rising when charging and communicating are carried out
CN104282960A (en) * 2013-07-04 2015-01-14 广达电脑股份有限公司 Battery module
CN106627225A (en) * 2016-12-22 2017-05-10 清华大学 Method for predicting residual discharge energy of series battery pack for electric automobile
CN106786931A (en) * 2016-12-30 2017-05-31 滁州昭阳电信通讯设备科技有限公司 Method and mobile terminal that a kind of mobile terminal charges

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009257775A (en) * 2008-04-11 2009-11-05 Kawasaki Heavy Ind Ltd Charging rate estimation method and device for secondary battery
CN103219769A (en) * 2013-04-17 2013-07-24 广东欧珀移动通信有限公司 Battery charging method, battery charging system and mobile terminal
CN104282960A (en) * 2013-07-04 2015-01-14 广达电脑股份有限公司 Battery module
CN103580249A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method and system for restraining overlarge temperature rising when charging and communicating are carried out
CN106627225A (en) * 2016-12-22 2017-05-10 清华大学 Method for predicting residual discharge energy of series battery pack for electric automobile
CN106786931A (en) * 2016-12-30 2017-05-31 滁州昭阳电信通讯设备科技有限公司 Method and mobile terminal that a kind of mobile terminal charges

Also Published As

Publication number Publication date
CN107508350A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107508350B (en) Electronic device, charging method thereof, and storage medium
EP3121926B1 (en) Charging method and apparatus
WO2018164533A1 (en) Control method and electronic device based on battery leakage state
EP3349325B1 (en) Charging method, charging device and terminal
CN108110854B (en) Charging method, charging device and computer-readable storage medium
CN108764056B (en) Brightness adjusting method and related product
EP3945680A1 (en) Method and apparatus for detecting state of proximity sensor, terminal and non-transitory computer-readable storage medium
EP3553663A1 (en) Message reminding method for terminal, and terminal
CN108091808B (en) Battery, equipment, charging control method and device
CN111211595B (en) Charging method and device, electronic equipment and storage medium
US10852798B2 (en) Power supply control method and apparatus for power strip, and storage medium
EP3813223A1 (en) Charging control method, device and storage medium
CN112909364B (en) Charging method and device, terminal equipment and storage medium
CN113725954B (en) Charging method, device, equipment and storage medium
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN108539823B (en) Charging method and device
CN111898542A (en) Display screen control method and device and terminal
CN110308779B (en) Intelligent terminal, intelligent terminal control device and method
EP4037127A1 (en) Charging method and device, terminal, and storage medium
EP3893320B1 (en) Shutdown method, shutdown apparatus, terminal and storage medium
CN116545081B (en) Charging control method, device, equipment and storage medium
CN113138036B (en) Temperature detection method and device and electronic equipment
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium
US20220302770A1 (en) Wireless charging transmitter, wireless charging control method, apparatus and system
CN117955186A (en) Charging control method, device, electronic equipment and readable 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant