WO2015131532A1 - 多功能usb终端设备的适配方法、装置及系统 - Google Patents

多功能usb终端设备的适配方法、装置及系统 Download PDF

Info

Publication number
WO2015131532A1
WO2015131532A1 PCT/CN2014/090642 CN2014090642W WO2015131532A1 WO 2015131532 A1 WO2015131532 A1 WO 2015131532A1 CN 2014090642 W CN2014090642 W CN 2014090642W WO 2015131532 A1 WO2015131532 A1 WO 2015131532A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
usb terminal
host
module
configuration information
Prior art date
Application number
PCT/CN2014/090642
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 WO2015131532A1 publication Critical patent/WO2015131532A1/zh

Links

Images

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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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 computers and communications, and in particular to a method, device and system for adapting a multifunctional universal serial bus (USB) terminal device.
  • USB universal serial bus
  • USB Gadget terminal device of any mode After the USB Gadget terminal device of any mode is linked to the host, it must go through the stage of being recognized by the host system and then installing the driver.
  • the USB Gadget terminal device changes mode it is necessary to restart the USB physical layer (PHY), and temporarily disconnect the host system and then resume the link again to allow the other host system to re-recognize the device.
  • This action of restarting the USB PHY requires a certain amount of time and it is easy to cause problems when the host system re-recognizes the terminal.
  • the host module will detect a sudden removal of the device and a temporary interruption of contact with the USB Gadget terminal.
  • the terminal device When the USB Gadget terminal device changes mode, when the mode changes from one mode to another mode, the terminal device provides new descriptors, configuration information, and the like to the host system.
  • the driver is installed according to the above method, although the USB terminal device connected through the USB Hub is physically the same for the host system, it is actually two different ports and two configurations, which are logically already It is two different USB terminal devices. In this way, the host system will inevitably reinstall the adapted driver for the USB Gadget terminal device that becomes the new mode. The process of driver installation has been added, introducing instability.
  • Preinstall it is time-consuming and space-consuming to prepare and pre-install multiple sets of drivers.
  • the host application layer needs to monitor the USB Gadget multi-function transformation at any time.
  • the USB PHY needs to be restarted during multi-function switching, and the host system needs to be installed multiple times when the multi-function USB Gadget is installed, the multi-function switching time is long, and the storage space consumption is large, and has not been effectively proposed yet. s solution.
  • the present invention provides a multi-function switching USB PHY that needs to be restarted when the multi-function switching is applied to the related art driving installation method, a multi-function USB Gadget is required to be installed in the host system, a multi-function switching time is long, and a storage space is expensive.
  • a method for adapting a multi-function universal serial bus USB terminal device comprising: a host module acquiring all endpoint endpoints supported by the USB terminal device reported by a USB terminal device currently connected to the host And the host module negotiates with the USB terminal device according to the configuration information of all the endpoints, determines an endpoint used by the USB terminal device, and according to the configuration information of the endpoint used by the USB terminal device, The USB terminal device establishes a channel pipe link; the host module respectively creates function modules corresponding to the respective endpoints used by the USB terminal device according to the established pipe link, and loads each of the functions in the host Module.
  • the host module establishes a pipe link with the USB terminal device according to the configuration information of the endpoint used by the USB terminal device, including: the host module according to the endpoint used by the USB terminal device Configuration information, establishing all pipe links with the USB terminal device.
  • the host module respectively creates function modules corresponding to the respective endpoints used by the USB terminal device according to the established pipe link, including: the host module acquiring function configuration information of each of the pipe links The host module respectively creates a corresponding function module according to the function configuration information of each of the pipe links.
  • the method further includes: configuring the endpoint of the USB terminal device and the host system Confirmation of the information, obtaining configuration information of all the endpoints supported by the USB terminal device.
  • the method further includes:
  • the host module sends a control command to the USB terminal device through a pipe link, and configures function configuration information of the USB terminal device;
  • the USB terminal device adjusts a kernel layer and a functional layer of the USB terminal device according to the function configuration information configured by the host module;
  • the host module adjusts a link configuration with the USB terminal device according to the function configuration information of the USB terminal device;
  • the host module loads and/or uninstalls a corresponding function module according to the function configuration information of the USB terminal device.
  • the method further includes:
  • the host module establishes a virtual connection with the USB terminal device through each of the function modules.
  • the method further includes:
  • the host module provides corresponding operation interfaces according to the functions of the respective function modules.
  • a connection device for a universal serial bus USB terminal device which is located at a host, and includes: an acquisition module configured to acquire the USB terminal device reported by a USB terminal device currently connected to the host Supporting configuration information of all the endpoints; the negotiation module is configured to negotiate with the USB terminal device according to the configuration information of all the endpoints to determine an endpoint used by the USB terminal device; the first establishing module, setting Establishing a channel pipe link with the USB terminal device according to the configuration information of each of the endpoints used by the USB terminal device; and creating a module, configured to separately create and use the USB terminal device according to the established pipe link Each of the endpoints corresponds to a functional module, and each of the functional modules is loaded in the host.
  • the first establishing module is configured to establish all pipe links with the USB terminal device
  • the creating module includes: an obtaining unit configured to acquire function configuration information of each of the pipe links; and a creating unit configured to respectively create a corresponding function module according to function configuration information of each of the pipe links.
  • the device further comprises: a second establishing module, configured to establish a virtual connection with the USB terminal device through each of the functional modules.
  • the device further comprises: an application module, configured to provide corresponding operation interfaces according to functions of the respective function modules.
  • an adaptation system of a multi-function universal serial bus USB terminal device including: a USB gadget Gadget module on a USB terminal device side, configured to report the USB terminal device to a host Supported configuration information for all endpoint endpoints; host-side host modules, including the devices described above.
  • the USB terminal device reports configuration information of all endpoints supported by the terminal device, and the host module creates a corresponding plurality of function modules according to the information, and can perform different functions with the USB terminal devices of different functions through different functional modules. It is not necessary to install the driver multiple times.
  • the USB terminal performs mode switching, the corresponding function is provided through different function modules.
  • the USB terminal device does not need to restart the USB PHY to improve the mode change speed and stability.
  • FIG. 1 is a schematic structural diagram of an adaptation system of a multifunctional USB terminal device according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an adaptation system of a multifunctional USB terminal device according to an alternative embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a kernel layer submodule of a host module according to an alternative embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for adapting a multifunctional USB terminal device according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for adapting a multifunctional USB terminal device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a module installation and initialization process in the first embodiment
  • Figure 7 is a flowchart showing the operation of the system of the second embodiment
  • Figure 8 is a flow chart showing the operation of the system of the third embodiment.
  • the main disadvantages of the multi-function USB Gadget and host adaptation in the related art are as follows: 1.
  • the USB PHY needs to be restarted when the multi-function switching is performed; 2.
  • the host system is adapted to the multi-function USB Gadget, the driver is installed multiple times; 3. Multifunction The conversion time is long; 4.
  • the host application layer needs to monitor the USB Gadget multi-function transformation at any time.
  • the embodiment of the invention provides a connection scheme of a USB terminal device, which provides an automatic adaptation system of a universal USB multi-function device, which not only can solve the shortcomings of the prior art well, but also can Introduce more flexible and flexible adaptation capabilities and solutions.
  • FIG. 1 is a schematic structural diagram of an adaptation system of a multifunctional USB terminal device according to an embodiment of the present invention.
  • the system mainly includes: a host module 101 on a host side and a USB widget on a USB terminal device side (Gadget). ) module 102.
  • the USB gadget (Gadget) module 102 on the USB terminal device side is configured to report configuration information of all endpoints supported by the USB terminal device to the host; the host module 101 on the host side is configured to be adapted to the USB terminal device.
  • the 101 host module and the 102USB Gadget module constitute a self-adaptive device for a separate and complete universal USB multifunction device.
  • the 101 host module By installing the 101 host module on the target host and using the USB terminal device having the 102 USB Gadget module, it is possible to construct a system capable of independent and autonomous multi-functional automatic adaptation without being affected by the host system.
  • the host module 101 only needs to be installed once in the target host, which greatly reduces the number of installations and installation time, and reduces the chance of error. In the subsequent use and operation of the system, all the main work only needs to automatically adjust and adapt the host module 101 on the host side to the USB Gadget module 102 on the USB terminal device side.
  • the host module 101 may include: a kernel layer submodule 101-1 and an application layer submodule on the host side. 101-2.
  • the application layer sub-module 101-2 may be included in the host module 101 or may not be included. When not included, the main functions of the system of the embodiment of the present invention are not affected.
  • Such a feature allows the system of the embodiments of the present invention to be used by some application layer software that existed prior to the present application. Provide users with good new and old product inheritance and compatibility.
  • the kernel layer sub-module 101-1 in the embodiment of the present invention is mainly configured to be adapted to the kernel layer sub-module 102-1 of the USB Gadget module 102, to provide an initial control path, and to manage data and control paths of different functional modes.
  • the kernel layer sub-module 101-1 may further include: a link management module 101-1-1 and a function module 101-1-2.
  • the link management module 101-1-1 and the function module 101-1-2 are provided with an internal coordination mechanism, and the link management module 101-1-1 creates a function module 101-1-2 according to the function configuration situation that needs to be implemented, and is responsible for the same
  • the function module 101-1-2 communicates and completes the data transfer function of the function module 101-1-2 with its external module (for example, the USB Gadget kernel layer sub-module 102-1).
  • the number of functional modules 101-1-2 may vary from 1 to N.
  • the value of N depends on the configuration of the functional port that needs to be adapted and supported.
  • the function module 101-1-2 on the host side can directly provide a function interface for the application layer submodule 101-2 (host).
  • the kernel layer sub-module 102-1 when the USB Gadget module 102 is connected to the host, the kernel layer sub-module 102-1 (USB Gadget) first confirms the configuration information of the Endpoint with the host system. The kernel layer sub-module 102-1 (USB Gadget) will report the number of Endpoints it supports at one time. Thereafter, the link management module 101-1-1 (host) is responsible for further pipe setup and management (as shown in section 103 of Figure 3). Subsequently, through negotiation between the link management module 101-1-1 (host) and the kernel layer submodule 102-1 (USB Gadget), according to the result of the negotiation, the appropriate function module 101-1-2 (host) is created and loaded. .
  • the system provided by the optional embodiment of the present invention enables the functional configuration of the kernel layer submodule 102-1 (USB Gadget) and the function configuration of the kernel layer submodule 101-1 (host) through the internal communication of the series. Match each other and coordinate work.
  • a virtual connection between the functional layer sub-module 102-2 (USB Gadget) and the application layer sub-module 101-2 (host) is generated as shown in part 104 of FIG. 2, thereby achieving normal operation of the entire apparatus.
  • the USB terminal device is not required to restart the USB PHY, and the mode change speed and stability are improved; 2.
  • the host system can be adapted to multiple types of USB by only one installation. Wireless data card products; 3.
  • One-time installation includes host-driven pre-installation, one-host-driven installation, and one application software installation. The number and complexity of installations are greatly reduced; 4.
  • the multi-function implementation of USB terminal devices does not require multiple developments and multiple configurations. Simplify the development of USB terminal devices; 5. Improve the compatibility and stability of the host module; 6.
  • the port can be fixed; 7. Make the implementation of a more flexible and free mode change solution feasible.
  • a method for adapting a multifunctional USB terminal device is provided, and the method can be implemented by the above system.
  • FIG. 4 is a flowchart of a method for adapting a multifunctional USB terminal device according to an embodiment of the present invention. As shown in FIG. 4, the method mainly includes the following steps:
  • Step S402 The host module acquires configuration information of all valid endpoints supported by the USB terminal device reported by the USB terminal device currently connected to the host.
  • Step S404 The host module negotiates with the USB terminal device according to the configuration information of all the endpoints, determines an endpoint used by the USB terminal device, and establishes a channel pipe link with the USB terminal device according to the configuration information of the endpoint used by the USB terminal device.
  • Step S406 The host module separately creates function modules corresponding to the respective endpoints used by the USB terminal device according to the established pipe link, and loads each of the function modules in the host.
  • the host module when performing step S404, may establish all pipes with the USB terminal device according to configuration information of each end point used by the USB terminal device. link.
  • step S406 when the host module respectively creates a function module corresponding to each of the endpoints according to the established pipe link, the pipe may be acquired first. Linking the function configuration information, and then creating a corresponding function module according to the function configuration information of each of the pipe links.
  • the USB terminal device and the host system perform confirmation of the configuration information of the endpoint, and obtain configuration information of all the endpoints supported by the USB terminal device.
  • the host module may send a control command to the USB terminal device by using a pipe link, and configure function configuration information of the USB terminal device;
  • the terminal device adjusts a kernel layer and a functional layer of the USB terminal device according to the function configuration information configured by the host module; and the host module adjusts the USB with the function configuration information of the USB terminal device.
  • a link configuration of the terminal device the host module loads and/or uninstalls the corresponding function module according to the function configuration information of the USB terminal device.
  • the Endpiont configuration and the function configuration supported by the USB terminal device have two trigger modes: a.
  • the configuration information is stored in the host module, and the host module performs the master configuration;
  • the configuration information is stored in the USB terminal device.
  • the configuration is dominated by the terminal device.
  • the host module may establish a virtual connection with the USB terminal device through each of the function modules.
  • the host module may follow each of the functional modules.
  • the function provides a corresponding various operation interfaces, for example, providing various operation interfaces for the user through the application layer sub-module 101-2 described above.
  • an apparatus for adapting the multifunctional USB terminal device is further provided, and the device is located in the host, and may be specifically included in the host module 101.
  • FIG. 5 is a schematic structural diagram of an apparatus for adapting a multi-function USB terminal device according to an embodiment of the present invention.
  • the device mainly includes: an obtaining module 52, configured to obtain a report of a USB terminal device currently connected to the host.
  • the configuration information of all endpoint endpoints supported by the USB terminal device; the negotiation module 58 is configured to negotiate with the USB terminal device according to the configuration information of all the endpoints to determine an endpoint used by the USB terminal device;
  • the establishing module 54 is configured to establish a channel pipe link with the USB terminal device according to the configuration information of each end point used by the USB terminal device, and the creating module 56 is configured to separately create and Each of the functional modules corresponding to the endpoints used by the USB terminal device loads each of the functional modules in the host.
  • the acquiring module 52, the first establishing module 54, and the creating module 56 correspond to the kernel layer submodule 101-1 on the host side.
  • the first establishing module 54 is configured to establish all the pipe links with the USB terminal device;
  • the creating module 56 may include: an acquiring unit configured to acquire each of the pipe links Function configuration information; creating a unit, configured to respectively create a corresponding function module according to function configuration information of each of the pipe links.
  • the apparatus may further include: a second establishing module, configured to establish a virtual connection with the USB terminal device through each of the function modules.
  • the apparatus may further include: an application module (corresponding to the application layer sub-module 101-2 described above), configured to provide corresponding operation interfaces according to functions of the respective function modules. .
  • the USB terminal device used has the characteristics of the 102 USB Gadget module in the system provided by the embodiment of the present invention; 2.
  • the USB terminal device is installed on the target host before being connected to the target host.
  • the USB terminal device is normally connected to the target host.
  • This embodiment describes the installation process of the host module 101 and the initialization process of the first connection establishment of the host module 101 and the USB Gadget module 102.
  • FIG. 6 is a schematic diagram of the initialization process of the partial installation of the host module 101 and the first connection establishment of the host module 101 and the USB Gadget module 102 in the embodiment.
  • the left area of the double dashed line in FIG. 6 represents the flow on the target host, and the area on the right side of the double dashed line represents the flow on the USB Gadget terminal.
  • the installation of the host module on the target host is performed first (201).
  • the 201 may include two processes, an installation of the kernel layer sub-module 202 (host) and an installation 203 (host) of the application layer sub-module.
  • the installation of the kernel layer submodule of the host is mainly to install a complete set of drivers.
  • the driver of the kernel layer submodule is installed (204)
  • the interface of the related function appears on the host, such as the com port and the network card port.
  • step 206 is performed, and an event occurs in which the kernel layer sub-module of the host waits for the USB Gadget module to be inserted into the host (208).
  • the application layer sub-module on the host side is independently installed (203) and initializes related parameters.
  • the application layer submodule can then detect the port status of the host's kernel layer submodule or receive a special notification event from the host's kernel layer submodule to sense that the USB Gadget module is linked to the host.
  • the application layer sub-module of the host is always in a state of waiting for a link (206), and the application layer sub-module of the host can also prepare to manage the functional device (210) enumerated by the kernel sub-module.
  • the USB module notifies the host system of the configuration, activates the (host) kernel layer sub-module in step 205, and proceeds to step 207, the kernel layer sub-module of the host is the same as the USB Gadget.
  • the module establishes a Pipe link, and in step 209, the USB Gadget module also establishes a Pipe link with the host kernel layer sub-module.
  • FIG. 7 is a flowchart of a working operation of the system in the embodiment.
  • the host module adapts the function according to the configuration of the USBGadget.
  • the host kernel module establishes a link to all the Pipes with the USB Gadget module.
  • the working process of the system in this embodiment mainly includes the following steps:
  • Step 301 The host kernel layer submodule sends a control command to the USB Gadget kernel layer submodule to obtain the USB Gadget Pipe configuration and function configuration information.
  • Step 302 The USB Gadget kernel layer sub-module feeds back the USB Gadget Pipe configuration and function configuration information.
  • Step 303 The host kernel layer sub-module creates each corresponding function module according to the feedback, and loads it in the host.
  • Step 304 Each functional module of the host kernel layer sub-module has a virtual link corresponding to the USB Gadget function layer sub-module.
  • the implementation of the various functions of the USB Gadget functional layer on the host is the responsibility of the host kernel layer sub-module.
  • Step 305 The host application layer sub-module provides various matching operation interfaces to the user according to the functions created by the kernel into sub-modules.
  • FIG. 8 is a flowchart of the operation of the system in the embodiment. Before executing the process shown in FIG. 8, the host kernel layer sub-module and the USB Gadget module only need to establish a Pipe0 link. As shown in FIG. 8, the working process of the system in this embodiment mainly includes the following steps:
  • step 401 the host module sends a control command to the USB Gadget kernel layer sub-module to set the USB Gadget function configuration.
  • the configuration information required by the host is stored in the application layer submodule 401-1 of the host module or the kernel submodule of the host module.
  • Step 402 The USB Gadget receives the command and parses the configuration information in the command.
  • the USB Gadget then adjusts the kernel layer submodules and function layer submodules of the USB Gadget. It is divided into the following two steps 403 and 404.
  • Step 403 is adjusted by the kernel layer sub-module of the USB Gadget module to ensure seamless linking of the USB Gadget and the host module.
  • Step 404 the function layer sub-module of the USB Gadget module is adjusted to complete the function configuration and transformation of the USB Gadget.
  • step 403 As execution of step 403 is completed, execution of step 405 is initiated.
  • Step 405 The link management module of the host kernel layer sub-module adjusts the link configuration according to a preset configuration to ensure that the host is seamlessly linked with the full Pipe of the USB Gadget.
  • step 404 When the execution of step 404 is completed and step 405 is completed, execution of step 406 is initiated.
  • Step 406 Each function module of the host kernel layer sub-module performs a load/unload function module according to a preset configuration to meet different functional requirements.
  • step 407 is performed.
  • step 407 the host application layer sub-module provides various matching operation interfaces to the user according to the preset function.
  • the host application layer in order to realize the flexible and free conversion of the USB multi-function device mode, provides a perfect solution platform for real seamless docking capability realization.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the USB terminal device reports configuration information of all the endpoints (endpoints) supported by the USB terminal device, and the host module creates corresponding function modules according to the information, and the different function modules can be used with Different functions of the USB terminal device are adapted, and the driver does not need to be installed multiple times.
  • the USB terminal performs mode switching, the corresponding function function is provided through different function modules, and the USB terminal device does not need to restart the USB PHY, and the lifting mode is adopted. Speed of change and stability.

