mac serial port question
Bergel Alexandre
bergel at iam.unibe.ch
Tue Feb 5 18:52:14 UTC 2002
Hello,
> >I need to use the Mac (OS 9) printer port or the modem port as a
> >RS-232 serial line in Squeak. I have a Keyspan and I can see the
> >port fine in AppleScript. I have been unable thus far to determine
> >how to open SerialPort to get things to work.
If you want to open a serial port, do something like :
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
port _ SerialPort new.
port baudRate: 2400.
port dataBits: 8.
port parityType: 1.
port stopBitsType: 1.
port openPort: 0.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The main point is you have to set the port *before* to open it.
Hoping it could help you...
Regards,
Alexandre
More information about the Squeak-dev
mailing list
|