On Wed, Mar 21, 2012 at 1:35 PM, David T. Lewis <[email protected]> wrote:
> On Wed, Mar 21, 2012 at 05:27:38PM +0100, Igor Stasenko wrote: > > On 21 March 2012 11:51, Pavel Krivanek <[email protected]> wrote: > > > On Wed, Mar 21, 2012 at 11:34 AM, Pavel Krivanek > > > <[email protected]> wrote: > > >> On Wed, Mar 21, 2012 at 3:05 AM, Igor Stasenko <[email protected]> > wrote: > > >>> On 21 March 2012 00:23, Pavel Krivanek <[email protected]> > wrote: > > >>>> On Tue, Mar 20, 2012 at 10:46 PM, Igor Stasenko <[email protected]> > wrote: > > >>>>> On 20 March 2012 22:32, Pavel Krivanek <[email protected]> > 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... > > > > > hmm.. why it hardcoding the port names like that? > > is passing strings from language considered evil? :) > > > > (ranting, because i never looked at this code before ) > > No need to rant, the fixes are in the interpreter VM and in Squeak, and > there is a Mantis issue with background. I don't recall if the plugin > changes were added to Cog yet. Sorry I can't give you the links right now, > I also am in the middle of a "moving earthquake" and catching up via > cell phone ;) > Here is the link :) http://bugs.squeak.org/view.php?id=7266 Cheers, Richo > > dave > > >
