[GOODIE] kgf-X10Driver - Control Wireless Remotes from Squeak
Kevin Fisher
kgf at golden.net
Thu Mar 21 12:51:49 UTC 2002
Hi Ned:
On Wed, Mar 20, 2002 at 08:01:40PM -0800, Ned Konz wrote:
[snip]
>
> I have a recently compiled SF VM. However, I eventually had to fall back to
> GCC 2.95.3 for compilation (I don't know whether I had serial problems or
> not, but the 3D stuff had problems). This code dials my modem (/dev/ttyS4):
Actually, this was compiled on GCC 2.95.3.
I _did_ manage to get a working VM from the latest sourceforge after a bit
of housecleaning...new VMMaker, the latest OSProcess, etc. It runs
fine now with the latest bits, but it still cannot open the serial port.
Actually -opening- the serial port seems fine...it claims to have opened
it, but is not reading any bits from it. If I use my older 3.1 VM on
the 3.2 image, it works fine however...
I'll look into this tonight after work and see if it's something
a bit more general to SerialPort. I'm positive my code works on
the equivalent Windows image and latest VM. (err...let me caveat that
by saying I'll try it again and make -sure- it works on the Windows VM)
However, I -did- notice that I could not build the SerialPort plugin as
'internal'..when I did so, VMMaker complained about a missing key. It only
compiled as 'external'.
>
> p _ SerialPort new
> baudRate: 9600; "these are all defaults and don't need to be called"
> dataBits: 8;
> inputFlowControlType: 0;
> outputFlowControlType: 0;
> parityType: 0;
> stopBitsType: 1.
>
> p openPort: 4.
>
> p nextPutAll: 'ATDT611#', String cr. "dial"
> p nextPutAll: String cr.
>
> "p close"
>
> --
> Ned Konz
> currently: Stanwood, WA
> email: ned at bike-nomad.com
> homepage: http://bike-nomad.com
>
More information about the Squeak-dev
mailing list
|