Finally I tried your previous solution on a laptop with Windows but doesn&#39;t work... Also I send the bytes reversed, and with a delay between but doesn&#39;t work too.<br><br>Thanks a lot anyway!<br><br><div class="gmail_quote">
2009/6/23 Jon Hylands <span dir="ltr">&lt;<a href="mailto:jon@huv.com" target="_blank">jon@huv.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Tue, 23 Jun 2009 11:06:29 +0200, Víctor C. T. &lt;<a href="mailto:victorct83@gmail.com" target="_blank">victorct83@gmail.com</a>&gt;<br>


wrote:<br>
<div><br>
&gt; Sorry but this code didn&#39;t work for me, cause I&#39;m on a Mac and it can&#39;t get port numbers, only names.<br>
<br>
</div>Actually, given that you&#39;re running a form of Unix, you can probably do a<br>
soft link to the actual port in the form that Squeak is expecting. I&#39;ve<br>
done that with the gumstix (which runs Linux).<br>
<br>
So, to make a link for ttyUSB0 so you can reference it as port 4, do this:<br>
<br>
ln -s /dev/ttyUSB0 /dev/ttyS4<br>
<br>
Then you can pass in 4 as the port number, and it should work.<br>
<div><br>
&gt; Then that&#39;s not the problem... I guess that the way I&#39;m sending bytecodes it&#39;s not correct, because there&#39;s no response from board.<br>
<br>
</div>It may end up being an endian problem - Macs and PCs are opposite. I can&#39;t<br>
imagine that this would manifest with a ByteArray, but its probably worth a<br>
try just to rule it out.<br>
<br>
Try sending a ByteArray with the bytes reversed... The other thing to try<br>
is to send the bytes individually, with a slight (say 1 ms) delay in<br>
between each byte.<br>
<div><div></div><div><br>
Later,<br>
Jon<br>
<br>
--------------------------------------------------------------<br>
   Jon Hylands      <a href="mailto:Jon@huv.com" target="_blank">Jon@huv.com</a>      <a href="http://www.huv.com/jon" target="_blank">http://www.huv.com/jon</a><br>
<br>
  Project: Micro Raptor (Small Biped Velociraptor Robot)<br>
           <a href="http://www.huv.com/blog" target="_blank">http://www.huv.com/blog</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Víctor<br>