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  2014  2015  <20162017  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  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Raspberrypi GPIO access through EPICS
From: Florian Feldbauer <[email protected]>
To: [email protected]
Date: Wed, 2 Mar 2016 09:00:49 +0100
Dear Vivek,

I wrote a device support for handling GPIOs via the /dev/class/gpio interface,
also supporting I/O interrupt.
It was tested on BeagleBone Black and Raspberry Pi Rev2.

The source is available at github
https://github.com/ffeldbauer/epics-devgpio

Regards,
Florian

On 03/02/2016 06:44 AM, Mark Rivers wrote:
I would recommend that you use the asynPortDriver C++ base class to write a driver.  You then don't need to write any device support, just a driver.

This page describes asynPortDriver.

http://www.aps.anl.gov/epics/modules/soft/asyn/R4-29/asynPortDriver.html

It contains a link to the following document that is an introductory talk on how to write a driver using asynPortDriver.  This example includes doing simply binary and analog I/O.

https://subversion.xray.aps.anl.gov/synApps/measComp/trunk/documentation/measCompTutorial.pdf

In this example the driver is making calls to the Measurement Computing library to do the I/O, but you would just substitute the C calls you have for the GPIO.

Mark

________________________________
From: [email protected] [[email protected]] on behalf of vivek singh [[email protected]]
Sent: Tuesday, March 01, 2016 11:02 PM
To: [email protected]
Subject: Raspberrypi GPIO access through EPICS

Hello all,

I want to access my Rapberrypi GPIO through EPICS. I had refered some documents which suggested to write device support and driver for it. Can you please suggest me from where to start and how?  And if possible send me some examples for accessing GPIO.

I have a programm in C and python which can toggle raspberry pi GPIO, What are the ways to do that through epics?

[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]


--
-regards
  Vivek



--
----------------------------------------
| Dr. Florian Feldbauer                |
|                                      |
| Helmholtz-Institut Mainz /           |
| Johannes Gutenberg-Universität Mainz |
| Johann-Joachim-Becher-Weg 36         |
| D-55128 Mainz                        |
|                                      |
| Office: SB1 / 00-213                 |
| Phone:  (+49)6131 / 39-29605         |
----------------------------------------


References:
Raspberrypi GPIO access through EPICS vivek singh
RE: Raspberrypi GPIO access through EPICS Mark Rivers

Navigate by Date:
Prev: RE: Raspberrypi GPIO access through EPICS Mark Rivers
Next: Re: PV with TSE=-2 and SCAN=I/O Intr returns <undefined> time. Enrique Bernal
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Raspberrypi GPIO access through EPICS Mark Rivers
Next: generic CSS version Florian Feldbauer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·