WO2012100498A1 - 一种usb设备的端口切换方法和系统 - Google Patents

一种usb设备的端口切换方法和系统 Download PDF

Info

Publication number
WO2012100498A1
WO2012100498A1 PCT/CN2011/076523 CN2011076523W WO2012100498A1 WO 2012100498 A1 WO2012100498 A1 WO 2012100498A1 CN 2011076523 W CN2011076523 W CN 2011076523W WO 2012100498 A1 WO2012100498 A1 WO 2012100498A1
Authority
WO
WIPO (PCT)
Prior art keywords
mods
usb device
host
information
switching
Prior art date
Application number
PCT/CN2011/076523
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2012100498A1 publication Critical patent/WO2012100498A1/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/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/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4247Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus
    • G06F13/426Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus using an embedded synchronisation, e.g. Firewire bus, Fibre Channel bus, SSA bus

Definitions

  • the present invention relates to the field of computers, and in particular, to a port switching method and system for a universal serial bus (USB) device.
  • USB universal serial bus
  • USB device needs to be virtualized into a CD that contains the drivers and management software in normal mode (or just one of them). After the user executes the installer on this CD, the host switches the USB device to the normal operating mode by sending a specific command.
  • the common data card products generally use the above solution.
  • Manufacturers can agree on specific switching commands between the host software and the device firmware to realize the information transfer by virtue of the advantages of the host software and devices. For example, custom Small Computer System Interface (SCSI) commands, custom USB requests, etc.
  • SCSI Small Computer System Interface
  • the main object of the present invention is to provide a port switching method and system for a USB device, which enables the USB device to quickly switch to a normal working mode to improve the user experience.
  • a port switching method for a universal serial bus USB device comprising:
  • the USB device accesses the host
  • the first set of operating system descriptors MODS information is reported;
  • the host modifies the first set of MODS information to be the second set of MODS information and stores;
  • the USB device accesses the host again, the host stores the The second set of MODS information sends a switching command, and the USB device switches to the normal working mode accordingly.
  • the method of tampering is:
  • the second set of MODS information agreed with the USB device is saved in the location where the first set of MODS information is saved to completely cover the first set of MODS information.
  • the method further includes:
  • USB device When a USB device is connected to a host, it is enumerated as an optical disc device, or a combination of an optical disc device and other devices.
  • the USB device reports itself as a disc via a USB descriptor, or a combination of a disc and other devices.
  • the method further includes:
  • the host sends a first type of switching command; when the USB device receives the first type of switching command, it switches to the normal working mode.
  • a port switching system for a USB device comprising a storage module, a MODS switching command receiving module, and a switching module;
  • the storage module is configured to report a first set of MODS information when the USB device accesses the host; and the MODS switching command receiving module is configured to connect the USB device when the USB device is reconnected to the host Receiving a switching command from the host and notifying the switching module;
  • the switching module is configured to control the USB device to switch to a normal working mode according to the switching command.
  • the host is configured to receive the first set of MODS information and store it after being modified into the second set of MODS information; and, when the USB device accesses the host again, send a switching command according to the stored second set of MODS information.
  • the storage module is further configured to:
  • the enumeration is an optical disc device, or a combination of an optical disc device and other devices.
  • the second set of MODS information agreed with the USB device is saved in the location where the first set of MODS information is saved, to completely cover the first set of MODS information;
  • the storage module When the storage module performs the enumeration, it is used to:
  • the USB device is reported as a disc or a combination of a disc and other devices via a USB descriptor.
  • the system further includes an optical disc switching command receiving module, configured to: after the host installs the driver and the management software for the first time (or only installs one of them), receives a switching command sent by the host, and notifies the switching module;
  • the switching module is further configured to control the USB device to switch to a normal working mode according to the switching command.
  • the method and system of the present invention after installing the driver and management software on the host computer (or installing only one of them), if the USB device is re-connected to the computer, the computer will according to the stored second set of MODS information. Quickly send specific commands, allowing USB devices to quickly switch to normal operating mode, improving the user experience.
  • FIG. 1 is a system diagram of a port switching system of a USB device according to an embodiment of the present invention
  • 2 is a schematic flowchart of Embodiment 1 of the present invention
  • Embodiment 2 of the present invention is a schematic flowchart of Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of a port switching process of a USB device according to an embodiment of the present invention. detailed description
  • USB device switching port method and a corresponding USB device system can be provided, so that the USB device can automatically and quickly implement port switching on a computer on which the corresponding driver is installed. Further, this switching method does not require the vendor to provide specific host software as support, reducing the amount of random software by the manufacturer.
  • MODS Microsoft OS Descriptors, Microsoft Operating System Descriptors
  • USB device when a USB device is connected to a host, it is enumerated as an optical disk device, or a combination of an optical disk device and other devices. During the enumeration process, the USB device will also report the first set of MODS information, and the host operating system will store this information.
  • the first set of MODS information saved by the host is modified into a second set of MODS information by management software or other means.
  • the second set of MODS information is specific information previously agreed with the USB device.
  • the USB device can quickly switch the port and enumerate in the normal working mode.
  • a USB device system including: a storage module, configured to enumerate a USB device as an optical disk device (or a combination of an optical disk and other devices) when the USB device accesses the host, and provide The first set of MODS information is reported.
  • CD switch command receiving module used to install drivers and management software for the first time on the host After (or only one of them is installed), the switching command sent by the host program is received, and the switching command is called the first type switching command.
  • the MODS switching command receiving module is configured to receive a command automatically sent by the host operating system according to the stored second set of MODS information, and the switching command is referred to as a second type of switching command.
  • the switching module when the disc switching command receiving module receives the switching command, or the MODS switching command receiving module receives the switching command, switches the associated optical disc (or a combination of the optical disc and other devices) to the normal working mode.
  • FIG. 1 is a diagram of a port switching system of a USB device according to an embodiment of the present invention.
  • the system is composed of a storage module 101, an optical disk switching command receiving module 102, a MODS switching command receiving module 103, and a switching module 104.
  • the working module in the normal working mode may be further included, but it is not explicitly indicated in this embodiment.
  • the process shown in FIG. 2 describes the case where the user uses the USB device for the first time on a certain computer host.
  • the process shown in FIG. 2 includes the following steps:
  • Step 1 Connect the USB device to the host that needs to work, as shown by the number 201 in Figure 2.
  • This USB device may be a device that includes the functional modules in FIG.
  • the work host can be a personal computer or other device that supports a USB host controller, such as a netbook.
  • the operating system running on the host this embodiment uses Windows 7. In fact, other operating systems, such as windows xp, windows vista, etc., are also within the scope of the present invention.
  • Step 2 The USB device reports itself as a disc (or a combination of a disc and other devices) via a USB descriptor.
  • the first set of MODS information is reported at the same time, and the operating system of the computer saves the information in a specific location, ready for the next use. Operation The next time the system detects that a specific location has saved the MODS information, it will no longer request the MODS information from the USB device.
  • Step 3 As indicated by reference numeral 203 in FIG. 2, after the computer automatically saves the first set of MODS information in a specific location, the specific program in the optical disc starts to be executed, and the second set of MODS information agreed with the USB device is saved in the first The location of a set of MODS information is completely covered by the first set of MODS information. Thus, the next time the USB device is accessed again, the operating system will read the second set of MODS information from this particular location.
  • step 3 If the above step 3 is not executed, that is, the user does not run the specific program in the disc, the above-mentioned specific location will save the first set of MODS information. The next time the USB device is accessed again, the operating system will read the first set of MODS information.
  • Step 4 The host software sends a first type of switching command, as indicated by reference numeral 204 in FIG.
  • the USB device is still in the state of the optical disc (or the combination of the optical disc and other devices), and the saved second set of MODS information is valid only when the next USB device is accessed, and this does not work at this time, so by sending the first The class switching command causes the USB device to switch.
  • the host software that sends the first type of switching command may be an application, a driver, or another entity.
  • Step 5 When the USB device receives the first type of switching command, it automatically switches to the normal working mode. This is indicated by reference numeral 205 in FIG.
  • the normal operating mode may correspond to a composite device or other ports. In normal operation mode, management software may or may not be running on the host.
  • the process shown in FIG. 3 describes the case where the user uses the USB device again after performing the first embodiment or the same action as the key technology in the first embodiment. Includes the following steps:
  • Step 1 Connect the USB device to the host, as indicated by reference numeral 301 in FIG.
  • the work host can be a personal computer or other device that supports a USB host controller, such as a netbook.
  • the operating system running on the host for the sake of simplicity, this embodiment uses windows 7. In fact, other operating systems, such as Windows XP, Windows Vista, etc., are also within the scope of the present invention.
  • Step 2 As indicated by reference numeral 302 in Fig. 3, the USB device starts reporting the USB descriptor.
  • the USB descriptor at this time is the descriptor information of the optical disc (or a combination of the optical disc and other devices). Because it is still in the USB descriptor enumeration phase, the SCSI command has not yet started to interact, so the user does not see the disc (or a combination of the disc and other devices) from the host.
  • Step 3 The host operating system sends a second type of switching command according to the saved MODS information, where the switching command includes related content of the MODS information, as indicated by reference numeral 303 in FIG.
  • the second set of MODS information should be saved in the operating system. If the first set of MODS information is still stored in the operating system, it indicates that the implementation is not completed, and it needs to continue according to the first embodiment.
  • Step 4 After the USB device receives the second type of switching command, determine which set of MODS information is included in the second type of switching command. If the first set of MODS information is included, ignore it, continue to perform according to the first embodiment; if the second set of MODS information is included, the USB device automatically switches to the normal working mode, as shown in FIG. .
  • the normal operating mode may correspond to a composite device or other ports. In normal operation mode, management software may or may not be running on the host.
  • the operation of the port switching of the USB device of the present invention may represent the process shown in FIG. 4, and the process shown in FIG. 4 includes the following steps:
  • Step 410 When the USB device accesses the host, the first set of MODS information is reported.
  • Step 420 The host modifies the received first set of MODS information into a second set of MODS information and stores it.
  • the port switching technology of the USB device of the present invention after installing the driver and management software on the computer host (or installing only one of them), if the USB device is connected again When entering this computer, the computer will quickly send a specific command according to the stored second set of MODS information, so that the USB device can quickly switch to the normal working mode, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Description

