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: RE: set baud rate not work
From: "Mark S. Engbretson" <[email protected]>
To: '梁雅翔' <[email protected]>, <[email protected]>
Date: Tue, 5 Apr 2016 09:00:46 -0500
This is most probably not going to work since unless the device is already
set to the same baud rate as your IOC, it will not even be able to
understand the commands that you are sending. If those setting are what you
IOC expects, you device has to be set to the same values before you even
start.

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of ???
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


Replies:
RE: set baud rate not work Mark Rivers
References:
set baud rate not work 梁雅翔

Navigate by Date:
Prev: Re: Controlling vacuum valves with EPICS Pete Jemian
Next: Re: Controlling vacuum valves with EPICS Michael Davidsaver
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: set baud rate not work Mark Rivers
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 ·