CN102214115A - Universal serial bus (USB) control device and initialization method thereof - Google Patents

Universal serial bus (USB) control device and initialization method thereof Download PDF

Info

Publication number
CN102214115A
CN102214115A CN2011102040033A CN201110204003A CN102214115A CN 102214115 A CN102214115 A CN 102214115A CN 2011102040033 A CN2011102040033 A CN 2011102040033A CN 201110204003 A CN201110204003 A CN 201110204003A CN 102214115 A CN102214115 A CN 102214115A
Authority
CN
China
Prior art keywords
usb
control device
classification
serial bus
universal serial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011102040033A
Other languages
Chinese (zh)
Inventor
柯中智
黄坤明
吴明智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Songhan Science & Technology Co Ltd
Sonix Technology Co Ltd
Original Assignee
Songhan Science & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Songhan Science & Technology Co Ltd filed Critical Songhan Science & Technology Co Ltd
Priority to CN2011102040033A priority Critical patent/CN102214115A/en
Publication of CN102214115A publication Critical patent/CN102214115A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a universal serial bus (USB) control device and an initialization method thereof. The USB control device is coupled with a host computer; and default classification of the USB control device is a single man-machine interface device mode. The initialization method comprises the following steps: before the host computer loads an operating system, maintaining the category of the USB control device at the single man-machine interface mode; and after the host computer loads the operating system, setting the category of the USB control device to be a second mode different from the single man-machine interface mode.

Description

