CN108829623A - A kind of USB port adaptation method and device - Google Patents

A kind of USB port adaptation method and device Download PDF

Info

Publication number
CN108829623A
CN108829623A CN201810638813.1A CN201810638813A CN108829623A CN 108829623 A CN108829623 A CN 108829623A CN 201810638813 A CN201810638813 A CN 201810638813A CN 108829623 A CN108829623 A CN 108829623A
Authority
CN
China
Prior art keywords
serial bus
universal serial
port
usb
corresponding port
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.)
Pending
Application number
CN201810638813.1A
Other languages
Chinese (zh)
Inventor
徐杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810638813.1A priority Critical patent/CN108829623A/en
Publication of CN108829623A publication Critical patent/CN108829623A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

This application discloses a kind of USB port adaptation method and device, which includes:After universal serial bus concentrator is inserted into USB port, the corresponding port of different universal serial bus specifications is obtained from the attribute information of the universal serial bus concentrator;The corresponding port of difference universal serial bus specification in firmware is set, it is consistent from the corresponding port of different universal serial bus specifications obtained from the attribute information of the universal serial bus concentrator respectively.Scheme provided in this embodiment can obtain the mapping relations of USB port, and existing mapping problems is accurately positioned, substantially reduces the time of debugging, and correct mapping problems.

Description

