CN101963950A - Method for positioning USB port in connection of device - Google Patents

Method for positioning USB port in connection of device Download PDF

Info

Publication number
CN101963950A
CN101963950A CN 201010500503 CN201010500503A CN101963950A CN 101963950 A CN101963950 A CN 101963950A CN 201010500503 CN201010500503 CN 201010500503 CN 201010500503 A CN201010500503 A CN 201010500503A CN 101963950 A CN101963950 A CN 101963950A
Authority
CN
China
Prior art keywords
equipment
port
usb hub
usb
host computer
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.)
Granted
Application number
CN 201010500503
Other languages
Chinese (zh)
Other versions
CN101963950B (en
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.)
Feitian Technologies Co Ltd
Original Assignee
Beijing Feitian Technologies 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 Beijing Feitian Technologies Co Ltd filed Critical Beijing Feitian Technologies Co Ltd
Priority to CN2010105005037A priority Critical patent/CN101963950B/en
Publication of CN101963950A publication Critical patent/CN101963950A/en
Application granted granted Critical
Publication of CN101963950B publication Critical patent/CN101963950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for positioning a USB port in connection of a device, relates to the field of computer communication and can solve the problem that an upper computer can not position the USB port in connection of the ordinary USB device. The method comprises the following steps: using the upper computer to read a path of a first device connected on the upper computer, obtaining device connection information on the current port of a current USB HUB, judging the current port according to the device connection information, obtaining the path of the ordinary USB device under a driving program when the ordinary USB device is connected on the current port, looking up first information under the paths of a registration form of the ordinary USB device according to manufacturer identifier information and device identifier information in the device connection information, using the upper computer to associate the path of the first device with the current port and positioning the USB port in connection of the first device, wherein when the path of the first device contains the first information, the situation represents that the first device and the ordinary USB device are the same device.

Description