USB (universal serial bus) control device and initial method thereof
Technical field
The invention relates to a kind of USB (universal serial bus) (Universal Serial Bus is to call USB in the following text) control device, and particularly relevant for a kind of initial method of USB control device.
Background technology
The application of USB device is day by day extensive.In order to meet application demand, stipulated many different classes of in the USB standard.For example, meet human interface device (human interface device, to call HID in the following text) the USB device of classification standard can be used as keyboard and/or mouse, and the USB control device that meets mass storage device classification (Mass Storage Class) standard can be used as carry-on storer.Main frame must have the ability to pick out the correct classification of USB control device, could correctly operate/drive the USB device.
At new USB device classification, the user can be by installing new application program or driver to main frame, so that use the USB control device with new classification.Yet the Basic Input or Output System (BIOS) of main frame (basic input output system is to call BIOS in the following text) often is not familiar with new USB device classification.For example, more old BIOS may not be familiar with the USB device of monitor classification (Monitor Class).Because the BIOS of main frame is not familiar with new USB device classification, to such an extent as to after new USB control device inserts main frame, may note abnormalities and can't start shooting because of the BIOS selftest (Power-On SelfTest is to call POST in the following text) of starting shooting.
Again for example, more old BIOS may not be familiar with the have mixed mode USB breakout box (Dongle) of (for example having HID classification and audio categories (Audio Class) simultaneously).This USB breakout box with mixed mode can allow main frame operate/control the peripheral device of plurality of classes simultaneously.For example, main frame can belong to the keyboard and the mouse of HID classification via the operation/control of USB breakout box, simultaneously the headset (headset, the earphone of additional microphone) of operation/control dominant frequency classification.Because the BIOS of main frame only recognizes the USB control device that meets the HID classification, to such an extent as to after having the USB breakout box insertion main frame of mixed mode, may carry out POST because of BIOS and note abnormalities and can't start shooting.
Summary of the invention
The invention provides a kind of USB (universal serial bus) (Universal Serial Bus is to call USB in the following text) control device and initial method thereof, improve BIOS because of main frame and be not familiar with USB control device and cause the problem that to start shooting with new classification.
The embodiment of the invention has proposed a kind of initial method of USB control device.This USB control device is coupled to a main frame.The default classification of the device of this USB control device (default class) is human interface device (human interface device is to call HID an in the following text) single-mode.This initial method comprises: this main frame load operation system (operation system, OS) preceding, make the classification (class) of this USB control device be maintained at this HID single-mode; And after this main frame load operation system, the classification of this USB control device is changed second pattern that is different from this HID single-mode that is set at.
The embodiment of the invention has proposed a kind of USB control device, comprises serial interface engine (serial interface engine is to call SIE in the following text) unit and processing unit.The SIE unit is coupled to a main frame by USB connector, wherein the default HID single-mode that is categorized as of one of this SIE unit device.Processing unit is coupled to this SIE unit.Wherein, before this main frame load operation system, the classification of processing unit control SIE unit is maintained at this HID single-mode.After this main frame load operation system, processing unit changes second pattern that is different from this HID single-mode that is set at the classification of SIE unit.
In one embodiment of this invention, the second above-mentioned pattern is for having the mixed mode of HID classification and other classification simultaneously.In an embodiment of the present invention, described other classification can be audio categories (Audio Class), communicator classification (Communications Device Class), imaging classification (Imaging Class), infrared data host-host protocol (Infrared Data Association, IrDA) classification, mass storage device classification (Mass Storage Class), printer classification (Printer Class), smart card classification (Smart Card Class) or video classification (Video Class).
In one embodiment of this invention, under the environment of this operating system, this main frame checks whether this SIE unit operates in this HID single-mode.If this SIE unit operations is in this HID single-mode, then this main frame sends an instruction and gives this processing unit.This processing unit changes be set at this second pattern with the classification of this SIE unit from this HID single-mode according to this instruction.
In one embodiment of this invention, above-mentioned processing unit is coupled to a switch.This processing unit is checked the configuration of this switch.If the configuration of this switch is first state, then this processing unit with the category setting of this SIE unit in this HID single-mode.If the configuration of this switch is second state, then this processing unit changes this second pattern that is set in the classification of this SIE unit.
In one embodiment of this invention, above-mentioned processing unit is detected a non-man-machine interface equipment (non-HID) and whether is enabled (enable).If this non-man-machine interface equipment is anergy (disable), then this processing unit is set in this HID single-mode with this SIE unit; And if this non-man-machine interface equipment is for enabling, then this processing unit changes this second pattern that is set in this SIE unit.
In one embodiment of this invention, above-mentioned processing unit with this SIE unit change be set at this second pattern after, this main frame carries out automatic configuration and links (auto-configuration link) program, to reset in this main frame the configuration about this USB control device.
Based on above-mentioned, the default classification of the device of the disclosed USB control device of the embodiment of the invention (default class) is a HID single-mode (only having the HID classification).That is to say that the USB control device is inserted into the initial stage or power-on (power on) initial stage of main frame, the classification of USB control device is the HID single-mode.Because at present the BIOS of main frame all can discern typical HID single-mode on the market, therefore do not improved because of BIOS is not familiar with the USB control device and caused the problem that to start shooting.Finish start selftest (Power-On Self Test at main frame, POST) and (the operation system of load operation system, OS) after, the classification of USB control device can be changed second pattern (for example, this second pattern is for having the mixed mode of HID classification and other classification simultaneously) that is different from this HID single-mode that is set at.Therefore, the USB control device with second pattern just can be operated/be controlled to application program or driver in the main frame.
For above-mentioned feature and advantage of the present invention can be become apparent, embodiment cited below particularly, and cooperate appended accompanying drawing to be described in detail below.
Description of drawings
Fig. 1 is the function block schematic diagram that a kind of USB (universal serial bus) control device is described according to the embodiment of the invention.
Fig. 2 is the operating process synoptic diagram according to main frame in the embodiment of the invention key diagram 1.
Fig. 3 is the operating process synoptic diagram according to USB (universal serial bus) control device in the embodiment of the invention key diagram 1.
Fig. 4 is the function block schematic diagram that a kind of USB (universal serial bus) control device is described according to another embodiment of the present invention.
Fig. 5 is the operating process synoptic diagram according to USB (universal serial bus) control device in the embodiment of the invention key diagram 4.
Fig. 6 is the operating process synoptic diagram according to USB control device 100 in yet another embodiment of the invention key diagram 1.
[main element symbol description]
10: main frame;
11: operating system;
12: application program (or driver);
100,400: the USB (universal serial bus) control device;
The 110:USB connector;
120: the serial interface engine unit;
130: processing unit;
140: radio frequency unit;
150: antenna element;
160: nonvolatile memory;
170: volatile memory;
480: switch module;
481: switch;
482: pull down resistor;
S205~S240, S305~S350, S515~S540, S640~S641: step.
Embodiment
Fig. 1 is the function block schematic diagram that a kind of USB (universal serial bus) (Universal Serial Bus is to call USB in the following text) control device 100 is described according to the embodiment of the invention.After power-on (power on), the Basic Input or Output System (BIOS) of main frame 10 (basic input output system is the to call BIOS in the following text) selftest of can starting shooting (Power-On SelfTest is to call POST in the following text) is so that check total system.For example, BIOS can send USB order of resetting carrying out the POST stage, for example sends " bus reset (bus reset) " instruction and gives USB control device 100, the classification of identification USB control device 100 then.After finishing POST, BIOS can (operation system OS) 11 loads main frame 10 with operating system.After main frame 10 load operation systems 11, operating system 11 can loading application programs (or driver) 12.
Please refer to Fig. 1, USB control device 100 comprises USB connector 110, serial interface engine (serial interface engine is to call SIE in the following text) unit 120 and processing unit 130.In the present embodiment, USB control device 100 is used as USB breakout box (Dongle), so USB control device 100 also disposes radio frequency (radio frequency, RF) unit 140 and antenna (antenna) unit 150.Those skilled in the art can apply the present invention to the USB control device (for example usb hub (Hub) etc.) of other different application demand with reference to the instruction content of present embodiment.
Wireless perimeter set (for example keyboard and/or mouse) can be coupled to USB control device 100 by radio frequency unit 140 and antenna element 150.In other embodiments, peripheral device (for example keyboard and/or mouse) can be coupled to USB control device 100 by the entity lead, for example replaces radio frequency unit 140 and antenna element 150 with entity lead and/or connector.
Processing unit 130 have nonvolatile memory (non-volatile memory, NVM) 160 with volatile memory (volatile memory, VM) 170.Nonvolatile memory 160 can be embedded in processing unit 130 inside with volatile memory 170, also can be disposed at processing unit 130 outsides.Nonvolatile memory 160 can be flash memory (Flash memory), ROM (read-only memory) (Read Only Memory, but ROM), the program read-only memory of can erasing (Erasable Programmable ROM, EPROM) etc.The software (software) that is used for moving processing unit 130 can be stored at nonvolatile memory 160 with firmware (firmware).Volatile memory 170 can be dynamic RAM (dynamic random access memory, DRAM), static RAM (static random access memory, SRAM) etc.Processing unit 130 can be with deposit data such as transient data, the program code that has loaded, operating parameters in volatile memory 170.For example, processing unit 130 can leave the USB classification parameter relevant for SIE unit 120 in the volatile memory 170 in.
Processing unit 130 is coupled to SIE unit 120 and radio frequency unit 140.SIE unit 120 is coupled to main frame 10 by USB connector 110.HID classification (HID class) is one of device classification of formulating the earliest in the USB standard, and the therefore present BIOS of main frame on the market all can discern typical HID single-mode.Wherein the default classification of the device of SIE unit 120 (default class) is human interface device (human interface device is to call HID an in the following text) single-mode.That is to say, USB control device 100 is inserted into the initial stage of main frame 10, or the power-on initial stage, because the content (including the USB classification parameter about SIE unit 120) of volatile memory 170 all is reset and is original state (for example logical zero), makes the classification of USB control device 100 be preset as the HID single-mode.Therefore, before main frame 10 load operation systems 11, processing unit 130 is controlled SIE unit 120 according to the USB classification parameter in the volatile memory 170 classification is maintained at the HID single-mode.
After main frame 10 load operation systems 11, processing unit 130 changes second pattern that is different from the HID single-mode that is set at the classification of SIE unit 120.For example, described second pattern can be a kind of mixed mode that has HID classification and other classification simultaneously.Wherein, described other classification can be audio categories (Audio Class), communicator classification (Communications Device Class), imaging classification (Imaging Class), infrared data host-host protocol (Infrared Data Association, IrDA) classification, mass storage device classification (Mass Storage Class) printer classification (Printer Class), smart card classification (Smart Card Class), video classification (Video Class) and/or other classification.
In the present embodiment, if the USB classification parameter in the volatile memory 170 is a logical zero, then the classification of processing unit 130 control SIE unit 120 is maintained at the HID single-mode; If the USB classification parameters in the volatile memory 170 are logical one, then the classification of processing unit 130 control SIE unit 120 changes and is set at the mixed mode that has HID classification and audio categories simultaneously.Therefore, the wireless perimeter set that meets the HID classification such as keyboard, mouse etc. can be coupled to main frame 10 by USB control device 100, the wireless perimeter set that while such as headset (headset, the earphone of additional microphone) etc. meets audio categories also can be coupled to main frame 10 by USB control device 100.
A kind of initial method of USB control device 100 is described at this in sum.USB control device 100 is coupled to main frame 10, wherein the default HID single-mode that is categorized as of the device of USB control device 100.This initial method comprises: before main frame 10 load operation systems 11, make the classification of USB control device 100 be maintained at the HID single-mode; And after main frame 10 load operation systems 11, the classification of USB control device 100 is changed second pattern that is different from the HID single-mode that is set at.
Present embodiment is the device that the peripheral device classification of USB control device 100 correspondences is preset as the HID classification.Even the BIOS of main frame 10 is not familiar with the mixed mode that has HID classification and audio categories simultaneously, in any case the BIOS of main frame 10 can identification belongs to the USB control device 100 of HID single-mode.Therefore, the USB control device 100 that inserts main frame 10 can not cause the problem that can't start shooting.Main frame 10 start finish and load operation system 11 after, utilize application program (or driver) 12 or alternate manner (holding the back explanation) that the classification of USB control device 100 is changed again and be set at the mixed mode that has HID classification and audio categories simultaneously.Therefore, application program (or driver) 12 just can successfully link with headset, also can link with keyboard, mouse simultaneously.
Fig. 2 is the operating process synoptic diagram according to main frame 10 in the embodiment of the invention key diagram 1.When start, BIOS can only send a USB replacement order, for example sends " bus reset (busreset) " instruction and gives USB control device 100, the classification of identification USB control device 100 then.Be categorized as the HID single-mode because the device of USB control device 100 is default, so the correct classification of identification USB control device 100 of BIOS.
Please refer to Fig. 1 and Fig. 2, after main frame 10 load operation systems 11 (step S205), application program (or driver) 12 can check whether USB control device 100 inserts main frame 10 (step S210).If USB control device 100 has inserted main frame 10, whether then the application program of main frame 10 (or driver) 12 can be sent inquiry instruction and give processing unit 130, be HID single-mode (step S215) with the classification of SIE unit 120 in the detecting/inspection USB control device 100.If the classification of SIE unit 120 is not the HID single-mode in the USB control device 100, then application program (or driver) 12 can be sent " modification storer " instruction and give processing unit 130 (step S220), so that the USB classification parameters in the volatile memory 170 are revised as the HID single-mode, and trigger main frame 10 and carry out automatic configuration and link (auto-configuration link) program.Behind the completing steps S220, then get back to step S210.
If step S215 judges that the classification of SIE unit 120 in the USB control device 100 is the HID single-mode, then application program (or driver) 12 can be sent " modification storer " instruction and give processing unit 130 (step S225), so that the USB classification parameter in the volatile memory 170 is revised as the mixed mode that has HID classification and audio categories simultaneously.Next, application program (or driver) 12 sends " oneself resets (self-reset) " instruction or processing unit 130 (step S230) is given in " bus reset (bus reset) " instruction, and trigger main frame 10 and carry out automatic configuration and link program (step S235), to reset in the main frame 10 configuration about USB control device 100.In step S235, application program (or driver) 12 can check whether USB control device 100 inserts main frame 10.At this moment, USB control device 100 has been reset to the mixed mode that has HID classification and audio categories simultaneously, so application program (or driver) 12 can be linked to keyboard, mouse and headset USB peripheral devices such as (earphones of additional microphone) and normal operation (step S240) simultaneously by USB control device 100.
Fig. 3 is the operating process synoptic diagram according to USB control device 100 in the embodiment of the invention key diagram 1.Please refer to Fig. 1 and Fig. 3, after whether power-on or USB control device 100 inserted main frame 10 (step S305), processing unit 130 can be reset step (step S310) so that processing unit 130 initialization.When start, BIOS can only send a USB replacement order, for example sends " bus reset (bus reset) " instruction and gives USB control device 100, and USB control device 100 can carry out step S310 so that processing unit 130 initialization then.
The processing unit of finishing after the initialization 130 can carry out step S315, reading the parameter (for example USB classification parameter) in the volatile memory 170, and finishes the configuration and setting of SIE unit 120 according to the parameters in the volatile memory 170.Next, processing unit 130 can carry out step S320, to judge whether the USB classification parameter in the volatile memory 170 is " HID single-mode ".If the USB classification parameter in the volatile memory 170 is the HID single-mode, the configuration of expression SIE unit 120 is set to the HID single-mode, and then the processing unit 130 detecting result that can repay " HID single-mode " according to the inquiry instruction (with reference to step S215 among Fig. 2) of main frame 10 gives main frame 10 (step S325).If the USB classification parameter in the volatile memory 170 is a mixed mode, the configuration of expression SIE unit 120 is set to the mixed mode that has HID classification and audio categories simultaneously, then processing unit 130 can repay " mixed mode " according to the inquiry instruction (with reference to step S215 among Fig. 2) of main frame 10 the detecting result to main frame 10 (step S330).
Step S335 represents that SIE unit 120 and processing unit 130 normally move firmware and software according to the parameter in the volatile memory 170.Step S340 can have or not reception to obtain " modification storer " instruction in judgment processing unit 130.Do not obtain " modification storer " instruction if processing unit 130 receives, then processing unit 130 carries out step S2350 and has or not to receive with judgement and obtain " oneself resets " instruction.
If SIE unit 120 operates in the HID single-mode, then processing unit 130 can carry out step S325 and gives main frame 10 with the detecting result of repayment " HID single-mode ", makes main frame 10 carry out step S225 and sends " modification storer " instruction and give processing unit 130.When " modification storer " instruction is obtained in processing unit 130 receptions, processing unit 130 can carry out step S345 according to this instruction, so that the USB classification parameter in the volatile memory 170 is revised as " mixed mode " (for example logical one), carries out step S350 then and have or not reception to obtain " oneself resets " instruction with judgement.
If step S350 judged result is not, SIE unit 120 can continue normally operation (getting back to step S335) with processing unit 130.Carry out step S230 and send " modification storer " instruction to behind the processing unit 130 at main frame 10, processing unit 130 can get back to step S310 so that processing unit 130 initialization.For example, processing unit 130 reads the USB classification parameter in the volatile memory 170 once more, and resets the configuration of SIE unit 120 according to the USB classification parameter.Because the USB classification parameters in the volatile memory 170 have been modified to " mixed mode " in step S345, so processing unit 130 can change the configuration of SIE unit 120 and is set at the mixed mode (second pattern) that has HID classification and audio categories simultaneously.
Fig. 4 is the function block schematic diagram that a kind of USB control device 400 is described according to another embodiment of the present invention.Enforcement example shown in Figure 4 can be with reference to the related description of Fig. 1.Be different from USB control device 100 parts shown in Figure 1, be that USB control device 400 also comprises switch module 480.Switch module 480 comprises switch 481 and drop-down (pull low) resistance 482.First end of switch 481 is coupled to system voltage VCC, and second end of switch 481 is coupled to processing unit 130.First end of pull down resistor 482 is coupled to second end of switch 481, and second end of pull down resistor 48 is coupled to reference voltage (for example ground voltage or other decide voltage).If the configuration of switch 481 is first state, cut-off state for example, then the voltage of switch 481 second ends can be pulled to electronegative potential by pull down resistor 48.If the configuration of switch 481 is second state, conducting state for example, then the voltage of switch 481 second ends can be pulled to noble potential by system voltage VCC.Therefore, processing unit 130 can be checked the configuration of switch 481.
Fig. 5 is the operating process synoptic diagram according to USB control device 400 in the embodiment of the invention key diagram 4.Enforcement example shown in Figure 5 can be with reference to the related description of Fig. 3, only illustrates at this to be different from enforcement example part shown in Figure 3.Please refer to Fig. 4 and Fig. 5, the processing unit of finishing after the initialization 130 can carry out step S515, checking the configuration of switch 481, and according to the USB classification of the configuration and setting SIE unit 120 of checking switch 481.Whether next, processing unit 130 can carry out step S520, be " HID single-mode " with the configuration of judging switch 481.If the configuration of switch 481 is first state (a for example cut-off state), the configuration of expression SIE unit 120 can be set to the HID single-mode, and then the processing unit 130 detecting result that can repay " HID single-mode " according to the inquiry instruction (with reference to step S215 among Fig. 2) of main frame 10 gives main frame 10 (step S325).If the configuration of switch 481 is second state (a for example conducting state), the configuration of expression SIE unit 120 can be set to the HID single-mode, and then the processing unit 130 detecting result that can repay " mixed mode " according to the inquiry instruction (with reference to step S215 among Fig. 2) of main frame 10 gives main frame 10 (step S325).
In the process of normal operation (step S335), the processing unit 130 constantly configuration of detecting/inspection switch 481 has or not change (step S540).When the configuration of switch 481 was changed, processing unit 130 can be got back to step S310, so that processing unit 130 initialization.For example, processing unit 130 is checked the configuration of switch 481 once more, and sets the configuration of SIE unit 120 once more according to the configuration of switch 481.Therefore, the user can be by the switch 481 of operative configuration at USB control device 400, and be " HID single-mode " or " mixed mode " with the category setting of USB control device 400 at any time.For example, before start or with USB control device 400, insert main frames 10 before, user's configuration of switch 481 earlier is set to first state, so that be " HID single-mode " with the category setting of USB control device 400.After USB control device 400 was inserted main frames 10 and main frame 10 load operation systems 11, the configuration that the user can switch 481 was set to second state, so that be " mixed mode " (second pattern) with the category setting of USB control device 400.
Fig. 6 is the operating process synoptic diagram according to USB control device 100 in yet another embodiment of the invention key diagram 1.Enforcement example shown in Figure 6 can be with reference to the related description of Fig. 3, only illustrates at this to be different from enforcement example part shown in Figure 3.In the process of normal operation (step S335), the processing unit 130 of USB control device 100 can detecting/inspections constantly " non-man-machine interface equipment " whether be enabled (step S640).For example, " non-man-machine interface equipment " can be the earphone of additional microphone, or other USB peripheral device except keyboard, mouse.If " non-man-machine interface equipment " does not connect with USB control device 100 as yet for anergy (disable), no matter then the USB classification of SIE unit 120 is " HID single-mode " or " mixed mode ", all can not influence the normal operation of USB control device 100.
In the present embodiment, if " non-man-machine interface equipment " is anergy, then USB control device 1001 keeps operating in default HID single-mode.If step S640 judges " non-man-machine interface equipment " for enabling (enable), then processing unit 130 can carry out step S641, to judge whether the USB classification parameter in the volatile memory 170 is " HID single-mode ".If the USB classification parameter in the volatile memory 170 is " mixed mode ", the configuration of expression SIE unit 120 is set to the mixed mode that has HID classification and audio categories simultaneously, and the configuration that therefore need not change SIE unit 120 just can allow " non-man-machine interface equipment " (for example headset) successfully be connected to main frame 10 (step S335).
If the USB classification parameter in the volatile memory 170 is the HID single-mode, the configuration of expression SIE unit 120 is set to the HID single-mode, then processing unit 130 can carry out step S345, so that the USB classification parameter in the volatile memory 170 is revised as " mixed mode " (for example logical one), get back to step S310 then so that processing unit 130 initialization.For example, processing unit 130 reads the USB classification parameter in the volatile memory 170 once more, and resets the configuration of SIE unit 120 according to the USB classification parameter.Because the USB classification parameters in the volatile memory 170 have been modified to " mixed mode " in step S345, so processing unit 130 can change the configuration of SIE unit 120 and is set at the mixed mode (second pattern) that has HID classification and audio categories simultaneously.
In sum, the default classification of the device of the disclosed USB control device of the various embodiments described above (default class) is a HID single-mode (only having the HID classification).Therefore, BIOS can pick out the USB control device that the USB classification is the HID single-mode when start.Because at present the BIOS of main frame all can discern typical HID single-mode on the market, therefore do not improved because of BIOS is not familiar with the USB control device and caused the problem that to start shooting.Main frame finish the start and after the load operation system, the USB classification of USB control device can be changed to be set at is different from HID single-mode " second pattern ", for example change to be set at the mixed mode that has HID classification and other classification simultaneously.Therefore, the USB control device with second pattern just can be operated/be controlled to application program or driver in the main frame, even the BIOS of main frame can't the identification mixed mode.
Though the present invention with embodiment openly as above; right its is not in order to limit the present invention; those of ordinary skill in the technical field under any; without departing from the spirit and scope of the present invention; when can doing some trickle change and modification, so protection scope of the present invention is as the criterion when looking the claim person of defining.

Claims (16)

1. the initial method of a USB (universal serial bus) control device, it is characterized in that, this USB (universal serial bus) control device is coupled to a main frame, and a device of this USB (universal serial bus) control device is default to be categorized as a human interface device single-mode, and this initial method comprises:
Before this main frame loads an operating system, make the classification of this USB (universal serial bus) control device be maintained at this human interface device single-mode; And
After this main frame loads this operating system, the classification of this USB (universal serial bus) control device is changed one second pattern that is different from this human interface device single-mode that is set at.
2. the initial method of USB (universal serial bus) control device according to claim 1 is characterized in that, this second pattern is for having a mixed mode of human interface device classification and other classification simultaneously.
3. the initial method of USB (universal serial bus) control device according to claim 2, it is characterized in that described other classification is an audio categories, a communicator classification, an imaging classification, an infrared data host-host protocol classification, a mass storage device classification, a printer classification, a smart card classification or a video classification.
4. the initial method of USB (universal serial bus) control device according to claim 1 is characterized in that, also comprises:
Under the environment of this operating system, this main frame checks whether this USB (universal serial bus) control device operates in this human interface device single-mode; And
If this USB (universal serial bus) control device operates in this human interface device single-mode, then this main frame changes and sets this USB (universal serial bus) control device and be this second pattern.
5. the initial method of USB (universal serial bus) control device according to claim 1 is characterized in that, also comprises:
Dispose a switch in this USB (universal serial bus) control device;
This USB (universal serial bus) control device is checked the configuration of this switch;
If the configuration of this switch is first state, then this USB (universal serial bus) control device operates in this human interface device single-mode; And
If the configuration of this switch is second state, then this USB (universal serial bus) control device changes this second pattern that operates in.
6. the initial method of USB (universal serial bus) control device according to claim 1 is characterized in that, also comprises:
Whether detect a non-man-machine interface equipment by this USB (universal serial bus) control device enables;
If this non-man-machine interface equipment is anergy, then this USB (universal serial bus) control device operates in this human interface device single-mode; And
If this non-man-machine interface equipment is for enabling, then this USB (universal serial bus) control device changes this second pattern that operates in.
7. the initial method of USB (universal serial bus) control device according to claim 6 is characterized in that, this non-man-machine interface equipment is the earphone of additional microphone.
8. the initial method of USB (universal serial bus) control device according to claim 1 also comprises:
This USB (universal serial bus) control device change be set at this second pattern after, this main frame carries out an automatic configuration and links program, to reset in this main frame the configuration about this USB (universal serial bus) control device.
9. a USB (universal serial bus) control device is characterized in that, comprising:
One serial line interface engine unit is coupled to a main frame by a universal serial bus connector, wherein the default human interface device single-mode that is categorized as of one of this serial interface engine unit device; And
One processing unit is coupled to this serial interface engine unit;
Wherein before this main frame loaded an operating system, the classification that this processing unit is controlled this serial interface engine unit was maintained at this human interface device single-mode; And after this main frame loaded this operating system, this processing unit changed one second pattern that is different from this human interface device single-mode that is set at the classification of this serial interface engine unit.
10. USB (universal serial bus) control device according to claim 9 is characterized in that, this second pattern is for having a mixed mode of human interface device classification and other classification simultaneously.
11. USB (universal serial bus) control device according to claim 9, it is characterized in that described other classification is an audio categories, a communicator classification, an imaging classification, an infrared data host-host protocol classification, a mass storage device classification, a printer classification, a smart card classification or a video classification.
12. USB (universal serial bus) control device according to claim 9 is characterized in that, under the environment of this operating system, this main frame checks whether this serial interface engine unit operates in this human interface device single-mode; If this serial interface engine unit operations is in this human interface device single-mode, then this main frame sends an instruction and gives this processing unit; And this processing unit changes this second pattern that is set at according to this instruction with the classification of this serial interface engine unit.
13. USB (universal serial bus) control device according to claim 9 is characterized in that this processing unit is coupled to a switch; This processing unit is checked the configuration of this switch; If the configuration of this switch is first state, then this processing unit with the category setting of this serial interface engine unit in this human interface device single-mode; And if the configuration of this switch is second state, then this processing unit changes this second pattern that is set in the classification of this serial interface engine unit.
14. USB (universal serial bus) control device according to claim 9 is characterized in that, whether this processing unit is detected a non-man-machine interface equipment and is enabled; If this non-man-machine interface equipment is anergy, then this processing unit is set in this human interface device single-mode with this serial interface engine unit; And if this non-man-machine interface equipment is for enabling, then this processing unit changes this second pattern that is set in this serial interface engine unit.
15. USB (universal serial bus) control device according to claim 14 is characterized in that, this non-man-machine interface equipment is the earphone of additional microphone.
16. USB (universal serial bus) control device according to claim 9, it is characterized in that, this processing unit with this serial interface engine unit change be set at this second pattern after, this main frame carries out an automatic configuration and links program, to reset in this main frame the configuration about this USB (universal serial bus) control device.
CN2011102040033A 2011-07-21 2011-07-21 Universal serial bus (USB) control device and initialization method thereof Pending CN102214115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102040033A CN102214115A (en) 2011-07-21 2011-07-21 Universal serial bus (USB) control device and initialization method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102040033A CN102214115A (en) 2011-07-21 2011-07-21 Universal serial bus (USB) control device and initialization method thereof

