Disclosure of Invention
In order to solve the technical problems, the invention provides a charging control method, a charging circuit and a multi-port charger.
According to A first aspect of the present invention, there is provided A charging control method for controlling charging between A multi-port charger and an external device, wherein the multi-port charger includes at least one USB-A interface and one USB-C interface, and the multi-port charger supports fast charging, the method comprising:
Detecting whether the USB-C interface has equipment insertion or not, if not, controlling the USB-A interface to be coupled with the first power supply voltage, and if so, controlling the USB-A interface and the USB-C interface to be coupled with the first power supply voltage and detecting whether the USB-A interface has equipment insertion or not;
if the device insertion of the USB-A interface is detected, controlling the USB-A interface and the USB-C interface to be coupled with the first power supply voltage;
If the USB-C interface is detected to receive the fast charging protocol, the USB-A interface and the USB-C interface are controlled to be still coupled with the first power supply voltage, and if the USB-C interface is detected to receive the fast charging protocol, the USB-A interface is controlled to be coupled with the pull-up voltage and the USB-C interface is controlled to be coupled with the second power supply voltage, wherein the second power supply voltage is larger than the first power supply voltage, the pull-up voltage is lower than A first threshold, and the first threshold is used for representing an under-voltage threshold of A chip in A charging cable.
Optionally, after the USB-A interface is coupled to the pull-up voltage, controlling the USB-A interface to be re-coupled to the first power supply voltage and controlling the USB-C interface to be re-coupled to the first power supply voltage if the USB-A interface is detected to have A device inserted.
Optionally, after the USB-A interface is switched from being coupled to the pull-up voltage to being coupled to the first power voltage, the method further comprises controlling the USB-A interface to be re-coupled to the pull-up voltage and controlling the USB-C interface to be re-coupled to the second power voltage if the USB-A interface is detected to be lightly loaded in the first time.
Optionally, detecting that the USB-A interface has A device inserted after the USB-A interface is coupled to the pull-up voltage specifically includes detecting that A pull-down pulse is generated at the USB-A interface.
Optionally, detecting that the USB-A interface is lightly loaded after the USB-A interface is coupled to the first power voltage includes detecting that A current at the USB-A interface is lower than A second threshold.
Optionally, after the USB-C interface does not detect the device insertion, the method further includes detecting whether the USB-A interface has A device insertion, if not, controlling the USB-A interface to be coupled to the first power voltage, if not, detecting whether the USB-A interface receives the fast charging protocol, if not, controlling the USB-A interface to be still coupled to the first power voltage, and if so, controlling the USB-A interface to be coupled to the second power voltage.
Optionally, after the USB-A interface is coupled to the second power supply voltage, controlling the USB-A interface to be re-coupled to the first power supply voltage and controlling the USB-C interface to be coupled to the first power supply voltage if the device insertion of the USB-C interface is detected.
According to A second aspect of the invention, A charging control circuit is provided and applied to A multi-port charger, wherein the multi-port charger at least comprises A USB-A interface and A USB-C interface, and the multi-port charger supports quick charging and comprises an interface detection module and an interface control module;
The interface detection module is used for detecting whether the USB-C interface is inserted with equipment or not, if not, the interface control module controls the USB-A interface, if yes, the interface control module controls the USB-A interface and the USB-C interface to be both coupled to the first power supply voltage, and the interface detection module is also used for detecting whether the USB-A interface is inserted with equipment or not;
the interface control module is used for controlling the USB-A interface and the USB-C interface to be coupled with A first power supply voltage if the interface detection module detects that the USB-A interface has equipment insertion, and is also used for detecting whether the USB-C interface receives A fast charging protocol if the interface detection module does not detect that the USB-A interface has equipment insertion;
The interface control module is used for controlling the USB-A interface and the USB-C interface to be still coupled with A first power supply voltage if the interface detection module detects that the USB-C interface does not receive the fast charging protocol, and is also used for controlling the USB-A interface to be coupled with A pull-up voltage and controlling the USB-C interface to be coupled with A second power supply voltage if the interface detection module detects that the USB-C interface receives the fast charging protocol, wherein the second power supply voltage is larger than the first power supply voltage, the pull-up voltage is lower than A first threshold, and the first threshold is used for representing an under-voltage threshold of A chip in A charging cable.
Optionally, the USB-A interface is coupled to the first power voltage, and the interface detection module determines whether A device is inserted into the USB-A interface by detecting whether A current at the USB-A interface exceeds A second threshold, if so, then there is an insertion of the device, and if not, then there is no insertion of the device.
Optionally, the USB-A interface is coupled to the pull-up voltage, and the interface detection module determines whether the USB-A interface has A device inserted by detecting whether A pull-down pulse exists at the USB-A interface, if so, the device is inserted, and if not, no device is inserted.
According to a third aspect of the present invention there is provided a multi-port charger comprising the charge control circuit of the second aspect of the present invention and optionally provided.
According to the charging control method provided by the invention, on one hand, when the USB-C interface receives the quick charging protocol and the USB-A interface has no device to be charged, the USB-A interface is coupled to the pull-up voltage, and the USB-C interface is coupled to the second power voltage, so that the device inserted by the USB-C interface is quickly charged, meanwhile, because the pull-up voltage is very low, when the device inserted by the USB-C interface is quickly charged, if the cable with the chip is inserted by the USB-A interface, the quick charging of the USB-C interface is interrupted, and the cable with the chip can not be undervoltage due to insufficient pull-up voltage to support the power supply of the chip, so that the problem as in the prior art cannot occur, namely, the quick charging of the USB-C interface is not influenced after the cable with the chip inserted by the USB-A interface is interrupted once. On the other hand, when the USB-C interface does not receive the quick charging protocol, the USB-A interface is set to be coupled with the first power supply voltage no matter whether the USB-C interface is plugged into A device or not and no matter whether the USB-A interface is plugged into the device or not, so that the charging can be directly carried out without insertion detection when the USB-A interface is plugged into the device with weak pulling load capacity. Finally, the technical means corresponding to the technical effects of the two aspects are realized without changing the existing circuit architecture, so that the problems existing in the prior art are solved with low cost.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention. The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Before explaining the embodiments of the present invention, a brief explanation of the design idea of the present invention is given:
Because the USB-A interface in the prior art cannot perform insertion detection and cannot distinguish between A cable with A chip and equipment with the same pulling capacity, the USB-A interface has the problems that 1, the equipment with weaker pulling capacity cannot be charged. Insertion of A cable with A chip into the USB-A interface can affect the fast-charging of the USB-C interface device. In order to solve the problems, the inventor designs A scheme that when the USB-C interface has no quick charge requirement, the USB-A interface and the USB-C interface are connected to A5V power supply voltage in A communication mode, and therefore insertion detection of A cable with A chip and equipment with weak pulling capacity is not needed. When the cable with the chip is inserted, the 5V charging is directly carried out when the device with weaker pulling and loading capacity is inserted. When the USB-C interface has A fast charge requirement, the USB-A interface is coupled to A very low pull-up voltage through A weak pull-up resistor, and the USB-C interface is coupled to A power supply voltage capable of supporting fast charge, and can be coupled to 9V, 12V, 15V, 20V and the like according to the requirement. When the USB-C interface is used for fast charging the inserted equipment, if the USB-A interface is inserted into normal equipment, the USB-C interface stops fast charging, if the USB-A interface is inserted into A cable with A chip or equipment with weak pulling capacity, for example, A smart watch, A smart glasses, A smart bracelet and the like, under-voltage is caused by pulling up voltage, so that VBUS of the USB-A interface cannot be pulled down repeatedly. Therefore, after the quick charge of the USB-C interface is interrupted for the first time, the subsequent quick charge is not influenced.
Referring to fig. 1, A first embodiment of the present invention provides A charging control method for controlling charging between A multi-port charger and an external device, wherein the multi-port charger at least includes A USB-A interface and A USB-C interface, and the multi-port charger supports fast charging, the method includes:
S1, detecting whether equipment is inserted into the USB-C interface, if not, controlling the USB-A interface to be coupled with A first power supply voltage, and if so, jumping to S2.
S2, detecting whether equipment is inserted into the USB-A interface, if so, jumping to S4, and if not, jumping to S3.
S3, detecting whether the USB-C interface receives the quick charge protocol, if not, jumping to S4, and if yes, jumping to S5.
And S4, controlling the USB-A interface and the USB-C interface to be coupled with the first power supply voltage.
And S5, controlling the USB-A interface to be coupled to A pull-up voltage and controlling the USB-C interface to be coupled to A second power supply voltage, wherein the second power supply voltage is larger than the first power supply voltage, the pull-up voltage is lower than A first threshold value, and the first threshold value is used for representing an under-voltage threshold value of A chip in A charging cable.
It should be noted that, the present embodiment is suitable for a multi-port charger commonly found in the market, for example, a dual-port charger, a three-port charger, or a four-port charger with higher power, and may be specifically selected according to the requirement, which is not limited herein. But at least one USB-A interface and at least one USB-C interface. The fast charging protocols supported by the multi-port charger include Qualcomm Quick Charge, USB Power Delivery (USB-PD), superCharge and other mainstream fast charging protocols, and specific protocols are set according to actual requirements of the multi-port charger and are not limited herein. If the multi-port charger supports a certain fast charging protocol, the external device which needs to perform fast charging needs to support the fast charging protocol corresponding to the multi-port charger. For example, the multi-port charger supports the USB-PD protocol which is very common in the market, and the external device also supports the USB-PD protocol if it wants to perform fast charging.
The first embodiment of the present invention implements A low-cost charging control method without considering the load pulling capability of the USB-A interface plug-in device through the above technical solution. The principle is as follows:
Referring to fig. 1 and 4, fig. 1 is a flowchart corresponding to a charging control method provided in a first embodiment, and fig. 4 is a schematic circuit diagram corresponding to the charging control method provided in the first embodiment:
In case 1, when the first resistor Rd is not detected to be connected to the CC of the USB-C interface, the first switch S1 is controlled to be turned on, and the second switch S2 and the third switch S3 are controlled to be turned off, so that the USB-A interface is coupled with the first power supply voltage and the USB-C interface is not coupled with the power supply. In this case, the USB-A interface is kept in A charged state at any time, and when A device is plugged into the USB-A interface, the device can be directly charged without plug-in detection and without considering the pulling capacity of the device.
In case 2, when the first resistor Rd is detected to be connected to the CC of the USB-C interface, the USB-C interface is indicated to have equipment inserted, the first switch S1 and the third switch S3 are controlled to be turned on, and the second switch S2 is controlled to be turned off, so that the USB-A interface and the USB-C interface are coupled with the first power supply voltage. In this case, the device inserted in the USB-C interface cannot be charged quickly, and only the devices inserted in the USB-A interface and the USB-C interface can be charged normally.
Case 3 when the first resistor Rd is detected to be connected on the CC of the USB-C interface, and no device is inserted into the USB-A interface, but the inserted device does not support fast charging, the case is identical to case 2.
In case 4, when it is detected that the USB-C interface has A device inserted and supports fast charging, and the USB-A interface has no device inserted, the first switch S1 is controlled to be turned off, and the second switch S2 and the third switch S3 are controlled to be turned on, so that the USB-A interface is coupled to A pull-up voltage, and the USB-C interface is coupled to A second power supply voltage, where the second power supply voltage is greater than the first power supply voltage to support fast charging of the USB-C interface for the inserted device, and the first power supply voltage is switched to the second power supply voltage, specifically, the power supply is correspondingly set according to the requirement of the fast charging protocol, and the pull-up voltage is not obtained by performing resistance voltage division on the second power supply voltage. Wherein the pull-up voltage obtained needs to be lower than a first threshold value, which is used for representing an under-voltage threshold value of the chip in the charging cable. Thus, when the cable with the chip is inserted into the USB-A interface, the VBUS of the USB-A interface is pulled down to generate downward pulse, so that the quick charging of the USB-C interface is interrupted. However, the cable with the chip cannot generate enough current at the USB-A interface due to insufficient pulling capacity, so that the USB-A interface is lightly loaded and re-coupled to the pull-up voltage. And because the pull-up voltage is insufficient to maintain the working requirement of the chip, the chip in the cable cannot pull down the VBUS of the USB-A interface again, so that the cable with the chip cannot influence the quick-charging reconstruction of the USB-C interface.
Meanwhile, the charging control in the four conditions does not need to modify the existing circuit architecture, but only changes the connection strategy in the charging process, so that the charging control method with low cost is realized without considering the carrying capacity of the USB-A interface plug-in equipment.
It should be noted that, the threshold voltage at which the chip can normally operate is generally greater than 3V, so the first threshold is set to be about 3V. Of course, the specific value of the first threshold may be set according to the requirement, which is not limited herein. The first power supply voltage is specifically used for ordinary charging and is generally set to be 5V, the second power supply voltage is used for quick charging and can be set to be any one of 9V, 12V, 15V, 20V and the like, and the corresponding setting can be specifically performed according to different quick charging protocols, and the method is not limited herein.
Referring to fig. 4, as a supplementary explanation, the insertion detection of the USB-C interface in the Type-C protocol is determined by whether the first resistor Rd is detected on the CC, if the first resistor Rd is detected on the CC, it indicates that a device is inserted into the USB-C interface, and if the first resistor Rd is not detected on the CC, it indicates that no device is inserted into the USB-C interface.
Other matters of the charge control method are specifically described below:
referring to fig. 2, as an embodiment, after the USB-A interface is coupled to the pull-up voltage in S5, the method further includes:
s51, detecting whether A pulse voltage with downward voltage exists on the USB-A interface, if so, indicating that equipment insertion exists on the USB-A interface, and jumping to S53, and if not, jumping to S52.
S52, controlling the USB-A interface to be still coupled to the pull-up voltage and controlling the USB-C interface to be still coupled to the second power supply voltage.
And S53, controlling the USB-A interface to switch from being coupled to the pull-up voltage to being coupled to the first power supply voltage, and controlling the USB-C interface to switch from being coupled to the second power supply voltage to being coupled to the first power supply voltage.
S54, detecting whether the current at the USB-A interface exceeds A second threshold value in the first time, if so, then the USB-A interface is in A normal charging state, which means that the device inserted into the USB-A interface is A device with normal pulling capacity, such as A mobile phone, A sound box and the like, and jumping back to S53. If the current at the USB-A interface is lower than the second threshold, the USB-A interface is lightly loaded, indicating that the device inserted into the USB-A interface is A cable with A chip or A device with weak pulling capacity, such as A smart watch, smart glasses, smart bracelet, etc., and jumps back to S52. Meanwhile, because the chip in the cable or the device with weak pulling capacity can be undervoltage due to insufficient pulling voltage to support the normal operation of the device, the USB-A interface cannot generate downward pulse voltage again, so that the influence on the quick charging of the USB-C interface is ended.
Referring to fig. 3, as a specific embodiment, after the USB-C interface does not detect the device insertion in S1, the method further includes:
S11, detecting whether equipment is inserted into the USB-A interface, if not, jumping to S13, and if yes, jumping to S12.
S12, detecting whether the USB-A interface receives the quick charge protocol, if not, jumping to S13, and if yes, jumping to S14.
And S13, controlling the USB-A interface to be coupled with the first power supply voltage so as to carry out common charging on equipment inserted by the USB-A interface.
And S14, controlling the USB-A interface to be coupled to the second power supply voltage so as to perform quick charging on the equipment inserted by the USB-A interface.
It should be noted that, after the USB-A interface performs the fast charging on the plugged device, if it is detected that the USB-C interface has A device plug, the USB-A interface is controlled to be re-coupled to the first power supply voltage, and the USB-C interface is controlled to be re-coupled to the first power supply voltage, so as to perform the common charging on the device plugged by the USB-A interface and the device plugged by the USB-C interface together.
In summary, in the charge control method provided by the first embodiment of the present invention, on one hand, when the USB-C interface receives the fast charge protocol and the USB-A interface has no device to be charged inserted, the USB-A interface is set to be coupled to the pull-up voltage, and the USB-C interface is set to be coupled to the second power voltage, so as to implement fast charge of the device inserted by the USB-C interface, meanwhile, because the pull-up voltage is very low, when the device inserted by the USB-C interface is fast charged, if the cable with the chip is inserted by the USB-A interface, the fast charge of the USB-C interface is interrupted, and the cable with the chip is also not under-voltage due to insufficient pull-up voltage to support of the power supply of the chip, so that the same problem as in the prior art cannot occur, i.e., the fast charge of the USB-C interface is not affected after being interrupted once by the cable with the chip inserted by the USB-A cable inserted by the USB-A interface. On the other hand, when the USB-C interface does not receive the quick charging protocol, no matter whether the USB-C interface is plugged into A device or not, and no matter whether the USB-A interface is plugged into the device or not, the USB-C interface and the USB-A interface are both coupled with the first power supply voltage, so that when the USB-A interface is plugged into the device with weaker pulling and loading capacity, the charging can be directly performed without insertion detection. Finally, the technical means corresponding to the technical effects of the two aspects are realized without changing the existing circuit architecture, so that the problems existing in the prior art are solved with low cost.
The second embodiment of the invention provides A charging control circuit which is applied to A multi-port charger, wherein the multi-port charger at least comprises A USB-A interface and A USB-C interface, and the multi-port charger supports quick charging, and the charging circuit comprises an interface detection module and an interface control module;
The interface detection module is used for detecting whether the USB-C interface is inserted with equipment or not, if not, the interface control module controls the USB-A interface, if yes, the interface control module controls the USB-A interface and the USB-C interface to be both coupled to the first power supply voltage, and the interface detection module is also used for detecting whether the USB-A interface is inserted with equipment or not;
the interface control module is used for controlling the USB-A interface and the USB-C interface to be coupled with A first power supply voltage if the interface detection module detects that the USB-A interface has equipment insertion, and is also used for detecting whether the USB-C interface receives A fast charging protocol if the interface detection module does not detect that the USB-A interface has equipment insertion;
The interface control module is used for controlling the USB-A interface and the USB-C interface to be still coupled with A first power supply voltage if the interface detection module detects that the USB-C interface does not receive the fast charging protocol, and is also used for controlling the USB-A interface to be coupled with A pull-up voltage and controlling the USB-C interface to be coupled with A second power supply voltage if the interface detection module detects that the USB-C interface receives the fast charging protocol, wherein the second power supply voltage is larger than the first power supply voltage, the pull-up voltage is lower than A first threshold, and the first threshold is used for representing an under-voltage threshold of A chip in A charging cable.
As A specific implementation mode, the USB-A interface is coupled to the first power supply voltage, the interface detection module judges whether A device is inserted into the USB-A interface by detecting whether the current at the USB-A interface exceeds A second threshold value, if so, the device is inserted, and if not, no device is inserted.
As A specific implementation mode, the USB-A interface is coupled to the pull-up voltage, and the interface detection module judges whether the USB-A interface is inserted with A device by detecting whether A pull-down pulse exists at the USB-A interface, if so, the USB-A interface is inserted with the device, and if not, the USB-A interface is not inserted with the device.
It should be noted that, the charge control circuit provided in this embodiment corresponds to the charge control method provided in the first embodiment, so that the description in the first embodiment is omitted herein.
A third embodiment of the present invention provides a multi-port charger including the charge control circuit.
It should be noted that the above embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solution described in the above embodiments may be modified or some or all of the technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present invention.