Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dc600b78292e3991a950155a9ab1a6a7617938972810866f24a329b259aac3e2
Ticket: 06ba3489ed2e9a33369899a13c7834f2655de201
open command documentation says too much about serial port hardware
User & Date: chrstphrchvz on 2021-05-26 20:56:55
Changes

  1. comment changed to:
    The “Serial port signals” section of the documentation for the <tt>open</tt> command (and possibly elsewhere) says quite a bit about the electrical specifications of serial port hardware, which I think is dated and unnecessary. There may still be plenty of serial port communications in use, but it is not uncommon for it to only resemble RS-232 logically and not electrically, e.g. serial over 5V/3.3V/USB/Bluetooth/emulation. I think Tcl is better off either not discussing this authoritatively, or prefacing it with something like “Historically, …”.
    
  2. icomment:
    Adjusted description slightly; I don’t disagree that actual RS-232 compliant serial hardware may still be in use.
    
    The <tt>-ttycontrol</tt> and <tt>-ttystatus</tt> options for <tt>fconfigure</tt> both say to “see below” for descriptions of serial port signals, so those may need to be kept.
    
    I was mainly referring to verbiage like
    <blockquote>RS-232 is the most commonly used standard electrical interface for serial communications. A negative voltage (-3V..-12V) define a mark (on=1) bit and a positive voltage (+3..+12V) define a space (off=0) bit (RS-232C).</blockquote>
    and
    <blockquote><b>BREAK</b>
    
    …
    Normally a receive or transmit data signal stays at the mark (on=1) voltage until the next character is transferred.</blockquote>
    
    So I would wonder how to refer to things like mark/space—if those are important to mention—without needing to describe what they correspond to electrically.
    
  3. login: "chrstphrchvz"
  4. mimetype: "text/x-fossil-wiki"