Patent ID: 7870302

Claim:
A method for automatically identifying an operating system for a USB device connected to a host, comprising: (A) initializing the USB device; (B) recording USB commands sent from the operating system to the USB device for initializing the USB device; (C) determining the operating system as an Apple MAC operating system by the USB device when there are two successive USB commands of Get Product String, one USB command of Get Vender String, no USB command of Reset ahead of a USB command of Set Address command, no USB command of Get Language ID, or no USB command of Set Feature Report; and (D) determining the operating system as a Microsoft Windows operating system by the USB device when there is no USB command of Get Vender String, there are two USB commands of Get Language ID and two USB commands of Get Product String, there is one USB command of Get Device Descriptor following a USB command of Get Product String command, or there is one USB command of Set Interface Report.