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  2010  2011  2012  <20132014  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  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Gauge controller with R232 serial port
From: Alan Greer <[email protected]>
To: Vahe Sahakyan <[email protected]>
Cc: Eric Norum <[email protected]>, EPICS Tech-Talk <[email protected]>
Date: Thu, 30 May 2013 09:25:35 +0100
Dear Vahe,

It looks like your stream device installation has not been notified of where the asyn module resides. For example on an IOC I have

epics> dbior
Driver: drvAsyn
SSH1 multiDevice:No canBlock:Yes autoConnect:Yes
Driver: stream
  StreamDevice 2.4 built May 29 2013 12:18:20
  registered bus interfaces:
    AsynDriverInterface
    DummyInterface
    DebugInterface
epics>

Your output does not contain the AsynDriverInterface under registered bus interfaces.

You need to add an entry for ASYN in the configure/RELEASE file of the stream device module. Edit

<PATH TO STREAM>/configure/RELEASE

and add

ASYN=<PATH TO ASYN>


The file CONFIG_STREAM should be located at

<PATH TO STREAM>/streamApp/src/CONFIG_STREAM

but it contains a section that states the asynDriver interface is added automatically if ASYN is defined in your RELEASE file.

I hope this helps.

Kind regards, Alan





On 05/30/2013 05:48 AM, Vahe Sahakyan wrote:

Hello,

Thank you for your reply. According to your suggestion, we followed the steps described in the stream device documentation (HowToDoSerial(StreamDevice)) and try to run the example, but we got an error:

drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
asynSetOption("L0", -1, "baud", "9600")
setOption failed tcsetattr failed: Input/output error
asynSetOption("L0", -1, "bits", "8")
setOption failed tcsetattr failed: Input/output error
asynSetOption("L0", -1, "parity", "none")
setOption failed tcsetattr failed: Input/output error
asynSetOption("L0", -1, "stop", "2")
setOption failed tcsetattr failed: Input/output error
asynSetOption("L0", -1, "clocal", "Y")
setOption failed tcsetattr failed: Input/output error
asynSetOption("L0", -1, "crtscts", "Y")
setOption failed tcsetattr failed: Input/output error
asynOctetSetInputEos("L0", -1, "\n")
asynOctetSetOutputEos("L0", -1, "\n")
asynSetTraceIOMask("L0",-1,0x2)
asynSetTraceMask("L0",-1,0x9)

and also when I type dbior "stream" command in epics I get the following output:
 Driver: stream
  StreamDevice 2.6.0 built May 13 2013 15:00:53
  registered bus interfaces:
    DebugInterface
    DummyInterface.

Can you help me to resolve this problems?
In the Tech-talk I found some notes about the last output where it is suggested to make some changes in the CONFIG_STREAM file, but I could not find such file in my directories. Where it is located?

Thanks in advance,
Vahe.

Agreed -- and please note that recent versions of the ASYN support module include a tutorial on using StreamDevice to communicate with a device.

On May 22, 2013, at 1:28 AM, Ralph Lange <[email protected]> wrote:

Hello Vahe,

I would strongly suggest using StreamDevice [1] to interface such a device. This approach will be much easier and faster. Writing a protocol file for your device is basically all you will have to do.

~Ralph


--
Eric Norum
[email protected]




References:
Gauge controller with R232 serial port Vahe Sahakyan
Re: Gauge controller with R232 serial port Ralph Lange
Re: Gauge controller with R232 serial port Eric Norum
Re: Gauge controller with R232 serial port Vahe Sahakyan

Navigate by Date:
Prev: PI C863's direction status can't change in time as leaving the limit switch Mi Qingru
Next: RE: PI C863's direction status can't change in time as leaving the limit switch nick.rees
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Gauge controller with R232 serial port Vahe Sahakyan
Next: RE: Gauge controller with R232 serial port Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·