CN113131543A - Charging control method, device, equipment and readable storage medium - Google Patents

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

Info

Publication number
CN113131543A
CN113131543A CN201911410365.0A CN201911410365A CN113131543A CN 113131543 A CN113131543 A CN 113131543A CN 201911410365 A CN201911410365 A CN 201911410365A CN 113131543 A CN113131543 A CN 113131543A
Authority
CN
China
Prior art keywords
charging current
temperature
charged
battery
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911410365.0A
Other languages
Chinese (zh)
Inventor
李志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911410365.0A priority Critical patent/CN113131543A/en
Publication of CN113131543A publication Critical patent/CN113131543A/en
Pending legal-status Critical Current

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/007Regulation of charging or discharging current or voltage

Landscapes

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

Abstract

The disclosure provides a charging control method, a charging control device, charging control equipment and a readable storage medium. The method is applied to the equipment to be charged and comprises the following steps: detecting the type of an application currently running in the equipment to be charged, and determining an application level corresponding to the type of the application; determining a first charging current corresponding to the application level based on the application level; acquiring temperature information of charging equipment and a first charging current to be measured, and determining a second charging current corresponding to the temperature information; determining a target charging current value of the equipment to be charged based on the second charging current; and adjusting the charging current of the battery in the equipment to be charged to the target charging current value. According to the method, in the charging process of the electronic equipment, the charging current of the equipment to be charged is determined by combining the application grade and the temperature information of the current equipment to be charged, so that the problem of temperature rise of the equipment to be charged in the charging process can be effectively controlled.

Description

