Tcl Source Code

View Ticket
Login
Ticket UUID: 06ba3489ed2e9a33369899a13c7834f2655de201
Title: open command documentation says too much about serial port hardware
Type: RFE Created on: 2021-05-23 22:13:30
Submitter: chrstphrchvz Assigned to: jan.nijtmans
Subsystem: 24. Channel Commands Severity: Cosmetic
Priority: 5 Medium Last modified: 2021-05-27 12:23:17
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 8.6.11
Description:

The “Serial port signals” section of the documentation for the open 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, …”.

User Comments:
oehhar added on 2021-05-25 07:02:47:

Christopher,

thank you for the opinion. I can only say that I have used it last week and it is quite helpful for me. Hardware was a Windows 10 PC.

Thank you, Harald

P.S.: I love that you as great expert requires a moderator aproval on submitting tickets ;-). You may apply for commit rights on tcl core...


jan.nijtmans added on 2021-05-26 12:56:05:

Is [7f2cc845c050fccf|this] what you mean (together with some other doc fixes) ?

I think that - indeed - this information is not so useful for Tcl.


chrstphrchvz added on 2021-05-26 20:56:55:

Adjusted description slightly; I don’t disagree that actual RS-232 compliant serial hardware may still be in use.

The -ttycontrol and -ttystatus options for fconfigure 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

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).
and
BREAK

… Normally a receive or transmit data signal stays at the mark (on=1) voltage until the next character is transferred.

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.


jan.nijtmans added on 2021-05-27 12:23:17:

@chrstphrchvz can you provide a patch with your specific suggestion? I agree we shouldn't remove that much.