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: Vahe Sahakyan <[email protected]>
To: Eric Norum <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Thu, 30 May 2013 09:48:19 +0500 (AMST)

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]



Replies:
Re: Gauge controller with R232 serial port Alan Greer
RE: Gauge controller with R232 serial port Mark Rivers
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

Navigate by Date:
Prev: Re: autosave failure S_rpcLib_RPC_CANTSEND Ned Arnold
Next: Re: Status update during no motor in motion Mi Qingru
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 Eric Norum
Next: Re: Gauge controller with R232 serial port Alan Greer
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 ·