[how to] usb otg - HTC Jetstream

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

Related

[Q] enable USB Host Mode?

Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
KnightRid said:
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
Click to expand...
Click to collapse
PC mode possibly? could be debugginf mode? try all the modes we have if one works then there you go. I have never heard of USB host mode
Here is the link - http://forum.xda-developers.com/showthread.php?t=1202082 to the DSLR program I am talking about. Something about some phones can enable the USB host for communication between the phone and external devices while others cant.
I'm assuming you aren't sure how to enable USB Host mode? If that is correct, here is how to ensure it's enabled. This will work if you are on stock or a custom ROM (unless the custom ROM removed it which I doubt):
Click the Menu button and select Settings
Scroll down until you see Applications and select it
Select the Developer menu item in the Application settings menu you are currently in.
Ensure USB Debugging is checked. This is necessary and important.
After that, you can pull down the notification bar and you should see a "USB connection" option. You can select that and you'll get a new window with radio button choices. Mine has the following (running Eclipse 1.3):
PC Mode
USB Mass Storage
Phone as Modem
Charge Only
PC Mode allows you to access the SD Care from Windows and within ADB shell. In this mode, it allows access to what is on your internal and external SD card in the same window.
USB Mass Storage mode means that it will mount the internal and external SD cards as separate drives on your windows machine and your phone won't have access to them until you either disconnect the phone from the PC or else, go to a different USB mode.
Phone as Modem - I never use this but it allows you to use your phone as a modem for your PC. Ahh, the old days of modems. I remember running 300 baud. When I went to 1200 baud, I thought I was styling!
Charge Only - In this mode, it's only using the USB connection as a charger. You won't have access to the sd cards from within Windows, but they will be accessible from your phone.
It sounds like you want the "USB Mass Storage" mode from what you've stated.
Hopefully this helps.
KnightRid said:
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
Click to expand...
Click to collapse
First of all you need a kernel which has usb host mode enabled and a terminal.
You can check out this for information on USB OTG cables:http://tech2.in.com/how-to/accessor...sb-otg-cable-for-an-android-smartphone/319982
As, Levprez has pointed out you will need a kernel (not a ROM!) with USB OTG support.
Once, you have USB OTG support (and it is enabled) you can plug a device into the normal usb connector on the USB OTG cable...if it works at all...it should detect and setup the device like normal.
I recently test OTG support on my DX2, and it appears to be working. (firmware is 4.5.1A-DTN-150-30, kernel is 2.6.32.9-00005-g2440aba)
To verify status of USB OTG support, check if /proc/config.gz (compessed configuration file used for building kernel that currently installed in device) has 'CONFIG_USB_TEGRA_OTG=y' in it. If so, your kernel supports otg mode.
However, in order to connect usb device to phone you need a special otg cable with support of external +5V power. Phone itself doesn't provide required power for connected devices, which may be bad - you need additional power source for usb devices - or good - while connecting other devices you can also charge phone from external source.
Initially supported various HIDs (keyboards, mice and some gamepads) and mass storage devices (flash drives, external hdds and such), though flash drives require manual mounting within scripts or terminal emulator and, obviously, require root. Alternatively, you can add other drivers (because it's linux and source code of kernel available) to support any device you need, for example drivers for other android device xD
Droid x2 to control camera
Levprez said:
First of all you need a kernel which has usb host mode enabled and a terminal.
Click to expand...
Click to collapse
hi please let me know if you figure this out? because i also have a droid x2 and a rebel t3i and have the same idea in mind! it works on my transformer prime, but that is too big to be useful on the go. I don't think too many devices support the usb host mode except very new ones?

[Q] USB host?

When you plug a USB thumbdrive to the phone, it first recognises the drive name but doesn't show any options to use it (even in file manager).
Maybe it's due to the connection type (MTP only)...
Any ideas?
Can you access your files in your USB thumbdrive using the file manager?
I'm using Astro Manager to access, and play my video files directly from the USB thumbdrive.
In fact, I just realised I can access if I keep pushing the cable to the phone... Maybe the cable connection isn't that good. I'll buy a new one.
New mission will be to enable wake using volume key which might be more difficult...
Thank you for your answer!
On my tablet , I use USB host ( full usb connection ) , which means I can plug in a pen drive , keyboard , mouse etc...
Can I do this on the Xperia S ???
With a micro usb adaptor I assume ??
Just found a Vid : The answer to my question is yes !
http://www.xperiablog.net/2012/03/09/xperia-s-usb-otg-demonstrated-video/

[Q] Pushing files via adb from one android device to another

As long as I have the requisite SDK files and a terminal on an Android device, or if I'm doing this programmatically in an app I'd develop, can I use adb to push a file from one device to another that's connected via USB? The devices will be a Nexus 4 and probably a Nexus 7. The N7 would be the sender, fwiw. I'm hoping that it's not required that the device executing the adb push commands be a computer as opposed to a mobile device.
I'm assuming that I can find a cable that's micro USB (if that's what it's called) at both ends to connect the two devices.
Is it possible to do the same thing via a Bluetooth connection? Or can adb only recognize a device connected via USB?
maigre said:
As long as I have the requisite SDK files and a terminal on an Android device, or if I'm doing this programmatically in an app I'd develop, can I use adb to push a file from one device to another that's connected via USB? The devices will be a Nexus 4 and probably a Nexus 7. The N7 would be the sender, fwiw. I'm hoping that it's not required that the device executing the adb push commands be a computer as opposed to a mobile device.
I'm assuming that I can find a cable that's micro USB (if that's what it's called) at both ends to connect the two devices.
Is it possible to do the same thing via a Bluetooth connection? Or can adb only recognize a device connected via USB?
Click to expand...
Click to collapse
If you tried this you would need a usb otg cable for connecting the devices. But I don't think ADB client software exists on phones just computers. Why would you want his when Android has multiple better choices? Turn on NFC and tap the device backs together for example.
shadowofdarkness said:
If you tried this you would need a usb otg cable for connecting the devices. But I don't think ADB client software exists on phones just computers. Why would you want his when Android has multiple better choices? Turn on NFC and tap the device backs together for example.
Click to expand...
Click to collapse
I have adb on my Nexus devices. I didn't even put it there, though BusyBox might have. It's in /system/bin. I can execute commands from a terminal. But I haven't tried it with another device. I'll get an OTG cable.
I'd use NFC or make one of the devices a ftp server, but that doesn't meet the needs of the project I’m working on. This isn't for personal use or convenience. I need to have one device send another a file within a certain physical environment that precludes those things.
maigre said:
I have adb on my Nexus devices. I didn't even put it there, though BusyBox might have. It's in /system/bin. I can execute commands from a terminal. But I haven't tried it with another device. I'll get an OTG cable.
I'd use NFC or make one of the devices a ftp server, but that doesn't meet the needs of the project I’m working on. This isn't for personal use or convenience. I need to have one device send another a file within a certain physical environment that precludes those things.
Click to expand...
Click to collapse
Hello Maigre,
Have you finished your experiment with the OTG cable ? I would try to do the same kind of operation.
And if I add and USB cable to the USB-OTG cable, do you know if it's working ? (I found only a micro-USB male to USB female OTG cable, and I would use it with a USB male to micro-USB male cable).
Thank you in advance,
Greg

[Q] measy B4K usb debugging when theres no usb micro port ?

Hi,
i recently gotten hold of an allwinner A31 device being the measy B4K. (http://www.measy.com.cn/product/showproduct75_en.htm)
I also gotten hold of a firmware update for this device from a guy that was in contact with measy support using a chinese friend:
http://www.freaktab.com/showthread....S918S-firmware&p=130534&viewfull=1#post130534
firmware rom download is here : https://alimail.alibaba.com/alimail...eb961&[email protected]
Now from what i've seen from other a31 devices is that you have to use the phoenixlivesuite to upload the firmware and you need usb debugging for this (the tool itselve says so also). but the device only has 2 female usb ports and no usb micro port not even on the PCB that i can see when i opend the box. One of the guys bought a normal male to male usb cable and tried in the diffrent usb slots but was not able to get any response. some others said that you need an usb otg cable but does that even exist for a usb male to male cable ? (if so where) if not would using a micro sd cable from my phone with a usb micro female to usb male adapter do the trick ?
also the img file is in some special format but it can be unpacked well almost all files using the tool from this thread http://forum.xda-developers.com/showthread.php?t=1753473 and it gives me all kind of *.fex files like uboot.fex, recovery.fex etc it only had problems with one fex file being sys_partition.fex but i did get a system.fex of 400mb.
i have root on the device also and i can get into recovery mode using a reboot to recovery apk however it's useless since i can't move around in it, the remote don't work, nor a keyboard attached to it and it has no physical buttons.
Anyway my main question is what sort of cable should i get to get this work a usb male to usb male or just some usb female to usb male adapter + usb micro phone cable to get usb debugging working so i can at least get windows to recognize the device.
I'm also posting this for other people since i don't think many people know about that firmware file for b4k, perhaps others having the same device have more luck
thanks

LG USB Drivers

I have second hand LG-LS970 running 4.1.2 and am looking to root it. Before I do I wanted to use a USB program like LGFlashTool to copy the stock roms off and give me a way to back out if I soft brick it. I cannot seem to get the drivers to show up in device manager. What am I doing wrong?
astromaphilli14 said:
I have second hand LG-LS970 running 4.1.2 and am looking to root it. Before I do I wanted to use a USB program like LGFlashTool to copy the stock roms off and give me a way to back out if I soft brick it. I cannot seem to get the drivers to show up in device manager. What am I doing wrong?
Click to expand...
Click to collapse
First off have you installed the official drivers from LG's website?
shimp208 said:
First off have you installed the official drivers from LG's website?
Click to expand...
Click to collapse
yes, and I hoped that it was going to show as a device under ports in device manager?! Is it just a standard TypeB USB cable?
astromaphilli14 said:
yes, and I hoped that it was going to show as a device under ports in device manager?! Is it just a standard TypeB USB cable?
Click to expand...
Click to collapse
Sorry for the delay I was out of town the last couple of days. It should indeed be just a standard Type B USB cable, are you using the cable that came with your phone? Also make sure it's a Type B USB cable that is capable of both Power and Data transfer. Some cables are just capable of power transfer and not data transfer since they don't have the d+ and d- wires inside them.
shimp208 said:
Sorry for the delay I was out of town the last couple of days. It should indeed be just a standard Type B USB cable, are you using the cable that came with your phone? Also make sure it's a Type B USB cable that is capable of both Power and Data transfer. Some cables are just capable of power transfer and not data transfer since they don't have the d+ and d- wires inside them.
Click to expand...
Click to collapse
I have another one, not the original one and it works as data transfer and power to PC for other 'droid phones. Should it show up as a device in device manager?
astromaphilli14 said:
I have another one, not the original one and it works as data transfer and power to PC for other 'droid phones. Should it show up as a device in device manager?
Click to expand...
Click to collapse
It should show up in device manager if that is cable that you are using. Does the device show up in Windows Explorer as an attached storage device? Also make sure in settings on your phone you have USB Debugging enabled, I have had issues in the past with drivers being installed and devices not showing up. What happens is once USB Debugging is enabled the device will pop up in Windows Explorer and say it's installing the drivers. Just let it install the drivers it thinks it needs and it should work. Let me know if this helps ! If your still having problems still happy to help :good:.

Categories

Resources