USB Host Mode - Motorola Droid X2

I bought a 99c USB host adapter on eBay and got to testing out the functionality. I've confirmed that when provided with an external power source (A USB Y cable and my wall charger, in this case), all of the FAT32 formatted USB media I attached would mount. I tried my ext4 hard drive, however, and it would not mount, even when specifying -t ext4. This probably requires ext4 support in the kernel, which should be looked into along with kexec. I plan to pursue that once I have enough posts on my record to post in Development. I have yet to test other USB devices yet, but I do plan to.
Has anyone else tried this? If so, what were your results?
These results come from this software: CM9DX2 Alpha3 and https://play.google.com/store/apps/details?id=hu.sztupy.android.usbhostcontroller for the USB device enumeration.

Related

[Q] adapter miniusb to usb

hi:
i think i will try to get hptp from ebay.
i see that it doesnt have usb for flash drive..
assuming that if connected to a dongle, it will read/write to flash drives,
which adapter should i search for.. mini male (for tp) > usb (flashdrive)?
thanx
I have read a thread on the usb host mode for the TP (can't remember which of the 8 forums I am on) that the micro usb port WILL support host mode BUT you will need a "Y" cable to provide power at the same time. Do a search for "host mode " on the TP forums and check it out. I have not attempted it so far as I have not found the correct "Y" cable mentioned in the thread.
Sent from my Touchpad using Tapatalk
You can find infos here :
green said:
There is fully functional USB Host support, you don't even need to do any SW modification, everything is supported out of the box with one caveat, you need external power.
Support for keyboard, mice, harddrives and cameras is fully built in the default WebOS software.
I guess HP planned to sell their own USB attachments, iPad-style.
The only thing you need is USB OTG cable. Like this: http://www.ebay.com/itm/New-micro-U...781644?pt=PDA_Accessories&hash=item19c7d49acc
Basically just search for "USB OTG cable" on ebay, costs about $3. And USB Y-cable. The only two things you need are OTG microUSB cable and USB Y cable to provide external power.
I am still looking into possibility of self-powered usb host mode, with all the support HP built in for it it almost sounds like a given there must be a way to enable it one way or another. Unfortunately chipset documentation is almost nonexistent.
Click to expand...
Click to collapse
well i got hptp today..
the ebay link USB OTG cable for was great..
the y cable search was confusing:: i do not know which kind to look for plus.. i dont see how to use this thing.. how does it get power.. i spose the USB OTG cable plugs into one of the "y" but im lost really...
i appreciate all responses..
thanx
What i've bought:
OTG: http://www.ebay.com/itm/Micro-USB-O...070399?pt=PDA_Accessories&hash=item3f0e501abf
USB Female to Female: http://www.ebay.com/itm/280732594049?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
Y cable: http://www.ebay.com/itm/120626863147?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
External battery with USB: http://www.dealextreme.com/p/2400ma...a-cable-for-htc-desire-g5-samsung-i9000-57905
What i've got: unusable pile of crap. The whole system can power up a mouse or gamepad, or external HDD (which is need to be powered from wall socket in addition to TP) but it's much worse with anything else: 16gb flash stick - lights up, but not enough power to read data, USB card reader don't even lights up. And situation with powering from PC USB (instead of ext. battery) is the same.
Anyway, even if the whole system would work, i doubt that you would take all those cables with you wherever you go, so it's useless.
i watched the russian vid..
hassle w/ capital H
little to zero hope of this gonna ever work
thanx for replies

When running on Android, is it possible to connect a SD card reader via USB port?

When running on Android, is it possible to connect a
SD card reader via Touchpad's USB port?
(16GB or 32GB SDHC card containing music and video files)
THanks!
Unfortunately, couldn't get it to work myself.
I tried the same setup I use on my SGII, OTG usb cable + USB key.
It might work with a power source. The USB otg cable alone doesn't work. If you get a USB splitter cable, and plug the extra end into a power source it should work. But ... if you have a power source like a computer you can just plug the TouchPad and card reader both into the computer, and transfer the files that way.
The only way to make it work on the go would be with a battery powered USB power supply and have both the otg cable and the splitter ... not very convenient.
In a pinch I have used the otg cable on my phone, then transferred the file over Bluetooth to the TouchPad while in Android. Again, not very convenient, but it worked.
Sent from my Galaxy S II (i777)
this is setup that is cleanest that the other forum uses..
http://www.amazon.com/Solar-Powered-Battery-Charger-Adapter/dp/B006DVMW92
plus the otg cable..
no messy cable tangles..
besides solar charging, the TP's charger will charge hub
then mount it..
unmount when done..
As far as I know connecting a card reader needs the USB host mode and this is not available in Android 2 (http://developer.android.com/guide/topics/usb/host.html). Also the hardware has to be capable of that (maybe TP is). We have to wait until ICS is available on the touchpad.
I'd like to know if there can be more done w/ the TouchPad... i.e. more USB host support for other things (external hdd, controller etc)

USB for 2.5 hard disk NTFS

Hy,
Is there real that the Prime don't accept 2.5 hard disk on the USB port of the dock?
I still don't have the prime but I know some of these disks need more power than the defined on the USB standard, so if the usb connector doesn't give that extra power the disk won't work, though I don't know if it's a hardware or a software limitation (in that case a custom kernel could solve the problem).
i'll let you know when i get my dock, but iirc it worked fine on my tf101...
Hi,
you are able to use 2,5" HDD in Fat and Fat32...
Try out NTFS now.
Edit: I'm able to use a 2,5" HDD in Fat32 and my 8GB USB Stick with NTFS. So I think it is also possible to use a 2,5" HDD with NTFS
I had no problems with my Western Digital.
My 1TB My Passport USB 3.0 formatted NTFS runs just fine off of the dock.
ok thanks i'm happy to see that the usb port of the dock is good working
for the 2.5 hard drive in ntfs, it's a good new !

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

[TIP] USB OTG: power usage and other stuff

I'm going for a long trip and unable to bring my laptop, so I need to do everything from my RAZR. I bought a USB OTG cable and a USB Y-cable thinking it would be the final solution.
The main problem with the card readers as some of the USB sticks is that they all want >100mA and RAZR reports being unable to supply that amperage. You can debug this using USB Host Controller and enabling the 'DMesg display mode'.
Simple permanent solution:
buy a cheap unpowered usb hub. Since weight and space are my main concerns I cannot travel with powered hubs.
Complicated temporary solution, requiring root:
Check the dmesg output from the above application or by doing a tail -f /var/log/dmesg in terminal and see what port is being reported as underpowered. Most of the time it will be this: "usb 3-1: rejected 1 configuration due to insufficient available usb power". Of course that's not true since the power is provided by an external brick capable of supplying at least 1 amp.
You have several ways of doing this, I'm using root explorer as an example. Go into /sys/bus/usb/devices/3-1/ , click on the bConfigurationValue file, select 'Text Editor' from the prompt, type "1" into the editor, save and exit.
You will have to do this every time you plug something in so you might make it into a script, something like "echo 1>/sys/bus/usb/devices/3-1/bConfigurationValue".
Other issues: I'm taking two cameras with me, a Canon SX230HS and a Nikon D7000. The problem with new cameras is that they have given up on the Mass Storage protocol and switched completely to PTP (Picture Transfer Protocol).
Simple solution: use an SD Card reader to transfer photos. Use USB OTG Helper to help you with mounting, it's a free one-click solution.
Complicated solution: for Canon I'm using RawDroid. For Nikon I'm using DslrDashboard.
If you can afford it, PhotoMate should also work.
Oh, this should go into the Accessory forum, or maybe not even on this forum, but I was able to ditch the camera chargers (two wall bricks + two chargers) by buying a PIXO C-USB charger. It's one of those universal LiPo chargers with spring contacts. You can plug it into a USB port or USB charger and you can charge 1 cell or 2-cell LiIon/LiPo packs or AA/AAA batteries.
I am still looking for an efficient 2xAA/AAA -> USB high current supply for complete portability, but I might just build one myself. The reason is that you will find batteries everywhere but less so publicly available power sockets.
Hmm, I think that for a cheap USB power, you could use one of those smartphone battery backup usb batteries. The problem I see with AA or AAA is that they are less efficient due the extra space they need because of the packaging of each battery, and the materials (NIMH vs Lithium)
Also, taken from this thread: http://forum.xda-developers.com/showthread.php?t=1349038
You need a powered hub in order for the RAZR to accept it, and I think this is a kernel issue, and cannot be modified just with root (Because of the locked bootloader).
I think that probably what you need, as you stated before, an external source of power, and probably something like this powered usb hub:
http://www.ebay.com/itm/Black-Samsu...o-USB-Host-OTG-HUB-CARD-READER-/160921077532?
It needs to be powered in order for it to work with our RAZR.
Have a look at the entire thread that I posted before, I think it could be helpful.
I am already on my long trip and the non powered usb hub worked perfectly. I already explained how you can 'fool' the kernel into thinking it has enough power, this is a non-issue. The thing with AA/AAA is not density but it is they are readily available in remote areas of the world where there is no power.
I already tested one AA/usb power supply I had for overload and magic smoke came out.
It worked for me. However it depends on how the hub and charger are connected. I had to connect the hub between the female plug of the otg-cable (a y-cable) and the usb stick and the charger to the male otg-cable plug. Connecting the charger directly to the hub didn't work.

Categories

Resources