Hi Alex,
You can do the following to turn off messages:
asynSetTraceMask(“port”,-1,0)
where “port” is the name of the asyn port, -1 means all addresses, and 0 means all asyn trace mask bits are cleared (ASYN_TRACE_ERROR, ASYN_TRACE_FLOW, etc.).
What versions of asyn and modbus are you running? In asyn R4-27 I changed the standard EPICS device support (asyn/devEpics) so that there should only be a single error message per record when a port disconnects and another single error
message per record when a port reconnects.
However, I just looked at the Modbus driver, and it prints an error message when it gets an I/O error from the underlying TCP or serial driver. It should not do that, it should just pass the error string up to device support.
Can you send me the error messages you are getting and I will fix the Modbus driver so that it does not print error messages when the device is disconnected.
Mark
Is there a flag or option for the Modbus connection functions to suppress the output when the connection is lost? My IOC logs are filling up!
Thanks,
-Alex