<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arduino-serial: C code to talk to Arduino</title>
	<atom:link href="http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/</link>
	<description>Random experiments, circuits, code, rapid prototyping, sometimes things to buy, and the odd tune by Tod E. Kurt.</description>
	<lastBuildDate>Sat, 14 Apr 2012 16:47:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-81343</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Wed, 28 Mar 2012 06:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-81343</guid>
		<description>Hi Phil,

The problem is the Arduino is operating &quot;too fast&quot; for the serial input data stream so that &quot;&lt;code&gt;Serial.read()&lt;/code&gt;&quot; is returning -1 when you do your &lt;code&gt;buffer[i] = Serial.read();&lt;/code&gt;.  You need to check for -1 every time you do &quot;&lt;code&gt;Serial.read()&lt;/code&gt;&quot;, unless you are absolutely sure Serial has all the data you need. 

One way to do this is to wait for the data at every character, like:
&lt;pre&gt;
  for( int i=1; i&lt; 4; i++) {
    while( !Serial.available() ) ; // wait for data
    buffer[i] = Serial.read();
  }
&lt;/pre&gt;

But that technique will hang waiting for data if none comes. 

If you know exactly how many bytes are being sent, though, the receiving gets easier. For your &quot;hello&quot; example, it can be:
&lt;/pre&gt;&lt;pre&gt;
void loop() {
  if( Serial.available &gt;= 5 ) {  // wait for at least 5 bytes
    for( int i=0; i&lt;5; i++) {
      buffer[i] = Serial.read();
    }
   Serial.println(buffer);
  }
}
&lt;/pre&gt;


 I talk about this in &lt;a href=&quot;http://todbot.com/blog/2009/07/30/arduino-serial-protocol-design-patterns/&quot; rel=&quot;nofollow&quot;&gt;Arduino serial protocol design patterns&lt;/a&gt;.  Receiving and parsing data on the Arduino is currently a bit messy if the data isn&#039;t a fixed length in size.  This will get better soon, as an Arduino update is coming that will have ways of receiving until a newline or other arbitrary character.</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>The problem is the Arduino is operating &#8220;too fast&#8221; for the serial input data stream so that &#8220;<code>Serial.read()</code>&#8221; is returning -1 when you do your <code>buffer[i] = Serial.read();</code>.  You need to check for -1 every time you do &#8220;<code>Serial.read()</code>&#8220;, unless you are absolutely sure Serial has all the data you need. </p>
<p>One way to do this is to wait for the data at every character, like:</p>
<pre>
  for( int i=1; i< 4; i++) {
    while( !Serial.available() ) ; // wait for data
    buffer[i] = Serial.read();
  }
</pre>
<p>But that technique will hang waiting for data if none comes. </p>
<p>If you know exactly how many bytes are being sent, though, the receiving gets easier. For your "hello" example, it can be:
</pre>
<pre>
void loop() {
  if( Serial.available >= 5 ) {  // wait for at least 5 bytes
    for( int i=0; i&lt;5; i++) {
      buffer[i] = Serial.read();
    }
   Serial.println(buffer);
  }
}
</pre>
<p> I talk about this in <a href="http://todbot.com/blog/2009/07/30/arduino-serial-protocol-design-patterns/" rel="nofollow">Arduino serial protocol design patterns</a>.  Receiving and parsing data on the Arduino is currently a bit messy if the data isn&#8217;t a fixed length in size.  This will get better soon, as an Arduino update is coming that will have ways of receiving until a newline or other arbitrary character.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-81342</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 28 Mar 2012 06:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-81342</guid>
		<description>After some experimentation I have it somewhat working.

However, I was expecting my final string to be &quot;hello&quot; but right now it looks like this.

hÿÿÿ
eÿÿÿ
lÿÿÿ
lÿÿÿ
oÿÿÿ

I&#039;m guessing that there is some kind of carriage return or something being sent.


Here is my code.

Any ideas?

Thanks.

Phil

&lt;code&gt;

char val;       // variable to store the data from the serial port
char buffer[5]; // string array


void setup() {
  Serial.begin(9600);        // connect to the serial port
}

void loop () {
  val = Serial.read();      // read the serial port
  
  if (val &gt; -1) { // check for the start of valid data

  buffer[0] = val; // put the first charcter into the buffer
     
 for (int i=1; i &lt; 4; i++) { // read 4 more characters
      
       buffer[i] = Serial.read();
 } // end loop
 
 Serial.println(buffer);
  } // end if    
 }
  

