Am 29.03.2012 10:46, schrieb Ralf Fassel:
> * "T.Dieckmann"<
new...@arcor.de>
> | I had the same problem with TCL8.5 . I got always "framing error" as
> | response for fconfigure -lasterror. TCL8.4 showed the same problem but
> | not as often as TCL8.5 did. Neither changing the buffersize of the
> | tcl channel nor changing the fifo setting of the serial device was
> | successful.
>
> Which OS was this on? I have the problem on a single Windows-7 laptop
> with built-in RS232 (no USB-serial converter but the real thing)
All tests were done on the same machine with WinXP Sp3 with build-in
RS232 16550 UART as well as with an additional RS232 card with 16C850
UART and 128 byte buffer.
Never saw that problem in the past with 8.4 on Linux, but had no chance
to check it with 8.5 under Linux as we moved to Windows.
>
> | I ask also here to get any hint, but no real solution was found. The
> | analysis with "portmon" (no error at all with this application)
> | indicated the TCL error occured always if a large data chunck went
> | in.
>
> Define 'large'... In my situation it is at 9600 baud, with data of max
> 60-70 chars per chunk, chunks coming in in seconds intervals.
- Serial line was configured with 115200,8n1
- can't remember of the chunk size, but it was much higher than yours
(data source: highest logging/trace level of an embedded device with RT OS)
- we never got an UART buffer overflow error
>
> | Other serial terminals like hyperterm or terraterm indicated no
> | errors, may be they are more robust under the hood.
>
> Did they show *all* data? Might be that they silently dropped the
> errors...
>
I cannot exclude it, but it was at least not obvious.
> | As a TCL fan it was really hard to acknowledge that it isn't (anymore)
> | the right tool for serial line handling. In older releases we
> | monitored several serial lines at the same time without any problems
> | from TCL.
>
> Did the new TCL releases show the problems on the very same hardware?
Yes, I installed AS TCL8.4.x and AS TCL8.5.x on the same machine, but
only one version at a time. Moreover we performed the test on 3 PC of
the same type.
>
> | Could the performance penalty we have to pay for new features the
> | reason for that?
>
> Uh... I'd like to doubt this. At the data rates in question current
> processors should be able to handle the load while in suspend-to-disk
> mode (just kidding). The application in my case is doing nothing but
> waiting for the serial line...
Agreed. As my problem occured with 8.4 and 8.5 but only on WinXP, it may
be more OS related than TCL version related.
Br,
Torsten