Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Guide] USB Host

OP nerd65536

27th December 2012, 03:01 PM   |  #51  
devgee's Avatar
Senior Member
Thanks Meter: 192
 
476 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by TerrorApple

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: [ View ]
27th December 2012, 03:43 PM   |  #52  
Goatshocker's Avatar
Senior Member
Thanks Meter: 409
 
941 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by motabass

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?
28th December 2012, 12:30 AM   |  #53  
TerrorApple's Avatar
Member
Thanks Meter: 5
 
52 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by devgee

Yep, u just need the OTG Adapter!

Awesome, can't wait!
1st January 2013, 01:36 AM   |  #54  
devgee's Avatar
Senior Member
Thanks Meter: 192
 
476 posts
Join Date:Joined: Dec 2011
Donate to Me
More
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
1st January 2013, 07:18 PM   |  #55  
Senior Member
Thanks Meter: 13
 
127 posts
Join Date:Joined: Jan 2011
More
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?
1st January 2013, 09:02 PM   |  #56  
Member
Thanks Meter: 2
 
34 posts
Join Date:Joined: Sep 2010
Quote:
Originally Posted by razlack

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: [ View ]
12th February 2013, 01:31 PM   |  #57  
Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Jun 2008
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.
12th February 2013, 04:50 PM   |  #58  
Senior Member
Flag Peachtree City
Thanks Meter: 62
 
329 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Re: [Guide] USB Host
Quote:
Originally Posted by spruggs

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
12th February 2013, 05:23 PM   |  #59  
Goatshocker's Avatar
Senior Member
Thanks Meter: 409
 
941 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by jmcoffey

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...
1st April 2013, 04:43 AM   |  #60  
Sachintha chaminda's Avatar
Senior Member
Flag Kandy
Thanks Meter: 277
 
292 posts
Join Date:Joined: Aug 2012
Donate to Me
More
Quote:
Originally Posted by nerd65536

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:
    su
    mkdir /mnt/sdcard/usb
    mount -o uid=1000,gid=1015,fmask=0702,dmask=0702 /dev/block/sda1 /mnt/sdcard/usb
    To unmount:
    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

The Following User Says Thank You to Sachintha chaminda For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
usb, usb host
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes