×

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

Bi-monthly release with minor bug fixes and improvements

[SOLVED] eqmod does not remember scope position.

  • Posts: 2255
  • Thank you received: 223
I've done more testing again today, it works OK as long as the indiserver is still running on the remote server.
As soon as the process is killed, on restarting everything, the scope will not be at the last known location.

I will post a debug log as soon as I can.
9 years 1 month ago #3318

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

  • Posts: 2255
  • Thank you received: 223
I have now everything updated to the latest code, in the Ekos vm and on my Odroid running Ubuntu 14.10 with indi stuff compiled from source (updated to today's code).
The scope location is lost on restart of the indiserver on the Odroid, every time.

I know I can and should do a park, however I'm testing a power cut situation.
My observatory will be located about 400 miles away from my house.... and that will be a very expensive trip just to go and reset the mount position.
If there a way I can do something like:
query the RA/DEC location in real time, dump that into a file
use that file on restart of Ekos to re-inject the value into eqmod in Ekos?
9 years 1 month ago #3363

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

  • Posts: 226
  • Thank you received: 88
There are 2 situations here: if you only restart the driver/indiserver without powering off the mount, the scope position should not be lost. Is this the case ?
If you power off the mount, encoder positions are lost and RA/DEC are reset to home when reconnecting the driver. And, as you suggest, logging RA/DEC with an indi client seems to be the only simple solution.
9 years 1 month ago #3366

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

  • Posts: 2255
  • Thank you received: 223

If I restart the indiserver on the Odroid, the AstroEQ box cut off the power to the motors.
You can clearly hear it, and you can move the motors with your fingers.


That's I can understand why.


Is this a feature that can be added to the eqmod code?
I guess at the moment, I can't "re-inject" the RA/DEC position into eqmod.
Last edit: 9 years 1 month ago by Gonzothegreat.
9 years 1 month ago #3368

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

  • Posts: 2255
  • Thank you received: 223
I've contacted Tom, the creator of the AstroEQ box and he replied to my email with the following:
9 years 1 month ago #3370

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

  • Posts: 226
  • Thank you received: 88

If your Odroid and your mount are on the same power line, it would be better to perform that stuff remotely with a client. Actually you may reinject the encoder values using a Park file, it could be created by hand in this particular situation, it's a simple xml file.
9 years 1 month ago #3371

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

  • Posts: 226
  • Thank you received: 88

Ok, that explains why encoder positions are lost when you restart the indiserver. Is'nt there a jumper on your board to disable this behavior ? If I understand it is used for firmware loading purpose. Otherwise you would have to park/unpark on every connection, not only when you power off your mount.
9 years 1 month ago #3372

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

  • Posts: 2255
  • Thank you received: 223

I'll come up with a script to do that, I have an idea. Will post the script once finished.
It would be nice to have an option called something like "read encoder position".
9 years 1 month ago #3374

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

  • Posts: 2255
  • Thank you received: 223


There is no switch for that, the firmware upgrade is one via a software.
If I can't come up with a suitable script, I will have to make sure that the mount is parked after each use and hope for the best that the Odroid doesn't reboot half through a session....
9 years 1 month ago #3375

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

  • Posts: 2255
  • Thank you received: 223
I've found the following post:
www.indilib.org/forum/general/522-parkda...or-indi-sx.html#2569




Is there a way to pass such values to the Eqmod on start, as in reading a file if possible, similar to ParkData.xml ? Or set it by command line with indi_setprop?
Or maybe, after each completed slew, the RA/DEC is written to a file which can be read on restart of the Eqmod, that would a cool feature to have.
You could choose to reload the previous location on restart if needed (in my case, after a power cut).


EDIT:
edited to avoid confusion, this is an example to show the lines "Setting default Init steps"
Last edit: 9 years 1 month ago by Gonzothegreat.
9 years 1 month ago #3376

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

Please change <device name="EQMod"> to <device name="EQMod Mount">
9 years 1 month ago #3377

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

  • Posts: 2255
  • Thank you received: 223


This is not my post, I took it as an example to show the following lines only:
[b]2014-12-31T16:19:10: Init() : Setting default Init steps -- RAInit=8388608 DEInit = 8388608
2014-12-31T16:19:10: Init() : Motors already initialized[/b]
9 years 1 month ago #3378

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

Time to create page: 1.002 seconds