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 2025 | 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 2025 |
<== 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 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 |