USB Host / OTG working (UPDATE: now self powered) - AT&T, Rogers HTC One X, Telstra One XL

Update October 28,2012:
h8rift figured out how to enable full OTG support with 5V power, no need for y-cable anymore!
You need to use a modified kernel for self powered OTG. Stock kernel has OTG but needs a y-cable connected to 5V power source, as explained below.
To enable powered OTG, you will need to use one of the following:
CM10 Nightly builds: http://forum.xda-developers.com/showthread.php?t=1790032
King Kang ROM: http://forum.xda-developers.com/showthread.php?t=1959099
rohan.kernel: http://forum.xda-developers.com/showthread.php?t=1892108
For Sense ROMs: http://forum.xda-developers.com/showthread.php?t=1967897
______________________________________________
To use OTG with stock kernel:
Here's what you need:
-an OTG cable
-a USB Y-cable
-a usb perhipheral (eg: mouse, keyboard, thumb drive, etc)
The key to this working is 5V on the uplink to the phone. Most usb hubs do not supply 5V on the uplink! This is why I suggest a Y-cable.
1. connect the perhipheral device to the Y-cable
2. connect the y-cable to the AC power adapter that came with your phone
3. connect the other end of the y-cable to an OTG cable
4. connect the OTG cable to your One X
Here's a screenshot showing the mouse pointer:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Notes:
-the OTG cable automatically sets the USB controller to host mode
-usb-hid seems to be built into the kernel, no modules need to be loaded
-usb storage works, but has to be mounted manually
-tested on stock kernel and scrosler's cleankernel

Cool. Kinda sucks that you need a separate 5v source.

^^yeah, there's not much you can do about that. I'm pretty sure there's no way the phone can supply the power.
Also, I can confirm usb storage works.
I attached a thumb drive and manually mounted it:
mkdir /mnt/usb
mount -t vfat /dev/block/sda1 /mnt/usb

Where did you get that clock?
Sent from my HTC One X using xda premium

flar2 said:
^^yeah, there's not much you can do about that. I'm pretty sure there's no way the phone can supply the power.
Also, I can confirm usb storage works.
I attached a thumb drive and manually mounted it:
mkdir /mnt/usb
mount -t vfat /dev/block/sda1 /mnt/usb
Click to expand...
Click to collapse
Any OTG cable is fine?
Sent from my HTC One X using xda premium

abhipati said:
Any OTG cable is fine?
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Any proper OTG cable (I got mine for like $3 on ebay). In an OTG cable, pin 4 on the micro usb side is grounded. This is how the device automatically senses that it should enter host mode.

nightrainbow said:
Where did you get that clock?
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Are you being serious? (It came with the phone)

But it has a brushed aluminum theme, no? So it's not stock.
Sent from my HTC One XL using Tapatalk 2

The Galaxy S II supplies power for USB host with a OTG cable ... stock
This is like the way you have to do it with a TouchPad, who carries around a portable USB power supply? If HTC wasn't going to give a MicroSD slot, you would think USB OTG would be officially supported.
Sent from my HTC One X

Does the phone at least charge in this mode so its somewhat useful?

ECEXCURSION said:
But it has a brushed aluminum theme, no? So it's not stock.
Sent from my HTC One XL using Tapatalk 2
Click to expand...
Click to collapse
Yeah, it's stock, part of the Aluminum theme.
Sent from my HTC One X using XDA Premium HD. In between Force Clo...

Vendetta-NY said:
Yeah, it's stock, part of the Aluminum theme.
Sent from my HTC One X using XDA Premium HD. In between Force Clo...
Click to expand...
Click to collapse
Oh.. didn't realise there was such a thing.

It doesn't charge while in host mode, but I think that function might be enabled with a little kernel hacking.
I'm not familiar with the hardware yet, I just got this phone a few days ago. The USB controller is likely part of the soc. There would be a phy between the main chip and the USB port. The phy is where voltages would be controlled. There are many different phy's available, each has different capabilities.

flar2 said:
It doesn't charge while in host mode, but I think that function might be enabled with a little kernel hacking.
I'm not familiar with the hardware yet, I just got this phone a few days ago. The USB controller is likely part of the soc. There would be a phy between the main chip and the USB port. The phy is where voltages would be controlled. There are many different phy's available, each has different capabilities.
Click to expand...
Click to collapse
can you please be more clear in your explanation as i don't understand

saketh91 said:
can you please be more clear in your explanation as i don't understand
Click to expand...
Click to collapse
I'm saying that the usb phy, which is a physical chip that controls the micro usb port, might be able to be programmed to allow charging while in otg mode by modifying code in the kernel. But I don't know enough about the phone's hardware.
I think, but don't know for sure, that there is a signal in the usb cable that tells the phone whether it's connected to a normal usb port or an AC adapter. The phone will draw a small current if it's connected to a computer usb port and a larger current (to charge quicker) if it's connected to the wall charger. Perhaps there is a resistor or short between D+ and D- lines? I don't know, more research is required. If anyone knows, feel free to contribute here.
What I do know is that when you connect the otg cable, a pop up comes up saying charging is disabled.

The at&t S3 supports USB OTG w/o external power. Plugged in a mouse, it worked. Keyboard same thing. Plugged in SD card reader, S3 mounted the card and file browser opened. It was pretty cool.

