[Q] OTG with external power/USB hub - Galaxy S III Q&A, Help & Troubleshooting

I'm looking to be able to use my external HDD (1TB WD passport) on my phone via OTG. As I understand, ntfs support varies with kernels etc but I'll cross that bridge when I come to it as I think there's a more fundamental problem.
I've got an OTG cable, and my mouse, usb pen drive, keyboard etc work with it. The HDD doesn't, because the phone can't provide enough power to operate the thing. I thought I could get around this by connecting it via my usb hub (which runs off external mains power) but when I connected this up to the phone and plugged the HDD in nothing happened. Likewise, the mouse and pen drive etc could also not be recognised by the phone when they were each plugged in via the hub (one at a time, I wasn't trying to run 8 things at once!) even though they worked perfectly when the phone itself was powering them when they were directly plugged into the OTG cable (if that makes any sense).
So, assuming it was a problem with the hub, I instead tried the method in this thread http://forum.xda-developers.com/showthread.php?t=1828032 and made my own y type cable so that now rather than the phone providing power to the OTG peripheral, the power now comes from a standard USB phone charger. I'm fairly confident that I did all the soldering correctly and there weren't any short circuits.
When I tried using this, I had the same issue as with the hub. None of the mouse, the pen drive etc could be recognised with the modified OTG cable, which was odd as physically nothing had changed from the point of view of the peripheral plugged into the OTG (the data cables connecting it to the phone were unchanged, and it was still getting 5V power, just from the wall rather than my phone) which makes me think perhaps the problem is a software one where the phone only recognises a USB peripheral/begins USB host mode if the peripheral is actually draining power, since the power leads running from the phone side of the OTG cable are now just an open circuit.
Just to confirm I hadn't just snipped a data cable by accident when modifying the OTG cable, I re-soldered the OTG cable to how it originally was and it worked the same way it had previously. This means all the data cables are still intact, so I think it must be a software issue.
I thought maybe a way of testing this would be to modify the y cable and connect the red and black power cables coming out of the phone to each other via a fairly hefty resistor (so you still get power flowing from the phone even though the USB peripheral is powered by the wall). But it seems a bit dangerous!
Has anyone else had trouble with this? I've read around on forums and for a lot of people USB hubs and y type OTG cables seem to "just work", although I've not seen anyone with an i9300 reporting success. I'm running the latest version of liquidsmooth, but have also tested on CM10.1 and have the same problem. It might be an AOSP thing that stock samsung firmware will fix?
Let me know your experiences!
TLDR: I'm pretty sure I've got a software issue where my i9300 only recognises a USB peripheral/begins USB host mode via OTG if the peripheral is actually draining the phone's power, and so doesn't work when a USB hub or externally powered (y type) OTG cable is being used.
Thank you!

It apparently only supports 500GB regardless of power source
Sent from my GT-I9300 using Tapatalk 2

rootSU said:
It apparently only supports 500GB regardless of power source
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Really? That's odd - is that an android limitation or samsung? Either way it still seems weird that my y cable/hub didn't work for the mouse/keyboard, is that something you'd expect?

Sorry I didn't read that part.
I have a portable passive hub. Kb and mouse working fine...
Sent from my GT-I9300 using Tapatalk 2

Related

Touchpad USB OTG Compatibility List

