Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Add'l serial port info

From: bo::rebol::com at: 7-Nov-2000 11:36

I found out some additional info on the serial ports. On Linux, for example, serial ports can be named in any of the following formats: ttyC0 ttyS0 cua0 Also, the 0 can be a higher number if you have more than one serial port. REBOL cannot determine which of these is correct due to technical reasons which are beyond the scope of this email, so you will have to try the following: 1) You must be running REBOL as ROOT (or somehow change the permissions on the serial ports beforehand) as this is a security feature of most multi-user systems. 2) Try setting system/ports/serial to the different naming conventions of your system. For example: system/ports/serial: [ttyC0 ttyC1] -or- system/ports/serial: [ttyS0 ttyS1] -or- system/ports/serial: [cua0 cua1] You can include as many serial ports as there are on your system in this block. 3) Open the serial port like this: serial-port: open serial://port1/9600/8/none/1 Use the word PORT1 above (don't replace with the serial port name) as it refers directly to a location in the system/ports/serial block. You can also use PORT2 or PORT3, etc. (if applicable to your system). Have fun! -- Bohdan "Bo" Lechnowsky REBOL Adventure Guide REBOL Technologies 707-467-8000 ( The Official Source for REBOL Books (