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

By dynamically adjusting the switching frequency of the fast charging chip to match the input current, the problem of low charging efficiency in existing technologies is solved, achieving a more efficient charging effect.

WO2024245158A1PCT designated stage expired Publication Date: 2024-12-05HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/095297
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-26
Filing Date
2024-05-24
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

In existing technologies, the charging efficiency of electronic devices is low and cannot be effectively improved.

Method used

By determining the input current of the fast charging chip and adjusting the switching frequency of the switching circuit according to different current ranges, the frequency with the highest charging efficiency can be matched to achieve dynamic adjustment of the charging process.

Benefits of technology

It improves charging efficiency, especially in different current ranges, and optimizes the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024095297_05122024_PF_FP_ABST
    Figure CN2024095297_05122024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a charging method, a charging apparatus, an electronic device, and a readable storage medium. The charging method is applied to the electronic device comprising a first fast-charging chip and a battery, and the method comprises: determining an input current of the first fast-charging chip; determining whether switching frequency of a switching circuit of the first fast-charging chip matches the input current or not; when the switching frequency does not match the input current, modifying a value of the switching frequency to a value matching the input current; and controlling the switching circuit to charge the battery at the switching frequency matching the input current. In the present invention, the switching frequencies of the switching circuits in different current intervals are different during charging. Compared with technical schemes where the switching frequency is fixed in the prior art, the technical scheme provided by the present invention can improve charging efficiency on the basis of a feature that the switching frequencies corresponding to the highest charging efficiency are different in different current intervals.
Need to check novelty before this filing date? Find Prior Art

Description

Charging method, charging device, electronic device and readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on May 26, 2023, with application number 202310612690.5 and application name “Charging method, charging device, electronic device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of battery charging, and in particular to a charging method, a charging device, an electronic device, and a readable storage medium. Background Art

[0003] With the popularization of electronic devices such as mobile phones and tablets, more and more applications are being used on electronic devices, power consumption is becoming faster and faster, and the demand for fast charging is becoming more and more widespread.

[0004] In related technologies, the charging efficiency of electronic devices is low, and how to improve the charging efficiency is a technical solution that needs to be solved urgently.

[0005] Summary of the Invention

[0006] The present application provides a charging method, a charging device, an electronic device and a readable storage medium, which are conducive to improving charging efficiency.

[0007] 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 comprising:

[0008] Determining an input current of the first fast-charging chip; wherein the fast-charging chip is a chip capable of quickly charging a battery in an electronic device;

[0009] Determining whether a switching frequency of a switching circuit of the first fast charging chip matches the input current;

[0010] When the switching frequency of the switching circuit of the first fast charging chip does not match the input current, modifying the value of the switching frequency to a value that matches the input current;

[0011] The switching circuit is controlled to charge the battery at a switching frequency matching the input current.

[0012] When charging, the switching frequencies of the switching circuits in different current ranges are different. Compared with the technical solution in the prior art in which the switching frequency is fixed, the technical solution provided by the present application is conducive to improving the charging efficiency according to the different characteristics of the switching frequencies with the highest charging efficiency in different current ranges.

[0013] As an example of the present application, when the switching frequency of the switching circuit of the first fast charging chip matches the input current, the value of the switching frequency is not changed;

[0014] As an example of the present application, determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes:

[0015] Determine whether the input current is within the current range that matches the switching frequency; if so, determine that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determine that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency in any current range is the switching frequency that matches the arbitrary current range.

[0016] As an example of the present application, before determining the input current of the first fast charging chip, the method further includes:

[0017] When the first fast charging chip enters the fast charging mode, the switching frequency of the switching circuit is set to a default switching frequency; the default switching frequency is a switching frequency that matches the current range including the minimum current value.

[0018] In some embodiments, a detection module can detect whether the device has entered fast charging mode. For example, if a matching wired or wireless charging module is detected to be connected to the charging port, the fast charging chip is determined to have entered fast charging mode. It is understood that other methods can also be used to determine whether the device has entered fast charging mode, which is not limited here.

[0019] As an example of the present application, the electronic device further includes a second fast charging chip, and the method further includes:

[0020] When the input current of the first fast charging chip is greater than a preset current threshold;

[0021] Starting the second fast charging chip and setting the switching frequency of the switching circuit of the second fast charging chip to a value that matches the input current of the second fast charging chip;

[0022] When the input current of the first fast charging chip is less than the preset current threshold, the second fast charging chip is turned off.

[0023] As an example of the present application, determining the input current of the first fast charging chip includes:

[0024] The input current of the first fast charging chip is determined by a current sampling circuit.

[0025] As an example of the present application, the electronic device includes a sampling resistor connected to the input end of the first fast charging chip, and the first fast charging chip includes: an amplifier, a comparator, a register, and a switching circuit; determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes:

[0026] Obtain the sampled voltage across the sampling resistor;

[0027] amplifying the sampled voltage by the amplifier, and comparing the amplified sampled voltage with a voltage value preset by the comparator;

[0028] According to the result of the comparison, the switching circuit is triggered to switch the switching frequency of the first fast charging chip to the switching frequency stored in the register that matches the input current.

[0029] In a second aspect, the present application provides a charging device for an electronic device including a first fast charging chip and a battery, the charging device comprising:

[0030] A first determining unit, configured to determine an input current of the first fast charging chip;

[0031] a second determining unit, configured to determine whether a switching frequency of a switching circuit of the first fast charging chip matches the input current;

