yashsingh1/xdaforums huggingface dataset:
[Atrix 4G General] paravorheim:
You think this hub would work? I have around 9 dollars of DE credit, so I wanted to get the powered hub from there as well. There's no information on how much voltage the external power supplies though.

http://www.dealextreme.com/p/mini-usb-4-ports-hub-black-787
[Atrix 4G General] rozzco:
How do you bridge the power over without soldering? :confused:
[Atrix 4G General] zanzee:
I did solder.
[Atrix 4G General] rozzco:
To pin 1 correct? http://en.wikipedia.org/wiki/File:USB.svg
[Atrix 4G General] zanzee:
Correct. My hub uses a USB B input but one with USB mini or micro should work just the same. All that matters is +5vdc makes it up stream to.
[Atrix 4G General] tbm48813:
bad hub?

Maybe I got a bum hub. I have soldered the +5 from the power adapter terminal like in the video, to the power line of the usb hub's single "out" port. so then i plug in my atrix to that same port and the keyboard to one of the 4 "in" ports and I get nothing. seemed simple enough so maybe my usb hub is not compatible. I have usb debugging off, i have usb mounting set to none. if you do happen to notice anything i f'ed up please let me know. ill go hub shopping maybe tomorrow i guess.
[Atrix 4G General] zanzee:
Your also pluging the hub into a 5vdc source right?
[Atrix 4G General] tbm48813:
yes, its a powered hub that is plugged in. it is a http://www.newegg.com/Product/Product.aspx?Item=N82E16817107609 and ive tested my soldering and work with a multimeter.
[Atrix 4G General] zanzee:
Are you using a usb micro OTG adaptor, or just spliced the wires. Cause I think it needs a few pins on the usb micro side to be crossed. I haven't read into it enough.

(UPDATE) Looks like I was right the ID pin on the microusb has to be grounded.
[Atrix 4G General] tbm48813:
that must be it. im just using a gender changer with a regular micro cable not thinking the otg adapter was anything special. thank you. ill rewire.
[Atrix 4G General] zanzee:
http://blogs.forum.nokia.com/blog/kate-alholas-forum-nokia-blog/2008/01/21/usb-on-the-go This shows which pins to jump, nice pictures and breakdown to making a OTG cable.
[Atrix 4G General] tbm48813:
awesome walkthrough, i was digging through spec sheets and it was draining my will. this is much nicer to follow. ill post tomorrow with results.
[Atrix 4G General] XxKILLx3RxX:
So we ground the ID pin by making a connection from GND (bridge pin 4 and 5) if we don't have an OTG cable/adapter and we supply 5 vdc to the 5vdc + pin (pin 1)?

using this pin out
[Atrix 4G General] moktarino:
I just bought two OTG cables (with female USB A ends) for $5 from China. They'll take two weeks to get here, but they will eventually...
[Atrix 4G General] tbm48813:
so this morning i soldered the 4th and 5th pin and everything works GREAT. thank you so much. It took about 10 mins. thank you for the help you rock
[Atrix 4G General] GhostXtreme:
Anyone tried connecting an external portable harddrive to Atrix ?

What happens if have powered external harddrive ? Do we still need to mod ?
[Atrix 4G General] ranova:
OP, you should contact some chinese manufacturer to mass produce atrix friendly multimedia dock clones

you would make mucho money!
[Atrix 4G General] zanzee:
Indeed, that would be very nice. I'm sure once the cheap aftermarket desktop docks come out they'll ether have this native or you can mod them to have OTG easily.
[Atrix 4G General] dratsablive:
So the power is just for the keyboard/mice that connect to the hub?
[Atrix 4G General] killerb7854:
When the hub is modded this way will it charge the phone while plugged in?

I am debating getting one of these hubs.

http://www.dealextreme.com/p/cable-style-dual-power-1000ma-usb-2-0-4-port-hub-13526

That way I just have to splice into the usb leads (one data one power) and make the power bridge connection there. Then just plug the power usb connection into an ac to usb converter like the one that comes with the atrix.

