CN101477498A - Port switching method and equipment of USB equipment - Google Patents

Port switching method and equipment of USB equipment Download PDF

Info

Publication number
CN101477498A
CN101477498A CNA2009100001588A CN200910000158A CN101477498A CN 101477498 A CN101477498 A CN 101477498A CN A2009100001588 A CNA2009100001588 A CN A2009100001588A CN 200910000158 A CN200910000158 A CN 200910000158A CN 101477498 A CN101477498 A CN 101477498A
Authority
CN
China
Prior art keywords
usb device
information
main frame
monochromatic light
disc apparatus
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
CNA2009100001588A
Other languages
Chinese (zh)
Other versions
CN101477498B (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.)
Huawei Device Co Ltd
Huawei Device Shenzhen Co Ltd
Original Assignee
Shenzhen Huawei Communication 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 Shenzhen Huawei Communication Technologies Co Ltd filed Critical Shenzhen Huawei Communication Technologies Co Ltd
Priority to CN2009100001588A priority Critical patent/CN101477498B/en
Publication of CN101477498A publication Critical patent/CN101477498A/en
Application granted granted Critical
Publication of CN101477498B publication Critical patent/CN101477498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for a USB device to switch interfaces. The method comprises the following steps: sending single CD equipment information to a main frame as a USB device is detected to be connected with the main frame; switching the USB device from the single CD equipment to a compound device on receiving a switch command sent by the main frame through an automatically operated file; and switching the USB device from the single CD equipment to the compound device and sending compound device information to the main frame on receiving a command of a first function sent by the main frame. The invention has the advantages that after a USB device drive is mounted on a computer, the computer can send corresponding USB command at a relatively high speed, so that the USB device does not need to experience the previous procedure after receiving the command and can quickly switch to a multi-terminal state. The invention increases the working efficiency of users, and better reflects the characteristics of the computer as high-speed and convenient-communication equipment.

Description

