iOS IOs serial programming

aleza84

macrumors newbie
Original poster
Jan 24, 2014
15
0
Hi

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?
 

xArtx

macrumors 6502a
Mar 30, 2012
764
1
Hi

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?
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.
 

firewood

macrumors 604
Jul 29, 2003
7,645
872
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.
 

ArtOfWarfare

macrumors G3
Nov 26, 2007
8,565
3,978
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.
 

aleza84

macrumors newbie
Original poster
Jan 24, 2014
15
0
Thankse verybody for the info, how about bluetooth programming, whats the pointer there? Any hints?