[REBOL] Re: Accessing serial port under Windows
From: dlhawley:home at: 21-Mar-2001 9:42
Previously, you ([geza67--freestart--hu]) wrote:
> Hello to All REBOLers !
> I am stuck with a problem accessing the serial port COM1 under Windows with REBOL/View
(I would like to send modem AT commands and receive the resulting strings) . Although
system/ports/serial lists com1 and com2 as valid, if I query with port? several possible
variations of port reference syntax (e.g. port://serial1, serial://port1, serial://com1)
I get a 'false answer.
> My question is, how to reference the serial ports. ... With Unix or derivatives it
would be SOOO easy, like %dev/serX ... but unfortunately Windows lacks such virtual device
I haven't tried this under Windows, but you should be able to do:
optionally append settings in the form: /9600/none/8/1 to portX.
You'll need the latest exp version. Also look at
and make sure that it looks something like: [ COM1 COM2 ] or
[ serX ... ] for Unix (the /dev/ prefix is striped). If you have
ports that are not in the list, just append them.
David L. Hawley D.L. Hawley and Associates 1.503.274.2242
Software Engineer [David--L--Hawley--computer--org]