The method and apparatus of USB device port switching
Technical field
The present invention relates to communication technical field, particularly a kind of method and apparatus of USB device port switching.
Background technology
As everyone knows, a lot of in the market USB device are all supported automatic installation function, the CD that no longer needs to insert install driver when USB device drives promptly is installed is on computers installed, because stored corresponding CD driver in the computer system.And to realize this function, the USB device that at first needs to be connected with computing machine reports a compact disk equipment information, system writes down in registration table and loads the compact disk equipment that reports by the disc drives program that stores in the system behind the corresponding information and finish automatic installation, finish automatic installation and send order later on again and allow described USB device switch to a plurality of port statuss, be i.e. the equipment complex state.
The inventor finds to exist at least in the prior art following technical matters in realizing process of the present invention: because USB device can't judge whether respective drive was installed in the system, so all must at first report a corresponding compact disk equipment information after inserting USB device at every turn, go out CD content according to the compact disk equipment information mapping that reports, detect by the corresponding program in the described CD content whether the USB device driving was installed again; Overdrive if install, then carry out port and switch; Otherwise, provide the prompting that needs to install backstage and driving.So carry out the step of port switching with regard to the step that makes the step want to finish port switching just must finish earlier to shine upon CD with by the corresponding program in the described CD content that maps out, and these two steps need all the long period just can finish.Particularly no matter whether the USB device that is connected with computing machine once installed respective drive on this computing machine, described USB device all will just can be finished switching to port through these two steps at every turn, be that the each use of user all needs to wait as long for the operation that could carry out next step, reduced user's work efficiency.
Summary of the invention
The purpose of the embodiment of the invention is, a kind of method and corresponding USB device of USB device port switching is provided, and makes described USB device utilization order accordingly and can realize fast on the computing machine that respective drive was installed that port switches;
For achieving the above object, the embodiment of the invention provides a kind of method of USB device port switching, comprising:
After detecting described USB device and main frame be connected, send monochromatic light disc apparatus information to described main frame, described monochromatic light disc apparatus information comprises the mask information that is used to shield described monochromatic light disc apparatus first function, described mask information makes described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the order of first function;
If receive the switching command that described main frame sends by described automatic operating file, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and send the information of described equipment complex to described main frame, the information of described equipment complex comprises the descriptor of first port of device identification pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify this equipment complex of described main frame to support described first function;
If receive the order that enables described first function that described main frame sends, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and sends equipment complex information to described main frame.
The embodiment of the invention also provides a kind of USB device, comprising:
Whether detecting unit is used to detect described USB device and is connected with main frame;
First transmitting element, be used for after described detecting unit detects described USB device and main frame is connected, send monochromatic light disc apparatus information to described main frame, described monochromatic light disc apparatus information comprises the mask information that shields described monochromatic light disc apparatus first function, described mask information makes described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the order of first function;
First receiving element is used to receive the switching command that described main frame sends by described automatic operating file;
Second receiving element is used to receive the order that enables first function that described main frame sends;
Switch unit is used for the described order that enables first function that the described switching command that receives based on described first receiving element or described second receiving element receive, and described USB device is switched to equipment complex from described monochromatic light disc apparatus;
Second transmitting element, be used for described switch unit with described USB device after described monochromatic light disc apparatus switches to equipment complex, send the information of described equipment complex to described main frame, the information of described equipment complex comprises the descriptor of first port of pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify this equipment complex of described main frame to support described first function.
The embodiment of the invention has following beneficial effect: after corresponding USB device driving is installed on computers, described computing machine can comparatively fast send corresponding USB order, needn't be after making described USB device receive described order again through in steps former, thereby directly switch to the multiport state fast, improved the work efficiency of man-machine interaction, better embodied the characteristics of USB device as a kind of high speed, quick digital device.
Description of drawings
Fig. 1 is the schematic flow diagram of method of the USB device port switching of the embodiment of the invention one;
Fig. 2 is the schematic flow diagram of method of the USB device port switching of the embodiment of the invention two;
Fig. 3 is the structural representation of the USB device of the embodiment of the invention three;
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
The embodiment of the invention utilizes USB to order the technology of quick port switching for the USB device that is connected with computing machine.With USB device with after computing machine is connected, described USB device can report monochromatic light dish information, computing machine by in the monochromatic light disc apparatus information that detects described USB device and report with the computing machine registration table in equipment complex information in whether have identical device identification pid information, switch thereby finish port.
Embodiment one,
Fig. 1 is the schematic flow diagram of method of the USB device port switching of the embodiment of the invention one.This process flow diagram may further comprise the steps:
101, after detecting described USB device and computing machine be connected, send monochromatic light disc apparatus information to described computing machine, described monochromatic light disc apparatus information comprises the mask information that is used to shield described monochromatic light disc apparatus first function, described mask information makes described computing machine by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the order of first function;
102, if receive the switching command that described computing machine sends by described automatic operating file, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and send the information of described equipment complex to described computing machine, the information of described equipment complex comprises the descriptor of first port of device identification pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify this equipment complex of described computing machine to support described first function;
103, if receive the order that enables described first function that described computing machine sends, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and sends equipment complex information to described computing machine.
In the embodiment of the invention, computer system is a windows xp operating system, when described USB device with after computing machine normally is connected, described USB device can send monochromatic light disc apparatus information to described computing machine, described computing machine obtains important informations such as the controller of described USB device, device attribute, port form, mask information, device identification PID by reading the described monochromatic light disc apparatus information that receives, and then utilizes the respective protocol in the system that described USB device is carried out corresponding configuration.Wherein said mask information is first function that is mainly used in the described monochromatic light disc apparatus of shielding, the device identification pid information mainly is the product identification code of the described USB device that is used to inform that computing machine is attached thereto, so that whether record in the described computer detection system registration table and the identical information of described device identification pid information, if detect identical device identification pid information is arranged in the registration table, the corresponding driving program was installed before described USB device is described on this computing machine; If detect identical device identification pid information is not arranged in the registration table, the corresponding driving program was not installed before described USB device is described on this computing machine; After described computing machine got access to the monochromatic light disc apparatus information of described USB device, the disc drives that carries in the attribute selecting system of meeting according to USB device loaded described monochromatic light disc apparatus.
When on the computing machine of described USB device at present embodiment the corresponding driving program not being installed, the automatic operating file that starts in the described USB device is understood after having loaded described monochromatic light disc apparatus by the disc drives that carries by system, and described automatic operating file is installed the driving of described USB device automatically in described computer operating system.Because mask information has shielded first function of described monochromatic light disc apparatus, so in the driving process was installed, computing machine had just shielded the order that enables first function, makes installation process finish smoothly.After described USB device drive installation finishes, computing machine can send switching command to described USB device by described automatic operating file, after described USB device receives described switching command, switch to equipment complex from described monochromatic light disc apparatus, promptly switch to the multiport state from monochromatic light disc apparatus port status, and send the information of described equipment complex to described computing machine, the information of described equipment complex comprises the descriptor of first port of device identification pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, the descriptor of described first port is used to notify first port of described this equipment complex of computing machine to support described first function, and the information of described equipment complex is recorded in the registration table, so described computing machine has read the information of described equipment complex and just according to the respective protocol in the system described equipment complex has been disposed accordingly, load corresponding the driving for each port of equipment complex such as system, so that described equipment complex can operate as normal, wherein said driving is for being installed in the driving of the USB device in the described computer system by described automatic operating file.
When once more with described USB device with after described computing machine is connected, when the device identification pid information of the equipment complex in the device identification pid information of described COMPUTER DETECTION in the monochromatic light disc apparatus information that described USB device sends and the system registry is consistent, illustrate that described USB device installed the corresponding driving program on the computing machine of present embodiment, so described system is the driving that described monochromatic light disc apparatus loads first port correspondence of described equipment complex in the registration table, again because described first port is supported first function, so, first function is also supported in the driving of described first port correspondence, after loading the driving of first port correspondence of described equipment complex, described monochromatic light disc apparatus just activates first function in the described driving, described computing machine just sends the order that enables described first function according to usb protocol to described USB device, after then described USB device receives the described order that enables first function, switch to equipment complex from described monochromatic light disc apparatus at once, and send equipment complex information to described computing machine.So described computing machine has read the information of described equipment complex and just according to the respective protocol in the system described equipment complex has been disposed accordingly, load corresponding the driving for each port of equipment complex such as system, so that described equipment complex can operate as normal.
The advantage of present embodiment is, after corresponding USB device driving is installed on computers, described computing machine can comparatively fast send corresponding USB order, needn't be after making described USB device receive the corresponding command again through in steps former, thereby directly switch to the multiport state fast, improved the work efficiency of man-machine interaction.
Need to prove that the monochromatic light disc apparatus information in the present embodiment has comprised facility information and the single port information that described technical field personnel can understand; Equipment complex information in the present embodiment has comprised the information of the whole equipment complex that described technical field personnel can understand and the information of each port.
Embodiment two,
Fig. 2 is the schematic flow diagram of method of the USB device port switching of the embodiment of the invention two.As shown in Figure 2, may further comprise the steps:
201, after detecting described USB device and main frame be connected, send monochromatic light disc apparatus information to described main frame, described monochromatic light disc apparatus information comprises and is used to inform that the described monochromatic light disc apparatus of described main frame do not support the device descriptor of Remote Wake Up function, described device descriptor makes described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the USB order of Remote Wake Up function;
202, after described drive installation finishes, described main frame is deleted monochromatic light disc apparatus information in the described main frame by the delete instruction of storing in the described automatic operating file;
203, if receive the switching command that described main frame sends by described automatic operating file, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and send the information of described equipment complex to described main frame, the information of described equipment complex comprises the descriptor of first port of device identification pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify first port of described this equipment complex of main frame to support described Remote Wake Up function;
204, if receive the USB order that enables described Remote Wake Up function that described main frame sends, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and sends equipment complex information to described main frame.
In the embodiment of the invention, computer system is a windows xp operating system, when described USB device with after computing machine normally is connected, described USB device can send monochromatic light disc apparatus information to described computing machine, described computing machine obtains important informations such as the controller of described USB device, device attribute, port form, device descriptor by reading the described monochromatic light disc apparatus information that receives, and then utilizes the respective protocol in the system that described USB device is carried out necessary configuration.Wherein said device descriptor dispatches from the factory except version number, supplier number VID information, device identification pid information and the equipment that is used to inform the described USB device of main frame the information such as label, is used to also inform that the described monochromatic light disc apparatus of described main frame do not support the Remote Wake Up function.Wherein said device identification pid information mainly is the product identification code of the described USB device that is used to inform that computing machine is attached thereto, so that whether record in the described computer detection system registration table and the identical information of described device identification pid information, there is identical device identification pid information the corresponding driving program to be installed before described USB device is described in the registration table on this computing machine if detect; Do not have identical device identification pid information to illustrate in the registration table corresponding driving program was not installed on this computing machine before the described USB device if detect; Described computing machine get access to after the monochromatic light disc apparatus information that described USB device sends can be in system registry the information of the described monochromatic light disc apparatus of record, and the disc drives that carries in the attribute selecting system according to USB device loads described monochromatic light disc apparatus.
When on the computing machine of described USB device at present embodiment the corresponding driving program not being installed, what carry in the attribute selecting system of system according to USB device loads with the corresponding disc drives of described attribute, can start the automatic operating file in the described USB device behind the intact described monochromatic light disc apparatus of described system loads, described automatic operating file is installed the driving of described USB device automatically in described computer operating system.Because device descriptor has informed that the described monochromatic light disc apparatus of described main frame do not support the Remote Wake Up function, so in the driving process is installed, described system has just shielded the USB order that enables the Remote Wake Up function, after having guaranteed that installation procedure finishes, computing machine continues the described automatic operating file of operation and carries out necessary setting.
After described USB device drive installation finishes, computing machine just can send by automatic operating file and allow described USB device switch to the order of equipment complex, and this moment is in case described USB device is carried out the information that the port switching will report equipment complex, comprising the device identification pid information of equipment complex.Because according to agreement, system is as long as find whether have the facility information that reports to retrieve has the information consistent with described reporting information in the registration table, in case described system discovery has the information of described unanimity, system just can load the equipment complex that reports by the disc drives that carries, and realizes the content of mapping reporting equipment.So step for fear of the content that repeats described mapping reporting equipment, the described monochromatic light disc apparatus information of computing machine record before transmission makes in the delete instruction deletion system registry that described USB device stores in can be by described automatic operating file before switching to the order of equipment complex is comprising the pid information of equipment.
After the described monochromatic light disc apparatus information that writes down before in the deletion system registry, computing machine can send switching command to described USB device by described automatic operating file, after described USB device receives described switching command, switch to equipment complex from described monochromatic light disc apparatus, promptly switch to the multiport state from monochromatic light disc apparatus port status, and sending the information of described equipment complex to described computing machine, the information of described equipment complex comprises the descriptor of first port of device identification pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex.After described computing machine receives the information (information of described equipment complex comprises device identification pid information and each port information of whole equipment complex) of described equipment complex, can in the detection system file whether the information identical with the pid information of described equipment complex be arranged, owing in step 202, deleted the pid information of the monochromatic light disc apparatus identical with the pid information of described equipment complex, so computing machine does not detect described identical pid information in system registry, but in system file, detecting the activation bit that includes identical described pid information, described activation bit is the activation bit during mounted USB device drives in the step 201.Because equipment complex wants operate as normal must give all load driver of each port, system gives each port load driver of equipment complex to finish the configuration to equipment complex according to described activation bit.Load first port that drives the wherein said equipment complex in back and supported the Remote Wake Up function, thereby made the descriptor of described first port inform that first port of described this equipment complex of main frame supports described Remote Wake Up function.Computing machine drives the activation bit of the described driving of record in system registry and the information of equipment complex according to mounted described USB device in the file, described activation bit is the activation bit of the port correspondence of described equipment complex, has also comprised the device identification pid information of equipment complex in this activation bit.The information of equipment complex comprises the information of first port support Remote Wake Up function of this equipment complex.
When once more with described USB device with after described computing machine is connected, when the device identification pid information of the equipment complex in the device identification pid information of described COMPUTER DETECTION in the monochromatic light disc apparatus information that described USB device sends and the system registry is consistent, illustrate that described USB device installed the corresponding driving program on the computing machine of present embodiment, so described system is the driving that described monochromatic light disc apparatus loads first port correspondence of described equipment complex in the registration table, again because described first port is supported the Remote Wake Up function, so, the Remote Wake Up function is also supported in the driving of described first port correspondence, after loading the driving of first port correspondence of described equipment complex, described monochromatic light disc apparatus just activates the Remote Wake Up function in the described driving, described computing machine just sends the USB order that enables described Remote Wake Up function according to usb protocol to described USB device, after then described USB device receives the described USB order that enables the Remote Wake Up function, switch to equipment complex from described monochromatic light disc apparatus at once, and send equipment complex information to described computing machine.So described computing machine has read the information of described equipment complex and just according to the respective protocol in the system described equipment complex has been disposed accordingly, load corresponding the driving for each port of equipment complex such as system, so that described equipment complex can operate as normal.
In embodiments of the present invention, computer system is a windows xp operating system, and USB device is a wireless data card, and pid information is 1003, is exemplified below according to the step in the method for above-mentioned USB device port switching:
With after computing machine is connected, its can send the monochromatic light disc apparatus information of wireless data card to windows xp operating system with wireless data card, and described monochromatic light disc apparatus information comprises device descriptor.Described device descriptor dispatches from the factory except version number, supplier number VID information, device identification pid information and the equipment that is used to inform the described USB device of main frame the information such as label, be used to also inform that the described wireless data card of described system temporarily do not support the Remote Wake Up function, because the D5 position Remote Wake Up function in the bmAttributes territory on the single port of equipment has been set to 0; Described device identification pid information is 1003, it is after 1003 the monochromatic light disc apparatus information that described windows xp operating system receives the equipment identification information pid information, can detect that to have or not the equipment identification information pid information in the registration table be the information of 1003 equipment complex, not having discovering device identification information pid information after the detection is the information of 1003 equipment complex, the task that the driver of described wireless data card just can be finished port switching illustrates that described wireless data card the corresponding driving program was not installed on this computing machine, so will be installed.The disc drives of the wireless data card that carries in the attribute selecting system of system according to described wireless data card loads described monochromatic light disc apparatus, and the recording unit identification information is 1003 monochromatic light disc apparatus information in registration table.Loaded the automatic operating file Autorun that maps out described wireless data card behind the monochromatic light disc apparatus, the driving that described wireless data card is installed on computers according to described automatic operating file Autorun by described system.For fear of loading the step that the monochromatic light dish drives once more, so described system after the drive installation step finishes, is 1003 monochromatic light disc apparatus information by the equipment identification information of delete instruction deletion record in registration table among the described automatic operating file Autorun.Described subsequently system sends by described automatic operating file Autorun and makes described network interface card wireless data card switch to the switching command of multiport state, described wireless data card switches to the multiport state after receiving described switching command, promptly map out first port, second port and the 3rd port, described first port is the Modem port, second port is PCUI (PC User Interface, it is user port, be used to realize that USB device is connected with the data on PC backstage), described the 3rd port is the CD port, and the reporting equipment identification information is 1003 equipment complex information.It is after 1003 the equipment complex information that described computing machine receives described equipment identification information, and whether the equipment identification information identical with described equipment complex is arranged in can the detection system file is 1003 information.Owing to deleted recording unit identification information in the registration table and be 1003 monochromatic light disc apparatus information, so computing machine does not detect described 1003 identical equipment identification informations in system registry, but in system file, detecting the activation bit that includes identical described 1003 equipment identification informations, described activation bit is the activation bit during mounted described wireless data card drives.First port, second port and the 3rd port load driver that system gives equipment complex according to described activation bit are so that equipment complex can operate as normal.And be 1 with the D5 position Remote Wake Up function setting in the bmAttributes territory on the Modem port in the described equipment complex, thereby make described wireless data card support the Remote Wake Up function by load driver.Computing machine drives the activation bit of the described driving of record in system registry and the information of wireless data card equipment complex according to mounted described USB device in the system file, and described activation bit is each self-corresponding activation bit of three ports of described equipment complex.The information of equipment complex comprises the information of first port (being the Modem port) the support Remote Wake Up function of this equipment complex.Pull up wireless data card after finishing using.
When once more with described wireless data card with after described computing machine is connected, when the device identification 1003 of the equipment complex in the device identification 1003 of described COMPUTER DETECTION in the monochromatic light disc apparatus information that described wireless data card sends and the system registry is consistent, illustrate that described wireless data is stuck on the computing machine of present embodiment the corresponding driving program was installed.Because the monochromatic light disc apparatus that reports is a port, so being described monochromatic light disc apparatus, described system loads the driving that device identification in the registration table is 1003 the described equipment complex first port correspondence, because being described first port of 1003 equipment complex, device identification supports the Remote Wake Up function again, so the Remote Wake Up function is also supported in the driving of described first port correspondence certainly.After loading the driving of the described equipment complex first port correspondence, described monochromatic light disc apparatus just activates the Remote Wake Up function in the described driving, described computing machine just sends the USB order that enables described Remote Wake Up function: Set_feature_D (abbreviation of the USB order of Remote Wake Up functional character is set) according to usb protocol to described wireless data card, described wireless data card one receives this Set_feature_D order and immediately it is responded, switch to the multiport state from the single port state, promptly map out the Modem port, three ports of PCUI and CD port, and report the information of the equipment complex of described wireless data card to give operating system, finish port and switch.The information that described computing machine has read described equipment complex just disposes described equipment complex accordingly according to the respective protocol in the system, so that described equipment complex can operate as normal.Described so from now on wireless data card computing machine therewith can comparatively fast be finished the task that port switches once connecting, and has saved the steps necessary of original switching equipment complex.
The embodiment of the invention is compared advantage with embodiment one and is, after corresponding USB device driving is installed on computers, by the information of the equipment complex of record support Remote Wake Up function and the activation bit of described equipment correspondence in registration table, needn't be after making described USB device receive the described order that enables described first function again through existing step, thereby switch to the multiport state fast, improved user's work efficiency, better embodied the characteristics of described USB device as the quick communication facilities of a kind of high speed.
Need to prove that the monochromatic light disc apparatus information in the present embodiment has comprised facility information and the single port information that described technical field personnel can understand; Equipment complex information in the present embodiment has comprised the information of the whole equipment complex that described technical field personnel can understand and the information of each port.
Embodiment three,
In order to implement above method better, the embodiment of the invention three correspondingly provides a kind of USB device, it comprises detecting unit 301, first transmitting element 302, first receiving element 303, second receiving element 304, switch unit 305 and second transmitting element 306, can also comprise storage unit 307, as shown in Figure 3, its each several part function is as follows:
Whether detecting unit 301 is mainly used in the described USB device of detection and is connected with main frame;
First transmitting element 302, be used for after described detecting unit 301 detects described USB device and main frame is connected, send monochromatic light disc apparatus information to described main frame, described monochromatic light disc apparatus information comprises the mask information that shields described monochromatic light disc apparatus first function, described mask information makes described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the order of first function;
Described first function can be the Remote Wake Up function, and the described order that enables first function can be for enabling the USB order of Remote Wake Up function.Wherein said first transmitting element 302 can specifically be used for after described detecting unit 301 detects described USB device and main frame is connected, send to described main frame and to comprise and be used to inform that the described monochromatic light disc apparatus of described main frame do not support the monochromatic light disc apparatus information of the device descriptor of described first function, make described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, shielded the order that enables first function.
First receiving element 303 is mainly used in and receives the switching command that described main frame sends by described automatic operating file;
Second receiving element 304 is mainly used in and receives the order that enables first function that described main frame sends;
Switch unit 305 is mainly used in the described order that enables first function that the described switching command that receives based on described first receiving element or described second receiving element receive, and described USB device is switched to equipment complex from described monochromatic light disc apparatus;
Second transmitting element 306, be mainly used in described switch unit with described USB device after described monochromatic light disc apparatus switches to equipment complex, send the information of described equipment complex to described main frame, the information of described equipment complex comprises the descriptor of first port of pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify this equipment complex of described main frame to support described first function;
Storage unit 307, storage be can be used for and important information and files such as facility information, automatic operating file comprised, store delete instruction in the described automatic operating file, described delete instruction is used for the monochromatic light disc apparatus information of the described main frame of deletion after described drive installation finishes.
Main frame described in the present embodiment can be computing machine, and described USB device can be wireless data card, wireless network card.
The advantage of present embodiment is, described USB device can be carried out the switching of equipment complex according to the different command that receives, after corresponding USB device driving is installed especially on computers, described computing machine can comparatively fast send corresponding USB order, needn't be after making described USB device receive described order again through in steps former, thereby directly switch to the multiport state fast, improved the work efficiency of man-machine interaction, better embodied the characteristics of USB device as a kind of high speed, quick digital device.
Certainly, above embodiment is as preferred implementation of the present invention, should be understood that, above-mentioned embodiment is exemplary, and it is also nonrestrictive, concerning the one of ordinary skilled in the art, can be without departing from the inventive concept of the premise the present invention be carried out multiple change and or or revises this kind change and or or revise and must think in the application scope of disclosure.

