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