The method of the USB port that a kind of positioning equipment connected
Technical field
The present invention relates to computer communication field, particularly the method for the USB port that a kind of positioning equipment connected.
Background technology
USB HUB a kind ofly can be expanded into a plurality of USB interface that work alone with a USB interface, and the equipment that these USB interface can be used simultaneously, and it is a kind of special USB device.And USB HUB directly links to each other with computer, need not external power supply, and simply handy, computer is discerned installation automatically, need not driver, plug and play.
At present, along with popularizing of computer, correspondingly driven the develop rapidly that computer comprises the peripheral product of USB HUB.Characteristics such as USB HUB is easy to use with it, good reliability have been subjected to consumer's popular welcome.
Therefore but owing to do not have clear and definite sign on the USB HUB, when being connected with the equipment of a plurality of same-types on a USB HUB or a plurality of USB HUB, host computer can't obtain the corresponding relation of equipment and port, also USB port that just can't positioning equipment connected.
Summary of the invention
In order to solve deficiency of the prior art, the invention provides the method for the USB port that a kind of positioning equipment connects, described method comprises:
Host computer reads the path that is connected first equipment on himself;
Described host computer is inquired about when front port current USB HUB's, obtains described equipment link information on front port, and according to described equipment link information the described front port of working as is judged;
When judgement obtain described when connect on the front port be generic USB equipment the time;
Described host computer obtains the path of described generic USB equipment under driver;
Described host computer is searched the first information according to producer's identifier information in the described equipment link information and device identifier information under the registration table path of described generic USB equipment;
Described host computer judges in the path of described first equipment whether comprise the described first information;
When in judgement obtains the path of described first equipment, comprising the described first information, represent that then described first equipment and described generic USB equipment are same equipment, described host computer carries out relatedly with described when front port the path of described first equipment, locatees the USB port that described first equipment is connected.
Beneficial effect of the present invention is: the invention provides the method for the USB port that a kind of positioning equipment connects, by method provided by the invention just can positioning equipment connects USB port.
Description of drawings
The process flow diagram of the method for the USB port that a kind of HID of location equipment that Fig. 1 provides for present embodiment 1 is connected;
The process flow diagram of the method for the USB port that a kind of CCID of location equipment that Fig. 2 provides for present embodiment 2 is connected;
A kind of process flow diagram of locating the method for the USB port that scsi device connects that Fig. 3 provides for present embodiment 3.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is done detailed description further below in conjunction with accompanying drawing.
Embodiment 1
The embodiment of the invention provides the method for the USB port that a kind of positioning equipment connected, particularly, be that example describes with HID equipment in the present embodiment, HID equipment is connected on the host computer by USB HUB, and the USB HUB that wherein is connected between host computer and the HID equipment can be one or more.
Referring to Fig. 1, the method for the USB port that a kind of HID of location equipment is connected, the specific implementation step is as follows:
Step 101: host computer reads the HID path that is connected oneself HID equipment on one's body;
Wherein, the HID equipment that links to each other with host computer can be one or more, and when a plurality of HID equipment, then host computer reads the HID path of all HID equipment, particularly, is that example describes with a HID equipment in the present embodiment;
Further, the HID path can be read from the parameter that WM_DEVICECHANGE message is imported into, also can enumerate the HID equipment that has connected by calling SetupDiGetDeviceInterfaceDetail, obtains its HID path;
Particularly, read the HID path that obtains and be? hid#vid_096e﹠amp; Pid_0304#7﹠amp; 2c7bc087﹠amp; 0﹠amp; 0000#{4d1e55b2-f16f-11cf-88cb-001111000030}.
Step 102: host computer is inquired about master controller, obtains the title of the root USB HUB that connects on the master controller;
In the present embodiment, host computer specifically by master controller being sent the IOCTL_USB_GET_ROOT_HUB_NAME request, obtains the title of the root USBHUB that is connected on the master controller.
Step 103: host computer is opened current USB HUB, and this current USB HUB is inquired about, and obtains the port number of current USB HUB;
In the present embodiment, when being the equipment that connects on for the first time to this master controller when inquiring about, the root USB HUB that then connects on this master controller promptly is current USB HUB;
Particularly, the method that current USB HUB is inquired about is:
Host computer sends the IOCTL_USB_GET_NODE_INFORMATION request to current USB HUB, obtains the port number of current USB HUB.
Step 104: host computer is inquired about when front port current USB HUB's, obtains the equipment link information on front port;
In the present embodiment, when being when for the first time this current USB HUB being inquired about, then first port of this current USBHUB is then for working as front port;
Wherein, the method for inquiring about when front port to current USB HUB is:
Host computer is asked when front port sends IOCTL_USB_GET_NODE_CONNECTION_INFORMATION to current USB HUB's, obtain the equipment link information on this port, wherein specifically comprise information such as connection status zone bit, HUB zone bit, producer's identifier information and device identifier information in the equipment link information;
Particularly, one of them equipment link information of acquisition is:
USB_NODE_CONNECTION_INFORMATION connectionInfo
connectionInfo.connectionIndex=0x00000003
connectionInfo.DeviceDescriptor.blength=0x12
connectionInfo.DeviceDescriptor.bDescriptorType=0x01
connectionInfo.DeviceDescriptor.bcdUSB=0x0110
connectionInfo.DeviceDescriptor.bDeviceClass=0x00
connectionInfo.DeviceDescriptor.bDeviceSubClass=0x00
connectionInfo.DeviceDescriptor.bDeviceProtocol=0x00
connectionInfo.DeviceDescriptor.bMaxPacketSize0=0x10
connectionInfo.DeviceDescriptor.idVendor=0x096e
connectionInfo.DeviceDescriptor.idProduct=0x0304
connectionInfo.DeviceDescriptor.bcdDevice=0x0104
connectionInfo.DeviceDescriptor.iManufacturer=0x01
connectionInfo.DeviceDescriptor.iProduct=0x02
connectionInfo.DeviceDescriptor.iSerialNumber=0x00
connectionInfo.DeviceDescriptor.bNumConfigurations=0x01
connectionInfo.CurrentConfigurationValue=0x01
connectionInfo.LowSpeed=0x00
connectionInfo.DeviceIsHub=0x00
connectionInfo.DeviceAddress=0x0002
connectionInfo.NumberOfOpenPipes=0x00000002
connectionInfo.ConnectionStatus=0x00000001
connectionInfo.PipeList=0x00150f33。
Step 105: judge working as front port according to the equipment link information that obtains, obtain on front port, not having connection device if judge, then execution in step 106, if that judgement obtains connecting on front port is USBHUB, then execution in step 111, if what judgement obtained connecting on front port is generic USB equipment, then execution in step 112;
In the present embodiment, specific as follows according to the equipment link information that obtains to the method for judging when front port:
Earlier the connection status zone bit connectionInfo.ConnectionStatus in the equipment link information is judged, when judgement obtains connection status zone bit connectionInfo.ConnectionStatus and is 0x00000001, then expression is deserved to have connected equipment on the front port, when judgement obtained connection status zone bit connectionInfo.ConnectionStatus and is 0x00000000, then expression deserved do not have connection device on the front port;
Further, when judgement obtains connection status zone bit connectionInfo.ConnectionStatus and is 0x00000001, also need the HUB zone bit connectionInfo.DeviceIsHub in the judgment device link information to be for 0x00 or to be 0x01, when judgement obtains HUB zone bit connectionInfo.DeviceIsHub is 0x01, that then expression is deserved to connect on the front port is USB HUB, when judgement obtains HUB zone bit connectionInfo.DeviceIsHub is 0x00, and what then expression was deserved to connect on the front port is generic USB equipment.
Step 106: host computer judges whether to have inquired about all of the port of current USB HUB, if then execution in step 107, if not, then execution in step 110;
In the present embodiment, host computer specifically judges whether to have inquired about all of the port of current USB HUB according to the port number of the current USB HUB that is obtained in the step 103.
Step 107: judge whether current USB HUB exists upper level USB HUB, if then execution in step 108, if not, then execution in step 109;
Step 108: the upper level USB HUB of current USB HUB as current USB HUB, is turned back to step 106 then;
Step 109: host computer judges whether to have inquired about all master controllers, if then end operation, and prompting can't position the HID equipment in the step 101, if not, then turns back to step 102 pair next master controller and inquires about;
In the present embodiment, judge whether that the method for having inquired about all master controllers is specially:
Host computer can be known the number of master controller in advance by traversal managing hardware device device, after having inquired about a master controller, then then inquires about host computer next master controller, when the number of the master controller that obtains up to number and the above-mentioned traversal of the master controller of inquiry equates, then all master controllers have been inquired about in expression, when the number of knowing master controller in advance is 1, then inquired about behind the master controller then directly end operation, and prompting can't position to the HID equipment in the step 101;
Perhaps,
Host computer is opened device name beginning successively and be the equipment of HDC, as HDC1, HDC2, HDC3 ..., if open success, then also there is the master controller of not inquiring about in explanation, if open failure, then illustrates and has inquired about all master controllers;
Be that example describes specifically to comprise a plurality of master controllers on the host computer, when having inquired about a master controller, and behind all devices that this master controller connected, host computer continues the next master controller of inquiry, and all devices that this master controller connected, all inquire about up to all master controllers and to finish;
Perhaps, in the present embodiment, when host computer comprises a plurality of master controller, the method of inquiry can also be: host computer master controller of inquiry earlier, obtain the title of the root USB HUB that connects on this master controller, then do not continue this root of inquiry USB HUB then, but begin to inquire about next master controller, all inquire about up to all master controllers and to finish, each root USB HUB that begins to inquire about on the master controller again and connected;
Further, in actual application, also might only contain a master controller on the host computer, then do not need execution in step 109 in the present embodiment this moment again, directly inquire about the root USBHUB that connects on this master controller, and the equipment that connects on the root USB HUB gets final product.
Step 110: with current USB HUB when the next port of front port as working as front port, and turn back to step 104;
Step 111: the USB HUB that connects as current USB HUB, is turned back to step 103 then;
Step 112: host computer obtains the path DriverKeyName of this generic USB equipment below driver;
Particularly, because in actual application, the equipment that may connect a plurality of same types on the host computer, as a plurality of HID equipment, therefore only can not correctly navigate to the port that this HID equipment is connected with device identifier information PID, so also need to utilize DriverKeyName in the present embodiment with the identifier information VID of producer in the equipment link information of step 104 acquisition;
In the present embodiment, the concrete grammar that obtains DriverKeyName is:
Host computer sends the IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME request to this generic USB equipment, receive the relevant information that this generic USB equipment returns, the information of wherein returning comprises parameter DriverKeyName, and the structure of the information of returning specifically is defined as USB_NODE_CONNECTION_DRIVERKEY_NAME;
Wherein, it is as follows to obtain the code of DriverKeyName:
USB_NODE_CONNECTION_DRIVERKEY_NAME driverKeyNameS;
PCHAR driverKeyName;
BOOL success;
ULONG nBytes;
success=DeviceIoControl(HubHandle,
IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME,
&?driverKeyNameS,
sizeof(driverKeyNameS),
&driverKeyNameS,
sizeof(driverKeyNameS),
&nBytes,
NULL);
If?(success)
driverKeyName=driverKeyNameS->DriverKeyName;
//driverKeyName={745A17A0-74D3-11D0-B6FE-00A0C90F57DA}\0120
Particularly, the DriverKeyName that acquires in the present embodiment is: 745A17A0-74D3-11D0-B6FE-00A0C90F57DA} 0120
Step 113:, under the registration table path of this generic USB equipment, search the subitem of the data and the driverKeyName coupling of Driver key assignments according to VID and the PID in the equipment link information of step 104 acquisition;
In the present embodiment, VID and the PID in the equipment link information of step 104 acquisition is respectively 0x096e and 0x0304;
Searching the data of Driver key assignments and the method for the subitem that driverKeyName mates is specially:
Search this generic USB equipment registration table path HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Enum USB Vid_096e﹠amp; All subitems below the Pid_0304 find the subitem of the data of Driver key assignments and driverKeyName coupling, the data that promptly find the Driver key assignments for 745A17A0-74D3-11D0-B6FE-00A0C90F57DA} 0120 subitem;
Particularly, the subitem that finds in the present embodiment is 6﹠amp; C195ce﹠amp; 0﹠amp; 3.
Step 114: the data that read the ParentIdPrefix key assignments under the subitem that finds;
Particularly, in the present embodiment, the data that read the ParentIdPrefix key assignments that obtains are 7﹠amp; 2c7bc087﹠amp; 0.
Step 115: determining step 101 reads and whether comprises step 114 in the HID path that obtains and read the data that obtain the ParentIdPrefix key assignments, if not, then turn back to step 106, if, represent then that target HID equipment promptly is connected and deserve on the front port execution in step 116;
In the present embodiment, be specially judge the HID path? hid#vid_096e﹠amp; Pid_0304#7﹠amp; 2c7bc087﹠amp; 0﹠amp; The data 7﹠amp that whether comprises the ParentIdPrefix key assignments among the 0000#{4d1e55b2-f16f-11cf-88cb-001111000030}; 2c7bc087﹠amp; 0, hence one can see that, comprises the data of ParentIdPrefix key assignments in the step 101HID path, therefore represents that target HID equipment promptly is connected on this USB port execution in step 116.
Step 116: host computer carries out relatedly with above-mentioned when front port the HID path of the HID equipment in the step 101, locatees the front port of working as that this HID equipment connected.
Further, in the present embodiment, step 105 to step 111 can also realize as follows:
Step 105 ': judge working as front port according to the equipment link information of obtaining, obtain on front port, not having connection device if judge, execution in step 106 ' then, if that judgement obtains connecting on front port is USBHUB, execution in step 111 ' then, if what judgement obtained connecting on front port is generic USB equipment, then execution in step step 112;
Step 106 ': host computer judges whether to have inquired about all of the port of current USB HUB, if not, execution in step 107 ' then, if, execution in step 108 ' then;
Step 107 ': with current USB HUB when the next port of front port as working as front port, and turn back to step 104;
Step 108 ': judge whether to exist the USB HUB that has numbered and do not inquired about, if, execution in step 109 ' then, if not, execution in step 110 ' then;
Step 109 ': will number top USB HUB as current USB HUB, and turn back to step 103;
Step 110 ': host computer judges whether to have inquired about all master controllers, if then end operation, and prompting can't position the HID equipment in the step 101, if not, then returns step 102 pair next master controller and inquires about;
Step 111 ': host computer judges whether to exist the USB HUB that has numbered, and if not, then the USB HUB with this connection is numbered a USB HUB, turn back to step 106 ', if, then follow already present numbering and continue the USB HUB of this connection is numbered, turn back to step 106 '.
Present embodiment provides the method for the USB port that a kind of HID of location equipment connected, and just can locate the USB port that HID equipment is connected by the method that present embodiment provides.
Embodiment 2
The embodiment of the invention provides the method for the USB port that a kind of positioning equipment connected, particularly, be that example describes with CCID equipment in the present embodiment, CCID equipment is connected on the host computer by USB HUB, and the USB HUB that wherein is connected between host computer and the CCID equipment can be one or more.
Referring to Fig. 2, the method for the USB port that a kind of CCID of location equipment is connected, the specific implementation step is as follows:
Step 201: host computer reads the USB path that is connected oneself CCID equipment on one's body;
Wherein, the CCID equipment that links to each other with host computer can be one or more, and when a plurality of CCID equipment, then host computer reads the USB path of all CCID equipment, particularly, is that example describes with a CCID equipment in the present embodiment;
Further, the USB path of CCID equipment can be read from the parameter that WM_DEVICECHANGE message is imported into, also can enumerate the CCID equipment that has connected by calling SetupDiGetDeviceInterfaceDetail, obtains its USB path;
Particularly, in the present embodiment, the USB path of reading the CCID equipment that obtains is ? usb#vid_096e﹠amp; Pid_070f#6﹠amp; C195ce﹠amp; 0﹠amp; 2#{a5dcbf10-6530-11d2-901f-00c04fb9 51ed}
Step 202: host computer is inquired about master controller, obtains the title of the root USB HUB that connects on the master controller;
In the present embodiment, host computer specifically by master controller being sent the IOCTL_USB_GET_ROOT_HUB_NAME request, obtains the title of the root USBHUB that is connected on the master controller.
Step 203: host computer is opened current USB HUB, and this current USB HUB is inquired about, and obtains the port number of this current USB HUB;
In the present embodiment, when being the equipment that connects on for the first time to this master controller when inquiring about, the root USB HUB that then connects on the master controller promptly is current USB HUB;
And the method that current USB HUB is inquired about is specially:
Host computer sends the IOCTL_USB_GET_NODE_INFORMATION request to current USB HUB, obtains the port number of this current USB HUB.
Step 204: host computer is inquired about when front port current USB HUB's, obtains the equipment link information on front port;
In the present embodiment, when being when for the first time this current USB HUB being inquired about, then first port of this current USBHUB is and works as front port;
Wherein, the method for inquiring about when front port to current USB HUB is;
Host computer is asked when front port sends IOCTL_USB_GET_NODE_CONNECTION_INFORMATION to current USB HUB's, obtain the equipment link information of deserving on the front port, wherein specifically comprise information such as connection status zone bit, HUB zone bit, producer's identifier information and device identifier information in the equipment link information;
Particularly, one of them the equipment link information that obtains in the present embodiment is:
USB_NODE_CONNECTION_INFORMATION connectionInfo;
connectionInfo.ConnectionIndex=0x00000002;
connectionInfo.DeviceDescriptor.bLength=0x12;
connectionInfo.DeviceDescriptor.bDescriptorType=0x01;
connectionInfo.DeviceDescriptor.bcdUSB=0x0110
connectionInfo.DeviceDescriptor.bDeviceClass=0x00
connectionInfo.DeviceDescriptor.bDeviceSubClass=0x00
connectionInfo.DeviceDescriptor.bDeviceProtocol=0x00
connectionInfo.DeviceDescriptor.bMaxPacketSize0=0x08
connectionInfo.DeviceDescriptor.idVendor=0x096e
connectionInfo.DeviceDescriptor.idProduct=0x070f
connectionInfo.DeviceDescriptor.bcdDevice=0x2100
connectionInfo.DeviceDescriptor.iManufacturer=0x01
connectionInfo.DeviceDescriptor.iProduct=0x02
connectionInfo.DeviceDescriptor.iSerialNumber=0x00
connectionInfo.DeviceDescriptor.bNumConfigurations=0x01
connectionInfo.CurrentConfigurationValue=0x01
connectionInfo.LowSpeed=0x00
connectionInfo.DeviceIsHub=0x00
connectionInfo.DeviceAddress=0x0002
connectionInfo.NumberOfOpenPipes=0x00000002
connectionInfo.ConnectionStatus=0x00000001
connectionInfo.PipeList=0x00170093
Step 205: judge working as front port according to the equipment link information that obtains, obtain on front port, not having connection device if judge, then execution in step 206, if that judgement obtains connecting on front port is USBHUB, then execution in step 210, if what judgement obtained connecting on front port is generic USB equipment, then execution in step 211;
In the present embodiment, specific as follows according to the equipment link information that obtains to the method for judging when front port:
Earlier the connection status zone bit connectionInfo.ConnectionStatus in the equipment link information is judged, when judgement obtains connection status zone bit connectionInfo.ConnectionStatus and is 0x00000001, then expression is deserved to have connected equipment on the front port, when judgement obtained connection status zone bit connectionInfo.ConnectionStatus and is 0x00000000, then expression deserved do not have connection device on the front port;
Further, when judgement obtains connection status zone bit connectionInfo.ConnectionStatus and is 0x00000001, also need the HUB zone bit connectionInfo.DeviceIsHub in the judgment device link information to be for 0x00 or to be 0x01, when judgement obtains HUB zone bit connectionInfo.DeviceIsHub is 0x01, that then expression is deserved to connect on the front port is USB HUB, when judgement obtains HUB zone bit connectionInfo.DeviceIsHub is 0x00, and what then expression was deserved to connect on the front port is generic USB equipment.
Step 206: host computer judges whether to have inquired about all of the port of current USB HUB, if then execution in step 207, if not, then execution in step 209;
In the present embodiment, host computer specifically judges whether to have inquired about all of the port of current USB HUB according to the port number of the current USB HUB that is obtained in the step 203.
Step 207: judge whether current USB HUB exists upper level USB HUB, if then execution in step 208, if not, end operation then, and prompting can't position the CCID equipment in the step 201;
Step 208: the upper level USB HUB of current USB HUB as current USB HUB, is turned back to step 206 then;
Step 209: with current USB HUB when the next port of front port as working as front port, and turn back to step 204;
Step 210: the USB HUB that connects as current USB HUB, is turned back to step 203 then;
Step 211: host computer obtains the path DriverKeyName of this generic USB equipment below driver;
Particularly, because in actual application, the equipment that may connect a plurality of same types on the host computer, as a plurality of CCID equipment, therefore only can not correctly navigate to the port that said CCID equipment is connected in the step 201 with device identifier information PID, so also need to utilize DriverKeyName in the present embodiment with the identifier information VID of producer in the equipment link information of step 204 acquisition;
In the present embodiment, the method of obtaining DriverKeyName is specially: host computer sends IOCTL_USB_GET NODE_CONNECTION_DRIVERKEY_NAME request to this generic USB equipment, receive the relevant information that above-mentioned generic USB equipment returns, the information of wherein returning comprises parameter DriverKeyName, and the structure of the information of returning specifically is defined as USB_NODE_CONNECTION_DRIVERKEY_NAME);
Particularly, the DriverKeyName that acquires in the present embodiment is: 50dd5230-ba8a-11d1-bf5d-0000f805f530} 0005.
Step 212:, under the registration table path of above-mentioned generic USB equipment, search the subitem of the data and the driverKeyName coupling of Driver key assignments according to VID and the PID in the equipment link information of step 204 acquisition;
In the present embodiment, VID and the PID in the equipment link information of step 204 acquisition is respectively 0x096e and 0x070f;
The method of searching the subitem of the data of Driver key assignments and driverKeyName coupling is: HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Enum USB Vid_096e﹠amp; The data of searching the Driver key assignments below the Pid_070f path for 50dd5230-ba8a-11d1-bf5d-0000f805f530} 0005 subitem, particularly, the subitem that finds in the present embodiment is 6﹠amp; C195ce﹠amp; 0﹠amp; 2.
Step 213: determining step 201 reads in the CCID path that obtains whether comprise the title that step 212 is searched the subitem that obtains, if not, then turn back to step 206, if, represent then in the step 201 that said CCID equipment promptly is connected and deserve on the front port execution in step 214;
In the present embodiment, be specially judgement CCID path ? usb#vid_096e﹠amp; Pid_070f#6﹠amp; C195ce﹠amp; 0﹠amp; 2#{a5dcbf10-6530-11d2-901f-00c04fb9 51ed}In whether comprise the title 6﹠amp of subitem; C 195ce﹠amp; 0﹠amp; Therefore 2, hence one can see that, comprises the title of subitem in the CCID path, represents that said CCID equipment promptly is connected in the step 201 to deserve on the front port execution in step 214.
Step 214: host computer with said CCID device path in the step 201 with carry out relatedly when front port, locate the USB port that this CCID equipment is connected.
In the present embodiment, specifically only comprising a master controller with host computer is that example describes, therefore in the present embodiment when there is not upper level USB HUB in the current USB HUB of step 207 judgement, then direct end operation, and point out and can't the CCID equipment in the step 301 be positioned, do not need to go again to inquire about next master controller;
Perhaps, can also be the same in the present embodiment with embodiment 1, host computer comprises a plurality of master controllers, then host computer need be inquired about these a plurality of master controllers, querying method is identical with querying method described in the embodiment 1, be specially: when present embodiment step 207 judges that there is not upper level USBHUB in current USB HUB, then host computer continues to judge whether to have inquired about all master controllers, if, then end operation, and prompting can't position the CCID equipment in the step 201, if not, then turn back to step 202 and continue next master controller is inquired about, all inquire about up to all master controllers and finish;
The method of inquiry can also be: host computer master controller of inquiry earlier, obtain the title of the root USB HUB that connects on this master controller, then do not continue this root of inquiry USB HUB then, but begin to inquire about next master controller, all inquire about up to all master controllers and to finish, each root USB HUB that begins to inquire about on the master controller again and connected.
Present embodiment provides the method for the USB port that a kind of CCID of location equipment connected, and just can locate the USB port that CCID equipment is connected by the method that present embodiment provides.
Further,Present embodiment provides the method for the USB port that a kind of CCID of location equipment connected, and present embodiment only describes with a kind of method, and in actual application, there is multiple localization method, specifically in the present invention, the method of the USB port that the another kind location HID equipment that embodiment 1 provides is connected also is applicable to the USB port that the said location of present embodiment CCID equipment is connected, and performing step is similar to it, therefore no longer repeats at this.
Embodiment 3
The embodiment of the invention provides the method for the USB port that a kind of positioning equipment connected, particularly, be that example describes in the present embodiment with the scsi device, scsi device is connected on the host computer by USB HUB, and the USB HUB that wherein is connected between host computer and the scsi device can be one or more.
Referring to Fig. 3, a kind of method of locating the USB port that scsi device connects, the specific implementation step is as follows:
Step 301: host computer reads the SCSI path that is connected oneself scsi device on one's body;
Wherein, the scsi device that links to each other with host computer can be one or more, and when a plurality of scsi device, then host computer reads the SCSI path of all scsi devices, particularly, is that example describes with a scsi device in the present embodiment;
Further, read the SCSI path of scsi device and can from the parameter that WM_DEVICECHANGE message is imported into, read, also can enumerate the scsi device that has connected, obtain its SCSI path by calling SetupDiGetDeviceInterfaceDetail;
Particularly, in the present embodiment, read the SCSI path that obtains and be ? usbstor#cdrom﹠amp; Ven_usb﹠amp; Prod_token_2000auto﹠amp; Rev_1.00#7﹠amp; B4952b9﹠amp; 0#{53f 56308-b6bf-11d0-94f2-00a0c91efb8b}
Step 302: host computer is inquired about master controller, obtains the title of the root USB HUB that connects on the master controller;
In the present embodiment, host computer specifically by master controller being sent the IOCTL_USB_GET_ROOT_HUB_NAME request, obtains the root USB that is connected on the master controller
The title of HUB.
Step 303: host computer is opened current USB HUB, and this current USB HUB is inquired about, and obtains the port number of this current USB HUB;
In the present embodiment, when being the equipment that connects on for the first time to this master controller when inquiring about, the root USB HUB that then connects on the master controller promptly is current USB HUB;
And the method that current USB HUB is inquired about is specially:
Host computer sends the IOCTL_USB_GET_NODE_INFORMATION request to current USB HUB, obtains the port number of this current USB HUB.
Step 304: host computer is inquired about when front port current USB HUB's, obtains the equipment link information on front port;
In the present embodiment, when being when for the first time this current USB HUB being inquired about, then first port of this current USBHUB is and works as front port;
Wherein, the method for inquiring about when front port to current USB HUB is:
Host computer is asked when front port sends IOCTL_USB_GET_NODE_CONNECTION_INFORMATION to current USB HUB's, obtain the equipment link information of deserving on the front port, wherein specifically comprise information such as connection status zone bit, HUB zone bit, producer's identifier information and device identifier information in the equipment link information;
Particularly, the equipment link information of certain port that obtains in the present embodiment is:
USB_NODE_CONNECTION_INFORMATION connectionInfo;
connectionInfo.ConnectionIndex=0x00000004;
connectionInfo.DeviceDescriptor.bLength=0x12;
connectionInfo.DeviceDescriptor.bDescriptorType=0x01;
connectionInfo.DeviceDescriptor.bcdUSB=0x0110
connectionInfo.DeviceDescriptor.bDeviceClass=0x00
connectionInfo.DeviceDescriptor.bDeviceSubClass=0x00
connectionInfo.DeviceDescriptor.bDeviceProtocol=0x00
connectionInfo.DeviceDescriptor.bMaxPacketSize0=0x08
connectionInfo.DeviceDescriptor.idVendor=0x096e
connectionInfo.DeviceDescriptor.idProduct=0x0305
connectionInfo.DeviceDescriptor.bcdDevice=0x2007
connectionInfo.DeviceDescriptor.iManufacturer=0x01
connectionInfo.DeviceDescriptor.iProduct=0x02
connectionInfo.DeviceDescriptor.iSerialNumber=0x00
connectionInfo.DeviceDescriptor.bNumConfigurations=0x01
connectionInfo.CurrentConfigurationValue=0x01
connectionInfo.LowSpeed=0x00
connectionInfo.DeviceIsHub=0x00
connectionInfo.DeviceAddress=0x0002
connectionInfo.NumberOfOpenPipes=0x00000002
connectionInfo.ConnectionStatus=0x00000001
connectionInfo.PipeList=0x001704b3
Step 305: host computer is judged working as front port according to the equipment link information, obtain on front port, not having connection device if judge, then execution in step 306, if judge the USBHUB that is that obtains on front port, connecting, execution in step 310, if what judgement obtained connecting on front port is generic USB equipment, then execution in step 311;
In the present embodiment, according to the equipment link information method of judging when front port is specially:
Connection status zone bit connectionInfo.ConnectionStatus in the equipment link information is judged, when connection status zone bit connectionInfo.ConnectionStatus is 0x00000001, then expression has connected equipment on front port, when connection status zone bit connectionInfo.ConnectionStatus was 0x00000000, then expression did not have connection device on front port;
Further, when connection status zone bit connectionInfo.ConnectionStatus is 0x00000001, also need the HUB zone bit connectionInfo.DeviceIsHub in the judgment device link information further to be for 0x00 or to be 0x01, if connectionInfo.DeviceIsHub is 0x01, that then expression is deserved to connect on the front port is USB HUB, if connectionInfo.DeviceIsHub is 0x00, what then expression was deserved to connect on the front port is generic USB equipment.
Step 306: host computer judges whether to have inquired about all of the port of current USB HUB, and if not, then execution in step 307, if then execution in step 308;
In the present embodiment, host computer specifically judges whether to have inquired about all of the port of current USB HUB according to the port number of the current USB HUB that is obtained in the step 303.
Step 307: with current USB HUB when the next port of front port as working as front port, and turn back to step 304;
Step 308: judge whether to exist the USB HUB that has numbered and do not inquired about, if not, then end operation, and prompting can't position the scsi device in the step 301, if then execution in step 309;
Step 309: will number top USB HUB as current USB HUB, and turn back to step 303;
Step 310: host computer judges whether to exist the USB HUB that has numbered, and if not, then the USB HUB with this connection is numbered a USB HUB, turn back to step 306 then, if, then follow already present numbering and continue the USB HUB of this connection is numbered, turn back to step 306 then;
Step 311: host computer obtains the path DriverKeyName of this generic USB equipment below driver;
Particularly, because in actual application, the equipment that may connect a plurality of same types on the host computer, as a plurality of scsi devices, therefore identifier information VID of producer in the equipment link information that only obtains with step 304 and the device identifier information PID port that can not correctly navigate to this scsi device place is so also need to utilize DriverKeyName in the present embodiment;
In the present embodiment, the method of obtaining DriverKeyName is specially host computer and sends the IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME request to this generic USB equipment, receive the relevant information that this generic USB equipment returns, the information of wherein returning comprises parameter DriverKeyName, and the structure of the information of returning specifically is defined as USB_NODE_CONNECTION_DRIVERKEY_NAME);
Particularly, the DriverKeyName that acquires in the present embodiment is: 36fc9e60-c465-11cf-8056-444553540000} 0120.
Step 312:, under the registration table path of above-mentioned generic USB equipment, search the subitem of the data and the driverKeyName coupling of Driver key assignments according to VID and the PID in the equipment link information of step 304 acquisition;
In the present embodiment, VID and the PID in the equipment link information of step 304 acquisition is respectively 0x096e and 0x0305;
The method of searching the subitem of the data of Driver key assignments and driverKeyName coupling is: HKEY_LOCAL MACHINE SYSTEM CurrentControlSet Enum USB Vid_096e﹠amp; The data of searching the Driver key assignments below the Pid_0305 for 36fc9e60-c465-11cf-8056-444553540000} 0120 subitem, the subitem that specifically finds is 6﹠amp; C195ce﹠amp; 0﹠amp; 4.
Step 313: the data that read the ParentIdPrefix key assignments under the subitem that finds;
In the present embodiment, the data that read the ParentIdPrefix key assignments that obtains are 7﹠amp; B4952b9﹠amp; 0
Step 314: determining step 301 reads and whether comprises step 313 in the SCSI path that obtains and read the data that obtain the ParentIdPrefix key assignments, if not, then turn back to step 306, if, represent then in the step 301 that said scsi device promptly is connected and deserve on the front port execution in step 315;
In the present embodiment, be specially judgement SCSI path ? usb#vid_096e﹠amp; Pid_070f#6﹠amp; C195ce﹠amp; 0﹠amp; 2#{a5dcbf10-6530-11d2-901f-00c04fb9 51ed}In whether comprise the title 6﹠amp of subitem; C195ce﹠amp; 0﹠amp; Therefore 2, hence one can see that, comprises the title of subitem in the SCSI path, represents that said scsi device promptly is connected in the step 301 to deserve on the front port execution in step 315.
Step 315: host computer carries out relatedly with above-mentioned when front port said scsi device path in the step 301, locatees the USB port that this scsi device connects.
In the present embodiment, specifically only comprising a master controller with host computer is that example describes, therefore in the present embodiment when there is not the USB HUB that has numbered and do not inquired about in step 308 judgement, then direct end operation, and point out and can't the scsi device in the step 401 be positioned, do not need to go again to inquire about next master controller;
Perhaps, can also be the same in the present embodiment with embodiment 1, host computer comprises a plurality of master controllers, then host computer need be inquired about these a plurality of master controllers, querying method is identical with querying method described in the embodiment 1, be specially: when there is not the USB HUB that has numbered and do not inquired about in the judgement of present embodiment step 308, then host computer continues to judge whether to have inquired about all master controllers, if, then end operation, and prompting can't position the scsi device in the step 301, if not, then turn back to step 302 and continue next master controller is inquired about, all inquire about up to all master controllers and finish;
The method of inquiry can also be: host computer master controller of inquiry earlier, obtain the title of the root USB HUB that connects on this master controller, then do not continue this root of inquiry USB HUB then, but begin to inquire about next master controller, all inquire about up to all master controllers and to finish, each root USB HUB that begins to inquire about on the master controller again and connected.
Present embodiment provides a kind of method of locating the USB port that scsi device connects, and just can locate the USB port that scsi device connects by the method that present embodiment provides.
Further, present embodiment provides a kind of method of locating the USB port that scsi device connects, and present embodiment only describes with a kind of method, and in actual application, there is multiple localization method, specifically in the present invention, the method of the USB port that the another kind location HID equipment that embodiment 1 provides is connected also is applicable to the USB port that the said location of present embodiment scsi device is connected, and performing step is similar to it, therefore no longer repeats at this.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.

