7
\$\begingroup\$

Alright, this is my first time posting on electronics.stackexchange.com but I have frequented stackoverflow.com for some time now. Basically I am trying to output serial data from the Arduino to an iPhone. I installed OpenSSH on the iPhone, and starting minicom from the ssh session. I have a simple Arduino sketch outputting Hello World. So I thought I would see Hello World in minicom window but I don't.

My minicom window looks like the following enter image description here Yes, the baud rate of the Arduino sketch and minicom are both set to 9600. If you look in the lower right you will see that minicom states that it is "offline" so I am wondering if this is my problem.

My arduino sketch code looks like the following:

void setup()
{
Serial.begin(9600);
Serial.println("Hello World");
}
void loop()
{
}

The solder joints on my iPhone dock connector look good, and I think I breadboarded everything correctly, so I don't understand why I am not seeing Hello World in minicom.

Here is a picture of the dock connector enter image description here

Here is a picture of the breadboard enter image description here

Update on June 07. Well I tried a couple of things and still no luck. I created a google doc that I will try and keep updated with my progress, it can be found here.

m.Alin
10.9k20 gold badges66 silver badges90 bronze badges
asked Jul 18, 2012 at 2:39
\$\endgroup\$
12
  • \$\begingroup\$ Could it be permissions on the /dev/tty? stackoverflow.com/questions/9653692/… \$\endgroup\$ Commented Jul 18, 2012 at 10:49
  • \$\begingroup\$ Really great question! The offline could be imporantant.. maybe you need to send RTS? also iPhone needs to gointo this Serial Mode somehow does it not- and each version has some newer and more difficult way of doing that. Can you add some references for design? I would love to look into this too. \$\endgroup\$ Commented Jul 18, 2012 at 11:12
  • \$\begingroup\$ OK well i found this.. devdot.wikispaces.com/Iphone+Serial+Port+Tutorial which says you FIRST have to send * as a handshaking message and wait for a response(from iphone embedded soft i assume??) and then the Tx/Rx should be ready \$\endgroup\$ Commented Jul 18, 2012 at 11:21
  • \$\begingroup\$ well the handshaking * is news to me. i wonder if that is necessary if i am only trying to receive serial data. \$\endgroup\$ Commented Jul 18, 2012 at 18:40
  • 2
    \$\begingroup\$ Well I tried a couple of things and still no luck. I created a google doc that I will try and keep updated with my progress, it can be found here -> docs.google.com/document/d/… \$\endgroup\$ Commented Jul 20, 2012 at 1:33

1 Answer 1

3
\$\begingroup\$

I got TTL serial receive on the iPhone working yesterday. Instead of you using minicom to check the serial connection I issued the following command: cat /dev/tty.iap 9600 This displayed the output my Arduino was sending on the serial TX line. I also soldered a new dock connector (>.>) I used the pod breakout.

enter image description here

answered Jul 29, 2012 at 1:40
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.