> 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.
This is unclear. When you say "set the baud rate was 9600" do you mean the baud rate on the other computer, or do you mean in the asynSetOption command in this IOC?
Are you sure that the IOC computer actually supports baud 115200? Not all computers do.
What OS and version are you running on the IOC computer?
Are there any error messages on the IOC when you run those commands?
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of 梁雅翔 [[email protected]]
Sent: Tuesday, April 05, 2016 2:51 AM
To: [email protected]
Subject: set baud rate not work
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
- References:
- set baud rate not work 梁雅翔
- Navigate by Date:
- Prev:
Re: Controlling vacuum valves with EPICS Joachim Rahn
- Next:
RE: Controlling vacuum valves with EPICS 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:
set baud rate not work 梁雅翔
- Next:
RE: set baud rate not work Mark S. Engbretson
- 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
|