Hi everyone,
I have a strange question.
I use the stream and asyn to control a device. epics 3.1.12.5,synApp_5_8.
I set the baud of serial in 115200 in st.cmd with these commands:
*********
epicsEnvSet "TTY" "$(TTY=/dev/ttyS1)"
drvAsynSerialPortConfigure("L0","$(TTY)",0,0,0)
asynSetOption("L0",-1,"baud","115200")
asynSetOption("L0",-1,"bits","8")
asynSetOption("L0",-1,"parity","none")
asynSetOption("L0",-1,"stop","1")
asynSetOption("L0",-1,"clocal","Y")
asynSetOption("L0",-1,"crtscts","N")
asynOctetSetInputEos("L0",-1,"\r\n")
asynOctetSetOutputEos("L0",-1,"\r\n")
asynSetTraceIOMask("L0",-1,0x2)
asynSetTraceMask("L0",-1,0x9)
***********
Then I start the st.cmd and communicate it with another xp computer, using Serial port assistant.
I found that I received the right information only when I set the baud rate was 9600. It get nothing when the baud rate was 115200.
And it should be 115200, I failed when i used it in device directly.
I did set it was 115200 in st.cmd, why it did not work.
Thanks,
Liang yx
- Replies:
- RE: set baud rate not work Mark Rivers
- RE: set baud rate not work Mark S. Engbretson
- Navigate by Date:
- Prev:
Re: Multiple layers of DB templates? Andrew Johnson
- Next:
Controlling vacuum valves with EPICS Florian Feldbauer
- 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: Multiple layers of DB templates? Konrad, Martin
- Next:
RE: set baud rate not work 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
|