Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-03
06:31 • Ticket [218700ffff] Serial Com port looses characters. status still Closed w... artifact: 033b528b0b user: dgp
2000-10-26
08:27 • Closed ticket [218700ffff]. artifact: 1866c2ace9 user: welch
01:04 • New ticket [218700ffff]. artifact: 8ab6f38ef8 user: nobody

Serial Com port looses characters.

Closed / Fixed218700ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:17
OriginalBugID: 1784 Bug
Version: 8.1b3
SubmitDate: '1999-04-12'
LastModified: '1999-04-20'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: redman
OS: Windows 98
Machine: X86
FixedDate: '1999-04-20'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'


Name:

Brian O'Brien



ReproducibleScript:

if [eof $comport] {

          puts "caught eof on $comport."

          catch {close $comport}

       } else {

          set n [gets $comport line]

          if {$n != -1} {

             puts $line

          }

       }

    }

    

    proc openport {} {

    

       global comport

    

       set comport [open com2: r+] 

       fconfigure $comport -blocking 0 -buffering line -mode 2400,n,8,1

       fileevent $comport readable [list incomming $comport]

    }



ObservedBehavior:

Characters are lost regardless of the baud rate...



DesiredBehavior:

No loss of data or an error indicating serial overrun...





04/20/1999 16:19 - redman - Fixed the problem, ClearCommError() has an annoying side effect of nuking data out of the buffer.
welch Closed ticket [218700ffff]. [History diff]2000-10-26 08:27:11
dgp Ticket [218700ffff]: 3 changes [History diff]2001-04-03 06:31:47
Log in (anonymous is fine) to add a comment.