Claims (9)

1, a kind of method of USB device port switching is characterized in that, comprising:
After detecting described USB device and main frame be connected, send monochromatic light disc apparatus information to described main frame, described monochromatic light disc apparatus information comprises the mask information that is used to shield described monochromatic light disc apparatus first function, described mask information makes described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the order of first function;
If receive the switching command that described main frame sends by described automatic operating file, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and send the information of described equipment complex to described main frame, the information of described equipment complex comprises the descriptor of first port of device identification pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify this equipment complex of described main frame to support described first function;
If receive the order that enables described first function that described main frame sends, then described USB device switches to equipment complex from described monochromatic light disc apparatus, and sends equipment complex information to described main frame.
2, the method for the quick port switching of USB device according to claim 1 is characterized in that, described first function is the Remote Wake Up function, and the described order that enables first function is to enable the USB of Remote Wake Up function order.
3, the method for the quick port switching of USB device according to claim 1 and 2 is characterized in that, described mask information is to be used to inform that the described monochromatic light disc apparatus of described main frame do not support the device descriptor of described first function.
4, the method for the quick port switching of USB device according to claim 3, it is characterized in that, store delete instruction in the described automatic operating file, described delete instruction is used for the monochromatic light disc apparatus information of the described main frame of deletion after described drive installation finishes.
5, a kind of USB device is characterized in that, comprising:
Whether detecting unit is used to detect described USB device and is connected with main frame;
First transmitting element, be used for after described detecting unit detects described USB device and main frame is connected, send monochromatic light disc apparatus information to described main frame, described monochromatic light disc apparatus information comprises the mask information that shields described monochromatic light disc apparatus first function, described mask information makes described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, and shielding enables the order of first function;
First receiving element is used to receive the switching command that described main frame sends by described automatic operating file;
Second receiving element is used to receive the order that enables first function that described main frame sends;
Switch unit is used for the described order that enables first function that the described switching command that receives based on described first receiving element or described second receiving element receive, and described USB device is switched to equipment complex from described monochromatic light disc apparatus;
Second transmitting element, be used for described switch unit with described USB device after described monochromatic light disc apparatus switches to equipment complex, send the information of described equipment complex to described main frame, the information of described equipment complex comprises the descriptor of first port of pid information identical with the device identification pid information of described monochromatic light disc apparatus and described equipment complex, and the descriptor of described first port is used to notify this equipment complex of described main frame to support described first function.
6, USB device according to claim 5 is characterized in that, described first function is the Remote Wake Up function, and the described order that enables first function is to enable the USB of Remote Wake Up function order.
7, according to claim 5 or 6 described USB device, it is characterized in that, described first transmitting element specifically is used for after described detecting unit detects described USB device and main frame is connected, send to described main frame and to comprise and be used to inform that the described monochromatic light disc apparatus of described main frame do not support the monochromatic light disc apparatus information of the device descriptor of described first function, make described main frame by loading the monochromatic light disc apparatus and then start automatic operating file when the driving of described USB device being installed, shielded the order that enables first function.
8, USB device according to claim 7, it is characterized in that, also comprise storage unit, be used to store automatic operating file, store delete instruction in the described automatic operating file, described delete instruction is used for the monochromatic light disc apparatus information of the described main frame of deletion after described drive installation finishes.
9, according to claim 5,6 or 8 any described USB device, it is characterized in that described USB device is wireless data card, wireless network card.
CN2009100001588A 2009-01-13 2009-01-13 Port switching method and equipment of USB equipment Active CN101477498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100001588A CN101477498B (en) 2009-01-13 2009-01-13 Port switching method and equipment of USB equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100001588A CN101477498B (en) 2009-01-13 2009-01-13 Port switching method and equipment of USB equipment