A kind of USB port adaptation method and device
Technical field
The present embodiments relate to but be not limited to a kind of USB port adaptation method and device.
Background technique
Early stage USB flash disk, USB (Universal Serial Bus, universal serial bus) mouse and keyboard etc. all pass through EHCI (Enhanced Host Controller Interface, enhanced host controller interface) interface, the i.e. end USB2.0 The interaction for standardizing to realize the input/output function of computer of mouth.With people to capacity of memory device, data transmission rate, write Enter the raising of the performance requirements such as data transmission rate, supporting interface type, USB3.0 equipment is come into being, but EHCI cannot achieve To its compatible adaptation, and controller XHCI of new generation (eXtensible Host Controller Interface, it is expansible Host controller interface) it is mainly directed towards 3.0 standard of USB, while being also compatible with 2.0 and equipment below.With new platform (Purley) publication of product, South Bridge chip only support XHCI control unit interface.In the related technology, XHCI controller and operation System is likely to occur compatibility test failure, can not obtain Microsoft certification.
Summary of the invention
A present invention at least embodiment provides a kind of USB port adaptation method and device, realizes XHCI control Device processed and operating system are compatible.
In order to reach the object of the invention, the present invention provides a kind of USB port adaptation methods, including:
After universal serial bus concentrator is inserted into USB port, from the universal serial bus concentrator Attribute information in obtain the corresponding port of different universal serial bus specifications;
The corresponding port of different universal serial bus specification in firmware is set, respectively and from the universal serial bus line concentration The corresponding port of different universal serial bus specifications obtained in the attribute information of device is consistent.
A present invention at least embodiment provides a kind of USB port adaptive device, including:
Mapping relations obtain module, for after universal serial bus concentrator is inserted into USB port, from The corresponding port of different universal serial bus specifications is obtained in the attribute information of the universal serial bus concentrator;
Adaptation module, for the corresponding port of different universal serial bus specifications to be arranged in firmware, respectively with the mapping The corresponding port of different universal serial bus specifications that Relation acquisition module obtains is consistent.
Compared with the relevant technologies, the USB port adaptation method that a present invention at least embodiment provides can be obtained The mapping relations of USB port are taken, existing mapping problems is accurately positioned, substantially reduce the time of debugging, amendment mapping Problem is easy to implement Microsoft certification.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the USB port adaptation method flow chart that one embodiment of the invention provides;
Fig. 2 is the USB port adaptive device block diagram that one embodiment of the invention provides;
Fig. 3 is that the present invention one specifically applies the USB port adaptation method flow chart that example provides;
Fig. 4 is property window schematic diagram in embodiment described in Fig. 3.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
In the related technology, since hardware layer and firmware layer USB2.0 and USB3.0 mapping relations are inconsistent, practical USB port The number opened with firmware is inconsistent, causes XHCI controller and operating system compatibility test to fail, can not obtain Microsoft certification, In the application at least embodiment, the mapping relations of hardware layer is obtained, and then modify the mapping relations of firmware layer, make itself and hardware The mapping of layer USB port corresponds.
As shown in Figure 1, one embodiment of the invention provides a kind of USB port adaptation method, including:
Step 101, it after USB Hub (hub) is inserted into USB port, is obtained from the attribute information of the USB Hub Take the corresponding port of different USB specification.
Step 102, the corresponding port of different USB specification in firmware is set, respectively with the attribute information from the USB Hub The corresponding port of different USB specification of middle acquisition is consistent.
Wherein, firmware (Firmware) is write-in EROM (rewritable read-only memory) or EEPROM (electric erazable programmable Read-only memory) or FLASH (flash memory) etc. in program.
USB port adaptation method provided in this embodiment can fast and accurately obtain the mapping of USB port Relationship is accurately positioned existing mapping problems, substantially reduces the time of debugging, and correct mapping problems, convenient for real Existing Microsoft certification.
In one embodiment, in the step 101, the corresponding port of different USB specification includes:The corresponding port USB3.0 Port corresponding with USB2.0.
Wherein, the corresponding port of different USB specification in firmware is set in step 102, respectively with the category from the USB Hub The corresponding port of different USB specification obtained in property information is unanimously such as:It is obtained from the attribute information of the USB Hub The corresponding port USB3.0 is 0018, and the corresponding port USB2.0 obtained from the attribute information of the USB Hub is 0002, It is 0002 that the corresponding port USB3.0 in firmware is then arranged, which is the corresponding port 0018, USB2.0,.
In one embodiment, described after USB Hub is inserted into USB port, it is obtained from the attribute information of the USB Hub The corresponding port of different USB specification is taken to include:
After the USB Hub is inserted into different USB ports, each USB is obtained from the attribute information of the USB Hub The corresponding port of difference USB specification under port.For example, there is 3 USB ports:Port 1, port 2, port 3 are inserted into USB Hub To after port 1, the corresponding port USB3.0 and the corresponding port USB2.0 are obtained from the attribute information of the USB Hub, i.e., The corresponding port of each USB specification under port 1;After the USB Hub is inserted into port 2, from the attribute information of the USB Hub The corresponding port middle acquisition USB3.0 and the corresponding port USB2.0, i.e., under port 2 the corresponding port of each USB specification;In USB After Hub is inserted into port 3, the corresponding port USB3.0 is obtained from the attribute information of the USB Hub and USB2.0 is corresponding Port, i.e., under port 3 the corresponding port of each USB specification.The sequence that USB Hub is inserted into each port is unlimited.
In one embodiment, the USB Hub is USB3.0Hub, and the USB port is the port USB3.0.It needs to illustrate If USB is upgraded to more highest version, such as USB 4.0, and compatible USB3.0 and USB2.0, alternatively, being only compatible with USB3.0 is equally applicable the application.At this point, believing after USB Hub is inserted into USB port from the attribute of the USB Hub Obtain the corresponding port USB4.0, the corresponding port USB3.0 and the corresponding port USB2.0 in breath, and according to from the USB Got in the attribute information of Hub information setting firmware in the corresponding port USB4.0, the corresponding port USB3.0 and The corresponding port USB2.0, so that the corresponding port of each USB specification is obtained with from the attribute information of the USB Hub in firmware The corresponding port of each USB specification arrived is consistent.
It in one embodiment, after step 102, further include step 103:Run the relevant test of USB in Microsoft certification ?.
One embodiment of the invention provides a kind of USB port mapping relations acquisition methods, including:
After USB Hub (hub) is inserted into USB port, different USB are obtained from the attribute information of the USB Hub The corresponding port of specification.
As shown in Fig. 2, one embodiment of the invention provides a kind of USB port adaptive device, including:
Mapping relations obtain module 201, for after USB Hub is inserted into USB port, from the attribute of the USB Hub The corresponding port of different USB specification is obtained in information;
Adaptation module 202 is obtained with the mapping relations respectively for the corresponding port of difference USB specification in firmware to be arranged The corresponding port of different USB specification that modulus block obtains is consistent.
In one embodiment, the corresponding port of the different USB specification includes:The corresponding port USB3.0 and USB2.0 pairs The port answered.
In one embodiment, the mapping relations obtain module 201 after USB Hub is inserted into USB port, from described The corresponding port of different USB specification is obtained in the attribute information of USB Hub includes:The different ends USB are inserted into the USB Hub After mouthful, the corresponding port of difference USB specification under each USB port is obtained from the attribute information of the USB Hub.
In one embodiment, the USB Hub is USB3.0Hub, and the USB port is the port USB3.0.
In one embodiment, the USB port adaptive device further includes test module 203, and the test module 203 is used for Run the relevant test item of USB in Microsoft certification.
The application is further illustrated below by specific embodiment.
As described in Figure 3, USB port adaptation method provided in this embodiment includes:
Step 301, into Windows operating system, equipment manager is opened, is inserted into some in USB3.0Hub The port of USB3.0, right button " Generic Superspeed USB Hub " (i.e. USB3.0) and " Generic USB Hub " are (i.e. USB2.0), open corresponding " attribute " window, i.e., " Generic Superspeed USB Hub Properties " and " Generic USB Hub Properties ", as shown in fig. 4, it can be seen that the corresponding port of USB3.0 (port) is 0018 (the Location in Fig. 4:Port_#0018), the corresponding port of USB2.0 is the 0002 (Location in Fig. 4:Port_# 0002), referred to as hardware layer mapping relations;
It should be noted that combining the attribute information of the attribute information of USB3.0 and USB2.0 in the same figure in Fig. 4 In, practical two attribute informations are not to show simultaneously.In addition, the corresponding port above-mentioned acquisition USB3.0 and USB2.0 can not also By way of opening equipment manager, the attribute information of USB Hub is directly read inside operating system.
Step 302, the Hub of USB3.0 is inserted into the others port USB3.0 (if present), record respectively USB3.0 with The corresponding port USB2.0 is to get the hardware layer mapping relations for arriving the others port USB3.0;
Step 303, firmware layer (i.e. in firmware) USB3.0 and the corresponding port USB2.0 are set, and the mapping with hardware layer is closed System corresponds, and the relevant test item of operation Microsoft certification can pass through the relevant Microsoft certification of USB.
Method provided in this embodiment can fast and accurately obtain the corresponding mapping relations of XHCI interface, be accurately positioned Existing mapping problems substantially reduces the time of debugging, has pushed the realization of Microsoft certification.
Field those of ordinary skill is appreciated that whole or certain steps, system, device in method disclosed hereinabove In functional module/unit may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in above description not necessarily corresponds to the division of physical assemblies;For example, an object Reason component can have multiple functions or a function or step can be executed by several physical assemblies cooperations.Certain components Or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by reality It applies as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable Jie In matter, computer-readable medium may include that computer storage medium (or non-transitory medium) and communication media are (or temporary Medium).As known to a person of ordinary skill in the art, term computer storage medium is included in by storing information (based on such as Calculation machine readable instruction, data structure, program module or other data) any method or technique in the volatibility implemented and Fei Yi The property lost, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or other Memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other magnetic Storage device or any other medium that can be used for storing desired information and can be accessed by a computer.In addition, It is known to a person of ordinary skill in the art to be, communication media generally comprise computer readable instructions, data structure, program module or Other data in the modulated data signal of person such as carrier wave or other transmission mechanisms etc, and may include any information delivering Medium.

Claims (10)

1. a kind of USB port adaptation method, including:
After universal serial bus concentrator is inserted into USB port, from the category of the universal serial bus concentrator The corresponding port of different universal serial bus specifications is obtained in property information;
The corresponding port of different universal serial bus specification in firmware is set, respectively and from the universal serial bus concentrator The corresponding port of different universal serial bus specifications obtained in attribute information is consistent.
2. USB port adaptation method according to claim 1, which is characterized in that the difference general serial The corresponding port of bus specification includes:The corresponding port of universal serial bus 3.0 and the corresponding port of universal serial bus 2.0.
3. USB port adaptation method according to claim 1, which is characterized in that described total in general serial After line hub is inserted into USB port, obtained from the attribute information of the universal serial bus concentrator different The corresponding port of universal serial bus specification includes:
After the universal serial bus concentrator is inserted into different USB ports, from the universal serial bus collection The corresponding port of difference universal serial bus specification under each USB port is obtained in the attribute information of line device.
4. USB port adaptation method according to claim 1, which is characterized in that the universal serial bus Hub is 3.0 hub of universal serial bus, and the USB port is 3.0 port of universal serial bus.
5. USB port adaptation method according to any one of claims 1 to 4, which is characterized in that setting firmware Behind the corresponding port of middle difference universal serial bus specification, further include:
Run the relevant test item of universal serial bus in Microsoft certification.
6. a kind of USB port adaptive device, which is characterized in that including:
Mapping relations obtain module, for after universal serial bus concentrator is inserted into USB port, from described The corresponding port of different universal serial bus specifications is obtained in the attribute information of universal serial bus concentrator;
Adaptation module, for the corresponding port of different universal serial bus specifications to be arranged in firmware, respectively with the mapping relations It is consistent to obtain the corresponding port of different universal serial bus specifications that module obtains.
7. USB port adaptive device according to claim 6, which is characterized in that the universal serial bus Hub is 3.0 hub of universal serial bus, and the USB port is 3.0 port of universal serial bus.
8. USB port adaptive device according to claim 6, which is characterized in that the difference general serial The corresponding port of bus specification includes:The corresponding port of universal serial bus 3.0 and the corresponding port of universal serial bus 2.0.
9. USB port adaptive device according to claim 6, which is characterized in that the mapping relations obtain Module is after universal serial bus concentrator is inserted into USB port, from the category of the universal serial bus concentrator The corresponding port of different universal serial bus specifications is obtained in property information includes:It is inserted into the universal serial bus concentrator After different USB ports, it is total that each general serial is obtained from the attribute information of the universal serial bus concentrator The corresponding port of different universal serial bus specifications under line end mouth.
10. according to any USB port adaptive device of claim 6 to 9, which is characterized in that described general Serial bus port adaptive device further includes test module, and the test module is for running universal serial bus in Microsoft certification Relevant test item.
CN201810638813.1A 2018-06-20 2018-06-20 A kind of USB port adaptation method and device Pending CN108829623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810638813.1A CN108829623A (en) 2018-06-20 2018-06-20 A kind of USB port adaptation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810638813.1A CN108829623A (en) 2018-06-20 2018-06-20 A kind of USB port adaptation method and device

Publications (1)

Publication Number Publication Date
CN108829623A true CN108829623A (en) 2018-11-16

Family

ID=64142999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810638813.1A Pending CN108829623A (en) 2018-06-20 2018-06-20 A kind of USB port adaptation method and device

Country Status (1)

Country Link
CN (1) CN108829623A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021825A (en) * 2007-03-28 2007-08-22 杭州华为三康技术有限公司 Method and equipment for acquiring universal serial port bus port information
CN201035568Y (en) * 2006-12-22 2008-03-12 康佳集团股份有限公司 USB equipment logical numbering and physical numbering mapping device
CN101281474A (en) * 2008-05-06 2008-10-08 北京握奇数据系统有限公司 Method and apparatus for opening appoint terminal port USB equipment
CN102098309A (en) * 2011-02-22 2011-06-15 杭州华三通信技术有限公司 Device and method for realizing multiuser access to USB equipment
US20120102255A1 (en) * 2010-10-25 2012-04-26 Moore Terrill M Usb hub supporting unequal numbers of high-speed and super-speed ports
CN103546704A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Method and television for recognizing USB (universal serial bus) devices plugged in television
CN103559162A (en) * 2013-10-28 2014-02-05 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN103853688A (en) * 2012-11-28 2014-06-11 精工爱普生株式会社 Device control apparatus, host device, and control method of the host device
CN103984656A (en) * 2013-02-07 2014-08-13 银灿科技股份有限公司 Automatic addressing and port specifying method of USB 3.0 (universal serial bus 3.0) concentrator
CN107209741A (en) * 2015-04-17 2017-09-26 惠普发展公司,有限责任合伙企业 USB is managed
CN107203409A (en) * 2017-04-10 2017-09-26 成都长天信息技术有限公司 A kind of USB re-orientation processes method and system
CN107678984A (en) * 2017-09-26 2018-02-09 厦门市美亚柏科信息股份有限公司 USB port mapping method and computer-readable recording medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201035568Y (en) * 2006-12-22 2008-03-12 康佳集团股份有限公司 USB equipment logical numbering and physical numbering mapping device
CN101021825A (en) * 2007-03-28 2007-08-22 杭州华为三康技术有限公司 Method and equipment for acquiring universal serial port bus port information
CN101281474A (en) * 2008-05-06 2008-10-08 北京握奇数据系统有限公司 Method and apparatus for opening appoint terminal port USB equipment
US20120102255A1 (en) * 2010-10-25 2012-04-26 Moore Terrill M Usb hub supporting unequal numbers of high-speed and super-speed ports
CN102098309A (en) * 2011-02-22 2011-06-15 杭州华三通信技术有限公司 Device and method for realizing multiuser access to USB equipment
CN103853688A (en) * 2012-11-28 2014-06-11 精工爱普生株式会社 Device control apparatus, host device, and control method of the host device
CN103984656A (en) * 2013-02-07 2014-08-13 银灿科技股份有限公司 Automatic addressing and port specifying method of USB 3.0 (universal serial bus 3.0) concentrator
CN103546704A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Method and television for recognizing USB (universal serial bus) devices plugged in television
CN103559162A (en) * 2013-10-28 2014-02-05 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN107209741A (en) * 2015-04-17 2017-09-26 惠普发展公司,有限责任合伙企业 USB is managed
CN107203409A (en) * 2017-04-10 2017-09-26 成都长天信息技术有限公司 A kind of USB re-orientation processes method and system
CN107678984A (en) * 2017-09-26 2018-02-09 厦门市美亚柏科信息股份有限公司 USB port mapping method and computer-readable recording medium

Similar Documents

Publication Publication Date Title
US8812983B2 (en) Automatic magnification and selection confirmation
US20130326278A1 (en) Server and method of manipulation in relation to server serial ports
US10564874B2 (en) Dynamically managing a table of contents
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
US20170052884A1 (en) Generic test automation for restful web services applications
CN106095528B (en) A method of detection virtual machine drive
US9940224B2 (en) Automatic remote execution of an application
US11029981B2 (en) Text resources processing in an application
WO2015078294A1 (en) Kernel module loading method and apparatus
US20170371687A1 (en) Automated globalization enablement on development operations
CN106484719B (en) Method and terminal for expanding mobile phone storage
US20170371762A1 (en) Framework for automated globalization enablement on development operations
CN105607869B (en) A kind of quick formatting and the method using magnetic disk of virtual machine
US10585618B2 (en) Providing access to virtual sequential access volume
US10579347B2 (en) Self re-encoding interpreted application
US20180203827A1 (en) Lightweight tracking of substituted characters in text fields
WO2017054697A1 (en) Method and device for implementing access of hba card to sata disk in sas storage system
CN108829623A (en) A kind of USB port adaptation method and device
US20120110211A1 (en) Management of detected devices coupled to a host machine
CN110362324A (en) A kind of network interface card upgrade method and device
CN110554915A (en) Information processing method and device, computer storage medium and terminal
CN102637133B (en) Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems
CN113076273B (en) Component access method, device, electronic equipment, storage medium and program product
US20230289192A1 (en) Reversible virtual factory reset
CN111124882B (en) Method and device for realizing application test, computer storage medium and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116