FreddieP said:
The at&t S3 supports USB OTG w/o external power. Plugged in a mouse, it worked. Keyboard same thing. Plugged in SD card reader, S3 mounted the card and file browser opened. It was pretty cool.
Click to expand...
Click to collapse
Basically all Samsung Android phones from Galaxy S2 onwards support USB OTG out of box.
HTC follows Google's route that doesn't support any USB OTG out of box (Nexus N7 doesn't have USB OTG OOB) for whatever reason.
The only reason I'm interested in USB OTG is to use an external storage when I'm traveling, e.g. on a flight. The requirement of an external 5v supply basically kills it for me. It would scare the heck out of fellow passengers when they saw me plug some wires to the phone connecting to some external battery pack and storage card

My reason for wanting otg is so I can backup and review photos from my DSLR camera when I'm on trips. The external power requirement is an annoyance, but I can easily deal with it back in the hotel room.

I wonder what the current threshold is to get the USB controller to think it is charging?
Would this work: attach a watch battery of the correct voltage and a resistor to limit current draw to one side of the splitter and have a device (battery, resistor, splitter, OTG cable) that's not all that big.
I too would like to access digicam SD storage via my phone for minor edits and uploading.

foxbat121 said:
The only reason I'm interested in USB OTG is to use an external storage when I'm traveling, e.g. on a flight. The requirement of an external 5v supply basically kills it for me. It would scare the heck out of fellow passengers when they saw me plug some wires to the phone connecting to some external battery pack and storage card
Click to expand...
Click to collapse
LOL that is worth doing just for the lol involved make sure you wear a turbin on the flight too for added effect and sit there speaking gibberish the whole time as well! Actually you should pull the battery supply from your turbin HAHAHA
On a serious note: I can't wait for OTG to hit our device either we really could use it and rohan32 is trying to work it into his new kernel possibly.

Related

USB Host/OTG without doc

For the "old" Atrix 4G, there is a thread regarding USB Host, without a dock.
http://forum.xda-developers.com/showthread.php?t=997187
Can the same be done with the Atrix 2 (buying the USB hub and the OTG adapter)? I assume getting WebTop app requires rooting? Can the USB OTG still be used without rooting?
If not using WebTop app, is there any advantage going this route, versus just using a bluetooth keyboard/mouse ? Maybe just so that I can copy files to a disk key?
I'm just envisioning using something like this while visiting a relative or staying at a hotel - hooking the phone up to a TV, to be able to do things.
Thanks
Yes, it works on the atrix 2. I've gotten usb mass storage, keyboards and mice to work. All before the root was available.
The only problem I have with it is minecraft pocket edition doesn't support remapping the input to keyboard+mouse.
Oh- also I had to shave a little plastic off the side of the OTG adapter for the HDMI cable to fit at the same time.
I would suggest going the bluetooth route unless you need usb mass storage or usb ethernet.
The mess of wires can get pretty bad...
Hmmm... I need help here.
I have this set up:
- Micro USB On-The-Go Host OTG Adapter
- The USB male split into two cables: power ( 5v + GND) and data (d+, d- , GND)
It's fully functional, on my Touchpad running CM9 and WebOS. But doesn't work on my atrix 2.
What the thread on the OP is suggesting is you have to put the 5v on the data cable too ?
-------------------
yeah, just did it. It works and still charges the cellphone! \o/
When I tested it, I used a hub. Thankfully the hub's included cable has a third lead coming off with only 5v and ground connected, so it was a perfect match.
I've spliced up a cable to test the way you have it. Unfortunately, even with 5v+gnd hotwired, I haven't been able to get it to work without a hub between the usb otg adapter and the usb device.
This suggests that Motorola only really wants you to use usb host mode with the official lapdock or docking station, etc.
Strange... The modified cable worked fine to me.
an usb keyboard worked with the cable and even an unmodified usb hub.
So you have a hub with a second cable only for power? Do you have a link ?
RogerThis said:
Strange... The modified cable worked fine to me.
an usb keyboard worked with the cable and even an unmodified usb hub.
So you have a hub with a second cable only for power? Do you have a link ?
Click to expand...
Click to collapse
Just tried it and you're right about the keyboard. It works when connected directly.
Till this point I had only been trying USB storage and mice.
This kinda makes me think this is just a software deficiency that could be worked around.
As far as the hub goes, it's just a 4 dollar hub I found at goodwill.
After a little research, I found out what it is but it's discontinued of course. Any usb hub should work, the trick is the Y cable.
The hub linked to on dealextreme in that Atrix thread is wired in a way analogous to this.
Can you guys explain a bit more about these modified cables and the Y adapter cable? Like, exactly what cables do I need, and what modifications need to be done.
Thanks!
moofree said:
Just tried it and you're right about the keyboard. It works when connected directly.
Till this point I had only been trying USB storage and mice.
This kinda makes me think this is just a software deficiency that could be worked around.
As far as the hub goes, it's just a 4 dollar hub I found at goodwill.
After a little research, I found out what it is but it's discontinued of course. Any usb hub should work, the trick is the Y cable.
The hub linked to on dealextreme in that Atrix thread is wired in a way analogous to this.
Click to expand...
Click to collapse
Man!, I use this site a lot and never saw this hub! Thanks!
The self made Y cable is fine, I just want a better solution without semi-naked wires hanging around. =)
extide said:
Can you guys explain a bit more about these modified cables and the Y adapter cable? Like, exactly what cables do I need, and what modifications need to be done.
Thanks!
Click to expand...
Click to collapse
To the Atrix act as a host all you need is that OTG adapter metioned earlier. But, mobile devices don't provide power to "guest" devices. So, you need to power the usb device with a external source.
You have 2 options:
- Self powered HUB. Actually that's not enough. You'll need to power the USB pin 1 on the cable connected to the atrix to active the Host mode. That's why that hack (wire soldered) on the atrix 1 thread.
- The Y cable. As I described before is a normal USB cable powered by other USB cable. Ex: http://www.amazon.com/Apricorn-Power-Adapter-Cable-AUSB-Y/dp/B000JIOHDE
On our scenario, one will provide the data communication and the other the power. So, the data cable you will connect to the atrix and the other to a PC or the atrix charger.
I hope I made myself clear in a not so bad english.
If you buy a Y cable, you'll only need the OTG adapter ( http://dx.com/micro-usb-on-the-go-host-otg-adapter-pair-50774 ) and any usb hub.
If you want to make the cable, only 2 USB cables.
If you want to modify an USB hub. Just any hub and a cable.
I'm modifying an USB hub, I'll post pictues and I get home.
Rechargeable battery powered usb hub with otg cable
I was able to make myself a battery powered usb hub with an otg micro end on the cable and its rechargeable. All for $10
Using the USB host adapter and a y splitter, which I power via USB to AC adapter I can use a keyboard / mouse. I am unable, though to access a USB memory stick or the like. Looking at the Atrix 4G forums of people who did similarly - pre the latest firmware, the Atrix 4G needed to use manually mounting - which I assume needs root. But, the latest Atrix 4G automounts. But, I have a Atrix 2 with the latest firmware... and no automounting. Any ideas?
Thanks
I have the Micro USB OTG Adapter ( product B005N55WHI on amazon ) + the Y cable ( product B003HHK576 on Amazon ).
I put on the red plug of the Y cable a portable USB battery (phone detects it and is charging).
On the end of the Y cable I have my camera.
When I check with USB Hostdiagnostic it detects the USB device (my camera) but not the app I want to use it with. The USB host diag shows that at Android API Claims support and Classes found is NO and Device detected is N/A .
What am I missing?
Update:
USB Mouse and keyboard works.
atrix2 - pendrive auto mount
dzr said:
Using the USB host adapter and a y splitter, which I power via USB to AC adapter I can use a keyboard / mouse. I am unable, though to access a USB memory stick or the like. Looking at the Atrix 4G forums of people who did similarly - pre the latest firmware, the Atrix 4G needed to use manually mounting - which I assume needs root. But, the latest Atrix 4G automounts. But, I have a Atrix 2 with the latest firmware... and no automounting. Any ideas?
Thanks
Click to expand...
Click to collapse
Like above, I too have same issue with Atrix2(pendrive not getting detected / mounting), whereas mouse & keyboard work fine. can anybody help.
You need to use a usb hub between the splitter cable and the usb drive.
pendrive works
moofree said:
You need to use a usb hub between the splitter cable and the usb drive.
Click to expand...
Click to collapse
Hi.................
It works, thanks a lot......
Hope same logic works for connecting USB printer as well .
I didn't have a female to female adapter. But I found an ancient internal USB hub that works just fine!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
in fact, I am posting this through the ATRIX 2, typing this with keyboard!!
EDIT:
Anyway to get USB controller to work?? the generic dual-shock II clone.
i have drawn a simple diagram using paint which i have understood by reading through out this thread,
is it correct?
and i have spotted a question in the diagram which asking for a Y splitter. is this is the one which called Y splitter or something else?
thanks
EDIT
and for the records is this OTG cable will work this atrix 2?
sachi9121 said:
i have drawn a simple diagram using paint which i have understood by reading through out this thread,
is it correct?
and i have spotted a question in the diagram which asking for a Y splitter. is this is the one which called Y splitter or something else?
thanks
EDIT
and for the records is this OTG cable will work this atrix 2?
Click to expand...
Click to collapse
That cable is right. but diagram is not.
Here see this...
dzr said:
Using the USB host adapter and a y splitter, which I power via USB to AC adapter I can use a keyboard / mouse. I am unable, though to access a USB memory stick or the like. Looking at the Atrix 4G forums of people who did similarly - pre the latest firmware, the Atrix 4G needed to use manually mounting - which I assume needs root. But, the latest Atrix 4G automounts. But, I have a Atrix 2 with the latest firmware... and no automounting. Any ideas?
Thanks
Click to expand...
Click to collapse
i am using atrix 2 i did it and its automatically mounding the flash drive and mouse ,i don't have a usb keyboard so i didnt tried that, but flash drive is mounding automatic i am using stock ICS.
monichutti said:
i am using atrix 2 i did it and its automatically mounding the flash drive and mouse ,i don't have a usb keyboard so i didnt tried that, but flash drive is mounding automatic i am using stock ICS.
Click to expand...
Click to collapse
Yes. It auto-mounts for me too.
NHS2008 said:
That cable is right. but diagram is not.
Here see this...
Click to expand...
Click to collapse
oh i see..thanks for the clarification..i will try it as soon as i got the OTG & Y split cable..just now ordered!! :good:

