Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,971 Members 44,772 Now Online
XDA Developers Android and Mobile Development Forum

[Guide] USB Host

Tip us?
 
devgee
Old
#51  
devgee's Avatar
Senior Member
Thanks Meter 189
Posts: 471
Join Date: Dec 2011

 
DONATE TO ME
Quote:
Originally Posted by TerrorApple View Post
Waiting for ViperOneS JB release but is it now possible using USB OTG without all these cables?
Yep, u just need the OTG Adapter!

Gesendet von meinem HTC One S mit Tapatalk 2
The Following User Says Thank You to devgee For This Useful Post: [ Click to Expand ]
 
Goatshocker
Old
#52  
Goatshocker's Avatar
Senior Member
Thanks Meter 407
Posts: 941
Join Date: Oct 2010
Quote:
Originally Posted by motabass View Post
Now this kernel has full OTG support with power from usb.

http://forum.xda-developers.com/show...php?p=31534830

Is this the only kernel that supports full OTG? Or does some rom like viperS have this function build in?
Quick ADB Pusher v0.5 (discontinued)
--------------------------------------------------------------------
Phone(ancient junk): ZTE Blade some CM11 build
Tablet 7": Novo 7 Basic running stock HC 3.2.1
Tablet 10": ASUS Transformer TF101 16GB running Team EOS nightly (build 26)

Phone(new): HTC One S S4 running Dark Jelly S CM10 build23
Phone(junk): Xperia P running resurrection remix or Honami MW
Phone(Newest): Galaxy S4 Mini running slimKat
-----
ლ(ಠ益ಠლ) Y U NO THANK ME? ლ(ಠ益ಠლ)
 
TerrorApple
Old
#53  
TerrorApple's Avatar
Member
Thanks Meter 5
Posts: 50
Join Date: Aug 2012
Quote:
Originally Posted by devgee View Post
Yep, u just need the OTG Adapter!
Awesome, can't wait!
 
devgee
Old
#54  
devgee's Avatar
Senior Member
Thanks Meter 189
Posts: 471
Join Date: Dec 2011

 
DONATE TO ME
You can try it out in all jellybean roms including cm10, jellybam, pacman and viperone s(with zarboz latest kernel)
For cm10 and the other u need the app stickmount and this

http://item.mobileweb.ebay.de/viewit...id=67133434518

For jellybean roms u just need the adapter http://item.mobileweb.ebay.de/viewit...id=67133434518

Wish you all a wounderful New Year!

Gesendet von meinem HTC One S mit Tapatalk 2
 
razlack
Old
#55  
Senior Member
Thanks Meter 12
Posts: 116
Join Date: Jan 2011
Hi guys. This has probably been asked already but I have an unrooted HTC one s running JB. Does OTG work and provide power via the Ian port on the standard official rom with just the OTG cable?
 
RockLee91
Old
#56  
Member
Thanks Meter 2
Posts: 34
Join Date: Sep 2010
Quote:
Originally Posted by razlack View Post
Hi guys. This has probably been asked already but I have an unrooted HTC one s running JB. Does OTG work and provide power via the Ian port on the standard official rom with just the OTG cable?
Yes with the new OTA (jb) you onli need a normal OTG cable to connect any usb device (keyboard,mouse, usb key).
The Following 2 Users Say Thank You to RockLee91 For This Useful Post: [ Click to Expand ]
 
spruggs
Old
#57  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Jun 2008
Default USB Flash Drive

My One S is Jelly Bean 4.1.1 (un-rooted)

The problem I have is basically this.

I have a Micro-B Usb Otg On The Go Cable and Integral MicroSD USB Card Reader with a 32gb Micro SD.

When I first put all this together and plugged into the USB slot of the phone everything was fine, the little red light on the Integral MicroSD USB Card Reader was lit up. The message of Unable To Charge Device was coming up but the phone was also mounting the storage for reading via Astro File Manager no problem, so I was able to play MP3's and 4's and so on. But then it literally just stopped reading the Micro SD card and the Micro USB Card Reader is not lighting up at all.

Any help will be greatly appreciated as I am at a lost as to why it would be working perfectly one second and then not another.

Thanks you.
 
jmcoffey
Old
#58  
Senior Member
Thanks Meter 61
Posts: 329
Join Date: Dec 2011
Location: Peachtree City

 
DONATE TO ME
Default Re: [Guide] USB Host

Quote:
Originally Posted by spruggs View Post
My One S is Jelly Bean 4.1.1 (un-rooted)

The problem I have is basically this.

I have a Micro-B Usb Otg On The Go Cable and Integral MicroSD USB Card Reader with a 32gb Micro SD.

When I first put all this together and plugged into the USB slot of the phone everything was fine, the little red light on the Integral MicroSD USB Card Reader was lit up. The message of Unable To Charge Device was coming up but the phone was also mounting the storage for reading via Astro File Manager no problem, so I was able to play MP3's and 4's and so on. But then it literally just stopped reading the Micro SD card and the Micro USB Card Reader is not lighting up at all.

Any help will be greatly appreciated as I am at a lost as to why it would be working perfectly one second and then not another.

Thanks you.
It all depends on how much battery you have. If I remember correctly, less that 45 percent makes OTG not usable for me.

