[REBOL] Re: (no subject)
From: dlhawley:home at: 12-Dec-2001 10:37
to open a serial port use serial-port: open serial://portX
where X is the index of the port name in system/ports/serial.
If your port is not in that list, then aappend it.
Also, you can set the baud rate and so on with options after the X
>> append system/ports/serial 'cm17
== [ser0 ser1 cm17]
cm-port: open serial://port3/300/none/8/1
Now I can read/write to cm-port as needed.
The values in system/ports/serial are OS dependent and possible incorrect. QNX does not
typically have a /dev/ser0 so one could do a
system/ports/serial: difference system/ports/serial 'ser0 first.
Also, in an OS where the ports are in /dev - /dev is prepended by rebol in the underlying
open call. For an OS which allows opening accross the net one can make a symbolic link
to the network port - in QNX6 it might look like:
ln -sP /net/X10controller/dev/ser3 /dev/cm17
And no - I don't have X10 code under REBOL - but have been looking at the C code... It
weould be tyivial to write under REBOL, but for QNX better to put X10 into a resource
manager which could be opened by any language.
Previously, you (Release) wrote:
> Hello , ALL!!!
> I need some help.
> I'd like to make a small program to manage phone traffic.
> My digital phone system can communicate via RS232 (standart COM-port)
> I can not find any description about how to open COM-port using REBOL.
> Can someone help me with info?
> Thanks in advance.
> Best regards,
> Rain mailto:[rain--release-co--ru]
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
David L. Hawley D.L. Hawley and Associates 1.503.274.2242
Software Engineer [David--L--Hawley--computer--org]