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]