Thanks to a recent video by reverendkjr on Youtube, we now have a confirmed USB OTG method for CM9.
http://www.youtube.com/watch?v=Nc7tlPwFQpg
This has lots of potential and since I did not see much talk about it here, I decided to create a thread with what you need to buy listed in reverendkjr's video and what works. I would recommend only buying from Amazon Fulfilled sellers as they are backed by Amazon's return policy. All 3 items only cost a little over $10.
OTG Cable:
http://www.amazon.com/gp/product/B005QX7KYU
USB Y Cable:
http://www.amazon.com/gp/product/B0041CFFBM
2AA Battery Powered Portable USB Power Supply:
http://www.amazon.com/gp/product/B003M9Z5F6
(Added September 7th)
OTG Cable With Female MicroUSB (Allows you to use any microUSB charger as the power supply)
http://www.ebay.com/itm/130740524313?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649
OTG Cable With Male Full Size USB (Allows you to use any power supply with regular USB port)
http://www.ebay.com/itm/Micro-USB-H...i9100-S3-i9300-i9220-i9250-XOOM-/140825132367
You can use whatever source of USB power you want including a wall charger, but I bought the 2AA battery powered supply above and can confirm it works.
Compatibility List:
-Multiple USB devices will work if you use a USB hub. A non-powered one works fine for me since you will already have a separate power source.
-USB keyboards and mice work fine including all basic functions like scroll wheel on the mouse, num and caps lock on the keyboard.
-FAT32 formatted flash drives will mount by default under "/mnt/usbdisk".
(Added September 7th)
-If you want to mount NTFS drives or multiple flash drives, download Drive Mount. This software will mount drives under "/mnt/sda1", "/mnt/sdb1", etc. I can confirm it works for multiple drives and NTFS/FAT32. It was removed from Google Play so the apk has been posted. If anybody has had success with other NTFS mounting software please post your results.
(Added April 6th)
-I tried a Rosewill USB SATA/IDE externally powered hard drive reader and was able to mount a 400GB SATA 3.5" HDD using Drive Mount. Just to see what would happen I tried a SATA DVD drive but Android doesn't recognize it and probably doesn't even support the CD/DVD file system.
(Added April 7th)
-USB card readers will work, but I've had mixed results.
USB Device Info:
If you want to diagnose items and see some info about what the Touchpad is detecting, download USB Device Info free from Google Play. Everything shows up under the Linux tab. This shows some useful info about devices including current draw, device identification, etc. I tested it with a USB hub and a few flash drives and it successfully showed entries for the hub and the flash drives. It wont tell you if Android has drivers for the device, but merely IDs the device(s) confirming the connection if working.
(Added Dec 9th)
A plugged in USB OTG adapter will show up as "Qualcomm On-Chip EHCI Host Controller" under the Linux tab regardless of whether or not power is present. This is a good way to see if you have a working OTG adapter.
Flash Drive Unmounting Issues:
Flash drives are called an SD Card when mounted. There is no option to unmount a flash drive unless you use Drive Mount, so if you notice SD card removal error messages they are referring to your flash drive and not the Touchpad's internal memory partition that is mounted as /sdcard.
When a flash drive is removed or powered off without being unmounted, its common to get a "android.process.media" force close, just tap OK.
Charging:
You will not be able to charge via micro USB while using OTG even if your power source has enough current. You can charge via the Touchstone just fine. Knowing this, you can set up a really nice docking station by using the Touchstone as a stand/charger and then using the microUSB slot for peripherals like a USB keyboard and mouse connected to a hub with spare ports for flash drives, etc.
(Added September 7th)
Insufficient Available Bus Power Fix:
If you get this error, I haven't yet, some users have had success using this app posted on Rootzwiki.
I didn't feel like buying anything and already had some things laying around so I modified an Adafruit MintyBoost to accept a device via usb, add power, and continue on down the line...
Really all I did was solder a usb cable onto the female USB port on the MintyBoost, drill a hole on the other side of the tin and feed it out. The card reader conveniently fits inside of the mint tin so it's a pretty compact package.
The only down side I've noticed is that it also charges the TouchPad (the batteries will die quicker) and continues to send power to the card reader after the OTG cable has been unplugged from the TouchPad.
Excuse the crappy pic. I really don't feel like taking a better one.
I could never get the OTG cable to charge the Touchpad, I always thought when the Touchpad sensed OTG (grounding on pin 4) it refused to take power. You can disconnect the +5v Vcc to the Touchpad (red wire) on your OTG cable and OTG devices will still work.
spunker88 said:
I could never get the OTG cable to charge the Touchpad, I always thought when the Touchpad sensed OTG (grounding on pin 4) it refused to take power. You can disconnect the +5v Vcc to the Touchpad (red wire) on your OTG cable and OTG devices will still work.
Click to expand...
Click to collapse
I came to the same conclusion some days ago ,touch pad can't be charged using org cable,needs a regular micro USB cable and the barrel AC charger.I did many tests but having otg devices working and really charge at the same time its not possible,it seems like charging but its not.
Today I accidentally found this http://direct.sanwa.co.jp/ItemPage/400-GADR002W that by first look it could be awesome...
Edit:a mini review in english http://www.gadget.pdamu.com/2012/03...r-dock-station-for-android-smartphone-tablet/
says that it can be also powered be micro usb charger....
Bummer. Tried linking my phone evo3d, but no luck.
Sent from my PG86100 using XDA
wolfgr said:
Today I accidentally found this http://direct.sanwa.co.jp/ItemPage/400-GADR002W that by first look it could be awesome...
Edit:a mini review in english http://www.gadget.pdamu.com/2012/03...r-dock-station-for-android-smartphone-tablet/
says that it can be also powered be micro usb charger....
Click to expand...
Click to collapse
If its provides its own 5v power it would likely work, but I don't really see anywhere for an external power connection and it looks too small to house a battery.
spunker88 said:
You can disconnect the +5v Vcc to the Touchpad (red wire) on your OTG cable and OTG devices will still work.
Click to expand...
Click to collapse
For whatever reason, when I tried that the card reader wouldn't initialize. Once I connected the +5v from the OTG it'd light right up...
After it lit up I could disconnect the +5v and it'd stop the "charging" notification on the touchpad and keep working.
spunker88 said:
If its provides its own 5v power it would likely work, but I don't really see anywhere for an external power connection and it looks too small to house a battery.
Click to expand...
Click to collapse
it has the regular usb port to connect otg device plus a micro usb female to connect. our ac charger
wolfgr said:
it has the regular usb port to connect otg device plus a micro usb female to connect. our ac charger
Click to expand...
Click to collapse
Then it should work fine as the Touchpad uses a standard OTG pinout, it just doesn't provide power so if it has a way to provide power to devices than I see no reason why it wouldn't work.
quick question that i didn't see answered above :S can i use the otg cable adapter without another power source (like can touchpad power it?)? Saw it asked above but didn't see anyone saying that the power source is required :S
kind of want to plug a usb flash drive into touchpad so I can type documents when I'm on the go and switch to computer. don't want to carry another power source either :S
eyeb said:
quick question that i didn't see answered above :S can i use the otg cable adapter without another power source (like can touchpad power it?)? Saw it asked above but didn't see anyone saying that the power source is required :S
kind of want to plug a usb flash drive into touchpad so I can type documents when I'm on the go and switch to computer. don't want to carry another power source either :S
Click to expand...
Click to collapse
No, the Touchpad doesn't provide any power for OTG devices which is why you need to supply it power. The cheap USB charger I linked to in the original post will work fine for a portable power supply if you don't want to build something yourself.
And it also appears you can't just plug the other USB into the wall?
Sent from my PG86100 using XDA
can someone get a group buy going for these???
spunker88 said:
If its provides its own 5v power it would likely work, but I don't really see anywhere for an external power connection and it looks too small to house a battery.
Click to expand...
Click to collapse
This would be fantastic... but i dont speak Japanese!!
mrtomaso said:
And it also appears you can't just plug the other USB into the wall?
Sent from my PG86100 using XDA
Click to expand...
Click to collapse
So, we can't just plug it into a wall for power? I have to buy a battery powered unit or use a powered hub?
Sent from my cm_tenderloin using XDA
Nice and cheap and the best part it works.
USB Hub works...sort of.
I tried this with a cheap USB hub I bought. I had bought it for my laptop and made sure it had it's own power supply to keep the load off my laptop, so I thought it would be perfect for this. Nice try though.
Turns out it needs 5V from the host to activate as well as the additional external power supply. Just fired it up with my TouchPad connected via a Y-Cable and my Laptop providing the 5V to fire it up. Works like a charm.
As yet to find out if it works with my travel charger providing the 5V and no external power supply plugged in, and how many devices I can hook up. It's got 7 ports so I suppose the supply might be useful then, but do I really need to hook up that many devices? Otherwise...pointless. Back to the drawing board I go.
wolfgr said:
Today I accidentally found this http://direct.sanwa.co.jp/ItemPage/400-GADR002W that by first look it could be awesome...
Edit:a mini review in english http://www.gadget.pdamu.com/2012/03...r-dock-station-for-android-smartphone-tablet/
says that it can be also powered be micro usb charger....
Click to expand...
Click to collapse
This would be really handy and it's a much more elegant solution than a y cable and external power source.
Too bad it seems like we won't be able to get one easily.
Am i missing something here or can i use my 3.5" external HDD (with a power supply) to provide power to my External so i dont have to plug the cable into a USB hub?
mafu6 said:
Am i missing something here or can i use my 3.5" external HDD (with a power supply) to provide power to my External so i dont have to plug the cable into a USB hub?
Click to expand...
Click to collapse
You should, I did this on my Touchpad running CM7. Haven't tried since going to CM9.
Sent from my Nexus S using xda premium