Claims (15)

1. the method for the USB port that positioning equipment connected is characterized in that, described method comprises:
Host computer reads the path that is connected first equipment on himself;
Described host computer is inquired about when front port current USB HUB's, obtains described equipment link information on front port, and according to described equipment link information the described front port of working as is judged;
When judgement obtain described when connect on the front port be generic USB equipment the time, described host computer obtains the path of described generic USB equipment under driver;
Described host computer is searched the first information according to producer's identifier information in the described equipment link information and device identifier information under the registration table path of described generic USB equipment;
Described host computer judges in the path of described first equipment whether comprise the described first information;
When in judgement obtains the path of described first equipment, comprising the described first information, represent that then described first equipment and described generic USB equipment are same equipment, described host computer carries out relatedly with described when front port the path of described first equipment, locatees the USB port that described first equipment is connected.
2. the method for the USB port that positioning equipment according to claim 1 connected, it is characterized in that, described host computer reads the route method that is connected first equipment on himself and is specially: described host computer reads from the parameter that WM_DEVICECHANGE message is imported into, or, described host computer is enumerated first equipment that has connected, the path that obtains described first equipment by calling SetupDiGetDeviceInterfaceDetail.
3. the method for the USB port that positioning equipment according to claim 1 connected is characterized in that, described host computer to current USB HUB before front port inquires about, described method also comprises:
Described host computer is inquired about master controller, obtains the title of the root USB HUB that connects on the master controller;
Described USB HUB as current USB HUB, opened described current USB HUB, and described current USB HUB is inquired about, obtain the port number of described current USB HUB.
4. the method for the USB port that positioning equipment according to claim 1 connected is characterized in that, describedly according to the equipment link information the described operation of judging when front port is specially:
Connection status zone bit in the described equipment link information is judged;
When described connection status zone bit is no connection status, represent that then described working as on the front port do not connect any equipment;
When described connection status zone bit when connection status is arranged, then represent describedly on front port, to have connected equipment, continue then to judge according to the HUB zone bit in the described equipment link information;
When described HUB zone bit when being, represent that then the described equipment that connects is USBHUB on front port;
When described HUB zone bit for not the time, represent that then the described equipment that connects is generic USB equipment on front port.
5. the method for the USB port that positioning equipment according to claim 4 connected is characterized in that, when judgement obtains describedly when not connecting any equipment on the front port, described method also comprises:
Described host computer judges whether to have inquired about all of the port of described current USB HUB;
If not, then with described current USB HUB when the next port of front port as work as front port, and the described front port of working as is inquired about, obtain the described equipment link information of working as on the front port, judge according to described equipment link information;
If judge then whether described current USB HUB exists upper level USB HUB;
If, then with the upper level USB HUB of described current USB HUB as current USBHUB, described then host computer continues to judge whether to have inquired about all of the port of described current USB HUB;
If not, end operation then, and prompting can't position described first equipment.
6. the method for the USB port that positioning equipment according to claim 4 connected is characterized in that, when judgement obtains describedly when not connecting any equipment on the front port, described method also comprises:
Described host computer judges whether to have inquired about all of the port of described current USB HUB;
If not, then with described current USB HUB when the next port of front port as work as front port, and the described front port of working as is inquired about, obtain the described equipment link information of working as on the front port, judge according to described equipment link information;
If then judge whether to exist the USB HUB that numbers and do not inquire about;
If, then will number the most forward USB HUB as current USB HUB, described then host computer continues described current USB HUB is inquired about;
If not, end operation then, and prompting can't position described first equipment.
7. the method for the USB port that is connected according to claim 5 or 6 described positioning equipments is characterized in that, described end operation, and before prompting can't position described first equipment, described method also comprised:
Described host computer judges whether to have inquired about all master controllers;
If not, then next master controller is inquired about, obtain the title of the root USB HUB that connects on the master controller, again with described USB HUB as current USB HUB, described current USB HUB is inquired about, obtain the port number of described current USB HUB, the front port of working as of more described current USB HUB is inquired about, obtain the equipment link information on front port;
If, end operation then, and prompting can't position described first equipment.
8. the method for the USB port that positioning equipment according to claim 4 connected is characterized in that, when judgement obtains describedly when the equipment that connects on the front port is USB HUB, described method also comprises:
With the USB HUB of described connection as current USB HUB;
Described current USB HUB is inquired about, obtain the port number of described current USB HUB, the front port of working as of more described current USB HUB is inquired about, obtain described equipment link information on front port, judge according to described equipment link information.
9. the method for the USB port that positioning equipment according to claim 4 connected is characterized in that, when judgement obtains describedly when the equipment that connects on the front port is USB HUB, described method also comprises:
Described host computer judges whether to exist numbered USB HUB, and if not, then the USBHUB with described connection is numbered a USB HUB, if then follow already present numbering and continue the USBHUB of described connection is numbered;
Described host computer judges whether to have inquired about all of the port of described current USB HUB.
10. the method for the USB port that positioning equipment according to claim 1 connected is characterized in that, the described first information is the title of subitem, or the described first information is the data of ParentIdPrefix key assignments.
11. the method for the USB port that positioning equipment according to claim 10 connected is characterized in that, when the described first information was the title of subitem, described method of searching the first information was specially:
Described host computer is according to producer's identifier information in the described equipment link information and device identifier information, search the subitem of the data and the route matching under the driver of Driver key assignments under the catalogue of producer's identifier information in the registration table path of described generic USB equipment and device identifier information, the title of the described subitem that finds is the described first information.
12. the method for the USB port that positioning equipment according to claim 10 connected is characterized in that, when the described first information was the data of ParentIdPrefix key assignments, described method of searching the first information was specially:
Described host computer is according to producer's identifier information in the described equipment link information and device identifier information, searches the subitem of the data and the route matching under the driver of Driver key assignments under the catalogue of producer's identifier information in the registration table path of described generic USB equipment and device identifier information;
Read the data of the ParentIdPrefix key assignments under the described subitem, the described data that obtain that read are the described first information.
13. the method for the USB port that positioning equipment according to claim 1 connected is characterized in that, when not comprising the described first information in judgement obtains the path of described first equipment, described method also comprises:
Described host computer judges whether to have inquired about all of the port of described current USB HUB;
If not, then with described current USB HUB when the next port of front port as work as front port, and the described front port of working as is inquired about, obtain the described equipment link information of working as on the front port, judge according to described equipment link information;
If judge then whether described current USB HUB exists upper level USB HUB;
If, then with the upper level USB HUB of described current USB HUB as current USBHUB, described then host computer continues to judge whether to have inquired about all of the port of described current USB HUB;
If not, end operation then, and prompting can't position described first equipment.
14. the method for the USB port that positioning equipment according to claim 1 connected is characterized in that, when not comprising the described first information in judgement obtains the path of described first equipment, described method also comprises:
Described host computer judges whether to have inquired about all of the port of described current USB HUB;
If not, then with described current USB HUB when the next port of front port as work as front port, and the described front port of working as is inquired about, obtain the described equipment link information of working as on the front port, judge according to described equipment link information;
If then judge whether to exist the USB HUB that numbers and do not inquire about;
If, then will number the most forward USB HUB as current USB HUB, described then host computer continues described current USB HUB is inquired about;
If not, end operation then, and prompting can't position described first equipment.
15. the method for the USB port that is connected according to claim 13 or 14 described positioning equipments is characterized in that, described end operation, and before prompting can't position described first equipment, described method also comprised:
Described host computer judges whether to have inquired about all master controllers;
If not, then next master controller is inquired about, obtain the title of the root USB HUB that connects on the master controller, again with described USB HUB as current USB HUB, described current USB HUB is inquired about, obtain the port number of described current USB HUB, the front port of working as of more described current USB HUB is inquired about, obtain the equipment link information on front port;
If, end operation then, and prompting can't position described first equipment.
CN2010105005037A 2010-09-30 2010-09-30 Method for positioning USB port in connection of device Active CN101963950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105005037A CN101963950B (en) 2010-09-30 2010-09-30 Method for positioning USB port in connection of device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105005037A CN101963950B (en) 2010-09-30 2010-09-30 Method for positioning USB port in connection of device