[0032] a processing unit, configured to modify a value of the switching frequency to a value that matches the input current when a switching frequency of the switching circuit of the first fast charging chip does not match the input current;

[0033] A charging unit is used to control the switching circuit to charge the battery at a switching frequency matching the input current.

[0034] As an example of the present application, the processing unit is also used to not change the value of the switching frequency when the switching frequency of the switching circuit of the first fast charging chip matches the input current.

[0035] As an example of the present application, the second determination unit is specifically used to determine whether the input current is within the current range that matches the switching frequency; if so, it is determined that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, it is determined that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency in any current range is the switching frequency that matches the arbitrary current range.

[0036] As an example of the present application, the processing unit is also used to set the switching frequency of the switching circuit to a default switching frequency when the first fast charging chip enters the fast charging mode; the default switching frequency is a switching frequency that matches the current interval including the minimum current value.

[0037] As an example of the present application, a second fast charging chip is also included;

[0038] The processing unit is further configured to, when the input current of the first fast charging chip is greater than a preset current threshold, trigger the start of the second fast charging chip and set the switching frequency of the switching circuit of the second fast charging chip to a value matching the input current of the second fast charging chip;

[0039] When the input current of the first fast charging chip is less than the preset current threshold, the second fast charging chip is turned off.

[0040] As an example of the present application, the first determination unit is used to determine the input current of the first fast charging chip through a current sampling circuit.

[0041] As an example of the present application, the electronic device includes a sampling resistor connected to the input end of the first fast charging chip, and the first fast charging chip includes the second determination unit and the processing unit.

[0042] As an example of the present application, the electronic device includes a sampling resistor connected to the input end of the first fast charging chip, and the second determination unit and the processing unit are located outside the first fast charging chip.

[0043] In a third aspect, the present application provides an electronic device comprising: a memory and one or more processors, wherein the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device performs the charging method as described in the first aspect or any possible implementation of the first aspect.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the charging method as described in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] FIG1 is a schematic flow chart of a charging method according to an embodiment of the present application;

[0046] FIG2A is a schematic diagram of input current-charging efficiency characteristics according to an embodiment of the present application;

[0047] FIG2B is a schematic flow chart of a charging method according to an embodiment of the present application;

[0048] FIG2C is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0049] FIG3A is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0050] FIG3B is a logic diagram between the comparator and the switch in FIG3A ;

[0051] FIG4A is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0052] FIG4B is a schematic flow chart of a charging method according to an embodiment of the present application;

[0053] FIG5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0054] FIG6A is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0055] FIG6B is a schematic flow chart of a charging method according to an embodiment of the present application;

[0056] FIG7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0057] FIG8 is a block diagram of a software system of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0059] It should be understood that the “multiple” mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, words such as “first” and “second” are used to distinguish between identical or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit them to be different.

[0060] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0061] The fast charging function is increasingly used in electronic devices such as mobile phones, smart watches, and wearable devices. For the sake of convenience, in the subsequent embodiments, the electronic devices are described using mobile phones as an example. It can be understood that the technical solutions in the embodiments are not limited to mobile phones, but can also be used for other electronic devices with fast charging functions.

[0062] In the prior art, when a mobile phone is fast-charging, the switching frequency of the switching circuit of the fast-charging chip is fixed, and the charging efficiency is low.

[0063] As shown in Figure 2A, it is a schematic diagram of the input current-charging efficiency characteristic curve corresponding to the switching circuit of a fast charging chip at different switching frequencies. Among them, the switching frequency of the switching circuit of the fast charging chip corresponding to curve a1 is 600KHz, the switching frequency of the switching circuit of the fast charging chip corresponding to curve a2 is 950KHz, and the switching frequency of the switching circuit of the fast charging chip corresponding to curve a3 is 1.2MHz. The parameter corresponding to the horizontal axis of Figure 2A is the input current of the fast charging chip, and the parameter corresponding to the vertical axis is the charging efficiency. It can be seen from Figure 2A that the three curves have an intersection, and the corresponding current is 2.3A. On the left side of the intersection, the charging efficiency corresponding to curve a1 is the highest, and on the right side of the intersection, the charging efficiency corresponding to curve a3 is the highest. For ease of understanding, the subsequent embodiments of this application will be described using the parameters of the fast charging chip as an example.

[0064] In the prior art, fast charging chips usually use a fixed switching frequency during the fast charging process, such as the switching frequency corresponding to a2. As can be seen from Figure 2A, in the two current intervals distinguished by the intersection, the charging efficiency corresponding to a2 is not the highest. This application is based on the characteristics that the switching frequencies corresponding to the highest charging efficiency in different current intervals are different. According to the intersection of the input current-charging efficiency characteristic curve of the fast charging chip, multiple current intervals can be obtained. The switching frequency matched to each current interval is the switching frequency corresponding to the characteristic curve with the highest charging efficiency in the current interval. This charging method is conducive to improving the charging efficiency of electronic devices. It can be understood that in some embodiments, there may be more than one intersection, for example, there may be two intersections. When there are two intersections, there are 3 current intervals. Similarly, when there are three intersections, there are 4 current intervals. When there are multiple intersections, the method used is similar. The current interval is determined according to the intersection, and the switching frequency matched to each current interval is the switching frequency corresponding to the characteristic curve with the highest charging efficiency in the current interval.

[0065] FIG1 is a flow chart of a charging method in an embodiment of the present application. As shown in FIG1 , the charging method in this embodiment is applied to an electronic device including a first fast charging chip and a battery. The charging method includes: steps 101 to 104.

