Page 1 of 2 12 LastLast
Results 1 to 10 of 13
Discuss [Req] Use iPhone as an USB Host Storage Device ? at the Hardware - Hackint0sh.org; Now that the free SW unlock solution is here, maybe some of the iPhone hardware ...
  1. #1
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default [Req] Use iPhone as an USB Host Storage Device ?

    Now that the free SW unlock solution is here, maybe some of the iPhone hardware experts out there have had some time to dedicate to other cool hacks.

    Any word on using the iPhone as a USB host? The iPods have had USB On-The-Go (which supports USB in both host and client mode) for quite some time now, but no one seems to have figured out how to use it. Except for the photo card reader, that is.

    I really want to be able to plug my iPhone into my 80gb iPod to give me full access to my music library and videos on the big screen. I'm sure plenty of others are frustrated with the capacity of the iPhone too...



  2. #2
    Newbie Array

    Join Date
    Sep 2007
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hey, this is what I've found: http://jima4media.wiki.zoho.com/iPhone-Contents.html
    (My little geek-heart is soaring!).

    I, too am looking in to connecting peripherals to the iphone via it's dock connector/pin out so as to extend the iphone with external memory/memory cards.

    I'm a complete n00b as far as programming goes so I don't have much experience to offer you, but I'd love to plug away at this project with you if you'd like!

  3. #3
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    This is actually looking a lot more feasible than I initially thought. According to this:

    http://www.roughlydrafted.com/RD/RDM...5A410D108.html

    ...the iPhone is already running a USB host kernel extension -- the touch screen is connected internally by USB HID. The Human Interface Device protocol isn't useful for data transfer (not at any significant speed anyway), but at least some of the framework for USB host mode is present.

    I was also able to find some references to USB OTG C stacks (drivers) for ARM out on the web. Nothing free yet, but I'll keep looking around.

  4. #4
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Apple has a whole lot of information on interacting with USB through IOKit, which appears to run on the iPhone as mentioned above. Here's the main link:

    http://developer.apple.com/documenta...ook/index.html

    I only spent about 10 minutes on this today, but I was able to compile USBSimpleExample from Xcode's example files and run it on the iPhone. The source code is in /Developer/Examples/IOKit/USB/ in case anyone wants to play around with it.

    USBSimpleExample as-is doesn't do anything particularly useful, but if it finds the Product/Vendor ID specified in main, it will spit out some stuff. If it doesn't find anything, it runs and terminates silently. Since I can't connect any USB devices to my iPhone yet, the program does nothing. But it does compile and run without errors, so that's at least semi-encouraging.

    If anyone knows the product & vendor ID for the touchscreen (or how to find it), I could try to access that. At least this would give us an idea of whether or not the IOKit stuff is working.

    My plan now is to pull the USB pinout standards for OTG devices and see if I can make up an adapter to connect a USB memory stick. I'd have to imagine that the iPhone dock pinout is the same as the iPods as far as USB is concerned.

  5. #5
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    We all know that the iPod 'Camera Connector' doesn't work with the iPhone, but I think it's a great platform for testing the feasibility of getting the iPhone to work as a USB host. I disassembled one last night and confirmed that according to this iPod pinout:

    http://pinouts.ru/Devices/ipod_pinout.shtml

    the Camera Connector wires the USB D+, D-, and GND signals directly from the dock connector to its USB port. The iPod/iPhone supplies +3.3v on pin 18, but +5v is required to operate as a USB host. To achieve this, the Camera Connector appears to have a DC-DC converter that supplies the V_bus pin on the outgoing USB port.

    There is also a microcontroller on the board which I'm assuming communicated via the iPod serial lines to tell it to go into photo download mode. Based on limited testing, it probably controls the DC-DC converter as well, so when connected to the unsupported iPhone, the required 5v supply is turned off. I'm going to see if I can get that supply turned on manually...

    Will see if I can post some pictures of the board tonight.


  6. #6
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    So I was crossing my fingers that the iPhone would recognize that a device had been connected to its USB port and switch into Host mode. Didn't think it was that likely, but it was a bit of a letdown. I got no sign of a USB device from my test program with my memory stick plugged into my hacked Camera Connector.

    So now I'm off to find a way to switch on host mode for the external port. I can't believe that Apple would have disabled it completely; I'm sure they plan to take advantage of OTG at eventually.

  7. #7
    Newbie Array

    Join Date
    Jun 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Did you ever get USB Host to work?

    If so can we speak?

  8. #8
    Newbie Array

    Join Date
    Sep 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Any progress?

  9. #9
    Advanced Array

    Join Date
    Mar 2007
    Posts
    40
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    This would be one of the most useful additions to the iPhone, which should have been there to begin with.

  10. #10
    Newbie Array

    Join Date
    Sep 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Small update

    If the iPhone "does" have USB OTG (which isn't confirmed), then in order to use the dock connector as a Host Port, we need to find the USB ID pin.

    Standard USB has 4 pins (D+ D- 5V G). USB OTG has 5 Pins (D+ D- 5V G & ID). The cable is what determines if the port is used as Host or Peripheral. The ID Pin is grounded to the G Pin on the host side of the cable, and on the peripheral side the ID Pin is left open.

    So far in all of the iPod / iPhone Dock Connector Pinouts, the D+ D- 5V and G pins have been identified, but not the ID pin. That Pin needs to be found.

    Then, all you need to do is get a dock breakout board, solder the ID Pin to the G pin and then solder a Female USB Host Port to the 4 standard USB pins.


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Exporting the iPhone filesystem via USB Mass Storage device
    By mikishapiro in forum Free Toolchain Software (Cydia App's)
    Replies: 3
    Last Post: 09-30-2010, 04:07 PM
  2. MacNN: India's $10 laptop actually storage device
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 02-04-2009, 10:50 PM
  3. MacNN: LaCie debuts Ethernet Disk 6TB storage device
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 12-19-2008, 01:30 PM
  4. Replies: 8
    Last Post: 08-04-2008, 06:36 PM
  5. [Advice] Mac Network Storage device
    By mike_hicks27 in forum Genuine Mac Support
    Replies: 3
    Last Post: 07-22-2008, 02:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:25 PM.
twitter, follow us!