EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: ASYN port driver for file IO?
From: Stephen Beckwith <[email protected]>
To: Ralph Lange <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Tue, 17 Jun 2014 10:12:54 -0400
Ralph,
    It's not quite same. . .   For a customer I recently implemented EPICS for their system, running the Timesys Embedded Linux kernel.  The overall system has 2 (main) components:  The EPICS and a "high speed" data streaming server, connected via a TCP/IP Socket connection to a client.  When the Server gets connected, it provides an indication to EPICS that it's connected by creating a file in the Linux RFS.  In the EPICS code, this file gets polled via Record definition (SCAN), that then reports the status to the EPICS Client.  So in the ASYN processing, I call a "backend" function that checks if this file exists (using std Linux API's) and return either a 1 or 0 (exists or not).  This is what then gets returned back through the EPICS database. 
    I also read setup files @ initialization time from SD Card (Root File System is RAM based), some of which is fixed data, other which is parameter data.  However, this is a "one time" read in the INIT code for EPICS when it boots. 
   I don't know about StreamDevice support, but I supposed it's possible do do what you want. . . . 

Regards,
Stephen Beckwith


On Tue, Jun 17, 2014 at 8:26 AM, Ralph Lange <[email protected]> wrote:
All,

I was wondering if anyone has written an ASYN port driver for file read access.
Something that on every read returns a (run-time) configurable line of a (start-up) configurable file, for example.

Intended use: Read stuff from the /proc file system using StreamDevice.

Thanks for any hints,
~Ralph



References:
ASYN port driver for file IO? Ralph Lange

Navigate by Date:
Prev: Re: ASYN port driver for file IO? Pearson, Matthew R.
Next: RE: ASYN port driver for file IO? Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: ASYN port driver for file IO? Mark Rivers
Next: Re: ASYN port driver for file IO? Torsten Bögershausen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·