Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,466 Members 50,608 Now Online
XDA Developers Android and Mobile Development Forum

USB Host and OTG, i've gone crazy!

Tip us?
yousefs's Avatar
Member - OP
Thanks Meter 5
Posts: 84
Join Date: Jan 2014
Sign USB Host and OTG, i've gone crazy!

From what i know,
OTG: A Port that can Be Both a client so it can be connected to PC and Host to Plug Some flash Drives, etc.
USB Host: They're just like the PC One's, They only Act as USB Host

However, Nexus 5, Supports Both USB OTG And USB Host..
I don't understand how? is there two USB ports one OTG and the other Host?
Using Tapatalk
vin4yak's Avatar
Recognized Contributor
Thanks Meter 2,179
Posts: 3,706
Join Date: Mar 2013
Location: Mumbai

In order to connect a flash drive to your device, you need to connect the flash drive to an OTG cable and then connect the cable to your device.
Alex240188's Avatar
Senior Member
Thanks Meter 635
Posts: 1,000
Join Date: May 2010
Location: Hull
Host and otg are essentially the same thing.

You have host and client modes.
A USB fish drive / keyboard etc... Are all clients
A USB hub / computer etc.. Are hosts. They manage their clients.
Your phone when connected as a storage device is a client.
Your phone plugged in with an otg cable switches your device to host mode so it can then utilize other clients.

For your purposes treat otg and host mode as the same thing.

The main difference between host mode and otg you will find on xda are for devices that don't have otg support by default.
From my past, the early days of the HTC one x and the nexus 4 did not support USB otg.
While the devices where both capable. The phones themselves could not supply power to connected USB devices.
Developers modified android and the kernels to enable host mode. From there you required an externally powered hub to power the client devices and all worked well.
So the main aspect of OTG(on the go) could not be fulfilled because the phone was not powering the clients which meant you needed an external power source.

Host mode - allowing connection of external devices
OTG mode - same as host but is all powered by the device itself

Sent from my Nexus 5 using xda app-developers app

---------- Post added at 02:17 PM ---------- Previous post was at 02:15 PM ----------

Just to clarify your post.
Both host mode and otg can change between host and client.

Sent from my Nexus 5 using xda app-developers app
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes