×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Problem with Temperature Regulation in EKOS/QHY Driver

2 months 3 weeks ago
Schwarze
Fresh Boarder
Fresh Boarder
Posts: 12
More
Topic Author
Problem with Temperature Regulation in EKOS/QHY Driver #40448
Hello,
I recently noticed some odd behavior. When I set the temperature of my QHY8L in Ekos to lets say -20C, the cooler will be started and the temperature will decrease until it display - 19.8C.
As soon as the target temperature +- a margin of 0.2C is reached, everything stops. The driver stays at the cooling level of lets say 45.5%, the displayed temperature stays at 19.8C and nothing is changed for the rest of the night.
But the real temperature of the sensor does change, due to server factors, like changing outside temperature etc.
So if you check some minutes later, maybe by changing the target temperature from e.g -20 to -19, a new measurement is triggered displaying -23C or something else, way off. It will then heat up to -19.2C and then stop again, until the next external trigger occurs.
So the effect is in short: Once the target temperature is reached, all temperature regulation stops and the cooling level stays the same forever.


I assume, that the core of this problem is in the QHY SDK, but the INDI Driver might be able to work around this by checking the desired and actual temperature every minute or so and trigger a new regulation?

Regards

Dirk

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

2 months 3 weeks ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Problem with Temperature Regulation in EKOS/QHY Driver #40480
QHY confirmed an issue in the SDK and they are working on it.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

2 months 3 weeks ago
Schwarze
Fresh Boarder
Fresh Boarder
Posts: 12
More
Topic Author
Problem with Temperature Regulation in EKOS/QHY Driver #40484
Thank you

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

1 month 2 weeks ago
Schwarze
Fresh Boarder
Fresh Boarder
Posts: 12
More
Topic Author
Problem with Temperature Regulation in EKOS/QHY Driver #41450
Hello Jasem,
I created following workaround, on the raspberry where my INDI drivers are running:

diff --git a/3rdparty/indi-qhy/qhy_ccd.cpp b/3rdparty/indi-qhy/qhy_ccd.cpp
index 787da68c..51f1b9b7 100644
--- a/3rdparty/indi-qhy/qhy_ccd.cpp
+++ b/3rdparty/indi-qhy/qhy_ccd.cpp
@@ -27,7 +27,7 @@
#include <algorithm>
#include <math.h>

-#define TEMP_THRESHOLD 0.2 /* Differential temperature threshold (C)*/
+#define TEMP_THRESHOLD 0.001 /* Differential temperature threshold (C)*/
#define MAX_DEVICES 4 /* Max device cameraCount */

//NB Disable for real driver
@@ -971,8 +971,8 @@ bool QHYCCD::setupParams()
int QHYCCD::SetTemperature(double temperature)
{
// If there difference, for example, is less than 0.1 degrees, let's immediately return OK.
- if (fabs(temperature - TemperatureN[0].value) < TEMP_THRESHOLD)
- return 1;
+ // if (fabs(temperature - TemperatureN[0].value) < TEMP_THRESHOLD)
+ // return 1;

LOGF_DEBUG("Requested temperature is %.3f, current temperature is %.3f", temperature, TemperatureN[0].value);

@@ -1754,7 +1754,7 @@ void QHYCCD::updateTemperature()
// No need to spam to log
if (fabs(ccdtemp - TemperatureN[0].value) > 0.001 || fabs(CoolerN[0].value - (coolpower / 255.0 * 100)) > 0.001)
{
- LOGF_DEBUG("CCD T.: %.3f (C) Power: %.3f (%%.2f)", ccdtemp, coolpower, coolpower / 255.0 * 100);
+ LOGF_DEBUG("CCD T.: %.3f (C) Power: %.3f (%.2f)", ccdtemp, coolpower, coolpower / 255.0 * 100);
}

TemperatureN[0].value = ccdtemp;

With this, basically the temperature regulation loop never stops and the closest possible temperature is always maintained, even if outside temperature changes.
I will further test this, when clear skies are available here, first tests looked promising.

Regards

Dirk

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

1 month 2 weeks ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Problem with Temperature Regulation in EKOS/QHY Driver #41460
Thanks Dirk. Please ask other users to test this as well to see if there are any unwanted side effects.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 3 days ago
wylam
Fresh Boarder
Fresh Boarder
Posts: 3
More
Problem with Temperature Regulation in EKOS/QHY Driver #42942

knro wrote: QHY confirmed an issue in the SDK and they are working on it.


Hello,
Is there any update from qhy about fixing this issue?

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

1 week 3 days ago
wylam
Fresh Boarder
Fresh Boarder
Posts: 3
More
Problem with Temperature Regulation in EKOS/QHY Driver #42943
Hello,
Is there any update from qhy about fixing this issue?

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

1 week 3 days ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Problem with Temperature Regulation in EKOS/QHY Driver #42946
No sure. I updated QHYSDK to latest yesterday, so check with latest SDK and see.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 2 days ago
wylam
Fresh Boarder
Fresh Boarder
Posts: 3
More
Problem with Temperature Regulation in EKOS/QHY Driver #43002

knro wrote: No sure. I updated QHYSDK to latest yesterday, so check with latest SDK and see.


I can confirm, that issue with temperature control is not fixed in latest sdk update.

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

1 week 2 days ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Problem with Temperature Regulation in EKOS/QHY Driver #43007
Then you should reach out to QHY directly so they can address this issue.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

Time to create page: 0.454 seconds