areaDetector / ADAravis

areaDetector driver for GenICam cameras using the Aravis library on Linux.
https://areadetector.github.io/master/ADAravis/ADAravis.html
6 stars 8 forks source link

Best way to automatically re-initialize power cycled cameras? #21

Open daykin opened 1 year ago

daykin commented 1 year ago

We have a couple cameras in high-radiation areas which fairly regularly need to be restarted due to radiation corrupting the RAM. In #12 , it's correctly noted that after power-cycling the 'reset camera' button must be pressed. Is there existing functionality for this to happen automatically? If not, on disconnection, is there a reliable connection state indicator?

I would like to create a polling thread to monitor this indicator, and on a transition from connected -> disconnected, begin trying to re-initialize every 5 seconds. Or would this be more straight forward to implement in database logic?