CN104866439B - Equipment distributor, device allocation method, equipment distribution switching method and computing device - Google Patents
Equipment distributor, device allocation method, equipment distribution switching method and computing device Download PDFInfo
- Publication number
- CN104866439B CN104866439B CN201410062192.9A CN201410062192A CN104866439B CN 104866439 B CN104866439 B CN 104866439B CN 201410062192 A CN201410062192 A CN 201410062192A CN 104866439 B CN104866439 B CN 104866439B
- Authority
- CN
- China
- Prior art keywords
- external equipment
- equipment
- usb device
- interface
- device 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
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
The present invention provides a kind of equipment distributor for the target computing system that can be respectively connected to one or more external equipments in multiple computing systems, device allocation method, equipment distribution switching method and corresponding computing device.The equipment distributor includes:Equipment connection unit, including for connecting one or more input/output interfaces of external equipment, and the equipment connection unit is configured as identifying the external equipment;USB device unit, including multiple USB device interfaces, for connecting multiple computing systems respectively;And main control unit, it is configured as:According to internal or external instruction, for each input/output interface, the target USB device interface external equipment that the equipment connection unit identifies being connected in the multiple USB device interface;And control the target USB device interface that the external equipment is connected into one of the multiple computing system for identified external equipment simulation USB access procedures.
Description
Technical field
The present invention relates to the connection of external equipment and computing device, and more particularly to equipment distributor, device allocation method,
Equipment distributes switching method and computing device.
Background technology
In the hybrid system computer equipment comprising multiple computing systems, a USB device is required to be connected to more
On any in individual computing system.For example, include flat board at one(Slate)And base(Base)The mixing of two computing systems
In system-computed machine equipment, a USB keyboard needs to be switched to base end when using support system, and is using flat-panel systems
When need to be switched to flat board end.
At present, the main method to solve the above problems is to increase by a hardware switch between USB device and computing system, should
Hardware switch has switch selection pin, the universal input/output being connected in computing system(GPIO)Interface, so as to logical
Crossing the GPIO interface sets the low and high level of the switch selection pin of the hardware switch switchably to connect USB device to realize
On to one of the plurality of computing system.However, the program has the disadvantage that:One USB device connector of connection just needs
Using a hardware switch, when needing multiple USB devices, then multiple hardware switch are needed to use, and take multiple GPIO moneys
Source, cause wiring complicated, cost increase.Even due to the limitation that can use GPIO quantity, the quantity of USB connector also by
Limitation.
In the environment of hybrid system, it is contemplated that while using the situation of multiple USB devices, can be in above-mentioned prior art
Increase a usb hub in scheme(HUB), multiple USB devices can be accessed simultaneously by the usb hub.However, at this
In kind scheme, the USB devices of all access usb hubs can only be switched to a certain computing system simultaneously, such as be switched to simultaneously
Base is switched to flat board simultaneously, and can not be that a certain USB device is linked into base, and another USB device is linked into flat board.
The content of the invention
In view of the defects of prior art, it is more that the present invention proposes that one or more external equipments can be respectively connected to by one kind
The equipment distributor of target computing system in individual computing system, device allocation method, equipment distribution switching method and corresponding
Computing device.In the inventive solutions, each external equipment can be connected respectively to the target computing system of oneself,
And not necessarily all external equipment is all linked into same computing system simultaneously.
According to the first aspect of the invention, there is provided a kind of equipment distributor, including:Equipment connection unit, including for
One or more input/output interfaces of external equipment are connected, and the equipment connection unit is configured as identifying outside described
Portion's equipment;USB device unit, including multiple USB device interfaces, for connecting multiple computing systems respectively;And main control unit,
It is configured as:According to internal or external instruction, for each input/output interface, the equipment connection unit is identified
External equipment be connected to target USB device interface in the multiple USB device interface;And control the target USB device
For identified external equipment simulation USB access procedures, the external equipment is connected into the multiple calculate is interface
One of system.
The equipment distributor provided according to the first aspect of the invention, it is possible to achieve by one or more external equipments point
The target computing system not being linked into multiple computing systems, and this equipment distributor hardware configuration is simple, to that can connect
The number amount and type of the external equipment entered do not limit.
According to the second aspect of the invention, there is provided a kind of computing device, including:Multiple computing systems, each include independent
CPU;Equipment connection unit, including for connecting one or more input/output interfaces of external equipment, and
And the equipment connection unit is configured as identifying the external equipment;USB device unit, including multiple USB device interfaces, its
Described in multiple USB device interfaces connect the multiple computing system respectively;And allocation unit, it is configured as:Independently or
With the CPU in combination, according to internal or external instruction, for each input/output interface, by described in
The external equipment of equipment connection unit identification is connected to the target USB device interface in the multiple USB device interface;And control
The external equipment is connected to by the target USB device interface for identified external equipment simulation USB access procedures
One of the multiple computing system.
The computing device provided according to the second aspect of the invention, it is possible to achieve distinguish one or more external equipments
The target computing system being linked into multiple computing systems of the computing device, and this computing device hardware configuration is simple,
The number amount and type of external equipment to having access to do not limit.
According to the third aspect of the invention we, there is provided a kind of device allocation method, for an electronic equipment, wherein the electronics
Equipment includes multiple USB device interfaces, and for connecting multiple computing systems respectively, the device allocation method includes:Detection is outer
The access of portion's equipment;Receive an instruction;According to the instruction, among the multiple USB device interface, determine that the outside is set
Standby target USB device interface;The external equipment is connected to the target USB device interface;And for the outside
Equipment, in the target USB device interface simulate USB access procedures, by the external equipment is connected to it is the multiple in terms of
One of calculation system.
The device allocation method provided according to the third aspect of the invention we, it is possible to achieve by one or more external equipments
The target computing system being respectively connected in multiple computing systems, and the number amount and type of the external equipment to having access to do not have
It is restricted.
According to the fourth aspect of the invention, there is provided a kind of equipment distributes switching method, for an electronic equipment, wherein described
Electronic equipment includes multiple USB device interfaces, and for connecting multiple computing systems respectively, the equipment distributes switching method bag
Include:An instruction is received, the USB device that the instruction instruction switches corresponding to the external equipment connected on the electronic equipment connects
Mouthful;In the current USB device interface of the external equipment, process is removed for external equipment simulation USB;According to described
Instruction, determines the external equipment target USB device interface to be switched to;The external equipment is connected to the target
USB device interface;And in the target USB device interface, USB access procedures are simulated for the external equipment.
The equipment distribution switching method provided according to the fourth aspect of the invention, can dynamically switch external equipment
Into different computing systems, without the external equipment of plug again.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, make below by required in the description to embodiment
Accompanying drawing is briefly described.Certainly, figures described below is only the exemplary embodiment of the present invention.
Fig. 1 shows the structural representation of the equipment distributor according to the present invention;
Fig. 2 shows the schematic diagram of the exemplary concrete structure of the equipment distributor according to the present invention;
Fig. 3 shows the flow chart of the device allocation method according to the present invention;
Fig. 4 shows the flow chart of the equipment distribution switching method according to the present invention;And
Fig. 5 shows the structural representation of the computing device according to the present invention.
Embodiment
Hereinafter, by preferred embodiments of the present invention will be described in detail with reference to the annexed drawings.Pay attention to, in the specification and drawings
In, essentially identical step and element are represented with same or analogous reference, and to the repetition of these steps and element
Illustrate to be omitted.
According to one embodiment of present invention, there is provided a kind of equipment distributor 100.Fig. 1 shows equipment distributor 100
Structural representation.Equipment distributor 100 includes equipment connection unit 110, USB device unit 120 and main control device 130.
Equipment connection unit 100 includes being used for the one or more input/output interfaces for connecting external equipment(I/O connects
Mouthful), and the equipment connection unit is configured as identifying the external equipment.Three I/O are schematically illustrated in Fig. 1 to connect
Mouth 111,112 and 113, and show correspondingly three external equipments 141,142 and 143, it is clear that I/O number of ports of the invention
Mesh is not limited to 3, and can be arbitrary number.Here I/O interfaces can be any interface for connecting external equipment,
Such as USB host interface, serial line interface, infrared interface, blue tooth interface or universal asynchronous receiving-transmitting transmitter(UART).Equipment connects
I/O interfaces in unit 110 in order to connect and identify that structure required for external equipment and processing can use prior art, this
In be not repeated.For example, USB host interface can include conventional usb host controller(Such as UHOSTC2.0).By setting
Standby connection unit 110, equipment distributor 100 can identify and connect external equipment.
USB device unit 120 includes multiple USB device interfaces(Two USB device interfaces are schematically illustrated in Fig. 1
121 and 122, it is apparent that the present invention is not limited to two, and it can be more than two arbitrary number), it is more for connecting respectively
Individual computing system(Two computing systems 151 and 152 are schematically illustrated in Fig. 1).Here, computing system can be in having
Central Processing Unit(CPU)Standalone computing device or a certain computing device in have CPU can be only
One part of vertical operation.For example, computing system here can include CPU conventional computer;Can also be such as background
A computing system in the hybrid system computer equipment being previously mentioned in technology, such as base or flat board.It should be noted that
Here multiple computing systems can be the computing system for having same kind CPU(Such as all there is the CPU of x86 frameworks),
Can be the computing system with different type CPU, such as a CPU with x86 frameworks, one has arm frameworks
CPU.For example, multiple computing systems in hybrid system computer equipment are typically the computing system with different type CPU.This
In, USB device interface is used to be connected with the USB host interface of each computing system, and when being connected with external equipment, institute
Stating USB device interface can be in the access and the identification process that control Imitating routine USB device of main control unit 130.
Main control unit 130 is configured as:According to internal or external instruction, for each input/output interface, by institute
State the target USB device interface that the external equipment that equipment connection unit identifies is connected in the multiple USB device interface;And control
The target USB device interface is made for identified external equipment simulation USB access procedures, the external equipment is connected
One of to the multiple computing system.Main control device 130 is connected to equipment connection unit 110 and USB device unit 120.When certain
Individual input/output interface(Such as I/O interfaces 111)When having external equipment insertion, equipment connection unit 110 is identified and set outside this
It is standby(Such as external equipment 141), and the information for the insertion for recognizing external equipment can be sent to main control unit 130.Master control
Unit 130 determines which USB device interface the external equipment that should recognize this is connected to according to internal or external instruction, enters
And it is connected to corresponding computing system.Here, built-in command refers to that main control unit 130 is not needed outside equipment distributor 100
The input of instruction may be selected by the external equipment of insertion which USB device interface be connected to.It is for example, true according to built-in command
Surely the external equipment that main control unit 130 has been set on some I/O interface can be referred to be connected in specific USB device interface,
For example, the external equipment that main control unit 130 is set on I/O interfaces 111 is connected to USB device interface 121, and the He of I/O interfaces 112
External equipment on 113 is connected to USB device interface 122.Alternatively, determined that main control unit can also be included according to built-in command
130 determine which USB device interface it should be connected to according to the type or identity of the external equipment of insertion.Preferably, it is interior
The setting of portion's instruction can be changed by the reprogramming to main control unit 130.External command refers to by being distributed from equipment
Which USB device interface instruction outside device 100 should be connected to come the external equipment for determining to be identified.For example, external command
It can come from being connected to the computing system of the equipment distributor 100 or other control devices.For example, can be in main control unit 130
Upper setting I2C(Between integrated circuit)Or SPI(Serial Peripheral Interface (SPI))The input of the external command is received Deng interface.Work as master control
Equipment 130 is determined which USB device interface the external equipment of insertion is connected to(Target USB device interface)When, master control is set
Control targe USB device interface is simulated USB access procedures by standby 130 for identified external equipment, and the outside is set
It is standby to be connected to the computing system connected in the target USB device interface.Simulation USB access procedures described here refer to allow target
Carried out between USB device interface and its computing system connected with being directly accessed in the USB host interface of the computing system
The equivalent interactive operation of the interactive operation that is carried out during one USB device.It is required when accessing a USB device in USB host interface
The interactive operation wanted is as well known to those skilled in the art, and therefore, those skilled in the art is according to above-mentioned known interaction
Operation can easily realize the concrete configuration of simulation USB access procedures described here and USB device interface.For example, this
Kind of simulation can use to be made in usb hub of the prior art or equipment for other interfaces to be switched to USB interface
Technology.Preferably, the USB device interface can include USB device controller(Such as UDC2.0).Need what is illustrated
It is that, if the external equipment inserted is USB device, the interactive operation required for above-mentioned simulation process is equal to outside this
USB device is directly inserted into the interactive operation carried out during corresponding computing system;And if the external equipment inserted is not USB
Equipment but miscellaneous equipment(Such as infrared equipment), then main control unit 130 also need to by about the external equipment information change
To meet the information of standard usb interface, so that USB device interface is for external equipment simulation USB access procedures.Set in USB
After standby interface completes simulation access procedure, then the connection of identified external equipment and target computing system is completed.
As can be seen here, according to equipment distributor provided by the present invention, it is possible to achieve by one or more external equipments point
The target computing system not being linked into multiple computing systems, and this equipment distributor hardware configuration is simple, to that can connect
The number amount and type of the external equipment entered do not limit.In the above-mentioned technical solutions, the external equipment for being connected to I/O interfaces can be with
It is connected to alone on its target computing system, and is not necessarily multiple external equipments and is all connected in same computing system.
In one example, in equipment distributor 100, the main control unit 130 can have control port(For example,
The interfaces such as I2C or SPI), for receiving the input of the external command.So as to which main control unit 130 can be in other control devices
Control the target computing system for determining each external equipment.
In the examples described above, when target USB corresponding to the input instruction switching external equipment of the control port is set
During standby interface, equipment distributor 100 can also switch target corresponding to the external equipment according to the input of the control port
USB device interface.By the preferred exemplary, external equipment can be dynamically switched in different computing systems, without
Again plug external equipment.
Preferably, when the input instruction of the control port switches target USB device interface corresponding to the external equipment
When, the target USB device interface that equipment distributor 100 controls the external equipment currently to be distributed is directed to the external equipment mould
Intend USB and remove process;According to the input of the control port, determine that the external equipment target USB device to be switched to connects
Mouthful;And the target USB device interface to be switched to simulates the USB access procedures for the external equipment described in control.
Similar to above-mentioned simulation USB access procedures, simulation USB described here removes process and refers to allow target USB device interface to simulate
With the signal that USB host interface senses when directly extracting a USB device in the USB host interface of the computing system.
In one example, when the external equipment accesses the input/output interface, main control unit 130 can be true
Target USB device interface corresponding to the fixed external equipment, and control the target USB device interface to be set for the outside
It is standby to simulate the USB access procedures.In the preferred exemplary, when external equipment accesses I/O interfaces, main control unit 130 can be with
Automatically determine the target USB device interface of the external equipment, and control targe USB device interface simulation USB access procedures.
In one example, when removing the external equipment from the input/output interface, main control unit 130 controls
Target USB device interface corresponding to the external equipment removes process for external equipment simulation USB.As described above, this
In described simulation USB remove process and refer to allow target USB device interface to simulate and in the USB host interface of the computing system
The signal that USB host interface senses when directly extracting a USB device.
Preferably, one or more of input/output interfaces can be USB host interface, serial line interface, infrared connect
Mouth, blue tooth interface or UART interface.
Preferably, the control port can be UART interface, I2C interface or SPI interface.
It should be noted that the unit of the equipment distributor shown in Fig. 1 can each personal hardware or software or hard
The combination of part and software is realized, can also be realized in any combination with the combination of hardware or software or hardware and software.Example
Such as, main control unit 130 can be independently by the mode of PLD, specialized hardware or common hardware combination software
To realize, or its can pass through with equipment connection unit 110 and USB device unit 120 together as a unit it is programmable
The mode of logical device, specialized hardware or common hardware combination software is realized.
In order to which the structure of the equipment distributor of the present invention is better described, Fig. 2 shows the equipment distributor according to the present invention
The schematic diagram of a 100 exemplary concrete structure.In Fig. 2, equipment connection unit 110 is used including a USB host interface 211
It is used to connect the external equipment for meeting the interface standard in connection USB device and a UART interface 212.Here USB master
Machine interface 211 includes USBPHY, UHOSTC2.0(USB2.0 console controllers)And UHOSTC AHB(Usb host controller-
Advanced High-Performance Bus), the implications of these modules uses the standard implication in this area, is described again here.USB device unit
120 are respectively used to connect two computing systems 151 and 152 including two USB device interfaces 221 and 222(For example, it is respectively mixed
Pedestal and flat board in syzygy system).USB device interface 221 and 222 has USB PHY respectively(USB PHY0 or USB PHY1)、
UDC2.0(USB2.0 device controllers)With UDC AHB(USB device controller-Advanced High-Performance Bus), these modules contain
Justice uses the standard implication in this area, is described again here.It is described above for carrying out that main control module 130 includes processor
Control operation, and be used to receive instruction to control which USB device the external equipment of insertion should be linked into including an I2C interface
Interface.Pass through corresponding bus between above-mentioned unit(Such as ahb bus, APB buses(Advanced peripheral bus))It is attached,
And bridged between ahb bus and APB buses by APB bridges.Equipment distributor 100 shown in Fig. 2 it is exemplary
Concrete structure can realize the purpose of the present invention and function well, however, the structure shown in Fig. 2 is only equipment distributor 100
An example, its concrete structure is not construed as limiting the invention.
Fig. 3 shows the flow chart of the device allocation method 300 according to the present invention.The device allocation method 300 is used for one
Electronic equipment, wherein the electronic equipment includes multiple USB device interfaces, for connecting multiple computing systems respectively.Here
Electronic equipment can be equipment distributor described above or can implementation method 300 the step of any electronics set
Standby such as described below computing device 500.The device allocation method 300 includes:
Step S301, detect the access of external equipment;
Step S302, receive an instruction;
Step S303, according to the instruction, among the multiple USB device interface, determine the mesh of the external equipment
Mark USB device interface;
Step S304, the external equipment is connected to the target USB device interface;And
Step S305, for the external equipment, USB access procedures are simulated in the target USB device interface, will
The external equipment is connected to one of the multiple computing system.
It should be noted that the instruction in step S302 can be that built-in command can also caused by electronic equipment internal
It is the instruction of the miscellaneous equipment received.In addition, it is equally applicable to equipment distribution side above for the specific descriptions of equipment distributor
Method 300, is described again here.
According to device allocation method 300 provided by the present invention, it is possible to achieve one or more external equipments are connect respectively
Enter to the target computing system in multiple computing systems, and the number amount and type of the external equipment to having access to do not limit
System.
Fig. 4 shows the flow chart of the equipment distribution switching method 400 according to the present invention.The equipment distributes switching method
400 are used for an electronic equipment, wherein the electronic equipment includes multiple USB device interfaces, are for connecting multiple calculate respectively
System.Here electronic equipment can be equipment distributor described above or can implementation method 400 the step of appoint
Meaning electronic equipment, such as computing device 500 described below.The equipment distribution switching method 400 includes:
Step S401, an instruction is received, it is right that the instruction instruction switches the external equipment institute connected on the electronic equipment
The USB device interface answered;
Step S402, in the current USB device interface of the external equipment, moved for external equipment simulation USB
Except process;
Step S403, according to the instruction, determine the external equipment target USB device interface to be switched to;
Step S404, the external equipment is connected to the target USB device interface;And
Step S405, in the target USB device interface, USB access procedures are simulated for the external equipment.
It should be noted that the instruction in step S401 can be that built-in command can also caused by electronic equipment internal
It is the instruction of the miscellaneous equipment received.In addition, it is equally applicable to equipment here above for the specific descriptions of equipment distributor
Switching method 400 is distributed, is described again here.
Switching method 400 is distributed according to the equipment of the present invention, external equipment can be dynamically switched to different calculating
In system, without the external equipment of plug again.
Fig. 5 shows the structural representation of the computing device 500 comprising multiple computing systems according to the present invention.Calculating is set
Standby 500 include multiple computing systems(Two computing systems 551 and 552 are schematically illustrated in Fig. 5), each including independent
CPU.Here, computing system 551 and 552 is can independently transport with CPU in computing device 500
Capable part.Preferably, computing device 500 of the invention is the hybrid system computer equipment being previously mentioned in background technology, example
Such as include the computing device of base or flat board.It should be noted that multiple computing systems here equally can be have it is of the same race
Type C PU computing system(Such as all there is the CPU of x86 frameworks), the calculating system with different type CPU is preferably certainly
System, such as a CPU with x86 frameworks, one is the CPU for having arm frameworks.
Computing device 500 also includes equipment connection unit 510, including for connecting the one or more defeated of external equipment
Enter/output interface, and the equipment connection unit is configured as identifying the external equipment.The work(of equipment connection unit 510
Energy and structure are identical with the equipment connection unit 110 in Fig. 1.
Computing device 500 also includes USB device unit 520, and it includes multiple USB device interfaces, wherein the multiple USB
Equipment interface connects the multiple computing system respectively.USB device list in the function and structure and Fig. 1 of USB device unit 520
Member 120 is identical.
In addition, computing device 500 also includes allocation unit 530, it is configured as:Independently or with the central processing list
In combination, according to internal or external instruction, for each input/output interface, the equipment connection unit is identified for member
External equipment be connected to target USB device interface in the multiple USB device interface;And control the target USB device
For identified external equipment simulation USB access procedures, the external equipment is connected into the multiple calculate is interface
One of system.
The operation of allocation unit 530 is distinguished only as follows similar to the main control unit 130 of equipment distributor 100:Due to dividing
Among being in an equipment with unit 530 and computing system, so the operation of allocation unit 530 can be by means of computing system
CPU is completed jointly, so as to simplify the structure of allocation unit 530, such as can be no longer in allocation unit 530
Need an independent processing unit.Therefore, allocation unit 530 can be held in combination with the CPU of computing system
The above-mentioned control of row.It should be noted that allocation unit 530 can be the CPU combination work only with a computing system
Make or combine work together with the CPU of multiple computing systems.Certainly, alternatively, allocation unit 530
Can be independently(That is, without computing system CPU participation)Perform above-mentioned control.In addition, in computing device
In 500, built-in command refers to the instruction inside whole computing device 500, and it can refer to refer to caused by allocation unit 530 oneself
Order control, such as the external equipment that allocation unit 530 has been set on some I/O interface are connected to specific USB device interface
On, or allocation unit 530 determines which USB device it should be connected to according to the type or identity of the external equipment of insertion
Interface.Alternatively, in computing device 500, built-in command can also be the instruction from computing system, for example, above-mentioned calculating
System passes through a control interface(Such as I2C interface)Which the external equipment identified should be connected to by instruction distributing equipment 530
USB device interface.Here, external command refers to the instruction outside computing device 500, can be set in allocation unit 530
Put the corresponding interface(Such as I2C or SPI)To receive the input of the external command.
According to computing device provided by the present invention, it is possible to achieve one or more external equipments are respectively connected into the meter
The target computing system in multiple computing systems of equipment is calculated, and this computing device hardware configuration is simple, to having access to
The number amount and type of external equipment do not limit.
In one example, the allocation unit 530 can have control port, for receiving the defeated of the external command
Enter or the input from the CPU.
In one example, when the external equipment accesses the input/output interface, the allocation unit can be true
Target USB device interface corresponding to the fixed external equipment;And the target USB device interface is controlled to be set for the outside
It is standby to simulate the USB access procedures.
In one example, the allocation unit is additionally configured to:When removing the outside from the input/output interface
During equipment, target USB device interface corresponding to the external equipment is controlled to remove process for external equipment simulation USB.
In one example, the allocation unit is additionally configured to:When described in the input instruction switching of the control port
Corresponding to external equipment during target USB device interface, according to the input of the control port, switch corresponding to the external equipment
Target USB device interface.By the preferred exemplary, external equipment can be dynamically switched in different computing systems, without
Need the external equipment of plug again.
In one example, the allocation unit is additionally configured to:When described in the input instruction switching of the control port
Corresponding to external equipment during target USB device interface, the target USB device interface pin that controls the external equipment currently to be distributed
Process is removed to external equipment simulation USB;According to the input of the control port, determine that the external equipment will be switched to
Target USB device interface;And the target USB device interface to be switched to described in control is for external equipment simulation institute
State USB access procedures.
It should be noted that equipment connection unit 510, USB device unit 520 and allocation unit 530 shown in Fig. 5
Can the combination of each personal hardware or software or hardware and software realize, can also be in any combination with hardware or software or hard
The combination of part and software is realized.In addition, the concrete structure of the equipment distributor shown in Fig. 2 is equally applicable to pair in Fig. 5
Answer unit.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two.And software module can be put
In any form of computer-readable storage medium.In order to clearly demonstrate the interchangeability of hardware and software, in the above description
The composition and step of each example have been generally described according to function.These functions are come with hardware or software mode actually
Perform, application-specific and design constraint depending on technical scheme.Those skilled in the art can specifically should to each
For realizing described function using distinct methods, but this realization is it is not considered that beyond the scope of this invention.
It should be appreciated by those skilled in the art that can be dependent on design requirement and other factorses carries out various repair to the present invention
Change, combine, partly combining and replacing, as long as they are in appended claims or its equivalent scope.
Claims (16)
1. a kind of equipment distributor, including:
Equipment connection unit, including for connecting one or more input/output interfaces of external equipment, and the equipment connects
Order member is configured as identifying the external equipment;
USB device unit, including multiple USB device interfaces, for connecting multiple computing systems respectively;And
Main control unit, it is configured as:According to internal or external instruction, for each input/output interface, by the equipment
The external equipment of connection unit identification is connected to the target USB device interface in the multiple USB device interface;And described in controlling
The external equipment is connected to described by target USB device interface for identified external equipment simulation USB access procedures
One of multiple computing systems;
Wherein, the built-in command or external command are used to indicate external equipment being connected to target USB device interface.
2. equipment distributor as claimed in claim 1, wherein
The main control unit has control port, for receiving the input of the external command.
3. equipment distributor as claimed in claim 1, wherein the main control unit is configured as:
When the external equipment accesses the input/output interface, determine that target USB device connects corresponding to the external equipment
Mouthful;And
The target USB device interface is controlled to simulate the USB access procedures for the external equipment.
4. equipment distributor as claimed in claim 1, wherein the main control unit is additionally configured to:
When removing the external equipment from the input/output interface, target USB device corresponding to the external equipment is controlled
Interface removes process for external equipment simulation USB.
5. equipment distributor as claimed in claim 2, wherein the main control unit is additionally configured to:
When the input instruction of the control port switches target USB device interface corresponding to the external equipment, according to described
The input of control port, switch target USB device interface corresponding to the external equipment.
6. equipment distributor as claimed in claim 5, wherein the main control unit is additionally configured to:
When the input instruction of the control port switches target USB device interface corresponding to the external equipment,
The target USB device interface that the external equipment is currently distributed is controlled to be removed for external equipment simulation USB
Journey;
According to the input of the control port, the external equipment target USB device interface to be switched to is determined;And
The target USB device interface to be switched to described in control simulates the USB access procedures for the external equipment.
7. equipment distributor as claimed in claim 1, wherein
One or more of input/output interfaces are USB host interface, serial line interface, infrared interface, blue tooth interface or UART
Interface.
8. equipment distributor as claimed in claim 2, wherein
The control port is UART interface, I2C interface or SPI interface.
9. a kind of computing device, including:
Multiple computing systems, each including independent CPU;
Equipment connection unit, including for connecting one or more input/output interfaces of external equipment, and the equipment connects
Order member is configured as identifying the external equipment;
USB device unit, including multiple USB device interfaces, wherein the multiple USB device interface connects the multiple meter respectively
Calculation system;And
Allocation unit, it is configured as:Independently or with the CPU in combination, according to internal or external instruction, pin
To each input/output interface, the external equipment that the equipment connection unit identifies is connected to the multiple USB device
Target USB device interface in interface;And the target USB device interface is controlled for identified external equipment simulation USB
Access procedure, the external equipment is connected to one of the multiple computing system;
Wherein, external equipment is connected to target USB device interface by internal or external instruct for instruction.
10. computing device as claimed in claim 9, wherein
The allocation unit has control port, for receiving the input of the external command or from the CPU
Input.
11. computing device as claimed in claim 9, wherein the allocation unit is configured as:
When the external equipment accesses the input/output interface, determine that target USB device connects corresponding to the external equipment
Mouthful;And
The target USB device interface is controlled to simulate the USB access procedures for the external equipment.
12. computing device as claimed in claim 9, wherein the allocation unit is additionally configured to:
When removing the external equipment from the input/output interface, target USB device corresponding to the external equipment is controlled
Interface removes process for external equipment simulation USB.
13. computing device as claimed in claim 10, wherein the allocation unit is additionally configured to:
When the input instruction of the control port switches target USB device interface corresponding to the external equipment, according to described
The input of control port, switch target USB device interface corresponding to the external equipment.
14. computing device as claimed in claim 13, wherein the allocation unit is additionally configured to:
When the input instruction of the control port switches target USB device interface corresponding to the external equipment,
The target USB device interface that the external equipment is currently distributed is controlled to be removed for external equipment simulation USB
Journey;
According to the input of the control port, the external equipment target USB device interface to be switched to is determined;And
The target USB device interface to be switched to described in control simulates the USB access procedures for the external equipment.
15. a kind of device allocation method, for an electronic equipment, wherein the electronic equipment includes multiple USB device interfaces, use
In connecting multiple computing systems respectively, the device allocation method includes:
Detect the access of external equipment;
Receive an instruction;
According to the instruction, among the multiple USB device interface, the target USB device interface of the external equipment is determined;
The external equipment is connected to the target USB device interface;And
For the external equipment, USB access procedures are simulated in the target USB device interface, by the external equipment
It is connected to one of the multiple computing system;
Wherein, the target USB device interface instructed for determining the external equipment.
16. a kind of equipment distributes switching method, for an electronic equipment, wherein the electronic equipment connects including multiple USB devices
Mouthful, for connecting multiple computing systems respectively, the equipment distribution switching method includes:
An instruction is received, the USB device that the instruction instruction switches corresponding to the external equipment connected on the electronic equipment connects
Mouthful;
In the current USB device interface of the external equipment, process is removed for external equipment simulation USB;
According to the instruction, the external equipment target USB device interface to be switched to is determined;
The external equipment is connected to the target USB device interface;And
In the target USB device interface, USB access procedures are simulated for the external equipment;
Wherein, the target USB device interface instructed for determining the external equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410062192.9A CN104866439B (en) | 2014-02-24 | 2014-02-24 | Equipment distributor, device allocation method, equipment distribution switching method and computing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410062192.9A CN104866439B (en) | 2014-02-24 | 2014-02-24 | Equipment distributor, device allocation method, equipment distribution switching method and computing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104866439A CN104866439A (en) | 2015-08-26 |
CN104866439B true CN104866439B (en) | 2018-03-27 |
Family
ID=53912283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410062192.9A Active CN104866439B (en) | 2014-02-24 | 2014-02-24 | Equipment distributor, device allocation method, equipment distribution switching method and computing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104866439B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1841352A (en) * | 2005-03-29 | 2006-10-04 | 李春柏 | Extension apparatus and method for computer host |
CN101770434A (en) * | 2009-01-05 | 2010-07-07 | 联想(北京)有限公司 | Method and system for switching different function units in PCI device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1869959A (en) * | 2006-06-28 | 2006-11-29 | 广州市立本电器有限公司 | System for multi-user sharing internal and external storage of computer |
CN103294622B (en) * | 2012-02-24 | 2016-09-28 | 联想(北京)有限公司 | Digital processing device, hybrid architecture system and memory pool access method |
-
2014
- 2014-02-24 CN CN201410062192.9A patent/CN104866439B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1841352A (en) * | 2005-03-29 | 2006-10-04 | 李春柏 | Extension apparatus and method for computer host |
CN101770434A (en) * | 2009-01-05 | 2010-07-07 | 联想(北京)有限公司 | Method and system for switching different function units in PCI device |
Also Published As
Publication number | Publication date |
---|---|
CN104866439A (en) | 2015-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2676882C2 (en) | Administrating power to auxiliary device | |
US8706944B2 (en) | Dual bus standard switching bus controller | |
CN104252435B (en) | Varistructure intelligence interface and its collocation method based on dynamic reconfigurable FPGA | |
US11101649B2 (en) | Interface circuitry with multiple direct current power contacts | |
US20120005392A1 (en) | Information processing system | |
US11989150B2 (en) | Interface circuit, and method and apparatus for interface communication thereof | |
CN104285218A (en) | Method and device for expanding PCIe bus region | |
RU2018121436A (en) | MODULAR SYSTEM AND METHOD FOR EXCHANGE OF INFORMATION AND / OR ENERGY BETWEEN MODULE SYSTEM MODULES | |
CN103257912A (en) | Testing device and method thereof for testing peripheral component interface express (PCIE) slot | |
CN102929758B (en) | Integrated triggering route device for PXI intelligent testing platform equipment | |
CN103853686A (en) | Server | |
CN103019848B (en) | Method for realizing peripheral component interconnect (PCI) bus non-vector interrupt | |
CN103441780A (en) | Communication circuit capable of enabling direction of RS-485 chip to be automatically changed | |
CN104866439B (en) | Equipment distributor, device allocation method, equipment distribution switching method and computing device | |
CN104866460A (en) | Fault-tolerant self-adaptive reconfigurable system and method based on SoC | |
US9342425B2 (en) | Test apparatus and test module | |
CN105824682B (en) | A kind of monitoring method of virtual machine, device and system | |
CN106815163A (en) | Have the System on Chip/SoC and its PCI-E root port controllers of warm connection function | |
CN109697179A (en) | Hardware resource expands system and heat insertion managing device | |
CN104239257B (en) | Interface arrangement and information processor | |
CN106325606A (en) | Signal scanning method and device of infrared touch equipment and touch equipment | |
CN109890474A (en) | For the method for simulation virtual control device, emulator and computer-readable medium | |
CN102799556A (en) | Method, system and device for interlinking USB (Universal Serial Bus) slave units | |
CN115951973A (en) | Model processing method and device, terminal device and storage medium | |
CN103123463B (en) | A kind of method and device of control system state |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |