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

Device and method for operating USB interface device Download PDF

Info

Publication number
CN100386754C
CN100386754C CNB2006100832107A CN200610083210A CN100386754C CN 100386754 C CN100386754 C CN 100386754C CN B2006100832107 A CNB2006100832107 A CN B2006100832107A CN 200610083210 A CN200610083210 A CN 200610083210A CN 100386754 C CN100386754 C CN 100386754C
Authority
CN
China
Prior art keywords
extended capabilities
main frame
capabilities port
usb
usb interface
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.)
Active
Application number
CNB2006100832107A
Other languages
Chinese (zh)
Other versions
CN1851681A (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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a device and a method which are used for operating a USB interface device. Now operators can not selectively control an appointed USB port by application software; through the device and the method of the present invention, users can firstly transmit a command which is used for opening an appointed expansion port by a host according to a requirement, and obtain an expansion port address by analyzing the command. Then a channel between the expansion port with the address and the host is opened, and finally a USB device connected with the port is operated. A USB device state can be notified to the host by a report, and thus, the users can appoint and operate the USB device to increase work efficiency when the USB device is used; meanwhile, only one USB device is ensured to connect the host at a moment.

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 lead, three connecting lines of D+ line and D-line 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 lead, three connecting lines of D+ line and D-line 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 lead, D+ line, four connecting lines of D-line and ground wire.
When switch module was closed condition, USB device power lead, D+ line, four connecting lines of D-line and ground wire 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: 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, when testing result for just often, main frame is operated USB device that Extended Capabilities Port connects.
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.
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 lead, D+ line, D-line, ground wire).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 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 lead, D+ line, four connecting lines of D-line and ground wire, when switch module was closed condition, USB device power lead, D+ line, four connecting lines of D-line and ground wire 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+ line, 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 lead, D+ line, four connecting lines of D-line and ground wire.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 lead, D+ line, four connecting lines of D-line and ground wire 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+ line, 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 lead, D+ line, four connecting lines of D-line and ground wire.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 lead, D+ line, four connecting lines of D-line and ground wire 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, protect 001 Extended Capabilities Port and main frame or USB HUB is 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 (21)

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; 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.
2. the device that USB interface equipment is operated according to claim 1 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.
3. the device that USB interface equipment is operated according to claim 2 is characterized in that, Extended Capabilities Port module ground wire directly is connected with the main frame USB interface.
4. the device that USB interface equipment is operated according to claim 3, it is characterized in that, when described switch module was open mode, USB device power lead, three connecting lines of D+ line and D-line that switch module is communicated with on the Extended Capabilities Port were connected with the main frame USB interface.
5. the device that USB interface equipment is operated according to claim 3, it is characterized in that, when described switch module was closed condition, USB device power lead, three connecting lines of D+ line and D-line that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.
6. according to the described device that USB interface equipment is operated of any claim of claim 3-5, 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 passes through the on-off circuit that send and connects described main frame USB interface, and described Extended Capabilities Port module D+ line, D-line connect described main frame USB interface by described analog switch chip.
7. the device that USB interface equipment is operated according to claim 2 is characterized in that, Extended Capabilities Port module ground wire connects described main frame USB interface by described switch module.
8. the device that USB interface equipment is operated according to claim 7, it 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 lead, D+ line, four connecting lines of D-line and ground wire.
9. the device that USB interface equipment is operated according to claim 7, it is characterized in that, when described switch module was closed condition, USB device power lead, D+ line, four connecting lines of D-line and ground wire that switch module is isolated on the Extended Capabilities Port were connected with the main frame USB interface.
10. according to the described device that USB interface equipment is operated of any claim of claim 7-9, 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.
11. the device that USB interface equipment is operated according to claim 1 is characterized in that, main frame is by the USB interface link control module and the switch module of USB HUB module.
12. the device that USB interface equipment is operated according to claim 1 is characterized in that, described Extended Capabilities Port module comprises a plurality of expansion interfaces.
13. 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: 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, when testing result for just often, main frame is operated USB device that Extended Capabilities Port connects.
14. according to claim 13 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.
15. according to claim 13 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.
16. according to claim 13 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.
17. according to claim 16 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.
18. according to claim 16 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.
19. described USB interface equipment is carried out method of operating according to claim 17 or 18, 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.
20. described USB interface equipment is carried out method of operating according to claim 17 or 18, 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.
21. according to claim 13 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 Active 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 CN1851681A (en) 2006-10-25
CN100386754C true CN100386754C (en) 2008-05-07

