EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: help-serial driver for linux
From: Dirk Zimoch <[email protected]>
To: zhangdemin99 <[email protected]>
Cc: [email protected]
Date: Wed, 30 May 2007 16:40:47 +0200
Hi,

use asynDriver <http://www.aps.anl.gov/epics/modules/soft/asyn/> and set up a serial port like this:

drvAsynSerialPortConfigure ("serialport","/dev/ttyS1")

Use the name "serialport" (or whatever other name you chose) to reference the serial port in any device support that talks to asynDriver.

For an introduction on asynDriver, see http://www.aps.anl.gov/epics/docs/USPAS2007/lectures/ASYN.ppt or
ftp://ftp.desy.de/pub/EPICS/meeting-2007/asynDriverIntroduction.pdf and of course the documentation that is included in asynDriver.


Maybe, you want to use StreamDevice <http://epics.web.psi.ch/software/streamdevice/> on top of asynDriver.

Dirk



zhangdemin99 wrote:
Dear all,
I want to use a RS232 interface to connect a linux PC which EPICS is running on. Somebody suggest using drvSerial / drvASCII ,but I don't know how to use it. Who can help me ? Is there any other method to control the serial device ?
Many thanks in advance. Demin Zhang



------------------------------------------------------------------------
150万人同时在玩的网游,你不试试吗? <http://event.mail.163.com/chanel/xyq.htm?from=163_NO1>

-- Dr. Dirk Zimoch Computing and Controls Paul Scherrer Institut phone +41 56 310 5182 fax +41 56 310 4413

References:
help-serial driver for linux zhangdemin99

Navigate by Date:
Prev: help-serial driver for linux zhangdemin99
Next: wanted: rule to build products with own CFLAGS inside single Makefile Dayle Kotturi
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: help-serial driver for linux zhangdemin99
Next: wanted: rule to build products with own CFLAGS inside single Makefile Dayle Kotturi
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024