Subject: |
Generic Fieldbus Device Support (GPIB and others) |
From: |
Dirk Zimoch <[email protected]> |
To: |
EPICS Techtalk <[email protected]> |
Date: |
Tue, 14 Sep 1999 14:56:20 +0200 |
Hello all,
I've written a generic device support that should be able to talk
to all fieldbus devices, which do I/O as a stream of bytes.
I call it the Stream Device.
We use some devices with a RS232 interface, that is connected to a
RS232-CAN module, as well as some GPIB devices. My device support
has been tested for CAN (ESD CAN02 board) and GPIB (Microsys IEC03
board), but can be extended to any bus that handles byte streams.
What streams to send and to receive can be configured in an easy
to write "protocol file". Thus no C coding is required to support
new hardware. It uses printf/scanf-like format desriptions that are
replaced by the contents of record fields (VAL,RVAL,RBV).
In addition to the printf/scanf-formats, it also supports binary ASCII,
raw machine integers (big or little endian) and enums.
There are interfaces for the recordtypes ai, ao, bi, bo, mbbi, mbbo,
mbbiDirect, mbboDirect, stringin, stringout, longin, longout.
This list can easily be extended with more recordtypes (but ony
scalar types until now; that means no waveforms).
The bus interface is generic. There is an interface for CAN busses
that have the functions from Andrew Johnson's "canBus.h". Another
interface for GPIB is in alpha stage. (I didn't like the "Gpib.h"
interface from EPICS, it's too board specific.)
Information is avaliable under
http://www.delta.uni-dortmund.de/controls/pub/doc/streamDevice
A beta version will be released before the ICALEPCS meeting in Trieste
(October).
--
Dirk Zimoch
Institut fuer Beschleunigerphysik /\
und Synchrotronstrahlung / \
Uni Dortmund / \__
Maria-Goeppert-Mayer-Str. 2 ,-/ DELTA\ \
D-44221 Dortmund \/_____---\'
Tel.: 0231/755-5387 ----------
Fax.: 0231/755-5383
mailto:[email protected] http://www.delta.uni-dortmund.de
- Replies:
- Re: Generic Fieldbus Device Support (GPIB and others) Benjamin Franksen
- Navigate by Date:
- Prev:
Problems with installing interviews Lifang Zheng
- Next:
[Fwd: Problems with CA in a WAN environment] Geoff Savage
- Index:
1994
1995
1996
1997
1998
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Problems with installing interviews Lifang Zheng
- Next:
Re: Generic Fieldbus Device Support (GPIB and others) Benjamin Franksen
- Index:
1994
1995
1996
1997
1998
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|