Flash drive on USB hub not working.

Hi there.
I got my Galaxy S3 about 3 days ago and love almost everything about it.
I've been experimenting heavily with USB OTG, and it's such a great feature to have. I have got a Mouse, keyboard and USB flash drive all working over the USB OTG cable. I can also get the Mouse and Keyboard connected at the same time over a USB hub. However, USB flash drives refuse to work over a hub on USB OTG, even though they work directly from the phone to the USB. This is pretty confusing to me, considering two higher power devices work over the hub.
I've tried two different varieties of hub, both giving the same result and have also tried two flash drives. I'm using an un-powered hub and I honestly don't see how just because I'm using a hub the USB Flash drive isn't working. There is no way that it can have a higher power usage than a mouse/keyboard at the same time.
Just to note, I'm using the hub unpowered externally, it's going directly into the phone. I can't seem to find the power cable to try.
I have the UK (GSM) variant of the phone in blue and am running on the Stock 4.0.4 ICS firmware (i9300XXLF2) and haven't tried to root or anything.
Could someone suggest what might be the issue I'm having, or some things to try?
Thanks

Flash drive on USB Hub

Hi there.
I got my Galaxy S3 about 3 days ago and love almost everything about it.
I've been experimenting heavily with USB OTG, and it's such a great feature to have. I have got a Mouse, keyboard and USB flash drive all working over the USB OTG cable. I can also get the Mouse and Keyboard connected at the same time over a USB hub. However, USB flash drives refuse to work over a hub on USB OTG, even though they work directly from the phone to the USB. This is pretty confusing to me, considering two higher power devices work over the hub.
I've tried two different varieties of hub, both giving the same result and have also tried two flash drives. I'm using an un-powered hub and I honestly don't see how just because I'm using a hub the USB Flash drive isn't working. There is no way that it can have a higher power usage than a mouse/keyboard at the same time.
Just to note, I'm using the hub unpowered externally, it's going directly into the phone. I can't seem to find the power cable to try.
I have the UK (GSM) variant of the phone in blue and am running on the Stock 4.0.4 ICS firmware (i9300XXLF2) and haven't tried to root or anything.
Could someone suggest what might be the issue I'm having, or some things to try?
Thanks
Its a common IT issue that not everything works through a USB hub. Or even US extension cables.
rootSU said:
Its a common IT issue that not everything works through a USB hub. Or even US extension cables.
Click to expand...
Click to collapse
It works through it regularly through a PC.
Both USB sticks. And I've seen a video of someone doing it on youtube. I've also tried both FAT32 and NTFS with the same result.
Can you explain your exact set up please?
rootSU said:
Can you explain your exact set up please?
Click to expand...
Click to collapse
Samsung galaxy S3 connected to a small unpowered USB 2.0 hub, via a standard USB OTG cable. Connected to the USB hub is a single USB flash drive of which I have tried a 16GB (14GB actual) stick formatted in FAT32 and a 128mb stick in FAT32. When I connect the OTG cable, it's recognised by the phone. I then attach the USB hub and nothing is recognised, but it is infact working. I can confirm that because I've tried both a mouse and keyboard separately and at the same time through the hub. I have tried another hub with the same result. I then unplug those and put in the flash drive, the red light on the flash drive flashes for a bit and then dies, nothing is picked up by the phone.
Is the hub connected to a PC or not?
Are you saying:
Flash > Hub > PC it works
Flash > hub > Galaxy it does not?
Dont forget a PC USB kicks out 500mA of power which is about the minimum a flash drive would need. If the PC is not supplying the power to the USB via the Hub, I doubt the galaxy could supply that much.
Can you power the hub using the PC?
Yes, that's what I'm saying.
The hub works with the galaxy, but USB through the hub does not. I can connect a Keyboard and Mouse (Both with lots of lights on them) at the same time to the hub on the galaxy which SURELY takes more power than a single USB.
Everything works through the hub on the pc, and most things work through the hub on the galaxy but not flash drives.
So:
Keyboard + Mouse > Hub > Galaxy it works
Flash Drive > Hub > Galaxy doesn't work.
That's why I'm so confused. And power is going to the flash drive, the light turns on and flashes for a while, but is not picked up by the galaxy. The usb flash drive also works under normal circumstances directly through the OTG cable.
Human input devices take next to no power. A USB flash drive needs More. I believe this is your issue as previously mentioned
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Is the hub connected to a PC or not?
Are you saying:
Flash > Hub > PC it works
Flash > hub > Galaxy it does not?
Dont forget a PC USB kicks out 500mA of power which is about the minimum a flash drive would need. If the PC is not supplying the power to the USB via the Hub, I doubt the galaxy could supply that much.
Can you power the hub using the PC?
Click to expand...
Click to collapse
rootSU said:
Human input devices take next to no power. A USB flash drive needs More. I believe this is your issue as previously mentioned
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Seriously?
How come I can't just use one USB on the hub then... I'm only plugging one device into the hub, surely that should just be extending it? Or does it constantly try to power all of the ports? Is there any way I can debug the USB port on the galaxy? Or even limit power to just 2 out of 4 ports?
EDIT: I just read that a micro usb port is generally rated for 500mA+, which explains why the usb works normally, is it just the fact that all of the ports are powered?
MicroUsb is rated for 0.5A, that's correct.
However Usb-to-go is not rated for any output power, only for a list of compatible devices.
It may or may not work with other normal Usb-Devices, and could even be damaged if the slave device uses too much power.
(Unlikely with highend-devices such as the S3)
LED's take next to no power, the keyboard too.
Modern (=optical) mice got some electronic but it's not really high either.
Usb-Hubs however take quita a bit of power and flash drives do so too (especially when erasing "overwriting" blocks).
You could try a powerd usb hub , there might even exist some with a battery pack.
If not, it shouldn't be too hard to strap a battery pack to a hub, however that makes it heavier, clunkier and requires charging...
d4fseeker said:
MicroUsb is rated for 0.5A, that's correct.
However Usb-to-go is not rated for any output power, only for a list of compatible devices.
It may or may not work with other normal Usb-Devices, and could even be damaged if the slave device uses too much power.
(Unlikely with highend-devices such as the S3)
LED's take next to no power, the keyboard too.
Modern (=optical) mice got some electronic but it's not really high either.
Usb-Hubs however take quita a bit of power and flash drives do so too (especially when erasing "overwriting" blocks).
You could try a powerd usb hub , there might even exist some with a battery pack.
If not, it shouldn't be too hard to strap a battery pack to a hub, however that makes it heavier, clunkier and requires charging...
Click to expand...
Click to collapse
Okay, that makes sense then.
The hub is tiny and that's the idea, if I could get a tiny battery that'd okay, just irritating really. To be honest, I could do with just two ports, it is just that I sometimes want to use my flash drive in conjunction with another device or something and it's yet another inconvenience to buy another hub.
I may buy a charging pack for my phone, because honestly the battery life is abysmal, do you reckon that I could hook that battery pack up to the hub? Although I don't see that working because the hub in question has a dedicated power input.
Is there a set up you think might work? The idea is to be able to connect some extra storage and keep it fairly compact so that I'm not lugging a load of extra crap around. The hub I'm planning to use is a tiny square, probably about 1.5inches large.
I love the idea of my phone being a mini computer, it really does do just about everything I want, that would make it even better.
EDIT: I've tried a 2 way female splitter, no success there either. I think what I'd really need is a bluetooth keyboard that I can connect to my phone, that also has a usb port I can connect a mouse to, so I can then plug in my stick and use a mouse+keyboard combo.