Publications (1)

Publication Number Publication Date
CN102214115A true CN102214115A (en) 2011-10-12

Family

ID=44745436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102040033A Pending CN102214115A (en) 2011-07-21 2011-07-21 Universal serial bus (USB) control device and initialization method thereof

Country Status (1)

Country Link
CN (1) CN102214115A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413339A (en) * 2015-11-12 2019-11-05 华为技术有限公司 The method and apparatus for loading software module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430145A (en) * 2002-12-31 2003-07-16 艾威梯软件技术(北京)有限公司 Method of making bluetooth USB adaptor having man-machine interaction function
CN101231625A (en) * 2007-01-25 2008-07-30 三星电子株式会社 Apparatus and method for controlling USB operation
CN101369259A (en) * 2008-09-05 2009-02-18 深圳创维数字技术股份有限公司 Switch control method and apparatus and electronic equipment for USB interface master-salve equipment mode
CN101727428A (en) * 2008-10-30 2010-06-09 三星电子株式会社 Apparatus and method for controlling USB switching circuit in portable terminal
CN102067097A (en) * 2008-06-30 2011-05-18 三星电子株式会社 USB device and method for recognizing USB mode of the same
CN102063320A (en) * 2011-01-06 2011-05-18 华为终端有限公司 Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430145A (en) * 2002-12-31 2003-07-16 艾威梯软件技术(北京)有限公司 Method of making bluetooth USB adaptor having man-machine interaction function
CN101231625A (en) * 2007-01-25 2008-07-30 三星电子株式会社 Apparatus and method for controlling USB operation
CN102067097A (en) * 2008-06-30 2011-05-18 三星电子株式会社 USB device and method for recognizing USB mode of the same
CN101369259A (en) * 2008-09-05 2009-02-18 深圳创维数字技术股份有限公司 Switch control method and apparatus and electronic equipment for USB interface master-salve equipment mode
CN101727428A (en) * 2008-10-30 2010-06-09 三星电子株式会社 Apparatus and method for controlling USB switching circuit in portable terminal
CN102063320A (en) * 2011-01-06 2011-05-18 华为终端有限公司 Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413339A (en) * 2015-11-12 2019-11-05 华为技术有限公司 The method and apparatus for loading software module

