USB questions - Android Software Development

Sorry if this comes across as uber noobie... but,
on the HTC incredible, is there a way to plug a usb mouse in and receive data based on which buttons on the mouse are being pressed? Is this easy to do? Can someone direct me to a starting place?
Thanks!

Someone did a USB host mod for the HTC Desire. There should be quite a few out there for different droid phones.
The phones are unable to supply enough juice though, so you gotta hook it up to separate power.

Related

Why only one usb????

Why only one usb!!!!!!
I think that anotherone may be very very usefull....
OR NOT?
Anyone agree?
For what?
pitt1983 said:
Why only one usb!!!!!!
I think that anotherone may be very very usefull....
OR NOT?
Anyone agree?
Click to expand...
Click to collapse
What do you wanna use it for? havent used mine a single time since i got the device.
ehm..
ehm..
usb key and mouse,
usb key and an external hdd
2 external hdd
mouse and external hdd
2 usb pen
an external dvd that need 2 usb
included hub need 2 usb
and i think many many many others uses
You get a free USB hub with Ethernet !!
Included in the package is a USB hub with 3 ports, AND an ETHERNET port !
Nice... I really do like my device
pitt1983 said:
ehm..
included hub need 2 usb
Click to expand...
Click to collapse
really ? why would they put a usb hub that does not work with the shift... seems weird !
everybody here is using the usb hub without any issue I believe.. because they would have complained earlier
The (much bigger) MacBook AIR also has only one USB port... and Apple doesn't include an 3port-USB-Hub with embedded ethernet port - the shift does.
But there are of course also technical reasons (besides space): Power! An additional USB Port would require additinal power (up to 0,5A at 5V) - thus, the internal power system must be bigger sized for this (and an "oversized" internal power system means: Inefficent under normal operating conditions).
And remember: Most USB Disks draw more than 0,5A from the USB port, especially at spinup time...
pitt1983 said:
included hub need 2 usb
and i think many many many others uses
Click to expand...
Click to collapse
not true. Did you try it ?
no need usb?
so noone need another usb?
I love my shift! i waited for it one year.
but i think that one more usb port can be more useful.
i repeat. LOVE THAT SHIFT!
McDoPDA said:
not true. Did you try it ?
Click to expand...
Click to collapse
if you use htc hub and two portable usb hdd you can't use them. or if i use an external dvd that bring alimentation by usb i can use it.
sorry for my english.
pitt1983 said:
if you use htc hub and two portable usb hdd you can't use them. or if i use an external dvd that bring alimentation by usb i can use it.
sorry for my english.
Click to expand...
Click to collapse
ok I see what you mean .. mmh well.. maybe you can find an usb hub with external power ? it would solve all the issues
external power
koala996 said:
ok I see what you mean .. mmh well.. maybe you can find an usb hub with external power ? it would solve all the issues
Click to expand...
Click to collapse
when i'm in office or at home i use an external power cable directly connected to the htc hub. but is not comfortable.
and when i'm out or in others places i can't use external power cable.
in my opinion not comfortable anymore.
Isn't the small USB port at the back of the Hub just power in? I didn't try yet, but it is obviously a IN port.
Axel
These usb options are great but I think you missing the point of the shift.
The shift is supposed to be a portable device, are you really going to bring all those wired devices with you? Do you really want to be connecting all that up each time you get to work or your desk at home? everyday?
Why not use bluetooth devices?
keyboard and mouse -bluetooth for sure.
Same goes for the pens, portable scanners and printers almost all of them can be found with a bluetooth options.
Hell I even use bluetooth devices for the serial connections on the routers and switches I work with.
Now your external dvd and hardrive to replace those you have to get creative -
For home and work I always map a drive from a desktop machine.
On the road you have a couple of options with flash drives at 16gb for $50-70 bucks do really need that old external harddrive that uses two ports?
32GB flash drives are now as low as $150. Quite few dvd's you can fit on that!
If you really want to be free of carrying stuff around sign up for sugarsync or some other online service and never carry your data again.
I almost never use the external usb hub that came with the shift. It is a last resort item for me, destined for the bottom of the laptop bag. Wifi, 3g and no cables will always be prefered over that thing.
You may like sticking with usb cable/dongle devices but consider switching a few out for more wireless solutions and I think you will like your shift a whole lot better. That rats nest of cables in your laptop bag will shink as well!
I am not knocking you question or the advise others have given just offering an alternative.
My dream is for somebody to find a way to charge the battery on my shift without a cable connected then I will die a happy man.
EinSiedler said:
Isn't the small USB port at the back of the Hub just power in? I didn't try yet, but it is obviously a IN port.
Axel
Click to expand...
Click to collapse
yes is a power in port. if shift had 2 ports i can be able to use it whitout a power connector at wall (sorry for the expression) i don't know how to say it in english.
however shift have one only usb port. and it is not comfortable.
stormforger said:
These usb options are great but I think you missing the point of the shift.
The shift is supposed to be a portable device, are you really going to bring all those wired devices with you? Do you really want to be connecting all that up each time you get to work or your desk at home? everyday?
Why not use bluetooth devices?
keyboard and mouse -bluetooth for sure.
Same goes for the pens, portable scanners and printers almost all of them can be found with a bluetooth options.
Hell I even use bluetooth devices for the serial connections on the routers and switches I work with.
Now your external dvd and hardrive to replace those you have to get creative -
For home and work I always map a drive from a desktop machine.
On the road you have a couple of options with flash drives at 16gb for $50-70 bucks do really need that old external harddrive that uses two ports?
32GB flash drives are now as low as $150. Quite few dvd's you can fit on that!
If you really want to be free of carrying stuff around sign up for sugarsync or some other online service and never carry your data again.
I almost never use the external usb hub that came with the shift. It is a last resort item for me, destined for the bottom of the laptop bag. Wifi, 3g and no cables will always be prefered over that thing.
You may like sticking with usb cable/dongle devices but consider switching a few out for more wireless solutions and I think you will like your shift a whole lot better. That rats nest of cables in your laptop bag will shink as well!
I am not knocking you question or the advise others have given just offering an alternative.
My dream is for somebody to find a way to charge the battery on my shift without a cable connected then I will die a happy man.
Click to expand...
Click to collapse
yeah charging batteries without power cord maybe the century revelation. i hope will be a reality...
i return to my argument ( always sorry for my english)
online storage are not very fast.. or capable for the gigabites that i need to carry with me.
every day i need to put on my pc's, shift included, customers files, personal files, try many new programs. and these actions (you well know on microsoft may destroy very fast a system configuration). an you know that vista business and ultimate have an usefull utility of backup. i need to backup and restore many times in a week or in a day my sistem. so, i need to carry with me many hdd or 8gb pen drive..
and this is my problem..
EinSiedler said:
Isn't the small USB port at the back of the Hub just power in? I didn't try yet, but it is obviously a IN port.
Axel
Click to expand...
Click to collapse
if you put your mobile phone power cord in the htc hub will be feeded up.
now when hub is feeded you can put more hdd or an external dvd. but if you unput power cord the dvd or the hdds not work yet...
Did you plug a power supply in the mini usb plug on the back? This is a powered USB hub.
i think htc could of added more usb ports but the biggest problem was the space. more usb ports could of made it bigger. never disassembled or looked at the disassembly pics close but im guessing there is no more room really.
Pawel062 said:
i think htc could of added more usb ports but the biggest problem was the space. more usb ports could of made it bigger. never disassembled or looked at the disassembly pics close but im guessing there is no more room really.
Click to expand...
Click to collapse
i saw by a cinese or corean site the shift got naked, i think that there is some littlle space to put another usb port. i think.
Erhhh its a umpc not a workstation
pitt1983 said:
ehm..
usb key and mouse,
usb key and an external hdd
2 external hdd
mouse and external hdd
2 usb pen
an external dvd that need 2 usb
included hub need 2 usb
and i think many many many others uses
Click to expand...
Click to collapse
This is not a workstation, if you need a all this you may have bought the wrong form factor. i have never used my usb port, i dont see what i should connect to this form factor, maybe a usb stick once in a while..
else use the usb hub and bluetooth mouse/keyboard