Abstract

一种多功能USB终端设备的适配方法、装置及系统,其中该方法包括:主机模块获取当前连接到主机的USB终端设备上报的USB终端设备支持的所有endpoint的配置信息(S402);主机模块根据所有endpoint的配置信息,与USB终端设备进行协商,确定USB终端设备使用的endpoint,根据USB终端设备使用endpoint的配置信息,与USB终端设备建立通道pipe链接(S404);主机模块根据建立的pipe链接,分别创建与USB终端设备使用的各个endpoint对应的功能模块,并在主机中加载各个功能模块(S406)。采用上述技术方案,不需要多次安装驱动,提升模式变化速度和稳定性。

Description

多功能USB终端设备的适配方法、装置及系统 技术领域
本发明涉及计算机及通信领域,具体而言,涉及一种多功能通用串行总线(USB)终端设备的适配方法、装置及系统。
背景技术
在现有技术中,数据终端使用时首先要在主机上安装用户界面(User Interface,简称为UI)和驱动(PC Driver)等软件,这些软件统可视为一个用户定制的主机模块。其中,驱动采用预先安装(Preinstall)的方式先安装到主机系统,待通用串行总线(Universal Serial Bus,简称为USB)迷你程序(Gadget)终端设备同主机链接时,由主机系统按照一定的条件进行判断,再从预先安装在主机系统中的驱动中选择恰当的驱动,为处于某一特定模式的USB Gadget进行驱动安装(Install)或者更新(Update)。
任何一种模式的USB Gadget终端设备链接上主机后,都要经过被主机系统识别,之后进行驱动程序的安装的阶段。采用上述驱动安装方法,当USB Gadget终端设备进行模式变化时,需要重新启动USB物理层(PHY),暂时同主机系统断开连接后再次恢复链接才能让别主机系统重新识别该设备。这种重启USB PHY的动作,需要一定的间隔时间,并且容易在主机系统重新识别终端时发生问题。另一方面,由于USB PHY的重启,主机模块会检测到设备突然移除,并出现同USB Gadget终端联系暂时中断的情况。
而USB Gadget终端设备进行模式变化,从一个模式变化为另一个模式时,终端设备向主机系统提供了新的描述符、配置信息等。在相关技术中,如果按照上述方法安装驱动,对于主机系统而言,虽然通过USB Hub连接的USB终端设备物理上还是同一个,但实际上已经是不同两套端口、两台配置,逻辑上已经是两个不同的USB终端设备。这样主机系统必然会为变为新模式的USB Gadget终端设备重新安装适配的驱动。增加了驱动安装的流程,引入不稳定因素。另外在主机模块预安装(Preinstall)驱动时,要准备并预安装多套驱动,耗时耗空间。
并且,按照相关技术中采用的技术方案,主机应用层需要随时监测USB Gadget多功能变换情况。
针对相关技术的驱动安装方法存在的多功能切换时USB PHY需要重启、主机系统适配多功能USB Gadget时需要多次安装驱动、多功能切换时间长以及存储空间消耗大的问题,目前尚未提出有效的解决方案。
发明内容
针对相关技术的驱动安装方法存在的多功能切换时USB PHY需要重启、主机系统适配多功能USB Gadget时需要多次安装驱动、多功能切换时间长以及存储空间消耗大的问题,本发明提供了一种多功能USB终端设备的适配方法、装置及系统,以至少解决上述问题。
根据本发明的一个实施例,提供了一种多功能通用串行总线USB终端设备适配方法,包括:主机模块获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点endpoint的配置信息;所述主机模块根据所述所有endpoint的配置信息,与所述USB终端设备进行协商,确定所述USB终端设备使用的endpoint,根据所述USB终端设备使用的endpoint的配置信息,与所述USB终端设备建立通道pipe链接;所述主机模块根据建立的所述pipe链接,分别创建与所述USB终端设备使用的各个所述endpoint对应的功能模块,并在主机中加载各个所述功能模块。
优选地,所述主机模块根据所述USB终端设备使用的endpoint的配置信息,与所述USB终端设备建立通道(pipe)链接,包括:所述主机模块根据所述USB终端设备使用的所述endpoint的配置信息,建立与所述USB终端设备的所有pipe链接。
优选地,所述主机模块根据建立的所述pipe链接,分别创建与所述USB终端设备使用的各个所述endpoint对应的功能模块,包括:所述主机模块获取各个所述pipe链接的功能配置信息;所述主机模块根据各个所述pipe链接的功能配置信息,分别创建对应的功能模块。
优选地,在主机模块获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点endpoint的配置信息之前,所述方法还包括:所述USB终端设备与主机系统进行endpoint的配置信息的确认,得到所述USB终端设备支持的所有endpoint的配置信息。
优选地,在主机中加载各个所述功能模块之后,所述方法还包括:
所述主机模块通过pipe链接向所述USB终端设备发送控制命令,配置所述USB终端设备的功能配置信息;
所述USB终端设备根据所述主机模块配置的所述功能配置信息,对所述USB终端设备的内核层及功能层进行调整;
所述主机模块按照所述USB终端设备的功能配置信息,调整与所述USB终端设备的链接配置;
所述主机模块根据所述USB终端设备的功能配置信息,加载和/或卸载对应的功能模块。
优选地,在主机中加载各个所述功能模块之后,所述方法还包括:
所述主机模块通过各个所述功能模块与所述USB终端设备建立虚拟连接。
优选地,所述主机模块通过各个所述功能模块与所述USB终端设备建立虚拟连接之后,所述方法还包括:
所述主机模块按照各个所述功能模块的功能,提供对应的各种操作接口。
根据本发明的另一个实施例,提供了一种通用串行总线USB终端设备的连接装置,位于主机,包括:获取模块,设置为获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点(endpoint)的配置信息;协商模块,设置为根据所述所有endpoint的配置信息,与所述USB终端设备进行协商,确定所述USB终端设备使用的endpoint;第一建立模块,设置为根据所述USB终端设备使用的各个所述endpoint的配置信息,与所述USB终端设备建立通道pipe链接;创建模块,设置为根据建立的所述pipe链接,分别创建与所述USB终端设备使用的各个所述endpoint对应的功能模块,并在主机中加载各个所述功能模块。
优选地,所述第一建立模块设置为建立与所述USB终端设备的所有pipe链接;
所述创建模块包括:获取单元,设置为获取各个所述pipe链接的功能配置信息;创建单元,设置为根据各个所述pipe链接的功能配置信息,分别创建对应的功能模块。
优选地,所述装置还包括:第二建立模块,设置为通过各个所述功能模块与所述USB终端设备建立虚拟连接。
优选地,所述装置还包括:应用模块,设置为按照各个所述功能模块的功能,提供对应的各种操作接口。
根据本发明的再一个实施例,提供了一种多功能通用串行总线USB终端设备的适配系统,包括:USB终端设备侧的USB小工具Gadget模块,设置为向主机上报所述USB终端设备支持的所有端点endpoint的配置信息;主机侧的主机模块,包括以上所述的装置.
通过本发明,USB终端设备上报其支持的所有endpoint(端点)的配置信息,主机模块根据这些信息,创建对应的多个功能模块,通过不同的功能模块,可以与不同功能的USB终端设备进行适配,不需要多次安装驱动,在USB终端进行模式切换时,通过不同的功能模块提供对应的适配功能,USB终端设备中不需要USB PHY的重启,提升模式变化速度和稳定性。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的多功能USB终端设备的适配系统的结构示意图;
图2是根据本发明可选实施例的多功能USB终端设备的适配系统的结构示意图;
图3是根据本发明可选实施例的主机模块的内核层子模块的结构示意图;
图4是根据本发明实施例的多功能USB终端设备的适配方法的流程图;
图5是根据本发明实施例的多功能USB终端设备的适配装置的结构示意图;
图6是实施例一中的模块安装及初始化流程示意图;
图7是实施例二的系统工作流程图;
图8是实施例三的系统工作流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
针对相关技术中多功能USB Gadget和主机适配的主要几点不足:1.多功能切换时USB PHY需要重启;2.主机系统适配多功能USB Gadget时,多次安装驱动;3.多功能变换时间长;4.主机应用层需要随时监测USB Gadget多功能变换情况。本发明实施例提出了提供一种USB终端设备的连接方案,该方案提供了一种通用USB多功能设备的自动适配系统,该系统不仅能很好的解决现有技术存在的不足,还能引入更加灵活自由的适配能力和方案。
图1为根据本发明实施例的多功能USB终端设备的适配系统的结构示意图,如图1所示,该系统主要包括:主机侧的主机模块101和USB终端设备侧的USB小工具(Gadget)模块102。其中,USB终端设备侧的USB小工具(Gadget)模块102,设置为向主机上报所述USB终端设备支持的所有endpoint的配置信息;主机侧的主机模块101,设置为与USB终端设备进行适配、提供初始控制通路,管理不同功能模式的数据和控制通路,创建与USB终端设备使用的各个所述endpoint对应的功能模块,并将创建的各个功能模块加载到主机。
通过上述系统,101主机模块和102USB Gadget模块两大模块构成一个独立、完整的通用USB多功能设备的自动适配装置。通过在目标主机安装101主机模块,使用具备所述102USB Gadget模块的USB终端设备,即可构成一个不受主机系统影响,能够独立、自主进行多功能自动适配的系统。
其中主机模块101只需要在目标主机中安装一次,大大减少了安装次数、安装时间,减少了出错的机会。在系统后续的使用和运行中,全部主要工作只需要主机侧的主机模块101同USB终端设备侧的USB Gadget模块102内部自动调整适配即可。
图2为本发明可选实施例的多功能USB终端设备的适配系统的结构示意图,如图2所示,主机模块101可以包括:主机侧的内核层子模块101-1和应用层子模块101-2。其中,应用层子模块101-2作为可选模块,可以包含在主机模块101中,也可以不包含。不包含时,并不影响本发明实施例的所述系统的主要功能。这样的特性,可以使本发明实施例的所述系统也能被在本申请之前就存在的一些应用层软件所使用。为用户提供良好的新旧产品继承、兼容能力。
本发明实施例中的内核层子模块101-1主要设置为与USB Gadget模块102的内核层子模块102-1进行适配、提供初始控制通路,管理不同功能模式的数据和控制通路。为实现这些目的,如图3所示,内核层子模块101-1又可以包括:链接管理模块101-1-1和功能模块101-1-2。
链接管理模块101-1-1和功能模块101-1-2具备内部协调机制,链接管理模块101-1-1依据需要实现的功能配置情况,创建出功能模块101-1-2,并负责同功能模块101-1-2沟通和完成功能模块101-1-2同其外部模块(例如,USB Gadget内核层子模块102-1)的数据传递功能。
如图3所示,功能模块101-1-2数目不等,可以是从1~N。N的值取决于需要适配、支持的功能端口配置情况。主机侧的功能模块101-1-2可以直接为应用层子模块101-2(主机)提供功能接口。
在本发明可选实施例中,当USB Gadget模块102连接上主机后,其内核层子模块102-1(USB Gadget)首先同主机系统进行Endpoint的配置信息确认。内核层子模块102-1(USB Gadget)将一次上报全其支持的Endpoint数。之后,链接管理模块101-1-1(主机)负责进一步的Pipe建立和管理(如图3的103部分所示)。随后,通过链接管理模块101-1-1(主机)与内核层子模块102-1(USB Gadget)之间的协商,按照协商结果,合适功能模块101-1-2(主机)被创建、加载。
通过本发明可选实施例提供的所述系统通过这一系列的系统内部沟通,使得内核层子模块102-1(USB Gadget)的功能配置与内核层子模块101-1(主机)的功能配置相互匹配,协调工作。产生如图2的104部分所示,功能层子模块102-2(USB Gadget)同应用层子模块101-2(主机)之间的虚拟连接,从而实现整个装置的正常工作。
采用本发明上述系统,具有以下有益效果:1.无需USB终端设备进行USB PHY的重启,提升模式变化速度和稳定性;2.在主机系统只需进行一次安装即可适配多种类型的USB无线数据卡产品;3.一次安装包括主机驱动的预安装、一次主机驱动的安装,一次应用软件的安装。大大缩减了安装的次数和复杂度;4.USB终端设备多功能实现无需多次开发,多次配置。简化USB终端设备开发;5.提升了主机模块的兼容性和稳定性;6.端口可固定;7.让更加灵活、自由的模式变化方案的实施变为可行。
根据本发明实施例,提供了一种多功能USB终端设备的适配方法,该方法可以通过上述系统实现。
图4为根据本发明实施的多功能USB终端设备的适配方法的流程图,如图4所示,主要包括以下步骤:
步骤S402,主机模块获取当前连接到主机的USB终端设备上报的USB终端设备支持的所有有效endpoint的配置信息。
步骤S404,主机模块根据所有endpoint的配置信息,与USB终端设备进行协商,确定USB终端设备使用的endpoint,根据USB终端设备使用的endpoint的配置信息,与USB终端设备建立通道pipe链接。
步骤S406,主机模块根据建立的所述pipe链接,分别创建与USB终端设备使用的各个endpoint对应的功能模块,并在主机中加载各个所述功能模块。
在本发明实施例的一个可选实施方式中,在执行步骤S404时,所述主机模块可以根据所述USB终端设备使用的各个所述endpoint的配置信息,建立与所述USB终端设备的所有pipe链接。
在本发明实施例的一个可选实施方式中,在步骤S406中,所述主机模块根据建立的所述pipe链接,分别创建与各个所述endpoint对应的功能模块时,可以先获取各个所述pipe链接的功能配置信息,然后根据各个所述pipe链接的功能配置信息,分别创建对应的功能模块。
在本发明实施例的一个可选实施方式中,在执行步骤S402之前,所述USB终端设备与主机系统进行endpoint的配置信息的确认,得到所述USB终端设备支持的所有endpoint的配置信息。
在本发明实施例的一个可选实施方式中,在步骤S406之后,所述主机模块可以通过pipe链接向所述USB终端设备发送控制命令,配置所述USB终端设备的功能配置信息;所述USB终端设备根据所述主机模块配置的所述功能配置信息,对所述USB终端设备的内核层及功能层进行调整;所述主机模块按照所述USB终端设备的功能配置信息,调整与所述USB终端设备的链接配置;所述主机模块根据所述USB终端设备的功能配置信息,加载和/或卸载对应的功能模块。
在本发明实施例中,Endpiont配置以及USB终端设备支持的功能配置,有两种触发方式:a.配置信息存储在主机模块,由主机模块进行主导配置;B.配置信息存储在USB终端设备,由终端设备主导配置。
在本发明实施例的一个可选实施方式中,在主机中加载各个所述功能模块之后,所述主机模块可以通过各个所述功能模块与所述USB终端设备建立虚拟连接。
在本发明实施例的一个可选实施方式中,在所述主机模块通过各个所述功能模块与所述USB终端设备建立虚拟连接之后,所述主机模块可以按照各个所述功能模块的 功能,提供对应的各种操作接口,例如通过上述应用层子模块101-2为用户提供各种操作接口。
与上述USB终端设备的连接方法对应,根据本发明实施例,还提供一种多功能USB终端设备的适配装置,该装置位于主机,具体可以包括在主机模块101中。
图5为根据本发明实施例的多功能USB终端设备的适配装置的结构示意图,如图5所示,该装置主要包括:获取模块52,设置为获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点endpoint的配置信息;协商模块58,设置为根据所述所有endpoint的配置信息,与所述USB终端设备进行协商,确定所述USB终端设备使用的endpoint;第一建立模块54,设置为根据所述USB终端设备使用的各个所述endpoint的配置信息,与所述USB终端设备建立通道pipe链接;创建模块56,设置为根据建立的所述pipe链接,分别创建与USB终端设备使用的各个所述endpoint对应的功能模块,并在主机中加载各个所述功能模块。
其中,上述获取模块52、第一建立模块54和创建模块56相当于上述的主机侧的内核层子模块101-1。
在本发明可选实施例中,所述第一建立模块54设置为建立与所述USB终端设备的所有pipe链接;所述创建模块56可以包括:获取单元,设置为获取各个所述pipe链接的功能配置信息;创建单元,设置为根据各个所述pipe链接的功能配置信息,分别创建对应的功能模块。
在本发明可选实施例中,所述装置还可以包括:第二建立模块,设置为通过各个所述功能模块与所述USB终端设备建立虚拟连接。
在本发明可选实施例中,所述装置还可以包括:应用模块(相当于上述的应用层子模块101-2),设置为按照各个所述功能模块的功能,提供对应的各种操作接口。
下面结合图2和图3,通过具体实施例对本发明实施例提供的技术方案进行说明。
在下述实施例中,1.使用的USB终端设备具备并支持本发明实施例提供的所述系统中的102USB Gadget模块的特性;2.在USB终端设备连接到目标主机前,在目标主机上安装好本发明实施例的所述系统中的101主机模块部分;3.USB终端设备同目标主机正常连接。
实施例一
本实施例对主机模块101的安装及主机模块101和USB Gadget模块102首次建立链接的初始化过程进行描述。
图6为本实施例中主机模块101部分安装以及主机模块101和USB Gadget模块102首次建立链接的初始化过程的示意图。其中,图6中的双虚线的左边区域表示目标主机上的流程,双虚线右边的区域表示USB Gadget终端上的流程。
如图6所示,先进行目标主机上的主机模块的安装(201)。其中,201可以包括两个流程,内核层子模块202(主机)的安装和应用层子模块的安装203(主机)。主机的内核层子模块的安装主要是安装一套完整的驱动。在内核层子模块的驱动安装完后(204)主机上出现相关功能的接口,如com口,网卡口。之后,执行步骤206,主机的内核层子模块等待USB Gadget模块插入主机的事件发生(208)。
主机侧的应用层子模块独立的进行安装(203),并初始化相关参数。之后,应用层子模块可以检测主机的内核层子模块的端口状态,或者接收来自主机的内核层子模块的特殊通知事件,以此来感应USB Gadget模块同主机进行了链接。在USB Gadget模块同主机链接前,主机的应用层子模块一直处于等待链接的状态(206),并且,主机的应用层子模块还可以准备管理内核子模块枚举出的功能设备(210)。
如图6所示,USB Gadget模块同主机链接后,USB模块同主机系统通报配置情况,激活步骤205等待中的(主机)内核层子模块,进入步骤207,主机的内核层子模块同USB Gadget模块建立Pipe链接,同时步骤中209,USB Gadget模块也同主机内核层子模块建立了Pipe链接。
至此,本实施例中的模块安装和初始化阶段就算成功完成了。接下来可以按照下面实施例二和实施例三进行工作运行流程。
实施例二
图7为本实施例中系统的工作运行流程图,在本实施例中,主机模块按照USBGadget的配置来适配功能。
在流程开始前,主机内核模块同USB Gadget模块建立的是全部Pipe的链接。如图7所示,本实施例中系统的工作运行流程主要包括以下步骤:
步骤301,主机内核层子模块向USB Gadget内核层子模块发送控制命令,获取USB Gadget Pipe配置及功能配置信息。
步骤302,USB Gadget内核层子模块反馈USB Gadget Pipe配置及功能配置信息。
步骤303,主机内核层子模块依据反馈,创建出各个对应的功能模块,并在主机中加载。
步骤304,主机内核层子模块的各个功能模块,同USB Gadget功能层子模块发生对应的虚拟链接。USB Gadget功能层的各种功能在主机上的实现由主机内核层子模块负责。
步骤305,主机应用层子模块按照内核成子模块创建的功能,向用户提供各种相匹配的操作接口。
实施例三
本实施例中,主机模块主动来控制USB Gadget以获取主机模块需要的功能配置。图8为本实施例中系统的工作流程图,在执行图8所示的流程之前,主机内核层子模块与USB Gadget模块仅需建立Pipe0链接。如图8所示,本实施例中系统的工作运行流程主要包括以下步骤:
步骤401,主机模块向USB Gadget内核层子模块发送控制命令,设置USB Gadget功能配置。主机要求的配置信息,存储在主机模块的应用层子模块401-1或者主机模块的内核子模块。
步骤402,USB Gadget接收命令,解析出命令的中的配置信息。之后USB Gadget就分别对USB Gadget的内核层子模块和功能层子模块进行调整。分为如下两个步骤403和步骤404。
步骤403,由USB Gadget模块的内核层子模块进行调整,保证USB Gadget同主机模块的无缝链接。
步骤404,由USB Gadget模块的功能层子模块进行调整,完成USB Gadget的功能配置和变换。
紧接着步骤403,随着步骤403的执行完毕,会引发步骤405的执行。
步骤405,主机内核层子模块的链接管理模块按照预先设定的配置,调整链接配置,保证主机同USB Gadget的全Pipe无缝链接。
当步骤404的执行完毕和步骤405都完成后,会引发步骤406的执行。
步骤406,主机内核层子模块的各个功能模块按照预先设定的配置,适当的进行加载/卸载功能模块,满足不同的功能需求。
最终,在主机模块的各个模块都达到设定状态后,步骤407的实施条件就得以满足。于是,执行步骤407。
步骤407,主机应用层子模块按照预先设定的功能,向用户提供各种相匹配的操作接口。
综上,借助于本发明实施例的技术方案,为实现USB多功能设备模式灵活、自由变换,主机应用层真正无缝对接的能力实现提供了完美的方案平台。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
基于本发明实施例提供的上述技术方案,采用USB终端设备上报其支持的所有endpoint(端点)的配置信息,主机模块根据这些信息,创建对应的多个功能模块,通过不同的功能模块,可以与不同功能的USB终端设备进行适配,不需要多次安装驱动,在USB终端进行模式切换时,通过不同的功能模块提供对应的适配功能,USB终端设备中不需要USB PHY的重启,提升模式变化速度和稳定性。

