On Wed, Mar 21, 2012 at 11:34 AM, Pavel Krivanek
<pavel.kriva...@gmail.com> wrote:
> On Wed, Mar 21, 2012 at 3:05 AM, Igor Stasenko <siguc...@gmail.com> wrote:
>> On 21 March 2012 00:23, Pavel Krivanek <pavel.kriva...@gmail.com> wrote:
>>> On Tue, Mar 20, 2012 at 10:46 PM, Igor Stasenko <siguc...@gmail.com> wrote:
>>>> On 20 March 2012 22:32, Pavel Krivanek <pavel.kriva...@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..
>>>
>>> It is an internal plugin in CogVM
>>>
>> ok, so we should fix it. :)
>
> It seems that the CogVM has no implementation for primitive
> primitiveSerialPortOpenByName, only for primitiveSerialPortOpen. Can
> you look at it?
>
> -- Pavel

it can work even for primitiveSerialPortOpen with port defined by
number but the VM supposes it will open classic /dev/ttySx port, not
/dev/ttyUSBx port.

See
blessed/platforms/unix/plugins/SerialPlugin/sqUnixSerial.c
line 24
static const char serialPortBaseNameDefault[]   = "/dev/ttyS0";

I tried to change it to /dev/ttyUSB0 (the last character is removed)
and it works...

-- Pavel




-- Pavel

Reply via email to