Re: Intermittent Failure on Serial Port (Other thread code)

2006-06-13 Thread H J van Rooyen
I would like to publicly thank Serge Orloff for the effort he has put in so far and his patience... He is a Scholar and a Gentleman. Serge Orloff wrote: | H J van Rooyen wrote: | | > Note that the point of failure is not the same place in the python file, but it | > is according to the traceback,

Re: Intermittent Failure on Serial Port (Trace Result)

2006-06-12 Thread Serge Orlov
H J van Rooyen wrote: > Note that the point of failure is not the same place in the python file, but > it > is according to the traceback, again at a flush call... Yes, traceback is bogus. Maybe the error is raised during garbage collection, although the strace you've got doesn't show that. The

Re: Intermittent Failure on Serial Port (Trace Result)

2006-06-12 Thread H J van Rooyen
8<-- (snip) old fail: | | > | > Traceback (most recent call last): | | > | > File "portofile.py", line 232, in ? | | > | > ret_val = main_routine(port, pollstruct, pfifo) | | > | > File "portofile.py", line 108, in main_routine | | > | > send_nak(port, timeout) # so

Re: Intermittent Failure on Serial Port

2006-06-12 Thread H J van Rooyen
Serge Orlof wrote: | H J van Rooyen wrote: | > Serge Orloff wrote: | > | > | H J van Rooyen wrote: | > | > Traceback (most recent call last): | > | > File "portofile.py", line 232, in ? | > | > ret_val = main_routine(port, pollstruct, pfifo) | > | > File "portofile.py", line 108, in main_

Re: Intermittent Failure on Serial Port

2006-06-11 Thread Serge Orlov
H J van Rooyen wrote: > Serge Orloff wrote: > > | H J van Rooyen wrote: > | > Traceback (most recent call last): > | > File "portofile.py", line 232, in ? > | > ret_val = main_routine(port, pollstruct, pfifo) > | > File "portofile.py", line 108, in main_routine > | > send_nak(port, time

Re: Intermittent Failure on Serial Port

2006-06-10 Thread H J van Rooyen
Serge Orloff wrote: | H J van Rooyen wrote: | > Traceback (most recent call last): | > File "portofile.py", line 232, in ? | > ret_val = main_routine(port, pollstruct, pfifo) | > File "portofile.py", line 108, in main_routine | > send_nak(port, timeout) # so bad luck - comms erro

Re: Intermittent Failure on Serial Port

2006-06-10 Thread Serge Orlov
H J van Rooyen wrote: > Traceback (most recent call last): > File "portofile.py", line 232, in ? > ret_val = main_routine(port, pollstruct, pfifo) > File "portofile.py", line 108, in main_routine > send_nak(port, timeout) # so bad luck - comms error > File "/home/hvr/Polling/lib/

Intermittent Failure on Serial Port

2006-06-10 Thread H J van Rooyen
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from three hours to three days, then sometimes when I get a comms error and have to send out a nak character, it