# US 10,955,888 B2 · Universal serial bus device and method for dynamically defining a power source or sink status for downstream facing ports

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,955,888 B2
- Document ID: US10955888B2
- Status: Granted
- Kind: B2
- Application number: 16/103,941
- Filed: 2018-08-15
- Published: 2019-08-01
- Granted: 2021-03-23
- Earliest claimed: 2018-01-29
- Assignees: Via Labs, Inc.
- Applicants: Via Labs, Inc.
- Inventors: Tze-Shiang Wang; Chi-Yuan Kao
- Web page: https://patentgrep.com/patent/US10955888B2

## CPC

- G06F 1/266: {Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips}
- G06F 13/382: {using universal interface adapter}
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F 1/26: Power supply means, e.g. regulation thereof (for memories G11C)
- G06F 1/263: {Arrangements for using multiple switchable power supplies, e.g. battery and AC (G06F1/30 takes precedence)}
- G06F 13/4022: {using switching circuits, e.g. switching matrix, connection or expansion network (G06F13/4009 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides a universal serial bus (USB) device and an operating method thereof. The USB device includes a plurality of Downstream Facing Ports (DFPs) and a control circuit. When a first external device is connected to the first DFP and the second DFP is not connected to any external device, the control circuit maintains the first DFP as one of a power source port and a power sink port according to the first external device, and maintains the second DFP as other one of the power source port and the power sink port regardless of whether the second DFP is connected to a second external device later until the first external device is removed from the first DFP.

## Claims

### Claim 1

A universal serial bus (USB) device, comprising:
a plurality of USB connectors, wherein the USB connectors comprise a plurality of downstream facing ports (DFPs);
a plurality of physical layer circuits, coupled to a configuration channel pin (CC pin) of the DFPs one by one; and
processor, coupled to the physical layer circuits, wherein the processor is configured to dynamically define the DFPs by controlling the physical layer circuits,
when a first external device is connected to a first DFP of the DFPs and a second DFP of the DFPs is not connected to any external device, the processor is configured to maintain the first DFP as one of a power source port and a power sink port according to the first external device and maintains the second DFP as the other one of the power source port and the power sink port regardless of whether the second DFP is connected to a second external device later until the first external device is removed from the first DFP.

### Claim 2 (depends on 1)

The USB device according to claim 1, wherein
the first external device is a power source device;
when the first external device is connected to the first DFP and the second DFP is not connected to any external device, the processor is configured to maintain the first DFP as the power sink port and the processor is configured to maintain the second DFP as the power source port regardless of whether the second DFP is connected to the second external device later until the first external device is removed from the first DFP; and
when the first external device is connected to the second DFP and the first DFP is not connected to any external device, the processor is configured to maintain the second DFP as the power sink port, and the processor is configured to maintain the first DFP as the power source port regardless of whether the first DFP is connected to the second external device later until the first external device is removed from the second DFP.

### Claim 3 (depends on 2)

The USB device according to claim 2, wherein the power source device comprises a charger.

### Claim 4 (depends on 1)

The USB device according to claim 1, wherein
the first external device is a power sink device;
when the first external device is connected to the first DFP and the second DFP is not connected to any external device, the processor is configured to maintain the first DFP as the power source port, and the processor is configured to maintain the second DFP as the power sink port regardless of whether the second DFP is connected to the second external device later until the first external device is removed from the first DFP; and
when the first external device is connected to the second DFP and the first DFP is not connected to any external device, the processor is configured to maintain the second DFP as the power source port, and the processor is configured to maintain the first DFP as the power sink port regardless of whether the first DFP is connected to the second external device later until the first external device is removed from the second DFP.

### Claim 5 (depends on 4)

The USB device according to claim 4, wherein the power sink device comprises an earphone.

### Claim 6 (depends on 1)

The USB device according to claim 1, further comprising:
an upstream facing port (UFP); and
an upstream physical layer circuit, coupled to a CC pin of the UFP;
wherein the processor is further coupled to the upstream physical layer circuit.

### Claim 7 (depends on 6)

The USB device according to claim 6, further comprising:
a data switching circuit, having a common terminal, a first selecting terminal and a second selecting terminal, wherein the common terminal is coupled to a data pin of the UFP, the first selecting terminal is coupled to a data pin of the first DFP, the second selecting terminal is coupled to a data pin of the second DFP;
wherein the processor is configured to control the data switching circuit according to a connection condition of the DFPs such that common terminal is selectively connected to the first selecting terminal or the second selecting terminal.

### Claim 8 (depends on 7)

The USB device according to claim 7, wherein
when the first DFP is defined as the power source port and the second DFP is defined as the power sink port, the processor is configured to control the data switching circuit such that the common terminal is selectively connected to the first selecting terminal; and
when the first DFP is defined as the power sink port and the second DFP is defined as the power source port, the control circuit controls processor is configured to control the data switching circuit such that the common terminal is selectively connected to the second selecting terminal.

### Claim 9 (depends on 6)

The USB device according to claim 6, further comprising:
a first power switch, having a first terminal coupled to a power pin of the first DFP;
a second power switch, having a first terminal coupled to a power pin of the second DFP, wherein a second terminal of the second power switch is coupled to a second terminal of the first power switch; and
a third power switch, having a first terminal coupled to a power pin of the UFP, wherein a second terminal of the third power switch is coupled to the second terminal of the first power switch and the second terminal of the second power switch;
wherein the processor is configured to control the first power switch, the second power switch and the third power switch according to a connection condition of the DFPs.

### Claim 10 (depends on 9)

The USB device according to claim 9, wherein
when the first DFP is defined as the power source port and the second DFP is defined as the power sink port, the first power switch is turned off, the second power switch and the third power switch are turned on; and
when the first DFP is defined as the power sink port and the second DFP is defined as the power source port, the second power switch is turned off, the first power switch and the third power switch are turned on.

### Claim 11 (depends on 1)

The USB device according to claim 1, further comprising:
a power supply circuit, configured to provide a power voltage;
a first power supply switch, having a first terminal coupled to an output terminal of the power supply circuit to receive the power voltage, wherein a second terminal of the first power supply switch is coupled to a power pin of the first DFP; and
a second power supply switch, having a first terminal coupled to the output terminal of the power supply circuit to receive the power voltage, wherein a second terminal of the second power supply switch is coupled to a power pin of the second DFP;
wherein the processor is configured to control the first power supply switch and the second power supply switch according to a connection condition of the DFPs.

### Claim 12 (depends on 11)

The USB device according to claim 11, wherein
when the first DFP is defined as the power source port and the second DFP is defined as the power sink port, the first power supply switch is turned on and the second power supply switch is turned off; and
when the first DFP is defined as the power sink port and the second DFP is defined as the power source port, the first power supply switch is turned off and the second power supply switch is turned on.

### Claim 13 (depends on 1)

The USB device according to claim 1, wherein any one of the physical layer circuits comprises:
a configuration channel communication circuit, coupled to the CC pin, wherein the processor is configured to acquire whether a corresponding DFP of the DFPs is connected to any external device through the configuration channel communication circuit and the CC pin of the corresponding DFP; and
a resistor circuit, coupled to the CC pin, wherein
when the corresponding DFP is not connected to any external device, the processor is configured to control the resistor circuit such that the resistor circuit alternately applies a pull-up resistor and a pull-down resistor to the CC pin at different times,
when the corresponding DFP is connected to a power source device, the processor is configured to control the resistor circuit such that the resistor circuit keeps applying the pull-down resistor to the CC pin in a period when the corresponding DFP is connected to the power source device, and
when the corresponding DFP is connected to a power sink device, the processor is configured to control the resistor circuit such that the resistor circuit keeps applying the pull-up resistor to the CC pin in a period when the corresponding DFP is connected to the power sink device.

### Claim 14 (depends on 13)

The USB device according to claim 13, wherein the configuration channel communication circuit comprises a bi-phase mark coding physical layer circuit.

### Claim 15

An operating method of a USB device, comprising:
when a first external device is connected to a first DFP of a plurality of USB connectors, and a second DFP of the USB connectors is not connected to any external device, maintaining the first DFP as one of a power source port and a power sink port by a processor according to the first external device, and maintaining the second DFP as the other one of the power source port and the power sink port regardless of whether the second DFP is connected to a second external device later until the first external device is removed from the first DFP.

### Claim 16 (depends on 15)

The operating method according to claim 15, wherein the first external device is a power source device, and the operating method comprises:
when the first external device is connected to the first DFP and the second DFP is not connected to any external device, maintaining the first DFP as the power sink port by the processor, and maintaining the second DFP as the power source port by the processor regardless of whether the second DFP is connected to the second external device later until the first external device is removed from the first DFP; and
when the first external device is connected to the second DFP and the first DFP is not connected to any external device, maintaining the second DFP as the power sink port by the processor, and maintaining the first DFP as the power source port by the processor regardless of whether the first DFP is connected to the second external device later until the first external device is removed from the second DFP.

### Claim 17 (depends on 16)

The operating method according to claim 16, wherein the power source device comprises a charger.

### Claim 18 (depends on 15)

The operating method according to claim 15, wherein the first external device is a power sink device, and the operating method comprises:
when the first external device is connected to the first DFP and the second DFP is not connected to any external device, maintaining the first DFP as the power source port by the processor, and maintaining the second DFP as the power sink port by the processor regardless of whether the second DFP is connected to the second external device later until the first external device is removed from the first DFP; and
when the first external device is connected to the second DFP and the first DFP is not connected to any external device, maintaining the second DFP as the power source port by the processor, and maintaining the first DFP as the power sink port by the processor regardless of whether the first DFP is connected to the second external device later until the first external device is removed from the second DFP.

### Claim 19 (depends on 18)

The operating method according to claim 18, wherein the power sink device comprises an earphone.

### Claim 20 (depends on 15)

The operating method according to claim 15, further comprising:
providing a data switching circuit, wherein a common terminal of the data switching circuit is coupled to a data pin of a UFP, a first selecting terminal of the data switching circuit is coupled to a data pin of the first DFP, a second selecting terminal of the data switching circuit is coupled to a data pin of the second DFP;
controlling the data switching circuit by the processor according to a connection condition of the DFPs, such that the common terminal is selectively connected to the first selecting terminal or the second selecting terminal.

### Claim 21 (depends on 20)

The operating method according to claim 20, further comprising:
when the first DFP is defined as the power source port and the second DFP is defined as the power sink port, controlling the data switching circuit by the processor such that the common terminal is selectively connected to the first selecting terminal; and
when the first DFP is defined as the power sink port and the second DFP is defined as the power source port, controlling the data switching circuit by the processor such that the common terminal is selectively connected to the second selecting terminal.

### Claim 22 (depends on 15)

The operating method according to claim 15, further comprising:
providing a first power switch, a second power switch and a third power switch, wherein a first terminal of the first power switch is coupled to a power pin of the first DFP, a first terminal of the second power switch is coupled to a power pin of the second DFP, a first terminal of the third power switch is coupled to a power pin of a UFP, a second terminal of the third power switch is coupled to a second terminal of the first power switch and a second terminal of the second power switch;
controlling the first power switch, the second power switch and the third power switch by the processor according to a connection condition of the DFPs.

### Claim 23 (depends on 22)

The operating method according to claim 22, further comprising:
when the first DFP is defined as the power source port, and the second DFP is defined as the power sink port, turning off the first power switch and turning on the second power switch and the third power switch; and
when the first DFP is defined as the power sink port, and the second DFP is defined as the power source port, turning off the second power switch and turning on the first power switch and the third power switch.

### Claim 24 (depends on 15)

The operating method according to claim 15, further comprising:
providing a power voltage;
providing a first power supply switch and a second power supply switch, wherein a first terminal of the first power supply switch receives the power voltage, a second terminal of the first power supply switch is coupled to a power pin of the first DFP, a first terminal of the second power supply switch receives the power voltage, a second terminal of the second power supply switch is coupled to a power pin of the second DFP; and
controlling the first power supply switch and the second power supply switch by the processor according to a connection condition of the DFPs.

### Claim 25 (depends on 24)

The operating method according to claim 24, further comprising:
when the first DFP is defined as the power source port, and the second DFP is defined as the power sink port, turning on the first power supply switch and turning off the second power supply switch; and
when the first DFP is defined as the power sink port, and the second DFP is defined as the power source port, turning off the first power supply switch and turning on the second power supply switch.
