Certainly the class SerialPort2 that I use doesn't have any method with these initialization parameters, I didn't realize it... (this is a bit embarrassing...) :P<br><br>Well, I'll prove your code tomorrow at work. Thanks a lot for your help Jon!!!<br>
<br><div class="gmail_quote">2009/6/20 Jon Hylands <span dir="ltr"><<a href="mailto:jon@huv.com">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 Sat, 20 Jun 2009 21:39:37 +0200, Víctor C. T. <<a href="mailto:victorct83@gmail.com">victorct83@gmail.com</a>><br>
wrote:<br>
<div class="im"><br>
> Is it correct? I don't get any error at this point...<br>
<br>
</div>I don't see any code to specify the # of data bits, # of stop bits, or the<br>
parity. Do they default to the "normal" values (8N1)?<br>
<br>
Also, you need to make sure the port itself is set up without any hardware<br>
flow control - I've never used an Arduino, but I assume its providing a USB<br>
interface that ends up using an FT232 or something like that.<br>
<br>
That serial port class is different than the one I use for my robotics<br>
stuff. I've attached the serial port class I use, and it is set up like<br>
this:<br>
<br>
| serialPort baudRate comPortNumber |<br>
baudRate := 115200.<br>
comPortNumber := 2.<br>
serialPort := SerialPort new<br>
baudRate: baudRate;<br>
dataBits: 8;<br>
stopBitsType: 1;<br>
parityType: 0;<br>
yourself.<br>
<br>
(serialPort openPort: comPortNumber) isNil<br>
ifTrue: [ ^self error: 'COM port not available' ].<br>
<br>
...<br>
serialPort close.<br>
<div><div></div><div class="h5"><br>
Later,<br>
Jon<br>
<br>
--------------------------------------------------------------<br>
Jon Hylands <a href="mailto:Jon@huv.com">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>
</div></div><br><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Víctor<br>