CN108287798A - A kind of USB driving adaptation method, apparatus and system - Google Patents
A kind of USB driving adaptation method, apparatus and system Download PDFInfo
- Publication number
- CN108287798A CN108287798A CN201710014171.3A CN201710014171A CN108287798A CN 108287798 A CN108287798 A CN 108287798A CN 201710014171 A CN201710014171 A CN 201710014171A CN 108287798 A CN108287798 A CN 108287798A
- Authority
- CN
- China
- Prior art keywords
- data format
- data
- usb device
- usb
- configuration
- Prior art date
- Legal status (The legal status 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 status listed.)
- Withdrawn
Links
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
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
The embodiment of the invention discloses a kind of USB to drive adaptation method, apparatus and system, the method includes:After confirmly detecting USB device, ask to configure to USB device using the first data format;It is that the second data format asks to configure to the USB device by first Data Format Transform if configuration failure, the driving incompatibility problem occurred when to solve data transmission.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of USB drivings adaptation method, apparatus and systems.
Background technology
With the continuous innovation of data transfer mode, universal serial bus (USB, Universal Serial on computer
Bus) the gradual USB2.0 versions of Data Transport Protocol are gradually excessive to USB3.0 versions.
Fig. 1 is current USB data transmission schematic device, during data form computer is transmitted to USB device, number
According to by master controller (host controller), hub (Hub) is reached, USB device is sent to through port.But working as
In preceding USB data transmission system, it has been found that the host controller drivings of USB2.0 are provided by Microsoft is unified, warp
The inspection of history is crossed, therefore, there is no driven with other host controller for the host controller drivings of USB2.0
Incompatible problem, although and the host controller of USB3.0 drivings are all based on the exploitation of USB3.0 protocol specifications,
The host controller drivings for being current USB3.0 are provided by each host controller hardware vendors oneself, example
Such as Intel, Weisheng, so inevitably having compatibility issue.
Therefore, it is necessary to seek a kind of USB driving adaptation method, apparatus and system when solving USB3.0 data to occur
Drive incompatibility problem.
Invention content
To solve existing technical problem, an embodiment of the present invention is intended to provide a kind of USB drivings adaptation method, devices
And system, solve the driving incompatibility problem occurred when data transmission.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
In a first aspect, an embodiment of the present invention provides a kind of USB, and adaptation method, the method to be driven to be used for master controller
Host controller, the method includes:
After confirmly detecting USB device, ask to configure to USB device using the first data format;
It is that the second data format is asked to the USB device by first Data Format Transform if configuration failure
Configuration.
In the above scheme, first data format is the data format of host controller acquiescences;
The data format that second data format is the host controller and the USB device is compatible.
In the above scheme, it is the second data format to institute by first Data Format Transform if configuration failure
USB device request configuration is stated, is specifically included:
If configuration failure, generates and believe the first instruction that first Data Format Transform is the second data format
Breath;
First Data Format Transform is asked for the second data format to the USB device according to the first instruction information
Configuration.
In the above scheme, if configuration failure, the host controller are also generated second data format
Be converted to the second instruction information of the first data format.
Correspondingly, it is that the second data format is asked to the USB device after configuring by first Data Format Transform,
The method further includes:
Receive the configuration response information that the USB device returns;
The configuration response information the first data format is converted to according to the second instruction information to receive.
In the above scheme, if configuration successful, the method further includes:
When to USB device transmission data, if receiving interference information, data conversion that will be transmitted to USB device
It is sent for the second data format;
When receiving the data that USB is sent, converts the reception USB data sent to the first data format and connect
It receives.
Second aspect, an embodiment of the present invention provides a kind of USB, and adaptive device, described device to be driven to be used for host
Controller, described device include:Configuration module and conversion module;Wherein,
The configuration module, is used for
After confirmly detecting USB device, ask to configure to USB device using the first data format;
The conversion module, is used for
It is that the second data format is matched to USB device request by first Data Format Transform when configuration failure
It sets.
In the above scheme, first data format is the data format of host controller acquiescences;
The data format that second data format is the host controller and the USB device is compatible.
In the above scheme, the conversion module includes:Generate submodule and request submodule;Wherein,
The generation submodule, if being used for configuration failure, it is the second number to generate first Data Format Transform
Information is indicated according to the first of format;
The request submodule is used to according to the first instruction information be the second data lattice by first Data Format Transform
Formula asks to configure to the USB device.
In the above scheme, if configuration failure, the conversion module is additionally operable to
Generate the second instruction information for the first data format by second Data Format Transform;
Correspondingly, the conversion module, is additionally operable to
Receive the configuration response information that the USB device returns;
And the configuration response information is converted to by the first data format according to the second instruction information and is received.
In the above scheme, if configuration successful, described device further includes:First transmission module and the second transmission module;
Wherein,
First transmission module, if receiving interference information, USB is set when for USB device transmission data
The data of standby transmission are converted to the second data format and are sent;
Second transmission module, for receive USB transmission data when, by it is described reception USB send data convert
It is received for the first data format.
The third aspect, an embodiment of the present invention provides a kind of USB to drive adaption system, the system comprises:Configuration module,
Conversion module, the first transmission module and the second transmission module;Wherein,
The configuration module, is used for
After confirmly detecting USB device, ask to configure to USB device using the first data format;
The conversion module, is used for
If configuration failure, generates and believe the first instruction that first Data Format Transform is the second data format
Breath;
And first Data Format Transform is set for the second data format to the USB according to the first instruction information
Standby request configuration;
First transmission module, is used for
When to USB device transmission data, if receiving interference information, the data that USB device transmits are converted to the
Two data formats are sent;
Second transmission module, is used for
When receiving the data that USB is sent, converts the reception USB data sent to the first data format and connect
It receives.
An embodiment of the present invention provides a kind of USB drivings adaptation method, apparatus and systems, after confirmly detecting USB device,
It asks to configure to USB device using the first data format;It is second by first Data Format Transform if configuration failure
Data format asks to configure to the USB device, the driving incompatibility problem occurred when to solve data transmission.
Description of the drawings
Fig. 1 is a kind of schematic diagram of existing USB data transmission system provided in an embodiment of the present invention;
Fig. 2 is a kind of interaction schematic diagram of USB data transmission device provided in an embodiment of the present invention;
Fig. 3 is that a kind of USB provided in an embodiment of the present invention drives adaptation method flow chart;
Fig. 4 is the flow that a kind of host controller provided in an embodiment of the present invention obtain the second solicited message
Figure;
Fig. 5 is a kind of flow chart of the method detailed of USB drivings adaptation provided in an embodiment of the present invention;
Fig. 6 is the structure diagram that a kind of USB provided in an embodiment of the present invention drives adaptive device;
Fig. 7 is a kind of structure diagram of conversion module provided in an embodiment of the present invention;
Fig. 8 is position view of the first conversion module provided in an embodiment of the present invention in USB drives adaptive device;
Fig. 9 is position view of second of the conversion module provided in an embodiment of the present invention in USB drives adaptive device;
Figure 10 is that position of the third conversion module provided in an embodiment of the present invention in USB drives adaptive device is illustrated
Figure;
Figure 11 is the structure diagram that a kind of USB provided in an embodiment of the present invention drives adaption system.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, is carried out to the technical solution in inventive embodiments clear, complete
Ground describes.
Referring to Fig. 2, it illustrates a kind of USB drivings adaptive devices provided in an embodiment of the present invention to be set with computer and USB
Relation schematic diagram between standby, it is possible to understand that, which is merely to illustrate the technical solution of the embodiment of the present invention, not right
The embodiment of the present invention carries out any specific restriction.The USB drivings adaptive device is located at computer-internal, the USB drivings
Adaptive device is mainly made of configuration module and conversion module for host controller, the USB drivings adaptive device.
Based on above-mentioned schematic diagram, the basic thought of the embodiment of the present invention is:After confirmly detecting USB device, using first
Data format asks to configure to USB device;It is the second data format by first Data Format Transform if configuration failure
It asks to configure to the USB device, the driving incompatibility problem occurred when to solve data transmission.
Embodiment one
Referring to Fig. 3, it illustrates a kind of USB drivings adaptation method provided in an embodiment of the present invention, the method is used for
Host controller, the method includes:
S301:After confirmly detecting USB device, ask to configure to USB device using the first data format;
S302:It is the second data format to the USB device by first Data Format Transform if configuration failure
Request configuration.
For step S301, USB device is detected, specifically, when the host controller receive hub
(Hub) when the access information sent, the host controller detect the access of USB device;Wherein, access information, tool
Body can be a high level information.
For step S301, first data format, it should be noted that first data format is the host
The data format of controller acquiescences, therefore, first data format may be the incompatible data lattice of the USB device
Formula;Specifically, first data format can be the data format based on USB3.0 protocol specifications.
For step S302, second data format is that the host controller and the USB device are simultaneous
The data format of appearance;Specifically, second data format can be the data format based on USB2.0 protocol specifications.For step
Rapid S302, the configuration failure can be specifically described in the host controller are not received in preset time
USB device is directed to the configuration response information that the first data format returns;
Further, if configuration failure, that is, show the host controller using the first data format to described
When USB device request configuration, incompatible first data format of USB device, between host controller and USB device
Driving mismatch, at this point, the corresponding terminals of the host controller cannot normally be counted with the USB device
According to transmission;
If configuration successful, that is, show that the host controller are asked using the first data format to the USB device
When asking configuration, the USB device is compatible with the first data format, and the driving between host controller and USB device is compatible,
At this point, the corresponding terminal of the host controller can carry out normal data transmission with the USB device.
It is the second data by first Data Format Transform if configuration failure referring to Fig. 4 for step S302
Format asks to configure to the USB device, specifically includes:
S3021:If configuration failure, generates and refer to first Data Format Transform for the first of the second data format
Show information;
S3022:First Data Format Transform is set for the second data format to the USB according to the first instruction information
Standby request configuration.For step S3021, it is preferable that the host controller, which can also be generated, restarts the host
Instruction is restarted in the host controller drivings of controller;
Further, the purpose for restarting host controller drivings, is to reset the host controller
Driver;
Further, when configuration failure, host controller can be restarted by the instruction of restarting of generation, so as to
The driver of host controller resets, and when asking to configure to USB device again, can be believed according to the first instruction
First Data Format Transform is that the second data format asks to configure to the USB device by breath.
For technical solution shown in Fig. 3, if configuration failure, the host controller are also generated described
Two Data Format Transforms are the second instruction information of the first data format.
Correspondingly, it is that the second data format is asked to the USB device after configuring by first Data Format Transform,
The method further includes:
Receive the configuration response information that the USB device returns;
The configuration response information the first data format is converted to according to the second instruction information to receive.
For technical solution shown in Fig. 3, it should be noted that due to the corresponding terminals of the host controller
Transmission frequency when between equipment with the first data format progress wired data transfer may be with the host controller
Transmission frequency when corresponding terminal carries out in the form of being wirelessly transferred wireless data transmission with equipment is sufficiently close to, it is easy to be caused
Interference, therefore, in order to avoid causing signal interference between wired data transfer and wireless data transmission, if configuration successful, institute
The method of stating further includes:
When to USB device transmission data, if receiving interference information, data conversion that will be transmitted to USB device
It is sent for the second data format;
Wherein, described to go interference information, for eliminating wired data transfer frequency caused by wireless data transmission frequency
Data transmission interference;
Further, described to go interference information that be sent from user to the host controller, and send and go
The process of interference information can be shown by the corresponding terminal interfaces of the host controller;
When receiving the data that USB is sent, converts the reception USB data sent to the first data format and connect
It receives.
For the present embodiment, it should be noted that for the first instruction information and the second instruction information, be not only applicable in
In by the second data format that the first incompatible Data Format Transform of USB device is USB device compatibility, and by configuration response
Information is the first data format by the second Data Format Transform, moreover, the first instruction information and the second instruction information, are also fitted
It is converted into for the data transmitted to USB device to be converted to the second data format, and by the reception USB data sent
First data lattice.
A kind of USB drivings adaptation method is present embodiments provided, after confirmly detecting USB device, using the first data lattice
Formula asks to configure to USB device;It is the second data format to described by first Data Format Transform if configuration failure
USB device request configuration, the driving incompatibility problem occurred when to solve data transmission.
Embodiment two
Referring to Fig. 5, it illustrates a kind of method detailed of USB drivings adaptation provided in an embodiment of the present invention, the methods
Including:
S501:After confirmly detecting USB device, ask to configure to USB device using the first data format;
S502:If configuration failure, generates and refer to first Data Format Transform for the first of the second data format
Show information, and generates the second instruction information by second Data Format Transform for the first data format;
S503:First Data Format Transform is set for the second data format to the USB according to the first instruction information
Standby request configuration;
S504:Receive the configuration response information that the USB device returns;
S505:The configuration response information the first data format is converted to according to the second instruction information to receive;
S506:It,, will be to USB if receiving interference information when to USB device transmission data if configuration successful
The data of equipment transmission are converted to the second data format and are sent;
S507:If configuration successful, when receiving the data that USB is sent, the reception USB data sent are converted into the
One data format is received.
For step S501, USB device is detected, specifically, when the host controller receive hub
(Hub) when the access information sent, the host controller detect the access of USB device;Wherein, access information, tool
Body can be a high level information;
Further, for first data format, it should be noted that first data format is the host
The data format of controller compatibilities, the data format that the USB device may be incompatible;
Specifically, first data format can be the data format based on USB3.0 protocol specifications.
For step S501, illustratively, when hub (Hub) detects the electricity of pull-up resistor signal wire in USB device
When position increases, an access information is sent to the host controller, the host controller detect that USB is set
Standby access, then, the host controller are set using the data format based on USB3.0 protocol specifications to the USB
Standby request configuration;Wherein, the access information can be specifically a high level information.
For step S502, second data format is that the host controller and the USB device are simultaneous
The data format of appearance;
Specifically, second data format can be the data format based on USB2.0 protocol specifications.
For step S502, the configuration failure can be specifically the host controller in preset time
It does not receive the USB device inside and is directed to the configuration response information that the first data format returns;
Further, if configuration failure, that is, show the host controller using the first data format to described
When USB device request configuration, incompatible first data format of USB device, between host controller and USB device
Driving mismatch, at this point, the corresponding terminals of the host controller cannot normally be counted with the USB device
According to transmission;
When configuration successful, that is, show that the host controller are asked using the first data format to the USB device
When asking configuration, the USB device is compatible with the first data format, and the driving between host controller and USB device is compatible,
At this point, the corresponding terminal of the host controller can carry out normal data transmission with the USB device.
For step S502, returned for example, the host controller do not receive USB device in preset time 10S
Configuration response information is returned, then the host controller then think incompatible first data format of the USB device, institute
The driving stated between host controller and USB device mismatches, therefore host controller generations will be described
First Data Format Transform is the first instruction information of the second data format, and generates second Data Format Transform and be
Second instruction information of the first data format.
For step S502, it is preferable that the host controller, which can also be generated, restarts the host
Instruction is restarted in the host controller drivings of controller;
Further, the purpose for restarting host controller drivings, is to reset the host controller
The driver of driving;
Further, when configuration failure, host controller can be restarted by the instruction of restarting of generation, so as to
The driver of host controller resets, and when asking to configure to USB device again, can be believed according to the first instruction
First Data Format Transform is that the second data format asks to configure to the USB device by breath.
For step S503, illustratively, when the host controller use the number based on USB3.0 protocol specifications
When asking to configure to the USB device according to format, the host controller indicate information by the base according to described first
In the data based on USB2.0 protocol specifications that the Data Format Transform of USB3.0 protocol specifications can be compatible with for the USB device
Format asks to configure to USB device.
For step S505, the host controller convert the configuration response information to the first data format
Purpose, be to be identified for the ease of the corresponding terminals of the host controller.
It is described to go interference information for step S506, for eliminating wired data transfer frequency to wireless data transmission frequency
Data transmission interference caused by rate;
Further, described to go interference information that be sent from user to the host controller, and send and go
The process of interference information can be shown by the corresponding terminal interfaces of the host controller.
For step 506, illustratively, when user has found that wire transmission and wireless transmission are carried out at the same time, user can be with
It is manually selected by way of human-computer interaction and is sent to the host controller for eliminating wired data transfer frequency pair
What wireless data transmission frequency interfered goes interference information, to which the host controller are according to the first instruction information
The data sent to USB device are converted into the data format based on USB2.0 protocol specifications, solve wired data transfer to nothing
Interference problem caused by line data transmission.
For step 506 and step 507, it should be noted that in the host when step 506 and step 507
Occur under conditions of the driving of controller is with the driving of the USB compatible.
For the present embodiment, it should be noted that solve wired data transfer to nothing for the host controller
Interference problem caused by line data transmission needs user to find to transmit when wired data transfer is carried out at the same time with wireless data transmission
When, wired data transfer causes information to interfere wireless data transmission, and user selects to send to the host controller and use
In eliminating wired data transfer frequency interference information is gone to what wireless data transmission frequency interfered;And for the host
It is incompatible that controller solves the problems, such as that USB drives, and belongs to the process that the host controller are executed automatically, is not necessarily to
The participation of user can be completed.
For the present embodiment, it should be noted that for the first instruction information and the second instruction information, be not only applicable in
In by the second data format that the first incompatible Data Format Transform of USB device is USB device compatibility, and by configuration response
Information is the first data format by the second Data Format Transform, moreover, the first instruction information and the second instruction information, are also fitted
It is converted into for the data transmitted to USB device to be converted to the second data format, and by the reception USB data sent
First data lattice.
A kind of method detailed of USB drivings adaptation is present embodiments provided, after confirmly detecting USB device, using first
Data format asks to configure to USB device;If configuration failure, it is the second data to generate first Data Format Transform
First instruction information of format, and generate and believe the second instruction that second Data Format Transform is the first data format
Breath;First Data Format Transform is asked to configure for the second data format to the USB device according to the first instruction information;
Receive the configuration response information that the USB device returns;The configuration response information is converted to the according to the second instruction information
One data format is received;It,, will if receiving interference information when to USB device transmission data if configuration successful
The data transmitted to USB device are converted to the second data format and are sent;If configuration successful, the data that USB is sent are received
When, it converts the reception USB data sent to the first data format and receives, occur when to solve data transmission
Driving incompatibility problem and data transmission procedure in the signal interference problem that occurs.
Embodiment three
Based on the identical technical concept of previous embodiment, referring to Fig. 6, it illustrates one kind provided in an embodiment of the present invention
USB driving adaptive devices 60, described device 60 include:Configuration module 601 and conversion module 602;Wherein,
The configuration module 601, is used for
After confirmly detecting USB device, ask to configure to USB device using the first data format;
The conversion module 602, is used for
It is that the second data format is matched to USB device request by first Data Format Transform when configuration failure
It sets.
For the configuration module 601, the configuration module 601 detects USB device, specifically, when the configuration module
601 receive hub (Hub) transmission access information when, the configuration module 601 detects the access of USB device;Wherein,
Access information can be specifically a high level information;
Further, first data format, it should be noted that first data format is the configuration module
The data format of 601 acquiescences, therefore, first data format may be the incompatible data format of the USB device;
Specifically, first data format can be the data format based on USB3.0 protocol specifications.
For the conversion module 602, second data format sets for the host controller and USB
Standby compatible data format;
Specifically, second data format can be the data format based on USB2.0 protocol specifications.
For the conversion module 602, the configuration failure can be specifically the conversion module 602 when default
The interior configuration response information for not receiving the USB device and being directed to the return of the first data format;
Further, if configuration failure, that is, show that the configuration module 601 uses the first data format to the USB
When device request configures, incompatible first data format of USB device, the drive between the configuration module 601 and USB device
It is dynamic to mismatch, at this point, 601 corresponding terminal of the configuration module cannot carry out normal data transmission with the USB device;
If configuration successful, that is, show that the configuration module 601 is matched using the first data format to USB device request
When setting, the USB device is compatible with the first data format, and the driving between the configuration module 601 and USB device is compatible, at this point,
601 corresponding terminal of the configuration module can carry out normal data transmission with the USB device.
For the conversion module 602, second data format is that the configuration module 601 and the USB device are equal
Compatible data format;
Specifically, second data format can be the data format based on USB2.0 protocol specifications.
Further, referring to Fig. 7, the conversion module 602 includes:Generate submodule 6021 and request submodule 6022;
Wherein,
The generation submodule 6021, if being used for configuration failure, it is the to generate first Data Format Transform
First instruction information of two data formats;
The request submodule 6022, for being counted first Data Format Transform for second according to the first instruction information
It asks to configure to the USB device according to format.
For the generation submodule 6021, it is preferable that the generation submodule 6021 can also generate restart it is described
Instruction is restarted in the host controller drivings of host controller;
Further, the purpose for restarting host controller drivings, is to reset the host controller
The driver of driving;
Further, when configuration failure, the generation submodule 6021 can be restarted by the instruction of restarting of generation
Host controller, so as to host controller driver reset, when the configuration module 601 again to
When USB device request configuration, the request submodule 6022 can turn first data format according to the first instruction information
The second data format is changed to ask to configure to the USB device.
For apparatus structure block diagram shown in fig. 6, if configuration failure, the conversion module 602 is additionally operable to
Generate the second instruction information for the first data format by second Data Format Transform;
Correspondingly, the conversion module 602, is additionally operable to
Receive the configuration response information that the USB device returns;
The configuration response information the first data format is converted to according to the second instruction information to receive.
For apparatus structure block diagram shown in fig. 6, it should be noted that due to the corresponding terminal of described device and equipment it
Preceding transmission frequency when carrying out wired data transfer with the first data format may with and the corresponding terminal of described device and equipment
Transmission frequency when carrying out wireless data transmission in the form of wireless transmission is sufficiently close to, it is easy to be interfered, therefore, in order to keep away
Exempt to cause signal interference between wired data transfer and wireless data transmission, if configuration successful, described device further includes:First
Transmission module 603 and the second transmission module 604;Wherein,
First transmission module 603, will if receiving interference information when for USB device transmission data
The data of USB device transmission are converted to the second data format and are sent;
Second transmission module 604, for receive USB transmission data when, by it is described reception USB send data turn
The first data format is turned to be received.
It is described to go interference information for first transmission module 603, for eliminating wired data transfer frequency to wireless
Data transmission interference caused by data transmission frequencies;
Further, described to go interference information that be sent from user to first transmission module 603, and send and go
The process of interference information can be shown by first transmission module, 603 corresponding terminal interface.
For the present embodiment, it should be noted that the conversion module 602 is upper layer conversion module 6021 or lower layer
Conversion module 6022, or to replace conversion module 6023;Wherein, the upper layer conversion module 6021 or lower layer's modulus of conversion
Block 6022, or it is identical for the effect for replacing conversion module 6023, it is used to carry out the conversion of data format, therefore in system only
Can exist simultaneously upper layer conversion module 6021 either lower layer's conversion module 6022 or for replace conversion module 6023 in one
It is a;
Specifically, for upper layer conversion module 6021, by taking data are from the corresponding terminal transmission to USB device of device as an example into
Row explains that, for example, when the corresponding terminal of device is to USB device transmission data, the upper layer conversion module 6021 receives data,
And according to first instruction information by data by the first Data Format Transform be the second data format, be then forwarded to the configuration module
601, USB device is sent to by the configuration module;Wherein, the position such as Fig. 8 of the upper layer conversion module 6021 in a device
It is shown;
For lower layer's conversion module 6022, carried out for the corresponding terminal transmission to USB device of device by data
It explains, for example, when the corresponding terminal of device is to USB device transmission data, the configuration module 601 first receives data, then will
The data are sent to lower layer's conversion module 6022, and lower layer's conversion module 6022 indicates information by data according to first
It is the second data format by the first Data Format Transform, is then forwarded to USB device;Wherein, lower layer's conversion module 6022 exists
Position in device is as shown in Figure 9;
For the replacement conversion module 6023, carried out for the corresponding terminal transmission to USB device of device by data
It explains, for example, when the corresponding terminal of device is to USB device transmission data, the replacement conversion module 6023 receives data, and
According to first instruction information by data by the first Data Format Transform be the second data format, be sent to USB device;Wherein, institute
It is as shown in Figure 10 to state the position of replacement conversion module 6023 in a device.
For the present embodiment, it should be noted that for the first instruction information and the second instruction information, be not only applicable in
In by the second data format that the first incompatible Data Format Transform of USB device is USB device compatibility, and by configuration response
Information is the first data format by the second Data Format Transform, moreover, the first instruction information and the second instruction information, are also fitted
It is converted into for the data transmitted to USB device to be converted to the second data format, and by the reception USB data sent
First data lattice.
A kind of USB drivings adaptive device is present embodiments provided, the configuration module 601 is set for confirmly detecting USB
After standby, ask to configure to USB device using the first data format;The conversion module 602 is used for when configuration failure, by institute
It is that the second data format asks to configure to the USB device to state the first Data Format Transform, is gone out when to solve data transmission
Existing driving incompatibility problem.
In addition, being based on above-mentioned identical technical concept, the embodiment of the present invention additionally provides a kind of USB drivings adaption system
11, the system 11 includes:Configuration module 601, conversion module 602, the first transmission module 603 and the second transmission module 604;Its
In,
The configuration module 601, is used for
After confirmly detecting USB device, ask to configure to USB device using the first data format;
The conversion module 602, is used for
If configuration failure, generates and believe the first instruction that first Data Format Transform is the second data format
Breath;
And first Data Format Transform is set for the second data format to the USB according to the first instruction information
Standby request configuration;
First transmission module 603, is used for
When to USB device transmission data, if receiving interference information, the data that USB device transmits are converted to the
Two data formats are sent;Second transmission module 604, is used for
When receiving the data that USB is sent, converts the reception USB data sent to the first data format and connect
It receives.
Those skilled in the art should understand, the embodiment of the present invention can providing method, system or computer journey
Sequence product.Therefore, hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Form.Moreover, it wherein includes that can be used to deposit by the computer of computer usable program code that the present invention, which can be used in one or more,
The form for the computer program product implemented on storage media (including but not limited to magnetic disk storage and optical memory etc.).
When of the invention with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that each flow in programme diagram and/or block diagram can be realized by computer program instructions
With/obtain flow in box and flowchart and/or the block diagram and/or combination.These computer program instructions can be provided to arrive
All-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor be also easy to produce one
A machine, the instruction executed by computer or the processor of other programmable data processing devices for being generate for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions can also be stored in can guide computer or other programmable data processing devices with
In the computer-readable memory of ad hoc fashion work so that the instruction being stored in the calculating and readable memory, which generates, includes
The manufacture of command device.The command device realizes a flow or multiple flows and/or one side of block diagram in flow charts
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded in computer or other programmable processing equipments so that in computer
Or the instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram
The step of function of being specified in one box or multiple boxes.
More than, only presently preferred embodiments of the present invention is not intended to limit the scope of the present invention.
Claims (11)
1. a kind of USB drives adaptation method, which is characterized in that the method is described for master controller host controller
Method includes:
After confirmly detecting USB device, ask to configure to USB device using the first data format;
It is that the second data format asks to configure to the USB device by first Data Format Transform if configuration failure.
2. according to the method described in claim 1, it is characterized in that, first data format is the host
The data format of controller acquiescences;
The data format that second data format is the host controller and the USB device is compatible.
3. according to the method described in claim 1, it is characterized in that, if configuration failure, first data format is turned
It is changed to the second data format to ask to configure to the USB device, specifically include:
If configuration failure, the first instruction information for the second data format by first Data Format Transform is generated;
First Data Format Transform is matched for the second data format to USB device request according to the first instruction information
It sets.
4. according to the method described in claim 3, it is characterized in that, if configuration failure, the host controller are also raw
At the second instruction information by second Data Format Transform for the first data format.
Correspondingly, it is that the second data format is asked to the USB device after configuring by first Data Format Transform, it is described
Method further includes:
Receive the configuration response information that the USB device returns;
The configuration response information the first data format is converted to according to the second instruction information to receive.
5. according to the method described in claim 1, it is characterized in that, if configuration successful, the method further includes:
When to USB device transmission data, if receiving interference information, the data transmitted to USB device are converted to
Two data formats are sent;
When receiving the data that USB is sent, converts the reception USB data sent to the first data format and receive.
6. a kind of USB drives adaptive device, which is characterized in that described device is used for host controller, described device packet
It includes:Configuration module and conversion module;Wherein,
The configuration module, is used for
After confirmly detecting USB device, ask to configure to USB device using the first data format;
The conversion module, is used for
It is that the second data format asks to configure to the USB device by first Data Format Transform when configuration failure.
7. device according to claim 6, which is characterized in that first data format is the host
The data format of controller acquiescences;
The data format that second data format is the host controller and the USB device is compatible.
8. device according to claim 6, which is characterized in that the conversion module includes:Generate submodule and request
Module;Wherein,
The generation submodule, if being used for configuration failure, it is the second data lattice to generate first Data Format Transform
First instruction information of formula;
The request submodule, for according to first instruction information will first Data Format Transform for the second data format to
The USB device request configuration.
9. device according to claim 8, which is characterized in that if configuration failure, the conversion module is additionally operable to
Generate the second instruction information for the first data format by second Data Format Transform;
Correspondingly, the conversion module, is additionally operable to
Receive the configuration response information that the USB device returns;
And the configuration response information is converted to by the first data format according to the second instruction information and is received.
10. device according to claim 6, which is characterized in that if configuration successful, described device further includes:First passes
Defeated module and the second transmission module;Wherein,
First transmission module, if receiving interference information, USB device is passed when for USB device transmission data
Defeated data are converted to the second data format and are sent;
The reception USB data sent when data for receiving USB transmissions, are converted into the by second transmission module
One data format is received.
11. a kind of USB drives adaption system, which is characterized in that the system comprises:Configuration module, conversion module, the first transmission
Module and the second transmission module;Wherein,
The configuration module, is used for
After confirmly detecting USB device, ask to configure to USB device using the first data format;
The conversion module, is used for
If configuration failure, the first instruction information for the second data format by first Data Format Transform is generated;
And first Data Format Transform is asked for the second data format to the USB device according to the first instruction information
Ask configuration;
First transmission module, is used for
When to USB device transmission data, if receiving interference information, the data that USB device transmits are converted into the second number
It is sent according to format;
Second transmission module, is used for
When receiving the data that USB is sent, converts the reception USB data sent to the first data format and receive.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710014171.3A CN108287798A (en) | 2017-01-09 | 2017-01-09 | A kind of USB driving adaptation method, apparatus and system |
PCT/CN2017/120355 WO2018127029A1 (en) | 2017-01-09 | 2017-12-29 | Usb drive adaptation method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710014171.3A CN108287798A (en) | 2017-01-09 | 2017-01-09 | A kind of USB driving adaptation method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108287798A true CN108287798A (en) | 2018-07-17 |
Family
ID=62789264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710014171.3A Withdrawn CN108287798A (en) | 2017-01-09 | 2017-01-09 | A kind of USB driving adaptation method, apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108287798A (en) |
WO (1) | WO2018127029A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102713843A (en) * | 2010-08-24 | 2012-10-03 | 联发科技股份有限公司 | Method of USB device enumeration including detecting operating system type of USB host |
CN102841876A (en) * | 2011-05-10 | 2012-12-26 | 创见资讯股份有限公司 | Universal serial bus converter, connector system and signal convertion method |
CN103699510A (en) * | 2013-12-16 | 2014-04-02 | 林剑颖 | Method for simply and wirelessly matching computer and temote USB (universal serial bus) peripheral |
CN105893311A (en) * | 2016-03-28 | 2016-08-24 | 青岛海信电器股份有限公司 | Universal serial bus interface drive configuration method and device |
CN105938463A (en) * | 2015-09-18 | 2016-09-14 | 重庆邮电大学 | Method for communication between terminal and computer |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8255582B2 (en) * | 2010-07-09 | 2012-08-28 | Sae Magnetics (H.K.) Ltd. | Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof |
CN102541794B (en) * | 2012-01-05 | 2014-11-26 | 威盛电子股份有限公司 | Concentrator and method therefor |
US9081705B2 (en) * | 2013-06-11 | 2015-07-14 | Apple Inc. | Methods and apparatus for reliable detection and enumeration of devices |
CN105893295B (en) * | 2016-04-22 | 2019-07-09 | 福州瑞芯微电子股份有限公司 | One kind being based on USB3.0 multiplexed port system |
-
2017
- 2017-01-09 CN CN201710014171.3A patent/CN108287798A/en not_active Withdrawn
- 2017-12-29 WO PCT/CN2017/120355 patent/WO2018127029A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102713843A (en) * | 2010-08-24 | 2012-10-03 | 联发科技股份有限公司 | Method of USB device enumeration including detecting operating system type of USB host |
CN102841876A (en) * | 2011-05-10 | 2012-12-26 | 创见资讯股份有限公司 | Universal serial bus converter, connector system and signal convertion method |
CN103699510A (en) * | 2013-12-16 | 2014-04-02 | 林剑颖 | Method for simply and wirelessly matching computer and temote USB (universal serial bus) peripheral |
CN105938463A (en) * | 2015-09-18 | 2016-09-14 | 重庆邮电大学 | Method for communication between terminal and computer |
CN105893311A (en) * | 2016-03-28 | 2016-08-24 | 青岛海信电器股份有限公司 | Universal serial bus interface drive configuration method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2018127029A1 (en) | 2018-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10339093B2 (en) | USB interface using repeaters with guest protocol support | |
CN106462528B (en) | The power save mode of USB power transmission source device | |
US9129064B2 (en) | USB 3.0 link layer timer adjustment to extend distance | |
US9047418B2 (en) | Methods and devices for extending USB 3.0-compliant communication | |
CN110089040A (en) | The method and sending ending equipment of data transmission | |
CN107111588A (en) | The data transfer of PCIe protocol is used via USB port | |
WO2011066334A2 (en) | Configurable connector for system-level communication | |
US20190171268A1 (en) | Usb power delivery | |
JP6024288B2 (en) | Information processing system and external device | |
CN114138700B (en) | Flow control method, device, equipment and storage medium for serial port data transmission | |
JP2015076100A (en) | Serial communication via communication control pin | |
JP2006343815A (en) | Communication device, communication method, and communication system | |
CN106851041A (en) | Information processor and its control method with battery saving mode | |
CN101276316A (en) | Apparatus, method, and system for controlling communication between host device and usb device | |
CN110622489A (en) | Conversion device and control system | |
WO2011116610A1 (en) | Method, system and device for initializing internet device | |
CN104461978B (en) | Method and device for unidirectional data transmission | |
CN215646815U (en) | WiFi Wireless network adapter | |
WO2015117378A1 (en) | Method and related system for adaptively configuring port, and computer storage medium | |
CN108287798A (en) | A kind of USB driving adaptation method, apparatus and system | |
CN104378526A (en) | Image forming apparatus and method of controlling entry to power save mode thereof | |
CN108055185B (en) | Communication system and communication method of household appliance and household appliance | |
US8341310B2 (en) | Method for adjusting the transmission speed of the electronic aid | |
US11809358B2 (en) | USB device removal and ping intervention in an extension environment | |
CN113220613A (en) | WiFi wireless network adapter and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180717 |