The logic sounds good to me. Any thoughts?
[Atrix 4G General] zanzee:
It should work. Btw some of the cheaper hubs have power going to all the ports.
[Atrix 4G General] killerb7854:
I'm curious about this as well. Also I was wondering if a usb thumb drive will work with just the otg adapter, without the hub mod?
[Atrix 4G General] zanzee:
Nope, the host side needs 5vdc to turn USB host on not just power the USB device. As well I've only gotten mouse and keyboard to work, my fat32 formated USB stick doesnt mount.
[Atrix 4G General] Nightwish2:
So no stick or drive possible or is a special format needed? Or perhaps a hack to the Atrix itself?
[Atrix 4G General] zanzee:
I've only tried the one stick both android and webtop. I haven't tried manually mounting via command line.
[Atrix 4G General] killerb7854:
Bummer, that would have been too easy. :p I'm sure it will have to be mounted somehow.

Just ordered my stuff from DX. Can't wait until it gets here so I can play around with this.
[Atrix 4G General] Sogarth:
Huh. I wonder what's different? USB drives mount fine via the lapdock.... :confused:
[Atrix 4G General] zanzee:
How big is it and what format? Cause the lapdock is just a usb hub and a mini hdmi to full size hdmi +dac to analog audio.
[Atrix 4G General] Sogarth:
USB thumb drive, 8 GB, FAT32. I'd agree that it's not terribly complex....
[Atrix 4G General] cclein:
USB Touchscreen

So what are the chances a touchscreen would work with the Atrix. Say something like this...

Lilliput 669GL-70NP/C/T - I can't post links but it can be found at the mp3car store.

The touchscreen is connected via USB or RS232.

C
[Atrix 4G General] zanzee:
Very low, you'd need kernel support for it. I highly doubt its built in, but it would be very cool to get external touch screen support. Make an awsome carputer.
[Atrix 4G General] bartsplanet:
I suspect one difference is that Moto is using one of the defined states:

http://en.wikipedia.org/wiki/USB_On-The-Go#OTG_Micro_Plugs

"Three additional ID pin states are defined[3] at the nominal resistance values of 124 kΩ, 68 kΩ, and 36.5 kΩ. 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."
[Atrix 4G General] zanzee:
Hard to say, when I have my Atrix plugged into the hub via OTG it still charges. But its quiet possible although working mouse and keyboard beg otherwise.
[Atrix 4G General] shriva:
Possable to hook up an external webcam though this?

Im thinking webcam glasses, hooked though here and hub/phone powered by external battery pack.

Walk around streaming ustream... lol
[Atrix 4G General] chikou:
hey guys sorry if this is a noob question but this first time i am trying to hardware mod anything. so i happen to have the same usb hub as tbm48813 and i tried pluging in everything but it doest read my mouse and key board.. so i am assuming the step i am missing is grouding pin 4/5 for it to work?
[Atrix 4G General] killerb7854:
You need to supply +5v to pin one on the host connection first.

Then (if your NOT using a usb OTG adapter) you need to connect/ground pins 4/5 on the micro usb connection.
[Atrix 4G General] killerb7854:
Finally got my order from DX yesterday! Took forever but what a bargain. :p

Used the hub below and the same otg adapter as [op] callen81.

You were right about this, plugged everything in (red usb into ac wall adapter) and it all worked flawlessly. No soldering, no muss no fuss. :D Usb keyboard and mouse work great with webtop (I use the no dock mod) and I was even presently surprised to see the dock clock mode on the phone screen.

This works so well that I'm curious if you could access the webtop interface without the software mod. Has anyone tried this? If I get some time I might uninstall mine and give it a go.

Big thanks callen81 for figuring this out!
[Atrix 4G General] eval-:
I tried this today and failed. My multimeter thinks I've got 5V on pin1, and when I plug it in, dmesg on the device says:

<6>[43239.445540] cpcap_usb_det: irq=CPCAP_IRQ_CHRG_DET
<6>[43239.445607] cpcap_usb_det: irq=CPCAP_IRQ_VBUSVLD
<6>[43239.563716] cpcap_usb_det: state IDENTIFY
<6>[43239.564419] cpcap_usb_det: SenseBits = 0x411c
<6>[43239.569255] cpcap_usb_det: BATTP=3908, VBUS=5063, BATTI=197, CHG_ISENSE=6, ret=0, status=0