&lt;/code&gt;&lt;code&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>After some experimentation I have it somewhat working.</p>
<p>However, I was expecting my final string to be &#8220;hello&#8221; but right now it looks like this.</p>
<p>hÿÿÿ<br />
eÿÿÿ<br />
lÿÿÿ<br />
lÿÿÿ<br />
oÿÿÿ</p>
<p>I&#8217;m guessing that there is some kind of carriage return or something being sent.</p>
<p>Here is my code.</p>
<p>Any ideas?</p>
<p>Thanks.</p>
<p>Phil</p>
<p><code></p>
<p>char val;       // variable to store the data from the serial port<br />
char buffer[5]; // string array</p>
<p>void setup() {<br />
  Serial.begin(9600);        // connect to the serial port<br />
}</p>
<p>void loop () {<br />
  val = Serial.read();      // read the serial port</p>
<p>  if (val &gt; -1) { // check for the start of valid data</p>
<p>  buffer[0] = val; // put the first charcter into the buffer</p>
<p> for (int i=1; i &lt; 4; i++) { // read 4 more characters</p>
<p>       buffer[i] = Serial.read();<br />
 } // end loop</p>
<p> Serial.println(buffer);<br />
  } // end if<br />
 }</p>
<p></code><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-81341</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 28 Mar 2012 05:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-81341</guid>
		<description>Hi, this is great and seems to work well for me so far.

I am wondering what the best way to recompile the data I receive into a string.

Basically I am using arduino-serial to send text that I want to display on a 16x2 LCD screen hooked up to my arduino.

If I use &quot;/Applications/arduino-serial -b 9600 -p /dev/tty.usbmodem1d21 -s hello&quot;

My arduino returns:

104
101
108
108
111

Which is the ascii characters for each of the letters.

I&#039;m thinking I need some form of array that waits for the first character that is not -1 then stores each character until the next -1

I am pretty new to Arduino and this seems a little tricky.

Any advice?

Thanks.