Publications (2)

Publication Number Publication Date
CN101963950A true CN101963950A (en) 2011-02-02
CN101963950B CN101963950B (en) 2012-02-29

Family

ID=43516823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105005037A Active CN101963950B (en) 2010-09-30 2010-09-30 Method for positioning USB port in connection of device

Country Status (1)

Country Link
CN (1) CN101963950B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440214A (en) * 2013-09-03 2013-12-11 深圳雷柏科技股份有限公司 Method and device for rapidly identifying plugged USB (Universal Serial Bus) equipment
CN103559162A (en) * 2013-10-28 2014-02-05 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN103702046A (en) * 2013-12-18 2014-04-02 四川长虹电器股份有限公司 Method for opening voice equipment in selectable mode
CN104090986A (en) * 2014-07-28 2014-10-08 福建三元达通讯股份有限公司 Wireless controller slot position control method, access device and wireless controller
CN105224429A (en) * 2015-08-03 2016-01-06 深圳市美贝壳科技有限公司 A kind of detection USB device carry information approach and system
CN105426330A (en) * 2015-11-05 2016-03-23 飞天诚信科技股份有限公司 Method and apparatus for automatically opening expansion channel
CN105930243A (en) * 2016-04-18 2016-09-07 深圳市德名利电子有限公司 Port determining method and system for testing USB (Universal Serial Bus) equipment
CN106201930A (en) * 2016-07-26 2016-12-07 努比亚技术有限公司 A kind of device port determines device, terminal and method
CN106649175A (en) * 2016-10-19 2017-05-10 深圳市共进电子股份有限公司 Method for separating function of USB HUB interface
CN107678984A (en) * 2017-09-26 2018-02-09 厦门市美亚柏科信息股份有限公司 USB port mapping method and computer-readable recording medium
CN107797947A (en) * 2016-09-05 2018-03-13 中兴通讯股份有限公司 A kind of USB device reorientation method and device
CN108540541A (en) * 2018-03-22 2018-09-14 华为技术有限公司 Information processing method, information processing unit and interchanger
CN109254796A (en) * 2018-08-13 2019-01-22 深圳市德名利电子有限公司 A kind of upper disk configuration method and host of USB device
CN110109850A (en) * 2019-05-21 2019-08-09 珠海奔图电子有限公司 Searching method and device based on scanning device under SANE protocol frame
CN111045737A (en) * 2019-11-29 2020-04-21 惠州Tcl移动通信有限公司 Equipment identifier acquisition method and device, terminal equipment and storage medium
CN113746680A (en) * 2021-09-03 2021-12-03 罗克佳华(重庆)科技有限公司 Physical position determining method and device testing method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201466431U (en) * 2009-06-05 2010-05-12 深圳市博业科技有限公司 USB concentrator

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201466431U (en) * 2009-06-05 2010-05-12 深圳市博业科技有限公司 USB concentrator

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440214B (en) * 2013-09-03 2017-01-18 深圳雷柏科技股份有限公司 Method and device for rapidly identifying plugged USB (Universal Serial Bus) equipment
CN103440214A (en) * 2013-09-03 2013-12-11 深圳雷柏科技股份有限公司 Method and device for rapidly identifying plugged USB (Universal Serial Bus) equipment
CN103559162A (en) * 2013-10-28 2014-02-05 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN103559162B (en) * 2013-10-28 2017-01-25 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN103702046A (en) * 2013-12-18 2014-04-02 四川长虹电器股份有限公司 Method for opening voice equipment in selectable mode
CN104090986A (en) * 2014-07-28 2014-10-08 福建三元达通讯股份有限公司 Wireless controller slot position control method, access device and wireless controller
CN105224429A (en) * 2015-08-03 2016-01-06 深圳市美贝壳科技有限公司 A kind of detection USB device carry information approach and system
CN105426330A (en) * 2015-11-05 2016-03-23 飞天诚信科技股份有限公司 Method and apparatus for automatically opening expansion channel
CN105426330B (en) * 2015-11-05 2018-08-28 飞天诚信科技股份有限公司 A kind of method and device automatically opening extended channel
CN105930243A (en) * 2016-04-18 2016-09-07 深圳市德名利电子有限公司 Port determining method and system for testing USB (Universal Serial Bus) equipment
CN106201930A (en) * 2016-07-26 2016-12-07 努比亚技术有限公司 A kind of device port determines device, terminal and method
CN107797947A (en) * 2016-09-05 2018-03-13 中兴通讯股份有限公司 A kind of USB device reorientation method and device
CN106649175A (en) * 2016-10-19 2017-05-10 深圳市共进电子股份有限公司 Method for separating function of USB HUB interface
CN106649175B (en) * 2016-10-19 2019-12-06 深圳市共进电子股份有限公司 Method for separating USB HUB interface functions
CN107678984A (en) * 2017-09-26 2018-02-09 厦门市美亚柏科信息股份有限公司 USB port mapping method and computer-readable recording medium
CN108540541A (en) * 2018-03-22 2018-09-14 华为技术有限公司 Information processing method, information processing unit and interchanger
CN108540541B (en) * 2018-03-22 2020-10-23 华为技术有限公司 Information processing method, information processing apparatus, and switch
CN109254796A (en) * 2018-08-13 2019-01-22 深圳市德名利电子有限公司 A kind of upper disk configuration method and host of USB device
CN110109850A (en) * 2019-05-21 2019-08-09 珠海奔图电子有限公司 Searching method and device based on scanning device under SANE protocol frame
CN111045737A (en) * 2019-11-29 2020-04-21 惠州Tcl移动通信有限公司 Equipment identifier acquisition method and device, terminal equipment and storage medium
CN111045737B (en) * 2019-11-29 2023-09-19 惠州Tcl移动通信有限公司 Equipment identifier acquisition method, device, terminal equipment and storage medium
CN113746680A (en) * 2021-09-03 2021-12-03 罗克佳华(重庆)科技有限公司 Physical position determining method and device testing method and device