Claims (12)

  1. 一种多功能通用串行总线USB终端设备适配方法,包括:
    主机模块获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点endpoint的配置信息;
    所述主机模块根据所述所有endpoint的配置信息,与所述USB终端设备进行协商,确定所述USB终端设备使用的endpoint,根据所述USB终端设备使用的endpoint的配置信息,与所述USB终端设备建立通道pipe链接;
    所述主机模块根据建立的所述pipe链接,分别创建与所述USB终端设备使用的各个所述endpoint对应的功能模块,并在主机中加载各个所述功能模块。
  2. 根据权利要求1所述的方法,其中,所述主机模块根据所述USB终端设备使用的endpoint的配置信息,与所述USB终端设备建立通道pipe链接,包括:所述主机模块根据所述USB终端设备使用的所述endpoint的配置信息,建立与所述USB终端设备的所有pipe链接。
  3. 根据权利要求2所述的方法,其中,所述主机模块根据建立的所述pipe链接,分别创建与所述USB终端设备使用的各个所述endpoint对应的功能模块,包括:
    所述主机模块获取各个所述pipe链接的功能配置信息;
    所述主机模块根据各个所述pipe链接的功能配置信息,分别创建对应的功能模块。
  4. 根据权利要求1所述的方法,其中,在主机模块获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点endpoint的配置信息之前,所述方法还包括:
    所述USB终端设备与主机系统进行endpoint的配置信息的确认,得到所述USB终端设备支持的所有endpoint的配置信息。
  5. 根据权利要求1至4中任一项所述的方法,其中,在主机中加载各个所述功能模块之后,所述方法还包括:
    所述主机模块通过pipe链接向所述USB终端设备发送控制命令,配置所述USB终端设备的功能配置信息;
    所述USB终端设备根据所述主机模块配置的所述功能配置信息,对所述USB终端设备的内核层及功能层进行调整;
    所述主机模块按照所述USB终端设备的功能配置信息,调整与所述USB终端设备的链接配置;
    所述主机模块根据所述USB终端设备的功能配置信息,加载和/或卸载对应的功能模块。
  6. 根据权利要求1至4中任一项所述的方法,其中,在主机中加载各个所述功能模块之后,所述方法还包括:
    所述主机模块通过各个所述功能模块与所述USB终端设备建立虚拟连接。
  7. 根据权利要求6所述的方法,其中,所述主机模块通过各个所述功能模块与所述USB终端设备建立虚拟连接之后,所述方法还包括:
    所述主机模块按照各个所述功能模块的功能,提供对应的各种操作接口。
  8. 一种通用串行总线USB终端设备的连接装置,位于主机,包括:
    获取模块,设置为获取当前连接到主机的USB终端设备上报的所述USB终端设备支持的所有端点endpoint的配置信息;
    协商模块,设置为根据所述所有endpoint的配置信息,与所述USB终端设备进行协商,确定所述USB终端设备使用的endpoint;
    第一建立模块,设置为根据所述USB终端设备使用的各个所述endpoint的配置信息,与所述USB终端设备建立通道pipe链接;
    创建模块,设置为根据建立的所述pipe链接,分别创建与所述USB终端设备使用的各个所述endpoint对应的功能模块,并在主机中加载各个所述功能模块。
  9. 根据权利要求8所述的装置,其中,
    所述第一建立模块设置为建立与所述USB终端设备的所有pipe链接;
    所述创建模块包括:
    获取单元,设置为获取各个所述pipe链接的功能配置信息;
    创建单元,设置为根据各个所述pipe链接的功能配置信息,分别创建对应的功能模块。
  10. 根据权利要求8或9所述的装置,其中,所述装置还包括:
    第二建立模块,设置为通过各个所述功能模块与所述USB终端设备建立虚拟连接。
  11. 根据权利要求10所述的装置,其中,所述装置还包括:
    应用模块,设置为按照各个所述功能模块的功能,提供对应的各种操作接口。
  12. 一种多功能通用串行总线USB终端设备的适配系统,包括:
    USB终端设备侧的USB小工具Gadget模块,设置为向主机上报所述USB终端设备支持的所有端点endpoint的配置信息;
    主机侧的主机模块,包括权利要求8至11中任一项所述的装置。