Phil</description>
		<content:encoded><![CDATA[<p>Hi, this is great and seems to work well for me so far.</p>
<p>I am wondering what the best way to recompile the data I receive into a string.</p>
<p>Basically I am using arduino-serial to send text that I want to display on a 16&#215;2 LCD screen hooked up to my arduino.</p>
<p>If I use &#8220;/Applications/arduino-serial -b 9600 -p /dev/tty.usbmodem1d21 -s hello&#8221;</p>
<p>My arduino returns:</p>
<p>104<br />
101<br />
108<br />
108<br />
111</p>
<p>Which is the ascii characters for each of the letters.</p>
<p>I&#8217;m thinking I need some form of array that waits for the first character that is not -1 then stores each character until the next -1</p>
<p>I am pretty new to Arduino and this seems a little tricky.</p>
<p>Any advice?</p>
<p>Thanks.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Eagland</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-79569</link>
		<dc:creator>Ian Eagland</dc:creator>
		<pubDate>Fri, 24 Feb 2012 14:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-79569</guid>
		<description>Hi

I am trying to use:-
laptop% ./arduino-serial -b 9600 -p /dev/ttyUSB0 -s get -r

I don&#039;t get back what I expect. Is there an Arduino sketch I can download that is known to work with arduino-serial used in this way?


Regards</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I am trying to use:-<br />
laptop% ./arduino-serial -b 9600 -p /dev/ttyUSB0 -s get -r</p>
<p>I don&#8217;t get back what I expect. Is there an Arduino sketch I can download that is known to work with arduino-serial used in this way?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serial communication between PC and Arduino &#124; Tigar</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-79498</link>
		<dc:creator>Serial communication between PC and Arduino &#124; Tigar</dc:creator>
		<pubDate>Wed, 18 Jan 2012 22:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-79498</guid>
		<description>[...] Arduino I found this page on the Arduino website and also another interesting website. (I did find this site about C and Arduino which might be useful in the future; and this one is I think about [...]</description>
		<content:encoded><![CDATA[<p>[...] Arduino I found this page on the Arduino website and also another interesting website. (I did find this site about C and Arduino which might be useful in the future; and this one is I think about [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sakul</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-79494</link>
		<dc:creator>Sakul</dc:creator>
		<pubDate>Wed, 18 Jan 2012 11:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-79494</guid>
		<description>Hello,

I&#039;m starting an Arduino Project in wich i need to communicate several Arduino boards with one PC via serial port. I know almost nothing about working with serial ports so I&#039;m first learning about it.
Your code is being really useful for me. Now I&#039;m starting to write a bit of code on my own but using yours as a refference for the &quot;setting the serial connection&quot; part since I&#039;m still getting familiar with this.

I&#039;ve seen that yor work is under a CC license but I&#039;m not sure about the specifications. Do you allow derived works? Is it OK for you if I publish something of my code based on yours giving recognition to you?

Thanks,

Sakul.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m starting an Arduino Project in wich i need to communicate several Arduino boards with one PC via serial port. I know almost nothing about working with serial ports so I&#8217;m first learning about it.<br />
Your code is being really useful for me. Now I&#8217;m starting to write a bit of code on my own but using yours as a refference for the &#8220;setting the serial connection&#8221; part since I&#8217;m still getting familiar with this.</p>
<p>I&#8217;ve seen that yor work is under a CC license but I&#8217;m not sure about the specifications. Do you allow derived works? Is it OK for you if I publish something of my code based on yours giving recognition to you?</p>
<p>Thanks,</p>
<p>Sakul.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-78863</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Wed, 14 Dec 2011 21:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78863</guid>
		<description>How can i send a int to the board?

Cheers, Henry</description>
		<content:encoded><![CDATA[<p>How can i send a int to the board?</p>
<p>Cheers, Henry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CoffeeNinja</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-78752</link>
		<dc:creator>CoffeeNinja</dc:creator>
		<pubDate>Sat, 10 Dec 2011 22:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78752</guid>
		<description>I&#039;m trying to send a command to the arduino and get a response but I can&#039;t seem to get it to work:

command:
&lt;code&gt;./arduino-serial -b 9600 -p /dev/ttyUSB0 -d 2000 -s foo -r&lt;/code&gt;

response:
&lt;code&gt;read: foo&lt;/code&gt;

the response is whatever I tried to send the arduino, my sketch sends different output depending on the command sent.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to send a command to the arduino and get a response but I can&#8217;t seem to get it to work:</p>
<p>command:<br />
<code>./arduino-serial -b 9600 -p /dev/ttyUSB0 -d 2000 -s foo -r</code></p>
<p>response:<br />
<code>read: foo</code></p>
<p>the response is whatever I tried to send the arduino, my sketch sends different output depending on the command sent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-78523</link>
		<dc:creator>Fabio</dc:creator>
		<pubDate>Thu, 24 Nov 2011 22:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78523</guid>
		<description>[SOLVED] I&#039;ve spent over a month trying to have a good communication between linux (Debian Squeeze) and ARDUINO using C programming. I tried every possible configuration with termios.h. My problem was that linux seems to communicate twice at the beginning of the connection with ARDUINO, confusing all the following dialogue. I don&#039;t now why it happens, but finally I&#039;ve found a solution to solve it. 

So, this is the C code to initialize serial connection with ARDUINO using termios.h. If you don&#039;t know how the following functions work, I suggest this link: http://pubs.opengroup.org/onlinepubs/7908799/xsh/termios.h.htmlSo.
---- Beginning of C code -----
&lt;pre&gt;
#include    /* File control definitions */
#include    /* Error number definitions */
#include  /*linux serial library*/
#define DEVICE_ADDR &quot;/dev/ttyACM0&quot;

int main()
{
 struct termios options;
 fd = open(DEVICE_ADDR, O_RDWR &#124; O_NOCTTY &#124; O_NDELAY);
 if (fd&lt;0) perror(&quot;open_port: Unable to open /dev/ttyACM0 - &quot;);
 
 options.c_cflag=6322; //6322 is for BOUDRATE 115200, if you want 9600 use 2237 instead
 options.c_lflag=0;
 options.c_iflag=0;
 options.c_oflag=0;

 tcsetattr(fd, TCSANOW, &amp;options);

 //the following two lines is the strange thing that makes the whole thing work
 sleep(1); //Sleep time works only from 1 to 2 (2 not included)
 tcflush(fd, TCIFLUSH);

&lt;/pre&gt;
--- end of C code ---

This is all, from now on you can add your own code to read and write with ARDUINO, using C read and write functions.
Have a good programming day.
</description>
		<content:encoded><![CDATA[<p>[SOLVED] I&#8217;ve spent over a month trying to have a good communication between linux (Debian Squeeze) and ARDUINO using C programming. I tried every possible configuration with termios.h. My problem was that linux seems to communicate twice at the beginning of the connection with ARDUINO, confusing all the following dialogue. I don&#8217;t now why it happens, but finally I&#8217;ve found a solution to solve it. </p>
<p>So, this is the C code to initialize serial connection with ARDUINO using termios.h. If you don&#8217;t know how the following functions work, I suggest this link: <a href="http://pubs.opengroup.org/onlinepubs/7908799/xsh/termios.h.htmlSo" rel="nofollow">http://pubs.opengroup.org/onlinepubs/7908799/xsh/termios.h.htmlSo</a>.<br />
&#8212;- Beginning of C code &#8212;&#8211;</p>
<pre>
#include    /* File control definitions */
#include    /* Error number definitions */
#include  /*linux serial library*/
#define DEVICE_ADDR "/dev/ttyACM0"

int main()
{
 struct termios options;
 fd = open(DEVICE_ADDR, O_RDWR | O_NOCTTY | O_NDELAY);
 if (fd&lt;0) perror(&quot;open_port: Unable to open /dev/ttyACM0 - &quot;);

 options.c_cflag=6322; //6322 is for BOUDRATE 115200, if you want 9600 use 2237 instead
 options.c_lflag=0;
 options.c_iflag=0;
 options.c_oflag=0;

 tcsetattr(fd, TCSANOW, &amp;options);

 //the following two lines is the strange thing that makes the whole thing work
 sleep(1); //Sleep time works only from 1 to 2 (2 not included)
 tcflush(fd, TCIFLUSH);
</pre>
<p>&#8212; end of C code &#8212;</p>
<p>This is all, from now on you can add your own code to read and write with ARDUINO, using C read and write functions.<br />
Have a good programming day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-78509</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Tue, 22 Nov 2011 06:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78509</guid>
		<description>Finally got it resolved, with a lot of help from a friend. We&#039;re using an AppleScript to telnet to ser2sock
to the Arduino, attached to a remote machine.

Many thanks,

Carl</description>
		<content:encoded><![CDATA[<p>Finally got it resolved, with a lot of help from a friend. We&#8217;re using an AppleScript to telnet to ser2sock<br />
to the Arduino, attached to a remote machine.</p>
<p>Many thanks,</p>
<p>Carl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-78505</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Mon, 21 Nov 2011 20:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78505</guid>
		<description>Hi Carl,
Can you post your Arduino sketch so I can try it myself?</description>
		<content:encoded><![CDATA[<p>Hi Carl,<br />
Can you post your Arduino sketch so I can try it myself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-8/#comment-78500</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Mon, 21 Nov 2011 04:27:59 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78500</guid>
		<description>I got the Arduino to respond to this input from Terminal:  arduino-serial -b 9600 -p /dev/tty.usbmodemb21 -d 2000 -s b
but the Arduino LED just flashes 3 times very quickly, regardless of what I have programmed into it&#039;s sketch.

Any idea what may be going on?

Thanks,

Carl</description>
		<content:encoded><![CDATA[<p>I got the Arduino to respond to this input from Terminal:  arduino-serial -b 9600 -p /dev/tty.usbmodemb21 -d 2000 -s b<br />
but the Arduino LED just flashes 3 times very quickly, regardless of what I have programmed into it&#8217;s sketch.</p>
<p>Any idea what may be going on?</p>
<p>Thanks,</p>
<p>Carl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-7/#comment-78499</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Mon, 21 Nov 2011 04:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78499</guid>
		<description>I got the Arduino to respond to this Terminal input: arduino-serial -b 9600 -p /dev/tty.usbmodemb21 -s a
but the LED just does 3 quick flashes, not what was programmed for the LED to do in the sketch.

In fact it just flashes the LED regardless of what I send it or what is in the sketch to do.

Any ideas?

Carl</description>
		<content:encoded><![CDATA[<p>I got the Arduino to respond to this Terminal input: arduino-serial -b 9600 -p /dev/tty.usbmodemb21 -s a<br />
but the LED just does 3 quick flashes, not what was programmed for the LED to do in the sketch.</p>
<p>In fact it just flashes the LED regardless of what I send it or what is in the sketch to do.</p>
<p>Any ideas?</p>
<p>Carl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-7/#comment-78488</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Sat, 19 Nov 2011 18:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78488</guid>
		<description>Oh! It sounds like you don&#039;t yet have the &quot;arduino-serial&quot; program compiled yet.
Did you do the steps at the top of this post? (e.g. &quot;gcc -o arduino-serial arduino-serial.c&quot;)
It is likely you do not have the Mac OS X developer tools installed (it&#039;s an optional install).
If that&#039;s the case, here&#039;s a compiled version of arduino-serial:
  http://todbot.com/arduino/host/arduino-serial/arduino-serial-macosx.zip</description>
		<content:encoded><![CDATA[<p>Oh! It sounds like you don&#8217;t yet have the &#8220;arduino-serial&#8221; program compiled yet.<br />
Did you do the steps at the top of this post? (e.g. &#8220;gcc -o arduino-serial arduino-serial.c&#8221;)<br />
It is likely you do not have the Mac OS X developer tools installed (it&#8217;s an optional install).<br />
If that&#8217;s the case, here&#8217;s a compiled version of arduino-serial:<br />
  <a href="http://todbot.com/arduino/host/arduino-serial/arduino-serial-macosx.zip" rel="nofollow">http://todbot.com/arduino/host/arduino-serial/arduino-serial-macosx.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/comment-page-7/#comment-78485</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Sat, 19 Nov 2011 14:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/#comment-78485</guid>
		<description>Thanks, but still getting a &quot;No such file or directory&quot; error. Anything else I might try?

Carl</description>
		<content:encoded><![CDATA[<p>Thanks, but still getting a &#8220;No such file or directory&#8221; error. Anything else I might try?</p>
<p>Carl</p>
]]></content:encoded>
	</item>
</channel>
</rss>