[0066] 101. Determine the input current of the first fast charging chip.

[0067] The input current of the first fast charging chip can be determined using a current sampling circuit, such as a sampling resistor. As shown in Figure 2C, the input current of the fast charging chip can be obtained by using the voltage across the current sampling resistor 1 and the resistance value of the current sampling resistor 1.

[0068] It is understandable that, since there is a fixed conversion relationship between parameters, it is equivalent to determine the input current in some embodiments and perform subsequent operations by sampling and determining the voltage across the resistor in some embodiments.

[0069] 102. Determine whether the switching frequency of the switching circuit of the first fast charging chip matches the input current.

[0070] It should be noted that before determining the input current of the first fast-charging chip, the process also includes: when the first fast-charging chip enters fast-charging mode, setting the switching frequency of the switching circuit to a default switching frequency; the default switching frequency is a switching frequency that matches the current range that includes the minimum current value. As shown in Figure 2A, the default switching frequency is the switching frequency corresponding to curve a1.

[0071] In some possible implementations, 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 within a current range where the switching frequency matches; if so, determining that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determining that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency within any current range is the switching frequency that matches any current range.

[0072] 103. If the switching frequency of the switching circuit of the first fast charging chip does not match the input current, the value of the switching frequency is modified to a value that matches the input current.

[0073] 104. Control the switching circuit to charge the battery at a switching frequency that matches the input current.

[0074] When charging is performed using this embodiment, the switching frequencies of the switching circuits in different current ranges are different. Compared with the technical solution in the prior art in which the switching frequency is fixed, the technical solution provided by this application is conducive to improving the charging efficiency based on the different characteristics of the switching frequencies with the highest charging efficiency in different current ranges.

[0075] In some possible implementations, if the switching frequency of the switching circuit of the first fast charging chip matches the input current, the value of the switching frequency does not change.

[0076] In some possible implementations, 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 a value that matches 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; when the input current of the first fast charging chip is less than a preset current threshold, the second fast charging chip is turned off.

[0077] In one embodiment, as shown in Figures 2A to 2C, Figure 2A is the input current-charging efficiency characteristic curve of the fast charging chip, curve a1 corresponds to the switching frequency of the switching circuit of the fast charging chip is 600KHz, curve a2 corresponds to the switching frequency of the switching circuit of the fast charging chip is 950KHz, and curve a3 corresponds to the switching frequency of the switching circuit of the fast charging chip is 1.2MHz.

[0078] According to the curve in Figure 2A, the current corresponding to the intersection of the three characteristic curves is 2.3A. The current of 2.3A divides the current into two intervals: one is the interval with a current value less than 2.3A, and the other is the interval with a current value greater than 2.3A. The switching frequency that matches the current interval less than 2.3A is the switching frequency of 600KHz corresponding to curve a1, and the switching frequency that matches the current interval greater than 2.3A is the switching frequency of 1.2MHz corresponding to curve a3.

[0079] As shown in FIG2B , when charging is performed, the process specifically includes steps 201 to 204 , wherein:

[0080] 201. Enter fast charging state.

[0081] In some embodiments, a detection module can detect whether the device has entered fast charging mode. For example, if a matching wired or wireless charging module is detected to be connected to the charging port, the fast charging chip is determined to have entered fast charging mode. It is understood that other methods can also be used to determine whether the device has entered fast charging mode, which is not limited here.

[0082] 202. Set the switching frequency to 600KHz.

[0083] 203. Determine whether the input current of the fast charging chip is greater than 2.3A.

[0084] If the input current of the fast charging chip is greater than 2.3A, the switching frequency is set to 1.2MHz. If the input current of the fast charging chip is not greater than 2.3A, the switching frequency is unchanged and is 600KHz.

[0085] 204. Set the switching frequency to 1.2MHz.

[0086] In one embodiment, the electronic device includes a sampling resistor connected to the input end of the fast charging chip, and the fast charging chip includes: an amplifier, a comparator, a register and a switching circuit; to determine whether the switching frequency of the switching circuit of the fast charging chip matches the input current, the following method can be used to obtain the sampling voltage across the sampling resistor; the sampling voltage is amplified by the amplifier, and the amplified sampling voltage is compared with the 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 corresponding to the comparator and the preset current; according to the comparison result, the switching circuit is triggered to switch the switching frequency of the first fast charging chip to the switching frequency stored in the register that matches the input current.

[0087] The sampling voltage is amplified by the amplifier and input to an input terminal of the comparator; the voltage obtained after the sampling voltage is amplified by the amplifier is compared with the voltage value preset by the comparator; according to the result of the comparison, the switching circuit is triggered to switch the switching frequency of the first fast charging chip to the switching frequency stored in the register that matches the input current. For example, it can be implemented using an electronic device with the structure shown in Figure 2C. Specifically, the voltage across the current sampling resistor can be used as the input of the amplifier, the output of the amplifier is connected to one input terminal of the comparator, and the other end of the comparator is a preset current equivalent reference voltage (which can be achieved by a pull-up resistor and a power supply). When the amplified current sampling resistor voltage is greater than the preset current equivalent reference voltage, the comparator outputs a high signal, controls the selection switch to select the frequency preset in the frequency 1 register, and sends it to the clock circuit and the drive circuit to control the switch circuit. When the amplified current sampling resistor voltage is less than the preset current equivalent reference voltage, the comparator outputs a low signal, controls the selection switch to select the frequency preset in the frequency 2 register, and sends it to the clock circuit and the drive circuit to control the switch circuit. It should be noted that in this embodiment, the capacitors connected to the switching circuit generally include two groups in the prior art, each group including three capacitors. In order to save space, some of the capacitors can be reduced in the embodiment of the present application. For example, one or two capacitors can be removed from each group of capacitors. For example, capacitors C1 and C4 can be retained, and capacitors C2, C3, C5, and C6 can be streamlined. This is feasible, which is conducive to the miniaturization of electronic equipment.

