CN100476777C - USB interface having host machine/apparatus function and control method therefor - Google Patents
USB interface having host machine/apparatus function and control method therefor Download PDFInfo
- Publication number
- CN100476777C CN100476777C CNB2006100043159A CN200610004315A CN100476777C CN 100476777 C CN100476777 C CN 100476777C CN B2006100043159 A CNB2006100043159 A CN B2006100043159A CN 200610004315 A CN200610004315 A CN 200610004315A CN 100476777 C CN100476777 C CN 100476777C
- Authority
- CN
- China
- Prior art keywords
- port
- usb
- interface
- external equipment
- connectivity
- 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
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
This invention relates to one USB interface and its control method with USB host and device function, which together with function circuit to form one USB host and device function and comprises one control unit, one host unit, one device unit, one memory unit, one router and multiple connection terminals, wherein, the control unit defines connector terminal as one upper terminal or down terminal to control the signal flow in the interface and to send the needed signal to the host unit and device unit; the memory unit stores the interface function buffer data and the host unit is connected to outside through one router and to other outside host.
Description
Technical field
(Universal Serial Bus, USB) multi-functional interface and control method thereof refer to a kind of USB interface and control method thereof with usb host/apparatus function especially to the invention relates to a kind of USB (universal serial bus).
Background technology
In order to solve computer and the numerous and diverse problem of auxiliary equipment department linkage interface thereof in the tradition, USB (universal serial bus) (Universal Serial Bus, USB) specification is suggested in the period of 1996, in order to the output/inputting interface of a single specification of outside different utility appliance to be provided.After the USB1.0 specification is disengaged, passed through increasing and repair many times to cooperate market and deviser's needs, for example the USB1.1 that disengaged in 1998 has increased new transmission standard (interrupt OUT), the USB2.0 that disengaged in 2000 then supports high speed (Hi-speed) specification and has increased mini Type B interface (mini-B connector), also defined new description unit (descriptor), thereafter, USB OTG specification was suggested in calendar year 2001, to realize better power management and to allow the purpose of same apparatus with multi-form work.
In the process of USB specification evolution, keeping the framework of master-slave mode (Host-Device) always.Please refer to shown in Figure 1, a USB physical bus topology (the Physical Bus Topology) synoptic diagram that in 2.0 editions (the Universal Serial Bus specification Revision 2.0) specifications of universal serial bus specification that proposed in 2000, is disclosed for USB development person forum (USB Implementers Forum).By among Fig. 1 as can be known, a USB system 100 can be made of by bus linkage interface (Inter-connection) main frame (Host) 110, device (Device) 120, and wherein said device 120 can be categorized as general device, composite device (Compound Device) and hybrid (Composite Device).
The present is done a more detailed definition to said elements: a main frame has a console controller (Hostcontroller) and a Root Hub (Root Hub), described Root Hub has a port (Port) at least, and main frame has been born the work of most of control and communication in the USB system.The aid identification of function (function) for providing a kind of certain capabilities (capability) to give main frame, for example mouse, keyboard etc.One hub (hub) has a uplink port (up-stream port) and at least one downlink port (down-stream port), described uplink port is in order to be connected with a main frame, and described downlink port is in order to be connected with the device of inserting (embedded) or outside respectively.Device is a kind of function, hub or its combination, one composite device has a hub and at least one function, with this, the composite device that one main frame is looked connection is at least one entity apparatus (physical device) that a hub and a described hub connected, each described entity apparatus has an absolute address, for instance, keyboard and trace ball can be integrated into a composite device, inside at this device, these independent functions are connected on the hub by permanent, also can be described as one " combined type hub ".At host aspect, a composite device similarly is to have linked other function on the independent hub, and as shown in fig. 1, the part that lower right square frame rises is a combined type hub (CompoundHub).Described hub and described device all have an absolute address.One hybrid is one to have the functional device of a plurality of separate interface (Interface), and definition is finished by a description unit that is stored in the described device in described interface.One hybrid only has an address, but each described interface has a difference in functionality and can independently control.For instance, a hybrid can have one simultaneously and is used for the interface of audio device and another is used for the interface of chain of command version.
USB system works principle is sketched in following: the bus linkage interface of USB is a kind of starlike piling up (tieredstar) topology, and this kind piles up and can reach 6 layers at most.Each center of piling up is hub (HUB).Each line segment be main frame with hub/function (function), hub and another hub/function or node-to-node between be connected.The topology of USB shown in Figure 1 is arranged, and each node is represented a device or a function.When a USB system activation, the unit address in the described system is 0, and described subsequently system carries out the device searching and gives device with address assignment in regular turn, all has assigned address up to all devices, perhaps reaches the USB device and counts till the upper limit.
According to the above, can find that intrasystem all data transmission of USB all must control initial operation by host side, all USB devices are auxiliary equipment (Slaver), must accept set agreement and the response transmission from Host, and the back receives the transmission data with the usb data form of standard.Employed equity connects (peer-peer) framework compared to traditional connectivity port, and the USB system has realized master-slave architecture, utilizes a main frame to finish the control of plural devices.
With this, the USB framework utilizes all types of utility appliance of a kind of transmission line serial connection, need all kinds of different cables and replace traditional utility appliance, port cable arranged side by side as printer, the serial port cable of modem etc., simplified being connected between external accessory and the main frame greatly, and had such as plug and play (Plug-and-Play), " hot plug " (Hot Attach﹠amp; Advantages such as Detach), low power consumption, high wide usage and low cost.
But along with consumer electronics, the particularly rise in mobile unit (for example mobile phone, PDA and multimedia player etc.) market, complicacy based on the wheeled apparatus use occasion, in order to lower dependence for host side, and the information in the mobile unit that makes is able to be used by access fast, the USB specification must be made amendment, and can carry out work with main frame and two kinds of USB specification kenels of device so that better power management and permission equipment to be provided.
For this reason, USB development person forum has released USB OTG 1.0 Dec calendar year 2001, revises through 6 times, has released USB OTG 1.0a in June, 2003, formally becomes the standard of a practicality.Ask for an interview Fig. 2, be the defined type of device functional diagram of USB OTG.USB OTG has defined two kinds of type of device: set up device (Peripheral-Only Device, POD) and the double-purpose role device (Dual-Role Device, DRD).It is approximate with the function of general device to set up device, and the double-purpose role device has the main frame of USB specification and install two kinds of functions, just because of this, and the new function that the double-purpose role device must have the role to switch.By as can be known shown in Figure 2, the equipment with double-purpose role device function is had main frame and is installed two kinds of functions, and for example can be formed by connecting with a host side be a device to a mobile phone, also can be connected to become the main frame that drives described device end with a device end.
OTG1.0 replenishes as USB2.0's, has also defined three kinds of connectors: Mini A plug and socket, MiniB plug and socket, Mini AB socket.In the USB-OTG standard, the A device is represented main device, serves as the role of main frame, refers generally to the double-purpose role device with host mode work, and the representative of B device is served as the role who sets up device from device.Mini AB socket then is to be the designed specification of double-purpose role device, to allow that Mini A or Mini B plug insert, and by the plug that is inserted, the initial roles (as main frame or device) of definition double-purpose role device is to activate (enable) its main frame or device unit.Mini A socket is to design on main frame, is used to connect the Mini A plug of peripheral hardware, and in like manner, Mini B jack design is on device, in order to connect Mini B plug.Therefore, different jack types has been distinguished different USB device.
In the OTG specification, when connecting, two double-purpose role device can alternately work the structure of existing USB specification host machine/apparatus that these characteristics are compatible in the mode of main frame and slave.The main frame of OTG specification is responsible for the task of initialization data communication equally.For example: bus reset (reset), obtain various descriptors of USB and configuration device etc.After finishing configuration, two OTG devices just can transmit information with main frame and slave mode respectively.Wherein, the process of principal and subordinate's role swap is consulted agreement (Host negotiation protocol by main frame between two devices; HNP) definition.
In addition, in the OTG equipment, only have a connectivity port, it was realized by described connectivity port with being connected all of host side and device end, therefore made OTG equipment be short of extendibility, thereby had limited the application and the marketable value of OTG specification.
Summary of the invention
A purpose of the present invention provides a kind of USB interface and control method thereof with host machine/apparatus function, and described USB interface can drive plural devices, and construction one is the USB system independently.
Another object of the present invention provides a kind of USB interface and control method thereof with host machine/apparatus function, described USB interface is connected with a plurality of external devices and an external main frame respectively, and described external main frame can use the function of described USB interface and described external device.
Another purpose of the present invention provides a kind of USB interface and control method thereof with host machine/apparatus function, described USB interface is regarded as a hybrid when being connected with an external main frame, a plurality of external devices of described USB interface bridge joint and described external main frame, described main frame is looked described the function that external device is described USB interface.
A further object of the present invention provides a kind of USB interface and control method thereof with host machine/apparatus function, described USB interface comprises a router (router) and a plurality of connectivity port, and the arbitrary described connectivity port of described control module definable is a uplink port or a descending port.
Another object of the present invention provides a kind of USB interface and control method thereof with host machine/apparatus function, described USB device comprises a control module (Control Unit), a main computer unit (USB HostUnit), a device unit (USB Device Unit) and a storage unit, described control module control transmission is to the data of described main computer unit and described device unit, described storage unit when data processing is carried out at described USB interface in order to store the required data of computing.
Another purpose of the present invention provides a kind of USB interface and control method thereof with host machine/apparatus function, described USB interface comprises a router and a plurality of connectivity port, whether described control module provides power supply to give the method for described connectivity port by detecting an external equipment that is connected with arbitrary described connectivity port, defining described connectivity port is a uplink port or a descending port, when described external equipment provides power supply, described connectivity port is defined as a uplink port, when described external equipment did not provide power supply, described connectivity port was defined as a descending port.
A further object of the present invention provides a kind of USB device with host machine/apparatus function, and described USB interface can combine with functional circuit to constitute one has the USB device (Apparatus) of usb host/apparatus function.
Another object of the present invention provides a kind of USB device with host machine/apparatus function, when described USB device only is connected with at least one external device, described USB device can drive plural devices, construction one is the USB system independently, when described USB device is connected with an external main frame and at least one external device, described USB device is regarded as a hybrid, described external device of described USB device bridge joint and described external main frame, make that described external main frame is able to directly use described external device by the present invention, and need not extra hub.
Another purpose of the present invention provides a kind of USB interface control method with host machine/apparatus function, whether providing power supply by detecting the external equipment that is connected with connectivity port, described USB interface, is a uplink port or a descending port to define described connectivity port.
A further object of the present invention provides a kind of USB interface control method with host machine/apparatus function, remove by caliberating device function in advance or with electrical mode analog solution and to link (disconnect) and to link (Re-connect) again, realize hot plug (Hot Plug) characteristic of USB device so that re-register new apparatus function.
To achieve these goals, the invention provides a kind of USB interface, comprise with host machine/apparatus function:
A plurality of connectivity ports are in order to be connected with USB device;
One router is connected with described connectivity port, and it is one of a uplink port and a descending port that control module defines described connectivity port;
One main computer unit is connected with described router, and when arbitrary connectivity port was defined as a descending port, described router bridge joint downlink port was to main computer unit; And
One device unit is connected with described router, and when arbitrary connectivity port was defined as a uplink port, described router bridge joint uplink port was to described device unit, and to define other connectivity ports be a descending port;
One control module is connected with described router, described main computer unit and described device unit, receives the data stream of connectivity port state with control USB interface.
One of be suitable for most implementing in the pattern of the present invention by simple demonstration, the person skilled in the art can one of understand in characteristics of the present invention and the advantage or partly or entirely, therefore, it is exemplary and non-limiting that accompanying drawing and instructions can be considered basically from following explanation.
Description of drawings
Fig. 1 is a USB physical bus topology (Physical Bus Topology) synoptic diagram.
Fig. 2 is the defined type of device functional diagram of a USB OTG.
Fig. 3 controls the block schematic diagram at interface for the USB that has host machine/apparatus function according to one of a preferred embodiment of the present invention.
Fig. 4 is the control flow chart according to a preferred embodiment of the present invention.
Fig. 5 A and Fig. 5 B be described USB control interface 300 under independence (Stand Alone) pattern with the annexation and the work synoptic diagram of USB external device.
Fig. 6 A and Fig. 6 B, for described USB control interface 300 under device (Device) pattern with the annexation and the work synoptic diagram of USB external device.
Embodiment
Figure 3 shows that the block schematic diagram that has the USB control interface of host machine/apparatus function according to one of a preferred embodiment of the present invention.Described USB control interface 300 comprises a control module 310, a main computer unit 320, a device unit 330, a storage unit 340, a router three 50 and a plurality of connectivity port 360A, 360B.Described control module 310 is connected with described main computer unit 320, described device unit 330, described storage unit 340 and described router three 50 respectively, in the described USB control of the described control module 310 controls interface, for example order signal flows (flows) such as (Command), data (Data) and state (Status) signal, and, described signal flow is transferred to described main computer unit 320 and described device unit 330 according to need according to described control module 310 defined connectivity port states (for example being a uplink port or downlink port).Required data when described storage unit 340 stores the running of described USB control interface.Described router three 50 is connected with described connectivity port 360A and 360B, be after being a uplink port or downlink port by described control module 310 described connectivity port 360A of definition and 360B, to couple with device unit 330 or main computer unit 320 by router three 50.And the define method of uplink port or downlink port, whether provide power supply for detecting the external equipment that is connected with described connectivity port 360A and 360B, when the described external equipment that connects provided power supply, described connectivity port was defined as a uplink port, and described external equipment is an external main frame; When the described external equipment that connects does not provide power supply, described connectivity port is defined as a descending port, described external equipment is an external device, it should be noted that, the quantity of described connectivity port can be and specifies number, do not exceed with two groups, the connectivity port number in the present embodiment is only required for explanation, should not be considered as restriction of the present invention.Described main computer unit 320 is connected with described control module 310 and described router three 50 respectively, be connected with arbitrary described connectivity port that is defined as a descending port by described router three 50, to be connected with external device, this moment, the function at described USB control interface was a host side interface.Quantity that it should be noted that described main computer unit 320 can be and specifies number, and does not exceed with one, and described main computer unit 320 numbers in the present embodiment are only required for explanation, should not be considered as restriction of the present invention.Described device unit 330 is connected with described control module 310 and described router three 50 respectively, the described connectivity port that is defined as a uplink port by described router three 50 and is connected, so as to being connected with external main frame, this moment, described control module 310 was defined as downlink port with other connectivity ports, and the function at described USB control interface is a device end interface.
Because definition connectivity port 360A and 360B are uplink port or downlink port, be to detect external equipments by control module 310 whether to provide power supply decide, control router threes 50 bridge joint uplink ports in device unit 330 or be the bridge joint downlink port to main computer unit 320 etc. by control module 310 again.Therefore, according to the present invention, bridge 350 only is selectivity (optional) element, if connectivity port 360A or 360B are A or mini A type socket, then directly bridges to device unit 330; Connectivity port 360A or 360B are B or mini Type B socket, then directly bridge to main computer unit 320, promptly need not to be provided with router three 50.If connectivity port 360A or 360B are Mini-AB type socket, then similar because of the joint outward appearance on the connecting line, so router three 50 can be set, uplink port is bridged to device unit 330 via control module 310, downlink port is connected to main computer unit 320.
Ask for an interview shown in Figure 4ly, be a control flow chart of foundation a preferred embodiment of the present invention.Whether step 40 utilizes described control module 310 to detect has external equipment to connect described connectivity port 360A or 360B, when external equipment connects, step 41 detects described external equipment and whether provides power supply by connected connectivity port, when external equipment does not provide power supply as described, the connectivity port that is connected with described external equipment with described control module 310 definition in step 42 is a descending port, and the described downlink port of bridge joint is to described main computer unit 320.When external equipment provides power supply as described, then carry out step 43, the connectivity port that is connected with described external equipment with control module 310 definition is a uplink port, and the described uplink port of bridge joint is to described device unit 330.Be downlink port in remaining connectivity port of step 44 definition again, and described downlink port is bridged to main computer unit 320.Then, carry out step 45, continue to detect described connectivity port,, solved the problem that has two host side simultaneously if when having another external main frame to connect another connectivity port.
Below to described USB control interface 300 with host machine/apparatus function under different working modes, and annexation between external equipment and working method, do a clearer description:
Ask for an interview Fig. 5 A and Fig. 5 B, for described USB control interface 300 under independence (Stand Alone) pattern with the annexation and the work synoptic diagram of USB external device, for ease of narration, described connectivity port 360A and 360B are defined as the first connectivity port 360A ' and second and connect 360B '.Among Fig. 5 A, one external device 370 is connected with the described first connectivity port 360A ', because 300 detections of USB control interface are known described external device 370 and are failed to provide power supply, so the described first connectivity port 360A ' is defined as a descending port, is connected with described main computer unit 320 by described router three 50.Therefore, the function of described external device can be used in described USB control interface 300, for example print, scanning and access or played data etc., but also not as limit.Among Fig. 5 B, described external device 370 is connected with the described second connectivity port 360B ', because 300 detections of USB control interface are known described external device 370 and are failed to provide power supply, be defined as a descending port so described second connects 360B ', be connected with described main computer unit 320 by described router three 50.Therefore, the function of described external device is used at described USB control interface 300, for example print, scanning and access or played data etc., but also not as limit.Work synoptic diagram as can be known by the described USB control interface 300 that Fig. 5 A and Fig. 5 B show, use by described router three 50, no matter an external device is to be connected with arbitrary described connectivity port, all bridged to described main computer unit 320, with this, the function of described external device is used at described USB control interface 300.No matter what change the quantity of described connectivity port and described connectivity port that described external device connected have, and above-mentioned described USB control interface 300 stand-alone modes operation is still set up.
Ask for an interview Fig. 6 A and Fig. 6 B, for described USB control interface 300 under device (Device) pattern with the annexation and the work synoptic diagram of USB external device.Among Fig. 6 A, one external main frame 380 is connected with the described second connectivity port 360B ', because USB control interface 300 is detected and is known that described external main frame 380 provides power supply, so the described second connectivity port 360B ' is defined as a uplink port, be connected with described device unit 330 by described router three 50, described control module 310 and to define the described first connectivity port 360A ' be a descending port, be connected with described external device 370, described external device 370 bridges to described main computer unit 320 by described router three 50.In the present embodiment, described USB control interface 300 is defined as a hybrid (Composite Device) interface under device (Device) pattern, described external device 370 is considered as a function at described USB control interface 300, but also not as limit, for instance, described USB controls interface 300 and also can be defined as a composite device (Compound Device) interface under device (Device) pattern.
Among Fig. 6 B, one external main frame 380 is connected with the described first connectivity port 360A ', because USB control interface 300 is detected and is known that described external main frame 380 provides power supply, so the described first connectivity port 360A ' is defined as a uplink port, be connected with described device unit 330 by described router three 50, described control module 310 and to define the described second connectivity port 360B ' be a descending port, be connected with described external device 370, described external device 370 bridges to described main computer unit 320 by described router three 50.
If under independence (stand alone) pattern, when having external main frame to be connected to the connectivity port at USB control interface 300, then USB control interface 300 can be switching to device (Device) pattern according to USB control of the present invention interface 300.But, switch to the device pattern before, can wait for that the operation of stand-alone mode is finished, to guarantee the correctness of data.
Data access and transmission path in present embodiment Fig. 5 and Fig. 6 are described as follows: external main frame connects described router via described uplink port, and by described device unit and control module communication, control module is again by described main computer unit and downlink port, obtain described external device and carry out the required information and date of function, and with described cell stores running and transmit required data.In view of the above, described external main frame can be when carrying out function, realizes operative relationship between external main frame/external device by described path.
It should be noted that, particular type USB device shown among present embodiment Fig. 5 and Fig. 6 should not be considered as restriction of the present invention, in fact only for exemplifying, any application USB carries out at the interface device of data access, all can realize being connected between external main frame and external device by the present invention.
In addition, the invention provides two kinds of control methods, make described USB control interface 300 under device (Device) pattern, can realize the function of USB interface hot plug (Hot Plug), the present is specified in down:
When the function of external device was in advance predetermined (predefined), host side can utilize the described prior predetermined function of identification/driving (enumeration) to realize the hot plug function of USB.At first, no matter described whether USB control interface 300 is connected with external device, when an external main frame and described USB control interface 300 and are connected, i.e. and at least one prior predetermined function of mark (Book).Subsequently, when a predetermined in advance external device was connected with described USB control interface 300, promptly actuatable (Enabling) described function was to use described external device.For instance, mark one moves memory function (RemovableDisk Function) or user's interface function (Human Interface Function) in advance, when the described external device that inserts subsequently has mark function, can use immediately.Be noted that the function quantity of mark in advance and kind can system requirements and usefulness decisions, do not exceed with one.
Another kind of USB interface hot-plug method is the design by described USB control interface 300, in described USB control interface 300 and an external host side connect under the constant situation of (connecting) state, when another external device is connected with described external main frame by described USB control interface 300, automatically be connected (Disconnect by described USB control interface 300 with described external main frame releasing, be about to D+ and be connected to the logic low level with the D-pin) and be connected (Re-connect again, being about to D+ or D-pin is connected to when drawing (pull-up) resistance), make described external main frame be utilized the described external device of described USB interface device mark to be one of its interface, to detect existing of described external device, and described external device discerned and drive, to realize the hot plug function at USB interface.
What deserves to be mentioned is, aforesaid connection one speech is non-to be limited to wired connection and electrical connection, be enough to make between each linkage unit and need carry out the connected mode that signal transmits according to system, all should be considered as by disclosed, for example, for example the signal transfer method in the Wireless USB specification (Wireless USB) also can be used herein.
Described USB interface described in the present invention with host machine/apparatus function, be able to combine to constitute one and have the USB device (Apparatus) of usb host/apparatus function with functional circuit, in other words, via use of the present invention, can be integrated in the electronic equipment at any use USB interface, desktop computer for example, notebook computer, carry-on dish, the digital audio-video player, mobile phone, GPS equipment, PDA equipment and various input and output device etc., be one to have the USB device of usb host/apparatus function, make this USB device not only can directly use institute's rheme rank device, also can make an external host side except the function of using described USB device itself, also can be connected with other external devices by described USB device, directly use the function of described external device, and need not to change described external main frame, cable between described USB device and described external device links.Therefore, by the use at described USB interface, aforesaid various electronic equipments are become the USB device with usb host/apparatus function, thereby splendid ease of use and compatibility have been arranged, and have improved marketable value more greatly.
Know this technology personage and should be appreciated that the specific embodiment of the invention shown in above-mentioned accompanying drawing and the explanation is exemplary and unrestricted.
The above stated specification of preferred embodiment of the present invention is to be used for demonstration and illustration purpose.It is not the exemplary specific embodiment that makes the present invention be limited to described precise forms or disclose.Therefore, previous explanation should be considered as exemplary and non-limiting.Obvious many corrections and variation will be clearly for being familiar with this technology personage.The selection of specific embodiment and description are for the optimal mode of better explanation principle of the present invention and practical application thereof, understand and be used for the present invention of various specific embodiments thereby allow to be familiar with this technology personage, and have and be suitable for the various modifications that the reality work is contained in specific use or institute.The present invention is intended to make its category by defining in this appended the application's claim scope and the person of being equal to thereof, and wherein except as otherwise noted, otherwise all authority requires request Xiang Jun to comprise its zone of reasonableness the most widely.Should be appreciated that, can change for specific embodiment by being familiar with this operator, and not break away from by the defined category of the present invention of following the application's claim scope.
Claims (11)
1. USB interface with host machine/apparatus function, in order to connect at least one external equipment, this USB interface comprises:
A plurality of connectivity ports, each described connectivity port are used for coupling with a described external equipment;
One control module one of defines described connectivity port and is in a uplink port and the descending port;
One main computer unit is coupled to described control module, when being defined as described downlink port, can bridge to described downlink port one of in described connectivity port;
One device unit is coupled to described control module, when being defined as described uplink port, can bridge to described uplink port one of in described connectivity port, and other persons that defined in the described connectivity port by described control module are described downlink port.
2. USB as claimed in claim 1 interface is characterized in that also comprising a router, is coupled to described control module, in order to the described main computer unit of bridge joint to described downlink port and the described device unit of bridge joint to described uplink port.
3. USB as claimed in claim 1 interface is characterized in that also comprising a storage unit, couples with described control module, in order to storage data.
4. USB as claimed in claim 1 interface is characterized in that whether described control module provides power supply by detecting the described external equipment that described connectivity port connected, and is one of described uplink port and described downlink port to define described connectivity port.
5. USB as claimed in claim 4 interface is characterized in that when described external equipment does not provide power supply the connectivity port that is connected with described external equipment is defined as described downlink port, and the described downlink port of bridge joint is to described main computer unit.
6. USB as claimed in claim 5 interface, it is characterized in that when described external equipment provides power supply, the connectivity port that is connected with described external equipment is defined as described uplink port, the described uplink port of bridge joint is to described device unit, and to define other connectivity ports be described downlink port, and the described downlink port of bridge joint is to described main computer unit.
7. USB as claimed in claim 4 interface, it is characterized in that when described external equipment provides power supply, the connectivity port that is connected with described external equipment is defined as described uplink port, the described uplink port of bridge joint is to described device unit, and to define other connectivity ports be downlink port, and the described downlink port of bridge joint is to described main computer unit.
8. USB as claimed in claim 4 interface, it is characterized in that being described downlink port when described connectivity port with a described external equipment bridge joint, then this described external equipment is defined as an external device, then described USB interface under a stand-alone mode, the described external device of direct access.
9. USB as claimed in claim 8 interface, it is characterized in that when with the described connectivity port of a described external equipment bridge joint in one of during for described uplink port, then this described external equipment is defined as an external main frame, then described USB interface is under a device pattern, make that described external main frame can be the one interface by the built-in function at described external device of described USB interface mark and described USB interface, directly uses the built-in function at described external device and described USB interface.
10. USB as claimed in claim 4 interface, it is characterized in that when with the described connectivity port of a described external equipment bridge joint in one of during for described uplink port, then this described external equipment is defined as an external main frame, other described external equipments all are defined as an external device, then described USB interface is under a device pattern, make that described external main frame can be the one interface by the built-in function at described external device of described USB interface mark and described USB interface, directly uses the built-in function at described external device and described USB interface.
11. the control method with host machine/apparatus function USB interface comprises the following steps:
Detect a plurality of connectivity ports and whether couple external equipment;
When described external equipment connects, detect described external equipment and whether provide power supply by connected described connectivity port;
If described external equipment does not provide power supply, the described connectivity port that definition is connected with described external equipment is a descending port, and described downlink port to a main computer unit of bridge joint; If described external equipment provides power supply, the described connectivity port that definition is connected with described external equipment is a uplink port, and described uplink port to a device unit of bridge joint, and the described connectivity port that defines other is described downlink port, and bridge to described main computer unit; And
Whether detect described external equipment is removed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100043159A CN100476777C (en) | 2006-02-06 | 2006-02-06 | USB interface having host machine/apparatus function and control method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100043159A CN100476777C (en) | 2006-02-06 | 2006-02-06 | USB interface having host machine/apparatus function and control method therefor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101017470A CN101017470A (en) | 2007-08-15 |
CN100476777C true CN100476777C (en) | 2009-04-08 |
Family
ID=38726490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100043159A Active CN100476777C (en) | 2006-02-06 | 2006-02-06 | USB interface having host machine/apparatus function and control method therefor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100476777C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9207697B2 (en) | 2014-05-05 | 2015-12-08 | Novoton Technology Corporation | Control chip and connection module utilizing the same |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118493A (en) * | 2010-11-26 | 2011-07-06 | 深圳市杰特电信控股有限公司 | Smart phone with master device and slave device and application method thereof |
CN102722360A (en) * | 2011-03-31 | 2012-10-10 | 比亚迪股份有限公司 | Mobile terminal and management method for externally inserted attachment |
CN102724351B (en) * | 2011-03-31 | 2015-05-13 | 比亚迪股份有限公司 | Mobile terminal and management method of mobile terminal to external interposer attachment |
CN102801057A (en) * | 2012-08-03 | 2012-11-28 | 昆山大百科实验室设备工程有限公司 | Improved USB power supply structure |
CN104778140B (en) * | 2014-01-15 | 2019-01-22 | 深圳市可橙科技有限公司 | System and method are connected in the USB automatic identification of starlike framework |
US9602648B2 (en) * | 2015-04-30 | 2017-03-21 | Keyssa Systems, Inc. | Adapter devices for enhancing the functionality of other devices |
-
2006
- 2006-02-06 CN CNB2006100043159A patent/CN100476777C/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9207697B2 (en) | 2014-05-05 | 2015-12-08 | Novoton Technology Corporation | Control chip and connection module utilizing the same |
Also Published As
Publication number | Publication date |
---|---|
CN101017470A (en) | 2007-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7895386B2 (en) | USB interface provided with host/device function and its control method | |
CN100476777C (en) | USB interface having host machine/apparatus function and control method therefor | |
US20060106962A1 (en) | USB On-The-Go implementation | |
US7069347B1 (en) | Device and method for adapting speed of a USB device based on available power | |
US7214089B1 (en) | Universal serial bus On-The-Go apparatus | |
CN108885601B (en) | USB multi-host endpoint reflector hub | |
JP6400714B2 (en) | Flexible mobile device connectivity with automotive systems with USB hubs | |
US7085876B2 (en) | USB controlling apparatus for data transfer between computers and method for the same | |
US7293124B2 (en) | Storage device with parallel interface connector | |
TW565797B (en) | Method and apparatus of controlling an operational mode of a USB device | |
JP2019096282A (en) | Hub | |
US20040200631A1 (en) | Cable and connection module for a universal serial bus interface | |
US20110191503A1 (en) | Motherboard Compatible with Multiple Versions of Universal Serial Bus (USB) and Related Method | |
TW200817973A (en) | Method for automatically switching USB peripherals between USB hosts | |
CN108009108B (en) | USB concentrator module | |
TW200415828A (en) | Interface integrated circuit device for a USB connection | |
CN101833526B (en) | Electronic system and method for supporting host function | |
CN105183679A (en) | Electronic device and information processing method | |
CN212009333U (en) | Interface board compatible with multiple interface signals | |
CN101339542B (en) | Data transmission device, control circuit chip and operation mode control method | |
CN108563537A (en) | A kind of USB principals and subordinates detection device and method | |
CN102270860B (en) | Filling soon of intelligent mobile phone is put | |
CN202872142U (en) | Multifunctional USB (Universal Serial Bus) data line | |
KR20070056253A (en) | Universal serial bus cable apparatus | |
CN110377540A (en) | Master-slave equipment switching device and terminal device under a kind of mode based on USB_OTG |
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 |