WO2018127029A1 - 一种usb驱动适配方法、装置及系统 - Google Patents
一种usb驱动适配方法、装置及系统 Download PDFInfo
- Publication number
- WO2018127029A1 WO2018127029A1 PCT/CN2017/120355 CN2017120355W WO2018127029A1 WO 2018127029 A1 WO2018127029 A1 WO 2018127029A1 CN 2017120355 W CN2017120355 W CN 2017120355W WO 2018127029 A1 WO2018127029 A1 WO 2018127029A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data format
- configuration
- usb device
- data
- usb
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
- H04L41/0809—Plug-and-play configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
Definitions
- This document relates to, but is not limited to, the field of computer technology, and in particular, to a USB driver adaptation method, device and system.
- USB universal serial bus
- FIG. 1 is a schematic diagram of a USB data transmission device.
- data passes through a host controller, reaches a hub, and is sent to a USB device via a port.
- the USB2.0 host controller driver is uniformly provided by Microsoft. After historical verification, the USB2.0 host controller driver does not have compatibility with other host controller drivers.
- the host controller driver of USB3.0 is developed based on the USB3.0 protocol specification. However, the host controller driver of USB3.0 is provided by each host controller hardware manufacturer, such as Intel, VIA, etc., so it will inevitably be Compatibility issue.
- Embodiments of the present invention are directed to providing a USB drive adaptation method, apparatus, and system.
- an embodiment of the present invention provides a USB driver adaptation method, where the method is used for a host controller host controller, and the method includes:
- converting the first data format to a second data format requests configuration from the USB device.
- the first data format is a default data format of the host controller
- the second data format is a data format compatible between the host controller and the USB device.
- the host controller further generates second indication information that converts the second data format into a first data format.
- the method further includes:
- the method further includes:
- the data transmitted to the USB device is converted into the second data format for transmission;
- the data sent by the receiving USB is converted into a first data format for reception.
- an embodiment of the present invention provides a USB driver adaptation apparatus, where the apparatus is used for a host controller, and the apparatus includes: a configuration module and a conversion module;
- the configuration module is set to
- the conversion module is set to
- the first data format is a default data format of the host controller
- the second data format is a data format compatible between the host controller and the USB device.
- the conversion module includes: a generation submodule and a request submodule; wherein
- the generating submodule is configured to: if the configuration fails, generate first indication information that converts the first data format into a second data format;
- the requesting submodule is configured to request the configuration of the USB device by converting the first data format into a second data format according to the first indication information.
- the conversion module is further set to
- the conversion module is further configured to
- the device further includes: a first transmission module and a second transmission module; wherein
- the first transmission module is configured to: when the data is sent to the USB device, if the de-interference information is received, the data transmitted by the USB device is converted into the second data format for transmission;
- the second transmission module is configured to convert the data sent by the receiving USB into a first data format for receiving when receiving data sent by the USB.
- an embodiment of the present invention provides a USB drive adaptation system, where the system includes: a configuration module, a conversion module, a first transmission module, and a second transmission module;
- the configuration module is set to
- the conversion module is set to
- the first transmission module is configured to
- the data transmitted by the USB device is converted into a second data format for transmission
- the second transmission module is configured to
- the data sent by the receiving USB is converted into a first data format for reception.
- An embodiment of the present invention provides a USB driver adaptation method, apparatus, and system, and after determining that a USB device is detected, requesting configuration from a USB device by using a first data format; if the configuration fails, converting the first data format to The second data format requests configuration from the USB device, avoiding driver incompatibility when data is transmitted.
- FIG. 1 is a schematic diagram of a USB data transmission device
- FIG. 2 is a schematic diagram of interaction of a USB data transmission device according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a USB driver adaptation method according to an embodiment of the present invention.
- FIG. 4 is a flowchart of acquiring the second request information by the host controller according to an embodiment of the present invention.
- FIG. 5 is a flowchart of a detailed method for USB driver adaptation according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of a USB driver adaptation apparatus according to an embodiment of the present invention.
- FIG. 7 is a structural block diagram of a conversion module according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram of a position of a first conversion module in a USB drive adaptation apparatus according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram showing a position of a second conversion module in a USB drive adaptation apparatus according to an embodiment of the present disclosure.
- FIG. 10 is a structural block diagram of a USB drive adaptation system according to an embodiment of the present invention.
- the USB drive adaptation device is located inside the computer, and the USB drive adaptation device is used for a host controller, and the USB drive adaptation device is mainly composed of a configuration module and a conversion module.
- the embodiment of the present invention determines that the USB device is detected, and uses the first data format to request configuration from the USB device; if the configuration fails, the first data format is converted to the second data format and the USB device is requested. Configuration to avoid driver incompatibility during data transfer.
- a USB driver adaptation method according to an embodiment of the present invention is provided.
- the method is used for a host controller, and the method includes:
- step S301 the USB device is detected.
- the host controller receives the access information sent by the hub (the Hub)
- the host controller detects the access of the USB device; wherein, the access information may be A high level message.
- the first data format is the default data format of the host controller. Therefore, the first data format may be data that is incompatible with the USB device. Format; optionally, the first data format may be a data format based on the USB 3.0 protocol specification.
- the second data format is a data format compatible between the host controller and the USB device; optionally, the second data format may be a data format based on the USB2.0 protocol specification.
- the configuration fails.
- the host controller does not receive the configuration response information returned by the USB device for the first data format within a preset time.
- the configuration fails, that is, the host controller requests the configuration by using the first data format to the USB device, the USB device is not compatible with the first data format, and the driver between the host controller and the USB device does not match. At this time, the terminal corresponding to the host controller cannot perform normal data transmission with the USB device.
- the host controller is configured to request the configuration by using the first data format, the USB device is compatible with the first data format, and the driver between the host controller and the USB device is compatible.
- the terminal corresponding to the host controller can perform normal data transmission with the USB device.
- step S302 if the configuration fails, converting the first data format to the second data format to request configuration from the USB device includes:
- S3022 Convert the first data format to a second data format according to the first indication information, and request configuration from the USB device.
- the host controller may further generate a restart instruction for restarting the host controller of the host controller; the purpose of restarting the host controller driver is to reset the driver of the host controller;
- the host controller may be restarted by using the generated restart command, so that the host controller driver is reset.
- the first data format may be configured according to the first indication information. Converting to a second data format requests configuration from the USB device.
- the host controller further generates second indication information that converts the second data format into a first data format.
- the method further includes:
- the terminal and device corresponding to the host controller may be transmitted when the wired data is transmitted in the first data format between the terminal corresponding to the host controller and the device.
- the transmission frequency of the wireless data transmission in the form of wireless transmission is very close, which is easy to cause interference. Therefore, in order to avoid signal interference between the wired data transmission and the wireless data transmission, if the configuration is successful, the method further includes:
- the data transmitted to the USB device is converted into the second data format for transmission;
- the de-interference information is used to eliminate data transmission interference caused by the frequency of the cable data transmission to the wireless data transmission frequency
- the de-interference information may be sent by the user to the host controller, and the process of sending the de-interference information may be displayed by using a terminal interface corresponding to the host controller;
- the data sent by the receiving USB is converted into a first data format for reception.
- the first indication information and the second indication information not only the first data format incompatible with the USB device is converted into the second data format compatible with the USB device, and the configuration is to be configured.
- the response information is converted into a first data format by the second data format, and the first indication information and the second indication information are also applicable to converting data transmitted to the USB device into a second data format, and the receiving The data sent by USB is converted into the first data grid.
- the embodiment provides a USB driver adaptation method, and after determining that the USB device is detected, requesting configuration from the USB device by using the first data format; if the configuration fails, converting the first data format to the second data format
- the USB device requests configuration, thereby avoiding driver incompatibility during data transmission.
- USB driver adaptation according to an embodiment of the present invention is shown, where the method includes:
- S503 Convert the first data format to a second data format according to the first indication information, and request configuration from the USB device.
- S504 Receive configuration response information returned by the USB device.
- S505 Convert the configuration response information into a first data format for receiving according to the second indication information.
- step S501 the USB device is detected.
- the host controller receives the access information sent by the hub (the Hub)
- the host controller detects the access of the USB device; wherein, the access information may be a high level information;
- the first data format is a data format compatible with the host controller, and the USB device may be incompatible data format.
- the first data format may be a data format based on a USB 3.0 protocol specification.
- step S501 for example, when the hub detects that the potential of the pull-up resistor signal line in the USB device rises, sending an access message to the host controller, the host controller detects the connection of the USB device. Then, the host controller requests configuration from the USB device according to a data format based on the USB3.0 protocol specification; wherein the access information may be a high level information.
- the second data format is a data format compatible between the host controller and the USB device
- the second data format may be a data format based on a USB 2.0 protocol specification.
- the configuration fails.
- the host controller does not receive the configuration response information returned by the USB device for the first data format within a preset time.
- the host controller If the configuration fails, the host controller requests the configuration of the USB device in the first data format, the USB device is not compatible with the first data format, and the driver between the host controller and the USB device does not match.
- the terminal corresponding to the host controller cannot perform normal data transmission with the USB device.
- the host controller When the configuration is successful, the host controller requests the configuration of the USB device in the first data format, the USB device is compatible with the first data format, and the driver between the host controller and the USB device is compatible.
- the terminal corresponding to the host controller can perform normal data transmission with the USB device.
- the host controller does not receive the USB device return configuration response information within the preset time 10S, and the host controller considers that the USB device is not compatible with the first data format, the host controller and the USB device.
- the drivers between the devices do not match, so the host controller generates first indication information that converts the first data format into a second data format, and generates a first data format to convert the second data format into a first data format.
- the host controller may further generate a restart instruction for restarting the host controller driver of the host controller.
- the purpose of restarting the host controller driver is to reset the driver of the host controller driver
- the host controller may be restarted by using the generated restart command, so that the host controller driver is reset.
- the first data format may be configured according to the first indication information. Converting to a second data format requests configuration from the USB device.
- the host controller exemplifies the USB 3.0 based on the first indication information when the host controller requests the configuration from the USB device according to the data format of the USB3.0 protocol specification.
- the data format of the protocol specification is converted to a data format based on the USB 2.0 protocol specification compatible with the USB device, and the configuration is requested from the USB device.
- the host controller converts the configuration response information into the first data format, so as to facilitate identification by the terminal corresponding to the host controller.
- the de-interference information is used to cancel the data transmission interference caused by the cable data transmission frequency to the wireless data transmission frequency
- the de-interference information may be sent by the user to the host controller, and the process of sending the de-interference information may be displayed by using a terminal interface corresponding to the host controller.
- step 506 when the user finds that the wired transmission is performed simultaneously with the wireless transmission, the user may manually select to send the host controller to cancel the wired data transmission frequency to interfere with the wireless data transmission frequency by means of human-computer interaction.
- De-interference information so that the host controller converts the data sent to the USB device into a data format based on the USB2.0 protocol specification according to the first indication information, thereby avoiding interference caused by the wired data transmission to the wireless data transmission.
- steps 506 and 507 it should be noted that steps 506 and 507 occur under the condition that the driver of the host controller is compatible with the drive of the USB.
- the host controller wants to avoid interference caused by wired data transmission to wireless data transmission, the user needs to discover that the wired data transmission and the wireless data transmission are simultaneously transmitted, and the wired data transmission to the wireless data transmission.
- the user chooses to send the host controller to remove interference information for eliminating the interference of the wired data transmission frequency to the wireless data transmission frequency; and if the host controller is to avoid the USB driver being incompatible, the host controller belongs to the host controller.
- the automated process can be completed without the user's participation.
- the first indication information and the second indication information not only the first data format incompatible with the USB device is converted into the second data format compatible with the USB device, and the configuration is to be configured.
- the response information is converted into a first data format by the second data format, and the first indication information and the second indication information are also applicable to converting data transmitted to the USB device into a second data format, and the receiving The data sent by USB is converted into the first data grid.
- the embodiment provides a detailed method for USB driver adaptation.
- the first data format is used to request configuration from the USB device. If the configuration fails, the first data format is converted to the second data.
- a USB driver adaptation device 60 includes: a configuration module 601 and a conversion module 602.
- the configuration module 601 is configured to
- the conversion module 602 is configured to
- the configuration module 601 detects the USB device.
- the configuration module 601 receives the access information sent by the hub, the configuration module 601 detects the connection of the USB device. Entering; wherein, the access information may be a high level information;
- the first data format is required to be that the first data format is a default data format of the configuration module 601. Therefore, the first data format may be incompatible with the USB device.
- Data Format
- the first data format may be a data format based on a USB 3.0 protocol specification.
- the second data format is a data format compatible between the host controller and the USB device;
- the second data format may be a data format based on a USB 2.0 protocol specification.
- the configuration fails.
- the conversion module 602 does not receive the configuration response information returned by the USB device for the first data format within a preset time.
- the configuration module 601 requests the configuration from the USB device by using the first data format, the USB device is not compatible with the first data format, and the configuration module 601 is connected to the USB device. The driver does not match. At this time, the terminal corresponding to the configuration module 601 cannot perform normal data transmission with the USB device.
- the configuration module 601 If the configuration is successful, that is, the configuration module 601 requests the configuration to the USB device by using the first data format, the USB device is compatible with the first data format, and the configuration module 601 is compatible with the driver between the USB devices.
- the terminal corresponding to the configuration module 601 can perform normal data transmission with the USB device.
- the second data format is a data format compatible between the configuration module 601 and the USB device;
- the second data format may be a data format based on a USB 2.0 protocol specification.
- the conversion module 602 includes: a generating submodule 6021 and a requesting submodule 6022; wherein
- the generating submodule 6021 is configured to: if the configuration fails, generate first indication information that converts the first data format into a second data format;
- the requesting sub-module 6022 is configured to request the configuration of the USB device by converting the first data format into a second data format according to the first indication information.
- the generating sub-module 6021 may further generate a restart instruction for restarting the host controller driver of the host controller;
- the purpose of restarting the host controller driver is to reset the driver of the host controller driver
- the generating submodule 6021 may restart the host controller by using the generated restart command, so that the driver of the host controller is reset.
- the requesting sub-module 6022 can request the configuration from the USB device by converting the first data format to the second data format according to the first indication information.
- the conversion module 602 is further configured to
- the conversion module 602 is further configured to
- the transmission frequency when the terminal corresponding to the device and the device are previously wired data transmission in the first data format may be the same as the terminal and device corresponding to the device.
- the transmission frequency is very close, which is easy to cause interference. Therefore, in order to avoid signal interference between the wired data transmission and the wireless data transmission, if the configuration is successful, the device further includes: the first transmission module 603 and a second transmission module 604; wherein
- the first transmission module 603 is configured to: when the data is sent to the USB device, if the de-interference information is received, the data transmitted by the USB device is converted into the second data format for transmission;
- the second transmission module 604 is configured to convert the data sent by the USB transmission into a first data format for receiving when the data sent by the USB is received.
- the de-interference information is used to cancel data transmission interference caused by the cable data transmission frequency to the wireless data transmission frequency
- the de-interference information may be sent by the user to the first transmission module 603, and the process of sending the de-interference information may be displayed by using a terminal interface corresponding to the first transmission module 603.
- the conversion module 602 is an upper layer conversion module or a lower layer conversion module; wherein the upper layer conversion module or the lower layer conversion module has the same function, and is used for data format conversion. Therefore, only one of the upper layer conversion module or the lower layer conversion module exists in the system;
- the data is transmitted from the terminal corresponding to the device to the USB device as an example.
- the upper layer conversion module receives the data, and according to the An indication information is converted from the first data format to the second data format, and then sent to the configuration module 601, and sent by the configuration module to the USB device; wherein the position of the upper layer conversion module in the device is as shown in the figure 8;
- the data is transmitted from the terminal corresponding to the device to the USB device as an example.
- the configuration module 601 first receives data, and then the The data is sent to the lower layer conversion module, and the lower layer conversion module converts the data from the first data format to the second data format according to the first indication information, and then sends the data to the USB device, where the lower layer conversion module is in the device.
- the position is shown in Figure 9;
- the first indication information and the second indication information not only the first data format incompatible with the USB device is converted into the second data format compatible with the USB device, and the configuration is to be configured.
- the response information is converted into a first data format by the second data format, and the first indication information and the second indication information are also applicable to converting data transmitted to the USB device into a second data format, and the receiving The data sent by USB is converted into the first data grid.
- the embodiment provides a USB driver adaptation device, and the configuration module 601 is configured to: after determining that the USB device is detected, requesting configuration from the USB device by using the first data format; and the converting module 602 is configured to fail when the configuration fails. And converting the first data format to the second data format to request configuration from the USB device, thereby avoiding driver incompatibility occurring during data transmission.
- the embodiment of the present invention further provides a USB drive adaptation system 11, as shown in FIG. 10, the system 11 includes: a configuration module 601, a conversion module 602, a first transmission module 603, and a second transmission module 604; among them,
- the configuration module 601 is configured to
- the conversion module 602 is configured to
- the first transmission module 603 is configured to
- the data transmitted by the USB device is converted into a second data format for transmission
- the second transmission module 604 is configured to
- the data sent by the receiving USB is converted into a first data format for reception.
- the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the method described in the foregoing embodiments.
- Computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules, or other data. , removable and non-removable media.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
- communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media.
- a modulated data signal such as a carrier wave or other transport mechanism
- the invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the program diagrams and/or block diagrams, and combinations and/or combinations of flowcharts and/or block diagrams can be implemented by computer program instructions.
- Processors that provide such computer program instructions to a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device are susceptible to generating a machine that is executed by a processor or other programmable data processing device.
- These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computing and readable memory produce an article of manufacture comprising the instruction device.
- the instruction means implements the functions specified in one or more blocks of the flow or processes and/or block diagrams in the flowchart.
- These computer program instructions can also be loaded on a computer or other programmable processing device such that instructions executed on a computer or other programmable device are provided for implementation in a flow or a block diagram of a flow or a block diagram or The steps of the function specified in multiple boxes.
- the above embodiment can avoid driver incompatibility when data is transmitted.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Systems (AREA)
Abstract
一种USB驱动适配方法、装置及系统,所述方法包括:确定检测到USB设备后,采用第一数据格式向USB设备请求配置(S301,S501);如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置(S302)。
Description
本文涉及但不限于计算机技术领域,尤其涉及一种USB驱动适配方法、装置及系统。
随着数据传输方式的不断革新,电脑上通用串行总线(USB,Universal Serial Bus)数据传输协议由USB2.0版本逐渐向USB3.0版本过渡。
图1为USB数据传输装置示意图,当数据从计算机向USB设备传输的过程中,数据经过主控制器(host controller),到达集线器(Hub),经端口发送给USB设备。但是,在该USB数据传输系统中,我们发现USB2.0的host controller驱动是由微软统一提供的,经过历史的检验,USB2.0的host controller驱动不存在与其他host controller驱动不兼容的问题,而USB3.0的host controller驱动虽然都是基于USB3.0协议规范开发的,但是目前USB3.0的host controller驱动是由各个host controller硬件厂商自己提供的,例如Intel、威盛等,所以难免会有兼容性问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例期望提供一种USB驱动适配方法、装置及系统。
本发明实施例是这样实现的:
第一方面,本发明实施例提供了一种USB驱动适配方法,所述方法用于主控制器host controller,所述方法包括:
确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
在上述方案中,所述第一数据格式为所述host controller默认的数据格式;
所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式。
在上述方案中,如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置,包括:
如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;
根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
在上述方案中,如果配置失败,所述host controller还生成将所述第二数据格式转换为第一数据格式的第二指示信息。
相应地,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置之后,所述方法还包括:
接收所述USB设备返回的配置响应信息;
根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收。
在上述方案中,如果配置成功,所述方法还包括:
向USB设备发送数据时,如果接收到去干扰信息,则将向USB设备传输的数据转换为第二数据格式进行发送;
接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
第二方面,本发明实施例提供了一种USB驱动适配装置,所述装置用于host controller,所述装置包括:配置模块及转换模块;其中,
所述配置模块,设置为
确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
所述转换模块,设置为
当配置失败时,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
在上述方案中,所述第一数据格式为所述host controller默认的数据格式;
所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式。
在上述方案中,所述转换模块包括:生成子模块及请求子模块;其中,
所述生成子模块,设置为如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;
所述请求子模块,设置为根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
在上述方案中,如果配置失败,所述转换模块,还设置为
如果配置失败,生成将所述第二数据格式转换为第一数据格式的第二指示信息;
相应地,所述转换模块,还设置为
接收所述USB设备返回的配置响应信息;
以及,根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收。
在上述方案中,如果配置成功,所述装置还包括:第一传输模块及第二传输模块;其中,
所述第一传输模块,设置为向USB设备发送数据时,如果接收到去干扰信息,将USB设备传输的数据转换为第二数据格式进行发送;
所述第二传输模块,设置为接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
第三方面,本发明实施例提供了一种USB驱动适配系统,所述系统包括:配置模块、转换模块、第一传输模块及第二传输模块;其中,
所述配置模块,设置为
确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
所述转换模块,设置为
如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;
以及,根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置;
所述第一传输模块,设置为
向USB设备发送数据时,如果接收到去干扰信息,将USB设备传输的数据转换为第二数据格式进行发送;
所述第二传输模块,设置为
接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
本发明实施例提供了一种USB驱动适配方法、装置及系统,确定检测到USB设备后,采用第一数据格式向USB设备请求配置;如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置,避免了数据传输时驱动不兼容。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为一种USB数据传输装置示意图;
图2为本发明实施例提供的一种USB数据传输装置的交互示意图;
图3为本发明实施例提供的一种USB驱动适配方法流程图;
图4为本发明实施例提供的一种所述host controller获取第二请求信息的流程图;
图5为本发明实施例提供的一种USB驱动适配的详细方法的流程图;
图6为本发明实施例提供的一种USB驱动适配装置的结构框图;
图7为本发明实施例提供的一种转换模块的结构框图;
图8为本发明实施例提供的第一种转换模块在USB驱动适配装置中的位置示意图;
图9为本发明实施例提供的第二种转换模块在USB驱动适配装置中的位置示意图;
图10为本发明实施例提供的一种USB驱动适配系统的结构框图。
下面将结合本发明实施例中的附图,对发明实施例中的技术方案进行清楚、完整地描述。
参见图2,其示出了本发明实施例提供的一种USB驱动适配装置与计算机和USB设备之间的关系,可以理解的,该示意图仅用于说明本发明实施例,并不对本发明实施例进行任何的具体限定。所述USB驱动适配装置位于计算机内部,所述USB驱动适配装置用于host controller,所述USB驱动适配装置主要由配置模块和转换模块组成。
基于上述示意图,本发明实施例确定检测到USB设备后,采用第一数据格式向USB设备请求配置;如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置,从而避免了数据传输时驱动不兼容。
参见图3,其示出了本发明实施例提供的一种USB驱动适配方法,所述方法用于host controller,所述方法包括:
S301:确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
S302:如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于步骤S301,检测USB设备,可选地,当所述host controller接收到集线器(Hub)发送的接入信息时,所述host controller检测到USB设备的接入;其中,接入信息,可以是一个高电平信息。
对于步骤S301,所述第一数据格式,需要说明的是,所述第一数据格式为所述host controller默认的数据格式,因此,所述第一数据格式可能是所述USB设备不兼容的数据格式;可选地,所述第一数据格式,可以是基于USB3.0协议规范的数据格式。
对于步骤S302,所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式;可选地,所述第二数据格式可以是基于USB2.0协议规范的数据格式。对于步骤S302,所述配置失败,可选地,可以是所述host controller在预设时间内未接收到所述USB设备针对第一数据格式返回的配置响应信息;
可选地,如果配置失败,即表明所述host controller采用第一数据格式向所述USB设备请求配置时,所述USB设备不兼容第一数据格式,host controller与USB设备之间的驱动不匹配,此时,所述host controller对应的终端不能与所述USB设备进行正常的数据传输;
如果配置成功,即表明所述host controller采用第一数据格式向所述USB设备请求配置时,所述USB设备兼容第一数据格式,host controller与USB设备之间的驱动兼容,此时,所述host controller对应的终端可以与所述USB设备进行正常的数据传输。
对于步骤S302,参见图4,如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置,包括:
S3021:如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;
S3022:根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于步骤S3021,可选地,所述host controller还可以生成重启所述host controller的host controller驱动的重启指示;重启host controller驱动的目的,是为了复位所述host controller的驱动程序;
可选地,当配置失败时,可以通过生成的重启指令重启host controller,以便host controller的驱动程序复位,当再一次向USB设备请求配置时,可 以根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于图3所示的实施例,如果配置失败,所述host controller还生成将所述第二数据格式转换为第一数据格式的第二指示信息。
相应地,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置之后,所述方法还包括:
接收所述USB设备返回的配置响应信息;
根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收。
对于图3所示的实施例,需要说明的是,由于所述host controller对应的终端与设备之间以第一数据格式进行有线数据传输时的传输频率可能与所述host controller对应的终端与设备以无线传输形式进行无线数据传输时的传输频率十分接近,很容易造成干扰,因此,为了避免有线数据传输与无线数据传输之间造成信号干扰,如果配置成功,所述方法还包括:
向USB设备发送数据时,如果接收到去干扰信息,则将向USB设备传输的数据转换为第二数据格式进行发送;
其中,所述去干扰信息,用于消除有线数据传输频率对无线数据传输频率造成的数据传输干扰;
可选地,所述去干扰信息可以由用户向所述host controller发送,并且发送去干扰信息的过程可以通过所述host controller对应的终端界面进行显示;
接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
对于本实施例,需要说明的是,对于所述第一指示信息和第二指示信息,不仅适用于将USB设备不兼容的第一数据格式转换为USB设备兼容的第二数据格式,以及将配置响应信息由第二数据格式转换为第一数据格式,而且,所述第一指示信息和第二指示信息,也适用于将向USB设备传输的数据转换为第二数据格式,以及将所述接收USB发送的数据转化为第一数据格。
本实施例提供了一种USB驱动适配方法,确定检测到USB设备后,采 用第一数据格式向USB设备请求配置;如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置,从而避免了数据传输时驱动不兼容。
参见图5,其示出了本发明实施例提供的一种USB驱动适配的详细方法,所述方法包括:
S501:确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
S502:如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息,以及生成将所述第二数据格式转换为第一数据格式的第二指示信息;
S503:根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置;
S504:接收所述USB设备返回的配置响应信息;
S505:根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收;
S506:如果配置成功,向USB设备发送数据时,如果接收到去干扰信息,则将向USB设备传输的数据转换为第二数据格式进行发送;
S507:如果配置成功,接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
对于步骤S501,检测USB设备,可选地,当所述host controller接收到集线器(Hub)发送的接入信息时,所述host controller检测到USB设备的接入;其中,接入信息,可以是一个高电平信息;
可选地,对于所述第一数据格式,需要说明的是,所述第一数据格式为所述host controller兼容的数据格式,所述USB设备可能不兼容的数据格式;
可选地,所述第一数据格式,可以是基于USB3.0协议规范的数据格式。
对于步骤S501,示例性地,当集线器(Hub)检测到USB设备中上拉电阻信号线的电位升高时,向所述host controller发送一个接入信息,所述host controller检测到USB设备的接入,然后,所述host controller采用基于 USB3.0协议规范的数据格式向所述USB设备请求配置;其中,所述接入信息,可以是一个高电平信息。
对于步骤S502,所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式;
可选地,所述第二数据格式可以是基于USB2.0协议规范的数据格式。
对于步骤S502,所述配置失败,可选地,可以是所述host controller在预设时间内未接收到所述USB设备针对第一数据格式返回的配置响应信息;
如果配置失败,即表明所述host controller采用第一数据格式向所述USB设备请求配置时,所述USB设备不兼容第一数据格式,host controller与USB设备之间的驱动不匹配,此时,所述host controller对应的终端不能与所述USB设备进行正常的数据传输;
当配置成功时,即表明所述host controller采用第一数据格式向所述USB设备请求配置时,所述USB设备兼容第一数据格式,host controller与USB设备之间的驱动兼容,此时,所述host controller对应的终端可以与所述USB设备进行正常的数据传输。
对于步骤S502,比如,所述host controller在预设时间10S内未接收到USB设备返回配置响应信息,那么所述host controller则认为所述USB设备不兼容第一数据格式,所述host controller与USB设备之间的驱动不匹配,因此所述host controller生成将所述第一数据格式转换为第二数据格式的第一指示信息,以及生成将所述第二数据格式转换为第一数据格式的第二指示信息。
对于步骤S502,可选地,所述host controller还可以生成重启所述host controller的host controller驱动的重启指示;
重启host controller驱动的目的,是为了复位所述host controller驱动的驱动程序;
可选地,当配置失败时,可以通过生成的重启指令重启host controller,以便host controller的驱动程序复位,当再一次向USB设备请求配置时,可 以根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于步骤S503,示例性地,当所述host controller采用基于USB3.0协议规范的数据格式向所述USB设备请求配置时,所述host controller根据所述第一指示信息将所述基于USB3.0协议规范的数据格式转换为所述USB设备能够兼容的基于USB2.0协议规范的数据格式,向USB设备请求配置。
对于步骤S505,所述host controller将所述配置响应信息转化为第一数据格式的目的,是为了便于所述host controller对应的终端进行识别。
对于步骤S506,所述去干扰信息,用于消除有线数据传输频率对无线数据传输频率造成的数据传输干扰;
可选地,所述去干扰信息可以由用户向所述host controller发送,并且发送去干扰信息的过程可以通过所述host controller对应的终端界面进行显示。
对于步骤506,示例性地,当用户发现有线传输与无线传输同时进行时,用户可以通过人机交互的方式手动选择向所述host controller发送用于消除有线数据传输频率对无线数据传输频率造成干扰的去干扰信息,从而所述host controller根据第一指示信息将向USB设备发送的数据转换为基于USB2.0协议规范的数据格式,避免了有线数据传输对无线数据传输造成的干扰。
对于步骤506和步骤507,需要说明的是,步骤506和步骤507是在所述host controller的驱动与所述USB的驱动兼容的条件下出现的。
对于本实施例,需要说明的是,所述host controller若要避免有线数据传输对无线数据传输造成的干扰,需要用户发现有线数据传输与无线数据传输同时进行传输时,有线数据传输对无线数据传输造成信息干扰,用户选择向所述host controller发送用于消除有线数据传输频率对无线数据传输频率造成干扰的去干扰信息;而所述host controller若要避免USB驱动不兼容,这属于所述host controller自动执行的过程,无需用户的参与即可完成。
对于本实施例,需要说明的是,对于所述第一指示信息和第二指示信息, 不仅适用于将USB设备不兼容的第一数据格式转换为USB设备兼容的第二数据格式,以及将配置响应信息由第二数据格式转换为第一数据格式,而且,所述第一指示信息和第二指示信息,也适用于将向USB设备传输的数据转换为第二数据格式,以及将所述接收USB发送的数据转化为第一数据格。
本实施例提供了一种USB驱动适配的详细方法,确定检测到USB设备后,采用第一数据格式向USB设备请求配置;如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息,以及生成将所述第二数据格式转换为第一数据格式的第二指示信息;根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置;接收所述USB设备返回的配置响应信息;根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收;如果配置成功,向USB设备发送数据时,如果接收到去干扰信息,则将向USB设备传输的数据转换为第二数据格式进行发送;如果配置成功,接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收,从而避免了数据传输时出现的驱动不兼容及数据传输过程中出现的信号干扰。
基于前述实施例,参见图6,其示出了本发明实施例提供的一种USB驱动适配装置60,所述装置60包括:配置模块601及转换模块602;其中,
所述配置模块601,设置为
确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
所述转换模块602,设置为
当配置失败时,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于所述配置模块601,所述配置模块601检测USB设备,可选地,当所述配置模块601接收到集线器(Hub)发送的接入信息时,所述配置模块601检测到USB设备的接入;其中,接入信息,可以是一个高电平信息;
可选地,所述第一数据格式,需要说明的是,所述第一数据格式为所述配置模块601默认的数据格式,因此,所述第一数据格式可能是所述USB设备不兼容的数据格式;
可选地,所述第一数据格式,可以是基于USB3.0协议规范的数据格式。
对于所述转换模块602,所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式;
可选地,所述第二数据格式可以是基于USB2.0协议规范的数据格式。
对于所述转换模块602,所述配置失败,可选地,可以是所述转换模块602在预设时间内未接收到所述USB设备针对第一数据格式返回的配置响应信息;
可选地,如果配置失败,即表明所述配置模块601采用第一数据格式向所述USB设备请求配置时,所述USB设备不兼容第一数据格式,所述配置模块601与USB设备之间的驱动不匹配,此时,所述配置模块601对应的终端不能与所述USB设备进行正常的数据传输;
如果配置成功,即表明所述配置模块601采用第一数据格式向所述USB设备请求配置时,所述USB设备兼容第一数据格式,所述配置模块601与USB设备之间的驱动兼容,此时,所述配置模块601对应的终端可以与所述USB设备进行正常的数据传输。
对于所述转换模块602,所述第二数据格式,为所述配置模块601和所述USB设备均兼容的数据格式;
可选地,所述第二数据格式可以是基于USB2.0协议规范的数据格式。
可选地,参见图7,所述转换模块602包括:生成子模块6021及请求子模块6022;其中,
所述生成子模块6021,设置为如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;
所述请求子模块6022,设置为根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于所述生成子模块6021,可选地,所述生成子模块6021还可以生成重启所述host controller的host controller驱动的重启指示;
重启host controller驱动的目的,是为了复位所述host controller驱动的驱动程序;
可选地,当配置失败时,所述生成子模块6021可以通过生成的重启指令重启host controller,以便host controller的驱动程序复位,当所述配置模块601再一次向USB设备请求配置时,所述请求子模块6022可以根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
对于图6所示的装置结构框图,如果配置失败,所述转换模块602,还设置为
生成将所述第二数据格式转换为第一数据格式的第二指示信息;
相应地,所述转换模块602,还设置为
接收所述USB设备返回的配置响应信息;
根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收。
对于图6所示的装置结构框图,需要说明的是,由于所述装置对应的终端与设备之前以第一数据格式进行有线数据传输时的传输频率可能与而所述装置对应的终端与设备以无线传输形式进行无线数据传输时的传输频率十分接近,很容易造成干扰,因此,为了避免有线数据传输与无线数据传输之间造成信号干扰,如果配置成功,所述装置还包括:第一传输模块603及第二传输模块604;其中,
所述第一传输模块603,设置为向USB设备发送数据时,如果接收到去干扰信息,将USB设备传输的数据转换为第二数据格式进行发送;
所述第二传输模块604,设置为接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
对于所述第一传输模块603,所述去干扰信息,用于消除有线数据传输频率对无线数据传输频率造成的数据传输干扰;
可选地,所述去干扰信息可以由用户向所述第一传输模块603发送,并且发送去干扰信息的过程可以通过所述第一传输模块603对应的终端界面进行显示。
对于本实施例,需要说明的是,所述转换模块602为上层转换模块,或者下层转换模块;其中,所述上层转换模块,或者下层转换模块的作用相同, 均用于进行数据格式的转换,因此系统中只能同时存在上层转换模块,或者下层转换模块中的一个;
可选地,对于上层转换模块,以数据从装置对应的终端传输到USB设备为例进行解释,比如,当装置对应的终端向USB设备发送数据时,所述上层转换模块接收数据,并根据第一指示信息将数据由第一数据格式转换为第二数据格式,再发送给所述配置模块601,由所述配置模块发送给USB设备;其中,所述上层转换模块在装置中的位置如图8所示;
对于所述下层转换模块,以数据从装置对应的终端传输到USB设备为例进行解释,比如,当装置对应的终端向USB设备发送数据时,所述配置模块601先接收数据,再将所述数据发送给所述下层转换模块,所述下层转换模块根据第一指示信息将数据由第一数据格式转换为第二数据格式,再发送给USB设备;其中,所述下层转换模块在装置中的位置如图9所示;
对于本实施例,需要说明的是,对于所述第一指示信息和第二指示信息,不仅适用于将USB设备不兼容的第一数据格式转换为USB设备兼容的第二数据格式,以及将配置响应信息由第二数据格式转换为第一数据格式,而且,所述第一指示信息和第二指示信息,也适用于将向USB设备传输的数据转换为第二数据格式,以及将所述接收USB发送的数据转化为第一数据格。
本实施例提供了一种USB驱动适配装置,所述配置模块601,设置为确定检测到USB设备后,采用第一数据格式向USB设备请求配置;所述转换模块602,设置为当配置失败时,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置,从而避免了数据传输时出现的驱动不兼容。
此外,本发明实施例还提供了一种USB驱动适配系统11,如图10所示,所述系统11包括:配置模块601、转换模块602、第一传输模块603及第二传输模块604;其中,
所述配置模块601,设置为
确定检测到USB设备后,采用第一数据格式向USB设备请求配置;
所述转换模块602,设置为
如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一 指示信息;
以及,根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置;
所述第一传输模块603,设置为
向USB设备发送数据时,如果接收到去干扰信息,将USB设备传输的数据转换为第二数据格式进行发送;
所述第二传输模块604,设置为
接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述实施例所述的方法。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理单元的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并 且可以被计算机访问的任何其他的介质。此外,本领域技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。本发明时参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现程序图和/或方框图中每一流程和/获方框、以及流程图和/或方框图中的流程和/或的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或者其他可编程数据处理设备的处理器易产生一个机器,是的通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或者多个方框中指定的功能的装置。
这些计算机程序指令也可以存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算及可读存储器中的指令产生包括指令装置的制造品。该指令装置实现在流程图中一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载在计算机或其他可编程处理设备上,使得在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上,仅为本发明的可选实施例而已,并非用于限定本发明的保护范围。
上述实施例可避免数据传输时驱动不兼容。
Claims (12)
- 一种通用串行总线USB驱动适配方法,所述方法用于主控制器host controller,所述方法包括:确定检测到USB设备后,采用第一数据格式向USB设备请求配置(S301,S501);如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置(S302)。
- 根据权利要求1所述的方法,其中,所述第一数据格式为所述host controller默认的数据格式;所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式。
- 根据权利要求1所述的方法,其中,如果配置失败,则将所述第一数据格式转换为第二数据格式向所述USB设备请求配置(S302),包括:如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息(S3021,S502);根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置(S3022,S503)。
- 根据权利要求3所述的方法,其中,如果配置失败,所述host controller还生成将所述第二数据格式转换为第一数据格式的第二指示信息;相应地,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置(S3022,S503)之后,所述方法还包括:接收所述USB设备返回的配置响应信息(S504);根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收(S505)。
- 根据权利要求1所述的方法,所述方法还包括:如果配置成功,向USB设备发送数据时,如果接收到去干扰信息,则将向USB设备传输的数据转换为第二数据格式进行发送(S506);接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收(S507)。
- 一种通用串行总线USB驱动适配装置(60),所述装置(60)用于host controller,所述装置(60)包括:配置模块(601)及转换模块(602);其中,所述配置模块(601),设置为确定检测到USB设备后,采用第一数据格式向USB设备请求配置;所述转换模块(602),设置为当配置失败时,将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
- 根据权利要求6所述的装置(60),其中,所述第一数据格式为所述host controller默认的数据格式;所述第二数据格式,为所述host controller和所述USB设备均兼容的数据格式。
- 根据权利要求6所述的装置(60),其中,所述转换模块(602)包括:生成子模块(6021)及请求子模块(6022);其中,所述生成子模块(6021),设置为如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;所述请求子模块(6022),设置为根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置。
- 根据权利要求6所述的装置(60),其中,所述转换模块(602),还设置为如果配置失败,生成将所述第二数据格式转换为第一数据格式的第二指示信息;接收所述USB设备返回的配置响应信息;以及,根据第二指示信息将所述配置响应信息转换为第一数据格式进行接收。
- 根据权利要求6所述的装置(60),,如果配置成功,所述装置(60)还包括:第一传输模块(603)及第二传输模块(604);其中,所述第一传输模块(603),设置为向USB设备发送数据时,如果接收到去干扰信息,将USB设备传输的数据转换为第二数据格式进行发送;所述第二传输模块(604),设置为接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
- 一种通用串行总线USB驱动适配系统(11),所述系统(11)包括:配置模块(601)、转换模块(602)、第一传输模块(603)及第二传输模块(604);其中,所述配置模块(601),设置为确定检测到USB设备后,采用第一数据格式向USB设备请求配置;所述转换模块(602),设置为如果配置失败,则生成将所述第一数据格式转换为第二数据格式的第一指示信息;以及,根据第一指示信息将所述第一数据格式转换为第二数据格式向所述USB设备请求配置;所述第一传输模块(603),设置为向USB设备发送数据时,如果接收到去干扰信息,将USB设备传输的数据转换为第二数据格式进行发送;所述第二传输模块(604),设置为接收USB发送的数据时,将所述接收USB发送的数据转化为第一数据格式进行接收。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至5中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710014171.3A CN108287798A (zh) | 2017-01-09 | 2017-01-09 | 一种usb驱动适配方法、装置及系统 |
CN201710014171.3 | 2017-01-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018127029A1 true WO2018127029A1 (zh) | 2018-07-12 |
Family
ID=62789264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/120355 WO2018127029A1 (zh) | 2017-01-09 | 2017-12-29 | 一种usb驱动适配方法、装置及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108287798A (zh) |
WO (1) | WO2018127029A1 (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102315881A (zh) * | 2010-07-09 | 2012-01-11 | 新科实业有限公司 | 光通信模块、usb线缆及其数据传送的处理方法 |
CN102541794A (zh) * | 2012-01-05 | 2012-07-04 | 威盛电子股份有限公司 | 集线器及其方法 |
CN102841876A (zh) * | 2011-05-10 | 2012-12-26 | 创见资讯股份有限公司 | 通用串行端口转换器、连接器系统与信号转换方法 |
US20140365690A1 (en) * | 2013-06-11 | 2014-12-11 | Apple, Inc. | Methods and apparatus for reliable detection and enumeration of devices |
CN105893295A (zh) * | 2016-04-22 | 2016-08-24 | 福州瑞芯微电子股份有限公司 | 一种基于usb3.0端口复用系统 |
CN105893311A (zh) * | 2016-03-28 | 2016-08-24 | 青岛海信电器股份有限公司 | 通用串行总线接口驱动配置方法和装置 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN103699510A (zh) * | 2013-12-16 | 2014-04-02 | 林剑颖 | 电脑与远端usb外设的简单无线适配方法 |
CN105938463A (zh) * | 2015-09-18 | 2016-09-14 | 重庆邮电大学 | 一种终端与计算机通信的方法 |
-
2017
- 2017-01-09 CN CN201710014171.3A patent/CN108287798A/zh not_active Withdrawn
- 2017-12-29 WO PCT/CN2017/120355 patent/WO2018127029A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102315881A (zh) * | 2010-07-09 | 2012-01-11 | 新科实业有限公司 | 光通信模块、usb线缆及其数据传送的处理方法 |
CN102841876A (zh) * | 2011-05-10 | 2012-12-26 | 创见资讯股份有限公司 | 通用串行端口转换器、连接器系统与信号转换方法 |
CN102541794A (zh) * | 2012-01-05 | 2012-07-04 | 威盛电子股份有限公司 | 集线器及其方法 |
US20140365690A1 (en) * | 2013-06-11 | 2014-12-11 | Apple, Inc. | Methods and apparatus for reliable detection and enumeration of devices |
CN105893311A (zh) * | 2016-03-28 | 2016-08-24 | 青岛海信电器股份有限公司 | 通用串行总线接口驱动配置方法和装置 |
CN105893295A (zh) * | 2016-04-22 | 2016-08-24 | 福州瑞芯微电子股份有限公司 | 一种基于usb3.0端口复用系统 |
Also Published As
Publication number | Publication date |
---|---|
CN108287798A (zh) | 2018-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10969983B2 (en) | Method for implementing NVME over fabrics, terminal, server, and system | |
US20200351354A1 (en) | System and method for supporting data communication in a heterogeneous environment | |
JP6610082B2 (ja) | 中継装置及び中継処理プログラム | |
US9516458B2 (en) | Image forming apparatus equipped with NFC tag, method of controlling the same, and storage medium | |
US10203923B2 (en) | Linking a roaming device to a network-enabled resource through a cloud service using an address obtained through a local interaction | |
WO2019037458A1 (zh) | 通信方法和装置 | |
WO2020034908A1 (zh) | 一种遥控器与移动终端的通信方法、装置和遥控器 | |
WO2020237581A1 (zh) | 使用终端设备打印虚拟机中的文件的方法、装置及系统 | |
US10402214B2 (en) | Device provided script to convert command | |
WO2023179714A1 (zh) | 数据传输方法、系统、装置、设备及计算机可读存储介质 | |
JP5891881B2 (ja) | 情報処理装置及び情報処理プログラム | |
KR20220150346A (ko) | 차량 내 시스템에 로그인하기 위한 방법 및 관련 장치 | |
WO2018099255A1 (zh) | 一种传输模式配置方法、装置及系统、计算机存储介质 | |
EP4213010A1 (en) | Guidance control method for driver installation, device regarding the same, and terminal | |
WO2018127029A1 (zh) | 一种usb驱动适配方法、装置及系统 | |
US20160274843A1 (en) | Data transmission device, data transmission system, and computer-readable recording medium | |
CN103970572B (zh) | 一种服务器部件升级方法、设备和系统 | |
WO2017049973A1 (zh) | 数据传输控制方法、主机设备、usb设备及系统 | |
CN104899164B (zh) | 集成电路总线的地址寻址方法、集成电路总线设备和系统 | |
JP6035715B2 (ja) | コンピュータシステム、情報処理システム、仮想メディア方法、および、プログラム | |
WO2016015614A1 (zh) | 一种密文发送、传输的方法、移动终端及通信基站 | |
JP6898527B2 (ja) | 電子装置を介したオペレーティングシステムの修復 | |
US9606951B2 (en) | External electronic device and interface controller and external electronic device control method | |
CN105867954B (zh) | 一种系统数据更新方法、第一电子设备及系统 | |
WO2018188404A1 (zh) | 一种usb设备的配置方法及主机 |
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: 17890616 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: 17890616 Country of ref document: EP Kind code of ref document: A1 |