[0088] In another embodiment, as shown in Figures 3A and 3B, in this embodiment, the difference from the embodiment shown in Figure 2C is that the input current-charging efficiency characteristic curve of the switching circuit of the fast charging chip has two intersections, corresponding to the current being divided into three intervals. Accordingly, there are three switching frequency values ​​that match each current interval, and the three switching frequencies can be the default frequency, the frequency stored in the frequency 1 register, and the frequency stored in the frequency 2 register. In order to achieve switching of the switching frequency, the logical structure shown in Figure 3B can be set between nodes A, B, A_, and B_ in Figure 3A. The corresponding logical relationships are shown in Table 1.

[0089] Table 1

[0090] In another embodiment, as shown in FIG4A , the difference from the previous embodiment is that the voltage across the current sampling resistor is input to an analog-to-digital converter (ADC), which outputs a digital signal corresponding to the equivalent current. This digital signal is connected to one input of a comparator, and the other input of the comparator is connected to the frequency 1 current upper limit register and the frequency 1 current lower limit register. The comparator controls the switching switch through comparison. In this embodiment, two comparators are included, one input of the other comparator is connected to the output of the ADC, and the other input is connected to the frequency 2 current upper limit register and the frequency 2 current lower limit register.

[0091] In this embodiment, the input current-charging efficiency characteristic curve of the switching circuit of the fast charging chip has two intersections, corresponding to the current being divided into three intervals. Accordingly, there are three switching frequencies that match each current interval. The three switching frequencies can be the frequency stored in the frequency 1 register, the frequency stored in the frequency 2 register, and the default frequency (third frequency). According to the comparison result of the comparator, the control selection switch selects the frequency preset in the frequency 1 register, the preset frequency stored in the frequency 2 register, or one of the default frequencies, and sends it to the clock circuit and the drive circuit to control the switching circuit.

[0092] For example, the default frequency may be 600KHz, and the charging process is shown in FIG4B , including steps 401 to 406.

[0093] 401. Enter fast charging state.

[0094] 402. Set the switching frequency to the default frequency, for example, set the switching frequency to 600KHz.

[0095] 403. Determine whether the current is greater than current A and less than current B.

[0096] If yes, go to step 404 ; if no, go to step 405 .

[0097] 404. Set the switching frequency to frequency 1. Then, execute step 403.

[0098] 405. Determine whether the current is greater than current B.

[0099] If yes, go to step 406; if no, go to step 402.

[0100] 406. Set the switching frequency to frequency 2. Then execute step 403.

[0101] It should be noted that the circuit for determining the switching frequency of the switching circuit can be set inside the fast charging chip or outside the fast charging chip, and can use a digital circuit or an analog circuit.

[0102] In the embodiments shown in FIG. 2C , FIG. 3A and FIG. 4A , the circuit for determining the switching frequency of the switching circuit is disposed inside the fast charging chip.

[0103] As shown in Figure 5, in the embodiment shown in the figure, the circuit that controls the switching frequency of the switching circuit is set outside the fast charging chip. The electronic device includes: a fast charging chip, an ADC chip, and a system-on-a-chip (SOC) chip. The ADC chip and the SOC chip are located outside the fast charging chip. The terminal voltage of sampling resistor 2 is connected to the input terminal of the AC chip. After processing, the ADC chip obtains a digital signal equivalent to the input current. The switching frequency of the switching circuit is determined based on the output of the ADC and the corresponding relationship between the current and switching frequency stored in the SOC chip. The SOC chip transmits the determined switching frequency to the fast charging chip to control the switching frequency of the switching circuit.

[0104] As shown in Figures 6A and 6B, in some possible embodiments, the terminal voltage of the sampling resistor is connected to the ADC chip. It can be understood that in some embodiments, the terminal voltage of the sampling resistor can also be connected to the input terminal of the amplifier. The amplifier and the comparator are used in combination. The ADC circuit and the circuit including the amplifier and the comparator can be structures outside the fast charging chip or located inside the fast charging chip.

[0105] The terminal voltage of the sampling resistor can be connected to an amplifier for amplification, and then connected to a comparator or ADC to obtain the current value or current range. Then, the switching frequency that matches the current is determined based on the input current-charging efficiency characteristic table of the fast charging chip, and the determined switching frequency is sent to the fast charging chip.

[0106] In some embodiments, the electronic device may include multiple fast charging chips. If the working efficiency of multiple fast charging chips is higher when the current is greater than a certain current, it is necessary to configure the switching frequency of each fast charging chip in the operation of the multiple fast charging chips, and the multiple fast charging chips are set to switch according to their respective current-charging efficiency characteristics. When the working efficiency of a single fast charging chip is high below a certain current, a single fast charging chip is set to work, and the frequency of the single fast charging chip is configured according to its respective current-charging efficiency characteristics. For example, if the electronic device includes two fast charging chips: a first fast charging chip and a second fast charging chip. When charging, steps 601 to 607 may be included. Among them,

[0107] 601. Enter fast charging state.

