Thank you guys for the fix in the serial plugin and for the tip in how to get the list of available ports. <div>Cheers.</div><div><br><div><br><div class="gmail_quote">On Sat, Sep 19, 2009 at 11:21 AM, David T. Lewis <span dir="ltr"><<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Sep 18, 2009 at 06:25:59PM -0300, Ricardo Moran wrote:<br>
> Hi, I've been testing the patch for accessing named serial ports in Ubuntu<br>
> 9.04 with an USB Arduino. I'm very grateful for this patch because it solves<br>
> me a lot of problems.<br>
><br>
> Although it seems to be working fine, I have two questions:<br>
><br>
> 1) Is it possible to access the list of available serial ports? (The<br>
> official arduino software lets you choose from a list of serial ports and I<br>
> would like to do the same).<br>
<br>
</div>The plugin will not help with this, but you know the device names that you<br>
are looking for, you can just do something like this:<br>
<br>
pattern := '*usb*'.<br>
(FileDirectory on: '/dev') fileNames<br>
select: [:e | pattern match: e]<br>
thenCollect: [:e | '/dev/', e]<br>
<div class="im"><br>
<br>
> 2) The first time I open a port, it works fine. Then, if I close it and open<br>
> it again, everytime I try #nextPutAll: I get a primitive fail. This happens<br>
> with port numbers and with port names. The only workaround that I found is<br>
> closing the Squeak image and open it again. Could it be a bug in the serial<br>
> plugin?<br>
<br>
</div>I think it's fixed in the latest Subversion sources now.<br>
<br>
Dave<br>
<br>
<br>
</blockquote></div><br></div></div>