Method and apparatus for automatically switching between USB host and device
Abstract
An apparatus and method for automatically switching between USB host and device is provided. In a device with a USB interface, the present invention automatically switches between a USB host and USB device by detecting the handshake protocol of the D+ and D− pins of the USB interface. The apparatus for automatically switching between USB host and device includes ah host mode element, a device mode element, a random auto-switcher, and a detection element. The random auto-switcher switches the connection to the host mode element or the device mode element at random time. The detection element monitors the handshake protocol of the D+ and D− pins of USB interface and the external USB-interface device to determine whether the host mode or the device mode is in use. When the present invention detects the external USB-interfaced device is a host, the present invention switches to become a USB device. Similarly, when the present invention detects the external USB-interfaced device is a USB device, the present invention switches to become a USB host.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 14.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
An apparatus for automatically switching between a USB host and a USB device, applicable to a device with USB interface, said apparatus comprising: a host mode element; a device mode element; a random auto-switcher, for switching between to said host mode element and said device mode element at random time; and a detection element, connected to said random auto-switcher, a VBUS pin, a D+ pin, and a D− pin of said USB interface.
- Claim 2Depends on #1
The apparatus as claimed in claim 1 , wherein said USB interface is USB1.0, USB 1.1, USB 2.0, USB OTG or any combination of the above.
- Claim 3Depends on #1
The apparatus as claimed in claim 1 , wherein said detection element monitors the handshake protocol between said D+ and D− pins of said USB interface and an external USB-interfaced device.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (1)
- On-The-Go Supplement to the USB 2.0 Specification, Revision 1.0a; USB Implementers Forum, Inc. (USB-IF); Jun. 24, 2003; pp. 50-69.