CN112003344B - Charging control method and apparatus, charging system, and storage medium - Google Patents

Charging control method and apparatus, charging system, and storage medium Download PDF

Info

Publication number
CN112003344B
CN112003344B CN202010816804.4A CN202010816804A CN112003344B CN 112003344 B CN112003344 B CN 112003344B CN 202010816804 A CN202010816804 A CN 202010816804A CN 112003344 B CN112003344 B CN 112003344B
Authority
CN
China
Prior art keywords
battery
charging
terminal
battery parameter
parameter
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
CN202010816804.4A
Other languages
Chinese (zh)
Other versions
CN112003344A (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 CN202010816804.4A priority Critical patent/CN112003344B/en
Publication of CN112003344A publication Critical patent/CN112003344A/en
Application granted granted Critical
Publication of CN112003344B publication Critical patent/CN112003344B/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/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • 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
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • 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
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • H02J7/007194Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery

Abstract

The application provides a charging control method. The charging control method comprises the steps of obtaining a first battery parameter of a terminal, wherein the first battery parameter is an analog signal; converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module arranged in a microprocessor in the adapter; and controlling the charging parameters of the adapter for charging the terminal according to the second battery parameters. According to the charging control method, after the first battery parameter of the terminal is obtained, the battery parameter is subjected to analog-to-digital conversion through the first analog-to-digital conversion module arranged in the microprocessor to obtain the accurate second battery parameter, an external ammeter does not need to be arranged at the terminal to obtain the battery parameter, and the terminal is favorably miniaturized and has low cost. The present application also provides a charging control apparatus, a charging system, and a nonvolatile computer-readable storage medium.

Description

Charging control method and apparatus, charging system, and storage medium
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a charging control method, a charging control apparatus, a charging system, and a non-volatile computer storage medium.
Background
At present, mobile terminal (for example, smart phone) is more and more favored by consumers, but mobile terminal power consumption is big, need often charge, therefore, it uses the key means of experience to guarantee mobile terminal to realize quick charge, because the accuracy of the collection battery parameter of the fuel gauge function of taking oneself at the quick charge stage of terminal is lower, consequently, current charging system generally sets up external fuel gauge at the terminal and realizes the collection of battery parameter, however, external fuel gauge not only occupies the volume of terminal, be unfavorable for the miniaturization of terminal, and the cost is higher.
Disclosure of Invention
Embodiments of the present application provide a charging control method, a charging control apparatus, a charging system, and a nonvolatile computer storage medium.
The charging control method comprises the steps of obtaining a first battery parameter of a terminal, wherein the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery; converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module arranged in a microprocessor in the adapter, wherein the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; and controlling the charging parameters of the terminal charged by the adapter according to the second battery parameters, wherein the charging parameters comprise charging current and/or charging voltage.
The charging control device comprises a first acquisition module, a conversion module and a first control module. The first acquisition module is used for acquiring a first battery parameter of the terminal, wherein the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery; the conversion module is used for converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module arranged in a microprocessor in the adapter, the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; the first control module is used for controlling the adapter to charge the terminal according to the second battery parameter, and the charging parameter comprises charging current and/or charging voltage.
The charging system comprises an adapter, wherein the adapter is used for communicating with a terminal and charging the terminal, the adapter comprises a microprocessor, the microprocessor is provided with a first analog-to-digital conversion module and used for acquiring a first battery parameter of the terminal, the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery; the first analog-to-digital conversion module is used for converting the first battery parameter into a second battery parameter, the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; and the microprocessor is also used for controlling the charging parameters of the terminal charged by the adapter according to the second battery parameters, and the charging parameters comprise charging current and/or charging voltage.
A non-transitory computer-readable storage medium containing a computer program that, when executed by one or more processors, causes the processors to perform a charging control method. The charging control method comprises the steps of obtaining a first battery parameter of a terminal, wherein the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery; converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module arranged in a microprocessor in the adapter, wherein the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; and controlling the charging parameters of the terminal charged by the adapter according to the second battery parameters, wherein the charging parameters comprise charging current and/or charging voltage.
According to the charging control method, the charging control device, the charging system and the nonvolatile computer readable storage medium, after the first battery parameter of the terminal is obtained, the battery parameter is subjected to analog-to-digital conversion through the first analog-to-digital conversion module arranged in the microprocessor to obtain the accurate second battery parameter, an external ammeter does not need to be arranged at the terminal to obtain the battery parameter, and the terminal is beneficial to miniaturization and low in cost.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
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 schematic flow chart diagram of a charge control method according to certain embodiments of the present application;
FIG. 2 is a block schematic diagram of a charge control device according to certain embodiments of the present application;
FIG. 3 is a schematic diagram of a charging system according to certain embodiments of the present application;
FIG. 4 is a schematic flow chart diagram of a charge control method according to certain embodiments of the present application;
FIG. 5 is a block schematic diagram of a charge control device according to certain embodiments of the present application;
FIG. 6 is a schematic flow chart diagram of a charge control method according to certain embodiments of the present application;
FIG. 7 is a schematic flow chart diagram of a charge control method according to some embodiments of the present application;
FIG. 8 is a schematic flow chart diagram of a charge control method according to certain embodiments of the present application;
FIG. 9 is a block schematic diagram of a charge control device according to certain embodiments of the present application;
FIG. 10 is a schematic flow chart diagram of a charge control method according to certain embodiments of the present application;
FIG. 11 is a block schematic diagram of a charge control device according to certain embodiments of the present application; and
FIG. 12 is a schematic diagram of a connection between a processor and a computer-readable storage medium according to some embodiments of the present application.
Detailed Description
Embodiments of the present application will be further described below with reference to the accompanying drawings. The same or similar reference numbers in the drawings identify the same or similar elements or elements having the same or similar functionality throughout. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only for the purpose of explaining the embodiments of the present application, and are not to be construed as limiting the present application.
At present, the power of the fast charge is getting bigger and bigger, the charging speed is also getting faster and faster, but at present, the fast charge generally obtains the battery parameters through an external electricity meter, the external electricity meter can calculate the battery current, the battery electricity and the battery voltage and store the battery current, the battery electricity and the battery voltage in a specific register, and an AP end reads the specific register through an interface for reading the battery electricity, the battery voltage and the battery current, so that the battery current, the battery electricity and the battery voltage are obtained, and the external electricity meter has reliable performance but is expensive. The android system also has the function of a platform electricity meter, but is generally in a closed state when an external electricity meter is set, only the platform electricity meter needs to be started when the android system is used, in a common charging stage, the accuracy of battery current, battery electricity and battery voltage obtained by the platform electricity meter through calculation in a table look-up mode and the like is within an acceptable range, but the accuracy of the battery current, the battery electricity and the battery voltage obtained by the platform electricity meter through calculation in a table look-up mode and the like is lower under the condition that the current is larger in a rapid charging stage.
Referring to fig. 1 and 3, a charging control method according to an embodiment of the present disclosure includes the following steps:
011: acquiring a first battery parameter of the terminal 30, where the first battery parameter is an analog signal, and the first battery parameter includes at least one of a battery temperature, a battery voltage, and a battery current of the battery 33;
012: converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module 22 arranged in a microprocessor 21 in the adapter 20, wherein the second battery parameter is a digital signal, and the second battery parameter includes at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery 33; and
013: the charging parameters of the adapter 20 for charging the terminal 30 are controlled in accordance with the second battery parameters, the charging parameters comprising a charging current and/or a charging voltage.
Referring to fig. 2, in some embodiments, the charging control apparatus 10 includes a first obtaining module 11, a converting module 12, and a first control module 13. The first obtaining module 11, the converting module 12 and the first control module 13 are configured to perform step 011, step 012 and step 013, respectively. That is, the first obtaining module 11 is configured to obtain a first battery parameter of the terminal 30, where the first battery parameter is an analog signal, and the first battery parameter includes at least one of a battery temperature, a battery voltage, and a battery current of the battery 33; the conversion module 12 is configured to convert the first battery parameter into a second battery parameter through a first analog-to-digital conversion module 22 disposed in a microprocessor 21 in the adapter 20, where the second battery parameter is a digital signal, and the second battery parameter includes at least one of a battery temperature, a battery voltage, a battery current, and a battery power of a battery 33; the first control module 13 is configured to control a charging parameter of the terminal 30 charged by the adapter 20 according to the second battery parameter, where the charging parameter includes a charging current and/or a charging voltage.
In some embodiments, the charging system 100 includes an adapter 20, the adapter 20 is configured to communicate with the terminal 30 and charge the terminal 30, the adapter 20 includes a microprocessor 21, the microprocessor 21 is provided with a first analog-to-digital conversion module 22, the microprocessor 21 is configured to obtain a first battery parameter of the terminal 30, the first battery parameter is an analog signal, and the first battery parameter includes at least one of a battery temperature, a battery voltage, and a battery current of the battery 33; the first analog-to-digital conversion module 22 is configured to convert the first battery parameter into a second battery parameter, where the second battery parameter is a digital signal, and the second battery parameter includes at least one of a battery temperature, a battery voltage, a battery current, and a battery power of the battery 33; and the microprocessor 21 is further configured to control a charging parameter of the terminal 30 by the adapter 20 according to the second battery parameter, wherein the charging parameter includes a charging current and/or a charging voltage. That is, step 011 and step 013 can be implemented by the microprocessor 21, and step 012 can be implemented by the first analog-to-digital conversion module 22.
Specifically, the charging system 100 may include an adapter 20; or the charging system 100 may include the adapter 20 and the terminal 30, and the adapter 20 may be a power adapter, which may be connected to the terminal 30 through a connection line to enable communication with the terminal 30 and charging the terminal 30.
The adapter 20 comprises a microprocessor 21, the microprocessor 21 comprises a first analog-to-digital conversion module 22, and the first analog-to-digital conversion module 22 can be a 16-bit differential analog-to-digital signal converter, so that the data sampling precision is high. The adapter 20 includes a first charging interface 23, and the adapter 20 outputs a charging current through the first charging interface 23.
The terminal 30 may be a mobile phone, a tablet computer, a display, a notebook computer, a teller machine, a gate, a smart watch, a head-up display device, a game console, etc. As shown in fig. 3, in the present embodiment, the terminal 30 is a mobile phone as an example, and it is understood that the specific form of the terminal 30 is not limited to the mobile phone.
The terminal 30 includes an application processor 31, a second charging interface 32 and a battery 33, the charging system 100 may further include a connection line 40, two ends of the connection line 40 are respectively connected to the first charging interface 23 and the second charging interface 32 to realize connection between the adapter 20 and the terminal 30, the microprocessor 21 may establish communication connection with the application processor 31, the microprocessor 21 may send a charging signal to the application processor 31 to maintain communication through every predetermined time (e.g., 1 second (S), 2S, 5S, 6S, etc.), and the charging signal may be used to determine whether to enter a fast charging stage or stop fast charging to enter a normal charging stage. Or, the microprocessor 21 may determine whether to enter the fast charging stage or stop the fast charging to enter the normal charging stage according to the battery parameter, for example, enter the fast charging stage when the battery capacity is less than 80%, and enter the normal charging stage when the battery capacity is greater than or equal to 80%. When entering the fast charging stage and stopping the fast charging and entering the ordinary charging stage, the corresponding fast charging start signal and the corresponding fast charging stop signal may be sent to the application processor 31. In addition, the microprocessor 21 may also collect abnormal information of the adapter 20, and send an abnormal signal to the application processor 31 when an abnormal condition occurs (such as the battery parameter cannot be acquired, the adapter 20 cannot be charged, etc.), so that the application processor 31 executes a corresponding process, such as disconnecting the terminal 30 from the adapter 20.
During the communication process (including the normal charging phase and the fast charging phase), the microprocessor 21 may continuously read the battery parameter through the first analog-to-digital conversion module 22. Specifically, the terminal 30 is provided with a sensor related to the battery 33, and can acquire an analog signal (i.e., a first battery parameter) of information such as a battery voltage, a battery current, and a battery temperature. The first battery parameter is sent to the adapter 20 via the connection 40 and converted into a second battery parameter by the first analog-to-digital conversion module 22, in which the analog signal is converted into a digital signal. The first analog-to-digital conversion module 22 is a 16-bit differential analog-to-digital signal converter, and the data conversion precision is high, so that the accuracy of the second battery parameter is high. An external electricity meter does not need to be arranged on the terminal 30, and miniaturization of the terminal 30 is facilitated. In addition, during the conversion process, the microprocessor 21 processes the battery parameter, for example, calculates the battery capacity according to the battery current and the charging duration, so as to obtain a second battery parameter containing more battery parameters.
The microprocessor 21 controls a charging parameter for charging the terminal 30 according to the second battery parameter. For example, the microprocessor 21 controls the charging current for charging the terminal 30 according to the second battery parameter, or the microprocessor 21 controls the charging voltage and the charging current for charging the terminal 30 according to the second battery parameter.
The charging process of the terminal 30 by the adapter 20 includes a normal charging phase and a quick charging phase. After the terminal 30 is connected to the adapter 20, the application processor 31 will identify the adapter 20, determine whether the adapter 20 is a matched adapter 20, whether the adapter 20 supports fast charging, and so on, so as to negotiate to determine whether to enter a fast charging phase, where determining whether the adapter 20 is a matched adapter 20 may be: and judging whether the model of the adapter 20 is matched with the model of the terminal 30 or not, judging whether the rated charging parameter of the adapter 20 is matched with the preset rated parameter of the terminal 30 or not, and the like.
In the process that the adapter 20 and the terminal 30 negotiate whether to enter the fast charging stage to charge the terminal 30, the adapter 20 may only maintain a connection state with the terminal 30, and does not charge, may also maintain a normal charging stage to charge the terminal 30, and may also use a small current to charge the terminal 30. During the normal charging phase, the microprocessor 21 may control the adapter 20 to charge the terminal 30 with a fixed charging current or charging voltage.
Upon recognizing that the adapter 20 is mated with the terminal 30 and that fast charging is supported, the charging process may enter a fast charging phase. The fast charging stage can be further divided into a constant current charging stage and a constant voltage charging stage, in the constant current charging stage, the microprocessor 21 determines in real time whether the battery voltage of the terminal 30 reaches the charging voltage threshold, and when the battery voltage of the terminal 30 does not reach the charging voltage threshold, the microprocessor 21 controls the adapter 20 to continuously adjust the charging current so that the battery voltage is substantially equal to the charging voltage threshold, and in the constant voltage charging stage, the charging current is gradually decreased, when the current drops to a certain threshold value, the charging is stopped, the battery 33 is fully charged or the preset electric quantity is reached, when the battery 33 reaches the preset electric quantity, the electric quantity is basically enough for the user to use, the quick charging stage can be exited, and the normal charging stage can be shifted again, so that the service life of the battery 33 can be prolonged.
After the charging control method, the charging control device 10, and the charging system 100 of the embodiment of the application acquire the first battery parameter of the terminal 30, the first analog-to-digital conversion module 22 arranged in the microprocessor 21 performs analog-to-digital conversion on the parameter of the battery 33 to obtain the accurate second battery parameter, and an external fuel gauge does not need to be arranged at the terminal 30 to acquire the battery parameter, which is beneficial to miniaturization and lower cost of the terminal 30.
Referring to fig. 3 and 4, in some embodiments, the charging control method further includes the following steps:
014: when the terminal 30 is in the ordinary charging stage, acquiring a third battery parameter through the application processor 31 of the terminal 30; and
015: and controlling the charging parameters of the adapter 20 during the ordinary charging of the terminal 30 according to the third battery parameter, wherein the third battery parameter comprises at least one of the battery temperature, the battery voltage, the battery current and the battery power of the battery 33.
Referring to fig. 5, in some embodiments, the charging control apparatus 10 includes a second obtaining module 14 and a second control module 15, wherein the second obtaining module 14 is configured to perform step 014, and the second control module 15 is configured to perform step 015. That is, the second obtaining module 14 is configured to obtain, by the application processor 31 of the terminal 30, the third battery parameter when the terminal 30 is in the ordinary charging stage; the second control module 15 is configured to control a charging parameter of the terminal 30 during normal charging performed by the adapter 20 according to a third battery parameter, where the third battery parameter includes at least one of a battery temperature, a battery voltage, a battery current, and a battery power of the battery 33.
In some embodiments, the application processor 31 is further configured to obtain a third battery parameter; and controlling the charging parameters of the adapter 20 for performing the normal charging on the terminal 30 according to the third battery parameter, wherein the third battery parameter includes at least one of the battery temperature, the battery voltage, the battery current and the battery power of the battery 33. That is, step 014 and step 015 may be implemented by the application processor 31.
Specifically, after the adapter 20 and the terminal 30 are connected, the terminal 30 determines whether the adapter 20 is a matching adapter 20, and before the adapter 20 is not determined to be a matching adapter 20, the terminal 30 does not give control to the adapter 20 to allow the microprocessor 21 to control the adapter 20 to perform quick charging in order to ensure charging safety.
In the determination process, the application processor 31 controls the adapter 20 to perform charging in a normal charging stage, the application processor 31 first obtains the third battery parameter, for example, the application processor 31 can directly obtain the third battery parameter through the platform electricity meter, because the current is small in the normal charging stage, the accuracy of the obtained third battery parameter is high, the application processor 31 can perform charging control in the normal charging stage accurately by matching with the platform electricity meter, and the accuracy of displaying the electric quantity according to the third battery parameter is also high.
In the ordinary charging stage, the application processor 31 may obtain a fixed charging current matching the third battery parameter according to the third battery parameter, and then charge the terminal 30 with the fixed charging current control adapter 20, and the application processor 31 may further perform power display of the terminal 30 according to the battery power in the third battery parameter.
Referring to fig. 3, 6 and 7, in some embodiments, step 014 includes the steps of:
0141: reading the second battery parameter stored in the register 24 of the microprocessor 21 by the application processor 31 as a third battery parameter;
or
0142: obtaining, by the application processor 31, a first battery parameter; and
0143: the first battery parameter is converted to a third battery parameter by a second analog-to-digital conversion module 34 of the application processor 31.
Referring again to fig. 5, in some embodiments, the second obtaining module 14 is configured to perform step 0141; or the second acquiring module 14 is also used for steps 0142 and 0143. That is, the second obtaining module 14 is configured to read the second battery parameter stored in the register 24 of the microprocessor 21 through the application processor 31 as the third battery parameter; or the second obtaining module 14 is further configured to obtain the first battery parameter through the application processor 31; the first battery parameter is converted to a third battery parameter by a second analog-to-digital conversion module 34 of the application processor 31.
In some embodiments, the microprocessor 21 is provided with a register 24, and the application processor 31 is provided with a second analog-to-digital conversion module 34; the application processor 31 is further configured to read the second battery parameter stored in the register 24 as a third battery parameter; alternatively, the application processor 31 is further configured to obtain a first battery parameter; the second analog-to-digital conversion module 34 is configured to convert the first battery parameter into a third battery parameter. That is, step 0113 may be implemented by the application processor 31, or step 0114 and step 0115 may be implemented by the application processor 31.
Specifically, the application processor 31 is further provided with a second analog-to-digital conversion module 34, after obtaining analog signals (i.e., first battery parameters) such as battery voltage, battery current, and battery temperature acquired by sensors related to the battery 33, the application processor 31 may perform analog-to-digital conversion through the second analog-to-digital conversion module 34 to convert the first battery parameter into a third battery parameter, and during the conversion process, the battery power may be calculated according to the battery current and the charging duration, so as to obtain a second battery parameter including more battery parameters.
Or, since the microprocessor 21 is provided with the register 24 to store each battery parameter, for example, the battery current register is provided to store the battery current, the battery voltage register is provided to store the battery voltage, the battery temperature register is provided to store the battery temperature, and the battery power register is provided to store the battery power, so that the application processor 31 can obtain the second battery parameter stored in the register 24 of the microprocessor 21 after establishing a communication connection with the microprocessor 21, the application processor 31 is not required to separately obtain and convert the first battery parameter, the computing resource of the application processor 31 is saved, and compared with the second analog-to-digital conversion module 34 of the application processor 31, the first analog-to-digital conversion module 22 of the microprocessor 21 is a 16-bit differential analog-to-digital signal converter, the sampling precision is higher, and the obtained second battery parameter is more accurate than the third battery parameter, therefore, the application processor 31 directly reads the second battery parameter stored in the register 24 of the microprocessor 21 as the third battery parameter, so as to improve the accuracy of the battery parameter, thereby realizing more accurate charging control and electric quantity display.
Referring to fig. 3 and 8, in some embodiments, the charging control method further includes the following steps:
016: when the terminal 30 enters a fast charging stage, recording the first electric quantity of the terminal 30 and clearing the second battery parameter stored in the register 24 in the microprocessor 21;
017: calculating a second amount of power based on the first amount of power and a second battery parameter in the register 24 during the rapid charging phase; and
018: the current power of the terminal 30 is displayed according to the value of the second power.
Referring to fig. 9, in some embodiments, the charging control apparatus 10 further includes a recording module 16, a calculating module 17, and a display module 18. The recording module 16, the calculating module 17 and the displaying module 18 are used for executing step 016, step 017 and step 018 respectively. That is, the recording module 16 is configured to record the first power of the terminal 30 and clear the second battery parameter stored in the register 24 of the microprocessor 21 when the terminal 30 enters the fast charging stage; the calculating module 17 is configured to calculate a second electric quantity according to the first electric quantity and a second battery parameter in the register 24 in the fast charging stage; the display module 18 displays the current power of the terminal 30 according to the value of the second power.
In some embodiments, when the terminal 30 enters the fast charging phase, the application processor 31 of the terminal 30 is further configured to record a first power of the terminal 30 and clear a second battery parameter stored in the register 24, calculate a second power according to the first power and the second battery parameter in the register 24 during the fast charging phase, and display a current power of the terminal 30 according to a value of the second power. That is, step 016, step 017 and step 018 can be realized by the application processor 31.
Specifically, when the terminal 30 enters the fast charging phase, the application processor 31 gives control to the microprocessor 21, the microprocessor 21 performs charging control in the fast charging phase, and the application processor 31 can display the power of the terminal 30 according to the charging power to indicate the current charging condition (e.g. display the current power percentage of the battery 33 in real time).
The application processor 31 may perform battery power display according to a third battery parameter obtained by converting the first battery parameter by the second analog-to-digital conversion module 34. Because the current is in the condition of fast charging of large current, the accuracy of the acquired third current parameter is low, and the displayed electric quantity may not be matched with the actual electric quantity, so that the accuracy of electric quantity display is reduced.
Therefore, the application processor 31 can obtain the battery power by means of the high-precision first analog-to-digital conversion module 22 of the microprocessor 21, so as to improve the accuracy of power display.
Specifically, when the terminal 30 enters the fast charging stage, the application processor 31 records the current first electric quantity of the terminal 30, and then controls the microprocessor 21 to clear the originally retained historical battery parameters in the register 24, so that the battery parameters stored in the subsequent register 24 are all the battery parameters obtained in the fast charging stage, and therefore, sufficient storage space of the register 24 can be ensured, no historical battery parameters exist, and the efficiency of data reading can be improved.
Then, when displaying the electric quantity, the application processor 31 superimposes the first electric quantity and the battery electric quantity accumulated in the register 24 to obtain a second electric quantity, where the second electric quantity is the current electric quantity of the terminal 30, and the application processor 31 can display the current electric quantity of the terminal 30 according to the second electric quantity to complete electric quantity display. Therefore, the second electric quantity with higher accuracy can be obtained without wasting the computing resources of the application processor 31 to obtain the third battery parameter alone, and the accuracy of electric quantity display is improved.
Referring to fig. 3 and 10, in some embodiments, the charging control method further includes:
019: after each calculation of the second electrical quantity, the second battery parameter in the register 24 is cleared and the value of the second electrical quantity is assigned to the first electrical quantity.
Referring to fig. 11, in some embodiments, the charging control apparatus 10 further includes a clearing module 12, and the clearing module 12 is configured to execute step 019. That is, the clearing module 12 is configured to clear the second battery parameter in the register 24 after each calculation of the second power amount, and assign the value of the second power amount to the first power amount.
In some embodiments, the application processor 31 is further configured to clear the second battery parameter in the register 24 and assign the value of the second power to the first power after each calculation of the second power. That is, step 019 may be implemented by the application processor 31.
Specifically, in order to ensure time synchronization between the power of the register 24 and the power of the terminal 30, the second battery parameter in the register 24 is cleared each time the application processor 31 reads the second battery parameter in the register 24 to update the display power according to the calculated second power. After the second electric quantity is obtained through calculation each time so as to update the display electric quantity, the second battery parameter accumulated in the register 24 is cleared, the calculated second electric quantity is assigned to the first electric quantity, the second battery parameter (such as the battery electric quantity) accumulated in the register 24 is obtained between every two adjacent times of reading the second battery parameter, and the value of the first electric quantity when the second electric quantity is calculated is always the value of the second electric quantity obtained through previous calculation, so that the accuracy of obtaining the second electric quantity through calculation each time is ensured, and the accuracy of displaying the electric quantity is further ensured.
For example, after entering the fast charging phase, the application processor 31 records the first power (e.g. 50% in percentage) of the terminal 30 at the time, and at intervals of a predetermined time (e.g. 5S, 6S, 10S, 60S, etc.) during the fast charging, the application processor 31 calculates the second power to update the display power. If the predetermined time is 6S, after entering 6S of the fast charging phase, the application processor 31 acquires the battery power from the register 24 for the first time (e.g. 0.1%), then calculates a second power according to the battery power and the first power, where the second power is equal to the sum of the first 6S battery power and the first power (i.e. the second power is 50% + 0.1% — 50.1%), clears the battery power acquired by the first 6S register 24 after the calculation is completed (i.e. the battery power of the register 24 at this time becomes 0), and assigns the second power to the first power (the first power at this time becomes 50.1%); after 6S, the battery power (for example, 0.1%) is obtained from the register 24 for the second time, then the second power is calculated according to the battery power and the first power, where the second power is 50.1% + 01% — 50.2%, after the calculation is completed, the battery power obtained from the register 24 in the second 6S is cleared (that is, the battery power of the register 24 becomes 0 again at this time), and the second power is assigned to the first power (where the first power becomes 50.2%), so that the above process is repeated, and the second power after the nth predetermined time period can be obtained, where N is a positive integer.
In other embodiments, a register 24 for storing the second charge may be separately provided, and the microprocessor 21 may be capable of accumulating the first charge upon entering the fast charge to determine the second charge. The second amount of power is then stored in the register 24 and the application processor 31 retrieves the second amount of power directly from the register 24 for display of the amount of power. Not only can the computing resources of the application processor 31 be saved, but also the accuracy of the second electric quantity acquired by the application processor 31 can be ensured without performing electric quantity synchronization processing on the application processor 31 and the microprocessor 21 due to the second electric quantity directly calculated by the microprocessor 21.
Referring to fig. 12, a non-volatile computer readable storage medium 300 storing a computer program 302 according to an embodiment of the present disclosure, when the computer program 302 is executed by one or more processors 200, the processor 200 may execute the charging control method according to any of the embodiments.
For example, referring to fig. 1 and 3 in conjunction, the computer program 302, when executed by the one or more processors 200, causes the processors 200 to perform the steps of:
011: acquiring a first battery parameter of the terminal 30, where the first battery parameter is an analog signal, and the first battery parameter includes at least one of a battery temperature, a battery voltage, and a battery current of the battery 33;
012: converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module 22 arranged in a microprocessor 21 in the adapter 20, wherein the second battery parameter is a digital signal, and the second battery parameter includes at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery 33; and
013: the charging parameters of the adapter 20 for charging the terminal 30 are controlled in accordance with the second battery parameters, the charging parameters comprising a charging current and/or a charging voltage.
As another example, referring to fig. 3 and 4 in conjunction, when the computer program 302 is executed by one or more application processors 310, the application processors 310 may further perform the steps of:
014: when the terminal 30 is in the ordinary charging stage, acquiring a third battery parameter through the application processor 31 of the terminal 30; and
015: and controlling the charging parameters of the adapter 20 during the ordinary charging of the terminal 30 according to the third battery parameter, wherein the third battery parameter comprises at least one of the battery temperature, the battery voltage, the battery current and the battery power of the battery 33.
In the description herein, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more program modules for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
Although embodiments of the present application have been shown and described above, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present application, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (13)

1. A charge control method, comprising:
acquiring a first battery parameter of a terminal, wherein the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery;
converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module arranged in a microprocessor in the adapter, wherein the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; and
controlling charging parameters of the adapter for charging the terminal according to the second battery parameters, wherein the charging parameters comprise charging current and/or charging voltage;
when the terminal enters a quick charging stage, recording first electric quantity of the terminal and clearing the second battery parameter stored by a register in the microprocessor;
calculating a second electric quantity according to the first electric quantity and the second battery parameter in the register in the quick charging stage; and
and displaying the current electric quantity of the terminal according to the value of the second electric quantity.
2. The charge control method according to claim 1, wherein the first analog-to-digital conversion module comprises a 16-bit differential analog-to-digital signal converter.
3. The charge control method according to claim 1, characterized by further comprising:
when the terminal is in a common charging stage, acquiring a third battery parameter through an application processor of the terminal; and
and controlling the charging parameters of the adapter for carrying out common charging on the terminal according to the third battery parameters, wherein the third battery parameters comprise at least one of battery temperature, battery voltage, battery current and battery electric quantity of the battery.
4. The charge control method of claim 3, wherein said obtaining, by said application processor, a third battery parameter comprises:
reading, by the application processor, the second battery parameter stored by a register of the microprocessor as the third battery parameter; alternatively, the first and second liquid crystal display panels may be,
obtaining, by the application processor, the first battery parameter; and
converting, by a second analog-to-digital conversion module of the application processor, the first battery parameter to the third battery parameter.
5. The charge control method according to claim 1, characterized by further comprising:
and clearing the second battery parameter in the register after calculating the second electric quantity each time, and assigning the value of the second electric quantity to the first electric quantity.
6. A charge control device, characterized by comprising:
the first acquisition module is used for acquiring a first battery parameter of the terminal, wherein the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery;
the conversion module is used for converting the first battery parameter into a second battery parameter through a first analog-to-digital conversion module arranged in a microprocessor in the adapter, the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; and
the first control module is used for controlling the charging parameters of the terminal charged by the adapter according to the second battery parameters, and the charging parameters comprise charging current and/or charging voltage;
the recording module is used for recording the first electric quantity of the terminal and clearing the second battery parameter stored by the register in the microprocessor when the terminal enters a quick charging stage;
the calculation module is used for calculating second electric quantity according to the first electric quantity and the second battery parameter in the register in the quick charging stage; and
and the display module is used for displaying the current electric quantity of the terminal according to the value of the second electric quantity.
7. A charging system is characterized by comprising an adapter, wherein the adapter is used for communicating with a terminal and charging the terminal, the adapter comprises a microprocessor, the microprocessor is provided with a first analog-to-digital conversion module and is used for acquiring a first battery parameter of the terminal, the first battery parameter is an analog signal, and the first battery parameter comprises at least one of battery temperature, battery voltage and battery current of a battery; the first analog-to-digital conversion module is used for converting the first battery parameter into a second battery parameter, the second battery parameter is a digital signal, and the second battery parameter comprises at least one of battery temperature, battery voltage, battery current and battery electric quantity of a battery; the microprocessor is also used for controlling the charging parameters of the adapter for charging the terminal according to the second battery parameters, and the charging parameters comprise charging current and/or charging voltage; the microprocessor is provided with a register, and when the terminal enters a quick charging stage, the application processor of the terminal is used for recording first electric quantity of the terminal, clearing the second battery parameter stored in the register, calculating second electric quantity according to the first electric quantity and the second battery parameter in the register in the quick charging stage, and displaying the current electric quantity of the terminal according to the value of the second electric quantity.
8. The charging system of claim 7, wherein the first analog-to-digital conversion module comprises a 16-bit differential analog-to-digital signal converter.
9. The charging system according to claim 7, wherein the charging system comprises a terminal, and when the terminal is in a normal charging phase, the application processor of the terminal is configured to obtain a third battery parameter; and controlling the charging parameters of the adapter for carrying out common charging on the terminal according to the third battery parameters, wherein the third battery parameters comprise at least one of battery temperature, battery voltage, battery current and battery electric quantity of the battery.
10. The charging system according to claim 9, wherein the microprocessor is provided with a register, and the application processor is provided with a second analog-to-digital conversion module;
the application processor is further configured to read the second battery parameter stored in the register as the third battery parameter; alternatively, the first and second electrodes may be,
the application processor is further configured to obtain the first battery parameter; the second analog-to-digital conversion module is used for converting the first battery parameter into the third battery parameter.
11. The charging system of claim 7, wherein the application processor is further configured to clear the second battery parameter from the register and assign a value of the second power to the first power after each calculation of the second power.
12. A non-transitory computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the charge control method of any one of claims 1 to 5.
13. A computer program product comprising a computer program that, when executed by one or more processors, implements the charge control method of any one of claims 1 to 5.
CN202010816804.4A 2020-08-14 2020-08-14 Charging control method and apparatus, charging system, and storage medium Active CN112003344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010816804.4A CN112003344B (en) 2020-08-14 2020-08-14 Charging control method and apparatus, charging system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010816804.4A CN112003344B (en) 2020-08-14 2020-08-14 Charging control method and apparatus, charging system, and storage medium

Publications (2)

Publication Number Publication Date
CN112003344A CN112003344A (en) 2020-11-27
CN112003344B true CN112003344B (en) 2022-06-10

Family

ID=73472372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010816804.4A Active CN112003344B (en) 2020-08-14 2020-08-14 Charging control method and apparatus, charging system, and storage medium

Country Status (1)

Country Link
CN (1) CN112003344B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580085A (en) * 2012-08-09 2014-02-12 惠州市尚联达电子有限公司 Mobile power supply with output currents capable of being automatically adjusted and charging method for loads
CN206633833U (en) * 2017-03-27 2017-11-14 深圳市前海中电新能源科技有限公司 Charging device and its output sampling device
CN107912074A (en) * 2016-02-05 2018-04-13 广东欧珀移动通信有限公司 For the charging system of terminal, charging method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580085A (en) * 2012-08-09 2014-02-12 惠州市尚联达电子有限公司 Mobile power supply with output currents capable of being automatically adjusted and charging method for loads
CN107912074A (en) * 2016-02-05 2018-04-13 广东欧珀移动通信有限公司 For the charging system of terminal, charging method and terminal
CN206633833U (en) * 2017-03-27 2017-11-14 深圳市前海中电新能源科技有限公司 Charging device and its output sampling device

Also Published As

Publication number Publication date
CN112003344A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN108475935B (en) Battery charging management method and terminal
CA2392182C (en) System and method for battery capacity reporting
CN108646190A (en) Method, device and equipment for estimating residual charging time of battery
EP1662269A1 (en) Battery remaining power calculating method, battery remaining power calculating device, and battery remaining power calculating program
CN101206246A (en) Method for preestimating battery residual capacity
CN110506215A (en) A kind of method and device of determining battery internal short-circuit
CN111740464B (en) Battery power compensation method, device, equipment and readable storage medium
EP3955014B1 (en) Method and apparatus for obtaining residual electric quantity, and electronic device
CN110879361A (en) Method and device for estimating residual capacity of battery and electronic equipment
CN114859258B (en) Electricity meter and electronic equipment applied to multiple batteries
CN113093027A (en) Battery SOC calibration method, device, system, medium and program product
CN112054564B (en) Circuit detection method and device, equipment and storage medium
JP2015031587A (en) Battery capacity presentation device, battery capacity presentation system, information center, and battery capacity presentation method
CN112977164A (en) Method and device for determining driving mileage of electric vehicle and vehicle
CN112003344B (en) Charging control method and apparatus, charging system, and storage medium
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN115566296B (en) Battery power display method, electronic device, program product and medium
EP4099037B1 (en) Prediction method and apparatus of battery health, and storage medium
CN212808554U (en) Display device for battery electric quantity
CN112698224B (en) Method, device and equipment for estimating residual electric quantity and readable storage medium
CN110850311B (en) Method and device for displaying electric quantity by double batteries and computer readable storage medium
CN113554341B (en) Power supply endurance evaluation method for portable medical device, and portable medical device
CN116259866B (en) Charging method, battery management system, battery, and readable storage medium
CN116559706A (en) Cell cycle life prediction method and device, electronic equipment and storage medium
CN113253141B (en) Battery power metering method, 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