Publications (2)

Publication Number Publication Date
CN101477498A true CN101477498A (en) 2009-07-08
CN101477498B CN101477498B (en) 2010-12-22

Family

ID=40838218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100001588A Active CN101477498B (en) 2009-01-13 2009-01-13 Port switching method and equipment of USB equipment

Country Status (1)

Country Link
CN (1) CN101477498B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063320A (en) * 2011-01-06 2011-05-18 华为终端有限公司 Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment
WO2012097761A1 (en) * 2011-08-23 2012-07-26 华为终端有限公司 Recovery method for communication exceptions between data card and host, and data card
CN102622313A (en) * 2011-01-30 2012-08-01 中兴通讯股份有限公司 Method and system for switching ports of USB (universal serial bus) equipment and method for differentiating operating system
CN102769612A (en) * 2012-06-27 2012-11-07 中兴通讯股份有限公司 Method, device and wireless communication terminal for achieving functions of GPS on basis of MBIM
CN101719916B (en) * 2009-11-13 2013-01-02 曙光信息产业(北京)有限公司 Method for realizing multi-port network card data transmission
CN102902518A (en) * 2012-08-17 2013-01-30 中兴通讯股份有限公司 Active USB (Universal Serial Bus) equipment and operating mode switching method thereof
CN102981981A (en) * 2012-11-20 2013-03-20 中兴通讯股份有限公司 USB (Universal Serial Bus) equipment, communication system and working mode switching method thereof
CN103023642A (en) * 2012-11-22 2013-04-03 中兴通讯股份有限公司 Mobile terminal and digital certificate function realizing method thereof
CN106412655A (en) * 2014-01-24 2017-02-15 青岛海信电器股份有限公司 Touch television, and control method and control device thereof
CN108268400A (en) * 2016-12-30 2018-07-10 北京视联动力国际信息技术有限公司 The detection method and detection device of a kind of wireless network card
CN109656852A (en) * 2018-12-05 2019-04-19 郑州云海信息技术有限公司 A kind of SYS_TF card interface connection control method and system
CN111090608A (en) * 2019-12-26 2020-05-01 深圳市优博讯科技股份有限公司 Data transmission method and system based on USB device

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719916B (en) * 2009-11-13 2013-01-02 曙光信息产业(北京)有限公司 Method for realizing multi-port network card data transmission
US8650332B2 (en) 2011-01-06 2014-02-11 Huawei Device Co., Ltd. Method for switching working mode, USB device, and host device
CN102063320B (en) * 2011-01-06 2013-08-28 华为终端有限公司 Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment
CN102063320A (en) * 2011-01-06 2011-05-18 华为终端有限公司 Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment
CN102622313B (en) * 2011-01-30 2015-08-12 中兴通讯股份有限公司 The method of the port switching method of USB device, system and differentiation operating system
CN102622313A (en) * 2011-01-30 2012-08-01 中兴通讯股份有限公司 Method and system for switching ports of USB (universal serial bus) equipment and method for differentiating operating system
WO2012100498A1 (en) * 2011-01-30 2012-08-02 中兴通讯股份有限公司 Method and system for switching port of usb device
US9058264B2 (en) 2011-08-23 2015-06-16 Huawei Device Co., Ltd. Method for repairing communication abnormality between data card and host and data card
WO2012097761A1 (en) * 2011-08-23 2012-07-26 华为终端有限公司 Recovery method for communication exceptions between data card and host, and data card
CN102769612A (en) * 2012-06-27 2012-11-07 中兴通讯股份有限公司 Method, device and wireless communication terminal for achieving functions of GPS on basis of MBIM
CN102769612B (en) * 2012-06-27 2017-07-21 南京中兴新软件有限责任公司 A kind of method, equipment and wireless communication terminal that GPS functions are realized based on MBIM
US10042800B2 (en) 2012-08-17 2018-08-07 Zte Corporation Active USB device and switching method for operating mode thereof
CN102902518A (en) * 2012-08-17 2013-01-30 中兴通讯股份有限公司 Active USB (Universal Serial Bus) equipment and operating mode switching method thereof
CN102981981A (en) * 2012-11-20 2013-03-20 中兴通讯股份有限公司 USB (Universal Serial Bus) equipment, communication system and working mode switching method thereof
US9645952B2 (en) 2012-11-20 2017-05-09 Zte Corporation USB device communication system and working mode switching method to prevent USB device from adopting power interruption when reconfiguring firmware programs
CN102981981B (en) * 2012-11-20 2016-03-30 中兴通讯股份有限公司 USB device, communication system and working mode switching method thereof
CN103023642A (en) * 2012-11-22 2013-04-03 中兴通讯股份有限公司 Mobile terminal and digital certificate function realizing method thereof
CN106412655A (en) * 2014-01-24 2017-02-15 青岛海信电器股份有限公司 Touch television, and control method and control device thereof
CN108268400A (en) * 2016-12-30 2018-07-10 北京视联动力国际信息技术有限公司 The detection method and detection device of a kind of wireless network card
CN109656852A (en) * 2018-12-05 2019-04-19 郑州云海信息技术有限公司 A kind of SYS_TF card interface connection control method and system
CN111090608A (en) * 2019-12-26 2020-05-01 深圳市优博讯科技股份有限公司 Data transmission method and system based on USB device
CN111090608B (en) * 2019-12-26 2021-07-09 深圳市优博讯科技股份有限公司 Data transmission method and system based on USB device