[0108] 602. Set the switching frequency of the first fast charging chip to 600KHz.

[0109] 603. Determine whether the input current of the first fast charging chip is greater than 2.3A.

[0110] If the input current of the first fast charging chip is greater than 2.3A, execute step 604; if the input current of the first fast charging chip is not greater than 2.3A, execute step 602.

[0111] 604. Set the switching frequency of the first fast charging chip to 1.2 MHz.

[0112] 605. Determine whether the input current of the first fast charging chip is greater than 4.6A.

[0113] If yes, execute step 607; if no, execute step 606.

[0114] 606. Turn off the second fast charging chip.

[0115] 607. Start the second fast charging chip and set the switching frequency to 1.2 MHz.

[0116] This embodiment can control multiple fast charging chips to start running when the current is greater than the threshold, which is beneficial to improving charging efficiency.

[0117] An embodiment of the present application also provides a charging device, which is applied to an electronic device including a first fast charging chip and a battery, and the charging device includes: a first determination unit, used to determine the input current of the first fast charging chip; a second determination unit, used to determine whether the switching frequency of the switching circuit of the first fast charging chip matches the input current; a processing unit, used to not change the value of the switching frequency when the switching frequency of the switching circuit of the first fast charging chip matches the input current; when the switching frequency of the switching circuit of the first fast charging chip does not match the input current, modify the value of the switching frequency to a value that matches the input current; and a charging unit, used to control the switching circuit to charge the battery at a switching frequency that matches the input current.

[0118] In some possible implementations, the second determination unit is specifically used to determine whether the input current is within the current range that matches the switching frequency; if so, it is determined that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, it is determined that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency in any current range is the switching frequency that matches any current range.

[0119] In some possible implementations, the processing unit is further used to set the switching frequency of the switching circuit to a default switching frequency when the first fast charging chip enters the fast charging mode; the default switching frequency is a switching frequency that matches the current range including the minimum current value.

[0120] In some possible embodiments, a second fast charging chip is further included, and the processing unit is further used to trigger the start of the second fast charging chip and set the switching frequency of the switching circuit of the second fast charging chip to a value matching the input current of the second fast charging chip when the input current of the first fast charging chip is greater than a preset current threshold; and turn off the second fast charging chip when the input current of the first fast charging chip is less than a preset current threshold.

[0121] In some possible implementations, the first determination unit is configured to determine the input current of the first fast charging chip through a current sampling circuit.

[0122] In some possible implementations, the electronic device includes a sampling resistor connected to an input terminal of a first fast charging chip, and the first fast charging chip includes a second determination unit and the processing unit.

[0123] In some possible implementations, the electronic device includes a sampling resistor connected to an input terminal of the first fast charging chip, and the second determination unit and the processing unit are located outside the first fast charging chip.

[0124] The possible implementation methods of each module can be found in the description of the previous embodiments and will not be repeated here.

[0125] Next, the electronic device involved in the embodiments of the present application is described.

[0126] FIG7 is a schematic diagram of the structure of an electronic device 700 provided in an embodiment of the present application, which may specifically be a mobile phone, a smart watch, a portable wearable device, etc. Referring to FIG7 , the electronic device 700 may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) interface 730, a charging 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, a button 790, a motor 791, an indicator 792, a camera 793, a screen 794, and a subscriber identification module (SIM) card interface 795, etc. Among them, the sensor module 780 may include 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, etc.

[0127] The processor 710 may include one or more processing units, for example, the processor 710 may include an application processor (AP), an audio digital signal processor (ADSP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0128] The controller may be the nerve center and command center of the electronic device 700. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0129] Processor 710 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 710 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 710. If processor 710 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 710 latency, and thus improves system efficiency.

[0130] Electronic device 700 implements display functionality through a GPU, screen 794, and an application processor. The GPU is a microprocessor for image processing that connects 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 modify display information.

[0131] Screen 794 is used to display images, videos, etc. Screen 794 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 700 may include one or N screens 794, where N is an integer greater than one.

[0132] The electronic device 700 can implement a shooting function through an ISP, a camera 793, a video codec, a GPU, a screen 794, and an application processor.

[0133] The ISP processes data fed back by camera 793. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 793.

[0134] The camera 793 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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 other format. In some embodiments, the electronic device 700 may include 1 or N cameras 793, where N is an integer greater than 1.

[0135] The external memory interface 720 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 700. The external memory card communicates with the processor 710 via the external memory interface 720 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0136] The internal memory 721 can be used to store computer executable program codes, which include instructions. The processor 710 executes various functional applications and data processing of the electronic device 700 by running the instructions stored in the internal memory 721. The internal memory 721 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created by the electronic device 700 during use (such as audio data, a phone book, etc.), etc. In addition, the internal memory 721 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0137] Accelerometer 780E can detect the magnitude of the acceleration of electronic device 700 in all directions (generally three axes). When electronic device 700 is stationary, it can detect the magnitude and direction of gravity. Accelerometer 780E can also be used to identify the posture of electronic device 700, which is used in applications such as landscape and portrait screen switching and pedometers. Of course, accelerometer 780E can also be combined with gyroscope 780B to identify the posture of electronic device 700, which is used in landscape and portrait screen switching.

[0138] The gyroscope sensor 780B can be used to determine the motion posture of the electronic device 700. In some embodiments, the angular velocity of the electronic device 700 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 780B. The gyroscope sensor 780B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 780B detects the angle of the electronic device 700 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 700 through reverse movement to achieve anti-shake. The gyroscope sensor 780B can also be used for horizontal and vertical screen switching, navigation, and somatosensory game scenes.

