Say your opinions, helps, etc. About USB OTG.
My Aim is to use some USB devices ( Printer,Tuner card, Webcam, VGA card,etc.) in Android Mobiles and Tablets. Now I completed making drivers research. Next is to make applications to control devices.
Post ur openions, helps,now used devices,etc.
Completed projects:
- Connect USB 3g modems
....
Related
Is there a list of functions that can be used with the GTab USB? For example: can I mount a digital camera as a USB drive?
Pretty much all storage devices work. People have had success with 3g usb adapter. Mouse and keyboard also work. I haven't tried printer yet.
Has any research been done with usb wifi adapters? I've searched but with no success as I'm sure the issue would be driver related.
The kernel controls what can and cannot be used via USB first.. If there is kernel support for your do-dad, you're good to go at least for the first step... after that, the rest of the Android framework needs to allow you to do something useful with the thing, which may or may not stop it from helping... or may require apps, or additional libraries, or pixie dust.
Right out of the box, if it looks like a HID (keyboard/mouse) or storage, something encouraging will happen on most of the g-tab roms, even the stock rom. If its storage but a format that's not supported by your kernel, you may need additional modules, or it may never work.
Everything else, who knows. Use a custom kernel, and get the source, and build one that supports what you want. Check for linux support - if its supported in linux, odds are way way better...
user mode usb driver support?
I would like to write a "virtual Control Panel" application to communicate with a propriatery device via USB. Under Windows XP, I wrote a device driver, DLL and C++ application.
Now I am sure the linux kernel does not support the proprietary protocol of my device. However I understand that some linux systems support user mode device drivers for USB devices.
Is this the case with Android 2.3?
If so, can a user mode device driver be written with the Android SDK?
This will enable you to use USB on the go (OTG) feature that comes with Android 3.1 on our Jetstream. However, I for one don't think its truly on the go because you do need an external power source for it to work. But it allows me to connect my hard disk and work with it without the intervention of a computer which is more than great for me. But would surely like it if you could directly plug in a pen drive (not yet possible I think as far as I could search).
I have note made any of these, have just researched, tried a lot and managed to get it to work on my Jetstream and am just compiling the steps and methods I followed here.
Thanks to sztupy for his thread http://forum.xda-developers.com/showthread.php?t=1450298 for giving the basic idea.
Thanks to hellcat82 for his software NTFS Mount found at http://forum.xda-developers.com/showpost.php?p=13337600
Pre-requisites:
1. Must be rooted with Superuser and Busybox loaded
2. NTFS Mount software (use version 1.2 as 1.3 has some issues with Busybox as per the above mentioned thread and personal experience) - alternate is USB Mount by the same developer available on the Play store at https://play.google.com/store/apps/details?id=au.dach.drivemount (however I have not had success with it)
Hardware Requirements:
1. USB OTG Cable. Can be found at http://www.ebay.com/itm/Micro-USB-H...370670?pt=PDA_Accessories&hash=item3a731ccdae
Just a sample, costs around $ 2. I got mine from a local hardware store for Rs. 300 ($6)
2. USB Y cable. Can be found at http://www.ebay.com/itm/USB-2-0-Min...552?pt=LH_DefaultDomain_0&hash=item1e624b8dd0
Just a sample, costs around $ 2. I had one lying around at home.
3. USB Charger. Can be found at http://www.ebay.com/itm/Black-Plug-...er_MP3_Player_Accessories&hash=item1c254df23a
Just a sample, cousts again around $ 2. I got mine from a local hardware store for Rs. 170 ($3)
4. USB Hub (OPTIONAL) - this will enable you to connect more than 1 device at a time. If plan on using this, then you can get one with an external power source and skip the USB Charger.
Procedure:
1. 1st, after obtaining root, confirm that USB Host more is enabled on the Jetstream by checking the build.prop under /system using Root Explorer found towards the end of the screen. It should read as:
# support USB Host
rp.usb_host = 1
If not, then you must enable it by allowing R/W mode.
2. Next step would be to set up the hardware in the right manner. Note this must be done before connecting anything to the tablet.
The USB Y cable comes with 2 male USB ports and a single female USB port. The USB device to be connected must be attached to female port. The USB power charger must be attached to the side Male port and the USB OTG (micro USB to USB female) goes to the main Male port. With this all necessary connections are made. Refer to the attached picture (thanks to sztupy again) for details on other ways of connecting and using including with USB Hub (I personally have not tried the hub).
3. Put on the power source that is connected to the entire system and in case the external hard disk also uses one, that needs to be put on as well.
4. Lastly, connect the Micro USB cable with all the above connected to it to the tablet.
5. In order for the device to read/write or access the USB storage, next step depends on if the device is FAT32/NTFS
a) for FAT32 - you can go to the settings, storage and scroll down to USB storage. You will be able to see the details of the connected hardware and can click on Mount to mount and use. Unmount later to disconnet.
b) for NTFS - you must open NTFS Mount software. From the drop down list of devices, select a device (mine always shows sda1) and click on mount. Unmount from here itself later when done.
By following this, you would be able to access your USB external storage (pen drive/hard disk) with ease from your tablet directly.
Note: in order to access the files, you must use Root Explorer/Astro File Manager.
FAT32 device appear under USB folder of sdcard (i.e inbuilt memory)
NTFS devices appear under /mnt/sda1
Attachments:
1. usbhost_2.jpg - a diagram with the detailed setup (thanks to sztupy)
2. NTFSMount1_2.apk - NTFS Mount (thanks to hellcat82)
Hope this helps.
Is it truly necessary to have the OTG usb cable? I currently have a powered hub. Shouldn't I be able to use the provided JetStream usb cable and tie the devices together through the hub?
Sent from my HTC PG09410 using xda premium
aka.karasawa said:
Is it truly necessary to have the OTG usb cable? I currently have a powered hub. Shouldn't I be able to use the provided JetStream usb cable and tie the devices together through the hub?
Sent from my HTC PG09410 using xda premium
Click to expand...
Click to collapse
Hi, sorry for delay, was out for an exam.
I don't know if or not it will work. As I said I have just researched and seen what others have implemented and put it together.
Perhaps you could try and let us all know because I don't have a USB Hub (powered or otherwise) and hence have not tried it out.
This all seems a little much for OTG support considering it was just plug and play with my SGS2 and also my SGS4G. I am hoping to see some more development in this area as this type of support is nice to have on a tablet of this caliber.
aka.karasawa said:
Is it truly necessary to have the OTG usb cable? I currently have a powered hub. Shouldn't I be able to use the provided JetStream usb cable and tie the devices together through the hub?
Sent from my HTC PG09410 using xda premium
Click to expand...
Click to collapse
Tried this... it didn't work
Can I use USB host to interface with an Arduino in CM11? This is very important, and if it does not happen, can somebody PLEASE come out with a patch; this is for school, and I need it soon.
AFAIK, none of the CM7/9/10/11 ROMs to date has support for USB Host for any kind of USB devices.
FWIW CM10.x/11 builds for the Nook HD/HD+ do support USB Host for some common types of USB devices (e.g., flash storage).
I am working on a project that requires me to setup a windows pc as an accessory in order to communicate with an android phone via a USB cable. After studying the ADK(ANDROID DEVELOPMENT KIT), it seems that you must have micro-controllers endorsed by google which supports aoap(android open accessory protocol) to communicate with the Android phone. However, my project requires me to establish communication between PC and ANDROID via a USB cable without a micro controller. Also i would like to know how to program such an application,what software should i use,what languages do i need to know? What should be step 1?.
Hello
I've got my hand on a BEISTA K107, a low end Android tab with Android 10.0 on it.
I'm trying to setup a photobooth but the tablet do not detect my DSLR when I plug it in USB. The tablet is supposed to be OTG compatible but It seems that it's not usb host compatible
Any idea how to correct that ?
I've try rooting it without success
@zeph
Support for USB host and/or USB accessory modes are ultimately dependant on the device's hardware, regardless of Android platform level.