一种 USB设备的端口切换方法和系统 技术领域
本发明涉及计算机领域, 具体涉及一种通用串行总线( Universal Serial Bus , USB )设备的端口切换方法和系统。 背景技术
基于 USB接口的终端产品, 很多都具有自动安装的功能(也称为自启 动功能或者零光盘功能)。 实际原理就是供用户安装的产品配套驱动和管理 软件(或者只需要其中之一), 不再需要通过随产品的物理光盘来提供, 而 是通过产品虚拟的光盘来提供。 要实现此功能, 需要 USB设备先虚拟成一 个光盘, 光盘中包含了正常模式下的驱动程序和管理软件 (或者只需要其 中之一)。 待用户执行此光盘上的安装程序后, 主机通过发送特定命令来让 上述 USB设备切换到正常工作模式。
例如, 常见的数据卡产品就普遍釆用上述方案, 厂商可以凭借主机软 件和设备均由自己开发的优势, 在主机软件和设备固件之间约定特定的切 换命令, 以实现信息的传递。 比如自定义小型计算机系统接口 (Small Computer System Interface , SCSI )命令, 自定义 USB请求等。
这些特定的命令, 都是由厂商自定义的, 必须由厂商自己提供的主机 软件才能发送。 在某些情况下, 可能厂商不愿意或者不能提供这类主机软 件, 这时上述方案就存在问题。 而且, 这种切换命令的下发, 往往比较费 时。 用户使用时, 关心的是正常工作模式, 其它状态时间太长, 会降低用 户体验。 发明内容
有鉴于此, 本发明的主要目的在于提供一种 USB设备的端口切换方法 和系统, 使 USB设备能够迅速切换到正常工作模式, 以提高用户体验。
为达到上述目的, 本发明的技术方案是这样实现的:
一种通用串行总线 USB设备的端口切换方法, 该方法包括:
USB设备接入主机时, 上报第一套操作系统描述符 MODS信息; 主机将收到的第一套 MODS信息修改为第二套 MODS信息并存储; USB设备再次接入主机时,主机根据存储的第二套 MODS信息发送切 换命令, USB设备据此切换到正常工作模式。
其中, 所述^ ί'爹改的方法为:
将与 USB设备事先约定的第二套 MODS信息保存在第一套 MODS信 息所保存的位置, 以完全覆盖第一套 MODS信息。
其中, 该方法还包括:
USB设备接入主机时, 枚举为光盘设备、 或者光盘设备与其它设备的 组合。
其中, 所述枚举的方法为:
USB设备通过 USB描述符将自身上报为光盘、或者光盘与其它设备的 组合。
其中, 该方法还包括:
主机发送第一类切换命令; 当所述 USB设备收到第一类切换命令时, 切换到正常工作模式。
一种 USB设备的端口切换系统, 该系统包括存储模块、 MODS切换命 令接收模块、 切换模块; 其中,
所述存储模块,用于在 USB设备接入主机时,上报第一套 MODS信息; 所述 MODS切换命令接收模块,用于在 USB设备再次接入主机时,接 收来自主机的切换命令, 并通知给切换模块;
所述切换模块, 用于根据所述切换命令控制 USB设备切换到正常工作 模式。
其中, 所述主机, 用于接收第一套 MODS 信息, 并在修改为第二套 MODS信息后存储; 以及, 在 USB设备再次接入主机时, 根据存储的第二 套 MODS信息发送切换命令。
其中, 所述存储模块还用于:
在 USB设备接入主机时, 枚举为光盘设备、 或者光盘设备与其它设备 的组合。
其中, 所述主机进行所述修改时, 用于:
将与 USB设备事先约定的第二套 MODS信息保存在第一套 MODS信 息所保存的位置, 以完全覆盖第一套 MODS信息;
所述存储模块进行所述枚举时, 用于:
通过 USB描述符将 USB设备上报为光盘或者光盘与其它设备的组合。 其中, 该系统还包括光盘切换命令接收模块, 用于: 在主机第一次安 装驱动程序和管理软件 (或者只安装其中之一)之后, 接收主机发送的切 换命令, 并通知给切换模块;
所述切换模块, 还用于根据所述切换命令控制 USB设备切换到正常工 作模式。
本发明方法和系统, 在计算机主机上安装了驱动程序和管理软件 (或 者只安装其中之一)之后, 如果将所述 USB设备再次接入此计算机, 则计 算机会根据存储的第二套 MODS信息快速发送特定命令,使得 USB设备迅 速切换到正常工作模式, 提高了用户体验。 附图说明
图 1为本发明实施例的 USB设备的端口切换系统图; 图 2为本发明实施例一的流程示意图;
图 3为本发明实施例二的流程示意图;
图 4为本发明实施例的 USB设备的端口切换流程简图。 具体实施方式
在实际应用中, 可以取消厂家提供主机软件与 USB设备之间约定命令 的发送, 尤其是在某些无法运行主机软件的场合。 为了降低成本, 同时提 高 USB设备的用户体验,可以提供一种 USB设备切换端口的方法以及相应 的 USB设备系统,使得所述 USB设备能在安装过相应驱动的计算机上自动 快速实现端口切换。 进一步地, 这种切换方法不需要厂商提供特定的主机 软件作为支持, 减少厂家随机软件量。
需要说明的是, 可以利用主机操作系统支持的 MODS ( Microsoft OS Descriptors, 微软操作系统描述符)作为技术支撑。
首先, USB设备接入主机时枚举为光盘设备, 或者光盘设备与其它设 备的组合。在枚举过程中, USB设备同时会上报第一套 MODS的相关信息, 主机操作系统会将此信息存储下来。
其次, 通过管理软件或者其它手段将主机保存的上述第一套 MODS信 息修改为第二套 MODS信息。 第二套 MODS信息为与 USB设备事先约定 的特定信息。
再次, 经过上述过程后, 若 USB设备再次接入此计算机, 主机操作系 统会根据存储的第二套 MODS信息自动发送相关切换命令。所述 USB设备 收到此命令后, 可以迅速切换端口, 枚举为正常工作模式。
为了支持上述操作得以实施, 还提供了一种 USB设备系统, 包括: 存储模块,用于在 USB设备接入主机时将 USB设备枚举为光盘设备(或 者光盘与其它设备的组合 ), 同时提供第一套 MODS信息的上报。
光盘切换命令接收模块, 用于在主机第一次安装驱动程序和管理软件 (或者只安装其中之一)之后, 接收主机程序发送的切换命令, 此切换命 令称为第一类切换命令。
MODS 切换命令接收模块, 用于接收主机操作系统根据存储的第二套 MODS信息所自动发送的命令, 此切换命令称为第二类切换命令。
切换模块, 当光盘切换命令接收模块收到切换命令, 或者 MODS切换 命令接收模块收到切换命令之后, 将所属光盘 (或者光盘与其它设备的组 合)切换到正常工作模式。
下面参照附图说明, 对本发明利用 MODS信息进行快速切换的步骤进 行详细说明。
参见图 1 , 图 1为本发明实施例的 USB设备的端口切换系统图, 该系 统由存储模块 101、 光盘切换命令接收模块 102、 MODS切换命令接收模块 103、 切换模块 104组成。 一般情况下, 还可以进一步包括正常工作模式下 的工作模块, 但本实施例中未明确标示。
实施例一
参见图 2,图 2所示流程描述的是用户在某台计算机主机上第一次使用 所述 USB设备的情况, 图 2所示流程包括以下步骤:
步骤一: 将 USB设备接入需要工作的主机中, 如图 2中的标号 201所 示。 此 USB设备, 可以是包含了附图 1中各功能模块的设备。 工作主机可 以是个人计算机, 也可以是其它支持 USB主控制器的其它设备, 例如上网 本等。 主机上运行的操作系统, 本实施例釆用 windows 7。 实际上, 其它操 作系统如 windows xp、 windows vista等操作系统均可, 也在本发明范围之 内。
步骤二: USB设备通过 USB描述符将自身上报为光盘(或者光盘与其 它设备的组合)。 在上报 USB描述符的过程中, 同时上报第一套 MODS信 息, 由计算机的操作系统将此信息保存在特定位置, 准备下次使用。 操作 系统下次如果检测到特定位置已经保存了 MODS信息,就不会再向 USB设 备要求 MODS信息。 如附图 2中的标号 202所示。
步骤三: 如图 2中的标号 203所示, 计算机将第一套 MODS信息自动 保存在特定位置后, 光盘里面的特定程序开始执行, 将与 USB设备事先约 定的第二套 MODS信息保存在第一套 MODS信息所保存的位置,完全覆盖 第一套 MODS信息。 这样, 下次 USB设备再次接入时, 操作系统从此特定 位置读取的将是第二套 MODS信息。
如果上述步骤三没有执行, 即用户没有运行光盘里面的特定程序, 上 述特定位置保存的将是第一套 MODS信息。下次 USB设备再次接入时,操 作系统读取的将是第一套 MODS信息。
步骤四: 主机软件发送第一类切换命令, 如图 2中的标号 204所示。 此时 USB设备还保持在光盘(或者光盘与其它设备的组合)状态, 所保存 的第二套 MODS信息只有在下次 USB设备接入时才有效,此时还没有起作 用, 所以通过发送第一类切换命令, 使所述 USB设备进行切换。
其中, 发送第一类切换命令的主机软件, 可以是应用程序, 也可以是 驱动程序, 或者是其它主体。
步骤五: 当所述 USB设备收到第一类切换命令时, 自动切换到正常工 作模式。 如图 2中的标号 205所示。 正常工作模式可能对应于复合设备, 也可能是其它端口。 正常工作模式下, 主机上可能运行有管理软件, 也可 能不需要。
实施例二
参见图 3 ,图 3所示流程描述的是用户在某台计算机主机上执行实施例 一或者与实施例一包含关键技术一样的动作之后, 再次使用所述 USB设备 的情况, 图 3所示流程包括以下步骤:
步骤一: 将所述 USB设备接入主机中, 如图 3中的标号 301所示。 此 主机上已经执行过实施例一或者执行了包含实施例一的关键技术的动作。 工作主机可以是个人计算机,也可以是其它支持 USB主控制器的其它设备, 例如上网本等。主机上运行的操作系统,为简单起见,本实施例釆用 windows 7。 实际上, 其它操作系统如 windows xp、 windows vista等操作系统均可, 也在本发明范围之内。
步骤二:如图 3中的标号 302所示,所述 USB设备开始上报 USB描述 符。 此时的 USB描述符是光盘(或者光盘与其它设备的组合) 的描述符信 息。 因为还处于 USB描述符枚举阶段, SCSI命令还没有开始交互, 所以用 户从主机上是看不到有光盘(或者光盘与其它设备的组合) 出现的。
步骤三: 主机操作系统根据保存的 MODS信息,发送第二类切换命令, 此切换命令中包含了 MODS信息的相关内容, 如图 3中的标号 303所示。
通过实施例一的相关过程, 操作系统中保存的应该是第二套 MODS信 息。 如果操作系统中保存的依然是第一套 MODS信息, 表明实施例一并没 有执行完成, 需要继续按照实施例一进行。
步骤四: 当所述 USB设备收到第二类切换命令之后, 判断此第二类切 换命令包含的是哪一套 MODS信息。如果包含的是第一套 MODS信息, 不 予理会, 继续按照实施例一执行; 如果包含的是第二套 MODS信息, 所述 USB设备自动切换到正常工作模式, 如图 3所示的标号 304。 正常工作模 式可能对应于复合设备, 也可能是其它端口。 正常工作模式下, 主机上可 能运行有管理软件, 也可能不需要。
结合上述系统图以及各实施例可见, 本发明 USB设备的端口切换的操 作思路可以表示如图 4所示的流程, 图 4所示流程包括以下步骤:
步骤 410: USB设备接入主机时, 上报第一套 MODS信息。
步骤 420: 主机将收到的第一套 MODS信息修改为第二套 MODS信息 并存储。 步骤 430: USB设备再次接入主机时, 主机根据存储的第二套 MODS 信息自动发送切换命令, USB设备据此切换到正常工作模式。
综上所述可见, 无论是方法还是系统, 本发明 USB设备的端口切换技 术, 在计算机主机上安装了驱动程序和管理软件 (或者只安装其中之一) 之后, 如果将所述 USB设备再次接入此计算机, 则计算机会根据存储的第 二套 MODS信息快速发送特定命令,使得 USB设备迅速切换到正常工作模 式, 提高了用户体验。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种通用串行总线 USB设备的端口切换方法, 该方法包括: USB设备接入主机时, 上报第一套操作系统描述符 MODS信息; 主机将收到的第一套 MODS信息修改为第二套 MODS信息并存储; USB设备再次接入主机时,主机根据存储的第二套 MODS信息发送切 换命令, USB设备据此切换到正常工作模式。
2、 根据权利要求 1所述的方法, 其中, 所述修改的方法为:
将与 USB设备事先约定的第二套 MODS信息保存在第一套 MODS信 息所保存的位置, 以完全覆盖第一套 MODS信息。
3、 根据权利要求 2所述的方法, 其中, 该方法还包括:
USB设备接入主机时, 枚举为光盘设备、 或者光盘设备与其它设备的 组合。
4、 根据权利要求 3所述的方法, 其中, 所述枚举的方法为:
USB设备通过 USB描述符将自身上报为光盘、或者光盘与其它设备的 组合。
5、 根据权利要求 1至 4任一项所述的方法, 其中, 该方法还包括: 主机发送第一类切换命令; 当所述 USB设备收到第一类切换命令时, 切换到正常工作模式。
6、 一种 USB设备的端口切换系统, 该系统包括存储模块、 MODS切 换命令接收模块、 切换模块; 其中,
所述存储模块,用于在 USB设备接入主机时,上报第一套 MODS信息; 所述 MODS切换命令接收模块,用于在 USB设备再次接入主机时,接 收来自主机的切换命令, 并通知给切换模块;
所述切换模块, 用于根据所述切换命令控制 USB设备切换到正常工作 模式。
7、 根据权利要求 6所述的系统, 其中,
所述主机, 用于接收第一套 MODS 信息, 并在修改为第二套 MODS 信息后存储;以及,在 USB设备再次接入主机时,根据存储的第二套 MODS 信息发送切换命令。
8、 根据权利要求 7所述的系统, 其中, 所述存储模块还用于: 在 USB设备接入主机时, 枚举为光盘设备、 或者光盘设备与其它设备 的组合。
9、 根据权利要求 8所述的系统, 其中,
所述主机进行所述修改时, 用于:
将与 USB设备事先约定的第二套 MODS信息保存在第一套 MODS信 息所保存的位置, 以完全覆盖第一套 MODS信息;
所述存储模块进行所述枚举时, 用于:
通过 USB描述符将 USB设备上报为光盘或者光盘与其它设备的组合。
10、 根据权利要求 6至 9任一项所述的系统, 其中,
该系统还包括光盘切换命令接收模块, 用于: 在主机第一次安装驱动 程序和管理软件(或者只安装其中之一)之后, 接收主机发送的切换命令, 并通知给切换模块;
所述切换模块, 还用于根据所述切换命令控制 USB设备切换到正常工 作模式。
PCT/CN2011/076523 2011-01-30 2011-06-28 一种usb设备的端口切换方法和系统 WO2012100498A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110033297.8 2011-01-30
CN 201110033297 CN102103555A (zh) 2011-01-30 2011-01-30 一种usb设备的端口切换方法和系统

