g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: Out of order replies from a serial device
From: Phillip Sorensen <pas37@cornell.edu>
To: TechTalk EPICS <tech-talk@aps.anl.gov>
Date: Thu, 18 Jan 2007 14:45:00 -0500
Hi All,

I am trying to get an RS-232 ion pump controller (Terranova 751) using the asyn devGpib device support. I have the code working for each command, but after time running I will get what appears to be a communication timeout to the pump controller and after the timeout I notice that the PV values are wrong. They have the value of another command not their own value. For example before the timeout error the voltage is 3500 and the current is 4e-6, after the timeout error the voltage read 1 and the current is 3.5e-3 (3500).

The device is connected through a Comtrol Devicemaster ethernet-to-serial device, and by resetting this device or restarting the IOC, I can get the right values. I have found that starting the IOC inside of gdb seems to always cause a timeout with the first message and trigger this problem.

By using a packet capture program, it looks like the packets are correct from the Devicemaster. The replies are to the command sent and appear to be complete.

Has anyone else had issues like this? Is there an easy way to close the connection or flush the input buffer on an error?

Thanks,

Phil Sorensen
CHESS


Replies:
Re: Out of order replies from a serial device Emmanuel Mayssat

Navigate by Date:
Prev: sscan record Graham Waters
Next: Re: Out of order replies from a serial device Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: sscan record Graham Waters
Next: Re: Out of order replies from a serial device Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·