Charging control method, device, equipment and readable storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a charging control method, apparatus, device, and readable storage medium.
Background
Electronic devices (e.g., smart devices such as smart phones and tablet computers) are becoming more popular with consumers, but these electronic devices consume a large amount of power and require frequent charging. To meet the challenge of charging these devices to be charged by using a low-power ordinary charging scheme, several high-power fast charging schemes are proposed in the industry on the basis of ordinary charging, including a high-voltage-based fast charging scheme and a high-current-based fast charging scheme.
However, no matter the rapid charging scheme based on the large voltage or the rapid charging scheme based on the large current, because the power of the electric energy provided during charging is large, the temperature of the electronic device inevitably rises rapidly, and particularly, when the electronic device runs an application with large power consumption at the same time, the temperature of the electronic device rises remarkably, which is not beneficial to the improvement of the charging efficiency, and also leads to poor user experience. In addition, the temperature of the electronic device during charging may exceed relevant standards (e.g., national standard, enterprise standard, etc.).
How to provide an intelligent charging control method for electronic equipment based on the application scene of the electronic equipment in the charging process becomes a problem to be solved urgently.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a charging control method, a charging control device and a readable storage medium, which can effectively control the temperature rise problem of electronic equipment in the charging process.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to one aspect of the present disclosure, there is provided a charging control method applied to a device to be charged, including: detecting the type of the currently running application in the equipment to be charged, and determining an application level corresponding to the type; determining a first charging current corresponding to the application level based on the application level; acquiring temperature information of the equipment to be charged, and determining a second charging current corresponding to the temperature information; determining a target charging current value of the device to be charged based on the first charging current and the second charging current; and adjusting the charging current of the battery in the equipment to be charged to the target charging current value.
According to another aspect of the present disclosure, there is provided a charging control apparatus applied to a device to be charged, including: the application level detection module is used for detecting the type of the application currently running in the equipment to be charged and determining the application level of the type; a first current determination module for determining a first charging current corresponding to the application level based on the application level; the second current determining module is used for acquiring the temperature information of the equipment to be charged and determining a second charging current corresponding to the temperature information; a charging current determination module, configured to determine a target charging current value of the device to be charged based on the first charging current and the second charging current; and the charging current adjusting module is used for adjusting the charging current of the battery in the equipment to be charged to the target charging current value.
According to an aspect of the present disclosure, there is provided an electronic apparatus including: a memory, a processor and executable instructions stored in the memory and executable in the processor, the processor implementing any of the methods described above when executing the executable instructions.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement any of the methods described above.
According to the charging control method provided by the embodiment of the disclosure, in the charging process, when the target charging current value is determined, the charging current to be adjusted, which is determined based on the first charging current corresponding to the currently running application and the second charging current corresponding to the temperature of the current device to be charged, is referred to, and meanwhile, the application scene, the temperature rise condition and the charging speed are considered, so that the temperature rise can be effectively controlled while the charging speed is ensured, the charging efficiency is improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 exemplarily shows a flowchart of a charging control method in an embodiment of the present disclosure.
Fig. 2 exemplarily shows a flowchart of another charging control method in the embodiment of the present disclosure.
Fig. 3A exemplarily shows a state machine corresponding to the first temperature correspondence in the embodiment of the present disclosure.
Fig. 3B exemplarily shows a state machine corresponding to the second temperature correspondence in the embodiment of the present disclosure.
Fig. 4 exemplarily shows a flowchart of still another charge control method in the embodiment of the present disclosure.
Fig. 5 exemplarily shows a flowchart of still another charge control method in the embodiment of the present disclosure.
Fig. 6 exemplarily shows a flowchart of still another charge control method in the embodiment of the present disclosure.
Fig. 7 exemplarily shows a block diagram of a charging control apparatus in an embodiment of the present disclosure.
Fig. 8 exemplarily illustrates a block diagram of an electronic device in an embodiment of the present disclosure.
Fig. 9 schematically illustrates a schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Hereinafter, each step of the charging method provided by the exemplary embodiment of the present disclosure will be described in more detail with reference to the drawings and examples.
Fig. 1 exemplarily shows a flowchart of a charging control method in an embodiment of the present disclosure. The method provided by the embodiment of the disclosure can be applied to any equipment to be charged.
The device to be charged may be, for example, a terminal or an electronic device including, but not limited to, a device configured to receive/transmit communication signals via a wireline connection, such as via a Public Switched Telephone Network (PSTN), a Digital Subscriber Line (DSL), a digital cable, a direct cable connection, and/or another data connection/network and/or via a Wireless Local Area Network (WLAN), a digital television network such as a digital video broadcasting-handheld (DVB-H) network, a satellite network, an amplitude modulation-frequency modulation (AM-FM) broadcast transmitter, and/or a wireless interface of another terminal, for example. Communication terminals arranged to communicate over a wireless interface may be referred to as "wireless communication terminals", "wireless terminals", and/or "mobile terminals". Examples of terminals include, but are not limited to, satellite or cellular telephones; personal Communication System (PCS) terminals that may combine a cellular radiotelephone with data processing, facsimile and data communication capabilities; personal Digital Assistants (PDAs) that may include radiotelephones, pagers, internet/intranet access, Web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. In addition, the terminal may further include, but is not limited to, a rechargeable electronic device having a charging function, such as an electronic book reader, a smart wearable device, a mobile power source (e.g., a charger, a travel charger), an electronic cigarette, a wireless mouse, a wireless keyboard, a wireless headset, a bluetooth speaker, and the like.
Referring to fig. 1, a charge control method 10 includes:
in step S102, a type of an application currently running in the device to be charged is detected, and an application level corresponding to the type of the application is determined.
When the device to be charged is charged, if other applications are running, the temperature of the device to be charged is affected. But the extent of the temperature rise caused varies for different types of applications. Such as telephony, video, etc., types of applications, the temperature rise is low compared to large, networked game-type applications.
Various types of applications that may be running in the device to be charged may be classified into different classes depending on their power consumption (or the extent to which they induce a temperature rise in the device to be charged). Each class of application corresponds to a different charging current. As mentioned above, for example, a large networked game class or the like type of application may be categorized into one level, such as a first level; applications of the call class, video class, etc. type are assigned to one level, such as the second level. The power consumption of the first-level application is higher than that of the second-level application, and the charging current corresponding to the first-level application is lower than that of the second-level application. The above-mentioned division of the levels for different types of applications is only an example, not limiting the present disclosure, and in actual applications, the preset application levels may be configured according to actual requirements. The temperature rise is controlled according to the application level, so that the temperature of the electronic equipment can be controlled in a self-adaptive manner when the equipment to be charged runs different applications while charging, and the problem of equipment heating of the equipment to be charged caused by the temperature rise and the danger caused by overheating of the equipment to be charged are avoided.
Without loss of generality, taking an operating system running in the device to be charged as an android operating system as an example, at the beginning of charging or during charging, the type of an application currently running in the device to be charged may be detected by an upper layer (such as an application layer or an application framework layer) of the android operating system. And searching the application grade corresponding to the application of the type in the corresponding relation between the application type and the application grade stored in advance.
In addition, the user may switch different application types during the charging process, and the detection of the application types may be performed periodically.
In step S104, based on the application level, a first charging current corresponding to the application level is determined.
As described above, different charging currents may be preset for different application levels. As described above, the charging current corresponding to the application belonging to the first class is set to 4A, and the charging current corresponding to the application belonging to the second class is set to 5A, and it should be noted that these charging current values are merely examples and do not limit the present disclosure.
For example, the charging current value corresponding to each application level may be stored in advance, and after the application level to which the currently running application belongs is determined, the corresponding first charging current may be queried.
In step S106, temperature information of the device to be charged is acquired, and a second charging current corresponding to the temperature information is determined.
The temperature information of the device to be charged may be, for example, a detected temperature of the battery, or a detected temperature of a housing of the device to be charged (e.g., a temperature of the back housing, or a maximum temperature of different preset portions of the back housing), and the like, and the disclosure is not limited thereto. In addition, the temperature information includes an initial temperature and also includes a current temperature detected in real time during the charging process.
As described above, the temperature of the device to be charged is directly affected by the magnitude of the charging current, and the magnitude of the charging current corresponding to the temperature is determined based on the current temperature of the device to be charged, so that the temperature rise of the device to be charged can be effectively controlled.
In step S108, a target charging current value of the device to be charged is determined based on the first charging current and the second charging current.
And simultaneously considering a first charging current corresponding to the application based on the current operation and a second charging current corresponding to the temperature of the current equipment to be charged, and determining the target charging current value of the equipment to be charged.
For example, the minimum value of the first charging current and the second charging current may be selected as the target charging current value.
In step S110, the charging current of the battery in the device to be charged is adjusted to a target charging current value.
According to the charging control method provided by the embodiment of the disclosure, in the charging process, when the target charging current value is determined, the target charging current value determined by referring to the first charging current corresponding to the currently running application and the second charging current corresponding to the temperature of the current device to be charged is also determined, and meanwhile, the application scene, the temperature rise condition and the charging speed are considered, so that the temperature rise can be effectively controlled while the charging speed is ensured, the charging efficiency is improved, and the user experience is improved.
Fig. 2 exemplarily shows a flowchart of another charging control method in the embodiment of the present disclosure. The difference from the charging control method 10 shown in fig. 1 is that the method shown in fig. 2 further provides an embodiment of how to obtain the temperature information of the device to be charged and determine the second charging current corresponding to the temperature information, that is, the method shown in fig. 2 is a further extension of step S106 in fig. 1.
Referring to fig. 2, step S106 includes:
in step S1062, the initial temperature of the battery and the current temperature of the battery are acquired, respectively.
The detection of the current temperature of the battery can be performed, for example, by a cycle-initiated thread, so that the charging current is adjusted on the basis of the battery temperature measured in real time.
In step S1064, the initial temperature of the battery is compared with a preset temperature threshold.
The temperature information is, for example, the temperature of the battery, and the initial temperature of the battery may be compared with a preset temperature threshold.
In step S1066, a second charging current corresponding to the present temperature of the battery is determined according to the comparison result.
Firstly, comparing the initial temperature of the battery with a preset temperature threshold, and determining different second charging currents according to the comparison result, namely determining a second charging current when the initial temperature of the battery is higher than the temperature threshold; and when the initial temperature of the battery is lower than the temperature threshold, another different second charging current is determined. Such an arrangement may better achieve a balance between re-reading speed and temperature rise.
In some embodiments, step S1066 may further include:
s1: and when the initial temperature of the battery is lower than the temperature threshold, determining the second charging current based on a preset first temperature current corresponding relation.
The first temperature correspondence may be stored in the device to be charged in advance, and is used to record a relationship between the temperature of the battery and the second charging current when the initial temperature of the battery is lower than the temperature threshold.
For example, the temperature threshold may be, for example, 32.5 degrees. When the temperature of the battery rises to 43 degrees, the charging current is reduced to 5A; when the temperature of the battery rises to 43.5 degrees, the charging current is reduced to 4A; when the temperature of the battery rises to 44 degrees, the charging current is reduced to 3A; when the temperature of the battery drops back to 42.5 degrees, the charging current rises back to 4A; when the temperature of the battery drops back to 42 degrees, the charging circuit rises back to 5A.
In some embodiments, the first temperature correspondence may also be implemented as a state machine. Fig. 3A exemplarily shows a state machine corresponding to the first temperature correspondence in the embodiment of the present disclosure. As shown in fig. 3A, when the initial temperature of the battery is less than the battery threshold, the second charging current corresponding to the initial state st1_ int is 6.5A, the second charging current corresponding to the first high temperature state st1_1 is 5A, the second charging current corresponding to the second high temperature state st1_2 is 4A, and the second charging current corresponding to the third high temperature state st1_3 is 3A.
S2: and when the initial temperature of the battery is higher than the temperature threshold value, determining the second charging current value based on a preset second temperature current corresponding relation.
The second temperature correspondence may be pre-stored in the device to be charged, and is used to record the relationship between the temperature of the battery and the second charging current when the initial temperature of the battery is higher than the temperature threshold.
For example, when the temperature of the battery rises to 38 degrees, the charging current decreases to 6A; when the temperature of the battery rises to 39.5 degrees, the charging current is reduced to 5A; when the temperature of the battery rises to 41.5 degrees, the charging current is reduced to 4A; when the temperature of the battery rises to 42 degrees, the charging current is reduced to 3A; when the temperature of the battery is reduced to 40.5 ℃, the charging current is increased back to 4A; when the temperature of the battery drops back to 38.5 degrees, the charging circuit rises back to 5A.
In some embodiments, the second temperature correspondence may also be implemented as a state machine. Fig. 3B exemplarily shows a state machine corresponding to the second temperature correspondence in the embodiment of the present disclosure. As shown in fig. 3B, when the initial temperature of the battery is greater than the battery threshold, the second charging current corresponding to the initial state st2_ int is 7.5A, the second charging current corresponding to the first high temperature state st2_1 is 6A, the second charging current corresponding to the second high temperature state st2_2 is 5A, the second charging current corresponding to the third high temperature state st2_3 is 4A, and the second charging current corresponding to the fourth high temperature state st2_4 is 3A.
It should be noted that, when the initial temperature of the battery is equal to the temperature threshold, the first temperature corresponding relationship may be executed, or the second temperature corresponding relationship may also be executed, and in practical applications, whether to execute the first temperature corresponding relationship or the second temperature corresponding relationship may be set according to actual requirements.
In addition, the above-described values of the respective parameters are merely illustrative and do not limit the present disclosure.
The charging control method provided by the embodiment of the disclosure further designs a mechanism for dynamically adjusting the charging current of the battery based on the temperature, and when the temperature of the battery rises, the charging current value is correspondingly reduced; the reduction of the charging current will reduce the temperature of the battery, and when the temperature of the battery falls back, the charging current value is increased accordingly. In addition, the mechanism also adds a measure for preventing jitter, for example, as mentioned above, when designing the temperature, the jitter prevention temperature of 1.5 degrees is set.
In addition, tests have found that charging a device to be charged based on this method, although it is somewhat reduced in terms of the time of use to fully charge the battery, is reduced by only a few minutes compared to the charging time without the above-described intelligent control (about 30 minutes). Therefore, the method simultaneously considers the charging speed and the temperature rise condition of the equipment to be charged.
Fig. 4 exemplarily shows a flowchart of still another charge control method in the embodiment of the present disclosure. Unlike the charging control method 10 shown in fig. 1, in order to avoid the problem that the charging current value determined this time is higher than the charging current value determined last time when the battery voltage is large, the charging control method 20 shown in fig. 4 further includes, before step S110:
in step S202, the voltage of the battery is detected.
The present voltage of the battery can be detected, for example, by a detection module in the device to be charged.
In step S204, when the voltage of the battery is higher than the preset voltage threshold, a charging current value determined and adjusted last time is obtained, and a minimum value between the charging current value determined and adjusted last time and the determined target charging current value is selected as the target charging current value of this time.
By the method, the finally determined charging current value to be adjusted is set to be the smaller value of the charging current value determined and adjusted at the previous time and the charging current value determined at this time to be adjusted, so that the problem that the charging current value determined at this time is higher than the charging current value determined at the previous time under the condition of more battery voltage can be avoided.
Fig. 5 exemplarily shows a flowchart of still another charge control method in the embodiment of the present disclosure. Unlike the charging control methods described above, the charging control method shown in fig. 5 further provides an example of how to adjust the charging current of the battery in the device to be charged to the target charging current value, that is, the method shown in fig. 5 is a further extension of step S110 in fig. 1.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as computer programs executed by a CPU or Application Processor (AP) of the device to be charged. When the computer program is executed by the CPU or the AP, the above-described functions defined by the above-described methods provided by the present disclosure are performed. Alternatively, all or part of the steps of the above embodiments may also be implemented as executable code executed by a Micro Controller Unit (MCU) in the device to be charged. When executed, performs the functions defined by the method.
When the device to be charged includes both the AP and the control module implemented as the MCU, step S110 may include:
in step S1102, the target charging current value is sent to the control module in the device to be charged, so that the charging current of the battery in the device to be charged is adjusted to the target charging current value by the control module.
The control module may be implemented as the MCU described above, for example, to control the charging process of the device to be charged.
After receiving the charging current value, the control module may notify the power supply device to adjust the output current to the charging current value.
The control module can communicate with the power supply device through a charging interface of the equipment to be charged. If the charging interface is a USB interface, the control module and the power supply device may communicate based on a data line (e.g., a D + line and/or a D-line) in the USB interface. If the charging interface is a USB interface (e.g., a USB TYPE-C interface) supporting a PD communication protocol, the control module and the power supply device may communicate based on the PD communication protocol.
By communicating with the power supply device, the power supply device is informed to adjust the charging current to the charging current value matched with the type and application level of the power supply device.
Or, the control module may also control the voltage conversion module in the device to be charged to adjust the charging current of the battery to the charging current value.
The device to be charged can be provided with a voltage conversion module, and the voltage conversion module can convert the voltage and/or current output by the power supply device under the control of the control module so as to adjust the charging current of the battery to the charging current value matched with the type and application level of the power supply device.
In some embodiments, the target charging current value may be sent to a control module in the device to be charged, such as by a predefined field; wherein the field contains a predefined number of bits, with different assignments for representing different target charge current values. Taking a 4-bit field as an example, 0x6 may indicate that the target charging current value is 6A, 0x5 may indicate that the target charging current value is 5A, 0x4 may indicate that the target charging current value is 4A, 0x3 may indicate that the target charging current value is 3A, and so on. Through the predefined field, various values of the charging current to be adjusted can be indicated for the control module.
Fig. 6 exemplarily shows a flowchart of still another charge control method in the embodiment of the present disclosure.
Referring to fig. 6, the charge control method 30 includes:
in step S302, the type of the power supply apparatus connected to the device to be charged is acquired.
For example, the type of the power supply apparatus may be acquired by communicating with the power supply apparatus.
In step S304, it is determined whether the type of the power supply device supports jointly adjusting the current based on the application level and the temperature.
If the type of the power supply device does not support the joint adjustment of the current based on the application level and the temperature, step S316 is entered.
If the type of the power supply device supports jointly adjusting the current based on the application level and the temperature, the process proceeds to step S306.
In some embodiments, the determination of step S304 is only performed after confirming that the type of the power supply device supports fast charging, i.e. the above-mentioned mechanism for jointly adjusting the charging current based on the application level and the temperature is only performed in the fast charging mode.
The following describes a "normal charge mode" and a "fast charge mode" in the charging system.
The normal charging mode refers to a power supply device (such as an adapter) outputting a relatively small current value (typically less than 2.5A) or charging a battery in a device to be charged with relatively small power (typically less than 15W). It usually takes several hours to fully charge a larger capacity battery (e.g., 3000 ma-hour capacity battery) in the normal charging mode.
The fast charging mode means that the power supply device can output a relatively large current (typically greater than 2.5A, such as 4.5A, 5A or even higher) or charge a battery in the charging device with a relatively large power (typically greater than or equal to 15W).
Compared with the ordinary charging mode, the charging speed of the power supply device in the fast charging mode is faster, and the charging time required for completely charging the battery with the same capacity can be obviously shortened.
The power supply device can be a common adapter, for example, a power adapter with maximum output power of 10W (5V/2A) and which charges the device to be charged by adopting the common charging mode; alternatively, the power supply device may be a fast charging adapter, for example, a high-power adapter with a maximum output power of 50W (10V/5A), and the above fast charging mode is adopted to charge the device to be charged; still alternatively, the power supply device may also be another fast charging adapter, for example, a 20W (5V/4A) high-power adapter, and the above fast charging mode is adopted to charge the device to be charged.
In step S306, the type of the application currently running in the device to be charged is detected, and the application level corresponding to the application of the type is determined.
In step S308, based on the application level, a first charging current corresponding to the application level is determined.
In step S310, temperature information of the device to be charged is acquired, and a second charging current corresponding to the temperature information is determined.
In step S312, a target charging current value of the device to be charged is determined based on the first charging current and the second charging current.
In step S314, the charging current of the battery in the device to be charged is adjusted to the target charging current value.
In step S316, the charging current of the battery in the device to be charged is adjusted to the preconfigured charging current value.
The preconfigured charging current value may be, for example, a charging current value that matches the type of power supply device.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 7 exemplarily shows a block diagram of a charging control apparatus in an embodiment of the present disclosure. The charging control device is applied to equipment to be charged.
Referring to fig. 7, the charge control device 40 includes: an application level detection module 402, a first current determination module 404, a second current determination module 406, a charging current determination module 408, and a charging current adjustment module 410.
The application level detection module 402 is configured to detect a type of an application currently running in the device to be charged, and determine an application level corresponding to the type of the application.
The first current determination module 404 is configured to determine a first charging current corresponding to the application level based on the application level.
The second current determining module 406 is configured to obtain temperature information of the device to be charged, and determine a second charging current corresponding to the temperature information.
The charging current determination module 408 is configured to determine a target charging current value of the device to be charged based on the first charging current and the second charging current.
The charging current adjusting module 410 is a charging current adjusting module for adjusting the charging current of the battery in the device to be charged to a target charging current value.
In some embodiments, the temperature comprises: the temperature of the battery; the second current determination module 406 includes: the device comprises a temperature acquisition unit, a temperature comparison unit and a current determination unit. The temperature acquisition unit is used for respectively acquiring the initial temperature of the battery and the current temperature of the battery. The temperature comparison unit is used for comparing the initial temperature of the battery with a preset temperature threshold value. The current determining unit is used for determining a second charging current corresponding to the current temperature of the battery according to the comparison result.
In some embodiments, the current determination unit further comprises: a first determining subunit and a second determining subunit. The first determining subunit is configured to determine, when the initial temperature of the battery is lower than the temperature threshold, a second charging current based on a preset first temperature-current correspondence and a current temperature of the battery. The second determining subunit is configured to determine a second charging current value based on a preset second temperature-current correspondence and a current temperature of the battery when the initial temperature of the battery is higher than the temperature threshold. The first temperature corresponding relation and the second temperature current corresponding relation are respectively used for recording the initial temperature of the corresponding different batteries and the corresponding relation between the temperature of the batteries and the second charging current.
In some embodiments, the first temperature correspondence relationship and the second temperature relationship comprise: and the state machine is used for performing state jump based on the current temperature of the battery.
In some embodiments, the application level includes: a first level and a second level; the power consumption of the first-level application is higher than that of the second-level application, and the first charging current corresponding to the first-level application is lower than the second charging current corresponding to the second-level application.
In some embodiments, the charging current determination module 408 is configured to select a minimum of the first charging current and the second charging current as the target charging current value.
In some embodiments, the charge control device 40 further includes: the voltage detection module and the voltage comparison module. The voltage detection module is used for detecting the voltage of the battery before the charging current of the battery in the device to be charged is adjusted to the charging current value by the charging current adjustment module 410. And the voltage comparison module is used for acquiring the charging current value determined and adjusted at the previous time when the voltage is higher than the preset voltage threshold, and selecting the minimum value between the charging current value determined and adjusted at the previous time and the determined target charging current value as the target charging current value at this time.
In some embodiments, the charging current adjusting module 410 is configured to send the target charging current value to a control module in the device to be charged, so as to adjust the charging current of the battery in the device to be charged to the target charging current value through the control module.
In some embodiments, the charging current adjustment module 410 is configured to send the target charging current value to a control module in the device to be charged through a predefined field; wherein the field contains a predefined number of bits and different assignments of the field are used to represent different target charge current values.
In some embodiments, the charge control device 40 further includes: and the type acquisition device is used for acquiring the type of the power supply device connected with the equipment to be charged. The charging current adjustment module 410 is also used to adjust the charging current of the battery in the device to be charged to a preconfigured charging current value when the type of power supply does not support jointly adjusting the current based on application level and temperature.
The charging control device provided by the embodiment of the disclosure, in the charging process, when the target charging current value is determined, the target charging current value determined by the first charging current corresponding to the application based on the current operation and the second charging current corresponding to the temperature of the current device to be charged is referred to at the same time, and meanwhile, the application scene, the temperature rise condition and the charging speed are considered, so that the charging speed can be ensured, the temperature rise is effectively controlled, the charging efficiency is improved, and the user experience is improved.
Further, the charging control device provided by the embodiment of the present disclosure further designs a mechanism for dynamically adjusting the charging current of the battery based on the temperature, and when the temperature of the battery rises, the charging current value is correspondingly reduced; the reduction of the charging current will reduce the temperature of the battery, and when the temperature of the battery falls back, the charging current value is increased accordingly.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the disclosure is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that is executable by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present disclosure as described in the "exemplary methods" section above in this specification. For example, the processing unit 810 may execute step S102 shown in fig. 1, detect a type of an application currently running in the device to be charged, and determine an application level corresponding to the type of the application; step S104, determining a first charging current corresponding to the application level based on the application level; step S106, acquiring temperature information of the equipment to be charged, and determining a second charging current corresponding to the temperature information; step S108, determining a target charging current value of the equipment to be charged based on the first charging current and the second charging current; step S110, adjusting the charging current of the battery in the device to be charged to a target charging current value.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 9, a program product 900 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (13)

