it seems that Jasem already fixed this issue as part of another one.
github.com/indilib/indi/issues/1582

I will test and report here if it works fine with the scheduler as well. thanks again for your support.

ferrante

Read More...

Looking at the code seems that the park() method is not managing lights. 
I will open an issue on github providing these informations. Probably Jasem should look into it because the bug could also be in the parent lx200 and I immediately got lost in the class hierachy.

Thanks a lot for your help.
Ferrante

Read More...

hi Wolfgang,
you're absolutely right: The parking light is always green, also during slewing and parking. But the messages in the log are reporting parking and parked correctly (see attachments).
So the scheduler rely on the status light been green/yellow to proceed to the next shutdown step? isn't there a 'parking status' variable in Ekos? 

Thanks,
Ferrante


 
 
  

Read More...

hi Wolfgang,

sorry to bother you with this issue again, but I still struggle to understand the LX200 driver/Scheduler interaction when the shutdown procedure runs.
I see a different behavior when switching from LX200 mount driver to Simulators (Simulators has the expected behavior so the issue is likely on LX200 side), see logs below.

I'm not familiar with the scheduler code, what triggers the 'mount parked' status? It would help me to understand if the LX200 driver is issuing the wrong message.

LX200 logs:
[2021-12-26T21:00:40.086 CET INFO ][           org.kde.kstars.indi] - "FITS" file saved to "/home/ferrante/NGC2081/Light/Luminance/IC_4632_Light_Luminance_1.500_secs_2021-12-26T21-00-40_002.fits"
[2021-12-26T21:00:40.143 CET INFO ][   org.kde.kstars.ekos.capture] - "Download Time: 0.19 s, New Download Time Estimate: 0.20 s."
[2021-12-26T21:00:40.287 CET INFO ][   org.kde.kstars.ekos.capture] - "Received image 2 out of 2."
[2021-12-26T21:00:40.535 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Job 'NGC2081' is complete."
[2021-12-26T21:00:40.700 CET INFO ][ org.kde.kstars.ekos.scheduler] - "No jobs left in the scheduler queue."
[2021-12-26T21:00:40.700 CET INFO ][ org.kde.kstars.ekos.scheduler] - Starting shutdown process...
[2021-12-26T21:00:41.690 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Parking mount in progress..."
[2021-12-26T21:00:41.703 CET INFO ][           org.kde.kstars.indi] - LX200 10micron :  "[INFO] Parking. "
[2021-12-26T21:00:41.729 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Telescope status changed. Lock is set to: unlocked "
[2021-12-26T21:00:41.962 CET INFO ][           org.kde.kstars.indi] - LX200 10micron :  "[INFO] Gstat changed from 0 to 2 "
[2021-12-26T21:00:42.699 CET INFO ][     org.kde.kstars.ekos.guide] - "Mount is moving. Resetting calibration..."
[2021-12-26T21:00:42.700 CET INFO ][     org.kde.kstars.ekos.guide] - "Calibration is cleared."
[2021-12-26T21:00:42.708 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Mount parked."
[2021-12-26T21:00:43.694 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Parking dome..."
[2021-12-26T21:00:43.696 CET INFO ][org.kde.kstars.ekos.observatory] - "Rolloff roof is closing..."
[2021-12-26T21:00:43.726 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Roof is parking... "
[2021-12-26T21:00:44.724 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Dome state PARKING. "
[2021-12-26T21:00:44.725 CET INFO ][org.kde.kstars.ekos.observatory] - "Rolloff roof stopped."
[2021-12-26T21:00:49.732 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Dome state IDLE. "
[2021-12-26T21:01:04.720 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Dome state IDLE. "
[2021-12-26T21:01:07.119 CET INFO ][           org.kde.kstars.indi] - LX200 10micron :  "[INFO] Gstat changed from 2 to 5 "
[2021-12-26T21:01:07.129 CET INFO ][           org.kde.kstars.indi] - LX200 10micron :  "[INFO] Mount is parked. "
[2021-12-26T21:01:10.118 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Resuming Park command. "
[2021-12-26T21:01:10.119 CET INFO ][org.kde.kstars.ekos.observatory] - "Rolloff roof is closing..."
[2021-12-26T21:01:10.128 CET INFO ][           org.kde.kstars.indi] - Hakos Roll Off Roof :  "[INFO] Roof is parking... "
...
It seems that the scheduler sets the mount as parked at 21:00:42.708 when the LX200 driver is still parking ('Gstat changed from 0 to 2'*).
But the LX200 driver issues the mount parked message ~25 sec later 21:01:07.119 ('Gstat changed from 2 to 5'*).

While with simulators, the driver and scheduler act as expected.
Simulators log:
[2021-12-28T12:31:26.689 CET INFO ][           org.kde.kstars.indi] - "FITS" file saved to "/home/ferrante/NGC_7242/Light/Luminance/IC_4632_Light_Luminance_1.500_secs_2021-12-28T12-31-26_004.fits"
[2021-12-28T12:31:26.753 CET INFO ][   org.kde.kstars.ekos.capture] - "Download Time: 0.20 s, New Download Time Estimate: 0.21 s."
[2021-12-28T12:31:26.890 CET INFO ][   org.kde.kstars.ekos.capture] - "Received image 2 out of 2."
[2021-12-28T12:31:27.026 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Job 'NGC 7242' is complete."
[2021-12-28T12:31:27.360 CET INFO ][ org.kde.kstars.ekos.scheduler] - "No jobs left in the scheduler queue."
[2021-12-28T12:31:27.361 CET INFO ][ org.kde.kstars.ekos.scheduler] - Starting shutdown process...
[2021-12-28T12:31:28.328 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Parking mount in progress..."
[2021-12-28T12:31:28.330 CET INFO ][           org.kde.kstars.indi] - Telescope Simulator :  "[INFO] Parking to RA:  1:05:33 - DEC:  0:00:00 "
[2021-12-28T12:31:29.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:29.336 CET INFO ][     org.kde.kstars.ekos.guide] - "Mount is moving. Resetting calibration..."
[2021-12-28T12:31:29.337 CET INFO ][     org.kde.kstars.ekos.guide] - "Calibration is cleared."
[2021-12-28T12:31:30.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:31.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:32.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:33.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:34.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:35.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - Parking mount in progress...
[2021-12-28T12:31:35.402 CET INFO ][           org.kde.kstars.indi] - Telescope Simulator :  "[INFO] Mount is parked. "
[2021-12-28T12:31:35.403 CET INFO ][           org.kde.kstars.indi] - Dome Scripting Gateway :  "[INFO] Telescope status changed. Lock is set to: unlocked "
[2021-12-28T12:31:35.404 CET INFO ][           org.kde.kstars.indi] - Telescope Simulator :  "[INFO] Telescope slew is complete. Parked "
[2021-12-28T12:31:36.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Mount parked."
[2021-12-28T12:31:37.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Dome already parked."
[2021-12-28T12:31:39.327 CET INFO ][ org.kde.kstars.ekos.scheduler] - "Shutdown complete."
[2021-12-28T12:31:39.329 CET INFO ][ org.kde.kstars.ekos.scheduler] - Scheduler is stopping...

Thanks,
Ferrante

* As to the LX200 driver, the codes status are:
0, GSTAT_TRACKING: SCOPE_TRACKING;
1, GSTAT_STOPPED: SCOPE_IDLE;
2, GSTAT_PARKING: SCOPE_PARKING;
3, GSTAT_UNPARKING: SCOPE_TRACKING;
4, GSTAT_SLEWING_TO_HOME: SCOPE_SLEWING;
5, GSTAT_PARKED: SCOPE_PARKED;
 

Read More...

these template scripts are executed outside of Ekos, so any return value like the parking status (roof open or roof close) must be send to Ekos in some way.
In park.py, if parking is successful, the file 'indi-status' stores the value '1 0 0' ( '0 0 0' if roof open) then Ekos reads this value and so is aware of the parking status.
That's the meaning of the coordinates function.
 
Ferrante

Read More...

hi Wolfgang,
the behavior is exactly the same as reported in this thread: 
indilib.org/forum/ekos/10807-scheduler-w...ck-policy.html#78185
In this case it's a different mount (CEM70) so it's not likely a 10micron driver issue.
But I can build and debug the 10 micron driver if needed.
​​​​​​ bestFerrante

Read More...

I found the same issue some time ago and reported here:
indilib.org/forum/mounts/10549-10micron-...-or-indi-driver.html
As to his answer, Wolfgang is looking into it. Hope that will be fixed in the next release.
In the meantime I added a magnetic sensor to the mount and connected it to the roof circuit so that it stops the roof if the mount is not parked.

Ferrante

Read More...

hi Andres,
I had to configure a roof with dome scripting gateway some weeks ago and ran in similar issues.
Did you set the folder containing the scripts as relative path? try to enter the full path.
And if you have any includes in the script itself, check the paths.
Check if it's not executed as a python2 script .

ferrante

Read More...

Hi Wolgang,
issuing the Park command from the Mount Tab works as expected:
From Mount Tab:2021-10-16T09:07:21: [INFO] Mount is parked. 
2021-10-16T09:07:21: [INFO] Gstat changed from 2 to 5 
2021-10-16T09:07:13: [INFO] Gstat changed from 0 to 2 
2021-10-16T09:07:12: [INFO] Parking. From parking to parked is 9 secs only because the mount was close to parking position.
With the same configuration I checked from the Scheduler:

2021-10-16T11:20:27 Dome parking failed. Restarting operation...
2021-10-16T11:19:54 Parking dome...
2021-10-16T11:19:53 Mount parked.
2021-10-16T11:19:52 Parking mount in progress...
2021-10-16T11:19:51 Cap parked.
2021-10-16T11:19:49 Parking Cap...
2021-10-16T11:19:48 Warming up CCD...
2021-10-16T11:19:48 No jobs left in the scheduler queue.
2021-10-16T11:19:47 Job 'NGC 4960' is complete.
2021-10-16T11:19:38 Job 'NGC 4960' capture is in progress...
2021-10-16T11:19:38 Job 'NGC 4960' slew is complete.
2021-10-16T11:19:37 Job 'NGC 4960' is slewing to target.
2021-10-16T11:19:36 Mount unparked.
2021-10-16T11:19:32 INDI devices connected.
2021-10-16T11:19:29 Scheduler started.
2021-10-16T11:19:29 Scheduler is awake.

The parking distance was the same as the previous test. But here the Parked status is immediately after the Parking command.
(the 2hrs time offset between the 2 tests is due to the mount working in UTC and Ekos using local time)

Thanks
Ferrante

Read More...