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

[REBOL] Re: Serial and parallel ports ?

From: gjones05:mail:orion at: 24-Feb-2001 10:50

Hi, Renaud, Since weekends can be a little longer to respond, I'll post a couple excerpts from November that'll get you rolling. (I've not used this aspect of REBOL but recalled reading about it.) ============ 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) 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). Bo wrote on 9 Nov 2000: You need to use one of the experimental versions of REBOL found at http://www.rebol.com/xpers/xpers.html to use the serial:// support. 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: www.escribe.com/internet/rebol where the mailing list is archived. I couldn't find anything on parallel. --Scott