1. A charging control method is applied to equipment to be charged, and is characterized by comprising the following steps:
detecting the type of the currently running application in the equipment to be charged, and determining an application level corresponding to the type;
determining a first charging current corresponding to the application level based on the application level;
acquiring temperature information of the equipment to be charged, and determining a second charging current corresponding to the temperature information;
determining a target charging current value of the device to be charged based on the first charging current and the second charging current; and
and adjusting the charging current of the battery in the equipment to be charged to the target charging current value.
2. The method of claim 1, wherein the temperature information comprises: the temperature of the battery; acquiring temperature information of the device to be charged, and determining a second charging current corresponding to the temperature information comprises:
respectively acquiring the initial temperature of the battery and the current temperature of the battery;
comparing the initial temperature of the battery with a preset temperature threshold; and
and determining a second charging current corresponding to the current temperature of the battery according to the comparison result.
3. The method of claim 2, wherein determining the second charging current corresponding to the present temperature of the battery according to the comparison comprises:
when the initial temperature of the battery is lower than the temperature threshold, determining the second charging current based on a preset first temperature current corresponding relation and the current temperature of the battery; and/or the presence of a gas in the gas,
when the initial temperature of the battery is higher than the temperature threshold value, determining a second charging current value based on a preset second temperature current corresponding relation and the current temperature of the battery;
the first temperature corresponding relation and the second temperature current corresponding relation are respectively used for recording initial temperatures corresponding to different batteries and corresponding relations between the temperatures of the batteries and the second charging currents.
4. The method of claim 3, wherein the first temperature correspondence and the second temperature correspondence comprise: and the state machine is used for performing state jump based on the current temperature of the battery.
5. The method of claim 1, wherein the application level comprises: a first level and a second level; the power consumption of the first-level application is higher than that of the second-level application, and the first charging current corresponding to the first-level application is lower than the second charging current corresponding to the second-level application.
6. The method of claim 1, wherein determining a target charging current value for the device to be charged based on the first charging current and the second charging current comprises:
selecting a minimum value of the first charging current and the second charging current as the target charging current value.
7. The method of claim 1, wherein before adjusting the charging current of the battery in the device to be charged to the target charging current value, the method further comprises:
detecting a voltage of the battery; and
and when the voltage is higher than the preset voltage threshold, acquiring a charging current value determined and adjusted at the previous time, and selecting the minimum value between the charging current value determined and adjusted at the previous time and the determined target charging current value as the target charging current value at this time.
8. The method of claim 1, wherein adjusting the charging current of the battery in the device to be charged to the target charging current value comprises:
and sending the target charging current value to a control module in the equipment to be charged, so that the charging current of a battery in the equipment to be charged is adjusted to the target charging current value through the control module.
9. The method of claim 8, wherein sending the target charging current value to a control module in the device to be charged comprises:
sending the target charging current value to a control module in the equipment to be charged through a predefined field;
wherein the field contains a predefined number of bits, and wherein different assignments of the field are used to represent different target charging current values.
10. The method according to any one of claims 1-9, wherein prior to detecting an application level of an application currently running in the device to be charged, the method further comprises:
acquiring the type of a power supply device connected with the equipment to be charged; and
when the type of the power supply device does not support jointly adjusting the current based on the application level and the temperature, adjusting the charging current of the battery in the equipment to be charged to a preconfigured charging current value.
11. A charging control device is applied to equipment to be charged, and is characterized by comprising:
the application level detection module is used for detecting the type of the application currently running in the equipment to be charged and determining the application level corresponding to the type;
a first current determination module for determining a first charging current corresponding to the application level based on the application level;
the second current determining module is used for acquiring the temperature information of the equipment to be charged and determining a second charging current corresponding to the temperature information;
a charging current determination module, configured to determine a target charging current value of the device to be charged based on the first charging current and the second charging current; and
and the charging current adjusting module is used for adjusting the charging current of the battery in the equipment to be charged to the target charging current value.
12. An electronic device, comprising: memory, processor and executable instructions stored in the memory and executable in the processor, characterized in that the processor implements the method according to any of claims 1-10 when executing the executable instructions.
13. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the executable instructions, when executed by a processor, implement the method of any of claims 1-10.
CN201911410365.0A 2019-12-31 2019-12-31 Charging control method, device, equipment and readable storage medium Pending CN113131543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911410365.0A CN113131543A (en) 2019-12-31 2019-12-31 Charging control method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911410365.0A CN113131543A (en) 2019-12-31 2019-12-31 Charging control method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113131543A true CN113131543A (en) 2021-07-16

