-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve connection management #7
Comments
I have created branch improve_management to address this issue. In 1a7610f I did the following:
I have tried unplugging the cable, and after several seconds it gets the callback and disconnects the port. When I plug it back in it reconnects within a few seconds, and I can then operate the camera normally. I have not tested leaving the camera disconnected for an extended period to see if it will still reconnect OK. |
Steve Hunt said in an e-mail:
I find that if ReadStatus.SCAN (labeled "Poll features" in the OPI screen) is Passive then I can always restart acquisition when the camera reconnects. I sometimes have to toggle Start and Stop a few times to get it to acquire the first time. This is what I see at the IOC prompt when I unplug the camera. wait about 35 seconds and plug it back in:
If ReadStatus.SCAN is not passive then the IOC gets into a start where I cannot start acquisition when I reconnect the camera. Steve, can you test that? It should be fine to leave it Passive, since the communications statistics update even when it is Passive. Set it to periodically scan just makes it poll all of the other features, which is probably not needed. |
That is expected. When you press Disconnect that marks the ADVimba as disconnected by asynManager. asynManager will no longer queue requests to write to PVs, and the OPI should signal an error if you try to change a PV. However, it does not disconnect ADVimba from the camera, so the camera continues to collect, and even does callbacks to EPICS. We could implement the ADVimba::disconnect() method, and then pressing Disconnnect would call that method, and that could close the connection between ADVimba and the camera.
That is not what I see, and I don't think it should be related to the version of ADCore. I do notice that you get 2 connectionCallback messages when you disconnect the cable. I only get 1. When you plug the cable back in do you see a message like this after a few seconds? You should.
I have been testing with an old Prosilica GC1380CH camera. I will try testing with a Manta. |
I just tested with a Manta 507C camera, and it also worked fine for me. I did the following 3 times:
These are the IOC messages:
@alceli is the camera you are testing POE, so that when you disconnect it you also power-cycle the camera? My GC1380CH is not POE. My Manta 507C is POE, but I am using an external power supply, so that when I disconnect the Ethernet it does not lose power. |
Connection management needs improvement. There is currently no indication in the GUI if the camera is removed from the network.
The text was updated successfully, but these errors were encountered: