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

[REBOL] Re: Another newbie joins the crowd.

From: gjones05:mail:orion at: 22-May-2001 8:54

Hi, Lyle, From: "Hazelwood Lyle"
> Hi all, I hope I didn't just miss this in > the docs somewhere.. > > I'd like to try Rebol for ASCII data logging from serial port to a
> It looks like it should be an easy beginners script, but I can't find > docs on opening the serial port. (That's a COM port for you winders
> All suggestions gladly considered.
No, you didn't. There is some information buried in the list archive at Here is what I previously excerpted from Novemeber that may get you rolling. Please note that I've not used this aspect of REBOL. ============ Bo wrote on 7 Nov 2000 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) 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). Gabriele wrote on 9 Nov 2000: port: open/no-wait serial:// ; you may supply parameters in the url insert port "ATZ" print copy port close port (WARNING: THE CODE ABOVE WAS NOT TESTED.) ========== There were some other miscellaneous messages. If you need more immediately, try typing in serial in the search at: where the mailing list is archived. --Scott Jones