http://www.combustory.com/wiki/index.php?title=Talk:Arduino_Communications&feed=atom&action=historyTalk:Arduino Communications - Revision history2024-03-29T08:20:36ZRevision history for this page on the wikiMediaWiki 1.17.0http://www.combustory.com/wiki/index.php?title=Talk:Arduino_Communications&diff=372&oldid=prevCombustor at 17:05, 1 December 20082008-12-01T17:05:32Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 17:05, 1 December 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Notes from Creator =  </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Notes from Creator =  </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>1 Dec 08 - Roland has provided an alternate solution that I have not investigated yet. By all means I recommend to look for a smoother way to accomplish this task, and please report any successes.  Right now I have invested my time and my method works for my needs, some day I may evaluate other ways <del class="diffchange diffchange-inline">as well.  I also want to give Roland credit for the inspiration of his SMS solution, which I reviewed before I made my solution.  I liked his ideas and I used his basic concept to forge my method </del>as well.  </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>1 Dec 08 - Roland has provided an alternate solution that I have not investigated yet. By all means I recommend to look for a smoother way to accomplish this task, and please report any successes.  Right now I have invested my time and my method works for my needs, some day I may evaluate other ways as well.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If you are like me and you are always on the lookout for a step by step that reduces your development time, then my method does work great and I built my specific windows Apps quite a bit since I authored this solution.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If you are like me and you are always on the lookout for a step by step that reduces your development time, then my method does work great and I built my specific windows Apps quite a bit since I authored this solution.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>One note on his comment concerning the resetting of the board.  My method does not reset the board as long as stty command remains active with the Arduino.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>One note on his comment concerning the resetting of the board.  My method does not reset the board as long as stty command remains active with the Arduino<ins class="diffchange diffchange-inline">, and it does not disconnect unless there is a power failure, so this is not an issue</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>I would love to hear more comments.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>I would love to hear more comments.</div></td></tr>
</table>Combustorhttp://www.combustory.com/wiki/index.php?title=Talk:Arduino_Communications&diff=371&oldid=prevCombustor at 17:02, 1 December 20082008-12-01T17:02:08Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 17:02, 1 December 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">= Notes from Creator = </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">1 Dec 08 - Roland has provided an alternate solution that I have not investigated yet. By all means I recommend to look for a smoother way to accomplish this task, and please report any successes.  Right now I have invested my time and my method works for my needs, some day I may evaluate other ways as well.  I also want to give Roland credit for the inspiration of his SMS solution, which I reviewed before I made my solution.  I liked his ideas and I used his basic concept to forge my method as well. </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">If you are like me and you are always on the lookout for a step by step that reduces your development time, then my method does work great and I built my specific windows Apps quite a bit since I authored this solution.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">One note on his comment concerning the resetting of the board.  My method does not reset the board as long as stty command remains active with the Arduino.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">I would love to hear more comments.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">== 22 Nov 08 Discussion From Roland Latour ==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Communication with Arduino Diecimila under linux is not that difficult.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Communication with Arduino Diecimila under linux is not that difficult.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The instructions at arduino.cc recommend using 'screen', which actually forks</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The instructions at arduino.cc recommend using 'screen', which actually forks</div></td></tr>
</table>Combustorhttp://www.combustory.com/wiki/index.php?title=Talk:Arduino_Communications&diff=370&oldid=prev207.14.167.161: easy shell scripting with Arduino2008-11-22T01:25:53Z<p>easy shell scripting with Arduino</p>
<p><b>New page</b></p><div>Communication with Arduino Diecimila under linux is not that difficult.<br />
The instructions at arduino.cc recommend using 'screen', which actually forks<br />
a child of itself to handle responses from the board. You can do the same<br />
from the bash shell. First, start a helper program:<br />
cat /dev/ttyUSB0 >> logfile1.raw &<br />
When you unplug the Diecimila, ttyUSB0 goes away, causing this job to exit.<br />
You also need this because without a process holding open the connection,<br />
the Diecimila resets itself after every command.<br />
<br />
Then send commands to the unit. Here's a sample that sends 'r a' to Simple<br />
Message System on the Diecimila to read the analog ports:<br />
/bin/echo -e -n "r a\r" > /dev/ttyUSB0<br />
Then get the results with this command:<br />
tail -1 logfile1.raw<br />
That's it! Everything else is window dressing.<br />
<br />
As proof of concept, check out my package of shell scripts to talk to<br />
Simple Message System. Full IO & PWM control. AD is scaled to milliVolts<br />
and formatted for import to most spreadsheets. Navigate to<br />
http://user.cavenet.com/rolandl<br />
and download SMS1.tgz, a tar gzip'd archive file. Unpack it with:<br />
tar xvzf SMS1.tgz<br />
You can't (under GPLv2) remove my name and claim it as your own, but you<br />
can take it apart and re-assemble the pieces in new & interesting ways<br />
(I hope you do). Written under Kubuntu, other OSes may vary (especially Slackware!) Questions: contact rolandl@cavenet.com. I hope you find<br />
this useful. -Roland Latour</div>207.14.167.161