scriptorron / indi_pylibcamera

INDI libcamera driver made in Python
MIT License
11 stars 3 forks source link

snooping static values does not work when driver runs remote #31

Closed scriptorron closed 11 months ago

scriptorron commented 1 year ago

Snooping of mount parameter works when camera driver and mount driver run in the same INDI server. But when the camera driver runs in a remote server and gets connected by a local server which runs the mount driver, the static mount parameter (like observer location, telescope focal length, ...) do not get communicated to the camera driver.

Likely this is a timing issue: the mount driver gets initialized first and transmits its static values. After that the camera driver gets initialized and starts snooping. But that is too late to get the static values of the mount. INDI has no means which allow the camera driver to ask the mount driver again.

Strange is that the CD Simulator and Telescope Simulator work in this situation. I have seen so far that the CCD Simulator asks right at startup for snooping the Telescope Simulator. For my opinion this behavior is not correct because the camera driver (or CCD Simulator) can not know the name of the mount driver before it gets told by the client (EKOS). And that happens after the mount driver has already send its static values.

scriptorron commented 1 year ago

A work around is: Do not to automatically connect the drivers. When you manually connect the camera before the mount, than the camera can snoop the mount parameter.

scriptorron commented 11 months ago

I do not know why, but it works now. Maybe it got fixed by an update of the indilib.