[0139] It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 700. In other embodiments of the present application, the electronic device 700 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0140] The electronic device provided in the embodiments of the present application may be user equipment (UE), such as a mobile terminal (such as a mobile phone), a tablet computer, a handheld computer, a smart watch, a personal digital assistant (PAD), and the like.

[0141] In addition, an operating system runs on the above components, such as the Android open source operating system developed by Google.

[0142] The software system of the electronic device 700 can adopt 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 in the embodiment of the present application, the embodiment of the present application takes the Android system with a layered architecture as an example to exemplify the software system of the electronic device 700.

[0143] Figure 8 is a block diagram of a software system for an electronic device 700 provided in an embodiment of the present application. Referring to Figure 8 , the electronic device may include a hardware layer and a software layer, wherein the layered Android system architecture may include an application layer, an application framework layer, a system library layer, and a kernel layer. In some optional embodiments, the system of the electronic device may also include layers not mentioned in the above technical architecture, such as the Android Runtime.

[0144] The application layer may include a series of application packages, such as navigation applications, music applications, and video applications. As shown in FIG8 , the application package may include applications such as charging, video, and chat, as well as the system user interface (System UI).

[0145] Charging apps manage the charging process, while video, chat, and voice apps provide users with relevant services. For example, users can watch videos using video apps, chat with other users using chat apps, listen to music using music apps, and respond to user voice commands using voice assistants.

[0146] SystemUI is used to manage the user interface (UI) of electronic devices. In the embodiment of the present application, SystemUI is used to manage image synthesis and display it on the screen.

[0147] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 8, the application framework layer can include a window management service (WMS), a display rotation module (also known as DisplayRotation), an activity management service (AMS), and an input management module (also known as Input).

[0148] WMS is used to manage window programs. The window manager can obtain the screen size, determine whether there is a status bar, cut out the image on the screen, take a screenshot, etc. In the embodiment of the present application, WMS can create and manage the window corresponding to the application.

[0149] The display rotation module is used to control screen rotation, so that the screen presents a portrait or landscape layout. For example, when it is determined that the screen needs to be rotated, Surfaceflinger is notified to switch the application interface between landscape and portrait.

[0150] AMS is used to launch specific applications based on user actions. For example, after an image is synthesized, it triggers the image to be displayed on the main screen. After the image is displayed, it triggers the cutout operation on the image that needs to be cutout, and creates the application stack corresponding to the video application to enable the normal operation of the video application.

[0151] The system library layer can include multiple functional modules, such as sensor module (also known as sensor) and SurfaceFlinger.

[0152] The sensor module is used to obtain sensor data, such as the ambient light below the screen and the direction of gravity of the electronic device. Alternatively, the sensor module can adjust the screen brightness based on the ambient light and determine the landscape or portrait orientation of the electronic device based on the direction of gravity of the electronic device. The landscape or portrait orientation information indicates whether the electronic device is in landscape or portrait mode.

[0153] Surfaceflinger is a system service used for layer creation, control, and management.

[0154] In addition, the system library layer can also include: surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

[0155] The kernel layer is a layer between hardware and software. In the embodiment of the present application, the kernel layer includes at least a touch driver module and a display driver module.

[0156] The display driver module is responsible for displaying a synthesized image on the screen based on image data provided by modules in the application framework layer and applications in the application layer. For example, a video application passes a frame of image data to the display driver module, which then displays the frame on the touch screen based on this image data. SystemUI passes the image data to the display driver module, which then displays the synthesized image on the screen.

[0157] The touch driver module monitors the capacitance of each area of ​​the touch screen. When a user taps or slides on the touch screen, the capacitance of the area being tapped or swiped changes. The touch driver module detects this change and sends a capacitance change message to the input management module. This message contains information such as the magnitude of the change in capacitance (or capacitance sampling value) for each area of ​​the touch screen and the time of the change.

[0158] The input management module can determine the touch operation based on the reported capacitance value change message and then send the recognized touch operation to other modules. The touch operation here can include click operation, drag operation, and specific gesture operation (such as swipe gesture operation, horizontal swipe gesture operation, etc.).

[0159] The hardware layer includes the screen and an ambient light sensor. The ambient light sensor is used to detect ambient light information below the screen. If the ambient light sensor has processing capabilities, it can obtain image information corresponding to the cutout operation, determine the actual ambient light information based on the image information obtained by the cutout operation and the detected ambient light information below the screen, and generate an adjustment signal to adjust the screen brightness based on the actual ambient light information.

[0160] The above technical architecture lists the modules and devices that may be involved in this application in an electronic device. In actual applications, the electronic device may include all or part of the modules and devices of the above technical architecture, as well as other modules and devices not mentioned in the above technical architecture. Of course, it may also include only the modules and devices of the above technical architecture, and this embodiment does not limit this.

[0161] To facilitate understanding of the charging method provided in the embodiment of the present application, the following first describes the implementation of the charging method provided in the present application in combination with the technical architecture of the electronic device shown in FIG8 , taking the electronic device as a mobile phone as an example.

