Charging method, electronic equipment, computer readable storage medium and chip system
Patent Information
- Application Number
- CN202380022451.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-31
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
The existing technology cannot allocate appropriate charging power to each adapter, resulting in each adapter not working in the optimal state when multiple adapters are charging, affecting charging efficiency and safety.
By determining the charging parameters of each adapter and adjusting the current charging current output by the charging circuit according to the base charging current to match the base charging current, the charging power is reasonably distributed to ensure that the adapter works at its best.
It improves the charging efficiency and flexibility of portable rechargeable devices, reduces charging time, reduces heating, and improves the safety of the charging process.
Smart Images

Figure CN118696478A
Abstract
Description
Charging method, electronic device, computer-readable storage medium, and chip system
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 31, 2022, with application number 202210344906.X and application name “Charging method, electronic device, computer-readable storage medium and chip system”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a charging method, electronic device, computer-readable storage medium, and chip system. Background Art
[0003] As terminal devices continue to develop, their battery life requirements continue to increase, and the battery capacity of terminal devices continues to increase. Correspondingly, the time spent charging the terminal devices also increases accordingly.
[0004] To reduce the time it takes to charge a terminal device, multiple adapters can be used to charge the terminal device. By connecting multiple adapters to the terminal device, the battery in the terminal device can be charged using the current output by multiple adapters simultaneously, thereby reducing the time it takes to charge the terminal device.
[0005] However, when multiple adapters are used for charging, it is impossible to allocate appropriate charging power to each adapter so that each adapter operates in an optimal state.
[0006] Summary of the Invention
[0007] The present application provides a charging method, an electronic device, a computer-readable storage medium, and a chip system, which solve the problem in the prior art of being unable to allocate appropriate charging power to each adapter.
[0008] To achieve the above objectives, this application adopts the following technical solutions:
[0009] In a first aspect, a charging method is provided, which is applied to an electronic device, comprising:
[0010] When connected to multiple adapters, determining charging parameters corresponding to each of the adapters;
[0011] Determine a reference charging current corresponding to each charging circuit according to each of the charging parameters, and connect each of the adapters to each of the charging circuits in a one-to-one correspondence;
[0012] According to each of the reference charging currents, the current charging current output by each of the charging circuits is adjusted.
[0013] By detecting the current charging current output by each charging circuit and then adjusting each charging circuit based on the detection result, the current charging current output by each charging circuit matches the reference charging current developed for each adapter. This allows the charging power of each adapter to be reasonably allocated, controlling each adapter to operate in the optimal state, and improving the charging efficiency and flexibility of portable rechargeable devices.
[0014] In a first possible implementation manner of the first aspect, adjusting the current charging current output by each charging circuit according to each reference charging current includes:
[0015] For each of the charging circuits, obtaining the current charging current output by the charging circuit;
[0016] The current charging current is adjusted according to a magnitude relationship between the current charging current and a reference charging current corresponding to the charging circuit.
[0017] By adjusting the current charging current output by each charging circuit, the charging power of each adapter can be accurately adjusted, so that each adapter works in the best state.
[0018] Based on the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, adjusting the current charging current according to a magnitude relationship between the current charging current and a reference charging current corresponding to the charging circuit includes:
[0019] If the current charging current is greater than the reference charging current and the difference between the current charging current and the reference charging current is greater than a first current threshold, reducing the current charging voltage of the charging circuit;
[0020] If the current charging current is less than the reference charging current and the difference between the current charging current and the reference charging current is greater than the first current threshold, increasing the current charging voltage of the charging circuit;
[0021] If the difference between the current charging current and the reference charging current is less than or equal to the first current threshold, the adjustment of the current charging current is stopped.
[0022] Based on the relationship between the current charging current and the reference charging current, as well as the difference between the two, when it is determined that the current charging current deviates significantly from the reference charging current, the current charging voltage of the charging circuit is adjusted, thereby adjusting the current charging current. This can reduce the time spent on adjusting the current charging voltage and the current charging current, and improve the efficiency of adjusting the current charging voltage and the current charging current.
[0023] Based on the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, after reducing the current charging voltage of the charging circuit, the method further includes:
[0024] comparing the reduced voltage of the charging circuit with a first voltage threshold, where the first voltage threshold is used to determine whether the current charging voltage output by the charging circuit can be reduced;
[0025] If the reduced voltage is less than the first voltage threshold, adjusting the current charging current is stopped and an error is reported.
[0026] By comparing with the first voltage threshold, it can be determined whether the voltage of the charging circuit can continue to be reduced. If the voltage of the charging circuit cannot be further reduced, it means that the adapter or electronic device is abnormal and it is necessary to stop adjustment and report an error, thereby improving the safety of charging.
[0027] Based on the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, after increasing the current charging voltage of the charging circuit, the method further includes:
[0028] comparing the voltage increased by the charging circuit with a second voltage threshold, the second voltage threshold being used to determine whether the current charging voltage output by the charging circuit can be increased;
[0029] If the increased voltage is greater than the second voltage threshold, the adjustment of the current charging current is stopped and an error is reported.
[0030] By comparing with the second voltage threshold, it can be determined whether the voltage of the charging circuit can continue to be increased. If the voltage of the charging circuit cannot be further increased, it means that the current voltage is too high and further increase may cause safety hazards. It is necessary to stop adjustment and report an error, thereby improving the safety of charging.
[0031] Based on the third or fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the method further includes:
[0032] If the reduced voltage is greater than or equal to a first voltage threshold, or the increased voltage is less than or equal to a second voltage threshold, determining whether a time taken to adjust the current charging current has timed out;
[0033] If the time taken to adjust the current charging current has not timed out, continue adjusting the current charging current;
[0034] If the time taken to adjust the current charging current times out, the adjustment of the current charging current is stopped.
[0035] By determining the time taken to adjust the current charging current, abnormal problems caused by long-term adjustment of a charging circuit can be avoided, and the reliability and flexibility of adjusting the current charging current can be improved.
[0036] Based on the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the stopping adjusting the current charging current includes:
[0037] If the difference between the current charging current and the reference charging current is less than or equal to a preset second current threshold, then stop adjusting the current charging current, and the second current threshold is greater than the first current threshold;
[0038] If the difference between the current charging current and the reference charging current is greater than the second current threshold, adjusting the current charging current is stopped and an error is reported.
[0039] Based on any of the foregoing possible implementations of the first aspect, in a seventh possible implementation of the first aspect, after determining the charging parameters corresponding to each adapter, the method further includes:
[0040] Obtaining a battery voltage, where the battery voltage is the voltage across the battery of the electronic device;
[0041] If the battery voltage is greater than or equal to a third voltage threshold, reducing the reference charging current corresponding to each charging circuit, wherein the third voltage threshold is used to determine whether the electronic device can be charged in a constant voltage mode;
[0042] According to each reduced reference charging current, the current charging current output by each charging circuit is adjusted.
[0043] By determining whether constant voltage charging can be used, the current charging current output by each charging circuit can be reduced in a timely manner after the battery voltage rises to a certain level, avoiding damage to the battery caused by continued high current charging, thereby increasing the battery life.
[0044] Based on the seventh possible implementation manner of the first aspect, in an eighth possible implementation manner of the first aspect, after adjusting the current charging current output by each charging circuit according to each reduced reference charging current, the method further includes:
[0045] determining a total charging current based on the current charging current output by each of the charging circuits;
[0046] If the total charging current is less than or equal to a third current threshold, charging is performed using a target adapter among the adapters in a single-adapter mode, wherein the third current threshold is used to determine whether the electronic device can be charged in the single-adapter mode;
[0047] If the total charging current is greater than the third current threshold, the current charging current output by each charging circuit is adjusted again according to each of the reduced reference charging currents until the total charging current is less than or equal to the third current threshold.
[0048] By using a single adapter to charge the electronic device after the battery has been charged to a certain level, the number of adapters used for charging can be reduced, thereby reducing the loss caused by each adapter during the charging process and improving charging safety.
[0049] Based on the eighth possible implementation manner of the first aspect, in a ninth possible implementation manner of the first aspect, after charging in single-adapter mode using a target adapter among the adapters, the method further includes:
[0050] Obtaining a current charging current output by a target charging circuit, where the target charging circuit is a charging circuit connected to the target adapter;
[0051] If the current charging current output by the target charging circuit is less than or equal to a fourth current threshold, then charging is stopped, and the fourth current threshold is used to determine whether the electronic device is fully charged;
[0052] If the current charging current output by the target charging circuit is greater than the fourth current threshold, the current charging current output by the target charging circuit is obtained again until the current charging current output by the target charging circuit is less than or equal to the fourth current threshold.
[0053] Based on any of the foregoing possible implementation manners of the first aspect, in a tenth possible implementation manner of the first aspect, the method further includes:
[0054] detecting whether the number of adapters connected to the electronic device changes;
[0055] If the number of adapters connected to the electronic device remains unchanged, continuing to adjust the current charging current output by each charging circuit according to each reference charging current;
[0056] If the number of adapters connected to the electronic device changes, the reference charging current corresponding to each charging circuit is re-determined.
[0057] By detecting each connected adapter in real time, the reference charging current can be adjusted in a timely manner when the number of connected adapters changes, thereby controlling each connected adapter to continuously operate in the optimal state, thereby improving charging efficiency.
[0058] In a second aspect, a charging device is provided for use in an electronic device, comprising:
[0059] A first determining module, configured to determine a charging parameter corresponding to each of the adapters when connected to the adapters;
[0060] A second determining module is configured to determine a reference charging current corresponding to each charging circuit according to each of the charging parameters, wherein each of the adapters corresponds to and is connected to each of the charging circuits in a one-to-one manner;
[0061] The first adjustment module is configured to adjust the current charging current output by each charging circuit according to each reference charging current.
[0062] In a first possible implementation of the second aspect, the first adjustment module is specifically configured to obtain, for each charging circuit, the current charging current output by the charging circuit; and adjust the current charging current based on a magnitude relationship between the current charging current and a reference charging current corresponding to the charging circuit.
[0063] Based on the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the first adjustment module is further specifically used to reduce the current charging voltage of the charging circuit if the current charging current is greater than the benchmark charging current and the difference between the current charging current and the benchmark charging current is greater than a first current threshold; increase the current charging voltage of the charging circuit if the current charging current is less than the benchmark charging current and the difference between the current charging current and the benchmark charging current is greater than the first current threshold; and stop adjusting the current charging current if the difference between the current charging current and the benchmark charging current is less than or equal to the first current threshold.
[0064] Based on the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the apparatus further includes:
[0065] a first comparing module, configured to compare the voltage reduced by the charging circuit with a first voltage threshold, wherein the first voltage threshold is used to determine whether the current charging voltage output by the charging circuit can be reduced;
[0066] The first stopping module is configured to stop adjusting the current charging current and report an error if the reduced voltage is less than the first voltage threshold.
[0067] Based on the second possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes:
[0068] a second comparing module, configured to compare the voltage increased by the charging circuit with a second voltage threshold, wherein the second voltage threshold is used to determine whether the current charging voltage output by the charging circuit can be increased;
[0069] The second stopping module is configured to stop adjusting the current charging current and report an error if the increased voltage is greater than the second voltage threshold.
[0070] Based on the third or fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the apparatus further includes:
[0071] a determination module, configured to determine whether a time taken to adjust the current charging current has timed out if the reduced voltage is greater than or equal to the first voltage threshold, or if the increased voltage is less than or equal to the second voltage threshold;
[0072] a second adjustment module, configured to continue adjusting the current charging current if the time taken to adjust the current charging current has not timed out;
[0073] The third stopping module is configured to stop adjusting the current charging current if the time taken to adjust the current charging current times out.
[0074] Based on the fifth possible implementation manner of the second aspect, in the sixth possible implementation manner of the second aspect, the third stop module is specifically used to stop adjusting the current charging current if the difference between the current charging current and the benchmark charging current is less than or equal to a preset second current threshold, and the second current threshold is greater than the first current threshold; if the difference between the current charging current and the benchmark charging current is greater than the second current threshold, stop adjusting the current charging current and report an error.
[0075] Based on any of the foregoing possible implementation manners of the second aspect, in a seventh possible implementation manner of the second aspect, the apparatus further includes:
[0076] A first acquisition module is configured to acquire a battery voltage, where the battery voltage is the voltage across the battery of the electronic device;
[0077] a reference adjustment module, configured to reduce the reference charging current corresponding to each of the charging circuits if the battery voltage is greater than or equal to a third voltage threshold, wherein the third voltage threshold is used to determine whether the electronic device can be charged in a constant voltage mode;
[0078] The third adjustment module is configured to adjust the current charging current output by each charging circuit according to each reduced reference charging current.
[0079] Based on the seventh possible implementation manner of the second aspect, in an eighth possible implementation manner of the second aspect, the apparatus further includes:
[0080] a third determining module, configured to determine a total charging current according to a current charging current output by each of the charging circuits;
[0081] a single-adapter charging module, configured to charge the electronic device in a single-adapter mode using a target adapter among the adapters if the total charging current is less than or equal to a third current threshold, wherein the third current threshold is used to determine whether the electronic device can be charged in the single-adapter mode;
[0082] The first adjustment module is further configured to adjust the current charging current output by each charging circuit again according to each of the reduced reference charging currents if the total charging current is greater than the third current threshold, until the total charging current is less than or equal to the third current threshold.
[0083] Based on the eighth possible implementation manner of the second aspect, in a ninth possible implementation manner of the second aspect, the apparatus further includes:
[0084] a second acquisition module, configured to acquire a current charging current output by a target charging circuit, wherein the target charging circuit is a charging circuit connected to the target adapter;
[0085] a charging termination module, configured to stop charging if the current charging current output by the target charging circuit is less than or equal to a fourth current threshold, wherein the fourth current threshold is used to determine whether the electronic device is fully charged;
[0086] The second acquisition module is further used to obtain the current charging current output by the target charging circuit again if the current charging current output by the target charging circuit is greater than the fourth current threshold, until the current charging current output by the target charging circuit is less than or equal to the fourth current threshold.
[0087] Based on any of the foregoing possible implementation manners of the second aspect, in a tenth possible implementation manner of the second aspect, the apparatus further includes:
[0088] a detection module, configured to detect whether the number of adapters connected to the electronic device changes;
[0089] a first adjustment module, further configured to, if the number of adapters connected to the electronic device remains unchanged, continue to adjust the current charging current output by each charging circuit according to each reference charging current;
[0090] The second determining module is configured to re-determine a reference charging current corresponding to each charging circuit if the number of adapters connected to the electronic device changes.
[0091] In a third aspect, an electronic device is provided, comprising: a charging controller, a battery, a plurality of charging circuits, and a plurality of charging ports, wherein the plurality of charging circuits correspond one-to-one to the plurality of charging ports;
[0092] The input end of each charging circuit is connected to the corresponding charging port, the output end of each charging circuit is connected to the battery, and each charging circuit is also connected to the charging controller;
[0093] The charging controller is configured to run a computer program stored in a memory, so that the electronic device implements the charging method as described in any one of the first aspects.
[0094] In a first possible implementation manner of the third aspect, the electronic device further includes: a plurality of anti-backfeed circuits and a plurality of current detection circuits, and the plurality of charging circuits further correspond one-to-one with the plurality of anti-backfeed circuits and the plurality of current detection circuits, respectively;
[0095] Each of the anti-backflow circuits is connected in series between the corresponding charging circuit and the battery, and the input end of each of the current detection circuits is connected to the output end of the corresponding charging circuit;
[0096] The current detection circuit is used to monitor the charging current output by the charging circuit;
[0097] The anti-backflow circuit is used to prevent the charging current from flowing from the battery into the charging circuit.
[0098] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the charging method as described in any one of the first aspects is implemented.
[0099] In a fifth aspect, a chip system is provided, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the charging method as described in any one of the first aspects.
[0100] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0101] FIG1A is a schematic diagram of a charging circuit according to an embodiment of the present application;
[0102] FIG1B is a schematic diagram of a charging circuit according to another charging method according to an embodiment of the present application;
[0103] FIG1C is a schematic diagram of a flow chart of a charging method proposed in an embodiment of the present application;
[0104] FIG2 is a schematic flow chart of another charging method provided in an embodiment of the present application;
[0105] FIG3 is a schematic flow chart of re-establishing a charging strategy for a portable rechargeable device according to an embodiment of the present application;
[0106] FIG4 is a schematic flow chart of adjusting the current charging current output by a charging circuit according to an embodiment of the present application;
[0107] FIG5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0108] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are provided to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known charging circuit structures, methods for adjusting the voltage and current output by the charging circuit, methods for data exchange between the adapter and the terminal device, and electronic devices are omitted to avoid obstructing the description of the present application with unnecessary details.
[0109] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a," "said," "above," and "the" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise.
[0110] With the continuous development of terminal devices, the types of portable rechargeable devices are gradually increasing, such as mobile phones, tablet computers, laptops, mobile speakers, etc. During operation, portable rechargeable devices can use the built-in battery to power various components in the device.
[0111] Accordingly, during the charging process, each portable rechargeable device can be connected to the adapter through a pre-set interface (such as a Type-C interface), and then the battery set in the portable rechargeable device can be charged through the adapter.
[0112] Furthermore, portable rechargeable devices can be charged using a single adapter or multiple adapters. When charging with a single adapter, the maximum charging power of the adapter is limited, so it takes a long time to fully charge the portable rechargeable device. Furthermore, charging with a single adapter can cause the portable rechargeable device to overheat.
[0113] In scenarios where multiple adapters are used for charging, the charging power can be effectively increased and the heating of portable rechargeable devices can be reduced. However, during the charging process, it is impossible to accurately allocate the appropriate charging power to each adapter, resulting in each adapter not working at its optimal state.
[0114] Therefore, the present application proposes a charging method that uses multiple adapters to charge a portable rechargeable device. During the charging process, each adapter can be connected to a corresponding charging circuit in the portable rechargeable device. The portable rechargeable device can distribute the charging power output by each adapter and monitor the current output by each adapter through the charging circuit. It can also adjust the output charging current through each charging circuit, that is, adjust the charging current output by each adapter, so that each adapter can work in the best state. Therefore, on the basis of charging multiple adapters, the charging power of each adapter can be reasonably allocated, which can improve the charging efficiency and flexibility of the portable rechargeable device.
[0115] It should be noted that in actual applications, the adapter can be used with different types of charging elements for charging. Among them, the charging elements may include: direct charging elements and non-direct charging elements. The direct charging element is a switched capacitor charging element with a current detection function. The direct charging element can achieve N:M voltage conversion through a switched capacitor circuit, where N and M are both positive integers. The non-direct charging element is a charging element that achieves voltage conversion through a traditional buck (a common circuit topology) / boost (a common circuit topology) circuit.
[0116] For example, direct charging components may include 1:1 direct charging components and 2:1 direct charging components, and non-direct charging components may include buck-boost charging components and buck charging components.
[0117] Direct-charging devices offer high charging efficiency, but require an adapter with voltage regulation, which is more expensive. Non-direct-charging devices, on the other hand, can be paired with a fixed-output-voltage adapter, which is less expensive, but also offers lower charging efficiency than direct-charging devices.
[0118] The following is an introduction to the charging method proposed in this application and the charging circuit involved in the charging method based on non-direct charging components.
[0119] Referring to Figure 1A, Figure 1A is a schematic diagram of the framework of a charging circuit involved in a charging method proposed in an embodiment of the present application. The charging circuit may include: a portable rechargeable device 110 and multiple adapters 120. The portable rechargeable device 110 may include: a battery 1101, a charging controller 1102, multiple charging ports 1103, multiple charging circuits 1104 and multiple anti-backflow circuits 1105.
[0120] The battery 1101 may be a battery pack, the charging controller 1102 may be an integrated control unit, and each charging circuit 1104 may be implemented by a non-direct charging component.
[0121] Moreover, the charging controller 1102 can be connected to each charging circuit 1104 through a signal line and a control line. The signal line is used to send the size of the charging current detected by the charging circuit 1104 to the charging controller 1102, and the control line is used to send an instruction to adjust the size of the charging current to the charging circuit 1104, so that a feedback loop of the charging current can be formed according to the signal line and the control line.
[0122] Similarly, each charging circuit 1104 corresponds to each charging port 1103. Each charging circuit 1104 can be connected to the corresponding charging port 1103 via a device communication line and a device power line. The device power line is used to transmit electrical energy, and the device communication line is used to transmit data. This allows the adapter 120 to exchange data with the portable rechargeable device 110 via the device communication line based on a matching charging protocol, thereby determining charging parameters such as the charging voltage, charging power, and charging current provided by each adapter 120 to the portable rechargeable device 110 during the charging process.
[0123] In addition, each charging circuit 1104 is connected to the battery 1101 via a combined power line composed of various charging power lines, so that the battery can be charged through each charging circuit 1104. Furthermore, to prevent current backflow, an anti-backflow circuit 1105 can be provided between the battery 1101 and each charging circuit 1104 to prevent current from flowing back from the battery 1101 into the charging circuit 1104. For example, the anti-backflow circuit 1105 can be a diode, the anode of the diode can be connected to the output terminal of the charging circuit 1104, and the cathode of the diode can be connected to the input terminal of the battery 1101.
[0124] In addition, each adapter 120 can also be connected to each charging port 1103 of the portable rechargeable device 110 via an adapter communication line and an adapter power line. Similar to the device communication line and the device power line, the adapter power line is used to transmit electrical energy, and the adapter communication line is used to transmit data. In this way, the adapter 120 can exchange data with the portable rechargeable device 110 via the adapter communication line based on the matching charging protocol, thereby determining the charging parameters such as the charging voltage, charging power, and charging current provided by each adapter 120 to the portable rechargeable device 110 during the charging process.
[0125] For example, referring to FIG1B , a PD (power delivery) protocol chip is provided between the multiple charging ports 1103 and the charging controller 1102. Each adapter 120 exchanges data with the portable rechargeable device 110 based on the PD protocol through this PD protocol chip to determine the charging parameters, such as the charging voltage, charging power, and charging current, provided by each adapter during the charging process. Furthermore, each charging circuit in the portable rechargeable device 110 may be a buck circuit or a buck-boost circuit, and this embodiment of the application does not limit the charging circuit.
[0126] It should be noted that in actual applications, a current detection circuit can also be provided between the charging circuit 1104 and the battery 1101 to detect the charging current output by the charging circuit 1104 and determine the magnitude of the charging current. The charging controller 1102 can then adjust the charging current output by the charging circuit 1104 based on the detected magnitude of the charging current, thereby distributing the charging power to the various adapters.
[0127] Referring to FIG. 1C , FIG. 1C is a flow chart of a charging method proposed in an embodiment of the present application, which is applied to a portable rechargeable device with the above-mentioned charging circuit. The method may include:
[0128] S1. Identify each connected adapter and determine the charging parameters of each adapter for charging.
[0129] Among them, the charging parameters are used to indicate parameters such as the maximum charging voltage, maximum charging current and maximum charging power that the adapter can output during charging.
[0130] S2. Develop a charging strategy based on the charging parameters corresponding to each adapter.
[0131] S3. Adjust the charging current output by each charging circuit according to the charging strategy until charging is completed.
[0132] Specifically, after detecting that the portable rechargeable device 110 is connected to multiple adapters 120, it can exchange data with each adapter 120 based on a pre-set charging protocol to determine the charging voltage and charging current that each adapter 120 can output during the charging process, that is, determine the charging parameters of the adapter 120.
[0133] Afterwards, the portable rechargeable device 110 can allocate corresponding charging power to each adapter 120 based on the charging parameters corresponding to each adapter 120, combined with the maximum charging voltage and maximum charging current that the portable rechargeable device 110 can withstand. In other words, the portable rechargeable device 110 can allocate a reference charging current and a reference charging voltage to each adapter 120 so that each adapter 120 can output according to the reference charging current and the reference charging voltage, thereby operating in an optimal state.
[0134] Accordingly, the portable rechargeable device 110 can adjust the charging current output by each charging circuit 1104 through the charging controller 1102, so that the adjusted charging current matches the reference charging current corresponding to each adapter 120, thereby adopting the formulated charging strategy for charging. This can effectively improve the charging efficiency of the portable rechargeable device 110 without increasing the cost, and can also effectively reduce the heating problem of the portable rechargeable device 110 during the charging process.
[0135] It should be noted that, in actual applications, each adapter 120 is connected in series with the corresponding charging circuit 1104. Therefore, the charging current output by each charging circuit 1104 is the charging current output by the connected adapter 120. Accordingly, the reference charging current allocated by the portable rechargeable device 110 to each adapter 120 may also be the reference charging current of the charging circuit 1104 corresponding to the adapter 120.
[0136] Furthermore, the reference charging current assigned by the portable rechargeable device 110 to each adapter 120 and the corresponding charging circuit 1104 can serve as a current parameter to guide each adapter 120 and the corresponding charging circuit 1104 to output a charging current that is equal to or close to the reference charging current. Furthermore, the magnitude of the reference charging current corresponding to each adapter 120 can be less than or equal to the current magnitude indicated by the adapter's charging parameters. Specifically, the charging current and charging voltage indicated by the charging parameters are the maximum charging current and maximum charging voltage output by the adapter 120 during charging.
[0137] FIG2 is a schematic flow chart of another charging method provided in an embodiment of the present application. As an example and not a limitation, the method can be applied to a portable rechargeable device with the above-mentioned charging circuit. Referring to FIG2 , the method includes:
[0138] Step 201: Determine the charging parameters of each adapter.
[0139] The charging parameters are used to indicate parameters such as the maximum charging voltage, maximum charging power, and maximum charging current output by the adapter during the charging process. Furthermore, the charging parameters can be determined based on a charging protocol between the adapter and the portable rechargeable device. For example, after the adapter is connected to the portable rechargeable device, based on the charging protocol preset in the portable rechargeable device, the adapter can use a matching charging protocol to communicate data with the portable rechargeable device to determine the maximum charging voltage, maximum charging power, and maximum charging current that the adapter can provide, thereby determining the adapter's charging parameters.
[0140] During the charging process, a portable rechargeable device can be connected to an adapter, which converts the voltage and current provided by the mains electricity into the charging voltage and charging current indicated by the charging parameters, thereby charging the battery in the portable rechargeable device. Therefore, before charging the portable rechargeable device through the adapter, the portable rechargeable device can identify the connected adapters and determine the charging parameters corresponding to each adapter. In subsequent steps, the portable rechargeable device can adjust the charging current and charging voltage output by each adapter based on the charging parameters corresponding to each adapter.
[0141] In an optional embodiment, if the portable rechargeable device detects that it is connected to at least one adapter, the portable rechargeable device can exchange data with each connected adapter through the adapter communication line and the device communication line to determine the charging parameters corresponding to each adapter.
[0142] It should be noted that in actual applications, after the adapter is connected to the portable rechargeable device through the charging port, the adapter can charge the portable rechargeable device according to the pre-set default current and default voltage. At the same time, the adapter and the portable rechargeable device can exchange data based on the matching charging protocol between the two to determine the maximum charging voltage, maximum charging power, and maximum charging current parameters supported by the portable rechargeable device, thereby determining the corresponding charging parameters of the adapter.
[0143] For example, after an adapter is connected to a portable rechargeable device, the adapter can first output a default current of 2 amperes (A) and a default voltage of 5 volts (V) to start charging the portable rechargeable device. At the same time, the adapter can also exchange data with the portable rechargeable device to determine whether the portable rechargeable device supports fast charging. If the portable rechargeable device supports fast charging, the adapter can output a matching charging current and charging voltage according to the current parameters and voltage parameters corresponding to fast charging. If the portable rechargeable device does not support fast charging, the adapter can output a matching charging current and charging voltage according to the default current parameters and voltage parameters.
[0144] Step 202: Determine a charging strategy based on the number of adapters and charging parameters of each adapter.
[0145] The charging strategy is used to allocate the output charging voltage, charging power, and charging current to each adapter, that is, to determine the reference charging current and reference charging voltage output by each adapter and the corresponding charging circuit.
[0146] Specifically, after each adapter determines its corresponding charging parameters, the portable rechargeable device can determine the maximum charging voltage, maximum charging power, and maximum charging current that each adapter can output based on the corresponding charging parameters. The portable rechargeable device can then assign a corresponding reference charging current and reference charging voltage to each adapter based on the number of connected adapters and the maximum charging voltage and current that the portable rechargeable device and battery can withstand. This allows the charging current and voltage output by the adapter and charging circuit to be adjusted in subsequent steps based on the reference charging current and reference charging voltage.
[0147] If the total power that each adapter can output is less than or equal to the maximum power that the portable rechargeable device and battery can withstand, the current and voltage indicated in the charging parameters corresponding to each adapter can be used as the reference charging current and reference charging voltage corresponding to the adapter.
[0148] If the total power output by each adapter is greater than the maximum power that the portable rechargeable device and the battery can withstand, the reference charging current and reference charging voltage allocated to each adapter can be reduced based on the charging parameters corresponding to each adapter.
[0149] For example, if the maximum power that a portable rechargeable device and battery can withstand is 150 watts (W), and the total power that each adapter can output is 100 W, then the total power that each adapter can output is less than the maximum power that the portable rechargeable device and battery can withstand. When each adapter outputs the maximum charging current and maximum charging voltage indicated by the charging parameters, the total power that each adapter can output will not exceed the maximum power that the portable rechargeable device and battery can withstand. Therefore, the current and voltage indicated in the charging parameters of each adapter can be used as the reference charging current and reference charging voltage corresponding to the adapter.
[0150] However, if the total power that each adapter can output is 200W, the total power that each adapter can output is greater than the maximum power that the portable rechargeable device and the battery can withstand. When each adapter outputs full power, it will exceed the maximum power that the portable rechargeable device and the battery can withstand. Therefore, based on the charging parameters corresponding to each adapter, the current and voltage indicated by the charging parameters can be reduced and used as the corresponding benchmark charging current and benchmark charging voltage of the adapter.
[0151] It should be noted that in actual applications, a portable rechargeable device may connect to other adapters during charging, thereby adding a new adapter, or an adapter already connected to the portable rechargeable device may be disconnected from the portable rechargeable device. Accordingly, when the portable rechargeable device detects a change in the number of connected adapters, it can re-establish a charging strategy based on the currently connected adapters and re-assign a reference charging current and reference charging voltage to each adapter, so that each adapter can output charging according to the re-assigned reference charging current and reference charging voltage.
[0152] 3 , which is a schematic flowchart of a portable rechargeable device re-establishing a charging strategy according to an embodiment of the present application. The portable rechargeable device re-establishing a charging strategy may include the following steps:
[0153] S1. Detect whether the number of connected adapters changes.
[0154] S2. If the number of connected adapters does not change, continue charging according to the charging strategy.
[0155] S3. If the number of connected adapters changes, the charging strategy is re-formulated.
[0156] During the charging process, the portable rechargeable device can detect in real time whether the connection status between each adapter has changed, that is, detect whether the portable rechargeable device is disconnected from an adapter, or detect whether the portable rechargeable device is connected to a new adapter.
[0157] If the number of adapters does not change, the portable rechargeable device does not need to update the charging strategy and can continue to charge according to the original charging strategy. If the number of adapters changes, the portable rechargeable device needs to restart the charging strategy based on the currently connected adapters.
[0158] Furthermore, when the number of adapters changes (either increasing or decreasing), the portable rechargeable device needs to re-establish its charging strategy using different methods. Specifically, if the number of adapters increases, it indicates that the portable rechargeable device has been connected to an additional adapter. The portable rechargeable device can repeat steps 201 to 202 above to re-establish its charging strategy, thereby allocating an updated baseline charging current and an updated baseline charging voltage to each adapter.
[0159] However, if the number of adapters decreases, it indicates that the portable rechargeable device is disconnected from an adapter. The portable rechargeable device can then re-establish a charging strategy based on the currently connected adapters, thereby allocating an updated reference charging current and an updated reference charging voltage to each adapter. Furthermore, if the number of connected adapters decreases to zero, it indicates that the portable rechargeable device is not currently connected to an adapter. Charging can then be stopped and each charging circuit can be set to a high-impedance state.
[0160] Step 203: For each adapter, adjust the current charging current output by the charging circuit connected to the adapter according to the reference charging current corresponding to the adapter.
[0161] After determining the charging strategy, the portable rechargeable device can traverse the current output by each charging circuit to obtain the current charging current output by each charging circuit. Moreover, during the traversal process, after each current charging current output by a charging circuit is determined, the portable rechargeable device can use the charging controller to adjust the current charging current output by the charging circuit according to the reference charging current corresponding to the charging circuit.
[0162] 4 is a schematic flow chart of adjusting the current charging current output by a charging circuit according to an embodiment of the present application. The process of adjusting the current charging current of the adapter by a portable rechargeable device may include the following steps:
[0163] Step 2031: For each charging circuit, obtain the current charging current output by the charging circuit.
[0164] The portable rechargeable device includes multiple charging circuits. The input of each charging circuit is connected in series with the corresponding adapter, and the output of each charging circuit is connected in series with the battery of the portable rechargeable device. Accordingly, the current charging current output by the adapter flows through the charging circuit and is then output by the charging circuit to the battery. The current charging current output by each charging circuit is the current charging current output by the adapter corresponding to that charging circuit.
[0165] During the charging process, the portable rechargeable device can monitor the current output by each charging circuit, and then send the current charging current output by the charging circuit to the charging controller via the signal line between the charging circuit and the charging controller, so that in subsequent steps, the charging controller can adjust the current charging voltage output by the charging circuit according to the detected current charging current, thereby completing the adjustment of the current charging current output by the adapter.
[0166] Specifically, the charging circuit can detect the current charging current output by the charging circuit through a connected current detection circuit. The charging current can then be transmitted to the charging controller via a signal line. In turn, the charging controller can receive the current charging current transmitted by the charging circuit and, in subsequent steps, adjust the current charging current output by the charging circuit via a control line based on the received current charging current.
[0167] Step 2032: Obtain the magnitude relationship and difference between the reference charging current corresponding to the charging circuit and the current charging current.
[0168] After receiving the current charging current sent by the charging circuit, the charging controller can obtain the reference charging current corresponding to the charging circuit, and then compare the reference charging current with the received current charging current to determine the size relationship between the two and the difference between the two, so that in subsequent steps, the charging controller can adopt different adjustment methods based on the difference and size relationship between the two.
[0169] In the process of obtaining the reference charging current, the charging controller can determine the adapter corresponding to the charging circuit according to the identification information of the charging circuit, and then search for the reference charging current corresponding to the adapter from the determined charging strategy according to the corresponding adapter.
[0170] Step 2033: If the current charging current is less than the reference charging current, and the difference between the current charging current and the reference charging current is greater than the first current threshold, increase the current charging voltage of the charging circuit.
[0171] The first current threshold is used to determine whether the current charging current needs to be adjusted.
[0172] If the charging controller determines that the current charging current is less than the reference charging current, and the difference between the two (or the absolute value of the difference) is greater than the first current threshold, it means that the current charging current is small, and the current charging voltage of the charging circuit can be increased according to the preset voltage variable, so that the current charging current output by the charging circuit can be increased through the internal circuit structure of the charging circuit, thereby improving the charging efficiency of the portable rechargeable device.
[0173] For example, during the jth acquisition process, the current charging current output by the i-th charging circuit is I chg (i) j 、The current charging voltage is V(i) j , the reference charging current corresponding to the i-th charging circuit is I(i), and the first current threshold is I error , the voltage variable is dV, then at I chg (i) j -I(i)<0, and |I chg (i) j -I(i)|>I error When the charging controller can adjust the current charging voltage output by the i-th charging circuit, the i-th charging circuit can output the current charging voltage V(i) during the j+1-th acquisition process. j+1 =V(i) j +dV, thereby increasing the current charging current of the i-th charging circuit.
[0174] It should be noted that in the process of increasing the current charging voltage of the charging circuit, the charging controller can adjust the on-off time of the internal switching device in the charging circuit, gradually increase the current charging voltage output by the charging circuit, and after multiple on-off cycles of the switching device, the increase in the charging voltage output of the charging circuit reaches a preset voltage variable.
[0175] Step 2034: If the charging voltage increased by the charging circuit is greater than the second voltage threshold, an error is reported and the adjustment is stopped.
[0176] The second voltage threshold is used to determine whether the current charging voltage output by the charging circuit can be increased. The second voltage threshold can be set according to the charging parameters of the adapter and the maximum voltage that the portable rechargeable device can withstand.
[0177] To improve charging safety, after increasing the charging voltage of the charging circuit, it is necessary to detect the increased charging voltage to determine whether it exceeds a second voltage threshold. If the increased charging voltage is greater than the second voltage threshold, it indicates that the current charging voltage of the charging circuit is too high, posing a safety hazard. An error message must be issued promptly, and adjustment of the current charging current must be stopped.
[0178] Step 2035: If the charging voltage increased by the charging circuit is not greater than the second voltage threshold, determine whether the time spent on adjusting the current charging current has timed out.
[0179] If the charging voltage increased by the charging circuit is not greater than the second voltage threshold, that is, the charging voltage increased is less than or equal to the second voltage threshold, it means that the charging voltage output by the charging circuit is safe and does not cause safety hazards, and the charging voltage and charging current can continue to be adjusted.
[0180] However, in order to avoid taking too much time to adjust the current charging current, the number of times the current charging current is adjusted can be counted, or timing can be started from the time the current charging current is adjusted, so that it can be determined whether the time spent on adjusting the current charging current has exceeded the time limit based on the number of counts or the duration of timing.
[0181] If counting is used, counting can be performed in any of steps 2031 to 2035 to determine the number of times the current charging current has been adjusted. If the counted number is greater than a preset maximum number of adjustments, it indicates that after multiple adjustments to the current charging current, the current charging current output by the charging circuit still does not meet the requirements of the charging strategy. This indicates that the time taken to adjust the charging current has timed out, and there may be a fault in the charging circuit or adapter. Step 20310 can then be executed to determine whether an error message should be reported and the user alerted.
[0182] However, if the counted number is less than or equal to the preset maximum adjustment number, step 2039 may be executed to continue adjusting the current charging current of the charging circuit.
[0183] If a timing method is used, the timing may be started when step 2031 is executed, thereby determining the time taken to adjust the current charging current. If the timed duration is greater than the preset maximum adjustment duration, it indicates that after multiple adjustments to the current charging current, the current charging current output by the charging circuit still does not meet the charging strategy requirements. It can be determined that the time taken to adjust the charging current has timed out, and there may be a fault in the charging circuit or adapter. Step 20310 can then be executed to determine whether an error message should be issued to alert the user.
[0184] However, if the timed duration is less than or equal to the preset maximum adjustment duration, step 2039 may be executed to continue adjusting the current charging current of the charging circuit.
[0185] Step 2036: If the current charging current is greater than the reference charging current, and the difference between the current charging current and the reference charging current is greater than the first current threshold, then reduce the current charging voltage of the charging circuit.
[0186] Similar to step 2033, if the current charging current is greater than the reference charging current, and the difference between the two (or the absolute value of the difference) is greater than the first current threshold, it means that the current charging current output by the charging circuit is large, and the current charging voltage of the charging circuit needs to be reduced according to the preset voltage variable. In this way, the current charging current output by the charging circuit can be reduced through the internal circuit structure of the charging circuit, thereby improving the safety of the portable rechargeable device.
[0187] For example, during the jth acquisition process, the current charging current output by the i-th charging circuit is I chg (i) j 、The current charging voltage is V(i) j , the reference charging current corresponding to the i-th charging circuit is I(i), and the first current threshold is I error , the voltage variable is dV, then at I chg (i) j -I(i)>0, and |I chg (i) j -I(i)|>I error When the charging controller can adjust the current charging voltage output by the i-th charging circuit, the i-th charging circuit can output the current charging voltage V(i) during the j+1-th acquisition process. j+1 =V(i) j -dV, thereby reducing the current charging current of the i-th charging circuit.
[0188] It should be noted that if it is determined in step 2032 that the absolute value of the difference between the current charging current and the reference charging current is less than or equal to the first current threshold, it means that the difference between the current charging current and the reference charging current is small, and step 2033 or step 2036 can be omitted. Instead, the adjustment of the current charging current output by the charging circuit is stopped, and the current charging current output by other charging circuits continues to be adjusted.
[0189] Step 2037: If the charging voltage after the charging circuit reduces the charging voltage is less than the first voltage threshold, an error is reported and the adjustment is stopped.
[0190] The first voltage threshold is used to determine whether the current charging voltage output by the charging circuit can be reduced. The first voltage threshold can be set according to the charging parameters of the adapter and the lowest voltage that can be charged by the portable rechargeable device.
[0191] Similar to step 2034, to ensure normal charging of the portable rechargeable device, after reducing the charging voltage of the charging circuit, it is necessary to detect the reduced charging voltage of the charging circuit to determine whether the reduced charging voltage is less than a first voltage threshold. If the reduced charging voltage is less than the first voltage threshold, it indicates that the current charging voltage of the charging circuit is abnormal, and an error must be promptly reported, and adjustment of the current charging current must be stopped.
[0192] Step 2038: If the charging voltage after the charging circuit is reduced is not less than the first voltage threshold, determine whether the time spent on adjusting the current charging current has timed out.
[0193] This step 2038 is similar to step 2035 and will not be repeated here.
[0194] Step 2039: If the time taken to adjust the current charging current has not timed out, the current charging current output by the charging circuit is adjusted again.
[0195] If the counted number of times is less than or equal to the preset maximum adjustment number of times, or if the counted duration is less than or equal to the preset maximum adjustment duration, it means that the time spent on adjusting the charging current has not timed out, and steps 2031 and 2032 can be executed again to detect the charging current output by the charging circuit again and compare it with the reference charging current corresponding to the charging circuit to obtain a comparison result again until the charging current is adjusted, or the charging current adjustment is stopped.
[0196] Step 20310: If the time taken to adjust the current charging current times out, determine whether the difference between the current charging current and the reference charging current is greater than a second current threshold.
[0197] The second current threshold is used to determine whether an abnormality occurs in the charging process, and the second current threshold is greater than the first current threshold in step 2033 and step 2036.
[0198] After determining that the adjustment of the current charging current has timed out, the charging controller may further determine whether an abnormality has occurred in the charging circuit or the adapter. Accordingly, based on the difference between the current charging current and the reference charging current obtained in step 2032, the charging controller may compare the difference (or the absolute value of the difference) between the current charging current and the reference charging current with a preset second current threshold.
[0199] If the absolute value of the difference between the current charging current and the reference charging current is greater than the second current threshold, it means that the current charging current output by the charging circuit is too different from the reference charging current of the charging strategy, and the charging circuit and / or adapter may be abnormal. In this case, step 20311 can be executed to report an error and stop adjusting the current charging current.
[0200] If the absolute value of the difference between the current charging current and the reference charging current is less than or equal to the second current threshold, it means that the current charging current output by the charging circuit is slightly different from the reference charging current of the charging strategy, and there is no abnormality in the charging circuit and the adapter. In this case, step 20312 can be executed to stop adjusting the current charging current so that adjustment can be continued during the next traversal process to avoid spending too much time on adjusting the current charging current.
[0201] Step 20311: If the difference between the current charging current and the reference charging current is greater than the second current threshold, stop adjusting the current charging current and report an error.
[0202] After determining that the difference between the current charging current and the reference charging current (the absolute value of the difference) is greater than the second current threshold, the charging controller can stop adjusting the current charging current output by the charging circuit and report an error through the portable rechargeable device to remind the user that there is an abnormality in the charging circuit of the current portable rechargeable device or the adapter corresponding to the charging circuit. The user is requested to check in time to avoid safety accidents.
[0203] Step 20312: If the difference between the current charging current and the reference charging current is less than or equal to the second current threshold, stop adjusting the current charging current.
[0204] Similar to step 20311, after determining that the difference between the current charging current and the reference charging current (absolute value of the difference) is less than or equal to the second current threshold, the charging controller can stop adjusting the current charging current output by the charging circuit, but there is no need to report an error through the portable rechargeable device.
[0205] It should be noted that when traversing the current output current of each charging circuit in step 203, if the current output current output by a charging circuit is abnormal, causing the portable rechargeable device to report an error, it means that the charging circuit is abnormal, or the adapter connected to the charging circuit is abnormal. The portable rechargeable device can remove the charging branch where the charging circuit is located, set the charging circuit to a high-impedance state, and stop charging the battery through the charging circuit.
[0206] For example, a portable rechargeable device includes N charging circuits connected to an adapter for charging. If the current charging current output by the i-th charging circuit is abnormal, the i-th charging circuit can be set to a high-impedance state, stopping charging the battery through the i-th charging circuit. Furthermore, the number of adapters connected to the portable rechargeable device increases from N to N-1, and the numbers corresponding to the i+1, i+2, through N-th charging circuits are adjusted to i, i+1, through N-1.
[0207] Step 204: Determine whether the battery voltage is less than a third voltage threshold.
[0208] The third voltage threshold is used to determine whether the portable rechargeable device can be charged in constant voltage mode, and the third voltage threshold is related to the battery characteristics of the battery in the portable rechargeable device. For example, the third voltage threshold can be 4.4V or 13.2V.
[0209] Furthermore, the battery voltage is the voltage across the battery of a portable rechargeable device. A higher battery voltage indicates a higher battery charge. Furthermore, as the battery voltage increases, the charging current delivered to the battery by the various charging circuits decreases. Consequently, when charging is complete, the battery charge is at its highest, resulting in the highest battery voltage and the lowest charging current.
[0210] After the current charging current output by each charging circuit is traversed and adjusted, the portable rechargeable device can detect the battery voltage and compare the battery voltage with a preset third voltage threshold to determine the charging progress of the battery, thereby determining whether the battery can be charged with constant voltage and low current based on the charging progress.
[0211] If the battery voltage is less than the voltage parameter indicated by the third voltage threshold, it means that the battery still needs to be charged with a large amount of electrical energy. Step 203 can be executed again to continue adjusting the current charging current and looping through steps 203 to 204 until the battery voltage is not less than the third voltage threshold. Constant voltage mode can be used for low current charging.
[0212] If the battery voltage is not less than the voltage parameter indicated by the third voltage threshold, it means that the battery power has reached a certain level, and step 205 can be executed to adopt a constant voltage mode for low current charging to avoid damage to the battery.
[0213] It should be noted that the embodiment of the present application is described by taking the example of executing step 203 first and then executing step 204. In actual application, step 204 can also be executed during the execution of step 203, so that step 203 and step 204 are executed at the same time. The embodiment of the present application does not limit the order of step 203 and step 204.
[0214] Step 205: Reduce the reference charging current corresponding to each adapter.
[0215] After comparing the electric field voltage with the third voltage threshold, if the battery voltage is greater than or equal to the third voltage threshold, it means that the battery voltage is high and the current battery power is no longer suitable for high-current charging. It is necessary to switch to constant voltage mode for low-current charging.
[0216] Therefore, the portable rechargeable device can re-formulate a charging strategy and re-assign a reference charging current and a reference charging voltage to each adapter and the corresponding charging circuit. Specifically, the portable rechargeable device can reduce the reference charging current corresponding to each charging circuit according to a preset current change.
[0217] For example, the original reference charging current corresponding to the i-th charging circuit is I0(i), and the preset current change is dI (such as 10 milliamperes (mA)). Then, the updated reference charging current corresponding to the i-th charging circuit is I1(i)=I0(i)-dI.
[0218] It should be noted that the process of reducing the current charging current output by each charging circuit is similar to the process of adjusting the current charging circuit in step 203 above, and will not be described in detail here.
[0219] Step 206: Determine whether the total charging current is greater than a third current threshold.
[0220] The total charging current is the sum of the current charging currents output by each charging circuit. Furthermore, the third current threshold is used to determine whether the portable rechargeable device can be charged using single-adapter mode. If the total charging current is not greater than the third current threshold (e.g., 3A), the portable rechargeable device can enter single-adapter charging mode, meaning it can be charged using a single adapter.
[0221] Additionally, the third current threshold can be set based on whether each adapter, when charging independently, can cause heating in the portable rechargeable device, combined with the charging currents provided by each adapter. For example, if adapter A has a rated current of 1A, adapter B has a rated current of 0.5A, and adapter C has a rated current of 2A, the rated current of adapter C can be used as the third current threshold.
[0222] After lowering the baseline charging current for each adapter, the current charging current output by each adapter's corresponding charging circuit is also adjusted and lowered. The portable rechargeable device can then use the charging controller to determine the current charging current output by each charging circuit, thereby determining the total charging current and whether the portable rechargeable device can enter single-adapter charging mode.
[0223] Specifically, each charging circuit in the portable rechargeable device can detect the current charging current output by the charging circuit using its corresponding current detection circuit, and then feedback the magnitude of each current charging current to the charging controller via a signal line. Accordingly, the charging controller can add up the current charging currents based on the feedback to obtain the total charging current.
[0224] Afterwards, the portable rechargeable device can use the charging controller to compare the total charging current with the third current threshold, and thus determine whether the portable rechargeable device can enter the single-adapter charging mode based on the relationship between the two, and then determine whether to continue adjusting the current charging current output by each charging circuit, or set multiple charging circuits to a high-impedance state and only retain one charging circuit for charging.
[0225] If the total charging current is not greater than the third current threshold, that is, the total charging current is less than or equal to the third current threshold, it means that the charging current required by the portable rechargeable device is small, and step 207 can be executed to charge using the single adapter charging mode.
[0226] If the total charging current is greater than the third current threshold, it indicates that the charging current required by the portable rechargeable device is still relatively large, and the current output by only one adapter cannot reach the total charging current. Alternatively, charging with only one adapter may cause the portable rechargeable device to heat up. In this case, step 203 needs to be executed again to adjust the current charging current output by each charging circuit according to the reduced reference current, thereby reducing the total charging current. Steps 203 to 206 are repeated until the adjusted total charging current is no greater than the third current threshold.
[0227] Step 207: Charging is performed through a target adapter among the adapters.
[0228] The target adapter may be an adapter that can provide the maximum charging current among the multiple adapters.
[0229] If the total charging current is less than or equal to the third current threshold, it means that the portable rechargeable device can be charged through a certain adapter without causing the portable rechargeable device to heat up, and there is no need for multiple adapters to charge the portable rechargeable device at the same time.
[0230] Specifically, after determining that the total charging current is not greater than the third current threshold, the charging controller can select a target adapter that can provide the maximum charging current from multiple adapters, and set the charging circuits corresponding to other adapters to a high-impedance state, so that the portable rechargeable device can no longer be charged through other adapters and can only be charged through the target adapter.
[0231] It should be noted that in actual applications, a portable rechargeable device may be charged using multiple adapters of the same model. In this case, all of the multiple adapters can be used as target adapters. Furthermore, when it is determined that the total charging current is not greater than the third current threshold, charging can continue using any one of the multiple target adapters, while charging stops with the other target adapters. This embodiment of the present application does not limit the method for determining the target adapter.
[0232] Furthermore, after charging in single-adapter charging mode, the portable rechargeable device can remind the user to unplug each adapter from the multiple adapters except the target adapter, thereby reducing safety risks. For example, the portable rechargeable device can announce and / or display to the user, via voice and / or images, that the portable rechargeable device has begun charging in single-adapter charging mode, and remind the user to unplug any adapters not currently being used for charging. Furthermore, during the reminder, the adapters that can be unplugged can be indicated by indicators such as parameters of each adapter.
[0233] Furthermore, it should be noted that while steps 206 and 207 above describe the process of charging a portable rechargeable device using a single-adapter charging mode, in actual applications, the portable rechargeable device may not use the single-adapter charging mode, but may continue to use the multiple-adapter charging mode until charging is complete. That is, in actual applications, the portable rechargeable device may skip steps 206 and 207 and instead execute step 208 after completing step 205.
[0234] Step 208 : Detect whether the current charging current output by the target charging circuit is greater than a fourth current threshold.
[0235] The target charging circuit is a charging circuit corresponding to the target adapter.
[0236] Furthermore, the fourth current threshold is used to determine whether the portable rechargeable device is fully charged. If the current charging current is less than or equal to the fourth current threshold, the battery of the portable rechargeable device can be considered fully charged. In addition, the fourth current threshold can be set according to the battery capacity. The larger the battery capacity, the larger the fourth current threshold. For example, the fourth current threshold can be 100mA. The embodiment of the present application does not limit the parameters of the fourth current threshold.
[0237] After charging in the single-adapter charging mode, the portable rechargeable device can continue to detect the current charging current, that is, detect the current charging current output by the target charging circuit to determine whether the battery of the portable rechargeable device is fully charged.
[0238] Based on the relationship between the battery voltage and battery charge level described in step 204, as the battery charge level gradually increases, the battery voltage also gradually increases, the voltage difference between the battery voltage and the target charging circuit gradually decreases, and the current charging current output by the target charging circuit also gradually decreases. When the current charging current output by the target charging circuit decreases to a certain level, it can be considered that the battery voltage and the voltage of the target charging circuit are close to or the same, and the battery has been fully charged.
[0239] Correspondingly, after obtaining the current charging current output by the target charging circuit, the portable rechargeable device can compare the current charging current with a pre-set fourth current threshold through the charging controller to determine the size relationship between the two, so as to determine whether charging is complete based on the size relationship between the current charging current and the fourth current threshold.
[0240] If the current charging current is greater than the fourth current threshold, it indicates that the battery has not yet been fully charged, and there is still a certain voltage difference between the battery voltage and the current charging voltage of the target charging circuit. The battery can continue to be charged using the single adapter mode, that is, steps 207 to 208 can be executed repeatedly to continue charging the portable rechargeable device and the current charging current output by the target charging circuit can be detected again until the current charging current is less than or equal to the fourth current threshold.
[0241] If the current charging current is less than or equal to the fourth current threshold, it means that the battery has been fully charged, and then step 209 may be executed to stop charging.
[0242] Step 209: Stop charging.
[0243] After comparing the current charging current with the fourth current threshold, if the current charging current is less than or equal to the fourth current threshold, it means that the battery voltage is close to or the same as the voltage of the target charging circuit, the battery has been fully charged and no further charging is required. Therefore, the target charging circuit can be set to a high-impedance state, and charging of the portable rechargeable device through the target adapter can be stopped.
[0244] Furthermore, the portable rechargeable device can remind the user that the battery has been fully charged and that the target adapter can be unplugged, thereby reducing safety risks and improving the safety of charging the portable rechargeable device. For example, similar to the example in step 207, the portable rechargeable device can announce and / or display to the user through voice and / or images that the portable rechargeable device has been fully charged and that the adapter should be unplugged from the portable rechargeable device in a timely manner.
[0245] It should be noted that the embodiments of the present application are only described by taking the charging circuit composed of non-direct charging components as an example. In actual applications, the charging method provided in the embodiments of the present application can also be applied to the charging circuit composed of direct charging components, or simultaneously applied to the charging circuit including direct charging components and / or non-direct charging components. The embodiments of the present application do not limit the composition of the charging circuit.
[0246] In summary, an embodiment of the present application provides a charging method. During the process of charging a portable rechargeable device using multiple adapters, each adapter is connected to a corresponding charging circuit in the portable rechargeable device. The current charging current output by each charging circuit is detected, and each charging circuit is adjusted according to the detection result, so that the current charging current output by each charging circuit matches the charging strategy formulated according to each adapter. In this way, the charging power of each adapter can be reasonably allocated, and each adapter can be controlled to work in the optimal state, thereby improving the charging efficiency and flexibility of the portable rechargeable device.
[0247] Furthermore, the non-direct charging component-based charging method proposed in this application can charge up to 50 watt-hours (Wh) in 20 minutes, which is approximately 77% of the battery capacity of a portable rechargeable device. In contrast, the prior art charging method using a single adapter only charges 30 Wh in 20 minutes, which is approximately 46% of the battery capacity of a portable rechargeable device. Using the charging method proposed in this application can increase charging speed by approximately 66%.
[0248] In addition, under the conditions of equal charging power and equal path impedance, the charging method provided by the embodiments of the present application can effectively reduce the heating of portable rechargeable devices. Compared with single-adapter charging, the heat generated by the multi-adapter charging method based on non-direct charging components in the embodiments of the present application is only 1 / 4 of that when charging with a single adapter. For example, at a power of 90 watts (W), when charging a laptop computer using a single adapter and the multi-adapter proposed in this application, the maximum temperature of the laptop computer's palm rest can reach 36.8 degrees Celsius when charging with a single adapter, while the maximum temperature of the laptop computer's palm rest when charging with the multi-adapter proposed in this application is only 30 degrees Celsius.
[0249] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0250] Corresponding to the charging method described in the above embodiment, the embodiment of the present application also provides a charging device, which has the function of implementing the charging method corresponding to any one of Figures 1A to 4 above, and will not be described in detail here.
[0251] The following describes the electronic device involved in the embodiment of the present application by taking a terminal device as an example. Please refer to Figure 5, which is a schematic diagram of the structure of a terminal device provided in the embodiment of the present application.
[0252] The terminal device may include a processor 510, an external memory interface 520, an internal memory 521, a universal serial bus (USB) interface 530, a charging management module 540, a power management module 541, a battery 542, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a speaker 570A, a receiver 570B, a microphone 570C, an earphone interface 570D, a sensor module 580, a button 590, a motor 591, an indicator 592, a camera 593, a display screen 594, and a subscriber identification module (SIM) card interface 595, etc. The sensor module 580 may include a pressure sensor 580A, a gyroscope sensor 580B, an air pressure sensor 580C, a magnetic sensor 580D, an acceleration sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, etc.
[0253] It should be understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device 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.
[0254] The processor 510 may include one or more processing units. For example, the processor 510 may include an application processor (AP), 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). Different processing units may be independent devices or integrated into one or more processors.
[0255] The controller can be the nerve center and command center of the terminal device. It can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0256] Processor 510 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 510 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 510. If processor 510 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of processor 510, and thus improves system efficiency.
[0257] In some embodiments, the processor 510 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0258] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 510 may include multiple I2C busses. The processor 510 may be coupled to the touch sensor 580K, charger, flash, camera 593, etc. via different I2C bus interfaces. For example, the processor 510 may be coupled to the touch sensor 580K via the I2C interface, enabling communication between the processor 510 and the touch sensor 580K via the I2C bus interface, thereby implementing the touch function of the terminal device.
[0259] The I2S interface can be used for audio communication. In some embodiments, the processor 510 can include multiple I2S buses. The processor 510 can be coupled to the audio module 570 via the I2S bus to enable communication between the processor 510 and the audio module 570. In some embodiments, the audio module 570 can transmit audio signals to the wireless communication module 560 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0260] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 570 and the wireless communication module 560 can be coupled via a PCM bus interface. In some embodiments, the audio module 570 can also transmit audio signals to the wireless communication module 560 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0261] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 510 and the wireless communication module 560. For example, the processor 510 communicates with the Bluetooth module in the wireless communication module 560 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 570 can transmit audio signals to the wireless communication module 560 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0262] The MIPI interface can be used to connect the processor 510 to peripheral devices such as the display screen 594 and the camera 593. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 510 and the camera 593 communicate via the CSI interface to implement the camera function of the terminal device. The processor 510 and the display screen 594 communicate via the DSI interface to implement the display function of the terminal device.
[0263] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 510 to the camera 593, the display 594, the wireless communication module 560, the audio module 570, the sensor module 580, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0264] USB interface 530 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 530 can be used to connect a charger to charge the terminal device, or to transfer data between the terminal device and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other terminal devices, such as AR devices.
[0265] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments of the present application, the terminal device may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0266] The charging management module 540 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 540 can receive charging input from the wired charger via the USB interface 530. In some wireless charging embodiments, the charging management module 540 can receive wireless charging input via the terminal device's wireless charging coil. While charging the battery 542, the charging management module 540 can also provide power to the terminal device via the power management module 541.
[0267] The power management module 541 is used to connect the battery 542, the charging management module 540, and the processor 510. The power management module 541 receives input from the battery 542 and / or the charging management module 540 and provides power to the processor 510, the internal memory 521, the external memory, the display 594, the camera 593, and the wireless communication module 560. The power management module 541 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 541 can also be set in the processor 510. In other embodiments, the power management module 541 and the charging management module 540 can also be set in the same device.
[0268] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 550, wireless communication module 560, modem processor and baseband processor.
[0269] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0270] The mobile communication module 550 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to terminal devices. The mobile communication module 550 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 550 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 550 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 550 can be set in the processor 510. In some embodiments, at least some of the functional modules of the mobile communication module 550 can be set in the same device as at least some of the modules of the processor 510.
[0271] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 570A, the receiver 570B, etc.) or displays an image or video through the display screen 594. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 510 and be provided in the same device as the mobile communication module 550 or other functional modules.
[0272] The wireless communication module 560 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied to the terminal device. The wireless communication module 560 can be one or more devices integrating at least one communication processing module. The wireless communication module 560 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 510. The wireless communication module 560 can also receive the signal to be sent from the processor 510, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0273] In some embodiments, antenna 1 of the terminal device is coupled to mobile communication module 550, and antenna 2 is coupled to wireless communication module 560, so that the terminal device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite-based augmentation system (SBAS).
[0274] The terminal device implements display functionality through a GPU, display screen 594, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 594 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 510 may include one or more GPUs that execute program instructions to generate or modify display information.
[0275] Display screen 594 is used to display images, videos, etc. Display screen 594 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, or a quantum dot light-emitting diode (QLED). In some embodiments, the terminal device may include one or N display screens 594, where N is a positive integer greater than 1.
[0276] The internal memory 521 can be used to store computer executable program codes, which include instructions. The processor 510 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 521. The internal memory 521 may include a program storage area and a data storage area. Among them, the program storage area can 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 can store data created during the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 521 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.
[0277] The terminal device can implement audio functions such as music playback and recording through the audio module 570, speaker 570A, receiver 570B, microphone 570C, headphone jack 570D, and application processor.
[0278] The audio module 570 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 570 can also be used to encode and decode audio signals. In some embodiments, the audio module 570 can be provided in the processor 510, or some functional modules of the audio module 570 can be provided in the processor 510.
[0279] The speaker 570A, also called a "speaker", is used to convert audio electrical signals into sound signals. The terminal device can listen to music or listen to hands-free calls through the speaker 570A.
[0280] The receiver 570B, also called the "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device receives a call or voice message, the voice can be heard by placing the receiver 570B close to the human ear.
[0281] Microphone 570C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 570C to input the sound signal into the microphone 570C. The terminal device can be provided with at least one microphone 570C. In other embodiments, the terminal device can be provided with two microphones 570C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal device can also be provided with three, four or more microphones 570C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0282] Keys 590 include a power button, a volume button, and the like. Keys 590 may be mechanical keys or touch-sensitive keys. The terminal device may receive key inputs and generate key signal inputs related to user settings and function control of the terminal device.
[0283] Motor 591 can generate vibration prompts. Motor 591 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 594, motor 591 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0284] Indicator 592 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0285] The SIM card interface 595 is used to connect a SIM card. The SIM card can be connected to or separated from the terminal device by inserting it into or removing it from the SIM card interface 595. The terminal device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 595 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 595 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 595 can also be compatible with different types of SIM cards. The SIM card interface 595 can also be compatible with external memory cards. The terminal device interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device and cannot be separated from the terminal device.
[0286] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0287] 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.
[0288] 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.
[0289] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0290] 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.
[0291] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0292] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program, when executed by the processor, can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to an 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 disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electric carrier signal or a telecommunication signal.
[0293] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A charging method, characterized in that: Used in electronic equipment, including: When connected to multiple adapters, determining charging parameters corresponding to each of the adapters; Determine a reference charging current corresponding to each charging circuit according to each of the charging parameters, and connect each of the adapters to each of the charging circuits in a one-to-one correspondence; According to each of the reference charging currents, the current charging current output by each of the charging circuits is adjusted.
2. The method according to claim 1, characterized in that The step of adjusting the current charging current output by each charging circuit according to each reference charging current includes: For each of the charging circuits, obtaining the current charging current output by the charging circuit; The current charging current is adjusted according to a magnitude relationship between the current charging current and a reference charging current corresponding to the charging circuit.
3. The method according to claim 2, characterized in that The adjusting the current charging current according to a magnitude relationship between the current charging current and a reference charging current corresponding to the charging circuit includes: If the current charging current is greater than the reference charging current and the difference between the current charging current and the reference charging current is greater than a first current threshold, reducing the current charging voltage of the charging circuit; If the current charging current is less than the reference charging current and the difference between the current charging current and the reference charging current is greater than the first current threshold, increasing the current charging voltage of the charging circuit; If the difference between the current charging current and the reference charging current is less than or equal to the first current threshold, the adjustment of the current charging current is stopped.
4. The method according to claim 3, characterized in that After reducing the current charging voltage of the charging circuit, the method further includes: comparing the reduced voltage of the charging circuit with a first voltage threshold, where the first voltage threshold is used to determine whether the current charging voltage output by the charging circuit can be reduced; If the reduced voltage is less than the first voltage threshold, adjusting the current charging current is stopped and an error is reported.
5. The method according to claim 3, characterized in that After increasing the current charging voltage of the charging circuit, the method further includes: comparing the voltage increased by the charging circuit with a second voltage threshold, the second voltage threshold being used to determine whether the current charging voltage output by the charging circuit can be increased; If the increased voltage is greater than the second voltage threshold, the adjustment of the current charging current is stopped and an error is reported.
6. The method according to claim 4 or 5, characterized in that The method further comprises: If the reduced voltage is greater than or equal to a first voltage threshold, or the increased voltage is less than or equal to a second voltage threshold, determining whether a time taken to adjust the current charging current has timed out; If the time taken to adjust the current charging current has not timed out, continue adjusting the current charging current; If the time taken to adjust the current charging current times out, the adjustment of the current charging current is stopped.
7. The method according to claim 6, characterized in that The stopping adjusting the current charging current includes: If the difference between the current charging current and the reference charging current is less than or equal to a preset second current threshold, then stop adjusting the current charging current, and the second current threshold is greater than the first current threshold; If the difference between the current charging current and the reference charging current is greater than the second current threshold, adjusting the current charging current is stopped and an error is reported.
8. The method according to any one of claims 1 to 7, characterized in that: After determining the charging parameters corresponding to each of the adapters, the method further includes: Obtaining a battery voltage, where the battery voltage is the voltage across the battery of the electronic device; If the battery voltage is greater than or equal to a third voltage threshold, reducing the reference charging current corresponding to each charging circuit, wherein the third voltage threshold is used to determine whether the electronic device can be charged in a constant voltage mode; According to each reduced reference charging current, the current charging current output by each charging circuit is adjusted.
9. The method according to claim 8, characterized in that After adjusting the current charging current output by each charging circuit according to each reduced reference charging current, the method further includes: determining a total charging current based on the current charging current output by each of the charging circuits; If the total charging current is less than or equal to a third current threshold, charging is performed using a target adapter among the adapters in a single-adapter mode, wherein the third current threshold is used to determine whether the electronic device can be charged in the single-adapter mode; If the total charging current is greater than the third current threshold, the current charging current output by each charging circuit is adjusted again according to each of the reduced reference charging currents until the total charging current is less than or equal to the third current threshold.
10. The method according to claim 9, characterized in that After charging in a single-adapter mode using a target adapter among the adapters, the method further includes: Obtaining a current charging current output by a target charging circuit, where the target charging circuit is a charging circuit connected to the target adapter; If the current charging current output by the target charging circuit is less than or equal to a fourth current threshold, then charging is stopped, and the fourth current threshold is used to determine whether the electronic device is fully charged; If the current charging current output by the target charging circuit is greater than the fourth current threshold, the current charging current output by the target charging circuit is obtained again until the current charging current output by the target charging circuit is less than or equal to the fourth current threshold.
11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: detecting whether the number of adapters connected to the electronic device changes; If the number of adapters connected to the electronic device remains unchanged, continuing to adjust the current charging current output by each charging circuit according to each reference charging current; If the number of adapters connected to the electronic device changes, the reference charging current corresponding to each charging circuit is re-determined.
12. An electronic device, characterized in that: include: A charging controller, a battery, a plurality of charging circuits, and a plurality of charging ports, wherein the plurality of charging circuits correspond one to one with the plurality of charging ports; The input end of each charging circuit is connected to the corresponding charging port, the output end of each charging circuit is connected to the battery, and each charging circuit is also connected to the charging controller; The charging controller is configured to run a computer program stored in a memory, so as to enable the electronic device to implement the charging method according to any one of claims 1 to 11.
13. The electronic device according to claim 12, wherein: The electronic device further comprises: a plurality of anti-backfeed circuits and a plurality of current detection circuits, wherein the plurality of charging circuits correspond one to one with the plurality of anti-backfeed circuits and the plurality of current detection circuits respectively; Each of the anti-backflow circuits is connected in series between the corresponding charging circuit and the battery, and the input end of each of the current detection circuits is connected to the output end of the corresponding charging circuit; The current detection circuit is used to monitor the charging current output by the charging circuit; The anti-backflow circuit is used to prevent the charging current from flowing from the battery into the charging circuit.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the charging method according to any one of claims 1 to 11 is implemented.
15. A chip system, characterized in that: The chip system includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the charging method according to any one of claims 1 to 11.
