IOs serial programming

Discussion in 'iOS Programming' started by aleza84, Apr 17, 2014.

  1. aleza84 macrumors newbie

    Jan 24, 2014

    I am startin to dig into cocoa, I wanted to learn a bit more about serial interfacing from ios.

    Any good pointers you can refer me to?
  2. xArtx macrumors 6502a

    Mar 30, 2012
    Yeah, forget it :D
    Or better still, when you figure it out tell the rest of us!

    We aren't given access to the serial port outside of xcode NSlog statements.
    The protocol for iPod control has been figured out but that doesn't help
    anyone connect an external GPS or serial barcode scanner, etc.

    There are a couple of apps that use a serial port with a special cable.
    One is called "Get Console", and the other is an astronomy App that can use
    a serial cable to control a telescope.
    Both of these cables have a microcontroller in them to tell iOS that they are
    authorised to allow their associated App to use the serial port, but even though
    the cables are the same, the chip inside them that identifies itself to iOS
    will only work with the App it's intended for,
    So you'd need to buy two identical serial cable hardware to use both Apps
    just because the microcontrollers in them have some different keys.

    iOS is aware of either of these cables being connected.
    Both of them come up in the iOS settings menu when they are connected.
  3. aleza84 thread starter macrumors newbie

    Jan 24, 2014
  4. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    RedPark makes/sells a serial interface cable for iOS devices. They have an SDK for serial comm testing using their cable.

    There also seem to be some Bluetooth LE products (Arduino shields, etc.) available that allow one to communicate with serial port hardware.
  5. ArtOfWarfare macrumors G3


    Nov 26, 2007
    Actually, it's not a huge mystery, you just have to be enrolled in the right programs for Apple to let you know how to use it. The standard iOS developer program isn't enough - you need to be in the Made for iOS program.

    I could explain how everything works, but then I'd be violating an NDA.
  6. aleza84 thread starter macrumors newbie

    Jan 24, 2014
    Thankse verybody for the info, how about bluetooth programming, whats the pointer there? Any hints?
  7. 1458279 Suspended


    May 1, 2010
    IIRC, Ray has a tutorial on BT. I think it was a game the used BT to comm between the two devices.

    He's got a forum there too, might find more info there.

Share This Page