[Q] How to use USB Keyboard with Motorola Atrix

Hi
I have following questions:
1) How do I use Computer USB Keyboard with Motorola Atrix ?
2) Is it possible to connect Motorola Atrix with Laptop and you can use Laptop Keyboard and Laptop Screen to see and use everything in Atrix without using Motorola Webtop laptop ?
Thanks
In the Atrix Development forum you'll find a hack that allows you to use the Atrix webtop on any monitor/TV with HDMI. Pair a bluetooth mouse and keyboard with your Atrix to use them on the webtop. Works great here, didn't even require root.
Also, if you have a HD multimedia dock, you can plug a USB mouse or keyboard into the available USB ports in the back of the dock. It works well!
sent from my Atrix
what about a wireless keyboard or mouse? like LG unifying receiver
SS2006 said:
what about a wireless keyboard or mouse? like LG unifying receiver
Click to expand...
Click to collapse
see above post, that's what I am using (I forgot to specify that it was USB wireless), a Logitech (can't remember model number) wireless USB keyboard and mouse. works perfectly, even the volume buttons, etc. on the keyboard.
SS2006 said:
what about a wireless keyboard or mouse? like LG unifying receiver
Click to expand...
Click to collapse
If you're not using the HD multimedia dock (via the Webtop hack), then no, you can't use them as there are no USB ports you can plug your receiver into. You will have to settle for bluetooth devices.
Callen81 has a video that shows how USB hardware can be connected to the Atrix. It requires soldering two connections, and a powered USB hub, but it can be done.
HDMI mirroring, from what I can understand from your broken English (I'm not hating, but it's true.) is not possible on the Atrix (yet!). You can, however, see the mobile OS from webtop mode in a separate window. And on the laptop, you can plug in USB keyboards and mice to the ports in the back.
paravorheim said:
Callen81 has a video that shows how USB hardware can be connected to the Atrix. It requires soldering two connections, and a powered USB hub, but it can be done.
HDMI mirroring, from what I can understand from your broken English (I'm not hating, but it's true.) is not possible on the Atrix (yet!). You can, however, see the mobile OS from webtop mode in a separate window. And on the laptop, you can plug in USB keyboards and mice to the ports in the back.
Click to expand...
Click to collapse
actually mirroring was enabled (see dev forum), but it's not as easy. it also will only show portrait mode (no landscape)
dLo GSR said:
actually mirroring was enabled (see dev forum), but it's not as easy. it also will only show portrait mode (no landscape)
Click to expand...
Click to collapse
Yes, and the point is that it's still got the same, if not worse, performance that it would have on Webtop mode. At least, I think.
If the Atrix can read USB sticks (?) then would plugging a standard USB stick, which has a USB1-typeA-plug on it, require a converter that was a "USB1 Type A recepticle" converting to a "USB2-micro-TypeB-plug?
Would that be the correct nomenclature for the USB adapters, and does anyone know if you can buy that premade, or whether the Atrix absolutely will or won't recognize a USB stick that way?
I'm also looking for some USB2-micro-TypeB-plugs either on or off a wire, to try adding the drop resistor to pin 5 so I can tell the Atrix "You're in a car dock now" or just "you're in a dock now" and force it into the other modes.
I'll probably roll my own car dock, mainly because I want my Atrix (in an Otter Commuter) to be secured in the dock. Really secured, so if I flip and roll and total out the car, the Atrix is still exactly where I left it. The spring-clip jobbies will turn your phone into a missile if someone whacks into you, making calls for help impossible.