Also Published As

Publication number Publication date
CN101963950B (en) 2012-02-29

Similar Documents

Publication Publication Date Title
CN101963950B (en) Method for positioning USB port in connection of device
CN203071958U (en) Intelligent home common gateway based on cloud technology
US8650332B2 (en) Method for switching working mode, USB device, and host device
CN102375786B (en) Automatic operating system identifying method and system for USB (Universal Serial Bus) equipment
CN104834537A (en) Data processing method, server and client
CN102984586A (en) Management method and device for intelligent television applications
CN104425001A (en) System for simultaneously burning multiple switches, method thereof and corresponding switches
CN102393848B (en) Method and system for acquiring identification information of data terminal equipment
CN102882871A (en) Mobile terminal USB (universal serial bus) virtualized mapping method
CN102881265A (en) Liquid crystal display (LCD) adaptation device and method
CN104468260A (en) Recognition method, device and system for mobile terminal device
EP2211272B1 (en) Method and device for implementing USB endpoint multiplexing
CN103092720B (en) For kernel processing device and the restoration methods of vehicle-mounted terminal
CN102985888B (en) There is robot and the robot system of two devices being alternately connected with robot and the method changing these devices
CN104598271A (en) Method, device and system for automatically setting language of Internet equipment
WO2014183556A1 (en) Application processing method and apparatus
CN101827078A (en) Inquiry method, server and communication system for configured data difference
CN106454498B (en) The method of Android platform management USB device
CN102075808A (en) Method for realizing multi-conditional access (CA) coexistence in set top box
WO2009063034A3 (en) Method enabling a computer apparatus run by an operating system to execute software modules
CN105068946A (en) Android device identification method and apparatus
CN104834260A (en) Double-channel CAN bus controller based on frequency conversion control and double-CAN arbitration method
CN104699516A (en) Method and device for automatically recognizing Android cellphone and installing drive in Windows system
CN101216776A (en) Method and system for automatically creating translation and compiling environment
WO2008120368A1 (en) Communication apparatus and communication apparatus control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: FEITIAN TECHNOLOGIES CO., LTD.

Free format text: FORMER OWNER: BEIJING FEITIAN CHENGXIN SCIENCE + TECHNOLOGY CO. LTD.

Effective date: 20110808

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20110808

Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer

Applicant after: Feitian Technologies Co., Ltd.

Address before: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer

Applicant before: Beijing Feitian Chengxin Science & Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant