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: Access to device connected RaspBerryPi SPI bus from IOC-Client
From: Dirk Zimoch <[email protected]>
To: [email protected]
Date: Fri, 28 Mar 2014 16:25:16 +0100
Hi Christian

Best you write an asynOctet driver.

Dirk

On 26.03.2014 14:11, Christian Pauly wrote:
Dear folks
I am trying to provide EPICS support for a magnetic field Hall sensor
which is connected to a RaspberryPi via SPI bus.
I want to run an EPICS-IOC on this same Raspberry, which provides the
data from the Hall-Sensor on request, such that some CSS-Gui, running on
another pc, can access the sensor-data via Channel Access.

I have a running EPICS base on the Raspberry, and i know how to readout
the sensor in a small c++ program (using the wiringPiSPI library).


What is the best way now, to get the sensor-data into the EPICS IOC ?

My first idea is, to modify the c++-program such, that it prints the
return-value as a formatted text string.
Then there might be an EPICS record-type, which can call this programm
(via SHELL-command), capture the text output, evaluate the outputstring,
and copy this into the record data field.

However, that does not sound like an elegant solution. So what is the
suggested solution, and does anyone maybe have an example of a similar
implementation ?

I have a basic EPICS knowledge, i know what a record is, and i can
configure a database with different records.
But i have no idea how to program eg a new record type by using some
EPICS libraries.


Can anyone help ?????
Or give me a hint where i can find appropriate documentation ?


Best regards,
Christian





References:
Access to device connected RaspBerryPi SPI bus from IOC-Client Christian Pauly

Navigate by Date:
Prev: UPcoming EPICS Meeting in Langzhou - please register as Visas must be prepared Dalesio, Leo
Next: MJPEG Video Display for CS-Studio Kasemir, Kay
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: Access to device connected RaspBerryPi SPI bus from IOC-Client Jörn Wüstenfeld
Next: Dynamic Assignment is Sequencer Ganesh Jangir
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 ·