Charging method, related charging device and related charging control chip
By dynamically adjusting the charging current and based on the power consumption information of multiple types of charging interfaces, the problem of low charging efficiency in the multi-interface charging scenarios in the prior art is solved, and a more efficient, flexible and applicable charging solution is achieved.
Patent Information
- Application Number
- CN202110346539.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2040-09-29
AI Technical Summary
In the multi-interface charging scenario, the charging current of each interface cannot be effectively coordinated, resulting in low charging efficiency, poor flexibility and low applicability.
By collecting the load status of each charging interface, determining the situation of accessing the power consumption equipment, and dynamically adjusting the charging current based on the power consumption information of at least two types of charging interfaces to ensure the charging efficiency and applicability of each interface.
It improves charging efficiency, enhances charging flexibility and applicability, and can better meet the charging needs of multiple different electronic devices.
Smart Images

Figure CN114336816B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of charging chips, and in particular to a charging method, related charging devices, and related charging control chips. Background Art
[0002] With the rapid development of electronic devices, since a single charging interface cannot charge multiple electronic devices simultaneously, in order to meet the charging requirements of multiple different electronic devices, charging device manufacturers have introduced multi-interface charging solutions. How to coordinate multi-interface charging is one of the technical problems that need to be solved urgently.
[0003] In the prior art, when coordinating multi-interface charging, usually when an electrical device is connected to one of the multiple interfaces, charging is performed according to the current required by the electrical device connected to that interface. When two or more of the multiple interfaces are connected to electrical devices, a unified current value is used to charge the electrical devices connected to each interface. For example, 1A is used to charge the electrical devices connected to each interface. However, when multiple electrical devices are connected, the charging currents required by each electrical device are different. The prior art uses a unified current value to charge each electrical device, resulting in low charging efficiency, poor flexibility, and low applicability of each electrical device. Summary of the Invention
[0004] This application provides a charging method, a charging device, and a charging control chip. Charging is performed according to the power consumption information of the devices connected to at least two types of charging interfaces, which can improve charging efficiency, have good flexibility, and strong applicability.
[0005] In a first aspect, an embodiment of this application provides a charging method. This charging method is applicable to a charging device. The charging device is connected to a power supply and provides at least two charging interfaces externally. The at least two charging interfaces include a first type of charging interface and a second type of charging interface. The above charging method includes:
[0006] Collect the load status of each charging interface, and determine whether an electrical device is connected to each charging interface according to the load status of each charging interface;
[0007] When the first type of charging interface and the second type of charging interface are both connected to electrical devices at the same time, according to the first power consumption information of the first electrical device connected to the first type of charging interface, conduct a first charging branch to charge the first electrical device. The first power consumption information is used to determine the charging current value input to the first charging branch based on the power supply.
[0008] According to the charging current value of the first charging branch and / or the second power consumption information of the second power consumption device connected to the second type of charging interface, the second charging branch is turned on to charge the second power consumption device, and the charging current value of the second charging branch is determined by the charging current value of the first charging branch and / or the second power consumption information.
[0009] The embodiments of the present application can charge according to the power consumption information of the devices connected to at least two types of charging interfaces, improving the charging efficiency, with good flexibility and strong applicability.
[0010] Combined with the first aspect, in the first possible implementation manner, a third charging branch and a fourth charging branch are connected in parallel between the second type of charging interface and the power supply.
[0011] The specific implementation of turning on the second charging branch according to the charging current value of the first charging branch is as follows:
[0012] When the charging current value of the first charging branch is not less than a preset current threshold, the third charging branch is determined as the second charging branch, the third charging branch is turned on, and the fourth charging branch is turned off;
[0013] Wherein the charging current value of the second charging branch is less than the charging current value of the first charging branch.
[0014] In the present application, the preset current threshold can be 30 mA here, the first type of charging interface can be a USB-C interface, and the second type of charging interface can be a USB-A interface. When the charging current value of the first charging branch is not less than the preset current threshold, a fast charging power supply can be provided for the first power consumption device connected to the USB-C interface, and a normal charging power supply can be used for the second power consumption device connected to the USB-A interface. In other words, at this time, fast charging is used for the first power consumption device and normal charging is used for the second power consumption device. The charging efficiency of the first power consumption device connected to the USB-C interface can be preferentially ensured, and the stable charging of the second power consumption device connected to the USB-A interface can also be ensured.
[0015] Combined with the first possible implementation manner of the first aspect, in the second possible implementation manner, after turning on the third charging branch and turning off the fourth charging branch, the method further includes:
[0016] Send a status information acquisition request to the first power consumption device through the first type of charging interface, triggering the first power consumption device to send the rated capacity Q of the first battery of the first power consumption device and the battery voltage of the first battery at time t0 when the first power consumption device receives the status information request, where the time t0 is the time when the first charging branch is turned on;
[0017] Determine the state of charge value SOC(t0) of the first battery at time t0 based on the preset correspondence between the battery voltage and the state of charge, and the battery voltage of the first battery at time t0;
[0018] Obtain the charging current value I of the first charging branch through the current sensor connected in series in the first charging branch, and calculate the state of charge value SOC(t) of the first battery at the t-th moment, where the t-th moment is any moment after the t0 moment. Among them, the state of charge value SOC(t) of the first battery at the t-th moment satisfies:
[0019]
[0020] When the state of charge value SOC(t) of the first battery at the t-th moment is greater than the preset state of charge threshold, disconnect the first charging branch to stop charging the first electrical device;
[0021] Determine the fourth charging branch as the second charging branch, turn off the third charging branch and turn on the fourth charging branch; or,
[0022] Determine the target charging current value according to the above second electrical information. When the target charging current value is not less than the preset current threshold, turn on the third charging branch and the fourth charging branch at the same time to obtain the second charging branch, and the charging current value of the second charging branch is greater than the charging current value of the first charging branch.
[0023] In this application, a communication connection can be established with the first electrical device. This communication connection can be directly established through the communication bus set on the first type of charging interface, that is, this communication connection can be a wired communication connection. Sending a status information acquisition request to the first electrical device based on the wired communication connection can improve the speed of acquiring the status information of the first electrical device. This communication connection can also be established through WiFi, Bluetooth, etc., that is, this communication connection can be a wireless communication connection. The wireless communication connection can avoid interference caused by the charging current of the charging device to the communication, has strong anti-interference ability, and the obtained status information has high accuracy.
[0024] And in this application, the state of charge value SOC(t) of the first battery of the first electrical device can be calculated in real time according to the rated capacity Q of the first battery, the state of charge value SOC(t0) of the first battery at time t0, and the charging current value I of the first charging branch. Whether the first electrical device is fully charged is judged by the magnitude relationship between the state of charge value SOC(t) of the first battery and the preset state of charge threshold, which is fast, convenient, has good real-time performance, and high accuracy.
[0025] When the first electrical device is fully charged, the first charging branch can be disconnected, which can reduce the operating losses of the components in the first charging branch (such as the first switching tube), avoid overcharging of the first electrical device, improve the charging safety of the first electrical device, and extend the lifespan of the first electrical device. At this time, charging can be carried out for the second electrical device according to the charging current of the first electrical device without the need for the power supply to readjust the output current, and the operation is convenient and simple. It is also possible to trigger the power supply to readjust the output current according to the charging current required by the second electrical device (i.e., the target charging current), and charge the second electrical device according to the target charging current, improving the adaptability of the charging current to the second electrical device and increasing the charging efficiency of the second electrical device.
[0026] Combined with the first possible implementation manner of the first aspect, in the third possible implementation manner, the charging voltage output from the first charging branch to the first electrical device is one of 9V, 12V, 15V, or 20V; the charging voltage output from the second charging branch to the second electrical device is 5V.
[0027] Combined with the first aspect, in the fourth possible implementation manner, a third charging branch and a fourth charging branch are connected in parallel between the second type of charging interface and the power supply;
[0028] The specific implementation of turning on the second charging branch according to the charging current value of the first charging branch and the second electrical information of the second electrical device connected to the second type of charging interface is as follows:
[0029] When the charging current value of the first charging branch is less than the preset current threshold, determine the target charging current value according to the second electrical information;
[0030] When the target charging current value is not less than the preset current threshold, turn on both the third charging branch and the fourth charging branch simultaneously to obtain the second charging branch, and the charging current value of the second charging branch is greater than the current value of the first charging branch;
[0031] When the target charging current value is less than the preset current threshold, determine the third charging branch as the second charging branch, turn on the third charging branch and turn off the fourth charging branch.
[0032] In this application, the preset current threshold can be 30 mA here. The first type of charging interface can be a USB-C interface, and the second type of charging interface can be a USB-A interface. When the charging current value of the first charging branch is less than the preset current threshold, a normal charging power supply can be provided for the first electrical device connected to the USB-C interface. In other words, normal charging is adopted for the first electrical device at this time. If the target charging current value of the second electrical device is not less than the preset current threshold at this time, fast charging can be adopted for the second electrical device connected to the USB-A interface. While ensuring the stable charging of the first electrical device connected to the USB-C interface, the charging efficiency of the second electrical device connected to the USB-A interface is improved. If the target charging current value of the second electrical device is less than the preset current threshold at this time, normal charging can be adopted for the second electrical device connected to the USB-A interface, which can save the charging resources of the charging device.
[0033] Combined with the first aspect or any of the above possible implementation manners of the first aspect, in the fifth possible implementation manner, the above-mentioned first type of charging interface has an access detection pin;
[0034] The above-mentioned acquisition of the load status of each charging interface and determining whether each charging interface is connected to an electrical device according to the load status of each charging interface are specifically implemented as follows:
[0035] Acquire the voltage of the above-mentioned access detection pin;
[0036] If the voltage value of the access detection pin is not equal to the preset voltage threshold, it is determined that the above-mentioned first type of charging interface is connected to an electrical device.
[0037] In this application, only by acquiring the voltage of the access detection pin of the first type of charging interface can the load status of the first type of charging interface be determined, which simplifies the circuit structure, has simple operation, can improve the stability of the charging device, and has strong applicability.
[0038] Combined with the first aspect or any of the above possible implementation manners of the first aspect, in the sixth possible implementation manner, a detection resistor is connected in series between the ground pin of the above-mentioned second type of charging interface and the ground pin of the above-mentioned charging device;
[0039] The above-mentioned acquisition of the load status of each charging interface and determining whether each charging interface is connected to an electrical device according to the load status of each charging interface includes:
[0040] Acquire the voltage across the detection resistor. When the voltage difference across the detection resistor is not zero, it is determined that the above-mentioned second type of charging interface is connected to an electrical device.
[0041] In this application, the load state of the second type of charging interface is determined by detecting the voltage difference across the resistor. The accuracy of the detection only depends on the resistance value of the detection resistor. No matter how small the charging current required by the electrical device connected to the second type of charging interface is, the connection of the electrical device can be accurately detected, that is, the connection of small-current electrical devices can be accurately detected, and the circuit structure is simple and the cost is low.
[0042] Combined with the second possible implementation manner of the first aspect, in the seventh possible implementation manner, the above first electrical information includes the charging current required by the above first electrical device;
[0043] The above-mentioned conducting the first charging branch to charge the first electrical device according to the first electrical information of the first electrical device connected to the above first type of charging interface includes:
[0044] Trigger the power supply to adjust the charging current value input to the first charging branch according to the charging current required by the first electrical device, and conduct the first charging branch.
[0045] In this application, the output current of the power supply can be triggered according to the charging current required by the first electrical device, which can improve the utilization efficiency of the power supply.
[0046] Combined with the first aspect or any of the above possible implementation manners of the first aspect, in the eighth possible implementation manner, the above first type of charging interface is a USB-C interface, and the above second type of charging interface is a USB-A interface.
[0047] In a second aspect, an embodiment of this application provides a charging device, which includes a charging controller, at least two charging interfaces, and at least three charging branches. The at least two charging interfaces include a first type of charging interface and a second type of charging interface. Among them, the charging controller is connected to a power supply, the power supply is respectively connected to the input ends of the at least three charging branches, the output ends of the at least three charging branches are respectively connected to their corresponding charging interfaces, one charging branch corresponds to at least one charging interface, the at least two charging interfaces are connected to the charging controller, and the charging controller is used to execute the method steps in the first aspect or any of the above possible implementation manners of the first aspect.
[0048] Combined with the second aspect, in the first possible implementation manner, the at least three charging branches include a first charging branch, and a first switching tube is provided in the first charging branch;
[0049] The input end of the first switching tube serves as the input end of the first charging branch, the output end of the first switching tube serves as the output end of the second charging branch, and the control end of the first switching tube is connected to the charging controller.
[0050] Combined with the first possible implementation of the second aspect, in the second possible implementation, the at least three charging branches further include a third charging branch and a fourth charging branch, the third charging branch is in parallel with the fourth charging branch, wherein, a buck unit and a second switching tube are provided in the third charging branch, and a third switching tube is provided in the fourth charging branch;
[0051] The buck unit and the second switching tube are connected in series in the third charging branch, and the control end of the second switching tube is connected to the charging controller.
[0052] The input end of the third switching tube serves as the input end of the fourth charging branch, the output end of the third switching tube serves as the output end of the fourth charging branch, and the control end of the third switching tube is connected to the charging controller.
[0053] In this application, the buck unit can be a low dropout regulator (LDO), or a DC-DC converter (Direct-Current-Direct-Current converter, a voltage converter that converts the input DC voltage into a set DC voltage and outputs it).
[0054] Combined with the second possible implementation of the second aspect, in the third possible implementation, the first type of charging interface has an access detection pin; the access detection pin is connected to the charging, and is used to detect whether the first type of charging interface is accessing a first electrical device. When the first type of charging interface accesses the first electrical device, the voltage value of the access detection pin is not equal to the preset voltage threshold, otherwise the voltage value of the access detection pin is equal to the preset voltage threshold.
[0055] Combined with the third possible implementation of the second aspect, in the fourth possible implementation, a detection resistor is connected in series between the ground pin of the second type of charging interface and the ground pin of the charging device; both ends of the detection resistor are respectively connected to the charging controller, and are used to detect whether the second type of charging interface is accessing a second electrical device. When the second type of charging interface accesses the second electrical device, the voltage difference between both ends of the detection resistor is not zero, otherwise the voltage difference between both ends of the detection resistor is zero.
[0056] Combined with the fourth possible implementation manner of the second aspect, in the fifth possible implementation manner, the above charging controller includes a feedback pin FB, a first positive data pin DP1, a first negative data pin DM1, a second positive data pin DP2, a second negative data pin DM2, a voltage detection pin CC1, a positive current detection pin CTR+, a negative current detection pin CTR-, a first control pin VOUT1G, a second control pin VOUT2G, and a third control pin VOUT3G. Among them,
[0057] The above feedback pin FB is connected to the power supply, and is used to trigger the power supply to adjust the charging current value input to the above at least three charging branches according to the charging current required by the electrical device;
[0058] The above first positive data pin DP1 is connected to the positive data pin dp1 of the above first type of charging interface, and the above first negative data pin DM1 is connected to the negative data pin dm1 of the above first type of charging interface. The first positive data pin DP1 and the first negative data pin DM1 are used to establish communication with the above first type of charging interface to obtain the first electrical information of the first electrical device connected through the above first type of charging interface;
[0059] The above voltage detection pin CC1 is connected to the access detection pin of the above first type of charging interface, and is used to detect whether the above first type of charging interface is connected to the above first electrical device;
[0060] The above second positive data pin DP2 is connected to the positive data pin dp2 of the above second type of charging interface, and the above second negative data pin DM2 is connected to the negative data pin dm2 of the above second type of charging interface. The second positive data pin DP2 and the second negative data pin DM2 are used to establish communication with the above second type of charging interface to obtain the second electrical information of the second electrical device connected through the above second type of charging interface;
[0061] The above positive current detection pin CTR+ is connected to one end of the above detection resistor, and the above negative current detection pin CTR- is connected to the other end of the above detection resistor. One end of the detection resistor is connected to the ground pin of the above second type of charging interface, and the other end of the detection resistor is connected to the ground pin of the above charging device. The above positive current detection pin CTR+ and the above negative current detection pin CTR- are used to determine whether the above second type of charging interface is connected to the above second electrical device according to whether the voltage difference across the above detection resistor is zero;
[0062] The above first control pin VOUT1G is connected to the control end of the above first switching tube, and is used to control the above first charging branch to conduct to charge the first electrical device;
[0063] The second control pin VOUT2G is connected to the control end of the second switching transistor, and the third control pin VOUT3G is connected to the control end of the third switching transistor. The second control pin VOUT2G and the third control pin VOUT3G are used to control the third charging branch to conduct and the fourth charging branch to disconnect to obtain the second charging branch, or control the third charging branch and the second charging branch to conduct to obtain the second charging branch to charge the second electrical device.
[0064] In the present application, the charging controller can detect the load status of the first type of charging interface through the voltage detection pin CC1, which can reduce the number of pins of the charging controller, and the detection circuit is simple and the circuit stability is high. The charging controller can detect the load status of the second type of charging interface through the positive current detection pin CTR+ and the negative current detection pin CTR-. The accuracy of detection only depends on the resistance value of the detection resistor. No matter how small the charging current required by the electrical device connected to the second type of charging interface is, the access of the electrical device can be accurately detected, that is, the access of the small-current electrical device can be accurately detected, and the circuit structure is simple and the cost is low.
[0065] Combined with the second aspect or any possible implementation manner of the second aspect, in the sixth possible implementation manner, the first type of charging interface is a USB-C interface, and the second type of charging interface is a USB-A interface.
[0066] In a third aspect, an embodiment of the present application provides a charging control chip, which is applicable to the electrical device in the first aspect or any possible implementation manner of the first aspect, and is used to execute the method steps in the first aspect or any possible implementation manner of the first aspect.
[0067] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored, and when they run on a computer, they enable the computer to execute the beneficial effects of the method provided in the first aspect or any possible implementation manner of the first aspect. Description of the Drawings
[0068] Figure 1 It is a schematic diagram of the application scenario of the charging device provided by the embodiment of the present application;
[0069] Figure 2 It is a schematic diagram of the structure of the charging device provided by the embodiment of the present application;
[0070] Figure 3 It is a schematic diagram of the circuit of the charging device provided by the embodiment of the present application;
[0071] Figure 4A schematic flowchart of the charging method provided by an embodiment of the present application;
[0072] Figure 5 Another schematic flowchart of the charging method provided by an embodiment of the present application. Detailed implementation manners
[0073] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0074] The charging method provided by the embodiment of the present application is applicable to a charging device. Refer to Figure 1 , Figure 1 which is a schematic diagram of the application scenario of the charging device provided by the embodiment of the present application. As Figure 1 shown, the charging device 10 is connected to a power supply 11 and provides at least two charging interfaces externally. The at least two charging interfaces include a first-type charging interface 101 and a second-type charging interface 102. Here, the first-type charging interface 101 can be a USB-C charging interface, and the second-type charging interface 102 can be a USB-A charging interface, or the first-type charging interface 101 is a USB-A charging interface and the second-type charging interface 102 is a USB-C charging interface, which can be specifically determined according to the actual application scenario and is not limited herein. The charging method provided by the embodiment of the present application (which can be simply referred to as the method provided by the embodiment of the present application for convenience of description) can be applicable to the charging scenarios of electrical devices 12 with different types of charging interfaces. The electrical device 12 can be, for example, a mobile phone 121, a laptop computer 122, a tablet computer 123, etc. The charging device 10 provided by the embodiment of the present application can be specifically embodied as a power adapter of the electrical device 12. For example, the charging device 10 can be a power adapter configured for the mobile phone 121, the laptop computer 122, or the tablet computer 123 when they leave the factory. This power adapter can also be set in a vehicle, that is, it can be specifically embodied as an in-vehicle power adapter for charging the electrical devices in the above various forms. For convenience of description, the electrical devices in the above various forms will be uniformly described by taking the electrical device as an example, and the charging devices in the above various forms will be described by taking the charging device as an example.
[0075] Next, the charging device of the embodiment of the present application will be described by way of example in conjunction with Figure 2 the following.
[0076] Refer to Figure 2 , Figure 2 which is a structural block diagram of a charging device provided by the embodiment of the present application. As Figure 2As shown in the figure, the charging device 20 includes a charging controller 200, at least two charging interfaces, and at least three charging branches. The at least two charging interfaces include a first-type charging interface 204 and a second-type charging interface 205. Among them, the charging controller 200 is connected to the power supply 21, and the power supply 21 is connected to the input ends of the at least three charging branches. For example, the power supply 21 is respectively connected to the input end of the first charging branch 201, the input end of the third charging branch 202, and the input end of the fourth charging branch 203. The output ends of the at least three charging branches are respectively connected to their corresponding charging interfaces. One charging branch corresponds to at least one charging interface. The at least two charging interfaces are connected to the charging controller 200, that is, the first-type charging interface 204 is connected to the charging controller 200, and the second-type charging interface 205 is also connected to the charging controller 200.
[0077] The above charging device will be introduced in detail below in combination with a specific circuit schematic diagram. Refer to Figure 3 , Figure 3 which is the circuit schematic diagram of the charging device provided by the embodiment of the present application. As Figure 3 shown, the charging device 30 includes a charging controller 300, a first charging branch 301, a third charging branch 302, a fourth charging branch 303, a first-type charging interface 304, and a second-type charging interface 305.
[0078] The charging controller 300 may include a fast-charging chip with multiple built-in fast-charging protocols. The charging controller 300 may be a central processing unit (CPU), and the charging controller 300 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0079] The charging controller 300 may include multiple pins. For example, a feedback pin FB, a first positive data pin DP1, a first negative data pin DM1, a second positive data pin DP2, a second negative data pin DM2, a voltage detection pin CC1, a positive current detection pin CTR+, a negative current detection pin CTR-, a first control pin VOUT1G, a second control pin VOUT2G, a third control pin VOUT3G, etc.
[0080] The feedback pin FB is connected to the power supply 31 and is used to trigger the power supply 31 to adjust the charging current values input to the first charging branch 301, the third charging branch 302, and the fourth charging branch 303 according to the charging current required by the electrical device.
[0081] The first positive data pin DP1 is connected to the positive data pin dp1 of the first type of charging interface, and the first negative data pin DM1 is connected to the negative data pin dm1 of the first type of charging interface. The first positive data pin DP1 and the first negative data pin DM1 are used to establish communication with the first type of charging interface 304, that is, the charging controller 300 establishes communication with the first type of charging interface 304 to obtain the first electrical information of the first electrical device connected through the first type of charging interface 304.
[0082] In some feasible embodiments, a first switching transistor Q1 is provided in the first charging branch 301; the input end of the first switching transistor Q1 serves as one end of the first charging branch 301, the output end of the first switching transistor Q1 serves as the output end of the second charging branch 301, and the control end of the first switching transistor Q1 is connected to the charging controller 300. For example, the first control pin VOUT1G of the charging controller 300 is connected to the control end of the first switching transistor Q1 and is used to control the conduction of the first charging branch 301 to charge the first electrical device.
[0083] Furthermore, the first charging branch 301 further includes a first capacitor C1. The first capacitor C1 is used to filter out the ripple interference of the power supply 31, and the placement position of the first capacitor C1 should be close to the first type of charging interface 304.
[0084] In some feasible embodiments, the third charging branch 302 is connected in parallel with the fourth charging branch 303. A step-down unit U2 and a second switching transistor Q2 are provided in the third charging branch 302, where the step-down unit U2 and the second switching transistor Q2 are connected in series in the third charging branch 302, and the control terminal of the second switching transistor Q2 is connected to the charging controller 300. For example, the second control pin VOUT2G of the charging controller 300 is connected to the control terminal of the second switching transistor Q2. Optionally, the step-down unit U2 can be a low dropout regulator (LDO), or a DC-DC converter (Direct-Current-Direct-Current converter, a voltage converter that converts the input DC voltage into a set DC voltage and outputs it). A third switching transistor Q3 is provided in the fourth charging branch 303. The input terminal of the third switching transistor Q3 serves as the input terminal of the fourth charging branch 303, the output terminal of the third switching transistor Q3 serves as the output terminal of the fourth charging branch 303, and the control terminal of the third switching transistor Q3 is connected to the charging controller 300. For example, the third control pin VOUT3G of the charging controller 300 is connected to the control terminal of the third switching transistor Q3. When the second control pin VOUT2G controls the third charging branch 302 to conduct, the third control pin VOUT3G controls the fourth charging branch 303 to turn off; or when the second control pin VOUT2G controls the third charging branch 302 to conduct, the third control pin VOUT3G also controls the fourth charging branch 303 to conduct.
[0085] In some feasible embodiments, the first type of charging interface 304 can be a USB-C interface. The first type of charging interface 304 has an access detection pin cc1, and the detection pin cc1 is connected to the voltage detection pin CC1 of the charging controller 300, and is used to detect whether the first type of charging interface 304 is connected to the first electrical device. If the voltage value of the access detection pin cc1 is not equal to the preset voltage threshold, it is determined that the first type of charging interface 304 is connected to the first electrical device, otherwise it is determined that the first type of charging interface is not connected to the first electrical device. In other words, when the first type of charging interface 304 is connected to the first electrical device, the voltage value of the access detection pin cc1 is not equal to the preset voltage threshold, otherwise the voltage value of the access detection pin cc1 is equal to the preset voltage threshold. Further, a capacitor C2 can be provided at the voltage detection pin CC1 of the charging controller 300 to stabilize the voltage amplitude transmitted from the access detection pin cc1 to the charging controller 300.
[0086] Optionally, the first type of charging interface 304 may connect a resistor R1 in series between the ground pin GND1 and the ground pin of the charging controller 300, and both ends of the resistor R1 are respectively connected to the CSN and CSP pins of the charging controller 300, for further detecting whether the first type of charging interface 304 is connected to the first electrical device. If the voltage difference across the two ends of the resistor R1 is not zero, then the first type of charging interface 304 is connected to the first electrical device.
[0087] The second positive data pin DP2 is connected to the positive data pin dp2 of the second type of charging interface 305, and the second negative data pin DM2 is connected to the negative data pin dm2 of the second type of charging interface. The second positive data pin DP2 and the second negative data pin DM2 are used to establish communication with the second type of charging interface 305, that is, the charging controller 300 establishes communication with the second type of charging interface 305 to obtain the second electrical information of the second electrical device connected through the second type of charging interface 305.
[0088] In some feasible embodiments, the second type of charging interface 305 may be a USB-A charging interface. The second type of charging interface 305 may connect a detection resistor R2 in series between the ground GND3 and the ground pin of the charging device 30, and the ground pin of the charging device 30 is the ground pin of the charging controller 300. The positive current detection pin CTR+ of the charging controller 300 is connected to one end of the detection resistor R2, and the negative current detection pin CTR- is connected to the other end of the detection resistor R2, where one end of the detection resistor R2 is connected to the ground pin GND3 of the second type of charging interface 305, and the other end of the detection resistor R2 is connected to the ground pin of the charging device 30. The positive current detection pin CTR+ and the negative current detection pin CTR- are used to determine whether the second type of charging interface 305 is connected to the second electrical device according to whether the voltage difference across the two ends of the detection resistor R2 is zero. If the voltage difference across the two ends of the resistor R2 is not zero, it is determined that the second type of charging interface 305 is connected to the second electrical device, otherwise it is determined that the second type of charging interface is not connected to the second electrical device. In other words, when the second type of charging interface is connected to the second electrical device, the voltage difference across the two ends of the detection resistor R2 is not zero, otherwise the voltage difference across the two ends of the detection resistor R2 is zero.
[0089] For ease of understanding, the following will briefly describe the specific implementation principle of the charging device 30 for charging the electrical device:
[0090] In some feasible embodiments, when the first type of charging interface 304 is connected to an electrical device (for convenience of description, it can be described as the first electrical device) and the charging current value required by the first electrical device is not less than a preset current threshold (here the preset current threshold can be 30 mA, that is, the first electrical device is a heavy load), the charging controller 300 can trigger the power supply 31 to adjust its output current according to the charging current value required by the first electrical device. The output current of the power supply 31 is not less than 30 mA, and the charging current required by the first electrical device is output to the first charging branch. At this time, the charging current value input by the power supply 31 to the first charging branch 301 is not less than 30 mA, and the first charging branch 301 can be used as a fast charging branch to charge the first electrical device. The charging controller 300 can control the first switching transistor Q1 to conduct, thereby turning on the first charging branch 301 to charge the first electrical device through the first charging branch 301. If the second type of charging interface 305 is connected to an electrical device (for convenience of description, it can be described as the second electrical device), at this time, regardless of the magnitude relationship between the charging current value required by the second electrical device (for convenience of description, it can be described as the target charging current value) and the preset current threshold (that is, regardless of whether the second electrical device is a heavy load or a light load at this time), a normal charging power supply is provided when charging the second electrical device. Assuming that the second electrical device is charged through the second charging branch at this time, the second charging branch is a normal charging branch. The charging controller 300 can control the second switching transistor Q2 to conduct, thereby turning on the third charging branch 302 (the fourth charging branch 303 is in the off state). At this time, the third charging branch 302 is used as the second charging branch to charge the second electrical device. The buck unit U2 in the third charging branch 302 at this time is used to step down the charging voltage input by the power supply 31 to the third charging branch to obtain the charging current output to the second electrical device. It can be understood that the charging current value output by the third charging branch 302 to the second electrical device is less than the charging current value output by the first charging branch 301 to the first electrical device, that is, the first electrical device uses fast charging (or simply fast charge), and the second electrical device uses normal charging (or simply normal charge). Further, when the first electrical device uses fast charging and the state of charge value of the first battery of the first electrical device is greater than the preset state of charge threshold, it means that the first electrical device is fully charged. At this time, the first charging branch 301 is disconnected to stop charging the first electrical device. At this time, the charging controller 300 can control the first switching transistor Q1 to turn off, thereby disconnecting the first charging branch 301 to stop charging the first electrical device. Optionally, the charging controller 300 can determine the fourth charging branch 303 as the second charging branch, turn off the third charging branch 302 and turn on the fourth charging branch 303. At this time, the charging current value input by the power supply 31 to the first charging branch 301 is input to the second charging branch. The charging controller 300 can turn off the second switching transistor Q2 and turn on the third switching transistor Q3 to charge the second electrical device.Alternatively, the charging controller 300 may determine the target charging current value according to the second power consumption information. When the target charging current value is not less than the preset current threshold (i.e., the second electrical device is a heavy load), at this time, the output current of the power supply 31 is simultaneously input to the third charging branch 302 and the fourth charging branch 303 to obtain the charging current output from the second charging branch to the second electrical device. At this time, the charging controller 300 may simultaneously turn on the second switching transistor Q2 and turn on the third switching transistor Q3 to charge the second electrical device. It can be understood that after the first electrical device is fully charged and stops charging, the charging current value input to the first electrical device can be input to the second electrical device, or the second electrical device can be charged according to the charging current value required by the second electrical device (i.e., the target charging current value).
[0091] When the first type of charging interface 304 is connected to the first electrical device and the charging current value required by the first electrical device is less than the preset current threshold (here the preset current threshold may be 30 mA, that is, the first electrical device is a light load), the charging controller 300 may trigger the power supply 31 to adjust its output current according to the charging current value required by the first electrical device, and output the charging current required by the first electrical device to the first charging branch 301. At this time, the charging current value input by the power supply 31 to the first charging branch 301 is less than 30 mA, and the first charging branch 301 may be used as a normal charging branch to charge the first electrical device. The charging controller 300 may control the first switching transistor Q1 to turn on, thereby turning on the first charging branch 301 to charge the first electrical device through the first charging branch 301. At this time, when the second type of charging interface 305 is connected to the second electrical device, the charging controller 300 determines the magnitude relationship between the charging current value required by the second electrical device (i.e., the target charging current value) and the preset current threshold (i.e., determines whether the second electrical device is a heavy load or a light load).
[0092] If the second type of charging interface 305 is connected to the second electrical device and the target charging current value is not less than the preset current threshold (i.e., the second electrical device is a heavy load), at this time, the output current of the power supply 31 is simultaneously input to the third charging branch 302 and the fourth charging branch 303 to obtain the charging current output from the second charging branch to the second electrical device. It can be understood that at this time, the charging current value of the second charging branch is greater than the charging current value of the first charging branch 301, that is, the first electrical device is charged normally, and the second electrical device is charged quickly. The charging controller 300 may control the second switching transistor Q2 and the third switching transistor Q3 to turn on simultaneously, thereby simultaneously turning on the third charging branch 302 and the fourth charging branch 303 to obtain the second charging branch.
[0093] When the second - type charging interface 305 is connected to the second electrical device and the target charging current value is less than the preset current threshold (i.e., the second electrical device is lightly loaded), at this time, the output current of the power supply 31 is input to the third charging branch 302 to obtain the charging current output from the second charging branch to the second electrical device. It can be understood that at this time, the charging current value of the second charging branch can be greater than, equal to, or less than the charging current value of the first charging branch, but both the charging current of the first charging branch and the charging current value of the second charging branch are less than the preset current threshold, that is, the second charging branch is an ordinary charging branch. The first electrical device uses ordinary charging, and the second electrical device also uses ordinary charging. The charging controller 300 can control the second switch - tube Q2 to conduct, thereby conducting the third charging branch 302. At this time, the third charging branch 302 is determined as the second charging branch.
[0094] Next, the method provided in the embodiments of the present application will be combined with Figure 4 , and the charging method applicable to the charging device shown above Figures 1 to 3 will be exemplarily described. Refer to Figure 4 , Figure 4 which is a schematic flowchart of the charging method provided in the embodiments of the present application. As Figure 4 shown, the method provided in the embodiments of the present application includes the following steps:
[0095] S400. The charging controller collects the load status of each charging interface and determines whether an electrical device is connected to each charging interface according to the load status of each charging interface.
[0096] In some feasible embodiments, the load status of each charging interface includes that there is a load connected to the charging interface or there is no load connected. The load status of each charging interface can be measured by the respective working parameters of each charging interface. Exemplarily, each charging interface has multiple pins, and the working parameters of each charging interface can include pin voltage, pin current, and / or pin impedance, etc. It can be understood that the load status of each charging interface is determined by the pin voltage, pin current, and / or pin impedance.
[0097] In some feasible embodiments, the load status of each charging interface is determined by the pin voltage. For example, the first type of charging interface has an access detection pin CC1. The charging controller collects the load status of each charging interface. Determining whether each charging interface is connected to an electrical device according to the load status of each charging interface can be specifically implemented as follows: The charging controller collects the voltage of the access detection pin CC1. If the voltage value of the access detection pin CC1 is not equal to the preset voltage threshold, it is determined that the first type of charging interface is connected to an electrical device. The charging controller has an analog-to-digital conversion function, can collect the analog voltage of the access detection pin CC1, and convert the analog voltage into the voltage value of the access detection pin CC1. The preset voltage threshold can be determined according to the type of the first type of charging interface. Exemplarily, the first type of charging interface can be a USB-C interface. At this time, the preset voltage threshold can be any value that fluctuates within a preset range around 1.65V, such as 1.68V, 1.70V, 1.63V, etc., which can be specifically determined according to the actual application scenario and is not limited herein. Exemplarily, the inventors of the present application can obtain in the research and practice process that when the preset voltage threshold is set to 1.68V, the accuracy of detecting whether the first type of charging interface is connected to an electrical device can reach 95%, that is, in 100 pluggings and unplugging operations, 95 times can correctly determine whether the first type of charging interface is connected to an electrical device. When the voltage preset threshold is set to 1.65V, the accuracy of detecting whether the first type of charging interface is connected to an electrical device can only reach 80%. In the present application, only the voltage detection pin CC1 of the charging controller needs to be connected to the access detection pin CC1 of the first type of charging interface, and then the voltage of the access detection pin CC1 of the first type of charging interface is collected to determine the load status of the first type of charging interface. At this time, detecting the load status of the first type of charging interface only needs to occupy one pin resource of the charging controller, the operation is simple, the number of pins of the charging controller can be reduced, the circuit structure can be simplified, and thus the stability of the charging device can be improved and the applicability is strong.
[0098] Optionally, in some feasible embodiments, the load status of each charging interface is determined by the pin current. For example, a detection resistor R2 is connected in series between the ground pin of the second type of charging interface and the ground pin of the charging device. The charging controller collects the load status of each charging interface. Determining whether each charging interface is connected to an electrical device according to the load status of each charging interface can be specifically implemented as follows: The charging controller collects the voltage across the detection resistor R2. When the voltage difference across the detection resistor R2 is not zero, it is determined that the second type of charging interface is connected to an electrical device.
[0099] The second type of charging interface can be a USB-A interface. When no electrical device is connected to the second type of charging interface, there is no current passing between the ground pin of the second type of charging interface and the ground pin of the charging device (in other words, the pin current of the ground pin of the second type of charging interface is zero). At this time, no current passes through the detection resistor R2, so the voltage difference across the detection resistor R2 is zero. Optionally, an ammeter, a multimeter, etc. can be connected in series between the ground pin of the second type of charging interface and the ground pin of the charging device. If the current between the ground pin of the second type of charging interface and the ground pin of the charging device is zero, it also indicates that no electrical device is connected to the second type of charging interface; if the current between the ground pin of the second type of charging interface and the ground pin of the charging device is not zero, it indicates that an electrical device is connected to the second type of charging interface. In this application, the load state of the second type of charging interface is determined by detecting the voltage difference across the resistor. The accuracy of the detection only depends on the resistance value of the detection resistor. No matter how small the charging current required by the electrical device connected to the second type of charging interface is, the connection of the electrical device can be accurately detected, that is, the connection of a low-current electrical device can be accurately detected, and the circuit structure is simple and the cost is low.
[0100] S401. When electrical devices are connected to the first type of charging interface and the second type of charging interface at the same time, the charging controller conducts the first charging branch according to the first electrical information of the first electrical device connected to the first type of charging interface to charge the first electrical device.
[0101] In some feasible embodiments, after the charging controller determines that electrical devices are connected to the first type of charging interface and the second type of charging interface at the same time through step S400, the charging controller sends communication establishment requests to the first type of charging interface and the second type of charging interface respectively to request to establish communication with the first type of charging interface and the second type of charging interface. After establishing communication with the charging controller, the first type of charging interface can send the first electrical information of the first electrical device to the charging controller, and the first electrical information is used to determine the charging current value input to the first charging branch based on the power supply. The first electrical device is the electrical device connected to the first type of charging interface. Similarly, after establishing communication with the charging controller, the second type of charging interface sends the second electrical information of the second electrical device to the charging controller. The second electrical device is the electrical device connected to the second type of charging interface.
[0102] In some feasible implementations, the first power consumption information includes the current required for charging the first power device, that is, the current required for charging the first power device is sent by the first power device to the charging controller. The charging controller triggers the power supply to adjust the charging current value input to the first charging branch according to the current required for charging the first power device, and turns on the first charging branch. At this time, the charging current input to the first charging branch is not less than the preset current threshold, and the first charging branch can be used as a fast charging branch to charge the first power device. The charging controller can control the first switch tube Q1 to turn on, thereby turning on the first charging branch to charge the first power device through the first charging branch.
[0103] Optionally, in some feasible implementations, the current required for charging the first power consumer is determined by a charging controller. For example, the first power consumer has a built-in rechargeable battery. The current required for charging the first power consumer is negatively correlated with the battery power built into the first power consumer. The charging controller can collect the battery power built into the first power consumer, and determine the current required for charging the first power consumer based on a pre-stored curve of the current required for charging of the first power consumer and the battery power.
[0104] Furthermore, a pin FB is provided in the charging controller, and the pin FB converts the current required for charging the first electrical device into a voltage signal and sends it to the power supply. The power supply adjusts the charging current value input to the first charging branch according to the received voltage signal, and further, the power supply adjusts the charging voltage value input to the first charging branch. For example, the charging current value of the power supply input to the first charging branch is 2A, and the corresponding charging voltage value may be 9V, or the charging current value of the first charging branch is 5A, and the corresponding charging voltage value may be 12V.
[0105] S402. The charging controller turns on the second charging branch to charge the second power-consuming device according to the charging current value of the first charging branch and / or the second power usage information of the second power-consuming device connected to the second type charging interface. The charging current value of the second charging branch is determined by the charging current value of the first charging branch and / or the second power usage information.
[0106] Combine the following Figure 5 How to turn on the second charging branch according to the charging current value of the first charging branch and / or the second power consumption information of the second power consumption device connected to the second type charging interface is exemplified. Figure 5 , Figure 5 Another schematic diagram of the charging method provided in the embodiment of the present application. Figure 5 As shown, the specific implementation method of the charging controller turning on the second charging branch according to the charging current value of the first charging branch and / or the second power consumption information of the second power consumption device connected to the second type charging interface is as follows:
[0107] S4021. The charging controller determines whether the charging current value of the first charging branch is not less than a preset current threshold. If so, step S4022a is executed; otherwise, step S4022b is executed.
[0108] In some feasible embodiments, the charging controller obtains the first power consumption information from step S401, and the first power consumption information includes the charging current value of the first charging branch. The preset current threshold is used to divide the electrical devices connected to each charging interface into heavy load or light load. It can be understood that the charging current required by the electrical device is relatively large or small compared to the preset current threshold. For example, when the preset current threshold is set to 30 mA, if the charging current value required by the first electrical device is not less than 30 mA, it is considered that the first electrical device is a heavy load and the first charging branch is a fast charging branch; if the charging current value required by the first electrical device is less than 30 mA, it is considered that the first electrical device is a light load and the first charging branch is a normal charging branch.
[0109] S4022a. When the charging current value of the first charging branch is not less than the preset current threshold, the charging controller determines the third charging branch as the second charging branch, turns on the third charging branch and turns off the fourth charging branch.
[0110] In some feasible embodiments, a third charging branch and a fourth charging branch are connected in parallel between the second type of charging interface and the power supply. The charging controller can control the second switch tube Q2 to turn on to turn on the third charging branch, and at the same time control the third switch tube Q3 to turn off to turn off the fourth charging branch, so as to determine the third charging branch as the second charging branch for charging the second electrical device. A buck unit is provided in the third charging branch, and the buck unit is used to step down the charging voltage input to the third charging branch by the power supply to obtain the charging current output to the second electrical device. It can be understood that when the charging current value of the first charging branch is not less than the preset current threshold and the first charging branch is a fast charging branch, at this time, the charging current value output from the second charging branch obtained by the power supply input to the third charging branch to the second electrical device is less than the charging current value of the first charging branch, that is, the first electrical device uses fast charging and the second electrical device uses normal charging. In the present application, different charging methods can be adopted for the first electrical device and the second electrical device, that is, the charging current values of each electrical device can be different, which can improve the power supply efficiency of the power supply.
[0111] In some feasible embodiments, when the first charging branch is a fast charging branch, the charging voltage output from the first charging branch to the first electrical device may be one of 9V, 12V, 15V, or 20V; at this time, the second charging branch is a normal charging branch, and the third charging branch includes a buck unit. When the third charging branch is used as the second charging branch to charge the second electrical device, the buck unit can reduce the voltage input from the power supply to the third charging branch to 5V, that is, the charging voltage output from the second charging branch to the second electrical device can be 5V. It can be understood that the voltage output from the fast charging branch to the electrical device is greater than that of the normal charging branch.
[0112] Further, when the first electrical device uses fast charging and the second electrical device uses normal charging, the charging controller can obtain the status information of the first electrical device in real time to determine whether the first electrical device is fully charged. Exemplarily, after the charging controller turns on the third charging branch and turns off the fourth charging branch, it can send a status information acquisition request to the first electrical device through the first type of charging interface, triggering the first electrical device to send the rated capacity Q of the first battery of the first electrical device and the battery voltage of the first battery at time t0 when receiving the status information acquisition request, where t0 is the time when the first charging branch is turned on. The status information acquisition request can be specifically implemented as the charging controller continuously sending a high level to the first electrical device within a preset time period.
[0113] The charging controller determines the state of charge value SOC(t0) of the first battery at time t0 based on the preset correspondence between the battery voltage and the state of charge, and the battery voltage of the first battery at time t0. In a specific implementation, the charging controller stores the preset correspondence between the battery voltage and the state of charge, and the battery voltage corresponds one-to-one with the state of charge value. According to the battery voltage of the first battery at time t0, the state of charge value SOC(t0) of the first battery at time t0 can be found.
[0114] A current sensor is connected in series to the first charging branch, and the current sensor is used to sense the charging current of the first charging branch in real time. The charging controller obtains the charging current value I of the first charging branch through the current sensor connected in series in the first charging branch, and calculates the state of charge value SOC(t) of the first battery at the t-th moment, where the t-th moment is any moment after the t0 moment. Among them, the state of charge value SOC(t) of the first battery at the t-th moment satisfies:
[0115]
[0116] When the state of charge value SOC(t) of the first battery at the t-th moment is greater than the preset state of charge threshold, it means that the first electrical device is fully charged, and then the first charging branch is disconnected to stop charging the first electrical device. The charging controller can control the first switch tube Q1 to turn off to disconnect the first charging branch.
[0117] At this time, in some feasible embodiments, the charging current value input to the first electrical device can be input to the second electrical device, that is, the fourth charging branch is determined as the second charging branch, the third charging branch is turned off and the fourth charging branch is turned on; that is, the charging controller controls the second switch tube Q2 to turn off and the third switch tube Q3 to turn on. In the present application, when the first electrical device is fully charged, the first charging branch can be disconnected, which can reduce the working loss of the components of the first charging branch (such as the first switch tube Q1), avoid overcharging of the first electrical device, improve the charging safety of the first electrical device, and extend the life of the first electrical device.
[0118] Optionally, in some feasible embodiments, the charging controller triggers the power supply to readjust its output current according to the charging current value required by the second electrical device (i.e., the target charging current value), and charges the second electrical device according to the target charging current value, that is, determines the target charging current value according to the second electrical information. When the target charging current value is not less than the preset current threshold, the third charging branch and the fourth charging branch are turned on simultaneously to obtain the second charging branch, and the charging current value of the second charging branch is greater than the current value of the first charging branch. That is, the charging controller controls the second switch tube Q2 and the third switch tube Q3 to turn on simultaneously. In the present application, when the first electrical device is fully charged, the output current of the power supply can be readjusted, the charging current value of the second electrical device can be changed, and the charging speed of the second electrical device can be increased, which can further improve the charging efficiency.
[0119] S4022b. When the charging current value of the first charging branch is less than the preset current threshold, the charging controller determines the target charging current value according to the second electrical information, and judges whether the target charging current value is not less than the preset current threshold.
[0120] In some feasible embodiments, after the charging controller establishes communication with the second type of charging interface, it can receive the second electrical information sent by the second electrical device, and the second electrical information includes the current required for charging the second electrical device, that is, the target charging current value. The charging controller can judge whether the target charging current value is not less than the preset current threshold according to the target charging current value. If so, step S4023a is executed, otherwise step S4023b is executed.
[0121] S4023a. When the target charging current value is not less than the preset current threshold, the charging controller turns on the third charging branch and the fourth charging branch simultaneously to obtain the second charging branch.
[0122] In some feasible embodiments, after step S4022b, when it is determined that the charging current value of the first charging branch is less than the preset current threshold, the first charging branch is a normal charging branch at this time, that is, the first electrical device adopts normal charging. Based on the target charging current value being not less than the preset current threshold, it is determined that the second electrical device connected to the second type of charging interface is a heavy load. At this time, the output current of the power supply is input into the third charging branch and the fourth charging branch simultaneously to obtain the charging current output by the second charging branch to the second electrical device. It can be understood that the charging current value of the second charging branch used to charge the second electrical device is greater than the charging current value of the first charging branch, that is, the second charging branch is a fast charging branch, and the second electrical device adopts fast charging. At this time, the charging controller can control the second switching tube Q2 and the third switching tube Q3 to conduct simultaneously, so as to conduct the third charging branch and the fourth charging branch simultaneously to obtain the second charging branch. It can be understood that the charging current value of the second charging branch at this time is the sum of the currents of the third charging branch and the fourth charging branch. In the present application, when the first electrical device adopts normal charging, fast charging is adopted for the second electrical device, that is, the charging current values of the first electrical device and the second electrical device can be different, the operation is flexible, and the power supply efficiency of the power supply can be improved.
[0123] In some feasible embodiments, when the first charging branch is a normal charging branch, the charging voltage output by the first charging branch to the first electrical device can be 5V; at this time, the third charging branch and the fourth charging branch are determined as the second charging branch used to charge the second electrical device, which is a fast charging branch. The third charging branch and the fourth charging branch include a boosting unit. When the third charging branch and the fourth charging branch are used to charge the second electrical device, the boosting unit can boost the voltage input by the power supply into the third charging branch and the fourth charging branch to one of 9V, 12V, 15V or 20V. The voltages at both ends of the branches after the third charging branch and the fourth charging branch boost the voltage are the same, that is, the charging voltage output by the second charging branch to the second electrical device can be one of 9V, 12V, 15V or 20V.
[0124] S4023b. When the target charging current value is less than the preset current threshold, the charging controller determines the third charging branch as the second charging branch, conducts the third charging branch and turns off the fourth charging branch.
[0125] In some feasible embodiments, after step S4022b, when it is determined that the charging current value of the first charging branch is less than the preset current threshold, the first charging branch is a normal charging branch at this time, that is, the first electrical device adopts normal charging. Based on the target charging current value being less than the preset current threshold, it is determined that the second electrical device connected to the second type of charging interface is lightly loaded. At this time, the output current of the power supply is input to the third charging branch to obtain the charging current output by the second charging branch to the second electrical device. It can be understood that the charging current value of the second charging branch used to charge the second electrical device can be greater than, equal to, or less than the charging current value of the first charging branch. At this time, both the charging current of the first charging branch and the charging current value of the second charging branch are less than the preset current threshold, that is, the second charging branch is a normal charging branch. The first electrical device adopts normal charging, and the second electrical device also adopts normal charging. At this time, the charging controller can control the second switch tube Q2 to conduct and control the third switch tube Q3 to turn off, thereby turning on the third charging branch and turning off the fourth charging branch.
[0126] In some feasible embodiments, when both the first charging branch and the second charging branch are normal charging branches, that is, both the first electrical device and the second electrical device adopt normal charging, the charging voltage output by the first charging branch to the first electrical device can be 5V, and the charging voltage output by the second charging branch to the second electrical device can also be 5V.
[0127] In this application, the charging controller can charge according to the power consumption information of the device connected to at least two types of charging interfaces. When the first type of charging interface is connected to the first electrical device and the charging current required by the first electrical device is not less than the preset current threshold (i.e., the first electrical device is a heavy load), the charging controller can trigger the power supply to adjust its output current according to the charging current required by the first electrical device, and output the charging current required by the first electrical device to the first charging branch. At this time, the charging current input to the first electrical device is not less than the preset current threshold, and the first charging branch can be used as a fast charging branch to charge the first electrical device. If the second type of charging interface is connected to the second electrical device, at this time, regardless of the magnitude relationship between the charging current value required by the second electrical device (i.e., the target charging current value) and the preset current threshold (i.e., regardless of whether the second electrical device is a heavy load or a light load at this time), the charging power supply provided during the charging of the second electrical device is a normal charging power supply, and the second charging branch used to charge the second electrical device is a normal charging branch. At this time, the charging controller can turn on the third charging branch and turn off the fourth charging branch to obtain the second charging branch. The buck unit in the third charging branch can step down the charging voltage input to the third charging branch by the power supply to obtain the charging current output to the second electrical device. It can be understood that at this time, the charging current value output by the third charging branch to the second electrical device is less than the charging current value output by the first charging branch to the first electrical device, that is, the first electrical device uses fast charging, and the second electrical device uses normal charging.
[0128] When the first type of charging interface is connected to the first electrical device and the charging current value required by the first electrical device is less than the preset current threshold (i.e., the first electrical device is a light load), the charging controller can trigger the power supply to adjust its output current according to the charging current required by the first electrical device, and output the charging current required by the first electrical device to the first charging branch. At this time, the charging current input to the first charging branch by the power supply is less than the preset current threshold, and the first charging branch can be used as a normal charging branch to charge the first electrical device. At this time, when the second type of charging interface is connected to the second electrical device, the charging controller determines the magnitude relationship between the charging current value required by the second electrical device (i.e., the target charging current value) and the preset current threshold (i.e., determines whether the second electrical device is a heavy load or a light load).
[0129] If the second type of charging interface is connected to the second electrical device and the target charging current value is not less than the preset current threshold (i.e., the second electrical device is a heavy load), the output current of the power supply is simultaneously input to the third charging branch and the fourth charging branch to obtain the charging current output by the second charging branch to the second electrical device. It can be understood that at this time, the charging current value of the second charging branch is greater than the charging current value of the first charging branch, that is, the first electrical device uses normal charging, and the second electrical device uses fast charging.
[0130] When a second type of charging interface is connected to a second electrical device and the target charging current is not less than a preset current threshold (i.e., the second electrical device is lightly loaded), the output current of the power supply is input to a third charging branch to obtain the charging current output from the second charging branch to the second electrical device. It can be understood that at this time, the charging current value of the second charging branch can be greater than, equal to, or less than the charging current value of the first charging branch, but the charging current of the first charging branch and the charging current value of the second charging branch are both less than the preset current threshold, that is, the second charging branch is a normal charging branch. The first electrical device uses normal charging, and the second electrical device also uses normal charging.
[0131] Further, when the charging current value of the first charging branch is less than the preset current threshold, the charging controller can determine whether the charging current value of the first charging branch is less than the cut-off current threshold, that is, determine whether the first electrical device is fully charged. When the charging current value of the first charging branch is less than the cut-off current threshold, it means that the first electrical device is fully charged. At this time, the charging controller can disconnect the first charging branch, disconnect the third charging branch, and turn on the fourth charging branch to obtain the second charging branch. The charging controller can trigger the power supply to readjust its output current to the target charging current value according to the target charging current value, and output the current of the target charging current value to the fourth charging branch, that is, the current output from the fourth charging branch to the second electrical device is the target charging current. It can be understood that after the first electrical device is fully charged and stops charging, the second electrical device can be charged according to the target charging current value. When the target charging current value is less than the preset current threshold, the fourth charging branch used to charge the second electrical device is a normal charging branch, and the second electrical device uses normal charging; when the target charging current value is not less than the preset current threshold, the fourth charging branch used to charge the second electrical device is a fast charging branch, and the second electrical device uses fast charging.
[0132] Implementing the present application can charge according to the power consumption information of the devices connected to at least two types of charging interfaces, improving the charging efficiency, with good flexibility and strong applicability.
[0133] The embodiment of the present application also provides a charging control chip, which is applicable to Figure 1 and Figure 5 the charging device described above, and the charging control chip can execute the above Figure 4 and Figure 5 described method steps.
[0134] The embodiment of the present application provides a computer-readable storage medium, characterized in that instructions are stored in the readable storage medium, and when it runs on a computer, it causes the computer to execute the above Figure 4 and Figure 5 described method steps.
[0135] It should be noted that the above terms "first" and "second" are only used for descriptive purposes and should not be construed as indicating or implying relative importance.
[0136] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: various media such as removable storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0137] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A charging method, the charging method being applicable to a charging device, characterized in that, The charging device is connected to a power supply and provides at least two charging interfaces externally. The at least two charging interfaces include a first-type charging interface and a second-type charging interface. A first charging branch is connected in series between the first-type charging interface and the power supply, and a second charging branch is connected in series between the second-type charging interface and the power supply; A first switching tube is provided in the first charging branch. The charging method includes: Collect the load states of the charging interfaces, and determine whether electrical devices are connected to the charging interfaces according to the load states of the charging interfaces; When the first-type charging interface and the second-type charging interface are both connected to electrical devices at the same time, and the charging current value required by the first electrical device connected to the first-type charging interface is not less than a preset current threshold, trigger the power supply to adjust its output current according to the first electrical information of the first electrical device connected to the first-type charging interface, turn on the first switching tube in the first charging branch to charge the first electrical device. The first electrical information is used to determine the charging current value input into the first charging branch based on the power supply; the charging current value of the second charging branch is determined by the charging current value of the first charging branch; When the first-type charging interface is connected to a first electrical device and the charging current value required by the first electrical device is less than the preset current threshold, turn on the second charging branch to charge the second electrical device according to the charging current value of the first charging branch and the second electrical information of the second electrical device connected to the second-type charging interface. The charging current value of the second charging branch is determined by the charging current value of the first charging branch and the second electrical information.
2. The method according to claim 1, characterized in that A third charging branch and a fourth charging branch are connected in parallel between the second-type charging interface and the power supply; The turning on of the second charging branch according to the charging current value of the first charging branch includes: When the charging current value of the first charging branch is not less than the preset current threshold, determine the third charging branch as the second charging branch, turn on the third charging branch and turn off the fourth charging branch; Wherein the charging current value of the second charging branch is less than the charging current value of the first charging branch.
3. The method according to claim 2, wherein After turning on the third charging branch and turning off the fourth charging branch, the method further includes: Send a status information acquisition request to the first electrical device through the first type of charging interface, triggering the first electrical device to send the rated capacity Q of the first battery of the first electrical device and the battery voltage of the first battery at the moment, the moment is the moment when the first charging branch is turned on; Based on the preset correspondence between the battery voltage and the state of charge, and the battery voltage of the first battery at the moment to determine the state of charge value of the first battery at the moment; Obtain the charging current value I of the first charging branch through the current sensor connected in series in the first charging branch, and calculate the state of charge value of the first battery at the t-th moment , where the t-th moment is any moment after the moment, where the state of charge value of the first battery at the t-th moment satisfies: When the state of charge value of the first battery at the t-th moment is greater than the preset state of charge threshold, disconnect the first charging branch to stop charging the first electrical device; Determine the fourth charging branch as the second charging branch, turn off the third charging branch and turn on the fourth charging branch; or, Determine a target charging current value according to the second electrical information. When the target charging current value is not less than the preset current threshold, turn on the third charging branch and the fourth charging branch at the same time to obtain the second charging branch. The charging current value of the second charging branch is greater than the current value of the first charging branch.
4. The method according to claim 1, characterized in that A third charging branch and a fourth charging branch are connected in parallel between the second-type charging interface and the power supply; The turning on of the second charging branch according to the charging current value of the first charging branch and the second electrical information of the second electrical device connected to the second-type charging interface includes: When the charging current value of the first charging branch is less than a preset current threshold, determine a target charging current value according to the second power consumption information; When the target charging current value is not less than the preset current threshold, simultaneously turn on the third charging branch and the fourth charging branch to obtain a second charging branch, and the charging current value of the second charging branch is greater than the charging current value of the first charging branch; When the target charging current value is less than the preset current threshold, determine the third charging branch as the second charging branch, turn on the third charging branch and turn off the fourth charging branch.
5. The method according to any one of claims 1-4, characterized in that, The first type of charging interface has an access detection pin; The step of collecting the load status of each charging interface and determining whether each charging interface is connected to an electrical device according to the load status of each charging interface includes: Collect the voltage of the access detection pin; If the voltage value of the access detection pin is not equal to a preset voltage threshold, determine that the first type of charging interface is connected to an electrical device.
6. The method according to any one of claims 1 to 4, characterized in that, A detection resistor is connected in series between the ground pin of the second type of charging interface and the ground pin of the charging device; The step of collecting the load status of each charging interface and determining whether each charging interface is connected to an electrical device according to the load status of each charging interface includes: Collect the voltage across the detection resistor, and when the voltage difference across the detection resistor is not zero, determine that the second type of charging interface is connected to an electrical device.
7. The method according to claim 3, wherein The first power consumption information includes the current required for charging the first electrical device; The step of turning on the first charging branch to charge the first electrical device according to the first power consumption information of the first electrical device connected to the first type of charging interface includes: Trigger the power supply to adjust the charging current value input to the first charging branch according to the current required for charging the first electrical device, and turn on the first charging branch.
8. A charging device, characterized in that, The charging device includes a charging controller, at least two charging interfaces, and at least three charging branches. The at least two charging interfaces include a first type of charging interface and a second type of charging interface. Among them, the charging controller is connected to a power supply, the power supply is respectively connected to the input ends of the at least three charging branches, the output ends of the at least three charging branches are respectively connected to their corresponding charging interfaces, one charging branch corresponds to at least one charging interface, and the at least two charging interfaces are connected to the charging controller; The charging controller is configured to execute the method according to any one of claims 1-7.
9. A charging control chip, characterized in that, The charging control chip is applicable to the charging device according to claim 8 and is configured to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, Instructions are stored in the readable storage medium, and when they run on a computer, cause the computer to execute the steps of the method according to any one of claims 1-7.
Citation Information
Patent Citations
Autotracking adaptive charging maintainer for electric vehicle storage battery
CN102064588A
Charger
CN208461526U