Yes, that seems to be a CogVM problem. I tried it now and Cog cannot open the port but an old Squeak4.1 of 17 April 2010 [latest update: #9957] can.
-- Pavel On Tue, Mar 20, 2012 at 8:30 PM, Mariano Vicente <m.vic...@gmail.com> wrote: > Hi Everybody. > > I'm just started with Pharo, and Arduino. And i like to comunicate both. I > instaled the package sent by Ricardo Moran in a Pharo 1.4 with the Cogvm > from the Jenkins server, but i can't make the serials port works. The > Arduino board, i have, is connected to usb, wich ubuntu detects as > /dev/ttyACM0. > > I tried opening serial ports, like this: > > sp:=SerialPort new. > sp openPort: '/dev/ttyACM0'. > > sp openPort: 'ttyACM0'. > > sp openPort: 'ACM0'. > > sp openPort: '/ttyACM0'. > > But all they fail with a error saying ""Cannot open..." > After that, i have also, tried this: > > (1 to: 10000) select:[:port | [SerialPort new openPort:port;close. true] > on:Error do: [false]] > > and had a empty collection. > > And also tried giving full permissions to the port and executed the vm > sudoed... > > Are serial ports working on ubuntu?. Do i have to download a special vm?. (I > would like to do a demo of arduino on monday, at work, and i would like to > do in Pharo.) > > Cheers, > Mariano