×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Remote Dynamic INDI

  • Posts: 3
  • Thank you received: 1
I have a question regarding dynamicly starting and stopping of indi drivers that are running on a remote server.

We currently have a bunch of indi drivers running on our local machine. We start them dynamically by creating a fifo, starting indiserver with the '-f' option, and sending the paths of the various drivers to the fifo. Some drivers are more reliable than others so we have a nice little bash script that astronomers can use to start/stop/restart each of the drivers individually.... This works our really well and has minimized late night calls.

I am at a point where I need to split up my indi drivers among multiple indiservers on different machines... for example we are now installing a zwo asi camera as our autoguider. The camera is really far away from the control computer so I put the indi driver for that camera on a pi board colocated with the camera, and phd2 is on the control computer talking to it remotely... This wotks fine, but I'd like to be able to load the indi driver dynamically, on the pi, from my main control computer.

If I start the indiserver on the pi in fifo mode, is there a way to communicate between indiservers to tell a remote server to start/stop/reload a driver? for example.. can I do something like:

echo "stop /usr/bin/indi_asi_ccd@10.0.0.2:7624" > /tmp/indififo

I tried that and it didn't seem to like it. Is there any functionality like this available? I know I can cobble something together with SSH, or maybe I can forward indififo with socat.. but sometimes its better to ask whats available and see what others have come up with.
1 year 6 months ago #86305

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic Remote Dynamic INDI

Hello Chris and welcome to INDI forum. I appologize I just remembered that you sent me an email over this and I must have forgotten to respond. There is no way to stop an INDI server in another chained INDI. But it's also not hard to do, assuming you have ssh access to that server.

You can execute an ssh command (in a script) that would have the exact same effect.
1 year 6 months ago #86307

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 1

Replied by Chris Johnson on topic Remote Dynamic INDI

thanx, Jasem. I found a feature that I didn't see documented that is a huge help. I always thought starting in fifo mode made it fifo only... but I was wrong. It turns out I am able to start indiserver in fifo mode AND add a regularly started driver in one line... like this:

indiserver -f /tmp/indiFIFO "ZWO ASI294MM PRO"@10.0.0.2

So I can have all of the drivers, local or not, connected to a single instance of indiserver... and I can load and reload all of the local drivers. At the moment I have that ZWO driver just running static and I can login remotely and reload it. I think I may do something with socat.

YEars ago you helped me with an apogee camera indi driver but I don't know if it was on this forum. the login didn't seem to like any of my email addresses... so I started from new. Its been long enough ago that I am now replacing that apogee with this ZWO so an account might just not exist. I appreciate all the support you've given. You really should consider taking indi and kstars scheduling to the astrorob conference one of these years. I bet you would get a lot of interest.

CJ
The following user(s) said Thank You: Jasem Mutlaq
1 year 6 months ago #86377

Please Log in or Create an account to join the conversation.

Time to create page: 0.489 seconds