EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Devices Which Send Unsolicited Messages
From: Eric Norum <[email protected]>
To: EPICS tech-talk <[email protected]>
Cc: Steven Banks <[email protected]>
Date: Fri, 4 Aug 2006 08:02:40 -0500
I'd handle this situation by starting a worker thread from the driver initialization routine.  The worker thread would enter a loop calling read() and whenever a complete message had been received, using the standard AYSN method of reporting an interrupt.  This would kick off record processing which would process the results obtained by the worker thread.


________________________________

From: Steven Banks [mailto:[email protected]]
Sent: Fri 8/4/2006 4:57 AM
Subject: Devices Which Send Unsolicited Messages



This is a follow up question to a comment that Dirk Zimoch made in another
thread.

We use Asyn for almost all of our device drivers, however up till now none
of the devices we have used send unsolicited messages.   We live in fear
of the day when we encounter such a device because we don't know how to
handle these messages in Asyn.  In fact, Dirk commented that this is not
even supported in Asyn.  If this is true, what is the canonical method in
EPICS of writing a device driver which copes with such a device?

Regards,

Steve Banks
Australian Synchrotron Project





-- 
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793



References:
Devices Which Send Unsolicited Messages Steven Banks
RE: Devices Which Send Unsolicited Messages Mark Rivers

Navigate by Date:
Prev: RE: Devices Which Send Unsolicited Messages Mark Rivers
Next: Re: Deadlock when using asyn with StreamDevice. (Was: Deadlock when using asyn?) Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Devices Which Send Unsolicited Messages Mark Rivers
Next: Smooth transition from medm to edm Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·