PCT/CN2014/090642 2014-09-26 2014-11-07 多功能usb终端设备的适配方法、装置及系统 WO2015131532A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410505785.8 2014-09-26
CN201410505785.8A CN104281542B (zh) 2014-09-26 2014-09-26 多功能usb终端设备的适配方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2015131532A1 true WO2015131532A1 (zh) 2015-09-11

Family

ID=52256434

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090642 WO2015131532A1 (zh) 2014-09-26 2014-11-07 多功能usb终端设备的适配方法、装置及系统

Country Status (2)

Country Link
CN (1) CN104281542B (zh)
WO (1) WO2015131532A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426644A (zh) * 2017-08-31 2019-03-05 西安中兴新软件有限责任公司 一种usb数据传输的速率调整方法及装置、设备
CN115442083A (zh) * 2022-08-08 2022-12-06 黄建邦 设备接入方法、数据交换方法、装置、设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281542B (zh) * 2014-09-26 2017-12-05 中兴通讯股份有限公司 多功能usb终端设备的适配方法、装置及系统
CN105573934B (zh) * 2015-12-11 2019-11-12 北京元心科技有限公司 运行多系统的从设备通过usb连接接入主设备的方法及装置
CN106412598A (zh) * 2016-09-13 2017-02-15 中山大学 基于cuda显卡编码的无线视频传输系统及其传输方法
CN109388598A (zh) * 2017-08-11 2019-02-26 航天信息股份有限公司 一种信息处理方法及通用串行总线usb集群服务器
CN109408418B (zh) * 2017-08-17 2022-03-25 深圳市中兴微电子技术有限公司 一种usb模式切换装置及方法、usb设备
CN108089999B (zh) * 2017-11-29 2021-05-25 郑州云海信息技术有限公司 一种多功能usb设备注册方法及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004348246A (ja) * 2003-05-20 2004-12-09 Seiko Epson Corp データ転送制御装置、電子機器及びデータ転送制御方法
US7526590B2 (en) * 2006-03-31 2009-04-28 Intel Corporation Systems and methods for remote pipe resource management in wireless adapters
CN101794231A (zh) * 2009-12-23 2010-08-04 宇龙计算机通信科技(深圳)有限公司 一种设备驱动加载装置及方法
CN101882116A (zh) * 2010-06-13 2010-11-10 中兴通讯股份有限公司 音频传输的实现方法及移动终端
CN102737003A (zh) * 2011-04-01 2012-10-17 中兴通讯股份有限公司 一种模拟usb设备的方法及装置
CN102843168A (zh) * 2011-06-23 2012-12-26 深圳雷柏科技股份有限公司 一对多2.4g无线电脑外设通讯装置及其传输方式
CN104281542A (zh) * 2014-09-26 2015-01-14 中兴通讯股份有限公司 多功能usb终端设备的适配方法、装置及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777032A (zh) * 2009-01-14 2010-07-14 华为终端有限公司 一种实现usb端点复用的方法和设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004348246A (ja) * 2003-05-20 2004-12-09 Seiko Epson Corp データ転送制御装置、電子機器及びデータ転送制御方法
US7526590B2 (en) * 2006-03-31 2009-04-28 Intel Corporation Systems and methods for remote pipe resource management in wireless adapters
CN101794231A (zh) * 2009-12-23 2010-08-04 宇龙计算机通信科技(深圳)有限公司 一种设备驱动加载装置及方法
CN101882116A (zh) * 2010-06-13 2010-11-10 中兴通讯股份有限公司 音频传输的实现方法及移动终端
CN102737003A (zh) * 2011-04-01 2012-10-17 中兴通讯股份有限公司 一种模拟usb设备的方法及装置
CN102843168A (zh) * 2011-06-23 2012-12-26 深圳雷柏科技股份有限公司 一对多2.4g无线电脑外设通讯装置及其传输方式
CN104281542A (zh) * 2014-09-26 2015-01-14 中兴通讯股份有限公司 多功能usb终端设备的适配方法、装置及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426644A (zh) * 2017-08-31 2019-03-05 西安中兴新软件有限责任公司 一种usb数据传输的速率调整方法及装置、设备
CN115442083A (zh) * 2022-08-08 2022-12-06 黄建邦 设备接入方法、数据交换方法、装置、设备及存储介质
CN115442083B (zh) * 2022-08-08 2023-08-25 黄建邦 设备接入方法、数据交换方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN104281542B (zh) 2017-12-05
CN104281542A (zh) 2015-01-14

