CN1851681A - Device and method for operating USB interface device - Google Patents

Device and method for operating USB interface device Download PDF

Info

Publication number
CN1851681A
CN1851681A CN 200610083210 CN200610083210A CN1851681A CN 1851681 A CN1851681 A CN 1851681A CN 200610083210 CN200610083210 CN 200610083210 CN 200610083210 A CN200610083210 A CN 200610083210A CN 1851681 A CN1851681 A CN 1851681A
Authority
CN
China
Prior art keywords
extended capabilities
capabilities port
main frame
usb interface
usb
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610083210
Other languages
Chinese (zh)
Other versions
CN100386754C (en
Inventor
陆舟
于华章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feitian Technologies Co Ltd
Original Assignee
Beijing Feitian Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feitian Technologies Co Ltd filed Critical Beijing Feitian Technologies Co Ltd
Priority to CNB2006100832107A priority Critical patent/CN100386754C/en
Publication of CN1851681A publication Critical patent/CN1851681A/en
Priority to JP2007142018A priority patent/JP4886601B2/en
Application granted granted Critical
Publication of CN100386754C publication Critical patent/CN100386754C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

In the present invented device and method, user can transmit command for opening appointed expansion port through main unit according to requirement, and through resolving command to obtain expansion port address, opening passage-way between said expansion port and main unit having said address, finally to proceed operation to said port connected USB equipment, through reporting to notify main unit USB equipment status, then user capable of to appoint operation USB equipment, to raise efficiency and ensure only one USB equipment connected with main unit in time.

Description

The device and method that USB interface equipment is operated
Technical field
The present invention relates to a kind of device and method that computer peripheral equipment is operated, particularly a kind of device and method that USB interface equipment is operated belongs to field of computer peripherals.
Background technology
Because USB interface is universal in recent years, USB interface-based equipment is more and more on the market.Many manufacturers are all at development USB product.These USB products are needing repeatedly to test during researching and developing launch, and some product needed was carried out special operational (need carry out the bottom format manipulation as USB flash disk when dispatching from the factory) before selling.To the testing equipment of USB interface or operation the time, main frame at first needs to judge the state of the equipment of USB interface, and USB interface is made of four lines, power lead (VCC), signal wire (D+), signal wire (D-), ground wire (GND).Being connected by being communicated with these four lines of USB device and main frame realizes.Main frame when not having USB device to insert, signal wire (D+, D-) level on is in low level state, in case and access device, signal wire (D+, among D-) one can by on move high level to, like this, equipment can normally use.If equipment is access in, but signal wire (D+, D-) all not by on move high level to, or all by on move high level to, this equipment is exactly out of order so.
The USB port that these USB products all need to be connected to main frame when doing test and special operational is operated.But USB port quantity integrated on the general main frame is fewer.The production of common product all is in batches, and this just causes main frame and operating personnel's quantity of needs when doing test and special operational all many.So just caused the resource serious waste, production efficiency is low.
That more generally use in the market is USB HUB, a USB interface by main frame expands to a plurality of USB interface like this, in generative process, use generic USB HUB, need the artificial plug equipment that does not stop, whether the user could discern certain port like this equipment, the time of artificial plug equipment has occupied in whole process of production greatly, main frame can be carried out different business to the equipment on each USB interface in addition, for each equipment all distributes corresponding bandwidth, that is to say that the equipment on a plurality of USB interface is shared the usb bus bandwidth.
The problem that prior art exists:
1. upper application software cannot optionally be controlled the downstream USB Extended Capabilities Port of appointment.
2. whether whether can't detect has USB device normal with the detection USB device on the Extended Capabilities Port, which USB device fault the user can't know.
3. the quantity that inserts the USB device of Extended Capabilities Port can influence the usb bus bandwidth.
4. production efficiency is low.
Summary of the invention
In order to solve above-mentioned problems of the prior art, the invention provides and a kind of USB interface equipment is carried out method of operating and device, the technical solution used in the present invention is to increase control module in existing apparatus, upper layer software (applications) in the main frame uses certain communication protocol to communicate by letter with control module by interface function, specifies Extended Capabilities Port by control module.
One aspect of the present invention provides a kind of device that USB interface equipment is operated, this device comprises main frame, control module, switch module, the Extended Capabilities Port module, main frame is used for sending opening specifies the Extended Capabilities Port order, USB device that Extended Capabilities Port connects to appointment is operated, control module is used for resolve command and the address of the port module that is expanded, the gauge tap module, switch module is used for switch and has path between the Extended Capabilities Port module of this address and the main frame USB interface, the Extended Capabilities Port module is used to connect USB device, main frame is by the USB interface link control module and the switch module of main frame, control module is connected with switch module, and switch module is connected with the Extended Capabilities Port module.
Control module comprises the state that is used to detect the USB device that Extended Capabilities Port connects with this address, and reports to the detection sub-module of main frame.
Extended Capabilities Port modular power source line, D+ line and D-line are connected the main frame USB interface by switch module.
Extended Capabilities Port module ground wire directly is connected with the main frame USB interface.
When switch module was open mode, USB device power supply, three connecting lines of D+ and D-that switch module is communicated with on the Extended Capabilities Port were connected with the main frame USB interface.
When switch module was closed condition, USB device power supply, three connecting lines of D+ and D-that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.
Switch module comprises analog switch chip, address selection chip and on-off circuit, the address selection chip connects described control module, analog switch chip and on-off circuit, Extended Capabilities Port modular power source line connects the main frame USB interface by on-off circuit, and Extended Capabilities Port module D+ line, D-line connect the main frame USB interface by the analog switch chip.
Extended Capabilities Port module ground wire connects the main frame USB interface by switch module.
When switch module was open mode, the USB device on the Extended Capabilities Port was connected with the main frame USB interface by power supply, four connecting lines of D+, D-and ground.
When switch module was closed condition, USB device power supply, four connecting lines of D+, D-and ground that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.
Switch module comprises analog switch chip, address selection chip and on-off circuit, address selection chip link control module, analog switch chip and on-off circuit, Extended Capabilities Port modular power source line is connected the main frame USB interface with ground wire by on-off circuit, and Extended Capabilities Port module D+ line, D-line connect the main frame USB interface by the analog switch chip.
Main frame is by the USB interface link control module and the switch module of USB HUB module.The Extended Capabilities Port module comprises a plurality of expansion interfaces.
The Extended Capabilities Port module comprises a plurality of expansion interfaces.
The present invention provides a kind of on the other hand and USB interface equipment is carried out method of operating comprises the steps:
Steps A: main frame sends to control module and opens the Extended Capabilities Port order;
Step B: the control module resolve command and the port address that is expanded;
Step C: control module gauge tap module device is opened path between Extended Capabilities Port with address and the main frame;
Step D: USB device that Extended Capabilities Port connects is operated.
Step C comprises:
Step C1: control module is selected the Extended Capabilities Port of address by the address selection chip of switch module inside;
Step C2: control module is opened the Extended Capabilities Port of address and the connecting line between the main frame by the control analog switch chip and the transistor switching circuit of switch module inside.
Step D is specially: whether the state to USB device that Extended Capabilities Port connects with address normally carries out detecting operation, and gives main frame with test results report.
Step D is specially: USB device that Extended Capabilities Port connects is carried out business operation.
Step D is specially: the USB device that Extended Capabilities Port connects with address is carried out business operation.
Comprise also between step C and step D whether the state to USB device that Extended Capabilities Port connects with address normally carries out detecting operation, and the result is reported to the step of main frame.
Be specially when detecting step: when the state that detects Extended Capabilities Port institute connection device is normal, and when reporting to main frame, corresponding, step D is specially: main frame carries out business operation to USB device that Extended Capabilities Port connects.
Be specially when detecting step: undesired when the state that detects USB device that Extended Capabilities Port connects, and when reporting to main frame, re-execute main frame and open the step of the order of Extended Capabilities Port to the control module transmission.
Be specially when detecting step: when the state that detects USB device that Extended Capabilities Port connects undesired, and when reporting to main frame, re-execute main frame sends step from the order of opening Extended Capabilities Port to control module, accordingly, step D is specially: main frame carries out business operation to USB device that Extended Capabilities Port connects.
Be specially when detecting step: to connect the USB device state undesired when detecting Extended Capabilities Port, and when reporting to main frame, re-execute the step that main frame sends the order of opening other Extended Capabilities Port, accordingly, step D is specially: main frame carries out business operation to USB device that other Extended Capabilities Port connect.
Undesired being specially of state of USB device that Extended Capabilities Port connects: USB device that Extended Capabilities Port connects exists, and USB device is a malfunction.
Undesired being specially of state of USB device that Extended Capabilities Port connects: USB device that Extended Capabilities Port connects does not exist.
After the step D another is expanded salty new operation steps A-D.
Beneficial effect:
1. upper application software can optionally be controlled the downstream USB Extended Capabilities Port of appointment.
2. can detect and specify on the Extended Capabilities Port whether USB device is arranged, and whether detect USB device normal, which USB device fault the user can know.
3. the quantity that inserts the USB device of Extended Capabilities Port can not influence the usb bus bandwidth.
4. improved production efficiency.
Description of drawings
The device synoptic diagram that contains USB HUB module that provides of the present invention is provided Fig. 1;
The device synoptic diagram that does not contain USB HUB module that provides of the present invention is provided Fig. 2;
Fig. 3 for of the present invention provide USB interface equipment is carried out method of operating 1 process flow diagram;
Fig. 4 for of the present invention provide USB interface equipment is carried out method of operating 2 process flow diagrams;
Fig. 5 for of the present invention provide USB interface equipment is carried out method of operating 3 process flow diagrams;
Fig. 6 for of the present invention provide USB interface equipment is carried out method of operating 4 process flow diagrams;
Fig. 7 for of the present invention provide USB interface equipment is carried out method of operating 5 process flow diagrams.
Fig. 8 for of the present invention provide USB interface equipment is carried out method of operating 6 process flow diagrams.
Embodiment
Further specify the present invention below in conjunction with drawings and Examples, but not as a limitation of the invention.
Apparatus of the present invention are dimerous by software unit and hardware cell.Software section mainly refers to upper application software, and api function that upper application software can carry by system and respective protocol and control module communicate.
Control module is gone the physical connection of gauge tap module (this switch module comprises address selection chip 74HC138, on-off circuit and bidirectional high speed analog switch chip MAX4638) and Extended Capabilities Port as requested after the order of receiving upper application software.Each Extended Capabilities Port all has an absolute port numbers, and these port numbers have been assigned with different addresses.Control module is determined the designated port that upper application software need be controlled by the address selection chip in the switch module.
Switch module inside comprises analog switch chip, address selection chip and the on-off circuit that is made of transistor.Because USB device on the Extended Capabilities Port and main-machine communication need four connecting lines (power supply, D+, D-, ground).So we use these elements of switch module inside that these four connecting lines of the USB device on the Extended Capabilities Port are isolated respectively.Just can control communicating by letter of USB device on the Extended Capabilities Port of appointment and main frame so physically.
When sending to control module, upper application software orders, when requiring the USB device on a certain Extended Capabilities Port of visit.The address selection chip of control module by switch module inside selected the Extended Capabilities Port of assigned address, and controls analog switch chip and transistor switching circuit simultaneously, and four connecting lines of USB and the main frame USB interface of the Extended Capabilities Port of assigned address are connected.Specify the USB device of Extended Capabilities Port just can communicate by letter normally like this with main frame.Can see on Extended Capabilities Port, having only an equipment to communicate by implementation method, when this equipment and main frame communicate, be disconnected by physics between other Extended Capabilities Port and the main frame USB interface with main frame.Such benefit is no matter what USB device are Extended Capabilities Port connect, and system can not produce usb bus bandwidth deficiency, and upper application software can arbitrarily be controlled the Extended Capabilities Port of appointment.
Embodiment 1
As shown in Figure 1, device provided by the invention comprises the main frame 12 that includes upper-layer user's software unit, USB HUB module 13 (comprising a USB HUB chip AU9254A21), control module 14 (be control module, this unit comprises a microcontroller Motorola 68HC908JB8), switch module 15 and Extended Capabilities Port module 16.Use direct data connected mode between these several modules, concrete annexation is that main frame 12 is distinguished link control module 14 and switch module 15 by two USB interface of the USB HUB module 13 of main frame, control module 14 is connected with switch module 15, and switch module 15 is connected with Extended Capabilities Port module 16.
Wherein upper-layer user's software unit is made up of api function and the corresponding interface order and user software.The user can operate by api function and the corresponding interface order, controls Extended Capabilities Port module 16.
USB HUB module 13 is made of single-chip, has mainly realized the function of usb hub.Guarantee that control module 14 and Extended Capabilities Port module 16 can communicate with main frame.
Control module 14 comprises microprocessor, this module is used for being responsible for the order of response upper-layer user software unit, and real-time come gauge tap module 15 according to specific instructions, reach the function of management 16 Extended Capabilities Port modules, control module 14 also comprises the state that is used to detect the USB device that Extended Capabilities Port connects with described address, and reports to the detection sub-module 17 of main frame.
Extended Capabilities Port modular power source line, D+ line, D-line and ground wire are connected the main frame USB interface by switch module, when switch module is open mode, USB device on the Extended Capabilities Port is connected with the main frame USB interface by power supply, four connecting lines of D+, D-and ground, when switch module was closed condition, USB device power supply, four connecting lines of D+, D-and ground that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.Certainly the Extended Capabilities Port ground wire also can directly be connected with the main frame USB interface always, and switch module also can be realized identical technical purpose by opening the powered-down line separately.
Specifically describe and be exactly, 15 switch modules comprise analog switch chip, address selection chip and on-off circuit, address selection chip link control module, analog switch chip and on-off circuit, on-off circuit connects Extended Capabilities Port module and main frame USB interface by power lead, ground wire, and the analog switch chip connects Extended Capabilities Port module and main frame USB interface by D+, D-line.When on-off circuit, when the analog switch chip is open mode, promptly when on-off circuit, analog switch chip were opened between Extended Capabilities Port with this address and the main frame path, the USB device on the Extended Capabilities Port was connected with the main frame USB interface by power supply, four connecting lines of D+, D-and ground.When on-off circuit, when the analog switch chip is closed condition, promptly when on-off circuit, analog switch chip were closed between Extended Capabilities Port with this address and the main frame USB interface path, USB device power supply, four connecting lines of D+, D-and ground that on-off circuit, analog switch chip are isolated on the Extended Capabilities Port were connected with the main frame USB interface.Switch module 15 is made of 10 switch submodules, and the control of controlled module 14 is communicated with on the physical channel or disconnects being connected of Extended Capabilities Port module 16 and USB HUB module 13.And Extended Capabilities Port module 16 has only an Extended Capabilities Port to keep physically being connected with USB HUB module 13 at one time.
Extended Capabilities Port module 16 provides 10 Extended Capabilities Port, it is external connection interface section, the connecting interface of USB flash disk can be provided for the user, owing on Extended Capabilities Port, have only a USB flash disk to communicate with main frame, when this USB flash disk and main frame communicate, disconnected by physics between other Extended Capabilities Port and the main frame, so no matter what USB device are Extended Capabilities Port connect, system can not produce the problem of usb bus bandwidth deficiency, and therefore Extended Capabilities Port module 16 can provide any a plurality of Extended Capabilities Port in theory.
Embodiment 2
As shown in Figure 2, apparatus of the present invention comprise that the main frame 12, control module 14 (control module comprises a microcontroller Motorola68HC908JB8), switch module 15 (switch module comprises addressing chip 74HC138, on-off circuit and bidirectional high speed analog switch chip MAX4638) and the 15 Extended Capabilities Port modules that include upper-layer user's software unit are the Extended Capabilities Port module.Use direct data connected mode between these several modules, concrete annexation is USB interface link control module 14 and the switch module 15 of main frame 12 by main frame, control module 14 is connected with switch module 15, and switch module 15 is connected with Extended Capabilities Port module 16.
Wherein upper-layer user's software unit is made up of api function and the corresponding interface order and user software.The user can operate by api function and the corresponding interface order, controls Extended Capabilities Port module 16.
Control module 14 comprises microprocessor, and this module is responsible for responding the order of upper-layer user's software unit, and real-time comes gauge tap module 15 according to specific instructions, reaches the function of administration extensions port module 16.
Switch module 15 comprises analog switch chip, address selection chip and on-off circuit, address selection chip link control module, analog switch chip and on-off circuit, on-off circuit connects Extended Capabilities Port module and main frame USB interface by power lead, ground wire, and the analog switch chip connects this Extended Capabilities Port module and main frame USB interface by D+, D-line.When on-off circuit, analog switch chip were opened between Extended Capabilities Port with this address and the main frame USB interface path, the USB device on the Extended Capabilities Port was connected with the main frame USB interface by power supply, four connecting lines of D+, D-and ground.When on-off circuit, analog switch chip were closed between Extended Capabilities Port with this address and the main frame USB interface path, USB device power supply, four connecting lines of D+, D-and ground that on-off circuit, analog switch chip are isolated on the Extended Capabilities Port were connected with the main frame USB interface.Certainly the Extended Capabilities Port ground wire also can directly be connected with the main frame USB interface always, and on-off circuit closes the border power lead and also can realize identical technical purpose by opening separately.The control of switch module 15 controlled modules 14 is communicated with on the physical channel or disconnects being connected of Extended Capabilities Port module 16 and main frame 12.And have only an Extended Capabilities Port in the Extended Capabilities Port module 16 to keep physically being connected at one time with main frame 12.
Extended Capabilities Port module 16 provides external connection interface section, and the connecting interface of USB device can be provided for the user.
Embodiment 3
Operating personnel are carrying out detecting operation to the 1st USB flash disk that Extended Capabilities Port connects, and the method 1 of present embodiment employing comprises that step is as follows as shown in Figure 3:
Step 101: operating personnel assign the 1st order that USB flash disk that Extended Capabilities Port connects detects main frame, and the main frame upper application software sends the order of opening the 1st Extended Capabilities Port by api function and corresponding protocol to control module.
Step 102: control module receives the order that main frame is sent out, and according to the respective protocol resolve command.
Step 103: control module determines that according to the data that resolve command obtains the address of the 1st Extended Capabilities Port that upper application software need be controlled is 001.
Step 104: control module gauge tap module, only the path that 001 Extended Capabilities Port is connected main frame or USB HUB is opened, guarantee that 001 Extended Capabilities Port and main frame or USB HUB are communicated with physically, and other Extended Capabilities Port and main frame or USB HUB are disconnected physically.
Step 105: control module is carried out detecting operation to the USB flash disk that 001 Extended Capabilities Port is connected, and judges that USB flash disk exists and state is normal, and control module is returned USB flash disk to main frame and existed and the normal information of state, afterwards to the 2nd Extended Capabilities Port operation steps 101.Operating personnel just can be by showing that USB flash disk exists and the normal information of state learns that this USB flash disk exists and state is normal like this.
When a fault USB flash disk inserts, adopt this method can detect its malfunction equally, adopting this method can detect this port when an expansion mouth does not insert USB flash disk does not have USB flash disk to insert yet yet.
Embodiment 4
Operating personnel are by method 1 detected 8 normal USB flash disks of state of the present invention, these 8 normal USB flash disks of state are inserted in the 1-8 mouth of expansion mouth respectively, and adopt method 2 of the present invention to carry out format manipulation respectively, the method 2 of present embodiment employing comprises that step is as follows as shown in Figure 4:
Step 201: operating personnel assign main frame the 1st Extended Capabilities Port are connected the USB flash disk formatting command, and the main frame upper application software sends the order of opening the 1st Extended Capabilities Port by api function and corresponding protocol to control module.
Step 202: control module receives the order that main frame is sent out, and according to the respective protocol resolve command.
Step 203: control module determines that according to the data that resolve command obtains the address of the 1st Extended Capabilities Port that upper application software need be controlled is 001.
Step 204: control module gauge tap module, only the path that 001 Extended Capabilities Port is connected main frame or USB HUB is opened, guarantee that 001 Extended Capabilities Port and main frame or USB HUB are communicated with physically, and other Extended Capabilities Port and main frame or USB HUB are disconnected physically.
Step 205: host application software carries out format manipulation to the USB flash disk that 001 Extended Capabilities Port is connected, and this USB flash disk format of success back demonstration successful information notifying operation personnel is finished.
Re-execute step 201 afterwards, different is, and operating personnel assign main frame again that the 2nd Extended Capabilities Port connected the USB flash disk formatting command, also can not finish automatically by computer software if do not issue an order by operating personnel certainly.Finish format manipulation by that analogy to these 8 USB flash disks, when using this method that USB flash disk is carried out format manipulation, need not confirm the USB flash disk state, also can be to 8 not after testing USB flash disk directly carry out format manipulation, or directly each port is assigned the order of format manipulation respectively, and do not consider whether to have USB flash disk to insert.
Embodiment 5
Certainly operating personnel also can survey judgement limit format manipulation by frontier inspection when the 1st USB flash disk that Extended Capabilities Port connects carried out format manipulation, and the method 3 of present embodiment employing comprises that step is as follows as shown in Figure 5:
Step 301: operating personnel assign main frame the 1st USB flash disk that Extended Capabilities Port connects are detected and formatting command, and the main frame upper application software sends the order of opening the 1st Extended Capabilities Port by api function and corresponding protocol to control module.
Step 302: control module receives the order that main frame is sent out, and according to the respective protocol resolve command.
Step 303: control module determines that according to the data that resolve command obtains the address of the 1st Extended Capabilities Port that upper application software need be controlled is 001.
Step 304: control module gauge tap module, only the path that 001 Extended Capabilities Port is connected main frame or USB HUB is opened, guarantee that 001 Extended Capabilities Port and main frame or USB HUB are communicated with physically, and other Extended Capabilities Port and main frame or USB HUB are disconnected physically.
Step 305: control module detects the USB flash disk that 001 Extended Capabilities Port is connected, and judge the USB flash disk state, when state normally promptly this USB flash disk insert and during non-fault, directly carry out 306 steps, when Extended Capabilities Port has USB flash disk to insert but this equipment when being a fault USB flash disk, carry out follow-up 307 steps.
Step 306: control module is returned USB flash disk to main frame and is existed and the normal information of state, direct control step 308 afterwards.
Step 307: control module is returned the USB flash disk existence to main frame but is the information of malfunction, and the USB flash disk that more renews re-executes similar step to the 1st Extended Capabilities Port afterwards.
Step 308: receive return message aft engine application software the USB flash disk that 001 Extended Capabilities Port is connected is carried out format manipulation, this USB flash disk format of success back demonstration successful information notifying operation personnel is finished.
Embodiment 6
Different with embodiment 5, when Extended Capabilities Port did not have USB flash disk to insert, as shown in Figure 6, the method 4 that adopts at present embodiment comprised that step is as follows:
Step 401: operating personnel assign main frame the 1st USB flash disk that Extended Capabilities Port connects are detected and formatting command, and the main frame upper application software sends the order of opening the 1st Extended Capabilities Port by api function and corresponding protocol to control module.
Step 402: control module receives the order that main frame is sent out, and according to the respective protocol resolve command.
Step 403: control module determines that according to the data that resolve command obtains the address of the 1st Extended Capabilities Port that upper application software need be controlled is 001.
Step 404: control module gauge tap module, only the path that 001 Extended Capabilities Port is connected main frame or USB HUB is opened, guarantee that 001 Extended Capabilities Port and main frame or USB HUB are communicated with physically, and other Extended Capabilities Port and main frame or USB HUB are disconnected physically.
Step 405: control module detects the USB flash disk that 001 Extended Capabilities Port is connected, and judges the USB flash disk state, when state just often, directly carry out 406 steps, when Extended Capabilities Port does not have USB flash disk to insert, carry out follow-up 407 steps.
Step 406: control module is returned USB flash disk to main frame and is existed and the normal information of state, direct control step 408 afterwards.
Step 407: control module is returned the information that Extended Capabilities Port does not have USB flash disk to insert to main frame, and the USB flash disk that more renews re-executes similar step to the 1st Extended Capabilities Port afterwards.
Step 408: receive return message aft engine application software the USB flash disk that 001 Extended Capabilities Port is connected is carried out format manipulation, this USB flash disk format of success back demonstration successful information notifying operation personnel is finished.
Embodiment 7
As when the USB flash disk fault, also can not change the USB flash disk of the 1st Extended Capabilities Port immediately, but the 2nd Extended Capabilities Port operated, as shown in Figure 7, the method 5 that adopts at present embodiment comprises that step is as follows:
Step 501: operating personnel assign main frame the 1st USB flash disk that Extended Capabilities Port connects are detected and formatting command, and the main frame upper application software sends the order of opening the 1st Extended Capabilities Port by api function and corresponding protocol to control module.
Step 502: control module receives the order that main frame is sent out, and according to the respective protocol resolve command.
Step 503: control module determines that according to the data that resolve command obtains the address of the 1st Extended Capabilities Port that upper application software need be controlled is 001.
Step 504: control module gauge tap module, only the path that 001 Extended Capabilities Port is connected main frame or USB HUB is opened, guarantee that 001 Extended Capabilities Port and main frame or USB HUB are communicated with physically, and other Extended Capabilities Port and main frame or USB HUB are disconnected physically.
Step 505: control module detects the USB flash disk that 001 Extended Capabilities Port is connected, and judges the USB flash disk state, when state just often, directly carry out 506 steps, when Extended Capabilities Port has USB flash disk to insert but this equipment when being a fault USB flash disk, carry out follow-up 507 steps.
Step 506: control module is returned USB flash disk to main frame and is existed and the normal information of state, direct control step 508 afterwards.
Step 507: control module is returned the USB flash disk existence to main frame but is the information of malfunction, and the USB flash disk that more renews re-executes similar step to the 2nd Extended Capabilities Port afterwards.
Step 508: receive return message aft engine application software the USB flash disk that 001 Extended Capabilities Port is connected is carried out format manipulation, this USB flash disk format of success back demonstration successful information notifying operation personnel is finished.
Embodiment 8
When Extended Capabilities Port does not have USB flash disk to insert, can not insert USB flash disk the 1st Extended Capabilities Port again immediately yet, but the 2nd Extended Capabilities Port operated, as shown in Figure 8, the method 6 that adopts at present embodiment comprises that step is as follows:
Step 601: operating personnel assign main frame the 1st USB flash disk that Extended Capabilities Port connects are detected and formatting command, and the main frame upper application software sends the order of opening the 1st Extended Capabilities Port by api function and corresponding protocol to control module.
Step 602: control module receives the order that main frame is sent out, and according to the respective protocol resolve command.
Step 603: control module determines that according to the data that resolve command obtains the address of the 1st Extended Capabilities Port that upper application software need be controlled is 001.
Step 604: control module gauge tap module, only the path that 001 Extended Capabilities Port is connected main frame or USB HUB is opened, guarantee that 001 Extended Capabilities Port and main frame or USB HUB are communicated with physically, and other Extended Capabilities Port and main frame or USB HUB are disconnected physically.
Step 605: control module detects the USB flash disk that 001 Extended Capabilities Port is connected, and judges the USB flash disk state, when state just often, directly carry out 606 steps, when Extended Capabilities Port does not have USB flash disk to insert, carry out follow-up 607 steps.
Step 606: control module is returned USB flash disk to main frame and is existed and the normal information of state, direct control step 608 afterwards.
Step 607: control module is returned the information that Extended Capabilities Port does not have USB flash disk to insert to main frame, and the USB flash disk that more renews re-executes similar step to the 2nd Extended Capabilities Port afterwards.
Step 608: receive return message aft engine application software the USB flash disk that 001 Extended Capabilities Port is connected is carried out format manipulation, this USB flash disk format of success back demonstration successful information notifying operation personnel is finished.
In the above-described embodiments, just enumerate USB flash disk is carried out formative operation, can certainly operate other USB interface equipment, and wherein business operation is not limited to just carry out format manipulation, also can reads and writes or the like other business operations USB interface equipment.In embodiment 5-8, can continue operation to next Extended Capabilities Port after the complete operation, begin to carry out in initial step again.
More than to a kind of method provided by the present invention and device, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and realizing thought; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (26)

1. device that USB interface equipment is operated, it is characterized in that, described device comprises main frame, control module, switch module, the Extended Capabilities Port module, described main frame is used for sending opening specifies the Extended Capabilities Port order, USB device that Extended Capabilities Port connects to appointment is operated, described control module is used to resolve the address of the described order and the port module that is expanded, the gauge tap module, described switch module is used for switch and has path between the Extended Capabilities Port module of described address and the main frame, described Extended Capabilities Port module is used to connect USB device, main frame is by the USB interface link control module and the switch module of main frame, control module is connected with switch module, and switch module is connected with the Extended Capabilities Port module.
2. the device that USB interface equipment is operated according to claim 1 is characterized in that described control module comprises the state that is used to detect the USB device that Extended Capabilities Port connects with described address, and reports to the detection sub-module of main frame.
3. the device that USB interface equipment is operated according to claim 1 and 2 is characterized in that, described Extended Capabilities Port modular power source line, D+ line and D-line are connected described main frame USB interface by described switch module.
4. the device that USB interface equipment is operated according to claim 3 is characterized in that, Extended Capabilities Port module ground wire directly is connected with the main frame USB interface.
5. the device that USB interface equipment is operated according to claim 4, it is characterized in that, when described switch module was open mode, USB device power supply, three connecting lines of D+ and D-that switch module is communicated with on the Extended Capabilities Port were connected with the main frame USB interface.
6. the device that USB interface equipment is operated according to claim 4, it is characterized in that, when described switch module was closed condition, USB device power supply, three connecting lines of D+ and D-that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.
7. according to the described device that USB interface equipment is operated of any claim of claim 4-6, it is characterized in that, described switch module comprises analog switch chip, address selection chip and on-off circuit, described address selection chip connects described control module, analog switch chip and on-off circuit, described Extended Capabilities Port modular power source line connects described main frame USB interface by described on-off circuit, and described Extended Capabilities Port module D+ line, D-line connect described main frame USB interface by described analog switch chip.
8. the device that USB interface equipment is operated according to claim 3 is characterized in that, Extended Capabilities Port module ground wire connects described main frame USB interface by described switch module.
9. the device that USB interface equipment is operated according to claim 8 is characterized in that, when described switch module was open mode, the USB device on the Extended Capabilities Port was connected with the main frame USB interface by power supply, four connecting lines of D+, D-and ground.
10. the device that USB interface equipment is operated according to claim 8, it is characterized in that, when described switch module was closed condition, USB device power supply, four connecting lines of D+, D-and ground that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.
11. the described device that USB interface equipment is operated of any according to Claim 8-10 claim, it is characterized in that, described switch module comprises analog switch chip, address selection chip and on-off circuit, described address selection chip connects described control module, analog switch chip and on-off circuit, described Extended Capabilities Port modular power source line is connected described main frame USB interface with ground wire by described on-off circuit, and described Extended Capabilities Port module D+ line, D-line connect described main frame USB interface by described analog switch chip.
12. the device that USB interface equipment is operated according to claim 1 and 2 is characterized in that, main frame is by the USB interface link control module and the switch module of USB HUB module.
13. the device that USB interface equipment is operated according to claim 1 and 2 is characterized in that, described Extended Capabilities Port module comprises a plurality of expansion interfaces.
14. one kind is carried out method of operating to USB interface equipment, it is characterized in that, comprises the steps:
Steps A: main frame sends to control module and opens the Extended Capabilities Port order;
Step B: control module is resolved the described order and the port address that is expanded;
Step C: control module gauge tap module is opened path between Extended Capabilities Port with described address and the main frame;
Step D: USB device that Extended Capabilities Port connects is operated.
15. according to claim 14 USB interface equipment is carried out method of operating, it is characterized in that described step C comprises:
Step C1: control module is selected the Extended Capabilities Port of described address by the address selection chip of switch module inside;
Step C2: control module is opened the Extended Capabilities Port of described address and the connecting line between the main frame by the control analog switch chip and the transistor switching circuit of switch module inside.
16. according to claim 14 USB interface equipment is carried out method of operating, it is characterized in that, described step D is specially: whether the state to USB device that Extended Capabilities Port connects with described address normally carries out detecting operation, and gives main frame with test results report.
17. according to claim 14 USB interface equipment is carried out method of operating, it is characterized in that described step D is specially: USB device that Extended Capabilities Port connects is carried out business operation.
18. according to claim 17 USB interface equipment is carried out method of operating, it is characterized in that described step D is specially: the USB device that Extended Capabilities Port connects with described address is carried out business operation.
19. according to claim 17 USB interface equipment is carried out method of operating, it is characterized in that, comprise also between step C and step D whether the state to USB device that Extended Capabilities Port connects with described address normally carries out detecting operation, and the result is reported to the step of main frame.
20. according to claim 19 USB interface equipment is carried out method of operating, it is characterized in that, when described detection step is specially: when the state that detects described Extended Capabilities Port institute connection device normal, and when reporting to main frame, accordingly, step D is specially: main frame carries out business operation to USB device that described Extended Capabilities Port connects.
21. according to claim 19 USB interface equipment is carried out method of operating, it is characterized in that, when described detection step is specially: when the state that detects USB device that described Extended Capabilities Port connects undesired, and when reporting to main frame, re-execute main frame sends step from the order of opening Extended Capabilities Port to control module.
22. according to claim 21 USB interface equipment is carried out method of operating, it is characterized in that, when described detection step is specially: when the state that detects USB device that described Extended Capabilities Port connects undesired, and when reporting to main frame, re-execute main frame sends step from the order of opening described Extended Capabilities Port to control module, accordingly, step D is specially: main frame carries out business operation to USB device that described Extended Capabilities Port connects.
23. according to claim 21 USB interface equipment is carried out method of operating, it is characterized in that, when described detection step is specially: to connect the USB device state undesired when detecting described Extended Capabilities Port, and when reporting to main frame, re-execute the step that main frame sends the order of opening other Extended Capabilities Port, accordingly, step D is specially: main frame carries out business operation to USB device that other Extended Capabilities Port connect.
24. described USB interface equipment is carried out method of operating according to claim 22 or 23, it is characterized in that undesired being specially of state of USB device that described Extended Capabilities Port connects: USB device that Extended Capabilities Port connects exists, and USB device is a malfunction.
25. described USB interface equipment is carried out method of operating according to claim 22 or 23, it is characterized in that undesired being specially of state of USB device that described Extended Capabilities Port connects: USB device that Extended Capabilities Port connects does not exist.
26. according to claim 14 USB interface equipment is carried out method of operating, it is characterized in that, after the described step D another is expanded the described steps A-D of salty new operation.
CNB2006100832107A 2006-05-30 2006-05-30 Device and method for operating USB interface device Expired - Fee Related CN100386754C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006100832107A CN100386754C (en) 2006-05-30 2006-05-30 Device and method for operating USB interface device
JP2007142018A JP4886601B2 (en) 2006-05-30 2007-05-29 Apparatus and method for operating USB interface equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100832107A CN100386754C (en) 2006-05-30 2006-05-30 Device and method for operating USB interface device

Publications (2)

Publication Number Publication Date
CN1851681A true CN1851681A (en) 2006-10-25
CN100386754C CN100386754C (en) 2008-05-07

Family

ID=37133160

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100832107A Expired - Fee Related CN100386754C (en) 2006-05-30 2006-05-30 Device and method for operating USB interface device

Country Status (2)

Country Link
JP (1) JP4886601B2 (en)
CN (1) CN100386754C (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561792B (en) * 2008-04-16 2011-06-22 联想(北京)有限公司 Computer system, computer docking station and power consumption management method thereof
CN102147779A (en) * 2011-04-07 2011-08-10 广东金赋信息科技有限公司 USB (universal serial bus) peripheral processing unit and USB peripheral processing method
CN102339259A (en) * 2010-07-27 2012-02-01 董建飞 Device and method for operating USB (universal serial bus) interface equipment
CN102831084A (en) * 2012-08-16 2012-12-19 刘伟 Controller and controlling method for re-identifying USB (universal serial bus) equipment
CN103425613A (en) * 2012-05-16 2013-12-04 宁波市镇海金特电子信息有限公司 USB (universal serial bus) extension device
CN103914425A (en) * 2013-01-04 2014-07-09 宁波市镇海金特电子信息有限公司 Novel USB network controller
CN104866448A (en) * 2015-06-24 2015-08-26 北京众合天下管理咨询有限公司 Intelligent management system for large-scale USB equipment
CN105426334A (en) * 2015-12-25 2016-03-23 河海大学常州校区 Parallel type large-scale USB extension device, working method and system
CN105487999A (en) * 2015-12-25 2016-04-13 河海大学常州校区 Cascaded large-scale USB expansion device and working method and system
CN105653482A (en) * 2015-12-25 2016-06-08 河海大学常州校区 Super USB controller as well as working method and system
CN105653483A (en) * 2015-12-25 2016-06-08 河海大学常州校区 Tandem mass USB expansion apparatus, working method and system
CN105824765A (en) * 2015-01-27 2016-08-03 艾欧互联有限公司 Method for Generating a Cursor on an External Monitor Connected to a Handheld Computer

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001147747A (en) * 1999-11-18 2001-05-29 Nec Corp Usb hub integrated power supply device
CN1175362C (en) * 2001-04-09 2004-11-10 华邦电子股份有限公司 USB concentrator with several upstream port and computer system using said concentrator
CN1168016C (en) * 2001-10-15 2004-09-22 英业达股份有限公司 Control system of high density server peripheral equipment
JP2003216509A (en) * 2002-01-24 2003-07-31 Matsushita Electric Ind Co Ltd Semiconductor memory card inspection system
DE60215136T2 (en) * 2002-06-19 2007-03-29 Hewlett-Packard Development Company, L.P., Houston Internal USB circuit connection
CN1471007A (en) * 2002-07-26 2004-01-28 赫扬科技股份有限公司 USB direct on-line display switching apparatus and method
JP4210993B2 (en) * 2003-04-23 2009-01-21 日本電気株式会社 USB hub device, USB peripheral device and data transmission / reception method
JP2005202705A (en) * 2004-01-16 2005-07-28 Matsushita Electric Ind Co Ltd Automatic inspection apparatus and automatic inspection method
CN1558305A (en) * 2004-01-19 2004-12-29 中国科学院计算技术研究所 Bus type universal serial bus multiplexer

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561792B (en) * 2008-04-16 2011-06-22 联想(北京)有限公司 Computer system, computer docking station and power consumption management method thereof
CN102339259A (en) * 2010-07-27 2012-02-01 董建飞 Device and method for operating USB (universal serial bus) interface equipment
CN102147779A (en) * 2011-04-07 2011-08-10 广东金赋信息科技有限公司 USB (universal serial bus) peripheral processing unit and USB peripheral processing method
CN102147779B (en) * 2011-04-07 2014-02-12 广东金赋信息科技有限公司 USB (universal serial bus) peripheral processing unit and USB peripheral processing method
CN103425613A (en) * 2012-05-16 2013-12-04 宁波市镇海金特电子信息有限公司 USB (universal serial bus) extension device
CN102831084A (en) * 2012-08-16 2012-12-19 刘伟 Controller and controlling method for re-identifying USB (universal serial bus) equipment
CN102831084B (en) * 2012-08-16 2015-07-22 刘伟 Controller and controlling method for re-identifying USB (universal serial bus) equipment
CN103914425A (en) * 2013-01-04 2014-07-09 宁波市镇海金特电子信息有限公司 Novel USB network controller
CN105824765A (en) * 2015-01-27 2016-08-03 艾欧互联有限公司 Method for Generating a Cursor on an External Monitor Connected to a Handheld Computer
CN104866448A (en) * 2015-06-24 2015-08-26 北京众合天下管理咨询有限公司 Intelligent management system for large-scale USB equipment
CN104866448B (en) * 2015-06-24 2017-11-10 北京众合天下管理咨询有限公司 The intelligent management system of extensive USB device
CN105487999A (en) * 2015-12-25 2016-04-13 河海大学常州校区 Cascaded large-scale USB expansion device and working method and system
CN105653482A (en) * 2015-12-25 2016-06-08 河海大学常州校区 Super USB controller as well as working method and system
CN105653483A (en) * 2015-12-25 2016-06-08 河海大学常州校区 Tandem mass USB expansion apparatus, working method and system
CN105426334A (en) * 2015-12-25 2016-03-23 河海大学常州校区 Parallel type large-scale USB extension device, working method and system
CN105653483B (en) * 2015-12-25 2018-03-20 河海大学常州校区 The extensive usb expansion device of tandem and method of work, system
CN105426334B (en) * 2015-12-25 2018-08-07 河海大学常州校区 Parallel extensive usb expansion device and working method, system
CN105653482B (en) * 2015-12-25 2018-08-07 河海大学常州校区 Super USB controller and working method, system
CN105487999B (en) * 2015-12-25 2018-08-07 河海大学常州校区 The extensive usb expansion device of tandem type and working method, system

Also Published As

Publication number Publication date
JP2007323648A (en) 2007-12-13
JP4886601B2 (en) 2012-02-29
CN100386754C (en) 2008-05-07

Similar Documents

Publication Publication Date Title
CN1851681A (en) Device and method for operating USB interface device
CN1122281C (en) Multifunctional semiconductor storage device
CN1881120A (en) Communication master station startup period control method
CN101035039A (en) USB mapping method
CN1804799A (en) SCM online loading and updating method and system
CN1134069A (en) Apparatus for bridging non-compatible network architectures
CN1521625A (en) Fault-tolerant computer system, re-synchronization method thereof and re-synchronization program thereof
CN1713158A (en) Information display apparatus, information display method, and computer program
CN101053954A (en) Control system for modular robot based on CAN bus
CN1248453C (en) Method for realtime synchronisation of net element and telecommunication system
CN1504908A (en) Memory system and controlling method thereof
CN1881977A (en) Communication device and command transmission method
CN1287259C (en) Device and method for operating multiple I2C sub device in communication equipment
CN1873604A (en) Processor chip, storage control system and method
CN1929356A (en) Apparatus and method for acquiring identification information when a bus reset occurs
CN1328289A (en) Image display system and equipment
CN1947108A (en) Information processing apparatus and method for initializing flow control
CN1866235A (en) Modular interconnect structure
CN1991564A (en) Wireless projection method and system and apparatus thereof
CN1737729A (en) Data transfer control system, electronic apparatus and program
CN1758324A (en) Interface and the opertaing device and the integrated circuit (IC) chip thereof that are used for display device
CN1549103A (en) Microcomputer
CN1842997A (en) Terminal apparatus, terminal apparatus control method, network system, network system control method, program and recording medium
CN1859112A (en) Data transfer device and data transfer method of virtual ether net device
CN1275126C (en) Information processing system and controlling method thereof

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
C56 Change in the name or address of the patentee

Owner name: FEITIAN CHENGXIN TECHNOLOGIES CO., LTD.

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

CP03 Change of name, title or address

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

Patentee after: Feitian Technologies Co.,Ltd.

Address before: 100083, Haidian District, Xueyuan Road, No. 40 research, 7 floor, 5 floor, Beijing

Patentee before: FEITIAN TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080507

CF01 Termination of patent right due to non-payment of annual fee