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:
- Mini USB connector - connects to the "Mini USB Female to USB A Female adapter"
- Male USB A Power (the thinner wire) - connects to your charger
- 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)
- 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):
mount -o uid=1000,gid=1015,fmask=0702,dmask=0702 /dev/block/sda1 /mnt/sdcard/usb
It shows me like this.Is it ok or some thing wrong ?
# 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)
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.
# 0702 /dev/block/sda1 /mnt/sdcard/usb1