Experimental Physics and Industrial Control System
Hello,
I have a serial device that uses streamdevice, from a CALC record, with the SCAN file set to "I/O Intr". The device has a simple interface, in that it can only send data once per second, and that's it.
record(calcout, "$(BL)GammaDoseRate") {
field(DESC, "gamma dose rate")
field(DTYP, "stream")
field(OUT, "@$(proto) read($(BL)) $(PORT)")
field(SCAN, "I/O Intr")
field(CALC, "A<8388608 ? 0.01*A : 0.01*(8388608-A)")
# .A is filled in by $(proto)
# SDIS is for alarm propogation only
field(SDIS, "$(BL)GammaHeartBeat CP MS")
field(EGU, "mR/hr")
field(PREC, "2")
field(HOPR, "10.0")
field(LOPR, "-1.0")
field(HIGH, "$(HIGH=0.5)")
field(HYST, "$(HYST=0.02)")
field(HSV, "MINOR")
field(FLNK, "$(BL)GammaCommCheck")
}
For this application I have the asyn options set to disconnect on a read timeout and to autoConnect.
drvAsynIPPortConfigure("GAMMA_B44_12" ,"${TS_NODE}:2107",0,0,0)
asynSetOption("GAMMA_B44_12", 0, "disconnectOnReadTimeout", "Y")
If this devices gets a read timeout, the driver sends an error message to the IOC console, and the device does disconnect. Next the driver tries to reconnect a second later, at which time I get another timeout and error message, and thus begins the flood of messages to the console.
2017/11/09 11:44:15.178742 GAMMA_B44_12 BSOIC:B44:12:GammaString: I/O error after reading 0 bytes: ""
2017/11/09 11:44:15.178756 GAMMA_B44_12 BSOIC:B44:12:GammaString: Protocol aborted
2017/11/09 11:44:16.178952 GAMMA_B44_12 BSOIC:B44:12:GammaString: asynError in read. Asyn driver says: ts-b044-pp01:2107 disconnected:
2017/11/09 11:44:16.178979 GAMMA_B44_12 BSOIC:B44:12:GammaString: I/O error after reading 0 bytes: ""
2017/11/09 11:44:16.179003 GAMMA_B44_12 BSOIC:B44:12:GammaString: Protocol aborted
I can setup the database to turn off these messages after a period of time by setting "noAutoConnect". However, I'd like to instead do the following:
1) set autoConnect
2) configure the rate at which the auto reconnection is attempted,
3) turn on/off the error messages sent to the console.
Is this possible?
Regards,
Kristi
- Replies:
- RE: How to turn off spewing messaging from asyn/stream devicse. Mark Rivers
- Navigate by Date:
- Prev:
Re: caget() from C++ Andrew Johnson
- Next:
Re: EPICS base R3.15.5-1.0 special CONFIG and RULE files Andrew Johnson
- 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: EPICS base R3.15.5-1.0 special CONFIG and RULE files Andrew Johnson
- Next:
RE: How to turn off spewing messaging from asyn/stream devicse. 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