Family

ID=37133160

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100832107A Active 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)

Families Citing this family (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
CN102339259A (en) * 2010-07-27 2012-02-01 董建飞 Device and method for operating USB (universal serial bus) interface equipment
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
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
US20160216952A1 (en) * 2015-01-27 2016-07-28 I/O Interconnect Inc. Method for automatically functionally transferring input devices of computer to mobile device
CN104866448B (en) * 2015-06-24 2017-11-10 北京众合天下管理咨询有限公司 The intelligent management system of extensive USB device
CN105487999B (en) * 2015-12-25 2018-08-07 河海大学常州校区 The extensive usb expansion device of tandem type and working method, 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
CN105653483B (en) * 2015-12-25 2018-03-20 河海大学常州校区 The extensive usb expansion device of tandem and method of work, system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380615A (en) * 2001-04-09 2002-11-20 华邦电子股份有限公司 USB concentrator with several upstream port and computer system using said concentrator
CN1412677A (en) * 2001-10-15 2003-04-23 英业达股份有限公司 Control system of high density server peripheral equipment
CN1471007A (en) * 2002-07-26 2004-01-28 赫扬科技股份有限公司 USB direct on-line display switching apparatus and method
US20040033734A1 (en) * 2002-06-19 2004-02-19 Hewlett-Packard Development Company, L.P. Internal USB circuit connection
CN1558305A (en) * 2004-01-19 2004-12-29 中国科学院计算技术研究所 Bus type universal serial bus multiplexer

Family Cites Families (4)

* 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
JP2003216509A (en) * 2002-01-24 2003-07-31 Matsushita Electric Ind Co Ltd Semiconductor memory card inspection system
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380615A (en) * 2001-04-09 2002-11-20 华邦电子股份有限公司 USB concentrator with several upstream port and computer system using said concentrator
CN1412677A (en) * 2001-10-15 2003-04-23 英业达股份有限公司 Control system of high density server peripheral equipment
US20040033734A1 (en) * 2002-06-19 2004-02-19 Hewlett-Packard Development Company, L.P. Internal USB circuit connection
CN1471007A (en) * 2002-07-26 2004-01-28 赫扬科技股份有限公司 USB direct on-line display switching apparatus and method
CN1558305A (en) * 2004-01-19 2004-12-29 中国科学院计算技术研究所 Bus type universal serial bus multiplexer

Also Published As

Publication number Publication date
CN1851681A (en) 2006-10-25
JP4886601B2 (en) 2012-02-29
JP2007323648A (en) 2007-12-13

Similar Documents

Publication Publication Date Title
CN100386754C (en) Device and method for operating USB interface device
CN101208681B (en) Communication system
CN105051706B (en) The equipment of operation for the low-power PHY with PCIE protocol stacks, method and system
KR101035832B1 (en) Simulation circuit of pci express endpoint and downstream port for a pci express switch
CN101065740B (en) USB On-The-Go controller
CN100566278C (en) Slave unit in the communication system of using serial data transfer bus
CN101663650B (en) Apparatus, system, and method for adapter card failover
CN105681145A (en) FPGA-based FlexRay communication module
CN101000591A (en) Double-machine redundancy system based on embedded CPU
CN104238517B (en) Communication method of PROFIBUS-DPV1 main communication station
CN107368219A (en) Touch-responsive method, chip and smart machine
CN101876825B (en) Human-computer interface device of small PLC
CN101013315A (en) General numerical control system based on full digital ring bus
CN100478935C (en) PCIE channel expansion device, system and its collocation method
CN105068955A (en) Local bus structure and data interaction method
CN102253845B (en) Server system
WO2018223253A1 (en) Motion control card, motion control system, robot system, and numerical control machine tool
CN200941208Y (en) Device to operate USB interface
CN101685433B (en) Serial bus unit assigned address by primary device
CN107239423A (en) A kind of device based on extension IIC interfaces
CN103440218A (en) CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol
CN104698916A (en) Method for operating automation device
CN106201938A (en) A kind of chip, hub, electronic equipment and the method for interruption U SB signal
JP4906158B1 (en) KVM switching device and USB input device connection maintaining method at switching
CN112597732A (en) Method and system for changing IIC device address through software configuration

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: Beijing Feitian Chengxin Science & Technology Co., Ltd.