# US 2025/0165423 A1 · Usb circuit, and switching method and apparatus for usb controller

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

- Number: US 2025/0165423 A1
- Document ID: US20250165423A1
- Status: Published application
- Kind: A1
- Application number: 18/878,033
- Filed: 2023-11-28
- Published: 2025-05-22
- Earliest claimed: 2023-03-10
- Assignees: Suzhou Metabrain Intelligent Technology Co., Ltd.
- Applicants: Suzhou Metabrain Intelligent Technology Co., Ltd.
- Inventors: Jianguo WU; Changzhao FU
- Web page: https://patentgrep.com/patent/US20250165423A1

## CPC

- G06F 13/4022: {using switching circuits, e.g. switching matrix, connection or expansion network (G06F13/4009 takes precedence)}
- G06F 11/221: {to test buses, lines or interfaces, e.g. stuck-at or open line faults}
- G06F 13/38: Information transfer, e.g. on bus (G06F13/14 takes precedence)
- G06F 13/40: Bus structure {(for computer networks G06F15/163; for optical bus networks H04B10/25)}
- G06F 2213/0042: Universal serial bus [USB]
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

The embodiments of the present application provide a USB circuit and a method and apparatus for switching USB controllers, which relates to the technical field of circuit designing. The USB circuit includes a USB socket, USB controllers, a switching switch and a power-supply detecting circuit, and the USB controllers include an operating USB controller and an idle USB controller. The operating USB controller is a USB controller that is normally connected to the switching switch, and the idle USB controller is a USB controller that is connected to the switching switch when the operating USB controller has abnormality. The switching switch decomposes a USB signal transmitted in the power line of the USB socket into a plurality of channels of signals, and connects the plurality of channels of the USB signals obtained by the decomposing to the operating USB controller and the idle USB controller. The power-supply detecting circuit detects whether the power line of the USB socket outputs an electric current of the USB interface in the USB socket to determine whether the USB interface in the USB socket has been accessed by a USB device.

## Claims

### Claim 1

A USB (Universal Serial Bus) circuit, wherein the USB circuit comprises a USB socket, USB controllers, a switching switch and a power-supply detecting circuit, each of the switching switch and the power-supply detecting circuit is connected in series to a power line of the USB socket, and the USB controllers include an operating USB controller and an idle USB controller, wherein the operating USB controller is a default USB controller that is, when normally operating, connected to the switching switch, and the idle USB controller is a standby USB controller that is connected to the switching switch when the operating USB controller has abnormality;
the switching switch is configured for decomposing a USB signal transmitted in the power line of the USB socket into a plurality of channels of signals, and connecting the plurality of channels of the USB signals obtained by the decomposing to the operating USB controller and the idle USB controller; and
the power-supply detecting circuit is configured for detecting whether the power line of the USB socket outputs an electric current of a USB interface in the USB socket to determine whether the USB interface in the USB socket has been accessed by a USB device.

### Claim 2 (depends on 1)

The USB circuit according to claim 1, wherein the USB circuit comprises at least two instances of the switching switch, and each of the switching switches corresponds to one instance of the USB socket.

### Claim 3 (depends on 2)

The USB circuit according to claim 2, wherein the idle USB controller and the switching switches are in a star connection.

### Claim 4 (depends on 1)

The USB circuit according to claim 1, wherein one instance of the USB socket corresponds to at least one instance of the operating USB controller and one instance of the idle USB controller.

### Claim 5 (depends on 4)

The USB circuit according to claim 4, wherein in response to the operating USB controller having abnormality, a USB signal that was connected to the abnormal USB controller is connected to the idle USB controller by using the switching switch.

### Claim 6 (depends on 1)

The USB circuit according to claim 1, wherein in response to the USB interface in the USB socket having been accessed by a USB device and it being unidentifiable whether the USB interface has been accessed by the USB device, the power-supply detecting circuit detects whether the power line of the USB socket outputs an electric current of the USB interface in the USB socket to determine whether the USB interface in the USB socket has been accessed by the USB device.

### Claim 7 (depends on 6)

