[Q] Android and micro usb peripherals - Android Software/Hacking General [Developers Only]

I'd like to connect to android powered tablet several peripherals (through micro usb I guess) like: couple of rs-232 ports, keyboard and even one rj12 port.. as I guess it's possible to create usb-hub-device to all this functions, and develop drivers for it.. I just never dealt with stuff like this before. What of it is possible and mb android have built-in support of some interfaces and devices..? goal is to make cheapest solid touch tablet based complete device.

For this to work, your Phone needs special USB-OTG-capable hardware. I doubt it has. If you don't know what it is and why it is definitely needed, google for USB OTG (on-the-go).
Of course, a simple USB host connector would do as well, but no phone has one (but some tablets do).

No android phone out now has USB host support, nor the drivers to run any peripherals.

thx for answrs, looks like its possible but I need to port usbhost module to device kernel.. and perpherals drivers modules too.

Related

The Joystick Thread: New options and workarounds

Joystick options appeared to be limited for most of us, so I'm posting this thread to help generate interest in finding a universal workaround - and to start tossing around ideas. Here are mine;
USB to mini USB: Could a joystick be rewired to use a mini USB jack? Seems like you would only need drivers to get it to work.
HTC 4-in-1 Cable: The HTC Athena (aka Advantage) has a cable that provides a normal USB jack. With it you can connect a mouse and keyboard, and using this driver you can even connect a joystick. I'm wondering, if we could just get a proper mini USB cable, maybe this driver would work on other devices? Someone was able to get a USB joystick to work on a Toshiba TG01, so I have hope!
BGP100 Gamepad (MSI and Chainpus): Unfortunately, support for this gamepad stopped and the drivers don't seem to work on newer phones (with few exceptions).
Please try to be constructive with the ideas/feedback. Hopefully by pooling our resources we can come up with a mutually beneficial solution.
Id like a workaround for this aswell, especially for the HD2 when it comes out
I spoke with 'i900frenchaddict' from FPSEce. He was able to get a joystick to work on his Toshiba TG01 by buying a USB A Female to Mini USB B 5 Pin Male adapter and using the hidgamep.dll driver.
I've got a HTC Touch Pro 2 (Rodium). I just ordered the adapter and I'm going to try to get it to work. I'll post my results later.
connecting anything to the usb port and getting it to work require a device which support usbHost
Athena is as far as I know the only htc wm device out which support usbHost
Has anyone explored porting the usbhost files over from Athena? Is this something that needs to be cooked in or can it be installed manually with a few registry tweaks?
Ravicai said:
Has anyone explored porting the usbhost files over from Athena? Is this something that needs to be cooked in or can it be installed manually with a few registry tweaks?
Click to expand...
Click to collapse
A USB host port is hardware based; it cannot be ported by any software means. Rudegar is right about the Athena being the only HTC device with a USB host capabilities, but phones from other manufactures have this feature, such as the TG01. Maybe someday HTC will catch on, but current HTC devices don't have this feature (exception is Athena).
DaveTheTytnIIGuy said:
A USB host port is hardware based; it cannot be ported by any software means. Rudegar is right about the Athena being the only HTC device with a USB host capabilities, but phones from other manufactures have this feature, such as the TG01. Maybe someday HTC will catch on, but current HTC devices don't have this feature (exception is Athena).
Click to expand...
Click to collapse
Bummer. That effectively kills the USB option.
Looks like Bluetooth is the only way to go. Someone correct me if I'm wrong, but it seems like the BGP100 is the only offering at the moment - and it only works on some phones.
Anybody want to take a crack at updating the drivers to work with newer phones like the HTC Touch Pro 2?
Hi!
Yes, it works like a charm on my TG01, thanks again!
What I wonder, is if it may work on a device without a supposed "real USB host" function.
I don't have the correct adapter to plug a pad yet, but one thing is sure: my omnia has the same registry, so it was possible to create the new keys exactly like on my TG01.
Well, my adapter should arrive tomorrow. So I'll experiment and see what happens.
No surprise. The cable didn't work.
I'd be nice if someone made a Bluetooth USB host device with 2 USB ports on it. Then all we need is a driver to work with WM and BAM... everyone can now use USB devices! I imagine such a device would sell pretty good.
Either that or HTC needs to start including the USB host on all future phones. This will definitely be the deal breaker for my next phone... unless of course it happens to have a usable d-pad (haha, fat chance in this touchscreen obsessed world).
Only thing left to do now is hope some kind dev updates the BGP100 drivers *wink* *wink*
Speaking of Bluetooth, it would be nice if someone managed to code Wiimote+Classic Controller or Sixaxis/DualShock 3 drivers for Windows Mobile. The input devices in question already use Bluetooth, and I've never perceived any control latency-it's just a matter of drivers.
Too bad about the lack of USB host, though. I actually thought most HTC devices ever since the Touch Diamond/Pro had it built-in already judging by the USB port shape, and that you'd just need an adapter to use the host capability.
Funny thing is that the Sprint version of the HTC Touch Pro 2 has the Qualcomm MSM7600 chipset which actually has embedded support for USB OTG HS. Yet somewhere along the line someone must have disabled the functionally (much like they disable the radio).
I would venture a guess that the MSM7200a chipset has the same support, but disabled of course.
Edit: Yup, it does.
Confirmed the BGP100 is not working on the HD2. I get "connection error..insufficient memory"
I think that BGP100 is not compatible with the wisdom stack. if we can find a way to use the ms stack we should be fine. so far ia have not found on instructions on how to change the stack.
By the way the Video of the Omina II on your first post is mine
msi & tp2
Ravicai said:
Joystick options appeared to be limited for most of us, so I'm posting this thread to help generate interest in finding a universal workaround - and to start tossing around ideas. Here are mine;
USB to mini USB: Could a joystick be rewired to use a mini USB jack? Seems like you would only need drivers to get it to work.
HTC 4-in-1 Cable: The HTC Athena (aka Advantage) has a cable that provides a normal USB jack. With it you can connect a mouse and keyboard, and using this driver you can even connect a joystick. I'm wondering, if we could just get a proper mini USB cable, maybe this driver would work on other devices? Someone was able to get a USB joystick to work on a Toshiba TG01, so I have hope!
BGP100 Gamepad (MSI and Chainpus): Unfortunately, support for this gamepad stopped and the drivers don't seem to work on newer phones (with few exceptions).
Please try to be constructive with the ideas/feedback. Hopefully by pooling our resources we can come up with a mutually beneficial solution.
Click to expand...
Click to collapse
I have a msi bt gamepad and a tp2. so far I have been able to connect using my bt settings and something called spp slave (its some type of serial port) but without updated divers formy device i cant do much more :-/ since i have little tech know how i am stuck here. I have heard that the bgp 100 works for the HD 2 (they have the same bt stack I think) so what gives?
Significant development! Updated bluetooth drivers are now available for the BGP100 gamepad. See this thread for details;
http://forum.xda-developers.com/showthread.php?t=595679