Similar Documents

Publication Publication Date Title
WO2015131532A1 (zh) 多功能usb终端设备的适配方法、装置及系统
US10318443B2 (en) Computer device and configuration and management method of computer device
RU2696321C2 (ru) Контракты управления питанием для вспомогательных устройств
EP2503735A2 (en) Multi-service node management system, device and method
CN108170451B (zh) 一种服务器bmc控制bios版本升级的方法及系统
TWI598815B (zh) 用以供更新基本輸入輸出系統之橋接模組及其更新方法
US20210103271A1 (en) Electronic tool and method for copying a plurality of settings from a mechanical tool to another mechanical tool
WO2010000142A1 (zh) 一种分布式网管系统及其维护管理方法
WO2013167077A2 (zh) Usb设备、通信系统及其工作模式切换方法
WO2014101514A1 (zh) 获取服务器资源信息的方法、资源池管理系统和服务器
WO2016033941A1 (zh) Boot在线升级装置及方法
KR20170003541A (ko) 임베디드 컨트롤러를 사용하여 클래스 디바이스 인터페이스를 하나의 호스트 인터페이스와 통합하는 방법 및 장치
CN107247596B (zh) 开机方法、装置及电子设备
EP2354956A1 (en) Method for controlling network controller, program, and information processing apparatus
CN108932134B (zh) 服务器bios远程更新方法
US20150186317A1 (en) Method and apparatus for detecting the initiator/target orientation of a smart bridge
CN108108314B (zh) 交换器系统
TW201826130A (zh) 移動裝置外部控制器模組
WO2017049973A1 (zh) 数据传输控制方法、主机设备、usb设备及系统
US20110113177A1 (en) Server and update method thereof
CN113193981B (zh) 一种配置下发方法及装置、网络系统
US7962675B1 (en) Method and system for communicating with a host bus adapter
KR20120014268A (ko) 디스플레이 일체형 컴퓨터 및 그 제어방법
US7051093B1 (en) QNX operation system network auto configuration
WO2016033958A1 (zh) 自动适配多模式数据卡设备的方法、装置及系统

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: 14884509

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: 14884509

Country of ref document: EP

Kind code of ref document: A1