[0162] The charging management module 740 in FIG7 includes a fast charging chip, which triggers the fast charging mode when the charging interface is connected to the charging cable. It is understandable that the fast charging mode can also be triggered wirelessly, such as by placing it on a charging panel used to charge electronic devices. Determine the input current of the fast charging chip; determine whether the switching frequency of the switching circuit of the fast charging chip matches the input current; when the switching frequency of the switching circuit of the fast charging chip matches the input current, do not change the value of the switching frequency; when the switching frequency of the switching circuit of the fast charging chip does not match the input current, modify the value of the switching frequency to a value that matches the input current; control the switching circuit to charge the battery at a switching frequency that matches the input current. Determine whether the switching frequency of the switching circuit of the fast charging chip matches the input current, including: determining whether the input current is within the current range where the switching frequency matches; if so, determine that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determine that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency in any current range is the switching frequency that matches any current range.

[0163] When charging, the switching frequencies of the switching circuits in different current ranges are different. Compared with the technical solution in the prior art in which the switching frequency is fixed, the technical solution provided by the present application is conducive to improving the charging efficiency according to the different characteristics of the switching frequencies with the highest charging efficiency in different current ranges.

[0164] An embodiment of the present application also provides an electronic device, comprising: a memory and one or more processors, wherein the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the sub-device executes the steps in the above-mentioned method embodiments.

[0165] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0166] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.

[0167] The present application implements all or part of the processes in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard drive, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0168] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0169] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0170] In the embodiments provided in this application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0171] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0172] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0173] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0174] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0175] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A charging method, characterized in that: Applied to an electronic device including a first fast charging chip and a battery, the method includes: Determining an input current of the first fast charging chip; Determine whether the switching frequency of the switching circuit of the first fast charging chip matches the input current; When the switching frequency of the switching circuit of the first fast charging chip does not match the input current, modifying the value of the switching frequency to a value matching the input current; The switching circuit is controlled to charge the battery at a switching frequency matching the input current.

2. The method according to claim 1, characterized in that The determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes: Determine whether the input current is within the current range that matches the switching frequency; if so, determine that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determine that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency in any current range is the switching frequency that matches the arbitrary current range.

3. The method according to claim 1, characterized in that Before determining the input current of the first fast charging chip, the method further includes: When the first fast charging chip enters the fast charging mode, the switching frequency of the switching circuit is set to a default switching frequency; the default switching frequency is a switching frequency that matches the current interval including the minimum current value.

4. The method according to any one of claims 1 to 3, characterized in that: The electronic device further includes a second fast charging chip, and the method further includes: When the input current of the first fast charging chip is greater than a preset current threshold; Starting the second fast charging chip, and setting the switching frequency of the switching circuit of the second fast charging chip to a value matching the input current of the second fast charging chip; When the input current of the first fast charging chip is less than the preset current threshold, the second fast charging chip is turned off.

5. The method according to any one of claims 1 to 4, characterized in that: The determining the input current of the first fast charging chip includes: The input current of the first fast charging chip is determined by a current sampling circuit.

6. The method according to any one of claims 1 to 5, characterized in that: The electronic device includes a sampling resistor connected to the input end 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: Obtain the sampled voltage across the sampling resistor; amplifying the sampled voltage by the amplifier, and comparing the amplified sampled voltage with a voltage value preset by the comparator; According to the comparison result, the switching circuit is triggered to switch the switching frequency of the first fast charging chip to the switching frequency stored in the register that matches the input current.

7. A charging device, characterized in that: Applicable to an electronic device including a first fast charging chip and a battery, the charging device includes: A first determining unit, used to determine the input current of the first fast charging chip; A second determination unit, used to determine whether the switching frequency of the switching circuit of the first fast charging chip matches the input current; A processing unit, configured to detect when the switching frequency of the switching circuit of the first fast charging chip does not match the input current When matching, modifying the value of the switching frequency to a value matching the input current; A charging unit is used to control the switch circuit to charge the battery at a switching frequency matching the input current.

8. The charging device according to claim 7, characterized in that: The second determination unit is specifically used to determine whether the input current is within the current interval of the switching frequency matching; if so, determine that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determine that the switching frequency of the switching circuit of the fast charging chip does not match the input current; The frequency with the highest charging efficiency in any current interval is the switching frequency that matches the arbitrary current interval.

9. The charging device according to claim 7, characterized in that: The processing unit is also used to set the switching frequency of the switching circuit to a default switching frequency when the first fast charging chip enters the fast charging mode; the default switching frequency is a switching frequency that matches the current interval including the minimum current value.

10. The charging device according to any one of claims 7 to 9, characterized in that: It also includes a second fast-charging chip. The processing unit is also used to, when the input current of the first fast charging chip is greater than a preset current threshold, trigger the start of the second fast charging chip and set the switching frequency of the switching circuit of the second fast charging chip to a value matching the input current of the second fast charging chip; When the input current of the first fast charging chip is less than the preset current threshold, the second fast charging chip is turned off.

11. The charging device according to any one of claims 7 to 10, characterized in that: The first determination unit is used to determine the input current of the first fast charging chip through a current sampling circuit.

12. The charging device according to any one of claims 7 to 11, characterized in that: The electronic device includes a sampling resistor connected to the input end of the first fast charging chip, The first fast charging chip includes the second determination unit and the processing unit.

13. The charging device according to any one of claims 7 to 11, characterized in that: The electronic device includes a sampling resistor connected to the input end of the first fast charging chip, and the second determination unit and the processing unit are located outside the first fast charging chip.

14. An electronic device, characterized in that: include: A memory and one or more processors, wherein the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-6.

15. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 6.