... but nothing happens. Pin 4 & 5 seem to be grounded, as per the cable manufactuer's spec (attached.) Nothing more in dmesg, no devices detected, it doesn't start charging or indicate it's plugged in at all, except for that dmesg.

If I plug it into my PC I get more like:

<6>[44131.998866] cpcap_usb_det: irq=CPCAP_IRQ_CHRG_DET
<6>[44132.001894] cpcap_usb_det: irq=CPCAP_IRQ_VBUSVLD
<6>[44132.103557] cpcap_usb_det: state IDENTIFY
<6>[44132.104258] cpcap_usb_det: SenseBits = 0x411c
<6>[44132.109065] cpcap_usb_det: BATTP=3955, VBUS=5073, BATTI=177, CHG_ISENSE=6, ret=0, status=0
<6>[44132.168401] cpcap_usb_det: irq=48
<6>[44132.283469] cpcap_usb_det: state IDENTIFY
<6>[44132.284167] cpcap_usb_det: SenseBits = 0x401c
<6>[44132.284197] cpcap_usb_det: USB or USB_FLASH
<6>[44132.284236] cpcap spi1.0: notify_accy: accy=0
<7>[44132.297756] tegra_otg_set_mode setting OTG_STATE_B_PERIPHERAL

The only difference (I think) between the original Motorola cable and this "OTG" cable is that I sometimes see:

<6>[42208.487055] cpcap_usb_det: irq=CPCAP_IRQ_IDFLOAT

when using the Motorola one.

So this VBUS/pin1 is high (good) "tegra_otg ... STATE_B_PERIPHERAL" seems to indicate it doesn't go into host mode on the PC (normal) and "IDFLOAT" perhaps, that pin 5 isn't grounded with the Motorola cable (also expected?)

Sooo, what am I doing wrong? Could it be the hub? What do you guys see in your dmesg when this succeeds... heeeelp. Thanks =)
[Atrix 4G General] chikou:
Thanks for the response, so looks like the hub aready providing +5v, so the adapter i purchase from new egg must not be otg one, so i will have modify it to ground 4/5 pins.

I will do that and see if thats what is the case. thanks

But it seems that your adapter would be a eaiser solution,

pluging in the red plug to a usb power adapter and then using the Mini-USB device to the phone and everythign will be good to go.
[Atrix 4G General] killerb7854:
I used a USB A female to USB Micro B OTG adapter to connect the hub to my phone. Then yes, plug the red plug into a usb power adapter.

This is the otg adapter specifically. ;)

http://www.dealextreme.com/p/micro-usb-on-the-go-host-otg-adapter-pair-50774

If you already have +5vdc going to the phone you might only need an adapter like this to get it working.
[Atrix 4G General] killerb7854:
It looks like only pin 5 is grounded and pin 4 is not used (typical micro cable). I believe that BOTH pins 4 and 5 need to be grounded for OTG.

Link to the make your own OTG.

http://blogs.forum.nokia.com/blog/kate-alholas-forum-nokia-blog/2008/01/21/usb-on-the-go

Shows pins 4+5 soldered together. I also confirmed that my otg adapter has ground on both.

I hope this helps.
[Atrix 4G General] Ronaldo_9:
just ordered one of these, out of interest would other usb power be ok like a pc/laptop ?
[Atrix 4G General] killerb7854:
I don't see why not. Your only running a mouse/keyboard and supplying 5v to the phone.
[Atrix 4G General] zanzee:
*update* I got usb drive mounting to work!

It would seem to be very easy, Motorola seems to have blocked auto mounting without the media/lapdock (why must they be such c*&ts)

*MAKE SURE ITS FORMATED FAT32!* NTFS might be doable with a ntfs-3g module but I haven't tried yet.

Run file manager (root explorer ect...) browse to /dev/block and see what you have listed in there. I had sda and sda1 listed only when I inserted a usb drive so I knew it had to be the drive.