[Q] USB OTG works well with ICS, HOWEVER...

However, is there any way possible to charge your phone WHILE using the OTG adapter? They both use the 1 micro port on my phone, but I need to find a way to charge the phone while using the OTG adapter.....perhaps a micro USB splitter-type adapter?????
I was actually wondering about this myself, though I don't think a splitter-type cable would work. I'm wondering if the power connection is on separate pins than the data, though...if they don't share space then I'd think it would be possible in some fashion.
RowanOak said:
I was actually wondering about this myself, though I don't think a splitter-type cable would work. I'm wondering if the power connection is on separate pins than the data, though...if they don't share space then I'd think it would be possible in some fashion.
Click to expand...
Click to collapse
A similar problem is showing up regarding using the mhl port to output to hdmi. Though the original information indicated that the power cable was supposed to charge the phone it seems it does not on the first version (super DUMB).
I have read though that the newer version of the mhl port is 10 (I think) pins rather than the 5 of the original. The newer port DOES allow charging while output is in operation.
I suspect this will also allow an OTG cable that charges while in use.
I am not so sure about the mhl idea anymore. Only one port for everything is ok if it has enough pins/bandwidth to have a breakout box that would allow an external usb drive to be read while hdmi is being output to a screen and power is supplied to the phone. As it is now with only one-at-a-time it isn't very inspiring as the phones get closer to the power of laptops.
What would be really neat would be a box with wi-fi, and the output to hdmi and usb ports as well. A wireless breakout box. Then the charger could be over by the phone which is near the user.
hapary said:
However, is there any way possible to charge your phone WHILE using the OTG adapter? They both use the 1 micro port on my phone, but I need to find a way to charge the phone while using the OTG adapter.....perhaps a micro USB splitter-type adapter?????
Click to expand...
Click to collapse
I think this thread could solve your problem.
Oh... I found a useful diagram here.

[INFO] HP TP USB OTG Notes, Tips, & Tricks (4-28-14)