16. A charging method, characterized in that: Applicable to an electronic device including a first fast charging chip and a battery, the electronic device including a sampling resistor connected to an input end of the first fast charging chip, the first fast charging chip including: an amplifier, a comparator, a register and a switching circuit, the method including: Determining an input current of the first fast charging chip; According to the intersection of the input current-charging efficiency characteristic curve of the first fast charging chip, multiple current intervals are obtained. Different current intervals have different corresponding switching frequencies when the charging efficiency is the highest. The switching frequency matched by each current interval is the switching frequency corresponding to the characteristic curve with the highest charging efficiency in the current interval. It is determined whether the switching frequency of the switching circuit of the first fast charging chip matches the input current; the determination of whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes: obtaining a sampling voltage across the sampling resistor; The sampled voltage is amplified by the amplifier, and the amplified sampled voltage is compared with a voltage value preset by the comparator; according to the comparison result, the switching circuit is triggered to switch the switching frequency of the first fast charging chip to the switching frequency stored in the register and matching the input current; When the switching frequency of the switching circuit of the first fast charging chip does not match the input current, modifying the value of the switching frequency to a value matching the input current; The switching circuit is controlled to charge the battery at a switching frequency matching the input current.

17. The method according to claim 16, characterized in that The determining whether the switching frequency of the switching circuit of the first fast charging chip matches the input current includes: Determine whether the input current is within the current range that matches the switching frequency; if so, determine that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determine that the switching frequency of the switching circuit of the fast charging chip does not match the input current; the frequency with the highest charging efficiency in any current range is the switching frequency that matches the arbitrary current range.

18. The method according to claim 16, characterized in that Before determining the input current of the first fast charging chip, the method further includes: When the first fast charging chip enters the fast charging mode, the switching frequency of the switching circuit is set to a default switching frequency; the default switching frequency is a switching frequency that matches the current interval including the minimum current value.

19. The method according to any one of claims 16 to 18, characterized in that The electronic device further includes a second fast charging chip, and the method further includes: When the input current of the first fast charging chip is greater than a preset current threshold; Starting the second fast charging chip, and setting the switching frequency of the switching circuit of the second fast charging chip to a value matching the input current of the second fast charging chip; When the input current of the first fast charging chip is less than the preset current threshold, the second fast charging chip is turned off.

20. The method according to any one of claims 16 to 19, characterized in that The determining the input current of the first fast charging chip includes: The input current of the first fast charging chip is determined by a current sampling circuit.

21. A charging device, characterized in that: Applicable to an electronic device including a first fast charging chip and a battery, the electronic device including a sampling resistor connected to the input end of the first fast charging chip, the first fast charging chip including: an amplifier, a comparator, a register and a switching circuit, the charging device including: A first determining unit, used to determine the input current of the first fast charging chip; A second determination unit is used to obtain multiple current intervals according to the intersection of the input current-charging efficiency characteristic curve of the first fast charging chip. The corresponding switching frequencies when the charging efficiency is the highest in different current intervals are different. The switching frequency matched by each current interval is the switching frequency corresponding to the characteristic curve with the highest charging efficiency in the current interval. Determine whether the switching frequency of the switching circuit of the first fast charging chip matches the input current; determine whether the switching frequency of the switching circuit of the first fast charging chip matches the input current, including: obtaining the sampling voltage across the sampling resistor; amplifying the sampling voltage through the amplifier, and comparing the amplified sampling voltage with the voltage value preset by the comparator; triggering the switching circuit to switch the switching frequency of the first fast charging chip to the switching frequency stored in the register that matches the input current according to the comparison result; a processing unit, configured to modify the value of the switching frequency to a value matching the input current when the switching frequency of the switching circuit of the first fast charging chip does not match the input current; A charging unit is used to control the switch circuit to charge the battery at a switching frequency matching the input current.

22. The charging device according to claim 21, characterized in that: The second determination unit is specifically used to determine whether the input current is within the current interval of the switching frequency matching; if so, determine that the switching frequency of the switching circuit of the fast charging chip matches the input current; if not, determine that the switching frequency of the switching circuit of the fast charging chip does not match the input current; The frequency with the highest charging efficiency in any current interval is the switching frequency that matches the arbitrary current interval.

23. The charging device according to claim 21, characterized in that: The processing unit is also used to set the switching frequency of the switching circuit to a default switching frequency when the first fast charging chip enters the fast charging mode; the default switching frequency is a switching frequency that matches the current interval including the minimum current value.

24. The charging device according to any one of claims 21 to 23, characterized in that: It also includes a second fast-charging chip. The processing unit is also used to, when the input current of the first fast charging chip is greater than a preset current threshold, trigger the start of the second fast charging chip and set the switching frequency of the switching circuit of the second fast charging chip to a value matching the input current of the second fast charging chip; When the input current of the first fast charging chip is less than the preset current threshold, the second fast charging chip is turned off.

25. The charging device according to any one of claims 21 to 24, characterized in that: The first determination unit is used to determine the input current of the first fast charging chip through a current sampling circuit.

26. The charging device according to any one of claims 21 to 25, characterized in that: The first fast charging chip includes the second determination unit and the processing unit.

27. The charging device according to any one of claims 21 to 25, characterized in that: The second determination unit and the processing unit are located outside the first fast charging chip.

Citation Information

Patent Citations

  • Intelligent charger being adaptive to intelligent battery

    CN106961131A

  • Charging method and device, system, charging circuit, terminal and charging system

    CN108258348A

  • Switched capacitor converter and control method thereof

    CN109802560A

  • Charging method, charging device, electronic equipment and readable storage medium

    CN116826892A

  • Predictable battery power management apparatus and method

    US20220407337A1