Patent ID: 8725909
Filing Date: 2014-05-13
Classification: G06F

Abstract:
1. A method for identifying a host operating system by a USB device, wherein it comprises Step A, the USB device being powered on and initialized; Step B, determining whether a first setup package received is a first preset instruction by the USB device, if yes, Step C being executed, or if no, Step D being executed; Step C, determining whether the seventh byte of the first preset instruction is a second preset value by the USB device, if yes, setting an operating system ID to be a first preset ID by the USB device, and Step F being executed, or if no, Step E being executed; Step D, determining whether the first setup package is a second preset instruction by the USB device, if yes, setting the operating system ID to be a second preset ID by the USB device, and Step F being executed, or if no, Step E being executed; Step E, keeping interaction and communication with a host according to a default operating system ID till receiving a final setup package by the USB device, determining whether the final setup package is a third preset instruction by the USB device, if yes, setting the operating system ID to be a third preset ID by the USB device; or if no, setting the operating system ID to be a fourth preset ID by the USB device; and Step F, interacting and communicating with the host according to the current operating system ID and waiting for receiving instruction sent by the host by the USB device.