Experimental Physics and Industrial Control System
This error:
drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
asynSetOption("L0", -1, "baud", "9600")
setOption failed tcsetattr failed: Input/output error
probably means either that /dev/ttyS0 does not exist, or you don't have permission to modify it.
Do
ls -l /dev/ttyS0
to check the permissions.
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Vahe Sahakyan [[email protected]]
Sent: Wednesday, May 29, 2013 11:48 PM
To: Eric Norum
Cc: EPICS Tech-Talk
Subject: Re: Gauge controller with R232 serial port
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 Eric Norum
- 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:
RE: PI C863's direction status can't change in time as leaving the limit switch nick.rees
- Next:
RE: PI C863's direction status can't change in time as leaving the limit switch Mark Rivers
- 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
- Navigate by Thread:
- Prev:
Re: Gauge controller with R232 serial port Alan Greer
- Next:
Re: Gauge controller with R232 serial port Eric Norum
- 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