Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8a23f9979d77a6de381fb31592413f2851fb1448
Ticket: 1232418fffffffffffffffffffffffffffffffff
serial port application crashes after receiving a few chars
User & Date: schroedter on 2005-07-18 19:00:39
Changes

  1. icomment:
    Logged In: YES 
    user_id=99573
    
     The program "A simple serial terminal" is only a simple
    demonstrator for serial communications.
    For real serial applications there are many error sources
    (overrun, parity, etc.),  they should always perform error
    checking.
    For windows [fconfigure $chan -lasterror] may help to
    investigate the problem.
    
    if {[catch {read $chan} result]} { puts [format "Error
    reading serial port: %s" [fconfigure $chan -lasterror] ] }
    
    In the described report I assume that this is a performance
    problem, eigher the windows serial driver buffer overruns
    ore more likely the UART FIFO. The latter case may be
    improved by LOWERing the FIFO receive buffer level (Device
    Manager - COM1 - Port settings - Advanced - Receive buffer). 
    
    Quite sure that this is not a Tcl problem.
    
    
  2. login: "schroedter"
  3. mimetype: "text/plain"
  4. username: "schroedter"