Similar Documents

Publication Publication Date Title
US7043664B1 (en) Firmware recovery
CN103150231A (en) Computer booting method and computer system
CN103593281A (en) Test system and test method
CN103389898A (en) Method for managing mobile terminal software and mobile terminal
CN103645918A (en) Software upgrading method and device for industrial endoscope
CN102609290B (en) The method for upgrading software of electronic product
CN105677409B (en) A kind of method for upgrading system and device
CN102890662A (en) Method for identifying host operating system by executing enumeration twice on USB (Universal Serial Bus) HID (Human Interface Device)
CN112148337A (en) Firmware upgrading method and device
CN101515236B (en) Restoring method and update module for basic input/output system and computer system
CN102446101A (en) System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof
CN110647342A (en) Gateway upgrading method and system based on USB
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN107608923B (en) Test processing method and related product
CN103617053A (en) Method and device for upgrading software
CN102214115A (en) Universal serial bus (USB) control device and initialization method thereof
CN113360161A (en) Resource upgrading method and related product
CN100410893C (en) Method and apparatus for master-controlled applied programm of self-repairing built-in equipment
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN107451067B (en) Processing method for downloading test and related product
CN102184115A (en) Method and device for updating system software
CN110109529A (en) SD card method for controlling power supply, device, storage medium and electronic equipment
CN105653412A (en) Fingerprint device compatibility detection method and terminal
CN112527341B (en) Vehicle system upgrading method, vehicle system and computer storage medium
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111012