Run "Terminal Emulator"

su

mkdir /sdcard-ext/usb (this can be any directory you want on ether the internal or microsd)

mount -t vfat /dev/block/sda1 /sdcard-ext/usb

That's it; your drive will now show up in the file manager and webtop. I decided on the microsd so applications could see it without messing about.
[Atrix 4G General] hhspiny:
I can also confirm that many cheap usb hubs already supply 5+v to all usb port, including the one to the host. I bought the following from dealextreme and it is the case -- no soldering needed.

http://www.dealextreme.com/p/usb-2-0-4-port-hub-with-short-circuit-protect-white-41232

all you need is this one, an ac adapter that can supply power to this hub, and a standard OTG usb/microusb cable/adapter (which dealextreme also sells). you are good to go to hook up usb devices to your Atrix.
[Atrix 4G General] eval-:
You were right, pin 4 was floating. My cable was much less straightforward to disassemble (you can't really cut the metal and the rest of the sheath is a solid plastic block) but I found a way to chip away at the plastic until I could uncover and bridge the cables, and voila! I type from the (disappointingly slow) laptop 'dock!' Thanks so much. For the curious, success looks like:

<6>[132101.864020] cpcap_usb_det: state IDENTIFY
<6>[132101.864725] cpcap_usb_det: SenseBits = 0x811c
<6>[132101.864759] cpcap_usb_det: WHISPER_SMART_DOCK
<6>[132101.864799] cpcap spi1.0: notify_accy: accy=6
<7>[132101.877905] tegra_otg_set_mode setting OTG_STATE_A_HOST
<6>[132101.991442] cpcap_usb_det: irq=CPCAP_IRQ_VBUSVLD
<6>[132101.991469] cpcap_usb_det: state WHISPER_SMART_DOCK
<6>[132101.991677] cpcap_usb_det: SenseBits = 0x8104
<6>[132101.996681] cpcap_usb_det: irq=CPCAP_IRQ_CHRG_CURR1
<6>[132101.996707] cpcap_usb_det: BATTP=3879, VBUS=4310, BATTI=-955, CHG_ISENSE=1262, ret=0, status=0
<6>[132101.996916] cpcap_usb_det: state WHISPER_SMART_DOCK
<6>[132101.997119] cpcap_usb_det: SenseBits = 0x8114
<6>[132102.006653] cpcap_usb_det: BATTP=3886, VBUS=4310, BATTI=-951, CHG_ISENSE=1277, ret=0, status=0
<6>[132102.030724] usb_ether_get_stats
<6>[132102.030931] usb_ether_get_stats
<6>[132102.213134] usb 1-1: new high speed USB device using tegra-ehci and address 8
<6>[132102.243678] usb 1-1: New USB device found, idVendor=04b4, idProduct=6560
<6>[132102.243691] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
<6>[132102.244029] usb 1-1: configuration #1 chosen from 1 choice
<6>[132102.245835] hub 1-1:1.0: USB hub found
<6>[132102.246846] hub 1-1:1.0: 4 ports detected
...
<6>[132102.713472] usb 1-1.2: new low speed USB device using tegra-ehci and address 10
<6>[132102.768931] usb 1-1.2: New USB device found, idVendor=04d9, idProduct=1702
<6>[132102.768944] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[132102.768954] usb 1-1.2: Product: USB Keyboard
...
[Atrix 4G General] killerb7854:
You beat me to it. I was playing with this for a while last night, got in here this afternoon to share and you already had it posted. Suppose I should have checked this thread first. :p

Works great with a terminal emulator and I even found an app that works reasonably well.

Says it's for the Q5 (whatever that is) but it does work.

http://android.gval.biz/Q5_USB_Menory_Manager.php

The only problem is that for some reason I could not put any / in the mount location so I can only mount my usb drive to a folder in the root (/) directory of my phone. Non-root apps and webtop cannot see it there. Could be a great little app if it weren't for this. Would make things easier instead of typing the command in terminal.
[Atrix 4G General] killerb7854:
Just noticed something rather weird with this hub setup. When I connect everything up through the hub (or even just the phone and nothing else but power) my phone says it's charging but it slowly drains. :confused:

Anyone else experience this with their usb host hub?
[Atrix 4G General] zanzee:
It makes perfect sense, unless the phone is in "AC Charge mode" it'll only draw 500mah max. My Nexus 1 draws 800mah(tested using my fluke). So I'd assume the Atrix draws at least this or more; even though it's charing it's not getting enough. You can put a resistor in-between the data +- (not sure of what value) to fool it to draw more then 500mah if the hub can handle it. If you have it bridge like me and have a high output psu(mines 2.5amps) then it shouldn't be an issue.
[Atrix 4G General] killerb7854:
Ah, that does make sense, I do notice that when I plug the phone into a pc it takes SIGNIFICANTLY longer to charge than with the ac 850mah adapter that comes with it. I had an idea that it might be because of the otg adapter and "host mode". Thanks for the informative response. Perhaps down the road I will mod one of my hubs so charging will work properly. It will probably be harder to find a good psu. I have burned out a few of the chintzy ones that come with cheaper hubs.
[Atrix 4G General] tamirushb:
help please

hey everybody .. wow i like all the progress you guys achived

i am new here so i'll try not to upset everyone here

just so i can start , can you tell me if any hub with external power would work? for example a 10-Port-480MBps-Hi-Speed-USB-2-0-HUB-W-Power-Adapter-BL- that i found on ebay (can't post links yet :( ) with the otg adapter that callen81 suggested should be enough ? hardware wise

then i'll have to learn how to solder .. i'm still wondering if not just paying the 80$ for the hd dock and save me ( a noob :)) all the trouble

what do you think?
[Atrix 4G General] Stimulant:
Would the Atrix read a standard USB stick if I plug it into a micro USB OTG attached to the atrix?
[Atrix 4G General] agurzhiy:
no, he needs a power supply
[Atrix 4G General] scoob8000:
This is very interesting.. Gonna order one of those adaptors. I have another possible source that I'll call and see if they can get them.

Dx rocks but I lack the patience to wait for overseas shipping. :)

