Power management in electronic devices
First Claim
1. A device comprising:
- a universal serial bus (USB) port having a D+ line and a D−
line;
a USB device controller configured to operate in a host controller mode and a device controller mode;
one or more processors operatively coupled to a computer readable medium; and
a power management module maintained on the computer-readable medium and executed on the one or more processors to perform operations including;
detecting that a power source is connected to the USB port;
based at least in part on determining that the D+ and D−
lines are at least one of shorted or floating, setting the USB device controller to operate in the host controller mode;
determining, based at least in part on a pull-up or pull-down placed on one of the D+ or D−
lines, whether the D+ and D−
lines are shorted or floating; and
when the D+ and D−
lines are shorted, identifying the power source as being a type of power adapter capable of providing a known level of current.
1 Assignment
0 Petitions
Accused Products
Abstract
Some implementations provide power management techniques for an electronic device that receives power through a USB port. The device may receive power from various different power sources such as a PC, USB hub, and various types of power adapters. To identify a type of power adapter connected to the USB port, the device'"'"'s USB device controller may be reconfigured to operate in a host mode. A pull-up or pull-down may be placed on one of the D+ or D− lines of the USB port for determining whether the lines are shorted or floating. When the lines are shorted, the power source may be identified as a first type of power adapter that provides a known level of current. When the lines are not shorted, the values of the lines may be compared with known values for one or more pull-ups or pull-downs to attempt to identify other known power adapters.
-
Citations
25 Claims
-
1. A device comprising:
-
a universal serial bus (USB) port having a D+ line and a D−
line;a USB device controller configured to operate in a host controller mode and a device controller mode; one or more processors operatively coupled to a computer readable medium; and a power management module maintained on the computer-readable medium and executed on the one or more processors to perform operations including; detecting that a power source is connected to the USB port; based at least in part on determining that the D+ and D−
lines are at least one of shorted or floating, setting the USB device controller to operate in the host controller mode;determining, based at least in part on a pull-up or pull-down placed on one of the D+ or D−
lines, whether the D+ and D−
lines are shorted or floating; andwhen the D+ and D−
lines are shorted, identifying the power source as being a type of power adapter capable of providing a known level of current. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method comprising:
under control of an electronic device configured with specific executable instructions and having a universal serial bus (USB) port, connecting a power source to the USB port, the USB port including a D+ line and a D−
line;based at least in part on determining that the D+ and D−
lines are at least one of shorted or floating, stopping a USB device controller operating in a client controller mode;restarting the USB device controller in a host controller mode; and applying a pull-up or pull-down on one of the D+ or D−
lines of the USB port to determine whether the D+ and D−
lines are shorted.- View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19)
-
20. One or more non-transitory computer-readable media having instructions recorded thereon, the instructions executable by a processor to program a device to perform operations comprising:
-
detecting that a power source is connected to a universal serial bus (USB) port of the device, the USB port including a D+ line and a D−
line;based at least in part on determining that the power source is not a host USB port of another device, setting a USB device controller of the device to operate in a host controller mode; in the host controller mode, applying a pull-up or pull-down on one of the D+ or D−
lines of the USB port; anddetermining from a comparison of values of the D+ and D−
lines whether the D+ and D−
lines are floating. - View Dependent Claims (21, 22, 23, 24, 25)
-
Specification