Rs232Tcl Package for TCL/TK

Rs232Tcl allows to control RS232 serial bus (tty) in linux tcl/tk application.
 

Example tcl/tk script code, using Rs232Tcl :

               - Example 1, direct rs232 control:

               #!/usr/bin/wish -f

                package require Rs232
                #or
                load librs232tcl.dylib Rs232
               
                set ttyHandle [rs232_open /dev/tty.usbfoo]

                rs232_write $ttyHandle "Welcome under rs232tcl...\n"
                rs232_close $ttyHandle
                #or
                rs232_close all

                - Example 2, classic tty control:

                #!/usr/bin/wish -f

                package require Rs232
                #or
                load librs232tcl.dylib Rs232

                set ttyHandle [open /dev/tty.usbfoo {RDWR NONBLOCK NOCTTY}]

                fconfigure $ttyHandle -buffering none -blocking 0 -mode 9600,n,8,1

                puts -nonewline $ttyHandle "Welcome under rs232tcl...\n" 

                flush $ttyPtr
                close $ttyPtr
  
Load Rs232Tcl package :

    sourceforge.net
 

Install Rs232Tcl package :

                # tar     -xvzf     rs232tclXXXXXX.tar.gz
                # cd     rs232tcl/generic
                # make (or make try)

Bugs, please report bugs on :

    cyril.barbato@gmail.com

See also

    rs232io


2010 (c) Cyril BARBATO
 * DISCLAIMER OF ALL WARRANTIES *
http://barbato.freeheberg.com
<cyril.barbato@gmail.com>