Food for thought..

I have a cheapo 4 port usb hub on my night stand for charging all my devices. It is limited to 500ma per port. Ive noticed it won't charge my atrix. Guessing 500ma isn't enough..
[Atrix 4G General] Rred:
scoob-

"It is limited to 500ma per port. Ive noticed it won't charge my atrix. Guessing 500ma isn't enough.."

No, physics doesn't work like that. If the VOLTAGE from your USB device is above the charging voltage for the phone, even a 100mA charger would be enough to charge the phone up. It would just take a long time, perhaps 22-24 hours to do so.

The normal Moto chargers are about 1000mA and they charge the phone quickly, usually two hours or less. But Moto has been making very generous chargers for years, they even supplied a 1000mA charger with my bt earpiece, which doesn't need that much power at all.

If a 500mA charger hasn't fully charged your phone in 4 hours, there's something else wrong. Bad wire, bad contact, not plugged in tight...or the "Made in China" effect.<G>
[Atrix 4G General] Sir_Brizz:
I've ordered the OTG adapters and that dongled USB hub from DE. I figured for $8 what the heck. USB host seems to be a trend among Android devices anyway so it could be useful in the future.

I'm guessing, though, that I won't need anything else to make this "mod" work?
[Atrix 4G General] _Dennis_:
No you are wrong sir. The phone will not charge on a 500 ma charge. It will use less battery but 500ma charger is not sufficient to both power the device and charge it. Also the charger supplied it 750ma charger and if you are running 1.2.6 the phone will refuse 1a chargers. Just because something provides voltage in the correct range does not mean ut provides enough energy to charge something else. Voltage is potential current is actual power. Just plug your phone into a USB socket without the computer having drivers (there by limiting the socket to 500ma) it won't charge.
[Atrix 4G General] scoob8000:
Sorry OP for the threadjacking.. :(

I'm familiar with Ohm's law, where I was headed is I think the phone may be doing one of two things. (purely guessing :) )

