CN116826892B - Charging method, charging device, electronic apparatus, and readable storage medium - Google Patents

Charging method, charging device, electronic apparatus, and readable storage medium Download PDF

Info

Publication number
CN116826892B
CN116826892B CN202310612690.5A CN202310612690A CN116826892B CN 116826892 B CN116826892 B CN 116826892B CN 202310612690 A CN202310612690 A CN 202310612690A CN 116826892 B CN116826892 B CN 116826892B
Authority
CN
China
Prior art keywords
chip
charging
switching frequency
current
input current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310612690.5A
Other languages
Chinese (zh)
Other versions
CN116826892A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310612690.5A priority Critical patent/CN116826892B/en
Publication of CN116826892A publication Critical patent/CN116826892A/en
Application granted granted Critical
Publication of CN116826892B publication Critical patent/CN116826892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • 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/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/00714Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery charging or discharging current
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

The application discloses a charging method, a charging device, an electronic device and a readable storage medium, wherein the charging method is applied to the electronic device comprising a first quick charging chip and a battery, and the method comprises the following steps: determining the input current of a first quick charge chip; determining whether the switching frequency of the switching circuit of the first fast charging chip is matched with the input current; when the switching frequency is not matched with the input current, modifying the value of the switching frequency to be matched with the input current; the switching circuit is controlled to charge the battery at a switching frequency that matches the input current. When the charging is carried out, the switching frequencies of the switching circuits in different current intervals are different, and compared with the technical scheme that the switching frequencies are fixed in the prior art, the technical scheme provided by the application is beneficial to improving the charging efficiency according to the characteristic that the switching frequencies with highest charging efficiency in different current intervals are different.

Description

