Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the USB interface automatic switching control equipment of problem.
The present invention provides a kind of USB interface automatic switching control equipment, which has external USB interface, which includes:
Usb hub, combination switching switch with a upstream Interface and multiple downstream interfaces, the first equipment and multiple second are set
It is standby;
The control terminal of combination switching switch is connect with universal input/output interface of the first equipment;Multiple second equipment point
It is not connect with multiple downstream interfaces of usb hub;
Combination switching switch is used for: when the control terminal of combination switching switch inputs the first signal, executing switching makes first
The USB interface of equipment is connected to a downstream interface of usb hub, and make usb hub upstream Interface and device it is outer
The connection of portion's USB interface;When the control terminal of combination switching switch inputs second signal, executing switching meets the USB of the first equipment
Mouth is connected to the upstream Interface of usb hub.
Further, combination switching switch includes the first switching switch and the second switching switch;
First connecting pin of the first switching switch connects the USB interface of the first equipment, the third connection of the first switching switch
The second connection end of one downstream interface of end connection usb hub, the first switching switch is hanging;
The upstream Interface of the first connecting pin connection usb hub of second switching switch, the second of the second switching switch connect
Connect the USB interface of the first equipment of end connection, the external USB interface of the third connection end connection device of the second switching switch;
First switching switch is used for: when the control terminal of combination switching switch inputs the first signal, executing switching connection the
The first connecting pin and third connecting pin of one switching switch;When the control terminal of combination switching switch inputs second signal, execute
First connecting pin of switching connection the first switching switch and second connection end;
Second switching switch is used for: when the control terminal of combination switching switch inputs the first signal, executing switching connection the
The first connecting pin and third connecting pin of two switching switches;When the control terminal of combination switching switch inputs second signal, execute
First connecting pin of switching connection the second switching switch and second connection end.
Further, which includes: USB interface detection circuit;First connecting pin of USB interface detection circuit and the device
External USB interface connection, the IC bus interface of the second connection end of USB interface detection circuit and the first equipment connects
It is logical.
Further, when USB interface detection circuit detects third signal, USB interface detection circuit passes through integrated circuit
Bus interface reports signal to the transmission of the first equipment.
Further, according to signal is reported, the first equipment switches the control of switch by universal input/output interface to combination
The first signal of end output.
Further, when USB interface detection circuit does not detect third signal, the first equipment passes through universal input/defeated
Outgoing interface exports second signal to the control terminal of combination switching switch.
Further, the universal input of the first equipment/output interface connects a resistance, and passes through resistance eutral grounding.
The USB interface automatic switching control equipment provided according to the present invention, by the control terminal and the first equipment of combination switching switch
Universal input/output interface connection, multiple second equipment connect with multiple downstream interfaces of usb hub respectively, pass through group
It closes the concrete signal that the control terminal that switching switchs is inputted to control combination switching switch, realizes the automatic of USB interface
Switching.The technical program realizes the automatic switchover of USB interface, when external USB interface is occupied, can still device be made to pass through
USB interface automatically switches easily to carry out program update and program debugging, to solve when the external USB interface of device is occupied
Used time and program can not be carried out and updated and the problem of program debugging.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1 shows USB interface automatic switching control equipment according to an embodiment of the invention in the control of combination switching switch
End processed inputs the connection schematic diagram in the case where the first signal, and Fig. 2 shows USB interfaces according to an embodiment of the invention certainly
Connection schematic diagram of the dynamic switching device in the case where the control terminal of combination switching switch inputs second signal, such as Fig. 1 and Fig. 2 institute
Show, which has external USB interface 100, which includes: with a upstream Interface 201 and multiple downstream interface 202-
204 usb hub 200, combination switching switch 300, the first equipment 400 and multiple second equipment.Two are illustrated only in figure
For second equipment as schematical example, the two second equipment are respectively the second equipment 510 and the second equipment 520, however can
With it is understood that the present invention is not limited to two the second equipment, and it can be more than two second equipment.Wherein, combination switching is opened
The control terminal 301 of pass 300 is connect with universal input/output interface 401 of the first equipment 400;Second equipment 510 and the second equipment
520 connect with the downstream interface 203 of usb hub 200 and downstream interface 204 respectively.Those skilled in the art can be according to tool
The quantity of the second equipment is arranged in body demand, herein without limitation.
Combination switching switch 300 is used for: when the control terminal 301 of combination switching switch 300 inputs the first signal, execution is cut
Changing is connected to the USB interface 402 of the first equipment 400 with the downstream interface 202 of usb hub 200, and makes usb hub 200
Upstream Interface 201 is connected to the external USB interface 100 of device;When second letter of the input of control terminal 301 of combination switching switch 300
Number when, execute switching be connected to the USB interface 402 of the first equipment 400 with the upstream Interface 201 of usb hub 200.
In order to realize above-mentioned connected relation, specifically, combination switching switch 300 may include that the first switching switch and second cut
Change switch.First switching switch and the second switching switch are linkages.Wherein, the first connecting pin 311 of the first switching switch connects
The USB interface 402 of the first equipment 400 is connect, the downlink that the third connecting pin 313 of the first switching switch connects usb hub 200 connects
The second connection end 312 of mouth 202, the first switching switch is hanging;First connecting pin 321 of the second switching switch connects USB set line
The second connection end 322 of the upstream Interface 201 of device 200, the second switching switch connects the USB interface 402 of the first equipment 400, the
The third connecting pin 323 of two switching switches connects the external USB interface 100 of the device.
When the control terminal 301 of combination switching switch 300 inputs the first signal, as shown in Figure 1, the first switching switch executes
The first connecting pin 311 and third connecting pin 313 of switching connection the first switching switch, the second switching switch execute switching connection the
The first connecting pin 321 and third connecting pin 323 of two switching switches, make the USB interface 402 and usb hub of the first equipment 400
200 downstream interface 202 is connected to, and connects the upstream Interface 201 of usb hub 200 and the external USB interface 100 of the device
It is logical.In this case, the first equipment 400, the second equipment 510 and the second equipment 520 are the slave equipment of usb hub 200.
When the control terminal 301 of combination switching switch 300 inputs second signal, as shown in Fig. 2, the first switching switch executes
First connecting pin 311 of switching connection the first switching switch and second connection end 312, the second switching switch execute switching connection the
First connecting pin 321 of two switching switches and second connection end 322, to make the USB interface 402 and USB set of the first equipment 400
The upstream Interface 201 of line device 200 is connected to.In this case, the first equipment 400 be usb hub 200 main equipment, second
Equipment 510 and the second equipment 520 are the slave equipment of usb hub 200, and the first equipment 400 can pass through the first equipment 400
USB interface 402 and the second equipment 510 and the second equipment 520 carry out data communication.
The device further include: USB interface detection circuit 700.First connecting pin 701 of USB interface detection circuit 700 with should
The connection of external USB interface 100 of device, the second connection end 702 of USB interface detection circuit 700 and the first equipment 400 integrate
Circuit bus interface 403 is connected to.700 moment of USB interface detection circuit carries out the signal of the external USB interface 100 of the device
Detection.When USB interface detection circuit 700 detects third signal, USB interface detection circuit 700 passes through IC bus
Interface 403 reports signal to the transmission of the first equipment 400.According to signal is reported, the first equipment 400 is connect by universal input/output
Mouth 401 exports the first signal to the control terminal 301 of combination switching switch 300.When USB interface detection circuit 700 does not detect
When third signal, the first equipment 400 is defeated by the control terminal 301 of universal input/output interface 401 to combination switching switch 300
Second signal out.
When leaving the factory due to chip, it is under normal circumstances not no program, the later period is needed to carry out programming program to it.Therefore
When USB interface automatic switching control equipment provided by the invention does not have program, the first equipment 400 can not pass through universal input/output
Interface 401 switches 301 output signal of control terminal of switch 300 to combination, to cannot achieve the control to combination switching switch 300
System.In this case, low level signal can be set by the first signal.Specifically, the universal input of the first equipment 400/defeated
Outgoing interface 401 connects a resistance 600, and is grounded by resistance 600.Due to universal input/output interface of the first equipment 400
401 are grounded by resistance 600, so that the control terminal 301 in combination switching switch 300 has input low level signal, i.e. combination is cut
The control terminal 301 for changing switch 300 inputs the first signal, and the first switching switch in combination switching switch 300 executes switching connection
The first connecting pin 311 and third connecting pin 313 of first switching switch, the second switching switch execute the second switching of switching connection and open
The first connecting pin 321 and third connecting pin 323 closed make under the USB interface 402 and usb hub 200 of the first equipment 400
Line interface 202 is connected to, and is connected to the upstream Interface 201 of usb hub 200 with the external USB interface 100 of the device.At this point,
First equipment 400, the second equipment 510 and the second equipment 520 are the slave equipment of usb hub 200.Computer etc. can be used in user
Equipment is by the external USB interface 100 of the device to 520 programming program of the first equipment 400, the second equipment 510 and the second equipment.
It is however understood that the present invention is not limited to connect resistance 600 by universal input/output interface 401 of the first equipment 400
Mode and make combination switching switch 300 301 input low level signal of control terminal, those skilled in the art can be according to practical need
Specifically it is arranged.
After completing to the programming program of the first equipment 400, the second equipment 510 and the second equipment 520, user can break
The connection of apparatus such as computer and the external USB interface 100 of the device is opened, the device has had program at this time.USB interface detection
700 moment of circuit detects the signal of the external USB interface 100 of the device, for example, third signal can be apparatus such as computer
The signal exported after being connected with the external USB interface 100 of the device.When USB interface detection circuit 700 does not detect computer
Etc. equipment when being connected with the external USB interface 100 of the device, i.e., USB interface detection circuit 700 does not detect third signal
When, the first equipment 400 is believed by universal input/output interface 401 to the output of control terminal 301 second of combination switching switch 300
Number.When the control terminal 301 of combination switching switch 300 inputs second signal, the first switching switch executes switching connection first and cuts
Change the first connecting pin 311 and the second connection end 312 of switch, the second switching switch executes the of switching connection the second switching switch
One connecting pin 321 and second connection end 322 make the USB interface 402 of the first equipment 400 and the upstream Interface of usb hub 200
201 connections.At this point, the first equipment 400 is the main equipment of usb hub, the second equipment 510 and the second equipment 520 are USB set
The slave equipment of line device 200.First equipment 400, the second equipment 510 and the second equipment 520 are in normal mode of operation, and first
Equipment 400 carries out data communication by the USB interface 402 of the first equipment 400 and the second equipment 510 and the second equipment 520.
When USB interface detection circuit 700 detects that apparatus such as computer is connected with the external USB interface 100 of the device,
When i.e. USB interface detection circuit 700 detects third signal, USB interface detection circuit 700 passes through IC bus interface
403 report signal to the transmission of the first equipment 400.According to signal is reported, the first equipment 400 passes through universal input/output interface 401
The first signal is exported to the control terminal 301 of combination switching switch 300, as shown in Figure 1, making first in combination switching switch 300
Switching switch executes the first connecting pin 311 and third connecting pin 313 of switching connection the first switching switch, and the second switching switch is held
The first connecting pin 321 and third connecting pin 323 of row switching connection the second switching switch, so that the USB of the first equipment 400 be made to connect
Mouth 402 is connected to the downstream interface 202 of usb hub 200, and makes the upstream Interface 201 of usb hub 200 and the device
External USB interface 100 is connected to.At this point, the second equipment 510 and the second equipment 520 are the slave equipment of usb hub 200, and the
The slave equipment that one equipment 400 changes from the main equipment of usb hub 200 as usb hub 200.At this point, the first equipment 400,
Two equipment 510 and the second equipment 520 are equivalent in debugging mode, and outside of the apparatus such as computer by the device can be used in user
Usb 1 00 carries out program update and program debugging to the first equipment 400, the second equipment 510 and the second equipment 520, can be with
Collect the work log and other information of the first equipment 400, the second equipment 510 and the second equipment 520.
Specifically, USB interface automatic switching control equipment provided by the invention can be applied in multiple wireless modem,
When being applied in multiple wireless modem, the first equipment CPU can be made, multiple second equipment are multiple modulation /demodulation
Device.Even if multiple wireless modem only has an external USB interface, the technical solution provided through the invention can also make
Multiple wireless modem automatically switches easily to carry out program update and program debugging by USB interface, to solve
The problem of program update and program debugging can not be carried out when unique external USB interface is occupied.
The USB interface automatic switching control equipment provided according to the present invention, by the control terminal and the first equipment of combination switching switch
Universal input/output interface connection, multiple second equipment connect with multiple downstream interfaces of usb hub respectively, pass through group
It closes the concrete signal that the control terminal that switching switchs is inputted to control combination switching switch, has conveniently realized USB interface
Automatic switchover, when external USB interface is occupied, can still make device by USB interface automatic switchover easily carry out program
Update and program debugging, to solve when the external USB interface of device is occupied and program update and program can not be carried out
The problem of debugging.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.