[Q] USB Webcam Support?

I know the TF has integrated webcams, but due to the nature of the project I'm working on I need external ones.
I'm wondering if anyone has plugged in a USB video capture device like a webcam into the dock USB ports. What happens on the stock ROM? any other ROM have better results? If anyone has Ubuntu running, any success there?
I have two Lifecam Studio HD webcams that I'd like to get working, one on each USB port. The Lifecams require each to be connected to a different USB root hub. That means that I'd also like to know the hardware configuration of the two USB ports. ASUS could have one controller and a integrated hub (as is done on many laptops). Does anyone know how this has been setup? The only way I know of to test this is to either get two devices that don't work on the same root hub to work or to look at lsusb.
I doubt that the kernel has support for external USB web cams but it is worth trying I suppose.
Sent from my Transformer TF101 using Tapatalk

[Q] android tablet to use as point of sale

Hi. At the company I work for, we are looking for a tablet pc to use as point of sale on small stores. The idea is to stop using desktop pcs, and use tablets instead.
The exact requirement is a tablet that is:
1. Cheap (US$ 500 max)
2. Has USB Host ports or USB OTG. USB accesories to be connected include keyboard, USB to Serial, USB to Parallel converter, or USB Dot Matrix Ticket printer(Epson TMU), and a USB Wired network adapter.
3. If possible, one that has Wired network conectivity(RJ-45)
4. Has unlockable bootloader. It's best if it's provided by the manufacturer, but as long as it works, it's okay.
5. Tha manufacturer provides kernel source code.
Other conectivity options, such as WiFi or 3G really don't matter, as those will be disabled, because they are not needed.
The tablet would go inside a specially designed case, together with the ticket printer, the power adapters for both, and maybe the keyboard.
Any suggestions? Thanks in advance

Usb-host

Sorry 4 the prev thread in wrong section .. then .. One S ( stock rom or another custom rom - with or without Sense ) supporta the usb-host mode ?
I am reasonably sure that out of the box, on stock ROM it does not support the ability to act as an USB host. Additionally, the microUSB on the phone is an USB slave socket, so it would need an adapter to connect a USB slave device to it anyways. (At least I have not yet seen a native USB-Host device with a microUSB socket.)
I am pretty certain it can be hacked into a custom ROM or application, however there are limitations to this. Commonly a device that is designed as USB slave (like the One S) will not be able to power devices through the USB port as regular USB hosts have to.
So IMO, in order to get it to work as an USB host you would need an adapter to connect the devices properly, a modified firmware or specialized app AND a way to externally power the USB slave you want to connect to the One S acting as USB host. The external power might a portable USB charger battery (like the Gumpack) or an Y-cable which is connected to a "real" USB-Host device just for the power (or a car/wall USB charger).
So, theoretically it would be possible, but not very practical. To the best of my knowledge it has not been done in the past because there was no need to. This however might actually change with the current trend towards non-expandable memory on newer phones... if demand rises I bet manufacturers would come up with solutions. Think small USB storage sticks with regular USB plug on one side for use on Notebook/Desktop and a microUSB plug on the other which contain a tiny battery (think Bluetooth headset size) to power the stick while attached to the phone and are charged while connected to a real USB Host port which is designed to deliver juice.
Further reading: http://en.wikipedia.org/wiki/Universal_Serial_Bus#Connector_types

[Q] Looking for confirmation - no USB accessory support

Hello.
I have a machine with a USB host and a USB accessory port.
I have successfully got an Android tablet to talk to the machine, using an OTG cable which puts the tablet into Host Mode (using the machine accessory port).
This has a couple of problems, one of which is charging while in host mode.
I am now trying to keep the tablet in accessory mode, and connect to the host port on the machine.
My research suggests that Android has no support for running as the accessory.
The ADK sample code clearly seems to intended to run on a host (as it enumerates accessories).
I know the tablet supports an accessory mode because when I plug it into a PC, it mounts as camera or storage.
I can understand why they would not expect a keyboard or hub to be running Android, but there do seem to be some legitimate use cases.
Can anyone confirm my understanding, that there is no way to run Android as the accessory ?
Thanks.
I have since found the Android Open Accessory Protocol. Using information from ver 1 and 2 of the protocol, I found enough info to switch the android device into the special android-accessory mode. Note that on Linux, you may need to change the adb program so it is owned by root if you want to run the debugger over the new connection.

Categories

Resources