Experimental Physics and
| |||||||||||||||||
|
Hi Mark, We're using tpmac-asyn 3.10.12, asyn R4-32.Regarding pmacAsynIPConfigure, it immediately calls drvAsynIPPortConfigure: https://github.com/epicsdeb/ I noticed two things: 1. If the IOC starts with the controller powered off, the above messages are printed. asyn/tpmac correctly knows the device is disconnected, but there's no attempt at a reconnection, so powering it on doesn't do anything. Here's the report in this case: asynManager::queueLockPort queueRequest failed: port P0 not connected 2018/02/12 14:05:56.201 pmacController:: 2018/02/12 14:05:56.201 drvPmacAxisGetStatus: not all status values returned. Status: 3 epics> asynReport 5 P0 P0 multiDevice:No canBlock:Yes autoConnect:Yes enabled:Yes connected:No numberConnects 0 nDevices 0 nQueued 18 blocked:No asynManagerLock:No synchronousLock:Yes exceptionActive:No exceptionUsers 11 exceptionNotifys 0 traceMask:0x1 traceIOMask:0x0 traceInfoMask:0x1 interposeInterfaceList asynOctet pinterface 0x7fcf1ca2c900 drvPvt 0xf5c060 interfaceList asynCommon pinterface 0x7fcf1ca29650 drvPvt 0xf579e0 asynOption pinterface 0x7fcf1ca29670 drvPvt 0xf579e0 asynOctet pinterface 0xf57b00 drvPvt 0xf579e0 Port 10.41.104.10:1025: Disconnected fd: -1 Characters written: 0 Characters read: 0 2. If the IOC starts with the controller powered on, everything works as expected: epics> asynReport 5 P0 P0 multiDevice:No canBlock:Yes autoConnect:Yes enabled:Yes connected:Yes numberConnects 1 nDevices 0 nQueued 0 blocked:No asynManagerLock:No synchronousLock:No exceptionActive:No exceptionUsers 11 exceptionNotifys 0 traceMask:0x1 traceIOMask:0x0 traceInfoMask:0x1 interposeInterfaceList asynOctet pinterface 0x7fafe57dc900 drvPvt 0x1aa6090 interfaceList asynCommon pinterface 0x7fafe57d9650 drvPvt 0x1aa1a10 asynOption pinterface 0x7fafe57d9670 drvPvt 0x1aa1a10 asynOctet pinterface 0x1aa1b30 drvPvt 0x1aa1a10 Port 10.41.104.10:1025: Connected fd: 7 Characters written: 9787 Characters read: 5345 Then when we yank the power from the controller: asynManager::queueLockPort queueRequest timed out 2018/02/12 14:33:03.069 pmacController::lowLevelWriteRead: Error from pasynOctetSyncIO->writeRead. command: #1 ? F P 2018/02/12 14:33:03.069 drvPmacAxisGetStatus: not all status values returned. Status: 3 epics> asynReport 5 P0 P0 multiDevice:No canBlock:Yes autoConnect:Yes enabled:Yes connected:Yes numberConnects 1 nDevices 0 nQueued 18 blocked:No asynManagerLock:No synchronousLock:Yes exceptionActive:No exceptionUsers 11 exceptionNotifys 0 traceMask:0x1 traceIOMask:0x0 traceInfoMask:0x1 interposeInterfaceList asynOctet pinterface 0x7fafe57dc900 drvPvt 0x1aa6090 interfaceList asynCommon pinterface 0x7fafe57d9650 drvPvt 0x1aa1a10 asynOption pinterface 0x7fafe57d9670 drvPvt 0x1aa1a10 asynOctet pinterface 0x1aa1b30 drvPvt 0x1aa1a10 Port 10.41.104.10:1025: Connected fd: 7 Characters written: 26671 Characters read: 11150 So it still thinks it is connected, even after quite some time. I tried enabling the disconnectOnReadTimeout option, it yielded a weird behavior: with the motor controller powered ON, the IOC seems to start fine but then seems to disconnect from the controller by itself: asynManager::queueLockPort queueRequest failed: port P0 not connected 2018/02/12 14:40:38.972 pmacController::lowLevelWriteRead: Error from pasynOctetSyncIO->writeRead. command: #1 ? F P 2018/02/12 14:40:38.972 drvPmacAxisGetStatus: not all status values returned. Status: 3 epics> asynReport 5 P0 P0 multiDevice:No canBlock:Yes autoConnect:Yes enabled:Yes connected:No numberConnects 1 nDevices 0 nQueued 21 blocked:No asynManagerLock:No synchronousLock:Yes exceptionActive:No exceptionUsers 11 exceptionNotifys 0 traceMask:0x1 traceIOMask:0x0 traceInfoMask:0x1 interposeInterfaceList asynOctet pinterface 0x7f5c7df24900 drvPvt 0x8f21a0 interfaceList asynCommon pinterface 0x7f5c7df21650 drvPvt 0x8edb20 asynOption pinterface 0x7f5c7df21670 drvPvt 0x8edb20 asynOctet pinterface 0x8edc40 drvPvt 0x8edb20 Port 10.41.104.10:1025: Disconnected fd: -1 Characters written: 848 Characters read: 470 Bruno On Mon, Feb 12, 2018 at 1:32 PM, Mark Rivers <[email protected]> wrote:
| ||||||||||||||||
ANJ, 15 Feb 2018 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |