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 Rivers <[email protected]>
To: "'Mark S. Engbretson'" <[email protected]>, '梁雅翔' <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 5 Apr 2016 18:05:19 +0000
I clarified this with the poster. His original message was not clear.  He mean he was leaving the baud rate set in the IOC at 115200, and changing it on the remote system that the IOC was trying to talk to.  It worked when he set the remote system to 9600, meaning the IOC was actually using 9600.  I have found that he is getting an error with the asynSetOption command, it is not recognized.  Probably a problem with his dbd file.

Mark


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark S. Engbretson
Sent: Tuesday, April 05, 2016 9:01 AM
To: '梁雅翔'; [email protected]
Subject: RE: set baud rate not work

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



References:
set baud rate not work 梁雅翔
RE: set baud rate not work Mark S. Engbretson

Navigate by Date:
Prev: Re: CSS version 4.2: can't access EPICS Phil Atkin
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  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: set baud rate not work Mark S. Engbretson
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 
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 ·