×

INDI Library v1.9.0 Released (23 Apr 2021)

Major INDI Library release v1.9.0 bring significant internal changes championed by @pawel-soja to modernize core INDI Library drivers and clients. New drivers for DeepSkyDad Flat Panel & Pegasus devices plus further improvements to PCM8 drivers.

Autofocus if delta Temperature seems not to work ...

  • Posts: 55
  • Thank you received: 1
I tried it, Ekos prints 1,000 after inserting only a 1.

Can anyone post a log with a working temp autofocus?

Here is a verbose snip of focus and capture ... the temp from focuser is readed correctly, but i can't find any hint that ekos is listening for the temp change ....

<code>[2020-09-16T22:29:09.068 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.focus] - "Autofocus complete after 18 iterations."
[2020-09-16T22:29:09.069 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.focus] - Stopping Focus
[2020-09-16T22:29:09.070 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.focus] - AutoFocus result: true
[2020-09-16T22:29:09.070 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.focus] - "Setting current focuser temperature: 16.50"
[2020-09-16T22:29:09.070 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.focus] - Autofocus values: position, 6403 , temperature, 16.5 , filter, "G" , HFR, 1.20918
[2020-09-16T22:29:09.247 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.focus] - State: "Complete"
[2020-09-16T22:29:09.259 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - setFocusStatus: 1
[2020-09-16T22:29:09.259 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Ekos will refocus in 3.600 seconds."
[2020-09-16T22:29:09.260 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Focus complete."
[2020-09-16T22:29:10.217 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 0 . Requested Interval (secs): 3600
[2020-09-16T22:29:10.317 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.indi] - ASI EFW : "[INFO] Setting current filter to slot 4 "
[2020-09-16T22:29:13.280 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Capturing 180,000-second B image..."</code>


I can find only such checks:


<code>[2020-09-16T22:32:18.335 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 189 . Requested Interval (secs): 3600
[2020-09-16T22:32:19.449 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 190 . Requested Interval (secs): 3600
[2020-09-16T22:32:20.746 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 191 . Requested Interval (secs): 3600
[2020-09-16T22:32:21.747 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 192 . Requested Interval (secs): 3600
[2020-09-16T22:32:22.753 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 193 . Requested Interval (secs): 3600
[2020-09-16T22:32:23.753 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 194 . Requested Interval (secs): 3600
[2020-09-16T22:32:24.760 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 195 . Requested Interval (secs): 3600
[2020-09-16T22:32:25.764 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 196 . Requested Interval (secs): 3600
[2020-09-16T22:32:26.769 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 197 . Requested Interval (secs): 3600
[2020-09-16T22:32:27.778 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 198 . Requested Interval (secs): 3600
[2020-09-16T22:32:28.013 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Guiding state changed from "Dithering" to "Dithering successful"
[2020-09-16T22:32:28.013 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - Dithering succeeded, capture state "Dithering"
[2020-09-16T22:32:28.014 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Dithering succeeded."
[2020-09-16T22:32:28.015 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Dither complete."
[2020-09-16T22:32:28.016 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.guide] - "Dithering completed successfully."
[2020-09-16T22:32:28.017 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Guiding state changed from "Dithering successful" to "Guiding"
[2020-09-16T22:32:28.018 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.guide] - "Guiding resumed."
[2020-09-16T22:32:28.811 Mitteleuropäische Sommerzeit DEBG ][ org.kde.kstars.ekos.capture] - Focus elapsed time (secs): 199 . Requested Interval (secs): 3600
[2020-09-16T22:32:28.902 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.indi] - ASI EFW : "[INFO] Setting current filter to slot 1 "
[2020-09-16T22:32:33.183 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Capturing 180,000-second L image..."</code>

CS
Last edit: 7 months 3 weeks ago by pmneo.
7 months 3 weeks ago #60089

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

  • Posts: 707
  • Thank you received: 94

That's fine. The suspicion is that it might stop parsing when reaching the comma. So with 1,00 it would still read the 1 and use it.

I've attached one of my logs where the mechanism was triggered.

I also noticed that in debug it's even more verbose and reports the check after each frame, like
<code>
[2020-08-18T06:37:15.478 WEST DEBG ][ org.kde.kstars.ekos.capture] - Focus temperature delta (°C): 0.21 . Requested maximum delta (°C): 1
</code>
So enable debug for the capture module and check the output...

Edit: Sorry, just see that your log was with debug, and without the entries. Definitely try again with 1,00
openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI2600/1600/290mini+EFW+EAF
Last edit: 7 months 3 weeks ago by DerPit.
7 months 3 weeks ago #60091
Attachments:

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

  • Posts: 1112
  • Thank you received: 171
"2020-09-16T22:29:09.259 Mitteleuropäische Sommerzeit INFO ][ org.kde.kstars.ekos.capture] - "Ekos will refocus in 3.600 seconds.""

Also, you are set to refocus after 1 hour anyway. Most likely, temperature drop will not exeed the [delta] T before the next refocus will be triggered anyway.

So if you want to test refocus on delta[T], disable the refocus after 60 min check box.
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
7 months 3 weeks ago #60092

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

  • Posts: 55
  • Thank you received: 1

I tried with 1 but i can't find such log entry in my logs :(

I had this disabled this option, but no focus was done. The thing is, that it seems that Ekos is not checking the current focuser temp. The only step where i can find the focuser temp is while the autofocus procedure:
[2020-09-17T02:39:56.796 Mitteleuropäische Sommerzeit DEBG ][     org.kde.kstars.ekos.focus] - "Setting current focuser temperature: 13.00"

But in this case it seems only to resolve in half steps, the UI of the driver has more sensible steps:



So do you think this may be a driver issue?

CS
pmneo
7 months 3 weeks ago #60116
Attachments:

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

  • Posts: 55
  • Thank you received: 1
So i have switched over from KStars running under Windows to run KStars under the Raspberry PI 4.

The Temperature based Focus is still not working, but now i can see following logs:

<pre>
, QVariant(qlonglong, 5196))))
[2020-09-30T12:36:20.491 CEST INFO ][ org.kde.kstars.ekos.focus] - "Idle."
[2020-09-30T12:36:20.494 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.494 CEST INFO ][ org.kde.kstars.ekos] - "DeepSkyDad AF3 focuser is online."
[2020-09-30T12:36:20.496 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.519 CEST DEBG ][ org.kde.kstars.ekos.capture] - Registering new Module ( "Capture" )
[2020-09-30T12:36:20.528 CEST DEBG ][ org.kde.kstars.ekos.capture] - Registering new Module ( "Focus" )
[2020-09-30T12:36:20.636 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.641 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.646 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.650 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.652 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.656 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.659 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.661 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.678 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.687 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.691 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.696 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Focuser temperature is not available"
[2020-09-30T12:36:20.700 CEST DEBG ][ org.kde.kstars.ekos.focus] - "Setting current focuser temperature: 0.00"
</pre>

This is really strange, because the INDI Tab shows the Temp correctly and it is updated correctly, when taking the sensor into my hand:



Any Suggestions?
7 months 2 weeks ago #60866
Attachments:

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

  • Posts: 1112
  • Thank you received: 171
The problem must be specific to the AF3 driver. Temperature triggered refocusing works like a charm using the MoonLite driver and MyFocuserPro autofocuser.
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
7 months 2 weeks ago #60872

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

  • Posts: 55
  • Thank you received: 1
Yes i think so. I have just done some recent changes to the driver and build it localy, now let's see if this works.

CS
pmneo
7 months 2 weeks ago #60886

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

  • Posts: 55
  • Thank you received: 1
So, i think i have found the issue ;)

The capture module does not check the focus temp when having single filter sequences (S H O S H O) ...

I have fixed this localy in capture.cpp:
IPState Capture::resumeSequence()
{
    // If no job is active, we have to find if there are more pending jobs in the queue
    if (!activeJob)
    {
        SequenceJob * next_job = nullptr;
 
        foreach (SequenceJob * job, jobs)
        {
            if (job->getStatus() == SequenceJob::JOB_IDLE || job->getStatus() == SequenceJob::JOB_ABORTED)
            {
                next_job = job;
                break;
            }
        }
 
        if (next_job)
        {
            //check delta also when starting a new job!
            isTemperatureDeltaCheckActive = (m_AutoFocusReady && limitFocusDeltaTS->isChecked());
 
            prepareJob(next_job);
 
            //Resume guiding if it was suspended before
            //if (isAutoGuiding && currentCCD->getChip(ISD::CCDChip::GUIDE_CCD) == guideChip)
            if (guideState == GUIDE_SUSPENDED && suspendGuideOnDownload)
            {
                qCDebug(KSTARS_EKOS_CAPTURE) << "Resuming guiding...";
                emit resumeGuiding();
            }
 
            return IPS_OK;
        }
        else
        {
            qCDebug(KSTARS_EKOS_CAPTURE) << "All capture jobs complete.";
            return IPS_BUSY;
        }
    }
    // Otherwise, let's prepare for next exposure.
    else
    {
        isTemperatureDeltaCheckActive = (m_AutoFocusReady && limitFocusDeltaTS->isChecked());
 
        // If we suspended guiding due to primary chip download, resume guide chip guiding now
        if (guideState == GUIDE_SUSPENDED && suspendGuideOnDownload)
        {
            qCInfo(KSTARS_EKOS_CAPTURE) << "Resuming guiding...";
            emit resumeGuiding();
        }
 
        // If looping, we just increment the file system image count
        if (currentCCD->isLooping())
        {
            if (currentCCD->getUploadMode() != ISD::CCD::UPLOAD_LOCAL)
            {
                checkSeqBoundary(activeJob->getSignature());
                currentCCD->setNextSequenceID(nextSequenceID);
            }
        }
        // otherwise we loop starting the next exposure until all pending
        // jobs are completed
        else
            checkNextExposure();
    }
 
    return IPS_OK;
}

And now i can see in the log:
[2020-09-30T21:46:55.844 CEST DEBG ][   org.kde.kstars.ekos.capture] - Focus temperature delta (°C):  0 . Requested maximum delta (°C):  1

But in the scheduler seems to be broken in the current nightly :P
Last edit: 7 months 2 weeks ago by pmneo.
7 months 2 weeks ago #60892

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

  • Posts: 337
  • Thank you received: 104
It is possible that your temperature sensor isn't fully supported yet (driver). Your earlier posted logs may be picking up the temperature via the weather temperature reading (which was added to the focus module to support focus analysis logging). The change did not get factored into the delta-T code update as I recall. This might explain your logs saying that there's no focuser temperature sensor.

See this post for a bit more background (note that the code was changed after the post...so the log outputs are a bit different now).
www.indilib.org/forum/ekos/6901-how-does...erature.html?start=0
RASA11, Celestron CGX-L, ASI183mc Pro, 60mm guider + ASI290mm mini, ASI EAF focuser, PPB, Rpi4-4Gb+SSD, Powered USB3 hub, hardwire Ethernet.
7 months 1 week ago #60896

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

  • Posts: 55
  • Thank you received: 1
Hey, no it is _not_ a driver issue. It is a bug with single frame captures. I have fixed this localy and created a pull request in github: github.com/KDE/kstars/pull/24

CS
pmneo
7 months 1 week ago #60897

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

  • Posts: 84
  • Thank you received: 14
----
ES ED 127mm FCD100, AZEQ6 GT, FocusLynx ESX25, Nikon D800 , ASI120mm-s, Polemaster
-- RPi4 4Gb Stellarmate , Windows 10 Pro, Kstars/VNC
-- RPi4 8Gb Ubuntu mate 20.04.1 LTS - Kstars/NoMachine
7 months 1 week ago #60898

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

  • Posts: 1112
  • Thank you received: 171

It did work fine, though, with the MoonLite focuser. Are you sure this is not going to cause any regressions?
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
7 months 1 week ago #60899

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

Time to create page: 0.737 seconds