IP Library › Granted Patent US 10,042,800
Granted Patent B2
US 10,042,800 · App. 14/412,045 · Granted Aug 7, 2018

Active USB device and switching method for operating mode thereof

Inventor: Xuan Lu (Shenzhen, CN)
Assignee: ZTE CORPORATION
G06F13/385G06F13/4022G06F1/3203G06F2213/3854G06F2213/4004
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,042,800
App. No.
14/412,045
Granted
Aug 7, 2018
Kind
B2
Abstract

An active USB device and a method for switching an operating mode thereof are provided. In the method, a USB devices is connected to a first host device, and the USB device is in a compound device multi-port mode; the USB device is disconnected from the first host device and the USB devices keeps in the On state; upon detection disconnection of the USB device to the first host device, the USB device switches from the compound device multi-port mode to the single compact disc mode. According to the method for switching the operating mode of the USB device in the disclosure, the USB device can install driver without distinction and completely in various complicated application environments, thereby increasing user experience.

Claims (35)

1. A method for switching an operating mode of an active Universal Serial Bus (USB) device, comprising:

when the USB devices is connected to a first host device, causing the USB device to be in a compound device multi-port mode;

when the USB device is disconnected from the first host device, keeping the USB device in an On state with power supply; and

switching the USB device from the compound device multi-port mode to a single compact disc mode, upon detecting disconnection of the USB device from the first host device,

wherein switching the USB device from the compound device multi-port mode to the single compact disc mode comprises:

performing a USB protocol stack reset function to switch the USB device from the compound device multi-port mode to the single compact disc mode;

wherein performing the USB protocol stack reset function comprises:

acquiring configuration information of the single compact disc mode;

performing, by a USB controller, a disconnection operation;

disabling and reconfiguring a function driver FD and an endpoint EP;

re-initializing the function driver FD and the endpoint EP with new configuration;

performing, by the USB controller, a re-connection operation; and

performing a callback function.

2. The method for switching an operating mode of an active USB device according to claim 1 , further comprising:

switching the USB device from the single compact disc mode to the compound device multi-port mode, upon detecting that the USB device is connected to the first host device in which driver has been installed or another host device in which driver has been installed.

3. The method for switching an operating mode of an active USB device according to claim 2 , wherein switching the USB device from the single compact disc mode to the compound device multi-port mode comprises:

performing a USB protocol stack reset function to switch the USB device from the single compact disc mode to the compound device multi-port mode.

4. The method for switching an operating mode of an active USB device according to claim 2 , wherein switching the USB device from the single compact disc mode to the compound device multi-port mode comprises:

receiving, by the USB device, a port switching instruction from the first host device or another host device; and

resetting the USB device to switch the USB device from the single compact disc mode to the compound device multi-port mode.

5. The method for switching an operating mode of an active USB device according to claim 3 , wherein performing a USB protocol stack reset function comprises:

acquiring configuration information of the compound device multi-port mode;

performing, by a USB controller, a disconnection operation;

disabling and reconfiguring a function driver FD and an endpoint EP;

re-initializing the function driver FD and the endpoint EP with new configuration;

performing, by the USB controller, a re-connection operation; and

performing a callback function.

6. An active Universal Serial Bus (USB) device, comprising a power supply module, a detection module and a switching module,

wherein the power supply module is configured to power the USB device to keep the USB device in an On state, when the USB device is disconnected from a first host device;

wherein the detection module is configured to detect whether the USB device is disconnected from the first host device; and

wherein the switching module is configured to switch the USB device from a compound device multi-port mode to a single compact disc mode, upon detecting disconnection of the USB device from the first host device,

wherein the detection module is configured to detect whether the USB device is connected to the first host device or to another host device; and

wherein the switching module is configured to judge whether the first host device or the another host device has a driver installed therein, when the detection module detects that the USB device is connected to the first host device or the another host device; and switch an operating mode of the USB device from the single compact disc mode to the compound device multi-port mode, when the driver has been installed.

7. The active USB device according to claim 6 , wherein the switching module is configured to perform a USB protocol stack reset function to switch the USB device from the compound device multi-port mode to the single compact disc mode.

8. The active USB device according to claim 7 , wherein the USB device is a WiFi-enabled data card.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 15, 2015
From: LU, XUAN
To: ZTE CORPORATION
Reel/Frame 035409/0121 →
Priority Claims (1)
CN 2012 1 0293480 · Aug 17, 2012 · national
Continuity (1)
Related Publication 20150169484A1 · Jun 18, 2015