Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
photon4glover
Old
#1  
photon4glover's Avatar
Senior Member - OP
Thanks Meter 27
Posts: 176
Join Date: Mar 2012
Default Otg

Photon supports like plugging USB keyboard in right??

Sent from my Iced out MoPho
 
zansatsu
Old
(Last edited by zansatsu; 10th July 2012 at 05:43 PM.) Reason: Aesthetics/Readability
#2  
Member
Thanks Meter 21
Posts: 82
Join Date: Aug 2010
Depending on your kernel, which is very heavily dependent on the ROM you are using, yes.

However, you will need a few things:
  • Research before you start.


  • A USB Host Cable: This grounds the 5th pin (the "Host ID" pin) so that your Photon hardware knows to take over devices connected to it:
    USB Host Cable: Example: Amazon

  • A USB Y Cable: Your Photon supplies a miniscule amount of power (about 100mA) so you will need to make or purchase a USB Y Cable. This will allow your USB devices to be powered from a charger while connecting to your Photon as host:
    USB Y Cable: Read about it here.

  • A charger with at least 1A+ (1000mA+) of power. You will want to keep the phone charged while powering accessories.
    A Note of Caution: You can find this in many places. Remember that the power rating is very important but be aware that a cheap charger may overvolt under certain load conditions and damage components. This isn't incredibly common, but it can happen. Just be mindful. I use an iEssentials 2.1A charger that I found for a reasonable price.

  • A handy app called:
    USB Host Diagnostics by Chainfire:Find it here.



Remember that support for USB Host Mode must be built/baked into the kernel for OTG to work.

I use:

Cybik's CM7 Nightlies
Oleg Fusion 1.3 CM7 Kernel



A few things I forgot:

If you can only find a USB Y Cable with three male connectors, you will need a USB Female to Female adapter (AKA Gender Changer) to connect a male end of the USB Y Cable to a USB Hub or Accessory.
USB Gender Changer: F/F:Example: Amazon



The connections should look like this:
  • USB Host Cable to Phone
  • USB Y Cable: Male to USB Host Cable: Female
  • USB Y Cable: Male to USB Charger: Female


    with gender changer:
  • USB Y Cable: Male to Female/Female adapter to USB Hub or Accessory: Male


    without gender changer:
  • USB Y Cable: Female to USB Hub or Accessory: Male




YMMV. Good luck!
The Following User Says Thank You to zansatsu For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...