Open xiaoqiangwang opened 1 year ago
The reconnection timer is only initiated by asynManager->exceptionDisconnect. If the port was never connected, it will reach an early return and the timer would not start. https://github.com/epics-modules/asyn/blob/9e184b6102fba63bc5a536cb26f1c94094b23692/asyn/asynDriver/asynManager.c#L2094-L2099
It is somewhat related to #147.
When I test a model-3 asynMotor driver, I notice the asynMotorController::connect method was not invoked by reconnect timer.
Use the testAsynPortDriver driver with the following changes, the problem can be reproduced, i.e. no periodic printout of "connect" message. Without ASYN_MULTIDEVICE flag, the reconnection timer works.