USB OTG (On the go)

Galaxy R supports USB OTG (On the go). You just need a OTG cable.
You can also use a Nokia Usb OTG (On The Go) Cable.
You can get the Nokia Usb OTG Cable for less then 2 euro on Ebay and Amazon.
The Samsung Usb OTG Cable costs much more.
The Nokia Usb OTG Cable just has one disadvantage, it has a "micro usb type A" connector.
The Samsung connector is "micro usb type B" .
But the difference between "micro usb type A" and "micro usb type B" is just that type A is not rounded, type B is rounded.
So you have to "round" the Nokia type A with a File tool http://en.wikipedia.org/wiki/File_(tool), transforming it into a type B.
It works, I have done it.
legion1911 said:
galaxy r supports usb otg (on the go). You just need a otg cable.
You can also use a nokia usb otg (on the go) cable.
You can get the nokia usb otg cable for less then 2 euro on ebay and amazon.
The samsung usb otg cable costs much more.
The nokia usb otg cable just has one disadvantage, it has a "micro usb type a" connector.
The samsung connector is "micro usb type b" .
But the difference between "micro usb type a" and "micro usb type b" is just that type a is not rounded, type b is rounded.
So you have to "round" the nokia type a with a file tool http://en.wikipedia.org/wiki/file_(tool), transforming it into a type b.
It works, i have done it.
Click to expand...
Click to collapse
now we gona rock with galaxy r
~~~
I've done it too, next day after got my SGR. It works with mouse (just "laser", not "optical") and usb-flash (FAT, not NTFS). external keyboard works only with the English keyboard layout and other input languages ​​are not available
polomalkin said:
external keyboard works only with the English keyboard layout and other input languages ​​are not available
Click to expand...
Click to collapse
I've got Acer tablet with full-size USB and input language can be switched by Shift+space there. If this doesn't work for you, look for other software keyboard that supports hardware keyboards (sounds weird, but yes, SW keyboard needs to support HW keyboards).
ё
SW keyboard needs to support HW keyboards
Click to expand...
Click to collapse
yep. It is like using usb-keyboard with WM device. I tried many free/kracked keyboards from Market - no results for now.
Great stuff! How about MHL (HDMI adapter) support? Does it support?
~~~
I saw the cable which is compatible with models:
Samsung Galaxy S II i9100
HTC Sensation G14
HTC EVO 3D
HTC Flyer
Samsung Note
Samsung i9103
but some users said, that there is no image on TV, just sound.
can i just buy an otg cable for samsung galaxy s2 and instead use it for galaxy r???
will the otg cable for s2 work/compatible for R i9103???
thanks!!!
http://www.ebay.in/itm/Micro-B-USB-Host-OTG-Cable-Samsung-Galaxy-S2-SII-/320739400862#ht_5176wt_802
http://www.ebay.in/itm/NEW-SAMSUNG-...tDomain_203&hash=item2a17b23ae3#ht_1869wt_932
will this work for the galaxy r i9103?
sorry for being annoying
but i need to get a working otg cable asap.
thanks!!!
http://www.ebay.in/itm/260878476628#ht_6288wt_915
can i connect this USB PORT HUB with the OTG CABLE to my galaxy R.
m a bit confused on how would the USB PORT HUB get the required power?
would it draw it from the phones battery or i need an external supply?
thankss!!!
grv2, you'll need an external power for hub.
thanks buddy
can u suggest me a working usb hub with external power....
cos all m getting is usb hubs for laptops which obtains its power from the laptop alone....
thank u very much....
anybody tried MHL adapter that comes for SGSII in our SGR....??
ofabhishek said:
anybody tried MHL adapter that comes for SGSII in our SGR....??
Click to expand...
Click to collapse
MHL is NOT working, there are already several posts about it.
I use the original Samsung Galaxy S2 USB-OTG-Cable, and it's very fast
grv2 said:
...ebay...
can i connect this USB PORT HUB with the OTG CABLE to my galaxy R.
m a bit confused on how would the USB PORT HUB get the required power?
would it draw it from the phones battery or i need an external supply?
thankss!!!
Click to expand...
Click to collapse
You can connect everything that doesn't need too much power:
Camera, USB-sticks and even other Phones are working perfectly
For HDDs you would need extra power supply via USB-Hub with external power supply or even a USB-charger should do the job (but I haven't tested it yet!). You could connect the 2nd power only USB connector (which is shipped with many USB-HDDs on an Y-cable) to the powered hub or the charger. e.g i've won a portable USB-Charger from HP at VMWorld, i have to try to power an HDD with it - thank you for reminding me with our question !
grv2 said:
thanks buddy
can u suggest me a working usb hub with external power....
cos all m getting is usb hubs for laptops which obtains its power from the laptop alone....
thank u very much....
Click to expand...
Click to collapse
Just search for "USB-hub external power" or "self-powered" , gets me several results from Amazon
Like:
DIGITUS USB2.0 Hub 4-port 4xUSB A/F 1xUSB mini self powered
Sitecom CN-060 USB 2.0 Hub 4 Port
you r great!!!!!!!
it really helped
thank you very much....
---------- Post added at 10:52 AM ---------- Previous post was at 10:35 AM ----------
can this fone deliver enough power to the self powered usb hub to work???
i really doubt that....
thanks!!!
Self-powered means it needs no power from the main hub, but has all the power itself (from its own power supply).
There would hardly be any use for other hubs ;-)
Sent from my GT-I9103 using XDA App, typed with Messagease
samsung galaxy r
Does samsung galaxy r supports the otg cables
if yes then give me their links
yes it does ,I have got my usb on the go cable from market for only 200 rs in pune and everything works like a charm
pendrive
mouse
keyboard
card reader
Sent from my GT-I9103 using XDA App
Where to buy OTG in Pune, India?
NEO-xx said:
yes it does ,I have got my usb on the go cable from market for only 200 rs in pune and everything works like a charm
pendrive
mouse
keyboard
card reader
Sent from my GT-I9103 using XDA App
Click to expand...
Click to collapse
I am from Pune too. Can you tell where you got the OTG cable from?
NEO-xx said:
yes it does ,I have got my usb on the go cable from market for only 200 rs in pune and everything works like a charm
pendrive
mouse
keyboard
card reader
Sent from my GT-I9103 using XDA App
Click to expand...
Click to collapse
Dude can you confirm once again ?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Keyboard ?
Mouse ?
Card Reader ?
Do all of these work without any issues & have you used them ?
I am asking cause I had read somewhere that only pen drives are working on R . . .

