On Thu, 19 Oct 2000, Olaf Petzold wrote:

> > Most probably you have a bug in your program. Is it just the program stopping
> > working , or the whole system?
> 
> Only the program is stopping.
> Thanks for your hint how to debug this. I was astonished to find out that
> compiling something hangs my serial prog as well. It seems, that the serial
> programing howto is to simple. OT: any ideas why ?

In my opinion just desynchronization - that it program waits for data which
are never received, because of some error in transmission before.

Really, try strace.

See
http://crds.chemie.unibas.ch/PCI-MIO-E/pcontrol-parport-balzers/balzersd.c

See read_t() - read with timeout function for serial port.

You need to take care that loss or change of single character can be
recovered. The program must have ability to reinitiate transmission if data
not received or corrupted.

--
Tomek

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to