Finally I tried your previous solution on a laptop with Windows but doesn't work... Also I send the bytes reversed, and with a delay between but doesn't work too.<br><br>Thanks a lot anyway!<br><br><div class="gmail_quote">
2009/6/23 Jon Hylands <span dir="ltr"><<a href="mailto:jon@huv.com" target="_blank">jon@huv.com</a>></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. <<a href="mailto:victorct83@gmail.com" target="_blank">victorct83@gmail.com</a>><br>
wrote:<br>
<div><br>
> Sorry but this code didn't work for me, cause I'm on a Mac and it can't get port numbers, only names.<br>
<br>
</div>Actually, given that you'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'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>
> Then that's not the problem... I guess that the way I'm sending bytecodes it's not correct, because there's no response from board.<br>
<br>
</div>It may end up being an endian problem - Macs and PCs are opposite. I can'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>