Publications (1)

Publication Number Publication Date
WO2012100498A1 true WO2012100498A1 (zh) 2012-08-02

Family

ID=44156341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076523 WO2012100498A1 (zh) 2011-01-30 2011-06-28 一种usb设备的端口切换方法和系统

Country Status (2)

Country Link
CN (2) CN102103555A (zh)
WO (1) WO2012100498A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103555A (zh) * 2011-01-30 2011-06-22 中兴通讯股份有限公司 一种usb设备的端口切换方法和系统
WO2013113187A1 (zh) * 2012-01-30 2013-08-08 中兴通讯股份有限公司 Usb设备的端口切换方法、系统和区分操作系统的方法
CN102902518B (zh) 2012-08-17 2017-06-06 中兴通讯股份有限公司 一种有源usb设备及其工作模式的切换方法
CN102981981B (zh) 2012-11-20 2016-03-30 中兴通讯股份有限公司 Usb设备、通信系统及其工作模式切换方法
CN104239241B (zh) 2013-06-20 2018-09-11 华为终端有限公司 数据卡、数据卡切换方法及装置
CN105279110B (zh) * 2014-07-25 2018-07-27 南京中兴软件有限责任公司 一种usb设备识别主机系统的方法及usb设备
CN106557377A (zh) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 数据传输控制方法、主机设备、usb设备及系统
CN109074787B (zh) * 2016-06-28 2022-04-15 惠普发展公司,有限责任合伙企业 具有切换usb端口的活跃状态的提示的监视器
CN107678984A (zh) * 2017-09-26 2018-02-09 厦门市美亚柏科信息股份有限公司 Usb端口映射方法及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060059293A1 (en) * 2004-09-14 2006-03-16 Henry Wurzburg Universal serial bus switching hub
CN101452435A (zh) * 2008-12-12 2009-06-10 深圳华为通信技术有限公司 一种usb端口模式切换方法及终端
CN101477498A (zh) * 2009-01-13 2009-07-08 深圳华为通信技术有限公司 Usb设备切换端口的方法及设备
CN101609408A (zh) * 2009-06-19 2009-12-23 中兴通讯股份有限公司 一种实现终端设备自启动的方法及系统
CN102103555A (zh) * 2011-01-30 2011-06-22 中兴通讯股份有限公司 一种usb设备的端口切换方法和系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561785B (zh) * 2008-04-14 2012-01-04 凌阳创新科技股份有限公司 在usb装置上自动侦测操作系统的方法
CN101853142B (zh) * 2010-05-05 2014-06-04 四川九洲电器集团有限责任公司 一种带虚拟光驱的usb设备的识别方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060059293A1 (en) * 2004-09-14 2006-03-16 Henry Wurzburg Universal serial bus switching hub
CN101452435A (zh) * 2008-12-12 2009-06-10 深圳华为通信技术有限公司 一种usb端口模式切换方法及终端
CN101477498A (zh) * 2009-01-13 2009-07-08 深圳华为通信技术有限公司 Usb设备切换端口的方法及设备
CN101609408A (zh) * 2009-06-19 2009-12-23 中兴通讯股份有限公司 一种实现终端设备自启动的方法及系统
CN102103555A (zh) * 2011-01-30 2011-06-22 中兴通讯股份有限公司 一种usb设备的端口切换方法和系统

