<br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 4:27 PM, Javier Diaz-Reinoso <span dir="ltr">&lt;<a href="mailto:javier_diaz_r@mac.com" target="_blank">javier_diaz_r@mac.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This example don&#39;t work with Cog 4.0.2701 in a iMac OSX 10.8.3:<br>
<br>
|p s|<br>
p := SerialPort new.<br>
p baudRate: 115200.<br>
p openPort: &#39;/dev/cu.usbmodem1a21&#39;.<br>
<br>
1 to: 5 do:[:i|<br>
        s := p readString.<br>
        Transcript show: &#39;i=&#39;, i asString, &#39;=&gt;&#39;, s, &#39;&lt;=&#39;;cr.<br>
        (Delay forSeconds: 1) wait.<br>
        i=1 ifTrue:[p nextPutAll: &#39;M105&#39;, String lf.]<br>
].<br>
p close.<br>
<br>
the same code works ok with the Squeak 4.2.5beta1U, this is connected to an Arduino Mega using only a USB cable.<br></blockquote><div><br></div><div>and how does it fail? </div></div><br>