[Vm-dev] Re: [Pharo-project] Make arduino work on linux with cog vm

Igor Stasenko siguctua at gmail.com
Tue Mar 20 21:46:05 UTC 2012


On 20 March 2012 22:32, Pavel Krivanek <pavel.krivanek at gmail.com> wrote:
> Try VM from here: http://squeakvm.org/unix/
> ...but you cannot use the latest Pharo image from CI server (because
> it is saved in CogVM). But you can try official 1.3.
>
I think a better alternative would be to fix VM and make it work.

I assuming there's something wrong with SerialPlugin , which used by
SerialPort, no?
I can't remember if this plugin is included into VM by default or not..

> -- Pavel
>
>
> On Tue, Mar 20, 2012 at 9:21 PM, Mariano Vicente <m.vicent at gmail.com> wrote:
>> Thanks a lot.
>>
>> Could you send me a link with a old vm version?
>>
>> Sorry but I'm a newie with Pharo :P
>>
>> Cheers,
>> Mariano
>>
>>
>>
>> On Tue, Mar 20, 2012 at 5:08 PM, Pavel Krivanek <pavel.krivanek at gmail.com>
>> wrote:
>>>
>>> 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.vicent at 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
>>>
>>
>



-- 
Best regards,
Igor Stasenko.


More information about the Vm-dev mailing list