Remote Dome operation security

Ok, Watch dog driver & client are ready for testing. Also, Ekos was updated to include support for Watchdog drivers. You can find the watchdog driver under "Auxiliary". For regular cases (park dome and/or mount), you do not need to use an external script, it will be done by the driver. The driver uses a client to issue commands, so by default it connects to localhost at port 7624.

In case there is more required than park dome & mount, then specify an external scripts which will be executed last. The heartbeat threshold sets the timeout for when the shutdown process kicks it. The value is in minutes. Once you change all the settings for your environment, save config file so that it gets loaded on subsequent use.

Any testing or feedback is appreciated.
8 years 10 months ago #5575

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

  • Posts: 16
  • Thank you received: 11
I've done some testing and wanted pass back my results:

I'm using raspberry pi 2 updated to the latest software and also kstars bleeding. I have the watchdog set to park the mount after 1 minute with no response. So far the mount has not parked once i unplug the network and the timeout is passed (i minute in this case)

I am attaching screen shots of my settings and log files.






The following user(s) said Thank You: Ferran Casarramona
8 years 10 months ago #5647
Attachments:

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


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

  • Posts: 2257
  • Thank you received: 223

I've missed that post, off to testing this too.
8 years 10 months ago #5676

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

  • Posts: 2257
  • Thank you received: 223
Seems to be working nicely, ran the telescope/dome sim and the watchdog on the remote server, fired up the VM on the client then killed the WIFI to simulate a connection loss. I can see in the terminal the telescope and dome being shutdown.

Great job Jasem again.
(I need to test this with the gonzo_box now....)
8 years 10 months ago #5678

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

  • Posts: 983
  • Thank you received: 375
It is platform dependent but for folks using Raspberry Pi you can consider using on-board watchdog. See details here
8 years 7 months ago #6832

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

  • Posts: 50
  • Thank you received: 11
Hi,

I have been wrestling with getting the WatchDog to work and I must be doing something wrong.
I have a Raspberry Pi 2 running latest Raspbian and indi code connected to an HEQ5 mount via USB<>TTL cable and it works fine. I can remotely connect from Ekos (Ubuntu with latest kstars bleeding) on my laptop to the Rasp. Pi and control the mount without issues. Park, unpark, track, etc. all work fine.

Here's what I run on the Pi: indiserver indi_eqmod_telescope indi_joystick indi_watchdog indi_simulator_ccd &

In Ekos, I have a profile configured to use a remote Indi server with IP of the Rasp Pi. The WatchDog device set to time out after 1 minute and I have checked "park mount". I have tried setting the WatchDog server to localhost and the IP of the Rasp Pi. Either way, I am always able to connect the WatchDog device (Debug output shows a connection) but when I disconnect the Rasp Pi from ethernet network and wait a minute or more, the watchdog never kicks in and parks the mount.

I do not see any messages in the IndiServer.log on the Pi about the WatrchDog trying to park the mount. I only see these messages: 2016-07-23T20:09:30: Driver indi_watchdog: Receiving EQMod Mount Device... I do see messages about my Ekos client connecting.

Any suggestions on how to get this going would be appreciated. I'm afraid I must be confused about how this should work.
8 years 1 month ago #9423

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

  • Posts: 2257
  • Thank you received: 223
I've just again tried the watchdog, and same tests as you, it is not working. After I disconnect the network on my VM, the mount is still not parking after the 1 min threshold. Not sure what I'm doing wrong and I would love to have this working.
8 years 1 week ago #10200

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

I just tested it and it works fine. If you just use ssh command & and then disconnect, indiserver will be terminated. You should use something like this:

Then if you disconnect, indiserver would still be running in the background uninterrupted.
8 years 1 week ago #10215

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

  • Posts: 365
  • Thank you received: 32
Worked for me last night I think, KStars crashed in a session (as I didn't see it open anymore the next day, no usual crash dialog either though) and the mount is parked.
8 years 1 week ago #10216

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

  • Posts: 2257
  • Thank you received: 223
I shall try again, I must be doing something wrong then.
8 years 1 week ago #10217

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

  • Posts: 2257
  • Thank you received: 223

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

Time to create page: 0.607 seconds