CN110350626B - Charging control method and device, electronic equipment and computer readable storage medium - Google Patents

Charging control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110350626B
CN110350626B CN201910688958.7A CN201910688958A CN110350626B CN 110350626 B CN110350626 B CN 110350626B CN 201910688958 A CN201910688958 A CN 201910688958A CN 110350626 B CN110350626 B CN 110350626B
Authority
CN
China
Prior art keywords
battery
wireless charging
electronic equipment
electric quantity
charging module
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
CN201910688958.7A
Other languages
Chinese (zh)
Other versions
CN110350626A (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 CN201910688958.7A priority Critical patent/CN110350626B/en
Publication of CN110350626A publication Critical patent/CN110350626A/en
Application granted granted Critical
Publication of CN110350626B publication Critical patent/CN110350626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • 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/36Arrangements using end-cell switching
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to a charging control method, a charging control device, an electronic device and a computer-readable storage medium, wherein the charging control method comprises the following steps: to avoid the problem that the electronic equipment cannot be normally used due to sudden power failure. Firstly, detecting the residual electric quantity of a first battery and a second battery; and finally, automatically controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery. Therefore, wireless charging is automatically controlled according to the detected residual capacity, a user does not need to connect a power adapter to charge, normal use of the electronic equipment is guaranteed without sudden power failure, and charging convenience and charging efficiency of the electronic equipment are improved.

Description

Charging control method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a charging control method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the popularization and wide application of electronic devices, the power consumption of the electronic devices is also getting larger and larger, and the battery life of the electronic devices is limited. The cruising ability of the battery affects the normal use of the electronic device to some extent, and therefore, the electronic device is generally equipped with a charging adapter, and the charging adapter is connected with an external power supply to charge the electronic device. However, due to the limited cruising ability of the battery, too fast power consumption of the electronic device, and the like, the charging convenience and charging efficiency of the electronic device are low.
Disclosure of Invention
The embodiment of the application provides a charging control method and device, electronic equipment and a computer readable storage medium, which can improve the charging convenience and charging efficiency of the electronic equipment.
A charging control method is applied to electronic equipment, the electronic equipment comprises a wireless charging module, a first battery and a second battery, and the charging control method comprises the following steps:
detecting the residual electric quantity of the first battery and the second battery in the process of running a target application on the electronic equipment;
and controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery.
A charge control device comprising:
the residual electric quantity detection module is used for detecting the residual electric quantity of the first battery and the second battery in the process of running a target application on the electronic equipment;
and the charging module is used for controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the above method.
A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program realizes the steps of the above method when executed by a processor.
According to the charging control method, the charging control device, the electronic equipment and the computer readable storage medium, in the process of running the target application on the electronic equipment, the residual electric quantity of the first battery and the residual electric quantity of the second battery are detected, and the wireless charging module is controlled to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the residual electric quantity of the second battery. The charging control method avoids the problem that the electronic equipment cannot be normally used due to sudden power failure in the process of running the target application on the electronic equipment. And detecting the residual electric quantity of the first battery and the second battery, acquiring the residual electric quantity of the first battery and the second battery, and automatically controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery. Therefore, wireless charging is automatically controlled according to the detected residual capacity, a user does not need to connect a power adapter to charge, normal use of the electronic equipment is guaranteed without sudden power failure, and charging convenience and charging efficiency of the electronic equipment are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary charging control method;
FIG. 2 is a flow diagram of a charge control method in one embodiment;
fig. 3 is a flowchart illustrating a method for controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the remaining power of the first battery and the second battery in fig. 2;
fig. 4 is a flowchart illustrating a method for controlling the wireless charging module to wirelessly charge the first battery or the second battery in fig. 3;
FIG. 5 is a flow chart of a charge control method in another embodiment;
FIG. 6 is a flow chart of a charge control method in an exemplary embodiment;
fig. 7 is a block diagram showing the structure of a charge control device according to an embodiment;
fig. 8 is a block diagram showing the structure of a charging control apparatus according to another embodiment;
fig. 9 is a block diagram showing the structure of a charge control device in still another embodiment;
fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first camera may be referred to as a second camera, and similarly, a second camera may be referred to as a first camera, without departing from the scope of the present application. The first camera and the second camera are both cameras, but they are not the same camera.
Fig. 1 is a schematic diagram of an application environment of a charging control method in an embodiment. As shown in fig. 1, the application environment includes an electronic device 100 and a wireless charger 200, and the electronic device 100 can be wirelessly charged by the wireless charger 200. The electronic device 100 includes at least one first battery 110, at least one second battery 120, and a wireless charging module 130. The electronic device 100 may detect the remaining power of the first battery and the second battery during the process of running the target application on the electronic device; and controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery. It is understood that the electronic device 100 may not be limited to various mobile phones, computers, portable devices, and the like.
Fig. 2 is a flowchart of a charging control method according to an embodiment, and as shown in fig. 2, the charging control method includes steps 220 to 240, which are applied to an electronic device including a wireless charging module, a first battery and a second battery.
Step 220, detecting the remaining electric quantity of the first battery and the second battery in the process of running the target application on the electronic equipment.
Conventional electronic devices generally have only one common battery, and the common battery is generally a lithium battery. Lithium batteries are a type of battery using a nonaqueous electrolyte solution with lithium metal or a lithium alloy as a negative electrode material. The technology of lithium batteries is mature and is generally applied to electronic equipment as a battery. With the increasingly wide application of electronic equipment in daily work and life and the limited cruising ability of batteries, certain trouble is caused to the normal use of electronic equipment by users. For example, when a user is playing a game, because a game play may take half an hour or so all the way through, the power consumption is large. In addition, the user generally focuses on playing games, and is not willing to pause in the games, so if the electronic equipment prompts that the electric quantity is low, the operation of charging the electronic equipment by using the power adapter is complex and time-consuming, and certain trouble is caused for the user.
Therefore, a new charging control method is provided, which is applied to an electronic device including a wireless charging module, at least one first battery and at least one second battery. And detecting the residual capacities of the first battery and the second battery in the process of running the target application on the electronic equipment. The target application may be an application with higher power consumption, and the application with higher power consumption may be obtained by performing statistical analysis on the application with higher power consumption in a large number of electronic devices. Of course, the power consumption of the application in different use states may also be greatly different, for example, the power consumption of the social software is large when the social software is in a video or voice call, and the power consumption of the social software is small when the social software is only running in the background to receive messages. In order to avoid the risk that the electronic equipment is subjected to power failure due to sudden power consumption increase in the process of running the target application on the electronic equipment, the residual capacities of the first battery and the second battery are monitored in real time. The residual electric quantity of the first battery and the second battery can be monitored in real time through a battery control chip in the battery, and the residual electric quantity of the first battery and the second battery is obtained.
Step 240, controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the remaining power of the first battery and the second battery.
After the residual electric quantity of the first battery and the second battery is obtained, the wireless charging module is controlled to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery. Here, the wireless charging module may be controlled to supply power to the first battery, may also supply power to the second battery, and of course, may also wirelessly charge the first battery and the second battery at the same time. Specifically, whether the residual electric quantity of the first battery and the second battery meets a preset standard or not is judged, and if the residual electric quantity of the first battery and the residual electric quantity of the second battery meet the preset standard, the wireless charging module is controlled to wirelessly charge the first battery or the second battery. In the embodiment of the present application, different applications run on the electronic device and correspond to different preset standards, for example, the preset standard for specifying the remaining power of the first battery and the second battery corresponding to the game application is sequentially higher than the video and voice call application and the call application. The first battery or the second battery is wirelessly charged through the wireless charging module, and the user can continue to normally use the application program without connecting the power adapter to charge.
The charging control method in the embodiment of the application avoids the problem that the electronic equipment cannot be normally used due to sudden power failure. Firstly, detecting the residual electric quantity of a first battery and a second battery; then acquiring the residual electric quantity of the first battery and the second battery; and finally, automatically controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery. Therefore, wireless charging is automatically controlled according to the detected residual electric quantity, a user does not need to connect a power adapter for charging, and normal use of the electronic equipment is guaranteed without sudden power failure.
In one embodiment, as shown in fig. 3, step 240, controlling the wireless charging module to charge the first battery or the second battery according to the remaining power of the first battery and the second battery includes:
step 242, determining whether the remaining power of the first battery and the remaining power of the second battery are both less than a preset remaining power threshold.
The electronic device runs different applications corresponding to different preset standards, for example, the preset standard for the remaining power of the first battery and the second battery corresponding to the game application is higher than the video and voice call application and the call application in sequence. The preset standard is specifically a preset remaining power threshold, and different application programs correspond to different preset standards, that is, different application programs correspond to different preset remaining power thresholds.
Firstly, the type of an application program running on the electronic equipment is judged, and a corresponding preset residual electric quantity threshold value is obtained according to the type of the application program. And judging whether the residual electric quantity of the first battery and the second battery is smaller than the preset residual electric quantity threshold value.
Step 244, if yes, the wireless charging module is controlled to wirelessly charge the first battery or the second battery.
And if the residual electric quantity of the first battery and the second battery is judged to be smaller than the preset residual electric quantity threshold value, controlling the wireless charging module to wirelessly charge the first battery or the second battery. The wireless charging module can be controlled to wirelessly charge the first battery, the wireless charging module can be controlled to wirelessly charge the second battery, and the wireless charging module can be controlled to wirelessly charge the first battery and the second battery at the same time. For example, a battery which does not supply power to the electronic device can be obtained from the first battery and the second battery, and the undischarged battery is charged, so that the charging safety is ensured, and the normal use of the application program by the user can be ensured without worrying about sudden power failure or too low electric quantity. When the electronic device selects a power supply battery, a battery with a large remaining capacity is generally selected as the power supply battery, and another battery with a low remaining capacity is a battery that does not supply power to the electronic device.
Wireless charging technology (Wireless charging technology) is derived from Wireless power transmission technology, and can be divided into two modes of low-power Wireless charging and high-power Wireless charging. Among them, the low-Power Wireless charging is usually performed in an electromagnetic induction type, such as Qi mode for charging a mobile phone, Qi is a "Wireless charging" standard proposed by Wireless Power Consortium, the first global organization for standardization to promote Wireless charging technology, and has two major characteristics of convenience and universality.
In the embodiment of the application, first, which category the application program running on the electronic device belongs to is determined, and a corresponding preset remaining power threshold is obtained according to the category to which the application program belongs. And judging whether the residual electric quantity of the first battery and the second battery is smaller than the preset residual electric quantity threshold value, and automatically controlling the wireless charging module to wirelessly charge the first battery or the second battery. The automatic control wireless charging module wirelessly charges the first battery or the second battery, and can ensure that a user can normally use an application program without fear of sudden power failure or too low electric quantity of the electronic equipment.
In one embodiment, the first battery is charged at a rate greater than the second battery. Control wireless charging module and carry out wireless charging for first battery or second battery, include:
and controlling the wireless charging module to wirelessly charge the first battery.
Specifically, the first battery may be a fast charging battery capable of accommodating a large charging current or charging voltage, and the second battery may be a normal battery, and obviously, the charging speed of the first battery is faster than that of the second battery. For example, the first battery may be a graphene battery and the second battery a lithium battery. The graphene battery is a honeycomb-shaped planar thin film formed by carbon atoms in an sp2 hybridization mode, is a quasi-two-dimensional material with the thickness of only one atomic layer, and is also called monoatomic layer graphite. The graphene battery generates electric energy by utilizing the characteristic that lithium ions rapidly shuttle in large quantities between the graphene surface and an electrode. The graphene battery has the characteristics of high conductivity, high strength, ultra-light weight and the like. The graphene battery and the lithium battery are distinguished: the graphene battery far exceeds the lithium battery in the aspects of dynamic characteristics, electric capacity, service life and the like of the battery, but the cost of the graphene battery is higher than that of the lithium battery.
Since the charging speed of the first battery is greater than that of the second battery, the remaining capacities of the first battery and the second battery are detected during the running of the target application on the electronic device. And controlling the wireless charging module to wirelessly charge the first battery according to the residual electric quantity of the first battery and the second battery. Or when the residual electric quantity of the first battery and the residual electric quantity of the second battery are both smaller than the preset residual electric quantity threshold value, the wireless charging module is controlled to wirelessly charge the first battery.
In the embodiment of the application, at least one graphene battery and at least one lithium battery can be adopted in the electronic device. Therefore, the cost can be reduced, the graphene battery can be adopted to realize quick charging, and the charging speed is improved. Since the charging speed of the first battery is greater than that of the second battery, the remaining capacities of the first battery and the second battery are detected during the running of the target application on the electronic device. According to the residual electric quantity of the first battery and the second battery, the wireless charging module is controlled to wirelessly charge the first battery, and the charging efficiency is improved.
In another embodiment, after controlling the wireless charging module to charge the first battery, the method includes:
and when the first battery is detected to be full, and the electronic equipment stops running the target application, controlling the wireless charging module to wirelessly charge the second battery.
Specifically, the electronic device 100 includes at least one first battery 110, at least one second battery 120, and a wireless charging module 130. Generally, when the electronic device runs a target application with large power consumption, a battery which is discharging or supplying power is not charged in order to avoid a danger caused by an excessively high temperature of the electronic device. The unpowered battery may be charged, for example, the unpowered first battery. And after the first battery is fully charged, judging whether the electronic equipment runs the target application, and if not, controlling the wireless charging module to wirelessly charge the second battery.
In the embodiment of the application, the electronic device comprises at least two batteries, and when the electronic device runs a target application with larger power consumption, the first battery which is not powered can be charged. At this time, the normal power supply of the electronic equipment to the application program is not affected, when the first battery which is not powered is fully charged, whether the target application is operated on the electronic equipment can be judged, and if the target application is not operated, the second battery can be charged so as to fully charge the batteries in the electronic equipment.
In the previous embodiment, a charging control method is further provided, which is applied to an electronic device, where the electronic device includes a wireless charging module, a first battery and a second battery, where a charging speed of the first battery is greater than a charging speed of the second battery, as shown in fig. 4, in step 244, controlling the wireless charging module to wirelessly charge the first battery or the second battery, including:
244a, when the difference value between the residual capacities of the first battery and the second battery is within a preset range, the second battery is adopted to supply power to the electronic equipment;
step 244b, controlling the wireless charging module to wirelessly charge the first battery.
And detecting the residual capacities of the first battery and the second battery in the process of running the target application on the electronic equipment. The target application may be an application with higher power consumption, and the application with higher power consumption may be obtained by performing statistical analysis on the application with higher power consumption in a large number of electronic devices. Of course, the power consumption of the application in different use states may also be greatly different, for example, the power consumption of the social software is large when the social software is in a video or voice call, and the power consumption of the social software is small when the social software is only running in the background to receive messages. In order to avoid the risk that the electronic equipment is subjected to power failure due to sudden power consumption increase in the process of running the target application on the electronic equipment, the residual capacities of the first battery and the second battery are monitored in real time. The residual electric quantity of the first battery and the second battery can be monitored in real time through a battery control chip in the battery, and the residual electric quantity of the first battery and the second battery is obtained.
According to the residual capacity of first battery and second battery, control wireless charging module and carry out wireless charging for first battery or second battery, include:
in the process of running the target application on the electronic equipment, the residual electric quantity of the first battery and the second battery is monitored in real time through a battery control chip in the battery, and the residual electric quantity of the first battery and the second battery is obtained. And judging whether the residual capacities of the first battery and the second battery are both smaller than a preset residual capacity threshold (such as 40%), if so, continuously judging whether the difference value between the residual capacities of the first battery and the second battery is within a preset range, wherein the preset range is a positive or negative numerical range, and certainly, the difference value is zero. The value within the preset range may be determined according to a charge rate of the first battery. The difference value between the residual capacities of the first battery and the second battery exists in two conditions within a preset range, and in one condition, if the residual capacities of the first battery and the second battery are the same, the difference value is zero, and the second battery is adopted to supply power to the electronic equipment. The first battery can be charged by adopting the second battery for power supply, and more electric quantity can be charged in a shorter time because the charging speed of the first battery is higher than that of the second battery.
In another case, when the difference between the remaining capacities of the first and second batteries is within a preset range, the preset range may be within a positive-negative range. The preset range here may be set to any value less than or equal to half of the preset remaining power threshold, for example, when the preset remaining power threshold is set to 40%, the preset range of the difference may be set to be between the (+ 20%, -20%) ranges. For example, the remaining capacity of the first battery is 10% more than the remaining capacity of the second battery, and it is determined that the difference between the remaining capacities of the first and second batteries is within the preset range. Because the charging speed of the first battery is higher than that of the second battery, even if the residual electric quantity of the first battery is larger than that of the second battery, the second battery is still selected for supplying power, and the first battery is wirelessly charged, so that more electric quantity can be charged for the first battery in a shorter time, and the second battery can also ensure the power supply of the electronic equipment in a certain time.
For example, the remaining capacity of the first battery is 10% less than the remaining capacity of the second battery, and it is determined that the difference between the remaining capacities of the first and second batteries is within the preset range. Because the charging speed of the first battery is higher than that of the second battery, and the residual capacity of the second battery is more than that of the first battery, the second battery is selected to supply power, the first battery with less capacity is wirelessly charged, and the first battery can be charged with more capacity in a shorter time.
In the embodiment of the application, because the charging speed of the first battery is greater than that of the second battery, the remaining capacities of the first battery and the second battery are detected in the process of running the target application on the electronic device. And acquiring the residual capacities of the first battery and the second battery. And judging whether the residual electric quantity of the first battery and the residual electric quantity of the second battery are both smaller than a preset residual electric quantity threshold value, if so, further judging whether the difference value between the residual electric quantities of the first battery and the second battery is within a preset range, if so, supplying power to the electronic equipment by using the second battery, and controlling the wireless charging module to wirelessly charge the first battery. Because the charging speed of the first battery is higher than that of the second battery, more electric quantity can be charged in a shorter time, and the charging efficiency is improved.
In one embodiment, as shown in fig. 5, after controlling the wireless charging module to charge the first battery or the second battery according to the remaining power of the first battery and the second battery, the method includes:
and step 260, when the target application is in the suspended state, switching the battery to supply power to the electronic equipment.
Specifically, in the process of running a target application on the electronic device, the remaining electric quantities of the first battery and the second battery are detected; then acquiring the residual electric quantity of the first battery and the second battery; and finally, automatically controlling the wireless charging module to wirelessly charge the first battery or the second battery according to the residual electric quantity of the first battery and the second battery. If the first battery is used for supplying power to the electronic equipment and the second battery is wirelessly charged, the battery can be switched to supply power to the electronic equipment when the target application is in a suspended state. Because the remaining capacity of the first battery is decreased after the electronic device is powered by the first battery for a period of time, and the capacity of the second battery is increased after the second battery is wirelessly charged, the battery can be switched to power the electronic device while the target application is in a suspended state.
In the embodiment of the application, the battery is switched to supply power when the target application is in the suspended state, so that interruption or delay caused by switching the battery can be avoided, and a user cannot normally use the application program. And the electric quantity of the power supply battery after switching is more, and power can be supplied more durably. For example, when a user is playing a game on an electronic device, the game application generally consumes a lot of power and has a long duration per game, and therefore, the battery is switched when the user plays the game, so that the subsequent normal power supply can be ensured.
In one embodiment, the target application comprises a game application, a video playing application, and a call application.
In the embodiment of the application, the target application is an application with relatively high power consumption, and the application with relatively high power consumption may be obtained by performing statistical analysis on a large number of applications with relatively high power consumption in the electronic device. Of course, the power consumption of the application in different use states may also be greatly different, for example, the power consumption of the social software is large when the social software is in a video or voice call, and the power consumption of the social software is small when the social software is only running in the background to receive messages. In order to avoid the risk that the electronic equipment is subjected to power failure due to sudden power consumption increase in the process of running the target application on the electronic equipment, the residual capacities of the first battery and the second battery are monitored in real time. The residual capacities of the first battery and the second battery can be monitored in real time through a battery control chip in the battery. And then the residual electric quantity of the first battery and the second battery is obtained. According to the residual electric quantity of the first battery and the second battery, the wireless charging module is automatically controlled to wirelessly charge the first battery or the second battery, a user does not need to connect a power adapter to charge, the user can continue to normally use the application program, and the charging convenience and the charging efficiency of the electronic equipment are improved.
In one embodiment, a charging control method is further provided, and when detecting that the remaining capacity of a battery of the first battery and the second battery for supplying power to the electronic device is lower than a preset remaining capacity threshold, the charging control method switches to another battery for supplying power to the electronic device.
In the embodiment of the present application, the electronic device includes the first battery and the second battery, and generally, any one of the batteries supplies power to the electronic device. The method comprises the steps of detecting the residual electric quantity of the first electronic battery and the second electronic battery in real time, switching to another battery to supply power to the electronic equipment when the residual electric quantity of the battery supplying power to the electronic equipment is detected to be lower than a preset residual electric quantity threshold value, wherein the residual electric quantity of the other battery is higher than the preset residual electric quantity threshold value, so that the power can be supplied to the electronic equipment within a period of time, and the use requirements of users are met.
In one embodiment, a charging control method is further provided, in which a battery with a larger remaining capacity of the first battery and the second battery is obtained, and the battery with the larger remaining capacity is used to supply power to the electronic device.
In the embodiment of the application, when the electronic equipment selects the power supply battery, the battery with the larger residual capacity is preferentially selected to supply power to the electronic equipment, and the battery with the larger residual capacity can supply power to the electronic equipment within a period of time, so that the use requirements of users are met.
In one embodiment, the electronic device 100 includes a first battery 110, a second battery 120 and a wireless charging module 130. The first battery 110 may be a graphene battery, and the second battery 120 may be a lithium battery. As shown in fig. 6, there is provided a charge control method including the steps of:
step 602, in the process of running a game target application on the electronic device, detecting the remaining electric quantity of the first battery and the second battery in real time through a battery control chip in the battery;
step 604, acquiring remaining electric quantities of the first battery and the second battery;
step 606, judging whether the residual capacities of the first battery and the second battery are both smaller than a preset residual capacity threshold value of 40%; if not, step 608 is entered, where the battery is not needed for a while.
Step 610, if yes, continuously judging whether the difference value between the residual electric quantities of the first battery and the second battery is within a preset range, wherein the preset range is (+ 20%, -20%); if not, entering step 612, and using the first battery to supply power to the electronic equipment, and controlling the wireless charging module to wirelessly charge the second battery;
step 614, if yes, the second battery is adopted to supply power to the electronic equipment, and the wireless charging module is controlled to wirelessly charge the first battery;
step 616, after the first battery is fully charged, determining whether the electronic device runs the target application, if not, entering step 618, and controlling the wireless charging module to wirelessly charge the second battery.
In an embodiment of the application, the electronic device includes a first battery and a second battery, and the first battery is a graphene battery and the second battery is a lithium battery. In the process of running the game target application on the electronic equipment, the remaining power of the first battery and the second battery is monitored in real time because the game application has larger power consumption. And when judging whether the residual electric quantity of the first battery and the residual electric quantity of the second battery are both smaller than a preset residual electric quantity threshold value or not and judging whether the difference value between the residual electric quantities of the first battery and the second battery is within a preset range or not, if the two judgment results are yes, the second battery is adopted to supply power to the electronic equipment, and the wireless charging module is controlled to wirelessly charge the first battery. Therefore, the first battery is a graphene battery, and the charging speed is high, so that more electric quantity can be charged in a short time. The method has the advantages that the unpowered battery is charged quickly while the target application is not influenced by normal running of the electronic equipment. And after the first battery is fully charged, judging whether the electronic equipment runs the target application, and if not, controlling the wireless charging module to wirelessly charge the second battery. Thus, both batteries are automatically charged.
It should be understood that, although the steps in the flowchart of fig. 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a charge control device 700 including:
a remaining power detecting module 720, configured to detect remaining powers of the first battery and the second battery in a process of running the target application on the electronic device;
the charging module 740 is configured to control the wireless charging module to wirelessly charge the first battery or the second battery according to the remaining power of the first battery and the remaining power of the second battery.
In an embodiment, the charging module 740 is further configured to determine whether the remaining power of the first battery and the remaining power of the second battery are both less than a preset remaining power threshold; if yes, the wireless charging module is controlled to wirelessly charge the first battery or the second battery.
In one embodiment, the charging speed of the first battery is greater than the charging speed of the second battery; the charging module 740 is further configured to control the wireless charging module to wirelessly charge the first battery.
In an embodiment, the charging module 740 is further configured to control the wireless charging module to wirelessly charge the second battery when it is detected that the first battery is fully charged and the electronic device stops running the target application.
In one embodiment, the charging module 740 is further configured to, when the difference between the remaining capacities of the first battery and the second battery is within a preset range, use the second battery to supply power to the electronic device; and controlling the wireless charging module to wirelessly charge the first battery.
In one embodiment, as shown in fig. 8, there is provided a charge control device 700, further comprising: and the battery switching module 760 is configured to switch the battery to supply power to the electronic device when the target application is in the suspended state.
In one embodiment, as shown in fig. 9, a charging control apparatus 700 is provided, which further includes a power supply module 780 configured to switch to another battery to supply power to the electronic device when detecting that a remaining power of a battery, which supplies power to the electronic device, of the first battery and the second battery is lower than a preset remaining power threshold.
In an embodiment, the power supply module 780 is further configured to obtain a battery with a larger remaining capacity of the first battery and the second battery, and supply power to the electronic device by using the battery with the larger remaining capacity.
The division of the modules in the charging control device is only for illustration, and in other embodiments, the charging control device may be divided into different modules as needed to complete all or part of the functions of the charging control device.
Fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 10, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor to implement a charging control method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device, etc.
The implementation of each module in the charge control apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the charging control method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a charging control method.
Any reference to memory, storage, database, or other medium used by embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A charging control method is applied to electronic equipment, the electronic equipment comprises a wireless charging module, a first battery and a second battery, and the charging control method is characterized by comprising the following steps:
detecting the residual electric quantity of the first battery and the second battery in the process of running a target application on the electronic equipment;
judging whether the residual electric quantity of the first battery and the second battery is smaller than a preset residual electric quantity threshold value;
if yes, controlling the wireless charging module to wirelessly charge the first battery or the second battery; wherein, control wireless charging module is first battery or second battery carry out wireless charging, include: and if the charging speed of the first battery is greater than that of the second battery, controlling the wireless charging module to wirelessly charge the first battery.
2. The method of claim 1, wherein after the controlling the wireless charging module to charge the first battery, the method further comprises:
and when the first battery is detected to be fully charged and the electronic equipment stops running the target application, controlling the wireless charging module to wirelessly charge the second battery.
3. The method of claim 1, wherein a charging speed of the first battery is greater than a charging speed of the second battery;
control wireless charging module is for first battery or second battery carry out wireless charging, include:
when the difference value between the residual electric quantities of the first battery and the second battery is within a preset range, the second battery is adopted to supply power to the electronic equipment;
and controlling the wireless charging module to wirelessly charge the first battery.
4. The method according to claim 1, wherein after the controlling the wireless charging module to charge the first battery or the second battery according to the remaining power of the first battery and the second battery, the method comprises:
and when the target application is in a suspended state, switching a battery to supply power to the electronic equipment.
5. The method of claim 1, wherein the target application comprises a game-like application, a video-playing-like application, or a call-like application.
6. The method of claim 1, further comprising:
and when detecting that the residual capacity of the battery for supplying power to the electronic equipment in the first battery and the second battery is lower than a preset residual capacity threshold value, switching to another battery to supply power to the electronic equipment.
7. The method of claim 1, further comprising:
and acquiring a battery with larger residual electric quantity in the first battery and the second battery, and supplying power to the electronic equipment by adopting the battery with larger residual electric quantity.
8. The utility model provides a charge control device, is applied to electronic equipment, electronic equipment includes wireless charging module, first battery and second battery, its characterized in that includes:
the residual electric quantity detection module is used for detecting the residual electric quantity of the first battery and the second battery in the process of running a target application on the electronic equipment;
the charging module is used for judging whether the residual electric quantity of the first battery and the residual electric quantity of the second battery are both smaller than a preset residual electric quantity threshold value;
if yes, controlling the wireless charging module to wirelessly charge the first battery or the second battery; wherein, control wireless charging module is first battery or second battery carry out wireless charging, include: and if the charging speed of the first battery is greater than that of the second battery, controlling the wireless charging module to wirelessly charge the first battery.
9. An electronic device comprising a wireless charging module, a first battery, a second battery, a memory and a processor, wherein the memory stores a computer program, and wherein the computer program, when executed by the processor, causes the processor to perform the steps of the charging control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910688958.7A 2019-07-29 2019-07-29 Charging control method and device, electronic equipment and computer readable storage medium Active CN110350626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910688958.7A CN110350626B (en) 2019-07-29 2019-07-29 Charging control method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910688958.7A CN110350626B (en) 2019-07-29 2019-07-29 Charging control method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110350626A CN110350626A (en) 2019-10-18
CN110350626B true CN110350626B (en) 2021-04-23

Family

ID=68180534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910688958.7A Active CN110350626B (en) 2019-07-29 2019-07-29 Charging control method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110350626B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020098124A (en) * 2018-12-17 2020-06-25 セイコーエプソン株式会社 Electronic apparatus, battery state display method, and printer
CN111313500B (en) * 2020-03-16 2022-06-14 Oppo广东移动通信有限公司 Charging management method and device, electronic equipment and computer readable storage medium
CN112220635B (en) * 2020-10-12 2022-02-15 中国人民解放军陆军军医大学第一附属医院 Monitoring system based on negative pressure isolation cabin
CN113809835A (en) * 2021-08-11 2021-12-17 荣耀终端有限公司 Wireless charging method, device, chip, system and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104467066A (en) * 2014-05-13 2015-03-25 冯林 Electronic cigarette and power module used for electronic cigarette
CN109525720A (en) * 2018-10-31 2019-03-26 南昌努比亚技术有限公司 Battery of mobile terminal control method, mobile terminal and readable storage medium storing program for executing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7808206B2 (en) * 2006-10-31 2010-10-05 Semiconductor Energy Laboratory Co., Ltd. Electric power charge and discharge system
CN109450058A (en) * 2019-01-11 2019-03-08 深圳市迷购网络科技有限公司 Earphone charging method, earphone and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104467066A (en) * 2014-05-13 2015-03-25 冯林 Electronic cigarette and power module used for electronic cigarette
CN109525720A (en) * 2018-10-31 2019-03-26 南昌努比亚技术有限公司 Battery of mobile terminal control method, mobile terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110350626A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110350626B (en) Charging control method and device, electronic equipment and computer readable storage medium
US10044211B2 (en) Battery pack and method of controlling the same
US12015296B2 (en) Charging method and apparatus
US9893542B2 (en) Systems and methods for battery charging
CN110429684B (en) Charging control method and device, electronic equipment and computer readable storage medium
US7615968B2 (en) Method and device for charging a battery at elevated temperatures
EP3444921A1 (en) Charging control apparatus and method capable of energy saving and quick cell balancing
JP6486558B2 (en) Battery pack charge control apparatus and method
CN110323806B (en) Charging control method and device, electronic equipment and computer readable storage medium
CN107978790B (en) Method and device for supplementing lithium to battery
WO2020115761A1 (en) Cloud-based battery management system to predict battery life and battery health
CN108649658B (en) Multi-battery switching method, power supply device and electronic equipment
CN109075401B (en) Battery pack and method of charging battery pack
KR20130046234A (en) A battery pack and method for controlling the battery pack
KR20100050514A (en) Battery internal short-circuit detecting device and method, battery pack, and electronic device system
WO2016188070A1 (en) Temperature control method, device, terminal and storage medium
CN110988691A (en) Battery detection system, battery detection method and battery pack
CN106655407A (en) Battery charging method and device, electronic equipment, adapter and charger
CN111301219B (en) Method, system, equipment and readable storage medium for controlling battery of electric vehicle
CN110365084B (en) Charging control method, device, terminal and storage medium
US8438412B1 (en) System, method, and computer program for enabling an amount of multitasking for use by an operating system
TW201722020A (en) Method for adjusting charging current and mobile terminal
CN110365081B (en) Charging control method, device, terminal and storage medium
CN115308615A (en) Storage battery monitoring method, system, terminal equipment and storage medium
CN112311032B (en) Charging method, charging device, electronic device and storage medium

Legal Events

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