It may just be adhering to USB specs. It realizes the hub is a USB device and not just a charger. Since there is no computer on the other side, to negotiate more than 100ma it just doesn't charge.

Or the voltage drop @ 500ma (my hubs max per port) is just too high to enter charging. Worth noting, is when the battery is >90 and I plug the hub in, the notification led lights, but the battery still discharges.

I need to hack up a usb cord to take some voltage/current measurements. Maybe I'm just being OCD, but I like to "slow charge" my devices while I sleep. :)

[edit] I think I'm going to try making a charge only USB cable... That might answer some questions
[Atrix 4G General] Mgamerz:
On maemo they have usb otg and its like 2 years old ( no cable either- they had a software hack)

This seems like something that should have been included... but I guess its a consumer device, not a geek toy like the n series was.

Sent from my Motorola Atrix 4G on the network with the most backhaul, whatever that is
[Atrix 4G General] Rred:
Dennis?

"It will use less battery but 500ma charger is not sufficient to both power the device and charge it."

Powering the phone, and charging the phone, and simultaneously doing both, are three different things.

The 500mA is sufficient to CHARGE the phone, that's all I said. I have no idea how much power it takes to POWER the phone with all four radios (BT, GPS, Wifi, cellular) active and music or Angry Birds playing at the same time. The power drain for each of those may be significant.

But since the phone has a ~1900mAh battery, you can establish the phone's power drain by turning on "everything" and letting the battery drain from full charge. If it takes four hours to go dead...yes, the phone may consume 500mA all by itself, leaving nothing to charge the battery. Again, that's physics, and it applies the same way to every laptop and phone on the market, and other devices that use adapter/chargers.

I stand by what I said: 500mA will fully recharge the battery in about 4 hours. I did NOT say it would power all four radios and play music as well as charging the phone at the same time. You'll have to do your own math to find that out, but the physics remains the same. My phone usually charges while I sleep, and a 500mA source will do that very nicely, with just the cellular radio enabled, and not in conversation.
[Atrix 4G General] scoob8000:
I started a new thread in this general section to move this discussion to. Maybe a mod can move some of the posts over..

http://xdaforums.com/showthread.php?p=14040845
[Atrix 4G General] chupes:
Hello.

Thanks a lot for this information.

i soldered the pins on a micro usb cable and applied 5vcc to the host of a usb hub.

Thing is i still dont get the dock option when i plug the hdmi.

the mouse works (jumping from icons on the android desktop). i installed dmesg and it detects the hub and mouse but i still no dock.

what could i be missing?

EDIT --

When i connect the modded cable before detecting the hub it reads:

Tegra_otg_set_mode_settings OTG_STATE_A_HOST

If i use a standard cable on the Host port of the hub it reads

Tegra_otg_set_mode_settings OTG_STATE_A Suspend

And if i connect standard cable on device port of the hub it reads:

Tegra_otg_set_mode_settings OTG_STATE_B_PERIPHERAL

what could i be missing?
[Atrix 4G General] zanzee:
You need the webtop over HDMI soft mod not just the USB hack.
[Atrix 4G General] vprong:
I can confirm that both the below parts with webtop softmod allow keyboard/mouse use with webtop. No soldering needed. Thanks to the original posters of these links. (seperated links since I can't post links though I've been a member for 4 years, awesome.)

dealextreme.com

/p/micro-usb-on-the-go-host-otg-adapter-pair-50774

/p/cable-style-dual-power-1000ma-usb-2-0-4-port-hub-13526
[Atrix 4G General] ricky1989:
I wonder if the native USB OTG function is a hardware limitation or could be solved after bootloader unlock? :rolleyes:

Torn between Atrix or GS2, "better form factor+ fingerprint security" OR "USB hosting"
[Atrix 4G General] ParrotSquawk:
A non-geekaziod question

What is the purpose of trying to use the USB on the phone as a hub? To access external HD's? Mice? Keyboards?

Just askin'...since I don't get the point.

(I came here wondering why standard microUSB cables don't work on Moto phones and stayed for the discussion.)