Title: iOS / iDevice Serial Communication

Text: This is a blog post of a google doc I wrote up a while back.

Objective

To communicate an Arduino micro controller to an iPhone 3GS using serial communication.


Requirements

External Links

Setup

I then wrote a simple Arduino sketch to print Hello World! to serial buffer on the iPhone. The sketch looks like the following,

void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("Hello World!");
delay(1000);
}

Soldering the Dock Connector

I would recommend having a 3rd hand, sheet of paper, and masking tape.

INSERT IMAGE!!! INSERT IMAGE!!!

Now according to the below diagram pin 13 on the dock connector is for serial RX com and pin 15 can be used for the GND.
INSERT IMAGE!!!

Testing serial receive communication on iPhone

  1. jailbreak iDevice
  2. install cydia
  3. search for minicom within cydia
  4. install minicom
  5. open minicom with root, # minicom
  6. set serial port to /dev/tty.iap
  7. change baud rate to 9600
  8. turn off hardware / software flow control

article.user_id = 1
current_user.id = article.meta_description = "iOS / iDevice Serial Communication"

Comments

Add a comment:



Back | Edit