Charging method, charging device, electronic apparatus, and readable storage medium
Technical Field
The present application relates to the field of battery charging technologies, and in particular, to a charging method, a charging device, an electronic device, and a readable storage medium.
Background
Along with popularization of electronic devices such as mobile phones and tablet computers, applications on the electronic devices are more and more, electric quantity consumption is faster and quick charging is more and more widely required.
In the related art, the charging efficiency of the electronic device is low, and how to improve the charging efficiency is a technical scheme to be solved.
Disclosure of Invention
The application provides a charging method, a charging device, electronic equipment and a readable storage medium, which are beneficial to improving charging efficiency.
In a first aspect, the present application provides a charging method applied to an electronic device including a first fast charging chip and a battery, the method including:
determining the input current of the first quick charge chip; the fast charging chip is a chip capable of fast charging a battery in the electronic equipment;
Determining whether the switching frequency of the switching circuit of the first fast charging chip is matched with the input current;
when the switching frequency of the switching circuit of the first quick charge chip is not matched with the input current, modifying the value of the switching frequency to be matched with the input current;
the switching circuit is controlled to charge the battery at a switching frequency that matches the input current.
When the charging is carried out, the switching frequencies of the switching circuits in different current intervals are different, and compared with the technical scheme that the switching frequencies are fixed in the prior art, the technical scheme provided by the application is beneficial to improving the charging efficiency according to the characteristic that the switching frequencies with highest charging efficiency in different current intervals are different.
As one example of the present application, when the switching frequency of the switching circuit of the first fast charge chip matches the input current, the value of the switching frequency is not changed;
as an example of the present application, the determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes:
Determining whether the input current is located in a current interval in which the switching frequencies are matched; if yes, determining that the switching frequency of a switching circuit of the quick charge chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the quick charge chip is not matched with the input current; the frequency with highest charging efficiency in any current interval is the switching frequency matched with the any current interval.
As an example of the present application, before the determining the input current of the first fast charging chip, the method further includes:
When the first quick charge chip enters a quick charge mode, setting the switching frequency of the switching circuit to be a default switching frequency; the default switching frequency is a switching frequency that matches a current interval including a minimum current value.
In some embodiments, the detection module may detect whether to enter the fast-charging mode, for example, if it is detected that the charging interface is connected by a matched wired or wireless charging module, it is determined that the fast-charging chip enters the fast-charging mode. It will be appreciated that other means of determining whether to enter the fast charge mode may be used, as is not limited herein.
As an example of the present application, the electronic device further includes a second fast charging chip, and the method further includes:
when the input current of the first quick charge chip is larger than a preset current threshold value;
Starting a second quick charging chip, and setting the switching frequency of a switching circuit of the second quick charging chip to be a value matched with the input current of the second quick charging chip;
And when the input current of the first quick charge chip is smaller than the preset current threshold, closing the second quick charge chip.
As an example of the present application, the determining the input current of the first fast charging chip includes:
And determining the input current of the first quick charge chip through a current sampling circuit.
As an example of the present application, the electronic device includes a sampling resistor connected to an input terminal of the first fast charging chip, and the first fast charging chip includes: an amplifier, a comparator, a register, and a switching circuit; the determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes:
acquiring sampling voltages at two ends of a sampling resistor;
Reading the sampling voltage through the amplifier to amplify, and comparing the amplified sampling voltage with a voltage value preset by the comparator;
And triggering the switching circuit to switch the switching frequency of the first quick charge chip to the switching frequency matched with the input current and stored in the register according to the comparison result.
In a second aspect, the present application provides a charging device applied to an electronic apparatus including a first fast charging chip and a battery, the charging device including:
a first determining unit, configured to determine an input current of the first fast charging chip;
a second determining unit, configured to determine whether a switching frequency of a switching circuit of the first fast charging chip is matched with the input current;
A processing unit, configured to modify, when a switching frequency of a switching circuit of the first fast charging chip does not match the input current, a value of the switching frequency to a value that matches the input current;
And the charging unit is used for controlling the switching circuit to charge the battery at a switching frequency matched with the input current.
As an example of the present application, the processing unit is further configured to not change a value of a switching frequency of the switching circuit of the first fast charging chip when the switching frequency matches the input current.
As an example of the present application, the second determining unit is specifically configured to determine whether the input current is located within a current interval in which the switching frequencies match; if yes, determining that the switching frequency of a switching circuit of the quick charge chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the quick charge chip is not matched with the input current; the frequency with highest charging efficiency in any current interval is the switching frequency matched with the any current interval.
As an example of the present application, the processing unit is further configured to set a switching frequency of the switching circuit to a default switching frequency when the first fast-charging chip enters a fast-charging mode; the default switching frequency is a switching frequency that matches a current interval including a minimum current value.
As an example of the present application, a second fast-charging chip is further included;
the processing unit is further used for when the input current of the first quick charging chip is larger than a preset current threshold value; triggering and starting a second quick charging chip, and setting the switching frequency of a switching circuit of the second quick charging chip to be a value matched with the input current of the second quick charging chip;
And when the input current of the first quick charge chip is smaller than the preset current threshold, closing the second quick charge chip.
As an example of the present application, the first determining unit is configured to determine an input current of the first fast charging chip through a current sampling circuit.
As an example of the present application, the electronic device includes a sampling resistor connected to an input terminal of the first fast-charging chip, and the first fast-charging chip includes the second determining unit and the processing unit.
As an example of the present application, the electronic device includes a sampling resistor connected to the input terminal of the first fast-charging chip, and the second determining unit and the processing unit are located outside the first fast-charging chip.
In a third aspect, the present application provides an electronic device comprising: a memory and one or more processors, the memory coupled with the processors; wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the charging method according to the first aspect or any of the possible implementations of the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the charging method according to the first aspect or any of the possible implementations of the first aspect.
Drawings
FIG. 1 is a flow chart of a charging method according to an embodiment of the application;
FIG. 2A is a schematic diagram of an input current versus charge efficiency characteristic in an embodiment of the application;
FIG. 2B is a flow chart of a charging method according to an embodiment of the application;
FIG. 2C is a schematic diagram of an electronic device according to an embodiment of the application;
FIG. 3A is a schematic diagram of an electronic device according to an embodiment of the application;
FIG. 3B is a schematic diagram of the logic between the comparator and the switch of FIG. 3A;
FIG. 4A is a schematic diagram of an electronic device according to an embodiment of the application;
FIG. 4B is a flow chart of a charging method according to an embodiment of the application;
FIG. 5 is a schematic diagram of an electronic device according to an embodiment of the application;
FIG. 6A is a schematic diagram of an electronic device according to an embodiment of the application;
FIG. 6B is a flowchart of a charging method according to an embodiment of the application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a block diagram of a software system of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that references to "a plurality" in this disclosure refer to two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The quick charging function is widely applied to electronic devices such as mobile phones, smart watches and wearable devices, and for convenience in description, the electronic devices are described by taking the mobile phones as examples in the subsequent embodiments, and it can be understood that the technical scheme in the embodiments is not limited to the mobile phones, but also can be applied to other electronic devices with the quick charging function.
In the prior art, when the mobile phone is charged quickly, the switching frequency of the switching circuit of the quick charging chip is fixed, and the charging efficiency is low.
Fig. 2A is a schematic diagram showing an input current-charging efficiency characteristic curve of a switching circuit of a fast-charging chip corresponding to different switching frequencies. The switching frequency of the switching circuit of the fast charging chip corresponding to the curve a1 is 600KHz, the switching frequency of the switching circuit of the fast charging chip corresponding to the curve a2 is 950KHz, and the switching frequency of the switching circuit of the fast charging chip corresponding to the curve a3 is 1.2MHz. The abscissa of fig. 2A corresponds to the input current of the fast charging chip, and the ordinate corresponds to the charging efficiency. As can be seen from fig. 2A, the three curves have an intersection point, the corresponding current is 2.3A, the charging efficiency corresponding to the curve a1 is highest on the left side of the intersection point, and the charging efficiency corresponding to the curve a3 is highest on the right side of the intersection point. For easy understanding, the following embodiments of the present application will be described by taking the parameters of the fast-charging chip as examples.
In the prior art, in the fast charging process, a fixed switching frequency is generally adopted for the fast charging chip, for example, the switching frequency corresponding to a2, and as can be seen from fig. 2A, the charging efficiency corresponding to a2 is not the highest in the two current intervals distinguished by the intersection point. According to the characteristic that the corresponding switching frequencies are different when the charging efficiency of different current intervals is highest, a plurality of current intervals can be obtained according to the intersection point of the input current-charging efficiency characteristic curves of the quick charging chip, and the switching frequency matched with each current interval is the switching frequency corresponding to the characteristic curve with the highest charging efficiency of the current interval. The charging mode is beneficial to improving the charging efficiency of the electronic equipment. It will be appreciated that in some embodiments, there may be more than one intersection, such as there may be two intersections, where there are two intersections, corresponding to 3 current intervals. Similarly, when there are three intersections, there are 4 current intervals. When a plurality of intersection points exist, the adopted method is similar, a current interval is determined according to the intersection points, and the switching frequency matched with each current interval is the switching frequency corresponding to the characteristic curve with the highest charging efficiency of the current interval.
Fig. 1 is a schematic flow chart of a charging method according to an embodiment of the present application, as shown in fig. 1, where the charging method is applied to an electronic device including a first fast charging chip and a battery, and the charging method includes: steps 101 to 104. Wherein,
101. An input current of the first fast charge chip is determined.
The input current of the first fast-charging chip may be determined by a current sampling circuit, for example, by using a sampling resistor, for example, the input current of the fast-charging chip may be obtained by using the voltage across the current sampling resistor 1 and the resistance value of the current sampling resistor 1 in fig. 2C.
It will be appreciated that, due to the fixed transformation relationship between the parameters, it is equivalent in some embodiments to determine the input current, and in some embodiments to sample the voltage across the determination resistor for subsequent operation.
102. It is determined whether the switching frequency of the switching circuit of the first fast charge chip matches the input current.
It should be noted that, before determining the input current of the first fast charging chip, the method further includes: when the first quick charge chip enters a quick charge mode, setting the switching frequency of a switching circuit to be a default switching frequency; the default switching frequency is a switching frequency that matches a current interval including a minimum current value. As shown in fig. 2A, the default switching frequency is the switching frequency corresponding to the curve a 1.
In some possible embodiments, determining whether the switching frequency of the switching circuit of the first fast-charging chip matches the input current includes: determining whether the input current is located in a current interval in which the switching frequencies are matched; if yes, determining that the switching frequency of a switching circuit of the fast charging chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the fast charging chip is not matched with the input current; the frequency in any current interval where the charging efficiency is highest is the switching frequency that matches any current interval.
103. If the switching frequency of the switching circuit of the first fast charging chip is not matched with the input current, the value of the switching frequency is modified to be matched with the input current.
104. The switching circuit is controlled to charge the battery at a switching frequency that matches the input current.
When the embodiment is adopted for charging, the switching frequencies of the switching circuits in different current intervals are different, and compared with the technical scheme that the switching frequencies are fixed in the prior art, the technical scheme provided by the application is beneficial to improving the charging efficiency according to the characteristic that the switching frequencies with highest charging efficiency in different current intervals are different.
In some possible embodiments, the method further comprises, if the switching frequency of the switching circuit of the first fast-charging chip matches the input current, not changing the value of the switching frequency.
In some possible embodiments, when the input current of the first fast charging chip is greater than a preset current threshold; the second fast charging chip can be started, and the switching frequency of the switching circuit of the second fast charging chip is set to be a value matched with the input current of the second fast charging chip; when the first fast charging chip is the same as the second fast charging chip, the switching frequency of the switching circuit of the second fast charging chip can be set to be consistent with the switching frequency of the switching circuit of the first fast charging chip; and when the input current of the first quick charge chip is smaller than a preset current threshold value, closing the second quick charge chip.
In one embodiment, as shown in fig. 2A to 2C, fig. 2A is an input current-charging efficiency characteristic curve of the fast-charging chip, a switching frequency of a switching circuit of the fast-charging chip corresponding to a curve a1 is 600KHz, a switching frequency of a switching circuit of the fast-charging chip corresponding to a curve a2 is 950KHz, and a switching frequency of a switching circuit of the fast-charging chip corresponding to a curve a3 is 1.2MHz.
As can be seen from the graph in fig. 2A, the current corresponding to the intersection of the three characteristic curves is 2.3A, the current 2.3A divides the current into two sections, one section having a current value smaller than 2.3A, one section having a value larger than 2.3A, the switching frequency matching the current section having a value smaller than 2.3A is 600KHz, and the switching frequency matching the current section having a value larger than 2.3A is 1.2MHz.
As shown in fig. 2B, in the charging process, steps 201 to 204 are specifically included, wherein,
201. And entering a quick charge state.
In some embodiments, the detection module may detect whether to enter the fast-charging mode, for example, if it is detected that the charging interface is connected by a matched wired or wireless charging module, it is determined that the fast-charging chip enters the fast-charging mode. It will be appreciated that other means of determining whether to enter the fast charge mode may be used, as is not limited herein.
202. The switching frequency was set to 600KHz.
203. And judging whether the input current of the quick charge chip is larger than 2.3A.
If the input current of the fast charging chip is greater than 2.3A, the switching frequency is set to be 1.2M. If the input current of the fast charging chip is not more than 2.3A, the switching frequency is not changed, and the switching frequency is 600KHz.
204. The switching frequency is set to 1.2MHz.
In one embodiment, an electronic device includes a sampling resistor connected to an input of a fast charge chip, the fast charge chip comprising: an amplifier, a comparator, a register, and a switching circuit; determining whether the switching frequency of the switching circuit of the fast charging chip is matched with the input current, and acquiring sampling voltages at two ends of the sampling resistor by adopting the following method; amplifying the sampling voltage through an amplifier, and comparing the amplified sampling voltage with a voltage value preset by the comparator; the reference resistor is the resistance value of the resistor between the interface and the ground in the branch circuit corresponding to the preset current; and triggering a switching circuit to switch the switching frequency of the first quick charge chip into the switching frequency matched with the input current and stored in the register according to the comparison result.
The sampling voltage is amplified by the amplifier and then is input into one input end of the comparator; comparing the voltage obtained by amplifying the sampling voltage by the amplifier with a voltage value preset by a comparator; and triggering a switching circuit to switch the switching frequency of the first quick charge chip into the switching frequency matched with the input current and stored in the register according to the comparison result. For example, an electronic device implementation of the architecture shown in fig. 2C may be employed. Specifically, the voltage at two ends of the current sampling resistor can be used as the input of an amplifier, the output of the amplifier is connected with one input end of a comparator, the other end of the comparator is provided with a preset current equivalent reference voltage (which can be realized by a pull-up resistor and a power supply), when the amplified voltage of the current sampling resistor is larger than the preset current equivalent reference voltage, the comparator outputs a high signal, controls the selection switch to select the preset frequency in the frequency 1 register, and sends the high signal to the clock circuit and the driving circuit to control the switching circuit. When the amplified current sampling resistor voltage is smaller than the preset current equivalent reference voltage, the comparator outputs a low signal, controls the selection switch to select the preset frequency in the frequency 2 register, and sends the low signal to the clock circuit and the driving circuit to control the switching circuit. It should be noted that, in this embodiment, the capacitors connected to the switching circuit generally include two sets, each set includes 3 capacitors, so that in order to save space, in this embodiment of the present application, a portion of the capacitors may be reduced, for example, one capacitor or two capacitors in each set may be removed, for example, the capacitors C1 and C4 are reserved, and it is feasible to reduce the capacitors C2, C3, C5 and C6, which is beneficial to implementing miniaturization of the electronic device.
In another embodiment, as shown in fig. 3A and 3B, in this embodiment, the difference from the embodiment shown in fig. 2C is that the input current-charging efficiency characteristic curve of the switching circuit of the fast charging chip has two intersections, the current is divided into 3 sections correspondingly, and accordingly, 3 switching frequency values are matched with each current section, and the three switching frequencies can be a default frequency, a frequency stored in a frequency 1 register, and a frequency stored in a frequency 2 register, respectively. In order to realize the switching of the switching frequency, the logic structure shown in fig. 3B may be set among the node a, the node B, the node a_, and the node b_ in fig. 3A. The corresponding logical relationships are shown in table 1.
TABLE 1
A B A- B-
1 1 1 0 Frequency 1 register
1 0 1 0 Frequency 1 register
0 1 0 1 Frequency 2 register
0 0 0 0 Default frequency
In another embodiment, as shown in fig. 4A, the difference from the previous embodiment includes that the voltage across the current sampling resistor is input to an analog-to-digital converter (analog digital converter, ADC), the ADC outputs a digital signal corresponding to the equivalent current, the digital signal is connected to one input terminal of the comparator, and the other input terminal of the comparator is connected to the frequency 1 current upper limit register and the frequency 1 current lower limit register, and the comparator compares and controls the change-over switch. In this embodiment two comparators are included, one input of the other comparator being connected to the output of the ADC and the other input being connected to a frequency 2 current up register and a frequency 2 current down limit register.
In this embodiment, the input current-charging efficiency characteristic curve of the switching circuit of the fast charging chip has two intersections, and correspondingly divides the current into 3 sections, and correspondingly, 3 switching frequencies are respectively matched with each current section, and the three switching frequencies can be respectively a frequency stored in a frequency 1 register, a frequency stored in a frequency 2 register, and a default frequency (third frequency). According to the comparison result of the comparator, the control selection switch selects one of the preset frequency in the frequency 1 register, the preset frequency stored in the frequency 2 register or the default frequency, and sends the selected frequency to the clock circuit and the driving circuit to control the switch circuit.
For example, the default frequency may be 600KHz, and the flow during charging is shown in fig. 4B, which includes steps 401 to 406. Wherein,
401. And entering a quick charge state.
402. The switching frequency is set to a default frequency, such as 600KHz.
403. It is determined whether the current is greater than the current a and less than the current B.
If yes, go to step 404, if no, go to step 405.
404. The switching frequency is set to frequency 1. Then, step 403 is performed.
405. It is determined whether the current is greater than current B.
If yes, go to step 406; if not, go to step 402.
406. The switching frequency is set to frequency 2. Step 403 is then performed.
The circuit for determining the switching frequency of the switching circuit may be disposed inside the fast-charging chip, or may be disposed outside the fast-charging chip, or may be a digital circuit or an analog circuit.
In the embodiments shown in fig. 2C, 3A and 4A, the circuit for determining the switching frequency of the switching circuit is provided inside the fast-charging chip.
As shown in fig. 5, in the embodiment shown in the figure, a circuit for controlling a switching frequency of a switching circuit is provided outside a fast charging chip, and an electronic device includes: the system on a chip (SOC) chip, the fast charge chip, the ADC chip, and the SOC chip are located outside the fast charge chip. The terminal voltage of the sampling resistor 2 is connected with the input end of the AC chip, the ADC chip processes the terminal voltage to obtain a digital signal equivalent to the input current, the switching frequency of the switching circuit is determined according to the corresponding relation between the output of the ADC and the current stored in the SOC chip and the switching frequency, and the SOC chip transmits the determined switching chip to the fast charging chip to control the switching frequency of the switching circuit.
As shown in fig. 6A and 6B, in some possible embodiments, the terminal voltage of the sampling resistor is connected to the ADC chip, and it is understood that in some embodiments, the terminal voltage of the sampling resistor may be connected to the input terminal of the amplifier, the amplifier and the comparator may be used in combination, and the ADC circuit and the circuit including the amplifier and the comparator may be a structure outside the fast-charging chip or may be located in the fast-charging chip.
The terminal voltage of the sampling resistor can be connected into an amplifier for amplification, and then connected into a comparator or an ADC to obtain the current value or the current interval. And then determining the switching frequency matched with the current according to the input current-charging efficiency characteristic table of the fast charging chip, and then issuing the determined switching frequency to the fast charging chip.
In some embodiments, the electronic device may include a plurality of fast charging chips, if the working efficiency of the plurality of fast charging chips is higher than a certain current, the switching frequency of each fast charging chip in the work of the plurality of fast charging chips needs to be configured, the plurality of fast charging chips perform switching frequency setting according to respective current-charging efficiency characteristics, and when the working efficiency of a single fast charging chip is high below a certain current, the single fast charging chip is set to work, and the single fast charging chip performs frequency configuration according to respective current-charging efficiency characteristics. For example, if the electronic device includes two fast charging chips: the first quick-charging chip and the second quick-charging chip. Steps 601 to 607 may be included when charging. Wherein,
601. And entering a quick charge state.
602. The switching frequency of the first fast charge chip is set to 600KHz.
603. And judging whether the input current of the first quick charge chip is larger than 2.3A.
If the input current of the first fast charging chip is greater than 2.3A, step 604 is performed; if the input current of the first fast charge chip is not greater than 2.3A, step 602 is performed.
604. The switching frequency of the first fast charge chip is set to 1.2MHz.
605. And judging whether the input current of the first quick charge chip is larger than 4.6A.
If yes, go to step 607; if not, go to step 606.
606. And closing the second quick charge chip.
607. The second fast charge chip is started and the switching frequency is set to 1.2MHz.
According to the embodiment, when the current is larger than the threshold value, the plurality of quick charging chips can be controlled to start to operate, and the charging efficiency is improved.
The embodiment of the application also provides a charging device which is applied to the electronic equipment comprising the first quick-charging chip and the battery, and comprises: the first determining unit is used for determining the input current of the first quick charging chip; a second determining unit, configured to determine whether a switching frequency of a switching circuit of the first fast charging chip is matched with an input current; the processing unit is used for not changing the value of the switching frequency when the switching frequency of the switching circuit of the first quick charging chip is matched with the input current; when the switching frequency of the switching circuit of the first quick charge chip is not matched with the input current, modifying the value of the switching frequency to be matched with the input current; and a charging unit for controlling the switching circuit to charge the battery at a switching frequency matched with the input current.
In some possible embodiments, the second determining unit is specifically configured to determine whether the input current is within a current interval in which the switching frequencies match; if yes, determining that the switching frequency of a switching circuit of the fast charging chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the fast charging chip is not matched with the input current; the frequency in any current interval where the charging efficiency is highest is the switching frequency that matches any current interval.
In some possible implementations, the processing unit is further configured to set a switching frequency of the switching circuit to a default switching frequency when the first fast-charging chip enters a fast-charging mode; the default switching frequency is a switching frequency that matches a current interval including a minimum current value.
In some possible embodiments, the processing unit is further configured to, when the input current of the first fast charging chip is greater than a preset current threshold, further include a second fast charging chip; triggering and starting the second quick-charging chip, and setting the switching frequency of a switching circuit of the second quick-charging chip to be a value matched with the input current of the second quick-charging chip; and when the input current of the first quick charge chip is smaller than a preset current threshold value, closing the second quick charge chip.
In some possible embodiments, the first determining unit is configured to determine, by means of a current sampling circuit, an input current of the first fast charging chip.
In some possible implementations, the electronic device includes a sampling resistor connected to an input of a first fast-charging chip, the first fast-charging chip including the second determining unit and the processing unit.
In some possible embodiments, the electronic device includes a sampling resistor connected to the input of the first fast-charging chip, and the second determining unit and the processing unit are located outside the first fast-charging chip.
Possible implementation manners of each module may be referred to the descriptions of the previous embodiments, and are not repeated herein.
Next, an electronic device according to an embodiment of the present application will be described.
Fig. 7 is a schematic structural diagram of an electronic device 700 according to an embodiment of the present application, which may specifically be a mobile phone, a smart watch, a portable wearable device, or the like. Referring to fig. 7, the electronic device 700 may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (universal serial bus, USB) interface 730, a charge management module 740, a power management module 741, a battery 742, an antenna 1, an antenna 2, a mobile communication module 750, a wireless communication module 760, an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, an earphone interface 770D, a sensor module 780, keys 790, a motor 791, an indicator 792, a camera 793, a screen 794, a subscriber identity module (subscriber identification module, SIM) card interface 795, and the like. The sensor module 780 may include, among other things, a pressure sensor 780A, a gyroscope sensor 780B, an air pressure sensor 780C, a magnetic sensor 780D, an acceleration sensor 780E, a distance sensor 780F, a proximity light sensor 780G, a fingerprint sensor 780H, a temperature sensor 780J, a touch sensor 780K, an ambient light sensor 780L, a bone conduction sensor 780M, and the like.
Processor 710 may include one or more processing units such as: processor 710 may include an application processor AP, an audio digital signal processor ADSP, a modem processor graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 700, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 710 for storing instructions and data. In some embodiments, the memory in processor 710 is a cache memory. The memory may hold instructions or data that has just been used or recycled by the processor 710. If the processor 710 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 710 is reduced, thereby improving the efficiency of the system.
The electronic device 700 implements display functions through a GPU, a screen 794, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the screen 794 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 710 may include one or more GPUs that execute program instructions to generate or change display information.
The screen 794 is used to display images, video, and the like. The screen 794 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, microLed, micro-OLED, a quantum dot LIGHT EMITTING diodes (QLED), or the like. In some embodiments, the electronic device 700 may include 1 or N screens 794, N being an integer greater than 1.
The electronic device 700 may implement shooting functions through an ISP, a camera 793, a video codec, a GPU, a screen 794, an application processor, and the like.
The ISP is used to process the data fed back by the camera 793. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 793.
The camera 793 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 700 may include 1 or N cameras 793, N being an integer greater than 1.
External memory interface 720 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of electronic device 700. The external memory card communicates with the processor 710 via an external memory interface 720 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
Internal memory 721 may be used to store computer-executable program code that includes instructions. The processor 710 performs various functional applications and data processing of the electronic device 700 by executing instructions stored in the internal memory 721. The internal memory 721 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created by the electronic device 700 during use, and so forth. In addition, the internal memory 721 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The acceleration sensor 780E may detect the magnitude of acceleration of the electronic device 700 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 700 is stationary. The acceleration sensor 780E can also be used to identify the gesture of the electronic device 700, and can be applied to applications such as horizontal-vertical screen switching and pedometers. Of course, the acceleration sensor 780E may also be combined with the gyro sensor 780B to recognize the gesture of the electronic device 700, and be applied to the landscape/portrait switching.
The gyro sensor 780B may be used to determine the motion pose of the electronic device 700. In some embodiments, the angular velocity of electronic device 700 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 780B. The gyro sensor 780B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 780B detects the shake angle of the electronic device 700, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 700 through the reverse motion, so as to realize anti-shake. The gyro sensor 780B can also be used for landscape and portrait screen switching, navigation, and somatosensory of game scenes.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 700. In other embodiments of the application, electronic device 700 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The electronic device provided by the embodiment of the application can be a User Equipment (UE), such as a mobile terminal (e.g., a mobile phone), a tablet computer, a handheld computer, a smart watch, a personal digital assistant (personal DIGITAL ASSISTANT, PAD) and other devices.
In addition, an operating system is run on the components. Such as Android open source operating systems developed by google corporation.
The software system of the electronic device 700 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In order to more clearly illustrate the display optimization method during screen rotation provided by the embodiment of the application, the embodiment of the application takes an Android (Android) system with a layered architecture as an example, and illustrates a software system of the electronic device 700.
Fig. 8 is a block diagram of a software system of an electronic device 700 according to an embodiment of the present application. Referring to fig. 8, an electronic device may include a hardware layer and a software layer, wherein an Android system of a layered architecture may include an application layer, an application framework layer, a system library layer, and a kernel layer. In some alternative embodiments, the system of the electronic device may also include a hierarchy not mentioned by the above technical architecture, such as Android Runtime (Android run).
The application layer may include a series of application packages such as navigation applications, music applications, video applications, and the like. As shown in fig. 8, the application packages may include applications for charging, video, chat, etc., as well as System user interfaces (System UI).
The charging application is used for managing the charging process, and the video, chat, voice and other applications are used for providing corresponding services for users. For example, a user may watch video using a video application, chat with other users using a chat application, listen to music using a music application, respond to voice instructions of the user using a voice assistant, and so forth.
SystemUI is used for managing a human-computer interface (UI) of the electronic device, and SystemUI is used for managing and displaying the synthesized images in a screen in the embodiment of the application.
The application framework layer provides an Application Programming Interface (API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 8, the application framework layer may include a Window MANAGE SERVICE (WMS), a display rotation module (also known as DisplayRotation), an application management service module (ACTIVITY MANAGE SERVICE, AMS), and an Input management module (also known as Input), etc.
WMSs are used to manage windows. The window manager can acquire the size of the screen, judge whether a status bar exists, cut out the screen by matting the image in the screen, and the like. In the embodiment of the application, the WMS can create and manage the window corresponding to the application.
The display rotation module is used for controlling the screen to rotate, and the screen displays the layout of a vertical screen or a horizontal screen through rotation. For example, when it is determined that screen rotation is required, the Surfaceflinger is notified to switch the horizontal and vertical screens of the application interface.
The AMS serves to launch a specific application according to a user's operation. For example, after the image is synthesized, the primary key of the image is triggered to be displayed in the screen, after the image is displayed, the image which is determined to need to be subjected to the matting operation is triggered to be subjected to the matting operation, and an application stack corresponding to the video application is created, so that the video application can normally run.
The system library layer may include a plurality of functional modules, such as: sensor modules (also known as sensors) and SurfaceFlinger.
The sensor module is used for acquiring data acquired by the sensor, such as acquiring ambient light under a screen. And collecting the gravity direction information of the electronic equipment. Or the sensor module can also adjust the brightness of the screen according to the ambient light and determine the horizontal and vertical screen state information of the electronic equipment according to the gravity direction information of the electronic equipment, wherein the horizontal and vertical screen state information is used for indicating whether the electronic equipment is in a horizontal screen state or a vertical screen state.
Surfaceflinger is a system service for the creation, control, and management of layers.
In addition, the system library layer may further include: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. In the embodiment of the application, the kernel layer at least comprises a touch driving module and a display driving module.
The display driving module is used for displaying the synthesized image in the screen according to the module of the application framework layer and the image data provided by the application program of the application layer. For example, the video application communicates a frame of image data of the video to a display driver module, which displays a frame of image of the video on the touch screen based on the image data. SystemUI transmits the image data to a display driving module, and the display driving module displays the synthesized image on a screen.
The touch control driving module is used for monitoring capacitance values of all areas of the touch screen. When a user clicks or slides on the touch screen, the capacitance value of the clicked or slid area can change, the touch control driving module can monitor the change of the capacitance value of each area on the touch screen and send a capacitance value change message to the input management module, and the capacitance value change message carries information such as the change amplitude of the capacitance value (or a capacitance sampling value) of each area of the touch screen and the change time.
The input management module can determine touch operation according to the reported capacitance value change message, and then sends the identified touch operation to other modules. The touch operation herein may include a click operation, a drag operation, and a specific gesture operation (e.g., a slide-up gesture operation, a slide-down gesture operation, etc.).
The hardware layer includes a screen, an ambient light sensor, etc., for detecting ambient light information under the screen, etc. When the ambient light sensor has a processing function, image information corresponding to the matting operation can be obtained, and real ambient light information is determined according to the image information of the image obtained by the matting operation and the detected ambient information under the screen. And generating an adjusting signal for adjusting the brightness of the screen according to the real ambient light information.
The above technical architecture exemplifies modules and devices in an electronic device that may be involved in the present application. In practical applications, the electronic device may include all or part of the modules and devices of the above technical architecture, and other modules and devices not mentioned in the above technical architecture, and of course, may also include only the modules and devices of the above technical architecture, which is not limited in this embodiment.
In order to facilitate understanding of the charging method provided by the embodiment of the present application, the implementation manner of the charging method provided by the present application is described below by taking an electronic device as an example of a mobile phone in conjunction with the technical architecture of the electronic device shown in fig. 8.
The charge management module 740 in fig. 7 includes a fast charge chip that triggers the start of a fast charge mode when the charge interface is connected to the charge cord. It will be appreciated that the initiation of the fast charge mode may also be triggered by wireless means, such as being placed on a charging panel for charging the electronic device. Determining the input current of a quick charge chip; determining whether the switching frequency of a switching circuit of the fast charging chip is matched with the input current; when the switching frequency of the switching circuit of the fast charging chip is matched with the input current, the value of the switching frequency is not changed; when the switching frequency of the switching circuit of the quick charge chip is not matched with the input current, modifying the value of the switching frequency to be matched with the input current; the switching circuit is controlled to charge the battery at a switching frequency that matches the input current. Determining whether the switching frequency of the switching circuit of the fast-charging chip is matched with the input current comprises the following steps: determining whether the input current is located in a current interval in which the switching frequencies are matched; if yes, determining that the switching frequency of a switching circuit of the fast charging chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the fast charging chip is not matched with the input current; the frequency in any current interval where the charging efficiency is highest is the switching frequency that matches any current interval.
When the charging is carried out, the switching frequencies of the switching circuits in different current intervals are different, and compared with the technical scheme that the switching frequencies are fixed in the prior art, the technical scheme provided by the application is beneficial to improving the charging efficiency according to the characteristic that the switching frequencies with highest charging efficiency in different current intervals are different.
The embodiment of the application also provides electronic equipment, which comprises: a memory and one or more processors, the memory coupled to the processors; wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the sub-device to perform the steps of the various method embodiments described above.
The embodiments of the present application also provide a computer-readable storage medium storing a computer program capable of implementing the steps in the above-described method embodiments when the computer program is executed by a processor.
Embodiments of the present application provide a computer program product comprising a computer program enabling the implementation of the steps of the method embodiments described above, when the computer program is executed by a processor.
The present application may be implemented in whole or in part by a computer program which, when executed by a processor, performs the steps of the various method embodiments described above, and which may be embodied in a computer readable storage medium. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a camera device/electronic apparatus, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random accessmemory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed method and electronic device may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (14)

1. The charging method is characterized by being applied to electronic equipment comprising a first quick-charging chip and a battery, wherein the electronic equipment comprises a sampling resistor connected with an input end of the first quick-charging chip, and the first quick-charging chip comprises: an amplifier, a comparator, a register, and a switching circuit, the method comprising:
determining the input current of the first quick charge chip;
According to the intersection point of the input current-charging efficiency characteristic curve of the first quick charging chip, a plurality of current intervals are obtained, the corresponding switching frequencies are different when the charging efficiency of different current intervals is highest, the switching frequency matched with each current interval is the switching frequency corresponding to the characteristic curve of the charging efficiency of the current interval, and whether the switching frequency of the switching circuit of the first quick charging chip is matched with the input current or not is determined; the determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes: acquiring sampling voltages at two ends of the sampling resistor; amplifying the sampling voltage through the amplifier, and comparing the amplified sampling voltage with a voltage value preset by the comparator; triggering the switching circuit to switch the switching frequency of the first quick charge chip to the switching frequency matched with the input current and stored in the register according to the comparison result;
when the switching frequency of the switching circuit of the first quick charge chip is not matched with the input current, modifying the value of the switching frequency to be matched with the input current;
the switching circuit is controlled to charge the battery at a switching frequency that matches the input current.
2. The method of claim 1, wherein the determining whether the switching frequency of the switching circuit of the first fast charge chip matches the input current comprises:
Determining whether the input current is located in a current interval in which the switching frequencies are matched; if yes, determining that the switching frequency of a switching circuit of the quick charge chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the quick charge chip is not matched with the input current; the frequency with highest charging efficiency in any current interval is the switching frequency matched with the any current interval.
3. The method of claim 1, wherein prior to said determining the input current of the first fast charge chip, the method further comprises:
When the first quick charge chip enters a quick charge mode, setting the switching frequency of the switching circuit to be a default switching frequency; the default switching frequency is a switching frequency that matches a current interval including a minimum current value.
4. A method according to any one of claims 1 to 3, wherein the electronic device further comprises a second fast-charging chip, the method further comprising:
when the input current of the first quick charge chip is larger than a preset current threshold value;
starting the second quick charge chip, and setting the switching frequency of a switching circuit of the second quick charge chip to be a value matched with the input current of the second quick charge chip;
And when the input current of the first quick charge chip is smaller than the preset current threshold, closing the second quick charge chip.
5. The method of any one of claims 1 to 4, wherein the determining the input current of the first fast charge chip comprises:
And determining the input current of the first quick charge chip through a current sampling circuit.
6. The utility model provides a charging device, its characterized in that is applied to the electronic equipment that includes first quick charge chip and battery, electronic equipment includes with the sampling resistance that first quick charge chip input links to each other, first quick charge chip includes: an amplifier, a comparator, a register and a switching circuit, the charging device comprising:
a first determining unit, configured to determine an input current of the first fast charging chip;
The second determining unit is used for obtaining a plurality of current intervals according to the intersection point of the input current-charging efficiency characteristic curve of the first quick charging chip, wherein the corresponding switching frequencies are different when the charging efficiency of different current intervals is highest, the switching frequency matched with each current interval is the switching frequency corresponding to the characteristic curve of the charging efficiency of the current interval, and whether the switching frequency of the switching circuit of the first quick charging chip is matched with the input current or not is determined; determining whether a switching frequency of a switching circuit of the first fast charge chip matches the input current includes: acquiring sampling voltages at two ends of the sampling resistor; amplifying the sampling voltage through the amplifier, and comparing the amplified sampling voltage with a voltage value preset by the comparator; triggering the switching circuit to switch the switching frequency of the first quick charge chip to the switching frequency matched with the input current and stored in the register according to the comparison result;
A processing unit, configured to modify, when a switching frequency of a switching circuit of the first fast charging chip does not match the input current, a value of the switching frequency to a value that matches the input current;
And the charging unit is used for controlling the switching circuit to charge the battery at a switching frequency matched with the input current.
7. The charging device according to claim 6, wherein,
The second determining unit is specifically configured to determine whether the input current is located in a current interval in which the switching frequency is matched; if yes, determining that the switching frequency of a switching circuit of the quick charge chip is matched with the input current; if not, determining that the switching frequency of the switching circuit of the quick charge chip is not matched with the input current; the frequency with highest charging efficiency in any current interval is the switching frequency matched with the any current interval.
8. The charging device according to claim 6, wherein,
The processing unit is further configured to set a switching frequency of the switching circuit to a default switching frequency when the first fast-charging chip enters a fast-charging mode; the default switching frequency is a switching frequency that matches a current interval including a minimum current value.
9. The charging device according to any one of claims 6 to 8, further comprising a second fast charging chip,
The processing unit is further used for when the input current of the first quick charging chip is larger than a preset current threshold value; triggering and starting a second quick charging chip, and setting the switching frequency of a switching circuit of the second quick charging chip to be a value matched with the input current of the second quick charging chip;
And when the input current of the first quick charge chip is smaller than the preset current threshold, closing the second quick charge chip.
10. The charging device according to any one of claims 6 to 9, wherein,
The first determining unit is used for determining the input current of the first quick charging chip through the current sampling circuit.
11. The charging device according to any one of claims 6 to 10, wherein,
The first quick charge chip comprises the second determining unit and the processing unit.
12. The charging device according to any one of claims 6 to 10, wherein the second determination unit and the processing unit are located outside the first quick-charge chip.
13. An electronic device, comprising: a memory and one or more processors, the memory coupled with the processors; wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-5.
14. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-5.
CN202310612690.5A 2023-05-26 2023-05-26 Charging method, charging device, electronic apparatus, and readable storage medium Active CN116826892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310612690.5A CN116826892B (en) 2023-05-26 2023-05-26 Charging method, charging device, electronic apparatus, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310612690.5A CN116826892B (en) 2023-05-26 2023-05-26 Charging method, charging device, electronic apparatus, and readable storage medium

Publications (2)

Publication Number Publication Date
CN116826892A CN116826892A (en) 2023-09-29
CN116826892B true CN116826892B (en) 2024-06-21

Family

ID=88119391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310612690.5A Active CN116826892B (en) 2023-05-26 2023-05-26 Charging method, charging device, electronic apparatus, and readable storage medium

Country Status (1)

Country Link
CN (1) CN116826892B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117154900B (en) * 2023-10-30 2024-04-26 荣耀终端有限公司 Charging control method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108258348A (en) * 2018-02-13 2018-07-06 中兴通讯股份有限公司 Charging method and device, system, charging circuit, terminal, charging system
CN109802560A (en) * 2018-12-27 2019-05-24 南京矽力杰半导体技术有限公司 Switching capacitors and its control method
CN114498811A (en) * 2021-12-24 2022-05-13 荣耀终端有限公司 Charging management module, charging circuit, charging control method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6503138B2 (en) * 2016-02-05 2019-04-17 グァンドン オッポ モバイル テレコミュニケーションズ コーポレーション リミテッドGuangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charge control method
CN114070046B (en) * 2020-07-31 2024-04-09 华为技术有限公司 Voltage conversion circuit, control method thereof and electronic equipment
CN113098272B (en) * 2021-04-23 2022-01-25 陕西亚成微电子股份有限公司 Control method and circuit of switching power supply
US20220407337A1 (en) * 2021-06-22 2022-12-22 Intel Corporation Predictable battery power management apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108258348A (en) * 2018-02-13 2018-07-06 中兴通讯股份有限公司 Charging method and device, system, charging circuit, terminal, charging system
CN109802560A (en) * 2018-12-27 2019-05-24 南京矽力杰半导体技术有限公司 Switching capacitors and its control method
CN114498811A (en) * 2021-12-24 2022-05-13 荣耀终端有限公司 Charging management module, charging circuit, charging control method and electronic equipment

Also Published As

Publication number Publication date
CN116826892A (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN110462572B (en) Electronic device and control method thereof
KR102635373B1 (en) Image processing methods and devices, terminals and computer-readable storage media
US20160037067A1 (en) Method for generating image and electronic device thereof
US20150177903A1 (en) Method and apparatus for controlling scale resolution in electronic device
WO2021098609A1 (en) Method and device for image detection, and electronic device
US10347221B2 (en) Electronic device and method for controlling display thereof
CN111127509B (en) Target tracking method, apparatus and computer readable storage medium
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN109948581B (en) Image-text rendering method, device, equipment and readable storage medium
WO2019105457A1 (en) Image processing method, computer device and computer readable storage medium
US20230343305A1 (en) Electronic device and method for operating high speed screen of electronic device
CN116826892B (en) Charging method, charging device, electronic apparatus, and readable storage medium
CN110705614A (en) Model training method and device, electronic equipment and storage medium
CN110830645A (en) Operation method and electronic equipment
CN110677713B (en) Video image processing method and device and storage medium
CN111353946B (en) Image restoration method, device, equipment and storage medium
KR20180111242A (en) Electronic device and method for providing colorable content
WO2023216957A1 (en) Target positioning method and system, and electronic device
CN116433696B (en) Matting method, electronic equipment and computer readable storage medium
CN114004732A (en) Image editing prompting method and device, electronic equipment and readable storage medium
CN116225274A (en) Identification method and device for touch operation, electronic equipment and storage medium
CN111611414A (en) Vehicle retrieval method, device and storage medium
CN113469322B (en) Method, device, equipment and storage medium for determining executable program of model
KR102656963B1 (en) Electronic device and Method of controlling thereof
CN111596925A (en) Method, apparatus, computer device and medium for automatically generating code

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