Certainly the class SerialPort2 that I use doesn&#39;t have any method with these initialization parameters, I didn&#39;t realize it... (this is a bit embarrassing...) :P<br><br>Well, I&#39;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">&lt;<a href="mailto:jon@huv.com">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 Sat, 20 Jun 2009 21:39:37 +0200, Víctor C. T. &lt;<a href="mailto:victorct83@gmail.com">victorct83@gmail.com</a>&gt;<br>
wrote:<br>
<div class="im"><br>
&gt; Is it correct? I don&#39;t get any error at this point...<br>
<br>
</div>I don&#39;t see any code to specify the # of data bits, # of stop bits, or the<br>
parity. Do they default to the &quot;normal&quot; values (8N1)?<br>
<br>
Also, you need to make sure the port itself is set up without any hardware<br>
flow control - I&#39;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&#39;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: &#39;COM port not available&#39; ].<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>