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  <20102011  2012  2013  2014  2015  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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Developing of record / driver / device support? Asyn?
From: "Mark Rivers" <[email protected]>
To: "Gorka Ronda" <[email protected]>, <[email protected]>
Date: Wed, 28 Jul 2010 11:52:01 -0500

Hi Gorka,

 

On the win32-x86 architecture asyn does not currently support local RS-232 serial ports, because there is no termios driver available for them.  However, you can use the cygwin-x86 architecture on Windows to access the local serial ports.  Alternatively, with either architecture you can use an Ethernet terminal server, such as those from Moxa, to access serial ports.

 

To communicate with the device I would recommend using the streamDevice module (http://epics.web.psi.ch/software/streamdevice/).  It uses asyn for the underlying communication, and provides the device support to communicate using standard EPICS records.  I would recommend it over devGPIB for new applications, it is simpler to use.  You don’t need to write any C code, you just create a “protocol” file that describes how to format the strings to send to the device, and how to parse the response.

 

You will create a database that defines EPICS records that use the streamDevice device support.

 

You can test communication with your device by loading an “asyn” record and using it interactively to send strings to the device and examine the responses.

 

Mark

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Gorka Ronda
Sent: Wednesday, July 28, 2010 5:34 AM
To: [email protected]
Subject: Developing of record / driver / device support? Asyn?

 

Hi all,

 

I’m newbie to EPICS and I need some help to start using it. I’m trying to develop an IOC based on a Windows XP PC. I have already build EPICS Base 3.14.9 with win32-x86 architecture and execute the “Example IOC Application” and “Channel Access Host Example” from the Application Developers Guide.

 

Now, I would like to connect a card to the IOC (PC) via RS-232. I think I need the Asyn interface from SynApps. But, I have no clear how to do it. I have to program something or a generic support for any RS-232 connection is already made? Does it change depending on the card to be used? What would I need? Record, Device and Driver support? Some of those? One of those? Maybe, another solution…

 

On the other hand, when I have to develop the database? Before or after record/driver/device support? How to do it simply and fast?

 

Thanks in advance

 

Gorka


Replies:
Re: Developing of record / driver / device support? Asyn? Eric Norum
References:
Developing of record / driver / device support? Asyn? Gorka Ronda

Navigate by Date:
Prev: RE: Analog output device support design Mark Rivers
Next: Re: HTML Device Driver Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Developing of record / driver / device support? Asyn? Steiner, Mathias
Next: Re: Developing of record / driver / device support? Asyn? Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·