Patent ID: 8255930

Claim:
A method for dynamically switching between different device configurations, wherein said method comprises the steps of: detecting, by a host, if it has been connected with a device; if so, obtaining the configuration information of the device by the host; otherwise, monitoring, by the host, if the device is being plugged into the host; if the device is plugged, obtaining the configuration information of the device by the host; otherwise, continuing monitoring if the device is being plugged by the host; and after obtaining the configuration information of the device, determining, by the host, if the configuration information of the device meets the requirements of the host; if the requirements are met, performing operations according to the configuration information by the device; otherwise, transmitting, by the host, an instruction to the device to switch the configuration information of the device to a different one that meets the requirements of the host, changing the current configuration information of the device to a suitable one for the requirements of the host, simulating an unplugging operation and then a plugging operation of the device, re-declaring the device according to the new configuration information by the device itself, then monitoring, by the host, if the device is being plugged into the host; if the device is plugged, obtaining the configuration information of the device by the host; otherwise, continuing monitoring if the device is being plugged into the host by the host itself.