Patent ID: 8499104

Claim:
A method for switching a working mode, comprising: receiving, by a USB device, a query command sent by a host; sending, by the USB device, a response to the host, wherein the response comprises information indicating that the USB device supports an operating system and information indicating a value of a vendor code which is defined by the USB device vendor; receiving, by the USB device, a USB command sent by the host, wherein the USB command comprises a modified value of the vendor code in a registry after the USB device is reconnected to the host, wherein the value of the vendor code in the registry is modified by the host when a driver for the USB device in a second working mode is installed in the host; determining, by the USB device, whether the value of the vendor code stored in the USB device is the same as the modified value of the vendor code in the USB command received by the USB device; switching, by the USB device, a current working state of the USB device from a first working mode to the second working mode when the value of the vendor code stored in the USB device is not the same as the modified value of the vendor code in the USB command received by the USB device.