Also Published As

Publication number Publication date
CN102103555A (zh) 2011-06-22
CN102622313A (zh) 2012-08-01
CN102622313B (zh) 2015-08-12

Similar Documents

Publication Publication Date Title
WO2012100498A1 (zh) 一种usb设备的端口切换方法和系统
US10445258B1 (en) Method for creation of device drivers and device objects for peripheral devices
US8387043B2 (en) USB port shared control method in a plurality of virtual machines
US7739487B2 (en) Method for booting a host device from an MMC/SD device, a host device bootable from an MMC/SD device and an MMC/SD device method a host device may booted from
US8185759B1 (en) Methods and systems for interfacing bus powered devices with host devices providing limited power levels
CN107885679B (zh) 一种可实现自动运行的集成电路存储设备或方法
JP5733628B2 (ja) 仮想計算機を制御する計算機装置及び仮想計算機の制御方法
TWI477970B (zh) 電子裝置的模式切換方法與相關的電子裝置
CN101398792B (zh) 一种实现接口功能设备应用的方法及装置
WO2011003257A1 (zh) 通用串行总线数据卡自启动方法和系统
WO2012109886A1 (zh) 通过usb虚拟网卡接入无线网络的方法、系统及装置
JP2008287505A (ja) 情報処理装置およびレガシーエミュレーション処理停止制御方法
WO2013167077A2 (zh) Usb设备、通信系统及其工作模式切换方法
WO2014026547A1 (zh) 一种有源usb设备及其工作模式的切换方法
WO2012100504A1 (zh) 一种无线通讯方法、系统及无线通讯终端
US20100180080A1 (en) External storage device having a self-contained security function
EP2990956B1 (en) Usb device and method thereof for automatically recognizing microsoft windowing operating system version
US20120311257A1 (en) Distribution with dynamic partitions
WO2012097574A1 (zh) 一种无线通讯终端及其自启动的方法
WO2005116845A1 (ja) Usb機器
TW201112131A (en) Controllers, apparatuses, and methods for transferring data
RU2643481C2 (ru) Способ идентификации типа операционной системы и устройство USB
WO2015123234A1 (en) Enabling file oriented access on storage devices
WO2013113187A1 (zh) Usb设备的端口切换方法、系统和区分操作系统的方法
EP2477120B1 (en) Method for processing device connection, combination device and host device

Legal Events

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

Ref document number: 11856648

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11856648

Country of ref document: EP

Kind code of ref document: A1