Family

ID=76769958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911410365.0A Pending CN113131543A (en) 2019-12-31 2019-12-31 Charging control method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113131543A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006429A (en) * 2021-10-25 2022-02-01 北京小米移动软件有限公司 Charging method, charging device, terminal equipment and computer readable storage medium
CN114865733A (en) * 2022-04-15 2022-08-05 合肥龙旗智能科技有限公司 Charging control method, device, equipment and medium for wearable electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006429A (en) * 2021-10-25 2022-02-01 北京小米移动软件有限公司 Charging method, charging device, terminal equipment and computer readable storage medium
CN114865733A (en) * 2022-04-15 2022-08-05 合肥龙旗智能科技有限公司 Charging control method, device, equipment and medium for wearable electronic equipment

Similar Documents

Publication Publication Date Title
KR101920236B1 (en) Method for charging battery and an electronic device thereof
US8532716B2 (en) Electric power control method and mobile device adapted thereto
CN111142030B (en) Method, device and equipment for detecting internal short-circuit current and readable storage medium
EP3843238B1 (en) Charging control method and apparatus
CN103887571A (en) Charging mode switching method and charging mode switching device
CN104185216A (en) File transferring method and apparatus
KR20170134090A (en) Method for controlling charge for improving receive sensitivity and electronic device for the same
CN110829528A (en) Charging method, charging device and readable storage medium
US20130181663A1 (en) Method and system for battery charging control of a terminal
US20120198250A1 (en) Portable terminal equipment, a power supply system, and a power supply method and a power supply program for portable terminal equipment
CN109450009B (en) Charging control method and device and computer storage medium
KR20120028472A (en) Apparatus and method for charging of battery in portable terminal
CN113131543A (en) Charging control method, device, equipment and readable storage medium
US9252607B2 (en) Communication terminal, charge control program and charge control method
US9252618B2 (en) Terminals, terminal systems and charging/discharging methods thereof
JP5902213B2 (en) System and method for signal detection using dynamic thresholds
KR20210043337A (en) Electronic device for controlling power switching mode and operating method thereof
CN110913075A (en) Charging control method, device, equipment and readable storage medium
CN112713627B (en) Voltage control method, voltage control device, storage medium, and electronic apparatus
US11469599B2 (en) Method for controlling charging of battery of electronic device and electronic device thereof
CN112261712A (en) Power regulation method and device
CN115117946A (en) Charging control method, charging control device, electronic apparatus, and storage medium
JP2013005078A (en) Femtocell wireless base station, communication control method, and program
US20220140640A1 (en) Device to be Charged and Charging Method
CN113285500A (en) Mobile terminal and charging method thereof

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