[Q] Usb switcher to share usb kb+mouse between pc and dock

I want to share my mouse and keyboard currently hooked up to my pc with my atrix multimedia dock so I can press a button and switch between the two.
I was looking at these two devices and was wondering if anyone every tried either one with the dock?
Thank you
http://www.amazon.com/Computers-Dev...IM/ref=sr_1_22?ie=UTF8&qid=1299980189&sr=8-22
http://www.amazon.com/IOGear-2-Port...UTF8&qid=1299706276&sr=1-15#productPromotions
I use a kvm all the time between several pc's and they work great. I don't see any reason why the usb wouldn't switch for the dock as well. I can't say 100% it will work as I don't have a dock but I'm pretty sure it would. After all, the webtop is actually a stripped down ubuntu computer.
One suggestion though, If you look at kvm's try to find one that accepts dvi rather than vga like the second link you posted. That way you could plug the hdmi from your dock (with an adapter of course) into the kvm as well. Then you can switch everything (kb mouse and dsplay) with the flick of a switch.
Hope this helps

[Q] Homemade USB hub? (no soldering!)

I posted this on Plopper's thread here(http://forum.xda-developers.com/showthread.php?t=923864) but thought it might be better here as I might get a quicker reply
"I have bought a 4 way USB hub which has a usb socket on its input lead. This can be plugged into your PC or into a usb mains charger or usb car charger.
If the input lead is plugged into one of the four output sockets and the lead is cut open and the red and black wires are exposed, a 2A 5v charger can be connected to these wires by twisting together and taping.
This then powers both sides of the hub with 2A supply and by-passes the protection.
It does sacrifice 1 output socket but HD2 +keyboard+mouse= happy Ubuntu
Will this work?"
I am dying to try it but thought I'd check with tech savvy types first.
Edit; I am thinking now that the green and white data cables in the input leads may have to be cut and the ends taped, but it may not matter(?)
Have attached photo of the hub and the charger
The charger is an old Nokia one and has a lump of plastic near the end which I assume houses a fuse of sorts.
Reading through Plopper's thread again I am sure this is OK, but am unwilling to brick my HD2!
You could get a 7 way usb hub and add things like external HDD or (my favourite) a usb fan to cool down your HD2!
Working
OK over 300 views of this thread and no reply!
this usually means the idea is a dud or its been done before!
I have searched around but can only find y-cables, which supply extra 500mA from another USB socket but only allow 1 device connection.
If this has been done before, I apologise.
However, I got bored of waiting and went ahead with cutting up leads and splicing wires. I flashed WM6.5 and loaded Ubuntu 0.3 (only one with USB host that I can find!)
AND IT WORKS!!!!!
I had to buy a micro USB cable because I didn't want to cut my stock one (get a data cable because a charging cable only has 2 wires in it).
Note on cable colours, apparently there may be variation on some manufacturer's cable core colours, take care to identify by tracing circuits on the hub and checking continuity from the pins to each core.
Also, being an electrician, I am wondering what the current carrying capacity of the tiny core cables are, I will have to look it up at some point (adiabatic equation) meanwhile check for overheating.
Enjoy! (something to do on wet weekend!)
Homemade USB
i made this, unfortunately i can't use it with 0.3 bucouse i installed magldr and i use Android, and linit tutorial doesn't work for me
http://i54.tinypic.com/2dquiwo.jpg
http://i54.tinypic.com/2zsxz6b.jpg
Impressive!
It sure beats the above from me.
What do you use it with?
What else might support USB hosting?
I prefer to use WP7 and Android too (see sig)
i made it for HD2 for use it with Ubuntu, i hope that the v0.4 come out soon and with usb host support...
Doh!
467 views after first posting this and after re-reading plopper's thread again I have realised what plopper and Mister B were saying in their last posts.
There is no protection in unpowered usb hubs, so no need to bypass it!
I have over-complicated everything.
It is only necessary to change the hub lead plug to a microUSB one and then connect the charger to the usb plug which you have just cut off, then plug it into one of the spare ports.
Oh well never mind!
i take a photo with HD2 on it http://i53.tinypic.com/34dr96v.jpg
很好很强大!
nice... ...but, don't smoke so much....
Guys,
For those using Android, you can try Dorimanx's latest 2.9.9 ROM which claims to have USB Host enabled. I don't have a USB OTG cable to try it on, but let us know if having a self-powered USB hub works on it. Thanks
nikola360 said:
i take a photo with HD2 on it i53.tinypic.com/34dr96v.jpg
Click to expand...
Click to collapse
OMG this thing is amazing! I really want to make something like this, got any pointers on how to do it?
wow thats the crazyest mod ever you should move to hardware moding scection! maby you will get more help!
bever86 said:
OMG this thing is amazing! I really want to make something like this, got any pointers on how to do it?
Click to expand...
Click to collapse
Thanks!....unfortunately i haven't a tutorial, i made it only with my fantasy, i saw 2 DVD cases and i made it.
Guys,
For those using Android, you can try Dorimanx's latest 2.9.9 ROM which claims to have USB Host enabled. I don't have a USB OTG cable to try it on, but let us know if having a self-powered USB hub works on it. Thanks
Click to expand...
Click to collapse
i tried it (XB V.19 that is based on it, with the same kernel USBH enabled) but unfortunately it doesn't work, i saw in the system partition of this rom and i saw that there aren't any driver for USB hardwares support (USB Keyboard, mouse, USB Flash memory...)...so i think that the problem is this (no drivers support)
nikola360 said:
i take a photo with HD2 on it http://i53.tinypic.com/34dr96v.jpg
Click to expand...
Click to collapse
This looks really cool, you should produce it and offer it, I guess I would buy it

