• ANNOUNCE: tserialport 1.2 released / Tcl 9.x ready

    From =?UTF-8?Q?Alexander_Sch=C3=B6pe?=@ete-sep@mxbo.de to comp.lang.tcl on Sat Jan 3 19:59:32 2026
    From Newsgroup: comp.lang.tcl

    tserialport - tcl package for library libserialport

    https://fossil.sowaswie.de/tserialport

    Version 1.2 is now Tcl 9.x compatible


    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.


    Sysnopsis

    tserialport::getports ?open?
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From saito@saitology9@gmail.com to comp.lang.tcl on Sat Jan 3 16:04:39 2026
    From Newsgroup: comp.lang.tcl

    On 1/3/2026 1:59 PM, Alexander Sch||pe wrote:
    tserialport - tcl package for library libserialport

    https://fossil.sowaswie.de/tserialport

    Version 1.2 is now Tcl 9.x compatible


    Thank you for the packages you announced recently. They are nice and
    unique additions to the language.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Ralf Fassel@ralfixx@gmx.de to comp.lang.tcl on Mon Jan 5 11:48:02 2026
    From Newsgroup: comp.lang.tcl

    * Alexander Sch||pe <ete-sep@mxbo.de>
    | tserialport - tcl package for library libserialport

    | https://fossil.sowaswie.de/tserialport

    | Version 1.2 is now Tcl 9.x compatible

    | 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.

    Out of curiosity: what does that package add to cross-platform serial
    port handling that the TCL core does not already provide?

    R'
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From =?UTF-8?Q?Alexander_Sch=C3=B6pe?=@ete-sep@mxbo.de to comp.lang.tcl on Mon Jan 5 12:06:52 2026
    From Newsgroup: comp.lang.tcl

    It locates the serial interfaces.

    Example

    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.

    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
    }


    Am 05.01.2026 um 11:48 schrieb Ralf Fassel:
    * Alexander Sch||pe <ete-sep@mxbo.de>
    | tserialport - tcl package for library libserialport

    | https://fossil.sowaswie.de/tserialport

    | Version 1.2 is now Tcl 9.x compatible

    | 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.

    Out of curiosity: what does that package add to cross-platform serial
    port handling that the TCL core does not already provide?

    R'

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Ralf Fassel@ralfixx@gmx.de to comp.lang.tcl on Mon Jan 5 13:35:50 2026
    From Newsgroup: comp.lang.tcl

    * Alexander Sch||pe <ete-sep@mxbo.de>
    | Am 05.01.2026 um 11:48 schrieb Ralf Fassel:
    | > * Alexander Sch||pe <ete-sep@mxbo.de>
    | > | tserialport - tcl package for library libserialport
    | >>
    | > | https://fossil.sowaswie.de/tserialport
    | >>
    | > | Version 1.2 is now Tcl 9.x compatible
    | >>
    | > | 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.
    | > Out of curiosity: what does that package add to cross-platform
    | > serial
    | > port handling that the TCL core does not already provide?
    | > R'
    |
    | It locates the serial interfaces.

    Ok, it's not only plain serials (rs232 et al.), but also others like
    bluetooth etc

    | Example

    | 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.

    Cool, thanks!

    R'
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From =?UTF-8?Q?Alexander_Sch=C3=B6pe?=@ete-sep@mxbo.de to comp.lang.tcl on Mon Jan 5 16:19:58 2026
    From Newsgroup: comp.lang.tcl

    The package helps you find all serial interfaces on the system. For
    example, if you connect a USB device that can be controlled via serial
    and plug it into a different port on the bus, the device will get a
    different device name. You can then use the serial number of the USB
    device to find the device you want to control in the returned list.

    Am 05.01.2026 um 13:35 schrieb Ralf Fassel:
    * Alexander Sch||pe <ete-sep@mxbo.de>
    | Am 05.01.2026 um 11:48 schrieb Ralf Fassel:
    | > * Alexander Sch||pe <ete-sep@mxbo.de>
    | > | tserialport - tcl package for library libserialport
    | >>
    | > | https://fossil.sowaswie.de/tserialport
    | >>
    | > | Version 1.2 is now Tcl 9.x compatible
    | >>
    | > | 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.
    | > Out of curiosity: what does that package add to cross-platform
    | > serial
    | > port handling that the TCL core does not already provide?
    | > R'
    |
    | It locates the serial interfaces.

    Ok, it's not only plain serials (rs232 et al.), but also others like bluetooth etc

    | Example

    | 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.

    Cool, thanks!

    R'

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From undroidwish@undroidwish@googlemail.com to comp.lang.tcl on Mon Jan 5 16:28:21 2026
    From Newsgroup: comp.lang.tcl

    On 1/5/26 16:19, Alexander Sch||pe wrote:

    Tach Alex,

    first of all, happy new year!

    ... You can then use the serial number of the USB
    device to find the device you want to control in the returned list.

    ... minus these el-cheapo USB adapters lacking a serial number.

    BR,
    Christian
    --- Synchronet 3.21a-Linux NewsLink 1.2