[INFO] HP TP USB OTG Notes, Tips, & Tricks ​
DISCLAIMER: I'm not a dev, nor do I play one on t.v. Use the information and links at your own risk. READ and UNDERSTAND what your doing before flashing is the best bet. I take no responsibility or credit for the information.
This is a work in progress... Still gathering my notes for the thread.
Major Credit to @ramjet73 for working with me on the Evo3d OTG Tips & Tricks thread and allowing me to reuse the info here:
-----------------------------------------------------------------------------------------------------------------------------------
Other XDA USB OTG related threads:
Spunker88's HP Touchpad USB OTG Compatibility List
Solar powered USB hub (kinda cool)
Nitty gritty OTG hardware discussion
Mpgrimm2's [MOD] Self Powered USB OTG on the HP Touchpad! (v2 Full Size)
ramjet73 said:
For kernels that have On-The-Go (OTG) USB host support built-in, it's very easy to support USB peripherals such as keyboards, mice, flash drives and portable hard drives from your phone regardless of the ROM installed. If you would like more information about OTG, here's a very good thread in the XDA Sensation forum that covers it pretty well.
The commands to mount and unmount USB storage devices manually are covered in that thread, but I've found the easiest way to mount and dismount my flash drive is to use an app called [root]StickMount from Chainfire, the developer of SuperSU. Depending on the ROM installed, it may not be considered compatible and won't show in the Play Store, let me know if that happens and I will post the apk.
If you are using OTG to attach any type of USB devices, please share your experiences and any tips you might have. Also, please use this thread for any questions you might have about OTG support and devices, even if you haven't gotten around to trying it yourself yet.
Click to expand...
Click to collapse
A couple of quick FYI's about using USB OTG with the Touchpad:
- USB OTG has been possible on the HP TP since CM9 (or earlier?)
- To enable OTG on any android device, Pin 4 (I.D. Pin) needs to be shorted to Pin 5 (DC Return) on the host device. This is the function of "OTG" cables. Note that I have purchased OTG cables that didn't work because Pins 4 & 5 were not shorted/manufactured correctly. On some devices with 3.x Kernels, it is possible to enable USB OTG via a sysfs command (not the TP yet).
- The HP Touchpad is not capable of supplying 5v power out the microUSB port for OTG functions so a standard OTG cable WILL NOT WORK. You must use either an OTG Cable with Isolated External Power Plug, an externally powered USB Hub, or a modified USB Charger/Cable.
- Even though external power is required for OTG, earlier support for USB OTG on the TP would only allow a device that draws/reports 100ma or less (ie USB mouse, small thumbdrives, etc) to be active when directly attached to the primary msm_otg port of the TP (Not Sure if this still applies). This limit can be "bypassed" for larger draw devices (ie portable hard drives) by using an externally powered USB Hub in between the TP's OTG Cable and the device. The hub's "Host" end will report 100ma or less to the TP and allow up to 480ma devices to be plugged into the hub. Good. (Credit to AndroidLover at RootzWiki for this info)
- It is possible to make your own USB OTG Cable with Power, or modify some USB Chargers for OTG functionality if you have some basic soldering skills and equipment.
- Most "dedicated" android USB Chargers have the "Data" pins sorted to tell an android device to use "AC Charging" ("fast charge") instead of "USB Charging". This "prevents data communication and only allows charging. Without a correctly "isolated" OTG Power Cable, OTG will not work with most chargers. Some chargers will either have shorted data pins (i.e. HTC), a low resistance across the pins (i.e. HP) or an "Open" (nothing) across the pins (i.e. aftermarket "Apple" chargers).
- Recommended minimum apps to use with USB OTG:
StickMount, USB Device Info, USB Host Diagnostics, ES File Explorer (or Similar)
Purchase Links for USB OTG items I Use with my TP
I just verified that if you get the Micro USB Host OTG Cable With USB power ($6 from AppleCable on Ebay) that Ramjet73 mentioned (or this one), it will work with any standard USB charger (ie the 1 Amp HTC or 2 Amp HP Touchpad Charger) because the USB Power Connector is Isolated. I also picked up Applecable's USB 2.0 3 Port Hub with data Sync Charger cable for $7
(I may try to modify it to be a USB OTG powered hub with this OTG Adapter and this USB to 3.5mm/1.3mm Adapter to power the hub directly from "ANY" USB charger.
EDIT: It works fine, but modified it anyway).
Here's some updated AppleCable Ebay Store links (4-18-14):
Micro USB Host OTG Cable With USB power
USB 2.0 3 Port Hub with data Sync Charger cable (not OTG, but a cheap hub that works. can be modified for OTG)
Micro USB Host OTG Cable w/micro USB power
Left Angled Micro USB Host OTG Cable w/USB power
Right Angled Micro USB Host OTG Cable w/USB power
USB OTG Cable Schematics. HP TP Needs Cable 2 or Cable 3​
If you are able and want to make your own OTG cable, use the schematic for cable 2 (or cable 3) as needed for the TP.
Here are some pictures of an earlier version I made (Cable 4, not recommended) as an example.
Markmx6's HTC USB Charger/Powered OTG Cable Mod Part 1 of 2 : (Reposted here with permission)​
Markmx6; said:
First off, I am not responsible for you screwing up your phone, shorting your house out, frying your SD card, burning down your home, or anything else that may or may not occur from you building this...
Tools you will need: Razor blade, Soldering iron, Solder, Super glue.
Optional tools: Dremel with cut-off wheel.
{
"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"
}
I started with components I imagine you will all have, since they came with the phone. The HTC charging cable and outlet adapter.
First, cut around the base of the outlet adapter. This is around 3/16" thick, and the cut is better off to be made on the "shiny" plastic than the "dull" portion. I used a Dremel, but any type of blade will do, it just may take more time.
Make a cut along the white line on the board (Shown in red here) Otherwise this will not work. On typical chargers they short out the Data+ and the Data- connections (mpg2 edit: it forces "AC Charging" mode). Not sure why... Digging a razor blade across this several times should do the trick, but if you want to make sure with a continuity tester that will always give piece of mind.
Now you need to cut your cable, I recommend leaving around 2" or more from the standard usb side. (A little of this wire will come in handy for later in this project)
Cut and then strip your wires, there will be a braided shielding wire just under the insulation. Then it will be helpful to "Tin" the ends of your wires.
The shielding can be completely removed, or you can ground it out, but I haven't found this to be needed.
You will now need to solder the wires to the circuit board. This will obviously need to be in the correct order.
From the top will be:
RED = 5V+
WHITE = Data +
GREEN = Data -
BLACK = 5V-
Now you can re-assemble the Outlet adapter if you choose.
Now you need to cut up the other (phone) end of your cable to enable the OTG function.
Post 2 will outline this.
Click to expand...
Click to collapse
Markmx6's HTC USB Charger/Powered OTG Cable Mod Part 2 of 2 : (Reposted here with permission)​
Markmx6; said:
Carefully cut down the sides of the connector, if you can do this in one clean cut it will be helpful when you re-attach then after your modifications.
Carefully cut away the plastic, and what looks like hot glue. You need to expose the side that has a blank terminal. and the one on the other side that has a black wire.
Pins 4 and 5 need to be attached, so a small piece of wire (from the leftover ends of the cable comes in handy) works really well.
It doesn't really show up in the pictures though
Now re-glue the pieces from the end of the cable back onto the connector
That is all.
For usb storage you need to have all of the cables hooked up before you insert the SD card.
Click to expand...
Click to collapse
Sent from my "Up all night, Sleep all day" EVO3D!
I got to looking around and wondering with the parts I have if I am setup for OTG and just need to plug everything together without hacking up a power supply which I'd prefer not to do.
Here's what I have on hand:
I ohmed out the " CrazyOnDigital 2 port charger's" data pins:
Port1-pin3 & port2-pin3 = 0.1 ohms (and about 30k to gnd/shld)
Port1-pin2 & port2-pin2 = 0.1 ohms (and about 30k to gnd/shld)
(I also reversed the leads in case I was reading through a diode)
So it looks like the data pins on this aren't shorted together and that it will function as a Powered USB "y" cable/pass through between ports 1 & 2.
Part 2
I realize that my purchased USB OTG cable won't plug in between the charger & my phone (Schematic #1) so I may use a USB extension Cable and USB A to A adapter that I have (not pictured) or I may just hack a spare USB A to Micro USB (5pin) cable that I have into another OTG Cable.
Q: My understanding is that an OTG cable has the ID pin (pin 4 of the 5pin Micro) tied to Gnd, like Markmx6 did in his original cable; correct? So, that's why the micro USB end gets cut open a bit.
A: Yes.
----------------------------------------------------------------
My Additional References:
Zoom [DIY] MicroUSB Host Cable
So in a normal micro/mini USB cable, there are 4 wires, 5 pins.
1. Red - V+
2. White - Data -
3. Green - Data +
4. Empty
5. Black - Ground
That micro male to mini female cable above has the 4th (5th?) wire, brown. This is the ID wire. Shorted to ground, it makes the cable a host cable.
Click to expand...
Click to collapse
Wikipedia's: USB On-The-Go page
The OTG cable has a micro-A plug on one side, and a micro-B plug on the other (it cannot have two plugs of the same type). OTG adds a fifth pin to the standard USB connector, called the ID-pin; the micro-A plug has the ID pin grounded, while the ID in the micro-B plug is floating. The device that has a micro-A plugged in becomes an OTG A-device, and the one that has micro-B plugged becomes a B-device. The type of the plug inserted is detected by the state of the pin ID .
Three additional ID pin states are defined[4] at the nominal resistance values of 124 kΩ, 68 kΩ, and 36.5 kΩ, with respect to the ground pin. These permit the device to work with a USB Accessory Charger Adapter which allows the OTG device to be attached to both a charger and another device simultaneously.[6]
These three states are used in the cases of:
- A charger and either no device or an A-device that is not asserting VBUS (not providing power) are attached. The OTG device is allowed to charge and initiate SRP but not connect.[6]
- A charger and an A-device that is asserting VBUS (is providing power) are attached. The OTG device is allowed to charge and connect but not initiate SRP.[6]
- A charger and a B-device are attached. The OTG device is allowed to charge and enter host mode.[6]
Click to expand...
Click to collapse
Micro-USB connector pinout
-----------------------------------------------------
Part3: SUCCESS! (with Otg Enabled kernel)
I went ahead and modified a spare USB A to Micro B cable for OTG without power. Plugged everything up with my Logitech Wireless USB mouse and it works! Cool as can be! See new pics. (Yellow wire is the Jumper).
Still have a few questions:
Q: Would the "purchased" OTG Cable already have pin 4 & 5 Shorted?
A: YES it should, but one of the cables I bought was defective.
Q: Does your OTG setup from the op charge the phone at the same time (and/or keep it charged)?
A: Yes (Not Likely on the HP TP)
Edit: Apparently I broke the +5v wire during reassembling the cable. See pictures.
My CrazyOnDigital 2 port charger doesn't have the data pins shorted (D+ and D-) like the stock HTC unit. This causes any "Android" device to charge at the lower 500ma Max "Charging USB" rate vs "AC Charging" (explains my slow charging when travelling), but a bonus is that it allows me to pass data b/w the 2 ports like a simple hub.
- If the D+ and D- pins are shorted when an OTG USB cable is plugged in, the phone will go into "AC Charging" mode, but not allow OTG devices to work, but if the phone is still connected and the data pins opened back up, you retain "AC Charging" mode and have USB OTG functions.
(I'm thinking that a simple on/off switch installed across the data pins of my charger will give me a dual mode charger).
---------------------------------------------------------
AC CHARGING / USB CHARGING (Data Pass Through) MOD 12-1-12​I am not responsible for you screwing up your device, shorting your house out, frying your SD card, burning down your home, or anything else that may or may not occur from you building this...
- I got tired of having a 2 port 2 Amp charger that only allowed 500ma "USB Charging" with Android & OTG. See pix:
Post 8 for me.
Originally Posted: 2/23/13
Q: Does anyone know for certain if it's possible on the touchpad to echo the OTG "mode" command (ie host vs none) ?
On the evo3d there is a sysfs command that can be "echoed" to enable OTG with any standard cable and I was able to get the Kernel Tuner dev to add a toggle in his app for it.
If I can find someone who knows & can verify the sysfs command for our CM touchpad's I can have him add it into the app easily (Apr2014 Edit: KT not currently in development).
Note: I haven't found it yet by digging around with EsFileExplorer and activating OTG with a cable.
Mpgrimm2 said:
Didn't know OTG could be activated (on the Evo3D) using a standard cable with a sysfs command like:
Code:
echo host > /sys/kernel/debug/msm_otg/mode
Options are "host" or "none" (maybe this command can get added to "kernel Tuner" app! ). Wonder if it's the same for the Touchpad.
Fyi, don't know how different it would be on each device (ie GS3 vs. Evo3d & HP Touchpad), but it looks like for the Touchpad on CM9 it's
Code:
/sys/kernel/debug/otg/mode
Click to expand...
Click to collapse
I realize some may say "why bother, just use an OTG cable", but if you look through my OTG mod thread, you will realize that it's one less wire to solder to a circuit board and will also allow any user to avoid buying the cable.
Note: I also posted this in my [MOD] Self Powered USB OTG on the HP Touchpad! (v2 Full Size) 11-30-12 thread.
Dorregaray said:
In kernels 2.6.39 and newer the sysfs entry is named msm_otg. We're using the 2.6.35 kernel where the entry is named otg. The available options are: none, peripheral and host.
It seems that the:
Code:
echo host > /sys/kernel/debug/otg/mode
command should work.
Click to expand...
Click to collapse
Mpgrimm2 said:
Thank you for the feedback.
Code:
/sys/kernel/debug/otg/mode
That's what I was thinking too, but I can't seem to see any change of state at that location when activating it with a shorted ID pin and the developer for Kernel Tuner indicated that he added the code for it which doesn't seem to work either.
When I check the mode file there isn't anything there (blank). I have also tried settings permissions for rwx-rwx-rwx and manually typing "host" and saving the file. It goes immediately back to a blank file.
Admittedly I'm an amateur and was trying to echo it with an /init.d script at one point (edited with EsFileExplorer), shouldn't that work? I will fiddle with it some more.
Click to expand...
Click to collapse
Dorregaray said:
First of all try to echo from a terminal app on running system and check if it works, check also the dmesg if there's no error there. If it will be working then you can add an entry to init.d script
Click to expand...
Click to collapse
Last one for me. Feel free to comment.
Trouble with OTG/Touchpad/DS4 controller
I hope someone can help me. I am trying to connect my Dual Shock 4 PS4 controller to my Touchpad via OTG, so I can use Remote Play for my games. I am rooted, using PAC MAN ROM 4.4.4RC-1. Through trial and error (and this forum), I discovered that a normal OTG cable will not work. So, I ordered and received my powered OTG cable in the mail from China (I found the link in this thread a couple of weeks ago). Unfortunately, the HP Touchpad still doesn't seem to recognize the DS4, so I want to make sure I am doing this correctly. Pictures of the cable are attached, along with my setup. The only thing missing from the pix is the connection of the male USB side of the cable to the iPhone wall charger (the cable is very short to get all in one picture). I lost the official Barrel charger 2 years ago, but the iPhone wall charger DOES charge my Touchpad when in Android mode, so not sure why it won't work for OTG connectivity.
1. I connect the DS4 to the micro-USB controller cable that came with the PS4.
2. I then connect the male USB side of that cable to the female USB of the powered OTG cable.
3. I then connect the micro-USB of the powered cable to the HP Touchpad.
4. I then connect the male USB side to the female iPhone wall charger (I lost the TP Barrel charger a couple of years ago).
And I get nothing. The DS4 seems to have no connectivity with the HP Touchpad using this method.
FYI: Again, I am rooted and running Pac Man Rom 4.4.4RC-1
The strange thing is that when I connect the Touchpad to the iPhone wall charger when it's on Android, it charges! So I don't understand why it's not working when connected to the DS4. Is the official Barrel charger the only one that will work? Do I need to install some app or software to get the DS4 to be recognized via OTG?
Any help you can provide would be greatly appreciated!
Thank you!
ConfusedTouchpad said:
I hope someone can help me. I am trying to connect my Dual Shock 4 PS4 controller to my Touchpad via OTG, so I can use Remote Play for my games. I am rooted, using PAC MAN ROM 4.4.4RC-1. Through trial and error (and this forum), I discovered that a normal OTG cable will not work. So, I ordered and received my powered OTG cable in the mail from China (I found the link in this thread a couple of weeks ago). Unfortunately, the HP Touchpad still doesn't seem to recognize the DS4, so I want to make sure I am doing this correctly. Pictures of the cable are attached, along with my setup. The only thing missing from the pix is the connection of the male USB side of the cable to the iPhone wall charger (the cable is very short to get all in one picture). I lost the official Barrel charger 2 years ago, but the iPhone wall charger DOES charge my Touchpad when in Android mode, so not sure why it won't work for OTG connectivity.
1. I connect the DS4 to the micro-USB controller cable that came with the PS4.
2. I then connect the male USB side of that cable to the female USB of the powered OTG cable.
3. I then connect the micro-USB of the powered cable to the HP Touchpad.
4. I then connect the male USB side to the female iPhone wall charger (I lost the TP Barrel charger a couple of years ago).
And I get nothing. The DS4 seems to have no connectivity with the HP Touchpad using this method.
FYI: Again, I am rooted and running Pac Man Rom 4.4.4RC-1
The strange thing is that when I connect the Touchpad to the iPhone wall charger when it's on Android, it charges! So I don't understand why it's not working when connected to the DS4. Is the official Barrel charger the only one that will work? Do I need to install some app or software to get the DS4 to be recognized via OTG?
Any help you can provide would be greatly appreciated!
Thank you!
Click to expand...
Click to collapse
I will hopefully touch base with you shortly. PM sent.
Small update. Spoke over the phone briefly and he was able to get USB OTG working with a USB mouse (had to unplug/replug OTG cable from TP to have it initialize each time) so it looks like he has the basics for a working OTG setup and an OTG enabled ROM.
Might be the version of ps4 controller he is using or the apk/driver that enables it to work.
Hopefully more to come. Anyone else try this setup before? Chime in.
He is on
[ROM][OFFICIAL][KitKat 4.4.4][TENDERLOIN] PAC-man KK RELEASE [WEEKLY]http://forum.xda-developers.com/showthread.php?t=2779954
[NEW][ALL][PORT][4.0+] PS4 Remote Play for Android (New Thread)
http://forum.xda-developers.com/showthread.php?t=3068225
Sent from my LG G4 on Tapatalk.
An confused update
ConfusedTouchpad said:
Hi ....just an update following my email earlier:
1. I went to a local PC Repair place and they let me use a 5.3V wall charger, to see if some added juice might be enough to get the DS4 recognized by the TP over the OTG cable. Unfortunately, nothing.
2. I went to Gamestop and they let me connect their DS4 to the Touchpad, to see if it would work (using the iPhone wall charger I brought along). Again, nothing.
3. I don't know how this happened, but at one point during the process, the Touchpad turned completely blue and would not respond to anything. I was able to reboot by holding the Vol button down, plus the other 2 buttons. Freaky.
Maybe this info + my earlier email might help you know what's going on? It doesn't seem like this is going to work for me, but you never know.
Thanks!
Click to expand...
Click to collapse
Sent from my LG G4 on Tapatalk.
Another thought on the matter,
Last time I dug into OTG TP setup, there was an issue with either the kernel or the msm chipset that prevented it from using any device directly connected to the OTG cable/port that was asking for more than 100ma or so (ie USB portable drives, CDROM's, etc). You would think this doesn't matter since we are providing power externally separate from the TP but it didn't know that.
The work around was to connect a powered USB hub between the touchpad and the device so that the Touchpad sees the low power Hub on its port, and the hub acts as the middle man supplying the full 500ma out to the device, ie the DualShock4 controller.
Got a powered USB hub handy?
See post 2 for a picture of my hub setup.
(I see I mentioned this in post 1 also)
If u want to see the details, you can get USB port and current draw info from the USB Device Info app or USB Host Diagnostics app linked at the bottom of post 1
Sent from my LG G4 on Tapatalk.
Mr. Grimm....as always, thanks for the info. Other than your responses, it's pretty much crickets in here, eh? (Think everyone else abandoned this thread a long time ago).
I am a little confused about your post below. I did see posts #1 and #2, where it was stated that regular OTG cables wouldn't work for the TP, that you need a powered USB one. That's why I bought and tried a powered cable....in fact, there was a link to it in post #2: "Micro USB Host OTG Cable With USB power".
So if I understand your post below correctly, you're now saying I need something ADDITIONAL (power or an additional cable) on top of the one I just purchased? I'm not sure I understand....I thought I had done what I was supposed to. I connected the USB male part of the cable to the iPhone charger, and also a 5.3V wall charger I tried at a PC Repair store and neither would work. The only thing I've gotten to work, occasionally, is the USB mouse connected to the cable. DS4 not working.
Any help would be appreciated....thanks!
mpgrimm2 said:
Another thought on the matter,
Last time I dug into OTG TP setup, there was an issue with either the kernel or the msm chipset that prevented it from using any device directly connected to the OTG cable/port that was asking for more than 100ma or so (ie USB portable drives, CDROM's, etc). You would think this doesn't matter since we are providing power externally separate from the TP but it didn't know that.
The work around was to connect a powered USB hub between the touchpad and the device so that the Touchpad sees the low power Hub on its port, and the hub acts as the middle man supplying the full 500ma out to the device, ie the DualShock4 controller.
Got a powered USB hub handy?
See post 2 for a picture of my hub setup.
(I see I mentioned this in post 1 also)
If u want to see the details, you can get USB port and current draw info from the USB Device Info app or USB Host Diagnostics app linked at the bottom of post 1
Sent from my LG G4 on Tapatalk.
Click to expand...
Click to collapse
You MAY need the hub if the Ps4 controller indicates it needs more than 100ma on the USB port. Perhaps you can pick one up at Walmart and return it later if it doesn't work.
- Yeah, I don't think many people actually use or have tried OTG with their Touchpad. So there may not be a lot of traffic here.
Most of my OTG info actually originated from my Evo3D threads because it had the same chipset and processor as the Touchpad.
Sent from my LG G4 on Tapatalk.
Thanks. Is 100ma more than the stock TP barrel charger provides? Maybe I should just order one of those off Ebay, if that will provide the power needed, since I need one anyway after losing it. Is the USB hub more powerful than the barrel charger?
Also, adding all these things makes for a really clunky setup and sadly reduces the convenience of OTG connection. I guess I will have to decide if it's worth it.
mpgrimm2 said:
You MAY need the hub if the Ps4 controller indicates it needs more than 100ma on the USB port. Perhaps you can pick one up at Walmart and return it later if it doesn't work.
- Yeah, I don't think many people actually use or have tried OTG with their Touchpad. So there may not be a lot of traffic here.
Most of my OTG info actually originated from my Evo3D threads because it had the same chipset and processor as the Touchpad.
Sent from my LG G4 on Tapatalk.
Click to expand...
Click to collapse
ConfusedTouchpad said:
Thanks. Is 100ma more than the stock TP barrel charger provides? Maybe I should just order one of those off Ebay, if that will provide the power needed, since I need one anyway after losing it. Is the USB hub more powerful than the barrel charger?
Also, adding all these things makes for a really clunky setup and sadly reduces the convenience of OTG connection. I guess I will have to decide if it's worth it.
Click to expand...
Click to collapse
That is not exactly the issue, but you should be using a 2 Amp (2000ma) charger with your Touchpad. 1.8A may work fine though. (Stock is 2.0 or 2.1 Amp I believe)
Regardless of getting 'enough' actual power from a charger to the devices, here is the deal/conversation between the TP's chipset (Host device) and the DS4 controller's usb chipset...
DS4: knock knock. Hi, I'm a device that needs 480ma from your USB port, can you let me in.
TP: From behind the closed door... Sorry, only 100ma or less here.
DS4: But I have my own USB power. [email protected]#%
(TP lets hot little 30ma thumbdrive through, followed but 35ma mouse)
Later... Ds4 comes back with its cute little 75ma Hub friend...
Hub: knock knock. Hi, I'm a device that needs 75ma from your USB port, can you let me and my friends in?
TP: From behind the closed door... Uh, sure you all look like only 100ma or less.
Sent from my LG G4 on Tapatalk.
I don't know many people where I moved to recently but if I can get my hands on a ps4 controller, I can see how thing work on my setup.
Please install those 2 USB info apps I mentioned before, they will help identify what the TP sees on its port:
USB Device Info
USB Host Diagnostics
Sent from my LG G4 on Tapatalk.

Categories

Resources