The USB circuit according to claim 6, wherein in response to it being detected by the power-supply detecting circuit that the power line of the USB socket outputs an electric current of the USB interface in the USB socket, it is determined that the USB interface in the USB socket has been accessed by the USB device; and
in response to it being not detected by the power-supply detecting circuit that the power line of the USB socket outputs an electric current of the USB interface in the USB socket, it is determined that the USB interface in the USB socket is not accessed by a USB device.

### Claim 8 (depends on 6)

The USB circuit according to claim 6, wherein in response to it being unidentifiable whether the USB interface has been accessed by a USB device, it is determined that the operating USB controller is a USB controller having abnormality.

### Claim 9 (depends on 1)

The USB circuit according to claim 1, wherein the USB circuit further comprises a power-supply overcurrent-protection circuit, and the power-supply overcurrent-protection circuit is configured for monitoring whether an electric current of the USB interface in the USB socket is greater than a preset current value.

### Claim 10 (depends on 1)

The USB circuit according to claim 1, wherein a switching chip in the switching switch comprises a selecting lead, and the selecting lead is configured for selecting the operating USB controller or the idle USB controller.

### Claim 11 (depends on 1)

A method for switching USB controllers, wherein the method is applied for the USB circuit according to claim 1, and the method comprises:
detecting whether the power line of the USB socket outputs an electric current of the USB interface in the USB socket;
in response to the power line of the USB socket outputting an electric current of the USB interface in the USB socket, detecting whether enumeration of a USB device that has accessed the USB interface succeeds; and
in response to the enumeration of a USB device that has accessed the USB interface failing, according to a usage state of the idle USB controller, switching the USB controllers.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the step of detecting whether the power line of the USB socket outputs the electric current of the USB interface in the USB socket comprises:
in response to the USB interface in the USB socket having been accessed by a USB device and it being unidentifiable whether the USB interface has been accessed by the USB device, by using the power-supply detecting circuit, detecting whether the power line of the USB socket outputs an electric current of the USB interface in the USB socket.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the method further comprises:
in response to it being detected by the power-supply detecting circuit that the power line of the USB socket outputs an electric current of the USB interface in the USB socket, determining that the USB interface in the USB socket has been accessed by the USB device; and
in response to it being not detected by the power-supply detecting circuit that the power line of the USB socket outputs an electric current of the USB interface in the USB socket, determining that the USB interface in the USB socket is not accessed by a USB device.

### Claim 14 (depends on 11)

The method according to claim 11, wherein the method further comprises:
in response to the enumeration of a USB device that has accessed the USB interface succeeding, using the operating USB controller to operate.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the method further comprises:
in response to the enumeration of a USB device that has accessed the USB interface succeeding, determining that the operating USB controller is in a normal state; and
in response to the enumeration of a USB device that has accessed the USB interface failing, determining that the operating USB controller is in an abnormal state.

### Claim 16 (depends on 11)

The method according to claim 11, wherein the step of, according to the usage state of the idle USB controller, switching the USB controllers comprises:
in response to the idle USB controller being used, using the operating USB controller to operate; and
in response to the idle USB controller not being used, switching from the operating USB controller to the idle USB controller to operate.

### Claim 17 (depends on 15)

The method according to claim 15, wherein the method further comprises:
in response to the operating USB controller being in the abnormal state, connecting a USB signal that was connected to the abnormal operating USB controller to the idle USB controller by using the switching switch.

### Claim 18 (depends on 11)

The method according to claim 11, wherein the method further comprises:
in response to the power line of the USB socket outputting an electric current of the USB interface in the USB socket and it is unidentifiable whether the USB interface has been accessed by a USB device, determining that the operating USB controller is a USB controller having abnormality.

### Claim 19

(canceled)

### Claim 20 (depends on 11)

An electronic device, wherein the electronic device comprises a processor, a communication interface, a memory and a communication bus, and the processor, the communication interface and the memory complete communication therebetween via the communication bus;
the memory is configured for storing a computer program; and
the processor is configured for, when executing the computer program stored in the memory, implementing the method according to claim 11.

### Claim 21 (depends on 11)

A non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores an instruction, and the instruction, when executed by one or more processors, causes the processors to implement the method claim 11.