Sent from my HTC VLE_U using xda app-developers app
 
Goatshocker
Old
#59  
Goatshocker's Avatar
Senior Member
Thanks Meter 407
Posts: 941
Join Date: Oct 2010
Quote:
Originally Posted by jmcoffey View Post
It all depends on how much battery you have. If I remember correctly, less that 45 percent makes OTG not usable for me.

Sent from my HTC VLE_U using xda app-developers app

Seriously? 45%? Thats worse than useless!
When I use OTG I normally use it until the device is about to die (<10%). Im not on stock JB though...
Quick ADB Pusher v0.5 (discontinued)
--------------------------------------------------------------------
Phone(ancient junk): ZTE Blade some CM11 build
Tablet 7": Novo 7 Basic running stock HC 3.2.1
Tablet 10": ASUS Transformer TF101 16GB running Team EOS nightly (build 26)

Phone(new): HTC One S S4 running Dark Jelly S CM10 build23
Phone(junk): Xperia P running resurrection remix or Honami MW
Phone(Newest): Galaxy S4 Mini running slimKat
-----
ლ(ಠ益ಠლ) Y U NO THANK ME? ლ(ಠ益ಠლ)
 
Sachintha chaminda
Old
#60  
Sachintha chaminda's Avatar
Senior Member
Thanks Meter 273
Posts: 291
Join Date: Aug 2012
Location: Kandy

 
DONATE TO ME
Quote:
Originally Posted by nerd65536 View Post
USB host lets you hook up external USB devices to your phone, like a keyboard, mouse, USB drive, etc..

Unlike devices which are designed to support USB host, the One S doesn't provide power to the peripheral. That means we need a few more adapters/cables to get it to work (and we need an external power source).
Purchase links are listed for all the required cables/adapters.

You will need:
  • USB Host adapter (The otherwise unused 5th pin on a micro-usb connector is grounded) dx.com/m-129671
  • Mini USB power Y cable (this kind of cable is often packaged with portable hard drives) dx.com/u-65630
  • Mini USB Female to USB A Female adapter This package comes with two, but you only need one. dx.com/u-55613
  • Your charger

Assemble the cable:
  • The micro USB of the "USB Host adapter" connects to your phone.
  • Your peripheral plugs into the female end of the "Mini USB Female to USB A Female adapter"
  • The "Mini USB power Y cable" has three connectors:
    1. Mini USB connector - connects to the "Mini USB Female to USB A Female adapter"
    2. Male USB A Power (the thinner wire) - connects to your charger
    3. Male USB A - connects to the "USB Host adapter"
That's all. As long as your ROM supports the peripheral, it will work.
Some fun peripherals to try:
  • Powered USB hub (You can also power the adapter from one of the hub's ports)
  • Keyboard
  • Mouse (a cursor will appear on your device)
  • USB flash drives and USB hard drives must be FAT32. You have to run a few commands to use a USB drive. Mount manually from the shell (use Connectbot or Terminal Emulator):
    Code:
    Select Code
    su
    mkdir /mnt/sdcard/usb
    mount -o uid=1000,gid=1015,fmask=0702,dmask=0702 /dev/block/sda1 /mnt/sdcard/usb
    To unmount:
    Code:
    Select Code
    su
    umount /mnt/sdcard/usb




It shows me like this.Is it ok or some thing wrong ?


$ su
#su
# mkdir /mnt/sdcard/usb
# mount -o
option requires an argument -- oBusyBox v1.20.2-cm7 bionic (2012-07-17 15:18 +0200) multi-call binary.

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

-a Mount all filesystems in fstab
-f Dry run
-r Read-only mount
-w Read-write mount (default)
-t FSTYPE[,...] Filesystem type(s)
-O OPT Mount only filesystems with option OPT (-a only)
-o OPT:
loop Ignored (loop devices are autodetected)
[a]sync Writes are [a]synchronous
[no]atime Disable/enable updates to inode access times
[no]diratime Disable/enable atime updates to directories
[no]relatime Disable/enable atime updates relative to modification time
[no]dev (Dis)allow use of special device files
[no]exec(Dis)allow use of executable files
[no]suid(Dis)allow set-user-id-root programs
[r]shared Convert [recursively] to a shared subtree
[r]slaveConvert [recursively] to a slave subtree
[r]private Convert [recursively] to a private subtree
[un]bindable Make mount point [un]able to be bind mounted
[r]bind Bind a file or directory [recursively] to another location
move Relocate an existing mount point
remount Remount a mounted filesystem, changing flags
ro/rw Same as -r/-w

There are filesystem-specific -o flags.

# uid=1000,gid=1015,fmask=0702,dmask=
# 0702 /dev/block/sda1 /mnt/sdcard/usb1
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
MY WORK


Update Galaxy Y S5360 to KitKat- http://z.gs/1uhd

Visit my site - http://z.gs/1kXt
.

Record 480p video using your vodafone 858 or huawei 8180


Root your vodafone 858 or u8180


[Rom] HR rom for vodafone 858 and huawei u8180

Guide for Rom devs - Here
.


PRESS THANK BUTTON IF I HELPED YOU ! ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

The Following User Says Thank You to Sachintha chaminda For This Useful Post: [ Click to Expand ]
Tags
usb, usb host
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes