WO2013189432A2 - Usb设备及其自动识别微软窗口化操作系统版本的方法 - Google Patents

Usb设备及其自动识别微软窗口化操作系统版本的方法 Download PDF

Info

Publication number
WO2013189432A2
WO2013189432A2 PCT/CN2013/082227 CN2013082227W WO2013189432A2 WO 2013189432 A2 WO2013189432 A2 WO 2013189432A2 CN 2013082227 W CN2013082227 W CN 2013082227W WO 2013189432 A2 WO2013189432 A2 WO 2013189432A2
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
microsoft
version
host
usb device
Prior art date
Application number
PCT/CN2013/082227
Other languages
English (en)
French (fr)
Other versions
WO2013189432A3 (zh
Inventor
田军
马伟伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US14/893,607 priority Critical patent/US9501444B2/en
Priority to EP13807275.6A priority patent/EP2990956B1/en
Publication of WO2013189432A2 publication Critical patent/WO2013189432A2/zh
Publication of WO2013189432A3 publication Critical patent/WO2013189432A3/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Definitions

  • the present invention relates to the field of Universal Serial Bus (USB) technology, and more particularly to a USB device and a method for automatically recognizing a Microsoft Windows operating system version. Background technique
  • USB technology is a serial bus standard that allows the host to communicate with peripheral devices. It supports hot plug and plug and play functions and is widely used. With the rapid development of USB devices, more and more USB devices have been applied to various operating systems. Due to the different design of each operating system, the support for USB devices also has its own characteristics. Therefore, how the USB device distinguishes the currently inserted operating system becomes an issue that various device vendors are trying to solve.
  • One operating system identification method is to install the program on the operating system in advance, on different operating systems, personal computers.
  • the operating system version distinguishes only the Windows operating system, the Linux operating system, and the MAC operating system.
  • Another method of operating system identification is to determine the type of operating system based on a USB-specific descriptor for automatic identification purposes.
  • the disadvantage of this operating system identification method is that it can only distinguish between the Window operating system and the non-Windows operating system, and does not recognize the specific version of the Windows operating system. Summary of the invention
  • the main purpose of embodiments of the present invention is to provide a USB device and its automatic identification of Microsoft Windows.
  • the method of porting the operating system version can automatically distinguish the specific version type of the Windows operating system without any need to install any program on the host for assistance.
  • An embodiment of the present invention provides a method for a USB device to automatically identify a Microsoft Windows operating system version, where the method includes:
  • the USB device accesses the host, and reports M configuration parameters to the host, where M is an integer greater than 1.
  • the USB device is enumerated as a Flash-based (Trans-Flash, TF) card device, and the Microsoft Windows Operating System Descriptors (MOSD) supporting the configuration parameter specifying function are reported to the host during the enumeration process.
  • the configuration parameter specifying function specifies that the configuration value is set to the Nth configuration parameter, and N is an integer greater than 1 and less than or equal to M;
  • USB device When the USB device detects that the host acquires the configuration descriptor corresponding to the Nth configuration parameter, it determines that the current version of the Microsoft windowed operating system is Win8;
  • the USB device When the USB device detects that the host acquires a configuration descriptor corresponding to the first configuration parameter, if the USB device receives only one query command issued by the host, determining the current Microsoft windowing operating system The version of the system is XP. If the USB device receives at least two query commands issued by the host, it determines that the version of the current Microsoft windowed operating system is Vista or Win7.
  • the method for automatically identifying a version of the Microsoft windowed operating system by the USB device further includes: when the USB device determines that the version of the Microsoft windowed operating system is XP, enumerating the USB port as a virtual disk. Or enumerated as a combination of a virtual optical disk and a TF card device, and boot a remote network driver interface specification (RNDIS) by using a driver installation file in the virtual optical disk.
  • RNDIS remote network driver interface specification
  • the method for automatically identifying a Microsoft Windows operating system version by the USB device further includes: when the USB device determines that the version of the Microsoft windowed operating system is In Win8, a Mobile Broadband Interface Model (MBIM) driver loading signal is sent to the host, so that the host automatically loads the MBIM driver.
  • MBIM Mobile Broadband Interface Model
  • the method for automatically identifying a version of the Microsoft windowed operating system by the USB device further includes: when the USB device determines that the version of the Microsoft windowed operating system is Win8, enumerating the USB port as The RNDIS device, or enumerated as a combination of RNDIS devices and mass storage devices.
  • the method for automatically identifying a Microsoft Windows operating system version by the USB device further includes: when the USB device determines that the version of the Microsoft windowed operating system is Vista or Win7, the USB port is Take the RNDIS device, or enumerate as a combination of RNDIS devices and mass storage devices.
  • An embodiment of the present invention further provides a USB device, where the USB device includes:
  • the USB configuration reporting module is configured to report the M configuration parameters to the host when the USB device is connected to the host, where M is an integer greater than 1.
  • the USB configuration reporting module stores respectively corresponding to the M configuration parameters.
  • the enumeration module is configured to enumerate the USB port as a TF card device, and report the Microsoft windowed operating system descriptor MOSD supporting the configuration parameter specifying function to the host in the process of enumeration, and the configuration parameter specifies a function to specify a configuration value.
  • N is an integer greater than 1 and less than or equal to M;
  • Configuring a detection module configured to detect a configuration descriptor obtained by the host from the USB configuration reporting module
  • the query instruction detection module is configured to detect a query instruction sent by the host
  • the Microsoft windowed operating system version determining module is configured to determine that the current Microsoft window is determined when the configuration detecting module detects that the host obtains a configuration descriptor corresponding to the Nth configuration parameter from the USB configuration reporting module.
  • the version of the operating system is Win8; the configuration is further configured to: when the configuration detecting module detects that the host is obtained from the USB configuration reporting module and the first If the query instruction module detects only one query command sent by the host, the current version of the Microsoft windowed operating system is determined to be
  • the query instruction detection module detects at least two query instructions issued by the host, it determines that the current version of the Microsoft Windows operating system is Vista or Win7.
  • the enumerating module is further configured to: when the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowing operating system is XP, enumerate the USB port as a virtual disk, or enumerate as a virtual disk. a combination with a TF card device;
  • the USB device also includes a drive boot module configured to utilize the driver installation file in the virtual optical disk to boot the remote network drive interface specification RNDIS driver.
  • the enumeration module is further configured to: when the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowed operating system is Win8, enumerate the USB port as a MBIM device, so that the host automatically loads MBIM driver.
  • the enumeration module is further configured to enumerate the USB port as an RNDIS device or enumerate as an RNDIS device when the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowed operating system is Win8.
  • the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowed operating system is Win8.
  • a combination with a mass storage device is further configured to enumerate the USB port as an RNDIS device or enumerate as an RNDIS device when the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowed operating system is Win8.
  • the enumeration module is further configured to: when the Microsoft windowed operating system version determining module determines that the version of the Microsoft windowed operating system is Vista or Win7, enumerate the USB port as an RNDIS device, or enumerate as A combination of RNDIS devices and mass storage devices.
  • the USB device and the method for automatically recognizing the version of the Microsoft windowed operating system in the embodiment of the present invention can enable the USB device to be installed without any need to install any program on the host. Automatically distinguish the current version of the Windows operating system, making the USB device more flexible for different types of Windows operating systems.
  • the implementation process is simple and operability, effectively solving the need to install differently on the host in the prior art. Software to detect compatibility issues caused by the Windows operating system type.
  • FIG. 1 is a flow chart showing a method for automatically identifying a Microsoft Windows operating system version by a USB device according to a first embodiment of the present invention
  • FIG. 2 is a flow chart showing a method for automatically identifying a Microsoft Windows operating system version by a USB device according to a second embodiment of the present invention
  • Fig. 3 is a block diagram showing the structure of a USB device of the first embodiment of the present invention. detailed description
  • the current mainstream operating system is the Windows operating system.
  • the Windows operating system includes Windows XP, VISTA, Windows 7 (WIN7), and Windows 8 (WIN8).
  • Various operating systems have their own features for USB device support, and in the high version.
  • New USB device types are generally added to the Windows operating system.
  • the USB protocol stipulates that: USB devices can have multiple sets of configurations at the same time, but only one of the configurations takes effect at a certain time. After the USB device is inserted into the host, the host sends a USB request to obtain information such as the device descriptor, configuration descriptor, and interface descriptor. If there are multiple sets of configurations in the USB device, the device descriptor needs to be filled with the specific configuration number. The host can send all the specific configuration parameters according to the number of configurations reported by the USB.
  • the Windows operating system supports a special extended instruction for the Windows operating system's MOSD, ensuring that the host with the Windows operating system allows the USB device to report certain messages through the MOSD. Report specific information.
  • MOSD there is a special MOSD on WIN8 as "ALTRCFG", which allows WIN8 to select a specific set of configurations.
  • the host and the USB device interact with each other through a Small Computer System Interface (SCSI) command.
  • SCSI Small Computer System Interface
  • the SCSI instruction there is a query (INQUIRY) instruction that returns specific information for the current logical unit (LUN).
  • the host may be a computer, and the USB device may be a wireless network card, a wireless data card, or the like.
  • the invention is based on the above-mentioned INQUIRY instruction in the SCSI command and the characteristics of the WinSD MOSD, and provides a method and USB device for the USB device to automatically recognize the version of the Microsoft windowed operating system.
  • FIG. 1 is a schematic flowchart of a method for automatically identifying a version of a Microsoft windowed operating system by a USB device according to a first embodiment of the present invention.
  • the USB device according to the first embodiment of the present invention automatically recognizes a Microsoft windowed operating system.
  • the version of the method including the following steps:
  • Step 11 The USB device accesses the host, and reports M configuration parameters to the host, where M is an integer greater than 1.
  • Step 12 The USB device is enumerated as a TF card device.
  • the USB device reports to the host a Microsoft windowed operating system descriptor MOSD that supports a configuration parameter specifying function, and the configuration parameter specifies a function designation.
  • the configuration value is set to the Nth configuration parameter, and N is an integer greater than 1 and less than or equal to M;
  • Step 13 When the USB device detects that the host obtains a configuration descriptor corresponding to the Nth configuration parameter from the USB device, it determines that the version of the current Microsoft windowed operating system is Win8;
  • Step 14 When the USB device detects that the host obtains a configuration descriptor corresponding to the first configuration parameter from the USB device, if the USB device receives only one query command sent by the host, The current version of the Microsoft Windows operating system is determined to be XP. If the USB device receives at least two query commands issued by the host, it determines that the current version of the Microsoft Windows operating system is Vista or Win7.
  • the method for automatically recognizing the version of the Microsoft windowed operating system by the USB device enables the USB device to automatically distinguish the current Windows operating system without any need to install any program on the host for assistance.
  • Specific version type making The USB device is more flexible in the use of different types of Windows operating systems, and the implementation process is simple and operability, which effectively solves the problem that the prior art needs to install different software on the host to detect the type of the Windows operating system. Compatibility issue.
  • USB device of the present invention automatically recognizes a Microsoft Windows operating system version in a specific implementation:
  • the USB device accesses the host, and reports five configuration parameters to the host; the USB device then enumerates itself as a TF card device, and reports the MOSD information to the host during the enumeration process. Reporting support to the host to support the ALTRCFG function, and the specified configuration value in the ALTRCFG is set to the second configuration parameter;
  • the USB device detects that the host acquires a configuration descriptor corresponding to the second configuration parameter from the USB device, determining that the version of the Windows operating system installed on the host is Win8, and when the USB is When the device detects that the host still obtains the configuration descriptor corresponding to the first configuration parameter from the USB device by default, it determines that the version of the Windows operating system installed on the host is not Win8;
  • the USB device determines that the version of the Windows operating system installed on the host is not Win8, if the USB device detects that the host only sends an INQUIRY command to the USB device, it determines that the host is installed.
  • the version of the Windows operating system is XP. If the USB device detects that the host has issued at least two INQUIRY commands to the USB device, it determines that the version of the Windows operating system installed on the host is Vista or Win7.
  • the existing USB operating system driver that the existing Windows operating system can support is the RNDIS network driver and the MBIM network driver.
  • the RNDIS driver protocol is supported on the current mainstream XP, Vista, Win7 and Win8.
  • XP needs to provide the driver installation file to guide the system to install the RNDIS driver.
  • Vista, Win7 and Win8 can load the RNDIS driver by themselves and need to boot.
  • Win8 supports MBIM driver
  • MBIM is proposed by Microsoft on Win8.
  • the USB device automatically recognizes the version of the Microsoft Windows operating system version according to the embodiment of the present invention. After identifying the version of the Windows operating system installed on the host, the USB network device driver can also be completed according to the specific version. .
  • the method for automatically identifying a version of the Microsoft windowed operating system by the USB device further includes: when the USB device determines that the version of the Microsoft windowed operating system is XP, enumerating the USB port as a virtual The optical disc, or enumerated as a combination of a virtual optical disc and a TF card device, directs the remote network drive interface specification RNDIS driver using the driver installation files in the virtual optical disc.
  • the method for automatically identifying a version of the Microsoft windowed operating system by the USB device further includes: when the USB device determines that the version of the Microsoft windowed operating system is Win8, sending the MBIM driver to the host. The signal is loaded so that the host automatically loads the MBIM driver.
  • the USB device automatically recognizes a Microsoft Windows operating system version, and further includes: when the USB device determines that the version of the Microsoft windowed operating system is WIN8, Vista, or Win7,
  • the USB port is enumerated as an RNDIS device, or enumerated as a combination of an RNDIS device and a mass storage device.
  • the USB device automatically recognizes the version of the Microsoft windowed operating system version, and selects which type of USB port to enumerate according to the determined version of the Windows operating system, and can automatically complete the USB network device driver.
  • FIG. 2 is a schematic flowchart of a method for automatically identifying a version of a Microsoft windowed operating system by a USB device according to a second embodiment of the present invention; as shown in FIG. 2, the USB device according to the second embodiment of the present invention automatically recognizes a Microsoft windowed operating system.
  • the version of the method including:
  • Step 201 The USB device accesses the host, and reports M configuration parameters to the host, where M is an integer greater than 1.
  • Step 202 The USB device is enumerated as a TF card device. In the enumeration process, the USB device reports a MOSD that supports a configuration parameter specifying function to the host, and the configuration parameter specifying function specifies a configuration value to be the Nth. a configuration parameter, where N is an integer greater than 1 and less than or equal to M;
  • Step 203 The USB device determines whether the host obtains a configuration descriptor corresponding to the Nth configuration parameter from the USB device, and if yes, performs step 204. Otherwise, step 205 is performed;
  • Step 204 The USB device determines that the current version of the Microsoft Windows operating system is Win8, and proceeds to step 209;
  • Step 205 The USB device determines whether it only receives a query command issued by the host, if yes, step 206 is performed, otherwise step 207 is performed;
  • Step 206 The USB device determines that the current version of the Microsoft Windows operating system is XP, and proceeds to step 208;
  • Step 207 The USB device determines that the current version of the Microsoft Windows operating system is Vista or Win7, and proceeds to step 210;
  • Step 208 enumerating the USB port as a virtual disk, or enumerating as a combination of a virtual disk and a TF card device, and using the driver installation file in the virtual disk to guide the remote network driver interface to standardize the RNDIS driver, and ending the current operation;
  • Step 209 The USB device sends an MBIM driver loading signal to the host, so that the host automatically loads the MBIM driver to end the current operation.
  • the USB device enumerates the USB port as an RNDIS device, or As a combination of the RNDIS device and the mass storage device, the current operation is ended;
  • Step 210 The USB device enumerates the USB port as an RNDIS device, or enumerates as a combination of an RNDIS device and a mass storage device, and ends the current operation.
  • the USB device automatically recognizes a Microsoft Windows operating system version, and can be implemented without any program installed on the host.
  • the USB device can automatically distinguish the specific version type of the current Windows operating system, and can also complete the USB network device driver according to the specific version.
  • USB device includes:
  • the USB configuration reporting module 31 is connected to the host 30, and is configured to report M configuration parameters to the host 30 when the USB device accesses the host 30, where M is an integer greater than 1.
  • the USB configuration reporting module 31 Storing a configuration description corresponding to the M configuration parameters respectively;
  • the enumeration module 32 is connected to the host 30 and configured to enumerate the USB port as a TF card device, and report the MOSD supporting the configuration parameter specifying function to the host 30 in the process of enumeration, and the configuration parameter specifying function
  • the specified configuration value is set to the Nth configuration parameter, and N is an integer greater than 1 and less than or equal to M;
  • the configuration detecting module 33 is connected to the host 30 and configured to detect a configuration descriptor obtained by the host 30 from the USB configuration reporting module 31.
  • the query instruction detection module 34 is connected to the host 30 and configured to detect a query instruction sent by the host 30.
  • the Microsoft Windows operating system version determining module 35 is connected to the configuration detecting module 33, and configured to: when the configuration detecting module 33 detects that the host 30 obtains the Nth configuration parameter from the USB configuration reporting module 31. Corresponding to the configuration descriptor, determining that the current version of the Microsoft Windows operating system is Win8; further connecting with the query instruction detecting module 34, and further configured to: when the configuration detecting module 33 detects the host 30 from the When the configuration descriptor corresponding to the first configuration parameter is obtained by the USB configuration reporting module 31, if the query instruction detecting module 34 detects only one query instruction sent by the host 30, the current Microsoft windowed operating system is determined. If the query instruction detection module 34 detects at least two query instructions issued by the host 30, the current version of the Microsoft Windows operating system is determined to be Vista or Win7.
  • the enumeration module 32 is further connected to the Microsoft windowed operating system version determining module 35, and is further configured to determine the Microsoft windowing operation when the Microsoft windowed operating system version determining module determines
  • the USB port is enumerated as an RNDIS device, or enumerated as a combination of an RNDIS device and a mass storage device.
  • the enumerating module is further configured to: when the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowing operating system is Win8, enumerate the USB port as an MBIM device, so that the host automatically Load the MBIM driver.
  • the enumerating module is further configured to: when the Microsoft Windows operating system version determining module determines that the version of the Microsoft windowing operating system is XP, enumerate the USB port as a virtual disk, or enumerate as a virtual disk. a combination with a TF card device;
  • the USB device further includes: a drive boot module configured to boot the remote network drive interface specification RNDIS driver using the driver installation file in the virtual optical disk.
  • the USB configuration reporting module 31, the enumeration module 32, the configuration detecting module 33, the query instruction detecting module 34, the Microsoft windowing operating system version determining module 35, and the driving guiding module in the USB device may be used in practical applications.
  • the central processing unit (CPU) in the device or a digital signal processor (DSP), or a Field-Programmable Gate Array (FPGA).
  • the USB device can automatically distinguish the specific version type of the current Windows operating system without any need to install any program on the host, so that the USB device is in different types of Windows operating systems. It is more flexible in use, simple in implementation, and operability. It effectively solves the compatibility problems caused by the method of installing different software on the host to detect the Windows operating system type in the prior art, and can automatically complete the USB network device. drive.
  • the INQUIRY instruction in the SCSI command between the USB device and the accessed host and the MOSD feature of the Win8 system enable the USB device to automatically distinguish the specific version type of the current Windows operating system, so that the USB device is different.
  • the type of Windows operating system is more flexible in use, simple in implementation, and operability, and solves the compatibility problem caused by the method of installing different software on the host to detect the type of the Windows operating system in the prior art.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明实施例公开了一种USB设备及其自动识别微软窗口化操作系统版本的方法。所述方法包括:USB设备接入主机;USB设备向主机上报支持配置参数指定功能的MOSD,所述配置参数指定功能指定配置值设为第N个配置参数;当USB设备检测到主机获取与第N个配置参数对应的配置描述符时,判定Windows操作系统的版本为Win8;当USB设备检测到主机获取与第一个配置参数对应的配置描述符时,如果USB设备只接收到一条主机下发的查询指令,则判定Windows操作系统的版本为XP,否则判定当前Windows操作系统的版本为Vista或Win7。本发明实施例不在主机上安装任何程序即可区分Windows操作系统版本。

Description

USB设备及其自动识别微软窗口化操作系统版本的方法 技术领域
本发明涉及通用串行总线(Universal Serial Bus, USB )技术领域, 尤 其涉及一种 USB设备及其自动识别微软窗口化操作系统版本的方法。 背景技术
USB技术是一种让主机和外设设备进行通讯的串行总线标准, 支持热 拔插和即插即用功能, 目前使用非常广泛。 伴随着 USB设备的迅速发展, 越来越多的 USB设备已经应用在各个操作系统上。 由于各操作系统的设计 不同, 对于 USB设备的支持情况也各有特色。 因此, USB设备如何区分当 前所插入的操作系统成为各设备厂商试图解决的一个问题。
目前已经存在的操作系统识别方法主要有两种: 一种操作系统识别方 法是预先在操作系统上安装程序, 在不同的操作系统上, 个人计算机
( Personal Computer, PC )通过发送不同的识别命令给 USB设备来确定操 作系统类型。 该操作系统识别方法的缺点是需要针对不同的操作系统指定 不同的安装程序, 并约定不同的识别命令, 并且不能对微软窗口化
( Windows )操作系统版本进行区分,只能区分出 Windows操作系统、 Linux 操作系统以及 MAC操作系统。 另一种操作系统识别方法是根据 USB特定 的描述符来判定操作系统类型, 以达到自动识别的目的。 该操作系统识别 方法的缺点是只能区分出 Window操作系统和非 Windows操作系统, 并不 能识别出 Windows操作系统的具体版本。 发明内容
本发明实施例的主要目的在于提供一种 USB设备及其自动识别微软窗 口化操作系统版本的方法, 可以在完全不需要在主机上安装任何程序进行 辅助的情况下, 自动区分 Windows操作系统的具体版本类型。
为达到所述目的, 本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种 USB设备自动识别微软窗口化操作系统版本 的方法, 所述方法包括:
USB设备接入主机, 向所述主机上报 M个配置参数, M为大于 1的整 数;
所述 USB设备枚举为快闪存储(Trans-Flash, TF )卡设备, 在枚举过 程中向所述主机上报支持配置参数指定功能的微软窗口化操作系统描述符 ( Microsoft OS Descriptors, MOSD ), 所述配置参数指定功能指定配置值设 为第 N个配置参数, N为大于 1而小于等于 M的整数;
当所述 USB设备检测到所述主机获取与该第 N个配置参数对应的配置 描述符时, 则判定当前微软窗口化操作系统的版本为 Win8;
当所述 USB设备检测到所述主机获取与第一个配置参数对应的配置描 述符时, 如果所述 USB设备只接收到一条所述主机下发的查询指令, 则判 定当前微软窗口化操作系统的版本为 XP, 如果所述 USB设备接收到所述 主机下发的至少两条查询指令则判定当前微软窗口化操作系统的版本为 Vista或 Win7。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 XP时, 将 USB端口枚举为虚拟光盘, 或枚举为虚拟光盘和 TF卡设备的组 合, 利用所述虚拟光盘中的驱动安装文件引导远程网络驱动接口规范 ( Remote Network Driver Interface Specification, RNDIS )马区动。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 Win8时, 向所述主机发送移动宽带接口模型 (Mobile Broadband Interface Model, MBIM )驱动加载信号, 使所述主机自动加载 MBIM驱动。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 Win8时,将所述 USB端口枚举为 RNDIS设备,或枚举为 RNDIS设备和大 容量存储设备的组合。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 Vista或 Win7时, 将所述 USB端口枚举为 RNDIS设备, 或枚举为 RNDIS 设备和大容量存储设备的组合。
本发明实施例还提供了一种 USB设备, 所述 USB设备包括:
USB配置上报模块, 配置为在 USB设备接入主机时, 向所述主机上报 M个配置参数, M为大于 1的整数; 所述 USB配置上报模块中存储有分别 与所述 M个配置参数对应的配置描述符;
枚举模块, 配置为将 USB端口枚举为 TF卡设备, 在枚举的过程中向 所述主机上报支持配置参数指定功能的微软窗口化操作系统描述符 MOSD,该配置参数指定功能指定配置值设为第 N个配置参数, N为大于 1 而小于等于 M的整数;
配置检测模块, 配置为检测所述主机从所述 USB配置上报模块中获取 的配置描述符;
查询指令检测模块, 配置为检测所述主机下发的查询指令;
微软窗口化操作系统版本判定模块, 配置为当所述配置检测模块检测 到所述主机从所述 USB配置上报模块中获取与该第 N个配置参数对应的配 置描述符时, 则判定当前微软窗口化操作系统的版本为 Win8; 还配置为当 所述配置检测模块检测到所述主机从所述 USB配置上报模块中获取与第一 个配置参数对应的配置描述符时, 如果所述查询指令检测模块只检测到所 述主机下发的一条查询指令, 则判定当前微软窗口化操作系统的版本为
XP, 如果所述查询指令检测模块检测到所述主机下发的至少两条查询指令 则判定当前微软窗口化操作系统的版本为 Vista或 Win7。
优选地, 所述枚举模块, 还配置为当所述微软窗口化操作系统版本判 定模块判定微软窗口化操作系统的版本为 XP时, 将 USB端口枚举为虚拟 光盘, 或枚举为虚拟光盘和 TF卡设备的组合;
所述 USB设备还包括: 驱动引导模块, 配置为利用所述虚拟光盘中的 驱动安装文件来引导远程网络驱动接口规范 RNDIS驱动。
优选地, 所述枚举模块, 还配置为当所述微软窗口化操作系统版本判 定模块判定微软窗口化操作系统的版本为 Win8 时, 将 USB 端口枚举为 MBIM设备, 使所述主机自动加载 MBIM驱动。
优选地, 所述枚举模块, 还配置为当所述微软窗口化操作系统版本判 定模块判定微软窗口化操作系统的版本为 Win8 时, 将 USB 端口枚举为 RNDIS设备, 或枚举为 RNDIS设备和大容量存储设备的组合。
优选地, 所述枚举模块, 还配置为当所述微软窗口化操作系统版本判 定模块判定微软窗口化操作系统的版本为 Vista或 Win7时,将 USB端口枚 举为 RNDIS设备, 或枚举为 RNDIS设备和大容量存储设备的组合。
与现有技术相比, 本发明实施例所述的 USB设备及其自动识别微软窗 口化操作系统版本的方法, 可以在完全不需要在主机上安装任何程序进行 辅助的情况下,使得 USB设备可以自动区分目前 Windows操作系统的具体 版本类型,使得 USB设备在针对不同类型的 Windows操作系统的使用上更 加灵活, 实施过程简便, 可操作性强, 有效解决了现有技术中需在主机上 安装不同软件来检测 Windows操作系统类型的方法带来的兼容性问题。 附图说明
图 1是本发明第一实施例的 USB设备自动识别微软窗口化操作系统版 本的方法的流程示意图;
图 2是本发明第二实施例的 USB设备自动识别微软窗口化操作系统版 本的方法的流程示意图;
图 3是本发明第一实施例的 USB设备的结构框图。 具体实施方式
目前主流的操作系统为 Windows操作系统, Windows操作系统包括 Windows XP、 VISTA、 Windows7 ( WIN7 ) 以及 Windows8 ( WIN8 ), 各种 操作系统在对 USB 设备的支持上都有自己的特性, 并且在高版本的 Windows操作系统上一般会增加新的 USB设备类型。 USB协议中规定: USB设备可以同时存在多套配置,但在某一时刻只是其中某一套配置生效。 当 USB设备插入主机后,主机会下发 USB请求来获取设备描述符、配置描 述符和接口描述符等信息, 如果 USB设备中存在多套配置, 需要在设备描 述符中填充具体的配置数目, 主机可以根据 USB上报的配置数目, 下发请 求来获取所有具体的配置参数。
Windows操作系统在 Windows XP、 Vista、 Windows7 ( WIN7 ) 以及 Windows8 ( WIN8 )上, 支持了一条特殊的扩展指令为 Windows操作系统 的 MOSD,保证安装有 Windows操作系统的主机允许 USB设备通过 MOSD 上报某些上报特定的信息。 其中在 WIN8 上有一条特殊的 MOSD 为 "ALTRCFG" , 可以让 WIN8选择某一套特定的配置。
另夕卜, 当 USB设备枚举为 TF卡时, 主机和 USB设备之间会通过小型 计算机系统接口 ( Small Computer System Interface, SCSI )指令进行交互。 在 SCSI指令中, 有一条查询( INQUIRY )指令, 是用来返回当前逻辑单元 ( Logic Unit, LU ) 的特定信息的。 所述主机可以为计算机, 所述的 USB设备可以为无线网卡、 无线数据 卡等。
本发明基于上述的 SCSI指令中的 INQUIRY指令以及 Win8的 MOSD 的特点, 提供了一种 USB设备自动识别微软窗口化操作系统版本的方法和 USB设备。
图 1是本发明第一实施例的 USB设备自动识别微软窗口化操作系统版 本的方法的流程示意图, 如图 1所示, 本发明第一实施例所述的 USB设备 自动识别微软窗口化操作系统版本的方法, 包括以下步骤:
步骤 11 : USB设备接入主机, 向所述主机上报 M个配置参数, M为 大于 1的整数;
步骤 12: 所述 USB设备枚举为 TF卡设备,在枚举过程中所述 USB设 备向所述主机上报支持配置参数指定功能的微软窗口化操作系统描述符 MOSD, 所述配置参数指定功能指定配置值设为第 N个配置参数, N为大 于 1而小于等于 M的整数;
步骤 13: 当所述 USB设备检测到所述主机从该 USB设备获取与该第 N个配置参数对应的配置描述符时, 则判定当前微软窗口化操作系统的版 本为 Win8;
步骤 14: 当所述 USB设备检测到所述主机从该 USB设备获取与第一 个配置参数对应的配置描述符时, 如果所述 USB设备只接收到一条所述主 机下发的查询指令, 则判定当前微软窗口化操作系统的版本为 XP, 如果所 述 USB设备接收到所述主机下发的至少两条查询指令则判定当前微软窗口 化操作系统的版本为 Vista或 Win7。
本发明第一实施例所述的 USB设备自动识别微软窗口化操作系统版本 的方法, 可以在完全不需要在主机上安装任何程序进行辅助的情况下, 使 得 USB设备可以自动区分目前 Windows操作系统的具体版本类型, 使得 USB设备在针对不同类型的 Windows操作系统的使用上更加灵活, 实施过 程简便, 可操作性强, 有效解决了现有技术中需在主机上安装不同软件来 检测 Windows操作系统类型的方法带来的兼容性问题。
举例来说, 本发明所述的 USB设备自动识别微软窗口化操作系统版本 的方法在具体实施时:
首先, USB设备接入到主机上, 向所述主机上报五个配置参数; 然后所述 USB设备将自身枚举为 TF卡设备, 在枚举的过程中会向所 述主机上报 MOSD 信息, 具体向所述主机上报支持 ALTRCFG 功能, ALTRCFG中指定配置值设为第二个配置参数;
当所述 USB设备检测到所述主机从该 USB设备获取与该第二个配置参 数对应的配置描述符时, 则判定所述主机上安装的 Windows操作系统的版 本为 Win8, 而当所述 USB设备检测到所述主机依旧默认从该 USB设备获 取与第一个配置参数对应的配置描述符时, 判定所述主机上安装的 Windows操作系统的版本非 Win8;
当所述 USB设备判定所述主机上安装的 Windows操作系统的版本非 Win8时, 如果所述 USB设备检测到所述主机仅向该 USB设备下发了一条 INQUIRY指令,则判定所述主机上安装的 Windows操作系统的版本为 XP, 如果所述 USB 设备检测到所述主机向该 USB 设备下发了至少两条 INQUIRY指令,则判定所述主机上安装的 Windows操作系统的版本为 Vista 或者 Win7。
现有的 Windows操作系统自身能够支持的 USB网络设备驱动即 RNDIS 网络驱动和 MBIM网络驱动。 其中, RNDIS驱动协议在目前主流的 XP、 Vista, Win7和 Win8上均支持。 但是 XP上需要提供驱动安装文件来引导 系统安装 RNDIS驱动, Vista、 Win7和 Win8可以自身加载 RNDIS驱动, 需要引导。 但是只有 Win8支持 MBIM驱动, MBIM时微软在 Win8上提出 的一种全新的移动宽带接口模型。
基于以上的特性, 本发明实施例所述的 USB设备自动识别微软窗口化 操作系统版本的方法,在识别了主机上安装的 Windows操作系统的版本后, 还可以根据具体的版本完成 USB网络设备驱动。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法, 还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 XP时, 将 USB端口枚举为虚拟光盘, 或枚举为虚拟光盘和 TF卡设备的组 合, 利用所述虚拟光盘中的驱动安装文件引导远程网络驱动接口规范 RNDIS驱动。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法, 还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 Win8时,向所述主机发送 MBIM驱动加载信号,使所述主机自动加载 MBIM 驱动。
优选地, 本发明实施例所述的 USB设备自动识别微软窗口化操作系统 版本的方法, 还包括: 当所述 USB设备判定微软窗口化操作系统的版本为 WIN8、 Vista或 Win7时, 将所述 USB端口枚举为 RNDIS设备, 或枚举为 RNDIS设备和大容量存储设备( mass storage ) 的组合。
本发明实施例所述的 USB设备自动识别微软窗口化操作系统版本的方 法,根据判定得到的 Windows操作系统版本而选择将 USB端口枚举为何种 类型, 可以自动完成 USB网络设备驱动。
图 2是本发明第二实施例的 USB设备自动识别微软窗口化操作系统版 本的方法的流程示意图; 如图 2所示, 本发明第二实施例所述的 USB设备 自动识别微软窗口化操作系统版本的方法, 包括:
步骤 201 : USB设备接入主机, 向所述主机上报 M个配置参数, M为 大于 1的整数; 步骤 202: 所述 USB设备枚举为 TF卡设备, 在枚举过程中所述 USB 设备向所述主机上报支持配置参数指定功能的 MOSD, 所述配置参数指定 功能指定配置值设为第 N个配置参数, N为大于 1而小于等于 M的整数; 步骤 203: 所述 USB设备判断所述主机是否从该 USB设备获取与该第 N 个配置参数对应的配置描述符, 如果是则执行步骤 204, 否则执行步骤 205;
步骤 204:所述 USB设备判定当前微软窗口化操作系统的版本为 Win8, 转至步骤 209;
步骤 205: 所述 USB设备判断其是否只接收到一条所述主机下发的查 询指令, 如果是则执行步骤 206, 否则执行步骤 207;
步骤 206: 所述 USB设备判定当前微软窗口化操作系统的版本为 XP, 转至步骤 208;
步骤 207: 所述 USB设备判定当前微软窗口化操作系统的版本为 Vista 或 Win7, 转至步骤 210;
步骤 208:将 USB端口枚举为虚拟光盘,或枚举为虚拟光盘和 TF卡设 备的组合, 利用所述虚拟光盘中的驱动安装文件来引导远程网络驱动接口 规范 RNDIS驱动, 结束当前操作;
步骤 209: 所述 USB设备向所述主机发送 MBIM驱动加载信号, 以使 得所述主机自动加载 MBIM驱动, 结束当前操作; 或者, 所述 USB设备将 所述 USB端口枚举为 RNDIS设备, 或枚举为 RNDIS设备和大容量存储设 备的组合, 结束当前操作;
步骤 210: 所述 USB设备将所述 USB端口枚举为 RNDIS设备, 或枚 举为 RNDIS设备和大容量存储设备的组合, 结束当前操作。
本发明第二实施例所述的 USB设备自动识别微软窗口化操作系统版本 的方法, 可以在完全不需要在主机上安装任何程序进行辅助的情况下, 使 得 USB设备可以自动区分目前 Windows操作系统的具体版本类型,还可以 根据具体的版本完成 USB网络设备驱动。
图 3是本发明第一实施例的 USB设备的结构框图; 如图 3所示, 本发 明实施例所述的 USB设备, 包括:
USB配置上报模块 31, 与主机 30连接, 配置为在 USB设备接入所述 主机 30时, 向所述主机 30上报 M个配置参数, M为大于 1的整数; 所述 USB配置上报模块 31 中存储有分别与所述 M个配置参数对应的配置描述 付;
枚举模块 32,与所述主机 30连接, 配置为将 USB端口枚举为 TF卡设 备, 在枚举的过程中向所述主机 30上报支持配置参数指定功能的 MOSD, 所述配置参数指定功能指定配置值设为第 N个配置参数, N为大于 1而小 于等于 M的整数;
配置检测模块 33, 与所述主机 30连接, 配置为检测所述主机 30从所 述 USB配置上报模块 31中获取的配置描述符;
查询指令检测模块 34, 与所述主机 30连接, 配置为检测所述主机 30 下发的查询指令;
微软窗口化操作系统版本判定模块 35, 与所述配置检测模块 33连接, 配置为当该配置检测模块 33检测到所述主机 30从所述 USB配置上报模块 31中获取与该第 N套配置参数对应的配置描述符时, 则判定当前微软窗口 化操作系统的版本为 Win8; 还与所述查询指令检测模块 34连接, 还配置 为当所述配置检测模块 33检测到所述主机 30从所述 USB配置上报模块 31 中获取与第一个配置参数对应的配置描述符时, 如果所述查询指令检测模 块 34只检测到所述主机 30下发的一条查询指令, 则判定当前微软窗口化 操作系统的版本为 XP, 如果所述查询指令检测模块 34检测到所述主机 30 下发的至少两条查询指令则判定当前微软窗口化操作系统的版本为 Vista或 Win7。
优选地, 如图 3所示, 所述枚举模块 32, 还与所述微软窗口化操作系 统版本判定模块 35连接, 还配置为当所述微软窗口化操作系统版本判定模 块判定微软窗口化操作系统的版本为 WIN8、 Vista或 Win7时, 将 USB端 口枚举为 RNDIS设备, 或枚举为 RNDIS设备和大容量存储设备的组合。
优选地, 所述枚举模块, 还配置为当所述微软窗口化操作系统版本判 定模块判定微软窗口化操作系统的版本为 Win8 时, 将 USB 端口枚举为 MBIM设备, 以使得所述主机自动加载 MBIM驱动。
优选地, 所述枚举模块, 还配置为当所述微软窗口化操作系统版本判 定模块判定微软窗口化操作系统的版本为 XP时, 将 USB端口枚举为虚拟 光盘, 或枚举为虚拟光盘和 TF卡设备的组合;
所述 USB设备还包括: 驱动引导模块, 配置为利用所述虚拟光盘中的 驱动安装文件引导远程网络驱动接口规范 RNDIS驱动。
其中, 所述 USB设备中的 USB配置上报模块 31、 枚举模块 32、 配置 检测模块 33、 查询指令检测模块 34、微软窗口化操作系统版本判定模块 35 和驱动引导模块在实际应用中, 均可由设备中的中央处理器 (Central Processing Unit, CPU ),或数字信号处理器( Digital Signal Processor, DSP ), 或可编程门阵列 (Field-Programmable Gate Array, FPGA ) 实现。
本发明实施例所述的 USB设备, 可以在完全不需要在主机上安装任何 程序进行辅助的情况下, 自动区分目前 Windows操作系统的具体版本类型, 使得 USB设备在针对不同类型的 Windows操作系统的使用上更加灵活,实 施过程简便, 可操作性强, 有效解决了现有技术中需在主机上安装不同软 件来检测 Windows操作系统类型的方法带来的兼容性问题, 并可以自动完 成 USB网络设备驱动。
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明所述原理的前提下, 还可以作出若干改 进和润饰, 这些改进和润饰也应视为本发明的保护范围。 工业实用性
本发明实施例通过 USB 设备和接入的主机之间的 SCSI 指令中的 INQUIRY指令以及 Win8系统的 MOSD的特点, 使得 USB设备可以自动 区分目前 Windows操作系统的具体版本类型,使得 USB设备在针对不同类 型的 Windows操作系统的使用上更加灵活, 实施过程简便, 可操作性强, 解决了现有技术中需在主机上安装不同软件来检测 Windows操作系统类型 的方法带来的兼容性问题。

Claims

权利要求书
1、 一种通用串行总线 USB设备自动识别微软窗口化操作系统版本的 方法, 所述方法包括:
USB设备接入主机, 向所述主机上报 M个配置参数, M为大于 1的整 数;
所述 USB设备枚举为快闪存储 TF卡设备, 在枚举过程中向所述主机 上报支持配置参数指定功能的微软窗口化操作系统描述符 MOSD, 所述配 置参数指定功能指定配置值设为第 N个配置参数, N为大于 1 而小于等于 M的整数;
当所述 USB设备检测到所述主机获取与该第 N个配置参数对应的配置 描述符时, 则判定当前微软窗口化操作系统的版本为 Win8;
当所述 USB设备检测到所述主机获取与第一个配置参数对应的配置描 述符时, 如果所述 USB设备只接收到一条所述主机下发的查询指令, 则判 定当前微软窗口化操作系统的版本为 XP, 如果所述 USB设备接收到所述 主机下发的至少两条查询指令则判定当前微软窗口化操作系统的版本为 Vista或 Win7。
2、 根据权利要求 1所述的 USB设备自动识别微软窗口化操作系统版 本的方法, 其中, 所述方法还包括: 当所述 USB设备判定微软窗口化操作 系统的版本为 XP时, 将 USB端口枚举为虚拟光盘, 或枚举为虚拟光盘和 TF卡设备的组合, 利用所述虚拟光盘中的驱动安装文件引导远程网络驱动 接口规范 RNDIS驱动。
3、 根据权利要求 2所述的 USB设备自动识别微软窗口化操作系统版 本的方法, 其中, 所述方法还包括: 当所述 USB设备判定微软窗口化操作 系统的版本为 Win8时, 向所述主机发送移动宽带接口模型 MBIM驱动加 载信号, 使所述主机自动加载 MBIM驱动。
4、 根据权利要求 2所述的 USB设备自动识别微软窗口化操作系统版 本的方法, 其中, 所述还包括: 当所述 USB设备判定微软窗口化操作系统 的版本为 Win8时,将所述 USB端口枚举为 RNDIS设备,或枚举为 RNDIS 设备和大容量存储设备的组合。
5、 根据权利要求 3或 4所述的 USB设备自动识别微软窗口化操作系 统版本的方法, 其中, 所述还包括: 当所述 USB设备判定微软窗口化操作 系统的版本为 Vista或 Win7时, 将所述 USB端口枚举为 RNDIS设备, 或 枚举为 RNDIS设备和大容量存储设备的组合。
6、 一种 USB设备, 所述 USB设备包括:
USB配置上报模块, 配置为在 USB设备接入主机时, 向所述主机上报 M个配置参数, M为大于 1的整数; 所述 USB配置上报模块中存储有分别 与所述 M个配置参数对应的配置描述符;
枚举模块, 配置为将 USB端口枚举为 TF卡设备, 在枚举的过程中向 所述主机上报支持配置参数指定功能的微软窗口化操作系统描述符 MOSD, 所述配置参数指定功能指定配置值设为第 N个配置参数, N为大 于 1而小于等于 M的整数;
配置检测模块, 配置为检测所述主机从所述 USB配置上报模块中获取 的配置描述符;
查询指令检测模块, 配置为检测所述主机下发的查询指令;
微软窗口化操作系统版本判定模块, 配置为当所述配置检测模块检测 到所述主机从所述 USB配置上报模块中获取与该第 N个配置参数对应的配 置描述符时, 则判定当前微软窗口化操作系统的版本为 Win8; 还配置为当 所述配置检测模块检测到所述主机从所述 USB配置上报模块中获取与第一 个配置参数对应的配置描述符时, 如果所述查询指令检测模块只检测到所 述主机下发的一条查询指令, 则判定当前微软窗口化操作系统的版本为 XP, 如果所述查询指令检测模块检测到所述主机下发的至少两条查询指令 则判定当前微软窗口化操作系统的版本为 Vista或 Win7。
7、 根据权利要求 6所述的 USB设备, 其中, 所述 USB设备还包括: 驱动引导模块;
所述枚举模块, 还配置为当所述微软窗口化操作系统版本判定模块判 定微软窗口化操作系统的版本为 XP时, 将 USB端口枚举为虚拟光盘, 或 枚举为虚拟光盘和 TF卡设备的组合;
所述驱动引导模块, 配置为利用所述虚拟光盘中的驱动安装文件引导 远程网络驱动接口规范 RNDIS驱动。
8、 根据权利要求 7所述的 USB设备, 其中, 所述枚举模块, 还配置 为当所述微软窗口化操作系统版本判定模块判定微软窗口化操作系统的版 本为 Win8时,将 USB端口枚举为 MBIM设备,使所述主机自动加载 MBIM 驱动。
9、 根据权利要求 7所述的 USB设备, 其中, 所述枚举模块, 还配置 为当所述微软窗口化操作系统版本判定模块判定微软窗口化操作系统的版 本为 Win8时, 将 USB端口枚举为 RNDIS设备, 或枚举为 RNDIS设备和 大容量存储设备的组合。
10、 根据权利要求 8或 9所述的 USB设备, 其中, 所述枚举模块, 还 配置为当所述微软窗口化操作系统版本判定模块判定微软窗口化操作系统 的版本为 Vista或 Win7时,将 USB端口枚举为 RNDIS设备,或枚举为 RNDIS 设备和大容量存储设备的组合。
PCT/CN2013/082227 2013-05-28 2013-08-23 Usb设备及其自动识别微软窗口化操作系统版本的方法 WO2013189432A2 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/893,607 US9501444B2 (en) 2013-05-28 2013-08-23 USB device and method thereof for automatically recognizing microsoft windowing operating system version
EP13807275.6A EP2990956B1 (en) 2013-05-28 2013-08-23 Usb device and method thereof for automatically recognizing microsoft windowing operating system version

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310203849.4 2013-05-28
CN201310203849.4A CN104182374B (zh) 2013-05-28 2013-05-28 Usb设备及其自动识别微软窗口化操作系统版本的方法

Publications (2)

Publication Number Publication Date
WO2013189432A2 true WO2013189432A2 (zh) 2013-12-27
WO2013189432A3 WO2013189432A3 (zh) 2014-04-24

Family

ID=49769572

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082227 WO2013189432A2 (zh) 2013-05-28 2013-08-23 Usb设备及其自动识别微软窗口化操作系统版本的方法

Country Status (4)

Country Link
US (1) US9501444B2 (zh)
EP (1) EP2990956B1 (zh)
CN (1) CN104182374B (zh)
WO (1) WO2013189432A2 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9819507B1 (en) * 2015-05-12 2017-11-14 Mbit Wireless, Inc. Mobile broadband management over plurality of media
US9992649B1 (en) 2016-08-23 2018-06-05 Mbit Wireless, Inc. Mobile broadband management
CN106383796B (zh) * 2016-10-18 2019-06-14 广州视睿电子科技有限公司 一种主机操作系统类型的识别方法及系统
CN109002403A (zh) * 2018-06-21 2018-12-14 深圳市炬力北方微电子有限公司 Usb移动设备、移动设备识别系统及识别方法
CN112506820B (zh) * 2020-12-03 2024-07-02 深圳微步信息股份有限公司 Usb端口硬件参数分析方法、装置、设备及存储介质

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005267603A (ja) * 2004-02-20 2005-09-29 Ricoh Co Ltd インストール制御方法、インストール制御プログラム及び記録媒体
US8171502B2 (en) * 2006-11-29 2012-05-01 Sony Ericsson Mobile Communications Ab Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
US7721016B2 (en) * 2007-02-12 2010-05-18 Seagate Technology Llc Method for using host controller to solicit a command failure from target device in order to initiate re-enumeration of the target device
US8661164B2 (en) * 2010-08-24 2014-02-25 Mediatek Inc. Method of USB device enumeration including detecting the operating system type of the USB host
CN101916238B (zh) * 2010-08-26 2012-01-25 华为终端有限公司 数据卡识别操作系统的方法、装置及通信系统
CN101957807B (zh) * 2010-09-16 2012-08-08 飞天诚信科技股份有限公司 USB设备识别主机Windows操作系统版本类型的方法
CN102955755B (zh) * 2011-08-23 2016-03-02 华为终端有限公司 数据卡与主机间通信异常的修复方法及数据卡
CN102375786B (zh) * 2011-10-18 2014-09-10 中兴通讯股份有限公司 Usb设备自动识别操作系统的方法及系统
GB2504696B (en) * 2012-08-06 2015-01-21 Nvidia Corp Modem installation
CN102890662B (zh) * 2012-10-19 2016-10-05 无锡海森诺科技有限公司 通过对usb hid设备进行二次枚举以识别主机操作系统的方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
None
See also references of EP2990956A4

Also Published As

Publication number Publication date
US20160124886A1 (en) 2016-05-05
WO2013189432A3 (zh) 2014-04-24
EP2990956A4 (en) 2016-04-13
US9501444B2 (en) 2016-11-22
EP2990956A2 (en) 2016-03-02
EP2990956B1 (en) 2017-08-16
CN104182374B (zh) 2018-09-28
CN104182374A (zh) 2014-12-03

Similar Documents

Publication Publication Date Title
US9778844B2 (en) Installation of operating system on host computer using virtual storage of BMC
TWI393009B (zh) 資料共享及傳輸之系統及方法
WO2013189432A2 (zh) Usb设备及其自动识别微软窗口化操作系统版本的方法
US20080276012A1 (en) Driver Loading via a PnP Device
WO2012100498A1 (zh) 一种usb设备的端口切换方法和系统
WO2013074106A1 (en) Method, apparatus and system for data deduplication
US20100235461A1 (en) Network device and method of sharing external storage device
US8732390B2 (en) Distribution with dynamic partitions
US20100180080A1 (en) External storage device having a self-contained security function
US8527667B2 (en) Apparatuses and methods for transferring data
US9304779B2 (en) Optimizing boot time of a storage system
US7590767B2 (en) Electronic apparatus, information processing system and method of controlling said apparatus
US8090927B2 (en) Method and system for executing applicatons, storage medium controller and storage device
RU2643481C2 (ru) Способ идентификации типа операционной системы и устройство USB
Nikkel NVM express drives and digital forensics
US20150234775A1 (en) Enabling file oriented access on storage devices
US8745282B2 (en) Concurrent response for device information during an initialization process for a storage device
US9436408B2 (en) Direct hinting for a memory device
TW201734800A (zh) 設定磁碟陣列的方法
EP2477120B1 (en) Method for processing device connection, combination device and host device
US8209452B2 (en) External device having a virtual storage device
US20140095788A1 (en) Method for virtualizing raid of computer system
TWI626543B (zh) 透過資料儲存裝置控制週邊裝置之方法與可控制週邊裝置的資料儲存裝置
WO2013113187A1 (zh) Usb设备的端口切换方法、系统和区分操作系统的方法
CN115729629A (zh) Usb设备的识别方法、终端设备及系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 14893607

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2013807275

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013807275

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13807275

Country of ref document: EP

Kind code of ref document: A2