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  2013  2014  2015  <20162017  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  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: set baud rate not work
From: 梁雅翔 <[email protected]>
To: [email protected]
Date: Tue, 5 Apr 2016 15:51:12 +0800 (GMT+08:00)
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  <20162017  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·