发明名称 Method for identifying version type of windows operating system on a host by a USB device
摘要 The invention provides a method for identifying version type of a Windows operating system on a host by USB device, relating to operating system field and including steps: A, USB device is powered on and initialized; B, the USB device performs USB enumeration, determines whether a first predetermined instruction is received in process of USB enumeration, if yes, determines the operating system is a first operating system and goes to Step D, if no, goes to C; C, the USB device determines the device type returned in process of USB enumeration, if it is a CCID device, determines whether the received instruction includes a second predetermined instruction, if yes, determines the operating system is a second operating system, if no, determines the operating system is a third operating system; when the device is an SCSI device, the USB device determines whether the second received SCSI instruction is a third predetermined instruction or fourth predetermined instruction, if it is the third predetermined instruction, determines that the operating system is a second operating system, if it is the fourth predetermined instruction, determines that the operating system is a third operating system; D, the USB device establishes communication with the host, waits for instruction sent by the host and returns related information to the host according to the determined type of the host operating system.
申请公布号 US8862790(B2) 申请公布日期 2014.10.14
申请号 US201113640997 申请日期 2011.09.15
申请人 Feitian Technologies Co., Ltd. 发明人 Lu Zhou;Yu Huazhang
分类号 G06F3/00;G06F9/44 主分类号 G06F3/00
代理机构 Shumaker & Sieffert, P.A. 代理人 Shumaker & Sieffert, P.A.
主权项 1. A method for identifying version type of Windows operating system on a host by USB device, comprising: Step A, powering on and initializing a USB device; Step B, the USB device performing USB enumeration and determining whether a first predetermined instruction is received in process of USB enumeration, if yes, the USB device determining that the host operating system is a first operating system and executing Step D, if no, executing Step C; Step C, the USB device determining a device type returned to the host in process of USB enumeration; if the device type returned to the host by the USB device is a CCID device, the USB device determining whether the received instruction includes a second predetermined instruction, if the received instruction includes the second predetermined instruction, the USB device determining that the host operating system is a second operating system; if the received instruction does not include the second predetermined instruction, the USB device determining that the host operating system is a third operating system; if the device type returned to the host by the USB device is an SCSI device, the USB device receiving SCSI instructions sent by the host and determining whether the second received SCSI instruction is a third or fourth predetermined instruction, if the second received SCSI instruction is the third predetermined instruction, the USB device determining that the host operating system is the second operating system; if the second received SCSI instruction is the fourth predetermined instruction, the USB device determining that the host operating system is the third operating system; and Step D, the USB device establishing communication with the host, waiting for receiving instruction sent by the host and returning corresponding information to the host according to the determined type of the host operating system.
地址 Beijing CN