|
2005-10-05
| ||
| 10:59 | • Closed ticket [1232418fff]: serial port application crashes after receiving a fe... artifact: 16c4a5a92f user: hobbs | |
|
2005-07-18
| ||
| 19:00 | • Ticket [1232418fff]: 4 changes artifact: 8a23f9979d user: schroedter | |
|
2005-07-06
| ||
| 02:42 | • Ticket [1232418fff]: 4 changes artifact: 31f07594ea user: nobody | |
|
2005-07-04
| ||
| 21:15 | • New ticket [1232418fff]. artifact: 8c687f76af user: xmit | |
serial port application crashes after receiving a few chars
Closed / Invalid1232418fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-07-04 21:15:38
The program "A simple serial terminal" described at
http://wiki.tcl.tk/3642 crashes on my system after
receiving a few thousand chars. I use Windows XP and
ActiveTcl8.4.10.0.147113-win32-ix86.exe. This happens
with 115kbit/s as with 2400bit/s.
The less \n\r are send the faster it crashes. After the
first crash, it crashes almost immediatly after each
restart.
The error log says for example:
error reading "filea9b638": I/O error
error reading "filea9b638": I/O error
while executing
"read $chan"
(procedure "receiver" line 2)
invoked from within
"receiver filea9b638"
nobodyplain2005-07-06 02:42:54
Logged In: NO It seems to depend on system load. When I maximise the terminal window it crashes earlier. It seems that even mouse moves suffice sometimes.
schroedterplain2005-07-18 19:00:39
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.
hobbsplain2005-10-05 10:59:58
Logged In: YES user_id=72656 Closing report based on Rolf's notes.
Log in (anonymous is fine) to add a comment.