Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

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?
 
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.
 
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.
 
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.
 
Thankse verybody for the info, how about bluetooth programming, whats the pointer there? Any hints?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.