[BUG][UNIX] SerialPort input problems
Kevin Fisher
kgf at golden.net
Thu Mar 21 23:25:44 UTC 2002
On Fri, Mar 22, 2002 at 12:10:52AM +0100, Andreas Raab wrote:
> Kevin,
>
> I'm a bit confused. How can you run Win32 VMs on a Linux box? Is the
Well, I dual-boot into Windows, actually. Although I did find, much
to my surprise, that Wine runs the Win32 VM quite well (although not
very quickly).
> "SourceForge VM" you are using a Win32 or a Linux VM? If it's a Windows
> VM it sounds like a pretty weird thing to me - AFAIK, there has been no
> change in the serial port support code for ages so if it's works on one
> Win32 VM and not the other I'm at a complete loss.
Nope, this is all in Linux, using VMMaker to generate the bits, using
a CVS update from last night.
I just tested my SerialPort stuff on Windows for comparison, that's all.
(and to make doubly-sure my X10Driver code works on Windows..and it
still does.. :) Essentially all of this is running on the same hardware.
I find it quite odd that my older 3.1 VM works just fine running the same
image and the same code. I only compiled that particular VM back in
January from Ian's sources.
>
> Cheers,
> - Andreas
>
> > -----Original Message-----
> > From: squeak-dev-admin at lists.squeakfoundation.org
> > [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> > Behalf Of Kevin Fisher
> > Sent: Thursday, March 21, 2002 11:54 PM
> > To: squeak-dev
> > Subject: [BUG][UNIX] SerialPort input problems
> >
> >
> > Hi Folks:
> >
> > Well, after a bit of sleuthing about I think that there may
> > be a problem
> > with the SerialPort plugin...but only in one direction.
> >
> > I strung my old dumb terminal onto my PC and did some testing with a
> > recently-built VM from sourceforge, vs an old 3.1
> > non-sourceforge VM built
> > quite some time ago.
> >
> > I inspected the following code:
> > | s |
> >
> > s _ SerialPort new.
> > s baudRate: 9600; dataBits: 8.
> > s inputFlowControlType: 2.
> > s outputFlowControlType: 2.
> >
> > In the inspect window, I set the port appropriately:
> > self setPort: 1.
> >
> > Now, in both VMs I performed the following test:
> >
> > 1) First, I tried sending data out through the port:
> > self nextPutAll: 'abcdabcd'.
> >
> > This worked on both VMs...'abcdabcd' appears on my dumb
> > terminal screen.
> >
> > 2) Now, I tried input by hitting the keys on my dumb terminal
> > and reading with:
> > self readByteArray
> >
> > With the old 3.1 VM, the keys I pressed on the dumb terminal were read
> > by Squeak just fine...I got a nice ByteArray of my key presses.
> >
> > However, with the sourceforge VM, I get nothing at all.
> >
> >
> > I tested this with the Windows VM from Andreas' site (which is dated
> > last spring) and it works fine...
> >
> > So, are there any thoughts on this? I hope its not something
> > as silly as
> > me initializing the SerialPort wrong. :)
> >
> > Note that I'm running these VM's on the same 3.2gamma image,
> > on a Linux
> > box running kernel 2.4.17 (compiled with GCC 2.95.3, etc).
> >
> >
> >
>
>
>
More information about the Squeak-dev
mailing list
|