Page 1 of 4 1234 LastLast
Results 1 to 10 of 40
Discuss trying to use the serial port at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; i am trying to use the iPhone's serial port via IOKit. i wrote a litte ...
  1. #1
    Rookie Array

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

    Default trying to use the serial port

    i am trying to use the iPhone's serial port via IOKit. i wrote a litte app that lists all "serial" devices of the iPhone. here is what i get:

    iap /dev/tty.iap /dev/cu.iap
    baseband /dev/tty.baseband /dev/cu.baseband
    bluetooth /dev/tty.bluetooth /dev/cu.bluetooth
    debug /dev/tty.debug /dev/cu.debug

    i am curious what "iap" might be? anyone here has a good guess where the serial port is hiding?

    the above list was generated with code like such:

    Code:
    CFDictionarySetValue(classesToMatch, 
                                     CFSTR(kIOSerialBSDTypeKey),
                                     CFSTR(kIOSerialBSDAllTypes));
    IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator);
    anyone?
    thanks,
    ipj



  2. #2
    Senior Professional Array dragon-tmd's Avatar

    Join Date
    Jul 2007
    Posts
    147
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    Afaik IAP means "Interface for Application Portability (IAP)". Often used in UNIX developing.

  3. #3
    Rookie Array

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

    Default

    thanks, that's interesting. i also noticed that there is:

    Code:
    System/Library/Frameworks/IAP.framework/IAP 
    System/Library/Frameworks/IAP.framework/Support/iapd
    not sure if that's related to the /dev/iap though....

  4. #4
    Advanced Array

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

    Default

    What serial port are you talking about here?
    The USB serial?
    Are you trying to cu out to talk to RS232 devices like a Cisco?

  5. #5
    Rookie Array

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

    Default

    i am trying to use the RS232 serial port via IOKit. so i used a simple IOKit serial example to list all the ports that fit the most general RS232 device type, see code above. however, what i get back, doesn't look like any real RS232 port is available on the iphone.

    i would love to get some input for folks who know more about IOKit.

    thanks,
    -ipj


  6. #6
    Advanced Array

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

    Default

    Quote Originally Posted by iphonejoe View Post
    what i get back, doesn't look like any real RS232 port is available on the iphone.
    Where do you think the RS232 port is located?

  7. #7
    Advanced Array

    Join Date
    Aug 2007
    Location
    Cambridge, MA, USA
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I would be really surprised if they hid access to an RS232 interface in the dock cable.

    Not even mac desktops or laptops come with real RS232 ports these days do they? Thats why they sell USB to RS232 dongles for those unlucky few who HAVE to have RS232.

  8. #8
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    151
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    My guess would have been iPod Accessory Port....

  9. #9
    Newbie Array

    Join Date
    Jul 2007
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    If they left the RS232 port from the iPod connector, then it won't be RS232. It's just TTL, but with a max232 chip it can be easily converted to RS232 levels...

  10. #10
    Rookie Array

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

    Default

    http://ipodlinux.org/Dock_Connector

    also, all arround the net, i can read this:

    "
    we got a serial console working, here is how
    the serial has the same pinouts as iPod serial
    use a 6.8kish resistor from pin 21 to gnd
    tie pin 11-sergnd to the real ground
    use iphoneinterface to send the following commands in recovery mode:
    setenv debug-uarts 1
    saveenv
    reboot
    "

    so since the iphone has a dock connector, i assume(d) that there is serial (TTL or RS232). the trick is how to use it via IOKit?
    Last edited by iphonejoe; 09-11-2007 at 08:14 AM.


 

 
Page 1 of 4 1234 LastLast

Similar Threads

  1. Serial Port
    By Sheerz in forum Kernel / Kext (Driver) Support
    Replies: 1
    Last Post: 03-25-2010, 12:28 AM
  2. serial port problems
    By netboy in forum Installation
    Replies: 0
    Last Post: 03-02-2010, 06:10 PM
  3. Serial Port Input Assistance
    By damagedpunk in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 01-13-2010, 12:49 PM
  4. Serial Port access
    By SierraDog in forum iPod Touch 2G
    Replies: 0
    Last Post: 07-27-2009, 11:30 PM
  5. Bluetooth Serial Port Protocol?
    By burkferden in forum iOS 3.x (iPhone OS 3.x)
    Replies: 0
    Last Post: 07-27-2009, 01:32 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 08:28 PM.
twitter, follow us!