IP Library Granted Patent US 8,650,332
Granted Patent B2
US 8,650,332 · App. 13/343,309 · Granted Feb 11, 2014

Method for switching working mode, USB device, and host device

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 8,650,332
App. No.
13/343,309
Granted
Feb 11, 2014
Kind
B2
Abstract

The embodiments of the present invention provide a method for switching a working mode, a USB device, and a host device. The method for switching a working mode includes: determining, according to the osvc key value in the registry of a host device, that a driver for a second working mode is installed on the host device, after the USB device is connected to the host device; and switching the current working state of the USB device from a first working mode to the second working mode. In the embodiments of the present invention, neither special auxiliary program nor additional driver needs to be developed. Therefore, the solution is easy to implement and a problem of incompatibility will not occur.

Claims (18)

1. A method executed by a Universal Serial Bus (USB) device, the USB device operable to connect with a computer host via a USB interface and work with the computer host in a first working mode and a second working mode, the method comprising:

starting the first working mode after being connected with the host computer via the USB interface;

receiving, from the computer host, an operating system descriptor including a value obtained from an osvc key in a registry of the computer host;

determining, according to the value, that a driver for the USB device's second working mode is installed on the computer host; and

based upon the determination, switching, from the first working mode to the second working mode.

2. The method according to claim 1 , wherein the first working mode is a CDROM mode, and the second working mode is a network adapter mode.

3. A Universal Serial Bus (USB) device operable to connect with a computer host via a USB interface and work with the computer host in a first working mode and a second working mode, the USB device comprising:

memory including program instructions stored thereon;

a USB interface; and

one or more processors configured to execute the program instructions to:

receive via the USB interface, from the computer host, an operating system descriptor including a value obtained from an osvc key value in a registry of the computer host;

determine, according to the value, that a driver for the USB device's second working mode is installed on the computer host; and

based upon the determination, switch, from the first working mode to the second working mode.

4. A computer readable non-transitory storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a Universal Serial Bus (USB) device with a USB interface, cause the portable electronic device to perform a method comprising:

starting a first working mode after being connected with the host computer via the USB interface;

receiving, from the computer host, an operating system descriptor including a value obtained from an osvc key in a registry of the computer host;

determining, according to the value, that a driver for the USB device's second working mode is installed on the computer host; and

based upon the determination, switching, from the first working mode to the second working mode.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 19, 2018
From: HUAWEI DEVICE (SHENZHEN) CO., LTD.
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 047603/0039 →
CHANGE OF NAME Recorded Jun 12, 2018
From: HUAWEI DEVICE CO.,LTD.
To: HUAWEI DEVICE (SHENZHEN) CO., LTD.
Reel/Frame 046340/0590 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 16, 2012
From: NIE, ZHENHUI; WANG, YEQI
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 027719/0749 →