[ALX] 2017-05-11 11:55:00: See http://sourceforge.net/projects/tclsnippets/files/tserialport/ for releases, source, ... The package has [TEA] Tcl Extension Architecture and has been tested under Linux, Mac OS X and Windows 7. The Tcl package is licensed unter BSD-3. The base library libserialport is licensed under the terms of the GNU Lesser General Public License, version 3 or later. ---- ** NAME ** tserialport - tcl package for library libserialport ** SYNOPSIS ** : tserialport::getports ?open? : tserialport::rcsid ** DESCRIPTION ** libserialport is a minimal, cross-platform shared library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports. Note: While libserialport is hosted on sigrok.org (and sigrok uses libserialport), this is a completely independent library that can be used by other projects as well. The libserialport library does not depend on any sigrok related libraries or projects. ** EXAMPLES ** tserialport::getports ?open? Command open will try to open the port in read mode and get the default settings. Returns a list of all serial ports at your system including the device name and usb or bluetooth information as a dict. ======tcl package require tserialport set mydict [tserialport::getports open] ====== Result example Mac OS X: ====== 0 {device /dev/cu.Bluetooth-Incoming-Port description Bluetooth-Incoming-Port open true transport native baudrate 9600 bits 8 parity invalid stopbits 1 cts ignore dsr ignore dtr on rts on xon_xoff disabled} 1 {device /dev/cu.usbserial-FT0882PI description UC232R manufacturer FTDI product UC232R serial FT0882PI vendor_id 0x403 product_id 0x6001 open true transport usb baudrate 9600 bits 8 parity invalid stopbits 1 cts {flow control} dsr ignore dtr on rts {flow control} xon_xoff disabled} ====== Result example Windows: ====== 0 {device COM1 description {Kommunikationsanschluss (COM1)} open true transport native baudrate 1200 bits 7 parity none stopbits 1 cts ignore dsr ignore dtr on rts on xon_xoff disabled} 1 {device COM11 description {USB Serial Port (COM11)} manufacturer FTDI product TTL232RG-VSW5V0 serial FTTFRFB4 vendor_id 0x403 product_id 0x6001 usb_bus 0x2 usb_address 0x5 open true transport usb baudrate 1200 bits 7 parity none stopbits 1 cts ignore dsr ignore dtr on rts on xon_xoff disabled} ====== ** SEE ALSO ** WEB: Libserialport [https://sigrok.org/wiki/Libserialport] [BAWT] Build Automation With Tcl / Batteries included [http://www.bawt.tcl3d.org/index.html] ** LEGAL NOTICE ** Copyright (C) 2017 Alexander Schoepe, Bochum, DE <> Category Command | Tcl syntax | Arts and Crafts of Tcl-tk Programming | Device Control | Channel | USB