I'm currently trying to get an iPad 4 to talk to an Arbotix RoboController (Arduino-like controller with lots of pins). I'm using iPad 4 with a Lightning to 30-pin Adapter connected to a RedPark C2-TTL cable. The cable is recognised correctly under
Settings -> General -> About -> Serial TTL Cable
.
But I've had no luck following the Serial Cable SDK / Users Guide from the RedPark SDK. The Arbotix was set up to write out 'Hello World' to serial every 300ms but the method
- (void) readBytesAvailable:(UInt32)numBytes {
...
}
is simply not being called. Also cableConnected
was never called.
I'm certain that I've set the baud rate to 9600 on both sides, as the answer to this question suggested.
There's a possibility the lies with the usage of the adapter, though I have my doubts.
Any ideas?
EDIT:
The solution is below: I re-tested it on the iPad 4 + Adapter and found that it works with no problem. Excellent!