[GUIDE]How to make otg cable with external power connector

HOW TO MAKE USB OTG CABLE WITH AN EXTERNAL USB POWER SUPPLY for those who cannot find such a cable in their country(like me)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need a kernel with USB OTG support. SebastianFM's kernel, here
The Micro Usb connector has 5 pins inside. In standard data cables that comes with the phone, only 4 pins are used. When the unused pin is connected, the cable becomes an OTG cable.
Pin 1 : VCC pin, +5V Power supply, COLOR : RED
Pin 2 : D-, Data- Signal line, COLOR : WHITE
Pin 3 : D+, Data+ Signal line, COLOR : GREEN
Pin 4 : This is the pin which is not used in standard data cables, we will "SHORT" it to pin 5 to make an OTG CABLE
Pin 5 : GND, Ground Supply
These colors are UNIVERSAL in USB connectors, this means the red is always VCC, black is GND and the other two always perform the same action, unless somebody deliberately connects the colors to different pins
Warning : I'M NOT RESPONSIBLE FOR ANY DAMAGE ON ANYTHING. (YOUR PHONE, DATA CABLE, USB CONNECTOR, HOUSE, FERRARI ETC.) IF YOU AVOID ANY SHORT CIRCUITS, AND COMPLETE ALL THE STEPS AS I EXPLAIN THERE WILL BE NO PROBLEM. AND THIS TUTORIAL SUPPOSES YOUR PHONE AS AN HTC PYRAMID
IF YOU ALREADY HAVE AN OTG CABLE, YOU DON'T HAVE MUCH TO DO.. YOU GO TO 2
1 ) THOSE WHO DON'T EVEN HAVE AN OTG CABLE START HERE -THESE STEPS REQUIRE EXPERIENCE ON SOLDERING
What you need:
1)A "MICRO USB B" head. (Can be obtained from an old charger, data cable)
2)USB A Male to USB A Female Connector : These Connectors
3)USB Cable (A short one is enough)
4)A sharp knife,etc.
5)Soldering Kit
6)Hot Glue
7)Tape
8)Some experience on soldering
STEP 1 - The first thing yo need to do is to SLICE two sides of the plastic cover of the micro USB connector, and clean the glue under it. You will need the plastic cover later!
HAVE A LOOK AT THIS VIDEO TO UNDERSTAND CLEARLY
STEP 2 - Once you reach the pins under the glue, you can get your soldering iron now to start soldering.
Matching cable Colors and Pin NUMBERS AGAIN : 1-RED, 2-WHITE, 3-GREEN, 4-NO CABLE, 5-BLACK
STEP 3 - If you did soldering (or cables are already soldered to pins--if you're using a data cable) now you need to SHORT CIRCUIT the EMPTY PIN (PIN 4) and PIN 5 (Black Cable). You can use a very short piece of cable to do this. NOW YOU HAVE A "MICRO USB B" CONNECTOR WITH OTG SUPPORT.
STEP 4 - After you completed the soldering, and IF you are sure you made no mistakes, apply HOT GLUE. Wait for it to get cold and hard, then cover it with the plastics you sliced before. You can use cheap quick glues to do that. How the connector looks after all depends on your creativity and ability
STEP 5 - Cut the cable of the USB A MALE to USB A FEMALE connector at 20-25 cm from the female connector. Now you can connect USB Female A connector, Micro USB B connector, and USB Male A connector
STEP 6 - First connect the matching colored wires of USB FEMALE A connector and Micro USB B Connector (red to red-white to white-green to green-black to black). Now you've a working OTG cable, but without an external power connector.
STEP 7 - To connect the "USB A MALE" connector,which will be the external power to the OTG, you only need to connect red and black colored wires of it (the +5V and GND wires) to the matching colors of the other two cables you connected before ("MICRO USB B" and "USB A FEMALE"--The OTG CABLE you've made). If you connect white and green wires of "USB A MALE" connector, YOUR CABLE WILL NOT FUNCTION. DO NOT CONNECT WHITE AND GREEN WIRES OF MALE USB A CONNECTOR.
You can use soldering iron to strenghten the connection between wires. Or you can just use tape. It's up to you. Just be sure that there's no possibility of short circuits.
You need to use tape for each color of wires to prevent short circuits.
AGAIN : Be sure that you've made all the steps carefully and correctly, and avoided any short circuits before using your cable. The only short circuit should be the pin 4 and pin 5 of MICRO USB A connector
AND YES IT'S DONE, YOU CAN USE YOUR CABLE NOW
2 ) THOSE WHO HAVE USB OTG CABLE AND JUST WANT TO CONNECT AN EXTRA USB POWER CONNECTOR--START HERE
You need :
1)MALE USB A CONNECTOR with 100-120 cm cable -- lenght depends on you, should not be much longer than 2 meters(standard usb connectors) (U can get it from any data cables, old USB mouse cables, controller-joystick cables.. Just cut the cable at 100-120cm from the connector)
2)Your OTG Cable
3)A Sharp Knife etc.
4)Tape
5)Soldering kit (optional--if you want to strenghten the connections of wires)
STEP 1 ) Cut the USB OTG cable in the middle.
STEP 2 ) You only need red and black colored wires of "MALE USB A" connector, which are +5V and GND.
STEP 3 ) Connect the matching colors of your OTG cable again, but this time also connect the "MALE USB A" connector's red and black wires to the matching colors. WHITE and GREEN wires of this connector should not be connected. Otherwise the cable WILL NOT FUNCTION.
You need to use tape for each color of wires to prevent short circuits.
BE SURE THAT THERE'S NO POSSIBILITY OF SHORT CIRCUITS AND YOU'VE MADE NOTHING WRONG
You can also connect SHIELD WIRES of each cable to each other. But i'm not sure what actually it does. If you test it, please post your experiences.
What is Shield Wire:
The USB cables actually also have "SHIELD WIRE". My 2.5" external LG HDD does not work with the cables without shield wire, but many products should work. Shield wire is the one silver colored wire surrounding the other four colored cables and aluminium foil. It is connected to the outer silver colored parts of the connectors. I'll update this post after testing if shield wire needs to be connected,too. For now i use my cable without it, but my hdd does not work. All others (usb mouse, usb flash drives, joystick, hub, my sony e443 Walkman , PS3 Dualshock 3 Controller etc.) work. I don't know if the reason why my hdd does not work is that wire. Will test it by monday and upgrade my post.
My own made cable is attached below, not perfect, but good, working fine
Thanks to SebastianFM
Man this works great ! Thumbs up
Sent from my HTC Sensation XE with Beats Audio Z715e using xda app-developers app
can use y cable and usb on the go cable together
connect otg cable to data part of male y cable
y cable: http://www.ebay.com/itm/New-USB-2-0..._USB_Cables_Hubs_Adapters&hash=item4d035494df
otg: http://www.ebay.com/itm/OTG-Host-Ex...921338?pt=PDA_Accessories&hash=item3f1af0b17a
Thanks!!
Hey i wanted to make my own DIY cable similar to yours. Similar cuz i will be using this on my allwinner based TABLET. it has native OTG support but the original cable is lost. i was looking for pinouts but this guide was better. :good::good::good::good: anyhow my main worry is :-
WE ARE USING EXTERNAL POWER SUPPLY WITH THIS HACK. IT WORKS FOR SURE NO DOUBT BUT, IS THERE A CHANCE THAT IT MIGHT DAMAGE THE TABLET . (current running back to the tablet ? tho i doubt it cuz my tablet can be charged with this same port also, still wanna be sure .. :silly: ) ??
PS: - USING HTC ORIGINAL USB CHARGER AS EXTERNAL POWER SUPPLY ( 5V & 1AMP) i only use external supply with hdd only. :angel::angel:
rest thumbs up !!! great work !! :good::good::good::victory:
---------- Post added at 07:50 PM ---------- Previous post was at 07:47 PM ----------
badai said:
can use y cable and usb on the go cable together
connect otg cable to data part of male y cable
y cable: http://www.ebay.com/itm/New-USB-2-0..._USB_Cables_Hubs_Adapters&hash=item4d035494df
otg: http://www.ebay.com/itm/OTG-Host-Ex...921338?pt=PDA_Accessories&hash=item3f1af0b17a
Click to expand...
Click to collapse
yes this combination works perfectly :laugh:
but i guess for all "DIY" ppl (like me) this is better .... he he ... :cyclops:
badai said:
can use y cable and usb on the go cable together
connect otg cable to data part of male y cable
y cable: http://www.ebay.com/itm/New-USB-2-0..._USB_Cables_Hubs_Adapters&hash=item4d035494df
otg: http://www.ebay.com/itm/OTG-Host-Ex...921338?pt=PDA_Accessories&hash=item3f1af0b17a
Click to expand...
Click to collapse
I couldnot find 2 males to one female usb cable (Y cable) in my country.. This is of course a better choice with no soldering, no tape, just connectors
mechexpert said:
Hey i wanted to make my own DIY cable similar to yours. Similar cuz i will be using this on my allwinner based TABLET. it has native OTG support but the original cable is lost. i was looking for pinouts but this guide was better. :good::good::good::good: anyhow my main worry is :-
WE ARE USING EXTERNAL POWER SUPPLY WITH THIS HACK. IT WORKS FOR SURE NO DOUBT BUT, IS THERE A CHANCE THAT IT MIGHT DAMAGE THE TABLET . (current running back to the tablet ? tho i doubt it cuz my tablet can be charged with this same port also, still wanna be sure .. :silly: ) ??
PS: - USING HTC ORIGINAL USB CHARGER AS EXTERNAL POWER SUPPLY ( 5V & 1AMP) i only use external supply with hdd only. :angel::angel:
rest thumbs up !!! great work !! :good::good::good::victory:
---------- Post added at 07:50 PM ---------- Previous post was at 07:47 PM ----------
yes this combination works perfectly :laugh:
but i guess for all "DIY" ppl (like me) this is better .... he he ... :cyclops:
Click to expand...
Click to collapse
If you avoid ANY short circuits, there's no possibility of damaging your product :good:
....................
confused
Sir, I have done exactly what's in the guide for having an otg cable and attaching a usb male for external power. But I am facing a little problem and that is when I connect power to usb male first, but without attaching to my Tab, and I connect my pen drive first, it doesn't get powers as the led doesn't blink. But it does blink only at the moment I insert the pen drive into the female usb. Now I did a different thing, I connected micro usb port to my Tab, then my pen drive and then the power male usb cable, it works fine. But I am getting confused that is my pen drive getting power from that attached usb male.
sauravdante said:
Sir, I have done exactly what's in the guide for having an otg cable and attaching a usb male for external power. But I am facing a little problem and that is when I connect power to usb male first, but without attaching to my Tab, and I connect my pen drive first, it doesn't get powers as the led doesn't blink. But it does blink only at the moment I insert the pen drive into the female usb. Now I did a different thing, I connected micro usb port to my Tab, then my pen drive and then the power male usb cable, it works fine. But I am getting confused that is my pen drive getting power from that attached usb male.
Click to expand...
Click to collapse
I sometimes face the same problem when i want to use my external HDD device. But its not a problem at all. I think usb male power has some difficulties on supplying enough power to both phone and HDD. It works by connecting HDD first, then USB male to power, and then phone. This order may change according to your charger, device, and phone
Sent from my HTC Sensation Z710e using xda app-developers app
i dont know what happened to this. i just did exactly all the steps.... then i first tried it on my HTC one s with a USB 16GB and now my USB doesnt work.... i even connected the USB to see if i still works on my computer and now its dead... ti doent even light up.....
romny19 said:
i dont know what happened to this. i just did exactly all the steps.... then i first tried it on my HTC one s with a USB 16GB and now my USB doesnt work.... i even connected the USB to see if i still works on my computer and now its dead... ti doent even light up.....
Click to expand...
Click to collapse
You may have damaged it? You sure you connected all the wires correctly? Because all these colors are universal and there shouldn't be any problem once everything properly done.
Sent from my HTC Sensation Z710e using xda app-developers app
Question.. on another thread someone mentioned using a 100k ohm resistor between pins 4 and 5 for "charging" while using OTG mode. Any particular reason why you didn't include this? reading your comments it appears like its not required but just curious.
Magoogle said:
Question.. on another thread someone mentioned using a 100k ohm resistor between pins 4 and 5 for "charging" while using OTG mode. Any particular reason why you didn't include this? reading your comments it appears like its not required but just curious.
Click to expand...
Click to collapse
Some newer phones (like s3) do not charge while using a Y cable. For ex. the controller is connected to Y cable and it works with the phone, but the phone is not charged although the power is also connected to the Y cable. This is annoying because playing games consumes battery ver quickly I (am not sure but) think the reason for including a 100ohm resistor is to enable charging and host mode at the same time on such phones. On Sensation there's no need for it because this cable just works perfect for Sensation. Charges and hosts at the same time.
Sent from my HTC Sensation Z710e using xda app-developers app
Great info and instructions, now the only answer to the burning question I have is.......
..... Has anyone... Anyone! at all! managed to make a OTG Cable with a USB power plug, using the correct 'resistor' value while still using the phones stock 'unrooted' JB 4.1.2 rom, and stock 'kernal' not patched in anyway for the Samsung Galaxy Note 2.
Although there are products on eBay said to do this job, and have been reported to work by others, the sellers that offer these adapters are all based in China, and will not trade/sell to Europe at all.
If anyone has a solution around this problem, sharing there knowledge would be great.
Regards
Hey guys
Is it possible to use a USB HUB and connect to phone via otg cable and use mouse and keyboard and charge the phone simultaneously?
Is not dangerous for phone?
Guide me please
Sent from my HTC One X using Tapatalk 2
Thank you for this i made one for my galaxy s3 but just the otg part was alittle worried about having power wire on there.
http://www.ebay.in/itm/Nokia-OTG-CA...?pt=IN_Mobile_Accessories&hash=item2c6a772a16
http://www.ebay.in/itm/New-USB-2-0-...7?pt=LH_DefaultDomain_203&hash=item256a8d30a5
http://www.ebay.in/itm/USB-2-0-Fema...8?pt=LH_DefaultDomain_203&hash=item1c2e292b28
Will This combination work's???..
I worried , coz for power supply we needs only black and red wire connected to otg , but here all 4 wire connected to otg
Sent from my HTC Sensation Z710e using xda app-developers app
I followed the instructions(and even this video http://www.youtube.com/watch?v=Nc7tlPwFQpg ) but could not get the touchpad to work with a usb mouse, no cursor, even though the LED on the optical mouse lit up (showing there is power).
i tried a pen drive also but when I opened ES file manager,could not see anything called MOUNT DRIVE in favourites...where else should I look for usb drive?
I need to get the mouse working first.
I am running CM9 nightly of 2nd DEC 2012 on my HP Touchpad(which is USB OTG ENABLED)
Thanks for the guide and easy to follow pics OP. Just one question though, is there a way to test the cable before trying it on my own device? Or do i have to just test each end separately one by one with a multimeter?
arses said:
Hey guys
Is it possible to use a USB HUB and connect to phone via otg cable and use mouse and keyboard and charge the phone simultaneously?
Is not dangerous for phone?
Guide me please
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
There will be no problem at all, i use it, connect flash drive, hard drive, mouse and a joystick at the same time
Itsakash said:
http://www.ebay.in/itm/Nokia-OTG-CA...?pt=IN_Mobile_Accessories&hash=item2c6a772a16
http://www.ebay.in/itm/New-USB-2-0-...7?pt=LH_DefaultDomain_203&hash=item256a8d30a5
http://www.ebay.in/itm/USB-2-0-Fema...8?pt=LH_DefaultDomain_203&hash=item1c2e292b28
Will This combination work's???..
I worried , coz for power supply we needs only black and red wire connected to otg , but here all 4 wire connected to otg
Sent from my HTC Sensation Z710e using xda app-developers app
Click to expand...
Click to collapse
Nokia OTG cables are not Micro B connectors but Micro A. So The OTG cable for N8 will not fit into our sensation or other android phones. You can see the difference between Micro A and Micro B here :
chinna_rao said:
I followed the instructions(and even this video http://www.youtube.com/watch?v=Nc7tlPwFQpg ) but could not get the touchpad to work with a usb mouse, no cursor, even though the LED on the optical mouse lit up (showing there is power).
i tried a pen drive also but when I opened ES file manager,could not see anything called MOUNT DRIVE in favourites...where else should I look for usb drive?
I need to get the mouse working first.
I am running CM9 nightly of 2nd DEC 2012 on my HP Touchpad(which is USB OTG ENABLED)
Click to expand...
Click to collapse
U can use Chainfire's StickMount app free on playstore to see if your flashdrive is connected. If it shows no drives connected then check your connections, optionally using a multimeter. Check the 4th pin is shorted to 5th one.
NewbCentral said:
Thanks for the guide and easy to follow pics OP. Just one question though, is there a way to test the cable before trying it on my own device? Or do i have to just test each end separately one by one with a multimeter?
Click to expand...
Click to collapse
If you have a multimeter it will be good to test of course. If you're sure that u coonected all wires without any wrong short circuits there will be no problem, no damage for the phone

Surface Pro - More USB ports

Hey guys, I just got my Surface Pro yesterday to replace my old HP Pavilion laptop which was really slow and has its fair share of problems. The one gripe I have with the Surface Pro is its lack of ports.
I want to be able to plug in a mouse and at least on USB drive but a singular USB 3.0 port just isn't going to cut it. So my question is, does anyone have an idea or know of anything that will allow me to plug in both a mouse and a usb stick? Any help would be greatly appreciated.
p.s I am aware of the docking station but its price point is a bit ridiculous. I just want a cheap alternative that won't detract from the design too much as there is a case but it's added size is very unreasonable.
The device you are looking for is incredibly common and so common that you can walk into walmart and have a whole selection of them available. USB Hub. Surprised you havent come across one before.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Depending on the number of ports and whether it is mains or bus powered they can be pretty cheap.
SixSixSevenSeven said:
The device you are looking for is incredibly common and so common that you can walk into walmart and have a whole selection of them available. USB Hub. Surprised you havent come across one before.
Depending on the number of ports and whether it is mains or bus powered they can be pretty cheap.
Click to expand...
Click to collapse
Thanks heaps for the reply. I was actually thinking of these but I wasn't sure if they would work correctly. I'm not very familiar with USB 3.0 and what it can and can't do. I just need a USB hub that has a USB 3.0 upstream and at least 2 USB 2.0 downstreams so I can still plug in my mouse and hardrive and all those other things that have a USB 2.0 upstream. I was looking at these in particular and was wondering if they were 4 USB 3.0 ports or if it was a 3.0 male connector and 4 USB 2.0 female connectors.
http://www.ebay.com.au/itm/4-Port-U...Laptop_Accessories&hash=item4ac5d3e8e3&_uhb=1
http://www.ebay.com.au/itm/m-Speed-...Laptop_Accessories&hash=item51b73b7190&_uhb=1
Any help would be greatly appreciated. If you are able to link me to a cheap one then that would be awesome
Both of the devices you linked claim to be USB3.0 downstream, so would indeed convert 1 USB3.0 slot on the surface to 4 USB3.0 slots, in theory anyway.
Of course in reality, you are sharing 1 ports bandwidth among 4, but for a mouse and a memory stick this is not a problem at all. I've run mouse, keyboard, xbox 360 controller and an external hard drive from a USB2.0 hub without issue, you get the massively faster USB3.0
SixSixSevenSeven said:
Both of the devices you linked claim to be USB3.0 downstream, so would indeed convert 1 USB3.0 slot on the surface to 4 USB3.0 slots, in theory anyway.
Of course in reality, you are sharing 1 ports bandwidth among 4, but for a mouse and a memory stick this is not a problem at all. I've run mouse, keyboard, xbox 360 controller and an external hard drive from a USB2.0 hub without issue, you get the massively faster USB3.0
Click to expand...
Click to collapse
Thanks heaps for that. I just realised that I can plug in a USB 2.0 into the 3.0 port. Sorry for sounding like an idiot but it's just my first device with a 3.0 port.
So now I guess my only question would be whether or not having a switch on each port would make a difference vs no switch?
boss. said:
So now I guess my only question would be whether or not having a switch on each port would make a difference vs no switch?
Click to expand...
Click to collapse
not particularly, if it is a hub with switched ports you could save some battery but alot of hubs are autoswitching anyway and the difference isnt significant.
I use a bluetooth mouse with my surface pro. It connects directly to the bluetooth in the Surface, without anything plugged into the usb port. I find this very convenient and it leaves the usb port open for whatever else. I use the Microsoft bluetooth mouse 5000.
Sent from my GT-N5110 using Tapatalk
I have a USB3 hub, a inateck round hub, makes for easy plugging in various items and is powered, so not using battery up. Jim
Thanks heaps for the responses guys.
I was thinking of using one of the powered ones or the ones with switches so extra battery consumption is kept to a minimum. I have a bluetooth gaming mouse that i'm going to use but will end up getting a USB hub just so I can still have a memory stick plugged in if I need it.
I find that *in most cases* the load on the tablet battery is fairly low and doesnt warrant the extra fuss of a powered USB hub versus a bus powered hub. However, if you do decide to go with a self powered one, find that uses a usb style connector instead of a proprietary power connector. Then you can just use a regular usb cable to power the hub off of the surface's usb charging port on the power cord "brick". That eliminates the need to carry two power supplies with you.
Sent from my GT-N5110 using Tapatalk
The main advantage of a powered (vs. host-powered) hub isn't the battery life impact, but rather the limit on how much energy the host port can provide. Things like keyboards take almost nothing. Things like mice take a bit, but not too much. Things like external HDDs take a lot. Things like charging a phone or other device may take all the power the port can provide. Using a powered hub lets you connect several such devices (for example, your phone and your hard disk, in addition to your mouse and keyboard) without worrying that there won't be enough power for them.
Agreed. Its a question of amperage. Anything I connect to my Surface Pro has minimal power draw, such as a card reader or usb drive. If Im going to charge my phone (which draqs 2amps) I just connect it to handy chargung port on the AC adapter. All my other accessories (mouse and gps antenna) are bluetooth so they are not part of the equation. Im not debating anything above, but just offering the OP that you should consider your power needs and then you can decide if you need a powered hub or not.
Sent from my SM-N900V using Tapatalk
Officially you can draw 1.2A from a usb3 socket, reality is that you probably won't from my the surface. Mouse, keyboard and thumbdrive combined should be under 0.1A, 0.2 at the most. Not a massive impact on battery so I wouldn't be concerned.

OTG Cable max length?

Hi
What is the maximum length can an OTG cable have?
if I make an OTG cable with a length of 1-2 meters, will it work? ,
the load is just a flash drive .
Thank you.
The length of the cable which you can create is only limited by your resources and by the ability for the electricity to go through it. Therefore, you could make a 2 mile otg cable if you knew how. So to answer your question, if you can make one yea it will work.
Thulfiqar92 said:
Hi
What is the maximum length can an OTG cable have?
if I make an OTG cable with a length of 1-2 meters, will it work? ,
the load is just a flash drive .
Thank you.
Click to expand...
Click to collapse
There already exists a wonderful awesome cable - check this out http://www.amazon.com/Aukey-6-6Ft-P...&redirect=true&ref_=oh_aui_detailpage_o00_s00
Matthew M. said:
The length of the cable which you can create is only limited by your resources and by the ability for the electricity to go through it. Therefore, you could make a 2 mile otg cable if you knew how. So to answer your question, if you can make one yea it will work.
Click to expand...
Click to collapse
today I made an OTG Cable (1 meter ), I attached it to my LG G3 but it was not recognized by the phone, I used the multimeter to check if there was any voltage coming out of the Red and black wires but there was 0 voltage?
is there something I should do in the Software of the G3 to enable OTG cables ?
Thulfiqar92 said:
today I made an OTG Cable (1 meter ), I attached it to my LG G3 but it was not recognized by the phone, I used the multimeter to check if there was any voltage coming out of the Red and black wires but there was 0 voltage?
is there something I should do in the Software of the G3 to enable OTG cables ?
Click to expand...
Click to collapse
No clue, this is a gs4 forum. The most likely problem if there was no voltage would be something wrong with the wires.
Sent from my SCH-I545 using XDA-Developers mobile app
Matthew M. said:
No clue, this is a gs4 forum. The most likely problem if there was no voltage would be something wrong with the wires.
Sent from my SCH-I545 using XDA-Developers mobile app
Click to expand...
Click to collapse
ok, So in your Galaxy S4 the OTG function is enabled out of the box (Plug n play) ?
yes, it is.
I think... I don't remember how stock is now LOL
Thulfiqar92 said:
ok, So in your Galaxy S4 the OTG function is enabled out of the box (Plug n play) ?
Click to expand...
Click to collapse
Yes, using the stock sammy ROM it worked with no extra software or messing about (probably with other roms too).
However, in the sammy rom UMS (usb storage when connected to PC) didn't work how I wanted it to, so I migrated to a CM rom where UMS will work.
However with CM, usb OTG needed a little "help", and I had to use chainfires Stickmount app to re-enable it, but having to option to use both (albeit with an enabler-app) is better than only one or the other.
Please i ve an OTG cable ba my s4 verizon hyperdrive ROM does nt recognize it. Pls help me awt
Joshsel said:
Please i ve an OTG cable ba my s4 verizon hyperdrive ROM does nt recognize it. Pls help me awt
Click to expand...
Click to collapse
I'm not familiar with the Verizon variant, but a quick search brought me to the XDA thread for Hyperdrive KK RLS21, and apparently it's pre-rooted, yes?
That being the case, I would try using either Stickmount, by Chainfire, or perhaps USB OTG Helper.
(I note one reviewer of USB OTG helper actually states that it only worked for him when he used both apps in conjunction, but doesn't state his specs so we can't make any real judgements there)
As root-only apps, when you try them, be sure that you grant them superuser permissions (you should also see a little notification of this after every reboot also).
Finally, be careful careful careful about letting the OTG cable disconnect, or fall out of the USB port of your phone... The device will see this as it being disconnected without unmounting, and it does not like this, not one little bit...
I've had a right hell of a time getting OTG to work on my device lately, so I don't speak from technical knowledge, only end-user experience, but once you get it working, be really careful to go into storage settings, and manually "unmount USB storage" every time you want to remove the OTG cable.
Hope some of this helps dude...
Thanks everyone, I got it to work, the 2 meter cable was faulty , The max length I managed to get is 1 meter, I didn't try any longer cables
Is there a limit to how many USB devices can be used at once?
For example: If I used a USB hub, would two controllers and a thumb drive all be recognized and work all at the same time?
Tommy807 said:
Is there a limit to how many USB devices can be used at once?
For example: If I used a USB hub, would two controllers and a thumb drive all be recognized and work all at the same time?
Click to expand...
Click to collapse
In theory it *should* work, I've seen examples of it being used like that before but I'm fairly positive it would need to be a powered hub...?
I have a cheap, non-powered 4-way USB hub, when I get home from work tonight I'll try it out with multiple USB devices and let you know.
This forum discussion seems to indicate using multiple USB devices could work, assuming your ROM supports OTG...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Pic of multiple devices being used at once - different Sammy phone but proof of concept
Game Controllers? I'm guessing you're thinking about storing games on the pen-drive and then using the controllers on your phone to make a gaming device?
I'd be very - very - interested to hear how you fair with that!
I know that some games, like San Andreas support joypads on android right out of the box, whereas others might want you to use a joypad/controller app such as USB/BT Joystick Center Gold (sorry, can't find a link to that right now).
As i said, I'd love to hear how you get on as it's something that interests me also - promise to come back & report what you find?
My purpose was to run two XBox 360 controllers via the USB hub via the OTG cable along with the thumb drive for a console game emulator. One might ask why not just try it, but I'm lacking some components currently.
Tommy807 said:
My purpose was to run two XBox 360 controllers via the USB hub via the OTG cable along with the thumb drive for a console game emulator. One might ask why not just try it, but I'm lacking some components currently.
Click to expand...
Click to collapse
Ok, that's annoying!
So I tried my device (rooted S4 i9505 using CM12.1, running Chainfire's Stickmount app to get OTG working).
Used my un-powered USB hub, with both a 32gb USB pend drive, and a microsoft USB mouse at the same time.
Each device (mouse and drive) works fine when directly connected via OTG.
However, hook them both up via the USB hub, and no dice.
If both devices are attached to the phone using the un-powered USB hub, then only the mouse is recognised - the USB pen drive is not recognised. Stickmount detects zero active mounts.
In addition, I had some strange behaviour from the phone when both devices are hooked up..
Loooong boot times, Novalauncher not wanting to draw to the screen, and to top it off, the phone no longer recognises my SD Card...
I don't actually have a powered USB hub to test with, so I can't really go any further for you on that score right now Tommy.
My initial "suspicion" is that you'll need a powered hub if more than one device is going to be used at a time.
I do happen to have two PS2 joypads, plus a joypad-to-USB adapter (so I can play emulator games on my PC)...
.... so later tonight I'll try hooking up 2x Jopypads>Adapter>OTG Cable>Phone & see if they can be detected.
BigJim.T32 said:
no dice
Click to expand...
Click to collapse
Thanks for taking the time.
@BigJim.T32
By the way, you seem to think power is the issue, I doubt it. If anything, the phone battery would die quickly, but devices should be recognized. More than one device should be recognized. In fact, the phone is lost and doesn't know what to do with all things connected (as you've said). That sounds like OTG limitations to me. OTG was never designed to run so many things at once is my guess.
OTG functionality was probably just a nice afterthought feature to allow one small connection. Anyway, what do I know? I'm just guessing based on your tests and statements. That doesn't mean that's the way it's going to always be, but that's probably the way it's going to always be with the GS4.
Tommy807 said:
@BigJim.T32
By the way, you seem to think power is the issue, I doubt it. If anything, the phone battery would die quickly, but devices should be recognized. More than one device should be recognized. In fact, the phone is lost and doesn't know what to do with all things connected (as you've said). That sounds like OTG limitations to me. OTG was never designed to run so many things at once is my guess.
Click to expand...
Click to collapse
I would have imagined you're correct; And you seem to hit the nail on the head with your analysis - when both devices were connected to the phone via OTG, the mouse took priority, over both the regular SD Card and the mounted USB pen drive, leaving the phone unable to detect either of the two storage options. Came as a surprise when I connected both deices to the phone, checked CM's file manager and couldn't even see my micro SD card in the list, even after a reboot...
The reason I initially suspected that a powered USB hub would be the next place to try (and I hasten to add it's only a suspicion, I have no experimental experience to go on) is only because I've seen photos of other, older Sammy phones simultaneously using both a mouse and USB drive connected via OTG on other sites/forums... And I figured, if they can do it, we *should* be able to do it too! :laugh:
Sorry, I've not had chance to test with my cheap-ass playstation 2 joypad adapter yet (been at the GF's all weekend - boo!) but I promise I'll test it soon as I can and report back here; hell, I want to know for my own benefit too.
Thulfiqar92 said:
Hi
What is the maximum length can an OTG cable have?
if I make an OTG cable with a length of 1-2 meters, will it work? ,
the load is just a flash drive .
Thank you.
Click to expand...
Click to collapse
Maximum length of USB 2.0 cable:
USB 2.0 Connectors (Plugs)
The 2.0 specification limits the length of a cable between USB 2.0 devices (Full Speed or Hi-Speed) to 5 meters (or about 16 feet and 5 inches). In other words, you cannot just connect a bunch of extension cables together (like taking a 6 foot cord and extending it with 4 other 6 foot extension cords) and run them 30 feet to another room. However, you can connect a 6 foot cable with a 10 foot extension cable for a total of 16 feet, which is below the maximum cable length for USB 2.0.
Back to Top
Maximum length of USB 3.0 / USB 3.1 cable:
USB 3.0 Connectors (Plugs)
The 3.0/3.1 specification does not specify a maximum cable length between USB 3.0/3.1 devices (SuperSpeed or SuperSpeed+), but there is a recommended length of 3 meters (or about 9 feet and 10 inches). However, the biggest limitation to the length of the cable is the quality of the cable. Results may vary, but with a high quality cable you should be able to go beyond 3 meters. However, to ensure you achieve the best results possible, use an active cable when going more than 10 feet (3 meters).
I got this from some website - Google is your friend! :good:

Categories

Resources