Pimping Out Samsung Galaxy Tab 2 7.0 - USB host & cam questions

Hello everyone.
I am currently modding Samsung Galaxy Tab 2 7.0 for car instalation and everything seems to be great except I have problems with two things:
1) As the tab will be also my main music player I would need an USB host from time to time (check: http://www.expansys.si/samsung-usb-adapter-for-galaxy-tab-series-no-30-pin-to-sd-slot-229630/ ). It would be hard to switch that adapter with power supply just for the time I need to stick USB in it so I am asking if anyone knows if it is possible to have both active at the same time: power supply and USB host? Or if anyone has some other interesting idea how to transfer data to tablet asap from time to time? Please note that it will be really hard to reach it when installed.
2) Since the tab has back camera (which is useless to me in cars interior) i was thinking if there is any possible way to get that camera out of the tab with some extender or something? I've been looking at the interior of a tablet and the camera doesnt look to be attach in any other way than just a flat cable. Any ideas?
Thank you guys for your help in advance!
Make love, not war <3
miHah
It sound like this will be a permanent installation.
Instead of €22 for an adapter, I'd rather use a breakout and hardwire:
http://www.kineteka.com/galaxy-tab-connector.aspx
This will also allow you to wire the earphone output also.
Yes, with many devices you can charge and do host mode at the same time.
It's mostly a question of convincing your device to play nicely with a non-standard operation.
You can just bring out the USB leads or hardwire in a hub for more options, like a keyboard.
I'd use a DC converter circuit board hardwired instead of a cigarette lighter adaptor.
Something like this, maybe: http://www.lightobject.com/LM2576-High-Input-7V40V-Switching-5V-Power-Module-Regulator-P549.aspx
I think somewhere in the Tab 10.1 forums, someone figured out the proper wiring for a powered USB host adapter. 90% certain that would also work on Tab 2 7.0

Categories

Resources