SerialPort cross-platform question...
Kevin Fisher
kgf at golden.net
Sun Feb 10 23:14:35 UTC 2002
Hi Folks:
I'm (still) putting the finishing touches on an X10 driver I've been
working on for Squeak. I just got around to testing the thing on Windows
and discovered something that kind of surprised me.
The SerialPort primitive uses a different numbering scheme between Unix
and Windows. On my PC, to open COM2 I use #openPort: 1 under Unix, and
yet on Windows I have to use #openPort: 2.
So, for UNIX the serial ports are enumerated from 0, and on Windows
they are enumerated from 1. How does it work on the Mac? (sadly I don't
own a Mac to try it on)
Is this expected behaviour, or is it going to change in future releases?
Thanks a lot...
More information about the Squeak-dev
mailing list
|