Also Published As

Publication number Publication date
CN101477498B (en) 2010-12-22

Similar Documents

Publication Publication Date Title
CN101477498B (en) Port switching method and equipment of USB equipment
CN103049405B (en) Android device file management method and system
CN100375028C (en) System and method for selectively installing an operating system to be remotely booted within a storage area network
US7970974B2 (en) Method and system for adding or removing a logical unit of a USB mass storage device
CN101853224B (en) Method and device for identifying port of data card device under Linux system
JP2009512033A (en) Data backup application emulation components
JP2009512034A (en) Data backup device and data backup method
CN102393848B (en) Method and system for acquiring identification information of data terminal equipment
CN104010022A (en) Management apparatus and method of managing server node
CN103455387A (en) Method and system for backing up and restoring operation system in UEFI (united extensible firmware interface) BIOS (basic input /output system)
CN110049365A (en) Visual information source switching handling method, display terminal, television set and storage medium
CN102567268A (en) Detection method for USB to virtual serial port/MODEM
CN105516359A (en) Method for managing and operating SAS Switch JBOD (Just a Bunch Of Disks) by using telnet protocol
CN113608790A (en) Linux system based self-adaptive management method and system for serial device and storage medium
CN101366006A (en) Emulation component for data backup applications
CN1975701B (en) Master machine driving external equipment method and system
CN102355568A (en) Method and device for carrying out charged uninstallation and installation of hard disk for digital video recorder
CN110708489A (en) Communication method, communication device, electronic device and storage medium
US20100121892A1 (en) Storage system and management method of file system using the storage system
CN102004653B (en) Image forming apparatus and installation method
CN101582015B (en) Control device, external storage device and their control methods
CN100578477C (en) Method and system for realizing normal working of compound device
CN102135896B (en) A kind of method and system based on Implementation of Embedded System software upgrading
CN101872290B (en) USB virtual drive device capable of immediately switching virtual CD contents
CN110489060A (en) A kind of mixed file construction method and its system based on FUSE technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181218

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.