EPICS Home

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: Access to device connected RaspBerryPi SPI bus from IOC-Client
From: Christian Pauly <[email protected]>
To: [email protected]
Date: Wed, 26 Mar 2014 14:11:21 +0100
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


Replies:
Re: Access to device connected RaspBerryPi SPI bus from IOC-Client Jörn Wüstenfeld
Re: Access to device connected RaspBerryPi SPI bus from IOC-Client Dirk Zimoch

Navigate by Date:
Prev: Re: Writing data using channel access link as well as caput, into wavefrom record Benjamin Franksen
Next: Re: Access to device connected RaspBerryPi SPI bus from IOC-Client Jörn Wüstenfeld
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: Writing data using channel access link as well as caput, into wavefrom record Benjamin Franksen
Next: Re: Access to device connected RaspBerryPi SPI bus from IOC-Client Jörn Wüstenfeld
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