Universal serial bus (usb) cable type detection and control techniques
US-2017364114-A1 · Dec 21, 2017 · US
US11205906B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11205906-B2 |
| Application number | US-201916548300-A |
| Country | US |
| Kind code | B2 |
| Filing date | Aug 22, 2019 |
| Priority date | Aug 22, 2018 |
| Publication date | Dec 21, 2021 |
| Grant date | Dec 21, 2021 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
The present disclosure relates to a charging processing method, a terminal device and a storage medium. The charging processing method, applied to a terminal device, includes determining whether the terminal device is in a upstream facing port (UFP) mode; when the terminal device is in the UFP mode, determining whether a cable is connected to the terminal device; when the cable is connected to the terminal device, determining whether the cable is a standard cable or a non-standard cable, wherein the terminal device is connected to a charging device via the cable; and when the cable is the non-standard cable, controlling, via the cable, the charging device to provide a standard voltage of non-quickly-charging input voltage to charge the terminal device.
Opening claim text (preview).
What is claimed is: 1. A charging processing method, applied to a terminal device, comprising: determining whether the terminal device is in a upstreamfacing port (UFP) mode; when the terminal device is in the UFP mode, determining whether a cable is connected to the terminal device; when the cable is connected to the terminal device, determining whether the cable is a standard cable or a non-standard cable, wherein the terminal device is connected to a charging device via the cable; and when the cable is the non-standard cable, controlling, via the cable, the charging device to provide a standard voltage of non-quickly-charging input voltage to charge the terminal device, wherein determining whether the cable connected to the terminal device is the standard cable or the non-standard cable comprises: switching a CC pin of the terminal device connected to a first resistor of a C interface of the cable to an ADC module in the terminal device by a preset frequency; when the CC pin is connected to the ADC module, triggering the ADC module to acquire a first voltage value provided via the cable through a second resistor of the terminal device; and determining whether the cable is the standard cable or the non-standard cable based on first voltage value. 2. The method according to claim 1 , further comprising: when the cable is the standard cable, controlling, via the cable, the charging device to provide a quickly-charging input voltage to charge the terminal device. 3. The method according to claim 1 , further comprising: when the cable is the non-standard cable, displaying an alert message that is configured to indicate that the cable is the non-standard cable. 4. The method according to claim 1 , wherein determining whether the cable is the standard cable or the non-standard cable based on the first voltage value comprises: determining whether the first voltage value exceeds a preset voltage threshold; when the first voltage value exceeds the preset voltage threshold, increasing a number of times that the first voltage value exceeds the preset voltage threshold by one; determining an accumulated number of times that the first voltage value exceeds the preset voltage threshold; and when the accumulated number of times that the first voltage value exceeds the preset voltage threshold is greater than or equal to a preset number of times, determining that the cable is the non-standard cable. 5. The method according to claim 4 , further comprising: when the accumulated number of times that the first voltage value exceeds the preset voltage threshold is less than the preset number of times, determining that the cable is the standard cable. 6. The method according to claim 2 , wherein controlling, via the cable, the charging device to provide the quickly-charging input voltage to charge the terminal device comprises: adopting a quickly-charging protocol to control the charging device to boost a voltage output by the charging device via the cable to charge the terminal device by adopting the quickly-charging input voltage. 7. The method according to claim 1 , wherein determining whether the terminal device is in the UFP mode comprises: determining whether a CC pin of the terminal device is pulled down to a first resistor of a C interface of the cable; and when the CC pin of the terminal device is pulled down to the first resistor of the C interface of the cable, determining that the terminal device is in the UFP mode. 8. The method according to claim 7 , further comprising: determining whether the CC pin of the terminal device is pulled up to a current source of the terminal device; and when the CC pin is pulled up to the current source of the terminal device, determining that the terminal device is in a downstream facing port (DFP) mode. 9. A terminal device, comprising: a processor; and a memory configured to store instructions executable by the processor, wherein the processor is configured to: determine whether the terminal device is in a upstream facing port (UFP) mode; when the terminal device is in the UFP mode, determine whether a cable is connected to the terminal device; when the cable is connected to the terminal device, determine whether the cable is a standard cable or a non-standard cable, wherein the terminal device is connected to a charging device via the cable; and when the cable is the non-standard cable, control, via the cable, the charging device to provide a standard voltage of non-quickly-charging input voltage to charge the terminal device, wherein, when determining whether the cable connected to the terminal device is the standard cable or the non-standard cable, the processor is further configured to: switch a CC pin of the terminal device connected to a first resistor of a C interface of the cable to an ADC module in the terminal device by a preset frequency; when the CC pin is connected to the ADC module, trigger the ADC module to acquire a first voltage value provided via the cable through a second resistor of the terminal device; and determine whether the cable is the standard cable or the non-standard cable based on the first voltage value. 10. The terminal device according to claim 9 , wherein the processor is further configured to: when the cable is the standard cable, control, via the cable, the charging device to provide a quickly-charging input voltage to charge the terminal device. 11. The terminal device according to claim 9 , wherein the processor is further configured to: when the cable is the non-standard cable, display an alert message that is configured to indicate that the cable is the non-standard cable. 12. The terminal device according to claim 9 , wherein, when determining whether the cable is the standard cable or the non-standard cable based on the first voltage value, the processor is further configured to: determine whether the first voltage value exceeds a preset voltage threshold; when the first voltage value exceeds the preset voltage threshold, increase a number of times that the first voltage value exceeds the preset voltage threshold by one; determine an accumulated number of times that the first voltage value exceeds the preset voltage threshold; and when the accumulated number of times that the first voltage value exceeds the preset voltage threshold is greater than or equal to a preset number of times, determine that the cable is the non-standard cable. 13. The terminal device according to claim 12 , wherein the processor is further configured to: when the accumulated number of times that the first voltage value exceeds the preset voltage threshold is less than the preset number of times, determine that the cable is the standard cable. 14. The terminal device according to claim 10 , wherein, when controlling, via the cable, the charging device to provide the quickly-charging input voltage to charge the terminal device, the processor is further configured to: adopt a quickly-charging protocol to control the charging device to boost a voltage output by the charging device via the cable, to charge the terminal device by adopting the quickly-charging input voltage. 15. The terminal device according to claim 9 , wherein, when determining whether the terminal device is in the UFP mode, the processor is further configured to: determine whether a CC pin of the terminal device is pulled down to a first resistor of a C interface of the cable; and when the CC pin of the terminal device is pulled down to the first resistor of the C interface of the cable, determine that the terminal device is in the UFP mode.
Portable electronic devices · CPC title
with electronic devices having internal batteries, e.g. mobile phones · CPC title
using circuits for correcting or protecting against reverse-polarity · CPC title
Arrangements for checking compatibility or authentication between one component, e.g. a battery or a battery charger, and another component, e.g. a power source · CPC title
the cycle being controlled or terminated in response to electric parameters · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.