Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with taking darks #819

Closed
jkoenig72 opened this issue Jul 1, 2023 · 15 comments
Closed

Problems with taking darks #819

jkoenig72 opened this issue Jul 1, 2023 · 15 comments

Comments

@jkoenig72
Copy link

Hi Aaron,

Have 3 cams running - all stable when running is capture mode.

Now I want to create darks.

I have 2 ToupTek G3CMOS06300 one mono, one color and a Canon 2000D.

Now I want to add darks.

I have errors in both no 1. and no 3.

##########################
no 1.): - not working
##########################
(indi-allsky) fritz@zx02:~/indi-allsky$ ./darks.py sigmaclip
2023-07-01 17:50:40,318 [INFO] MainProcess indi.init() #129: creating an instance of IndiClient
2023-07-01 17:50:40,318 [INFO] MainProcess indi.init() #136: PyIndi version: 2.0.2
2023-07-01 17:50:40,318 [INFO] MainProcess darks._initialize() #191: Connecting to indiserver
INDI::BaseClient::connectServer: creating new connection...
2023-07-01 17:50:40,322 [INFO] MainProcess indi.serverConnected() #334: Server connected (192.168.10.41:7624)
2023-07-01 17:50:40,334 [INFO] MainProcess indi.newDevice() #204: new device Telescope Simulator
2023-07-01 17:50:40,388 [INFO] MainProcess indi.newDevice() #204: new device ToupTek G3CMOS06300KPA(USB2.0)
2023-07-01 17:50:48,331 [INFO] MainProcess indi._findCcds() #574: Searching for available cameras
2023-07-01 17:50:48,331 [INFO] MainProcess indi._findCcds() #585: Detected ToupTek G3CMOS06300KPA(USB2.0)
2023-07-01 17:50:48,332 [INFO] MainProcess indi.findCcd() #594: Found 1 CCDs
2023-07-01 17:50:48,332 [WARNING] MainProcess darks._initialize() #214: Connecting to device ToupTek G3CMOS06300KPA(USB2.0)
2023-07-01 17:50:48,534 [INFO] MainProcess indi.getCcdInfo() #519: Detecting bayer pattern
2023-07-01 17:50:48,950 [INFO] MainProcess miscDb.addCamera() #81: Camera DB ID: 1
2023-07-01 17:50:48,950 [INFO] MainProcess indi.configureDevice() #697: Setting switch DEBUG
2023-07-01 17:50:49,051 [INFO] MainProcess indi.set_switch() #1265: Enabling Disable (DISABLE)
2023-07-01 17:50:50,053 [INFO] MainProcess indi.updateCcdBlobMode() #396: Set BLOB mode
2023-07-01 17:50:51,055 [INFO] MainProcess indi.configureDevice() #697: Setting switch CCD_FRAME_TYPE
2023-07-01 17:50:51,156 [INFO] MainProcess indi.set_switch() #1265: Enabling Dark (FRAME_DARK)
2023-07-01 17:50:51,735 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-01T15:50:51: [WARNING] The CCD does not have a shutter. Cover the camera in order to take a dark frame.
2023-07-01 17:50:52,158 [WARNING] MainProcess indi.disableCcdCooler() #882: Disabling CCD cooling
2023-07-01 17:50:54,167 [WARNING] MainProcess indi.disableCcdCooler() #887: Cooling not supported
2023-07-01 17:50:54,168 [WARNING] MainProcess darks._run() #626: ****** IF THE CCD COOLER WAS ENABLED, YOU MAY CONSIDER STOPPING THIS UNTIL THE SENSOR HAS WARMED ******
2023-07-01 17:51:02,172 [WARNING] MainProcess indi.setCcdGain() #1062: Setting CCD gain to 100
2023-07-01 17:51:02,172 [INFO] MainProcess indi.configureDevice() #702: Setting property (number) CCD_CONTROLS
2023-07-01 17:51:02,273 [INFO] MainProcess indi.set_number() #1237: Setting Gain = 100
2023-07-01 17:51:02,284 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-01T15:51:02: [INFO] Limiting frame rate to 63 FPS
2023-07-01 17:51:03,426 [WARNING] MainProcess indi.setCcdBinning() #1148: Setting CCD binning to (1, 1)
2023-07-01 17:51:03,426 [INFO] MainProcess indi.configureDevice() #702: Setting property (number) CCD_BINNING
2023-07-01 17:51:03,527 [INFO] MainProcess indi.set_number() #1237: Setting X = 1
2023-07-01 17:51:03,527 [INFO] MainProcess indi.set_number() #1237: Setting Y = 1
2023-07-01 17:51:04,681 [INFO] MainProcess darks._take_exposures() #675: Temp folder: /tmp/tmpliizf7ro
2023-07-01 17:51:04,682 [INFO] MainProcess darks.shoot() #323: Taking 60.00000000 s exposure (gain 100)
2023-07-01 17:51:04,782 [INFO] MainProcess indi.set_number() #1237: Setting Duration (s) = 60.0
2023-07-01 17:52:09,769 [INFO] MainProcess darks._take_exposures() #690: Exposure received in 65.0872 s
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.10/logging/init.py", line 1100, in emit
msg = self.format(record)
File "/usr/lib/python3.10/logging/init.py", line 943, in format
return fmt.format(record)
File "/usr/lib/python3.10/logging/init.py", line 678, in format
record.message = record.getMessage()
File "/usr/lib/python3.10/logging/init.py", line 368, in getMessage
msg = msg % self.args
TypeError: only size-1 arrays can be converted to Python scalars
Call stack:
File "/home/fritz/indi-allsky/./darks.py", line 90, in
action_func()
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 472, in sigmaclip
self._sigmaclip()
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 479, in _sigmaclip
self._run(IndiAllSkyDarksSigmaClip)
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 638, in _run
self._take_exposures(exposure, dark_filename_t, bpm_filename_t, ccd_bits, stacking_class)
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 712, in _take_exposures
logger.info('Image average adu: %0.2f', m_avg)
Message: 'Image average adu: %0.2f'
Arguments: (array([0., 0., 0., ..., 0., 0., 0.]),)
2023-07-01 17:52:10,064 [WARNING] MainProcess indi.getCcdTemperature() #850: Sensor temperature not supported
2023-07-01 17:52:10,065 [INFO] MainProcess darks._take_exposures() #715: Sensor temperature: -273.15
2023-07-01 17:52:10,065 [INFO] MainProcess darks.shoot() #323: Taking 60.00000000 s exposure (gain 100)
2023-07-01 17:52:10,166 [INFO] MainProcess indi.set_number() #1237: Setting Duration (s) = 60.0
^CTraceback (most recent call last):
File "/home/fritz/indi-allsky/./darks.py", line 90, in
action_func()
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 472, in sigmaclip
self._sigmaclip()
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 479, in _sigmaclip
self._run(IndiAllSkyDarksSigmaClip)
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 638, in _run
self._take_exposures(exposure, dark_filename_t, bpm_filename_t, ccd_bits, stacking_class)
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 686, in _take_exposures
self.shoot(exposure_f, sync=True, timeout=180.0) # flat 3 minute timeout
File "/home/fritz/indi-allsky/indi_allsky/darks.py", line 325, in shoot
self.indiclient.setCcdExposure(exposure, sync=sync, timeout=timeout)
File "/home/fritz/indi-allsky/indi_allsky/camera/indi.py", line 936, in setCcdExposure
ctl_ccd_exposure = self.set_number(self._ccd_device, 'CCD_EXPOSURE', {'CCD_EXPOSURE_VALUE': exposure}, sync=sync, timeout=timeout)
File "/home/fritz/indi-allsky/indi_allsky/camera/indi.py", line 1243, in set_number
self.__wait_for_ctl_statuses(c, timeout=timeout)
File "/home/fritz/indi-allsky/indi_allsky/camera/indi.py", line 1344, in __wait_for_ctl_statuses
time.sleep(0.15)
KeyboardInterrupt

##########################
no 2.): - working
##########################
2023-07-01 17:49:59,020 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:49:59,020 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:49:59,020 [INFO] MainProcess darks.shoot() #320: Taking 50.00000000 s exposure (gain 100)
2023-07-01 17:49:59,121 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 50.0
2023-07-01 17:50:52,456 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 53.4354 s
2023-07-01 17:50:52,544 [INFO] MainProcess darks._take_exposures() #709: Image average adu: 74.78
2023-07-01 17:50:52,746 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:50:52,746 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:50:52,746 [INFO] MainProcess darks.shoot() #320: Taking 50.00000000 s exposure (gain 100)
2023-07-01 17:50:52,847 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 50.0
2023-07-01 17:51:46,781 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 54.0348 s
2023-07-01 17:51:46,880 [INFO] MainProcess darks._take_exposures() #709: Image average adu: 73.68
2023-07-01 17:51:47,081 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:51:47,081 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:51:47,081 [INFO] MainProcess darks.shoot() #320: Taking 50.00000000 s exposure (gain 100)
2023-07-01 17:51:47,182 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 50.0
2023-07-01 17:52:40,516 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 53.4347 s
2023-07-01 17:52:40,615 [INFO] MainProcess darks._take_exposures() #709: Image average adu: 72.30
2023-07-01 17:52:40,816 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:52:40,816 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:52:40,817 [INFO] MainProcess darks.shoot() #320: Taking 50.00000000 s exposure (gain 100)
2023-07-01 17:52:40,917 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 50.0
2023-07-01 17:53:34,251 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 53.4344 s
2023-07-01 17:53:34,349 [INFO] MainProcess darks.take_exposures() #709: Image average adu: 70.35
2023-07-01 17:53:34,549 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:53:34,550 [INFO] MainProcess darks.take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:53:34,550 [INFO] MainProcess darks.buildBadPixelMap() #964: Building bad pixel map for exposure 50.0s, gain 100, bin 1
2023-07-01 17:53:34,862 [INFO] MainProcess darks.buildBadPixelMap() #993: Image max value: 16382
2023-07-01 17:53:34,902 [INFO] MainProcess darks.buildBadPixelMap() #1003: Master BPM average adu: 0.00
2023-07-01 17:53:34,956 [INFO] MainProcess darks.stack() #1059: Stacking dark frames for exposure 50.0s, gain 100, bin 1
2023-07-01 17:53:48,900 [INFO] MainProcess darks.stack() #1086: Exposure sigma clip stacked in 13.8257 s
2023-07-01 17:53:48,901 [INFO] MainProcess darks.stack() #1092: Master Dark average adu: 89.60
2023-07-01 17:53:49,021 [INFO] MainProcess miscDb.addBadPixelMap() #315: Adding bad pixel map /var/www/html/allsky/images/darks/bpm_ccd1_16bit_50s_gain100_bin1
-273c_20230701_175334.fit to DB
2023-07-01 17:53:49,025 [INFO] MainProcess miscDb.addDarkFrame() #257: Adding dark frame /var/www/html/allsky/images/darks/dark_ccd1_16bit_50s_gain100_bin1
-273c_20230701_175334.fit to DB
2023-07-01 17:53:49,095 [INFO] MainProcess darks._take_exposures() #672: Temp folder: /tmp/tmph94j_4bh
2023-07-01 17:53:49,096 [INFO] MainProcess darks.shoot() #320: Taking 45.00000000 s exposure (gain 100)
2023-07-01 17:53:49,196 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 45.0
2023-07-01 17:54:37,889 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 48.7938 s
2023-07-01 17:54:37,980 [INFO] MainProcess darks._take_exposures() #709: Image average adu: 69.43
2023-07-01 17:54:38,181 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:54:38,181 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:54:38,181 [INFO] MainProcess darks.shoot() #320: Taking 45.00000000 s exposure (gain 100)
2023-07-01 17:54:38,282 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 45.0
2023-07-01 17:55:26,666 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 48.4849 s
2023-07-01 17:55:26,759 [INFO] MainProcess darks._take_exposures() #709: Image average adu: 66.84
2023-07-01 17:55:26,959 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:55:26,960 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:55:26,960 [INFO] MainProcess darks.shoot() #320: Taking 45.00000000 s exposure (gain 100)
2023-07-01 17:55:27,061 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 45.0
2023-07-01 17:56:16,189 [INFO] MainProcess darks._take_exposures() #687: Exposure received in 49.2287 s
2023-07-01 17:56:16,275 [INFO] MainProcess darks._take_exposures() #709: Image average adu: 64.80
2023-07-01 17:56:16,476 [WARNING] MainProcess indi.getCcdTemperature() #843: Sensor temperature not supported
2023-07-01 17:56:16,477 [INFO] MainProcess darks._take_exposures() #712: Sensor temperature: -273.15
2023-07-01 17:56:16,477 [INFO] MainProcess darks.shoot() #320: Taking 45.00000000 s exposure (gain 100)

##########################
no 3.): - not working
##########################

(indi-allsky) fritz@zx01:~/indi-allsky$ ./darks.py sigmaclip
2023-07-01 17:57:14,133 [INFO] MainProcess indi.init() #126: creating an instance of IndiClient
2023-07-01 17:57:14,133 [INFO] MainProcess indi.init() #133: PyIndi version: 2.0.1
2023-07-01 17:57:14,133 [INFO] MainProcess darks._initialize() #188: Connecting to indiserver
INDI::BaseClient::connectServer: creating new connection...
2023-07-01 17:57:14,142 [INFO] MainProcess indi.serverConnected() #327: Server connected (192.168.10.46:7624)
2023-07-01 17:57:14,158 [INFO] MainProcess indi.newDevice() #197: new device Canon DSLR EOS 1500D
2023-07-01 17:57:14,370 [INFO] MainProcess indi.newDevice() #197: new device Telescope Simulator
: defTextVector with no valid members
2023-07-01 17:57:22,151 [INFO] MainProcess indi._findCcds() #567: Searching for available cameras
2023-07-01 17:57:22,151 [INFO] MainProcess indi._findCcds() #578: Detected Canon DSLR EOS 1500D
2023-07-01 17:57:22,152 [INFO] MainProcess indi.findCcd() #587: Found 1 CCDs
2023-07-01 17:57:22,152 [WARNING] MainProcess darks._initialize() #211: Connecting to device Canon DSLR EOS 1500D
2023-07-01 17:57:22,354 [INFO] MainProcess indi.getCcdInfo() #512: Detecting bayer pattern
2023-07-01 17:57:22,770 [INFO] MainProcess miscDb.addCamera() #81: Camera DB ID: 1
2023-07-01 17:57:22,770 [INFO] MainProcess indi.configureDevice() #690: Setting switch DEBUG
2023-07-01 17:57:22,871 [INFO] MainProcess indi.set_switch() #1258: Enabling Disable (DISABLE)
2023-07-01 17:57:23,873 [INFO] MainProcess indi.updateCcdBlobMode() #389: Set BLOB mode
2023-07-01 17:57:23,874 [INFO] MainProcess indi.configureDevice() #690: Setting switch CCD_CAPTURE_FORMAT
2023-07-01 17:57:23,975 [INFO] MainProcess indi.set_switch() #1258: Enabling RAW (FORMAT_9)
2023-07-01 17:57:23,975 [INFO] MainProcess indi.configureDevice() #695: Setting property (number) CCD_INFO
2023-07-01 17:57:24,076 [INFO] MainProcess indi.set_number() #1230: Setting Max. Width = 6000
2023-07-01 17:57:24,077 [INFO] MainProcess indi.set_number() #1230: Setting Max. Height = 4000
2023-07-01 17:57:24,077 [INFO] MainProcess indi.set_number() #1230: Setting Pixel size (um) = 3.71
2023-07-01 17:57:24,077 [INFO] MainProcess indi.set_number() #1230: Setting Pixel size X = 3.71
2023-07-01 17:57:24,077 [INFO] MainProcess indi.set_number() #1230: Setting Pixel size Y = 3.71
2023-07-01 17:57:24,077 [INFO] MainProcess indi.set_number() #1230: Setting Bits per pixel = 16
2023-07-01 17:57:25,230 [INFO] MainProcess indi.configureDevice() #690: Setting switch CCD_FRAME_TYPE
2023-07-01 17:57:25,331 [INFO] MainProcess indi.set_switch() #1258: Enabling Dark (FRAME_DARK)
2023-07-01 17:57:25,381 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:57:25: [WARNING] The CCD does not have a shutter. Cover the camera in order to take a dark frame.
2023-07-01 17:57:26,333 [WARNING] MainProcess indi.disableCcdCooler() #875: Disabling CCD cooling
2023-07-01 17:57:28,342 [WARNING] MainProcess indi.disableCcdCooler() #880: Cooling not supported
2023-07-01 17:57:28,342 [WARNING] MainProcess darks._run() #623: ****** IF THE CCD COOLER WAS ENABLED, YOU MAY CONSIDER STOPPING THIS UNTIL THE SENSOR HAS WARMED ******
2023-07-01 17:57:36,351 [WARNING] MainProcess indi.setCcdGain() #1055: Setting CCD gain to 100
2023-07-01 17:57:36,351 [INFO] MainProcess indi.setCcdGain() #1093: Mapping gain to ISO for Canon device
2023-07-01 17:57:36,351 [INFO] MainProcess indi.setCcdGain() #1097: Setting ISO switch: ISO1
2023-07-01 17:57:36,352 [INFO] MainProcess indi.configureDevice() #690: Setting switch CCD_ISO
2023-07-01 17:57:36,453 [INFO] MainProcess indi.set_switch() #1258: Enabling 100 (ISO1)
2023-07-01 17:57:37,455 [WARNING] MainProcess indi.setCcdBinning() #1141: Setting CCD binning to (1, 1)
2023-07-01 17:57:37,455 [WARNING] MainProcess indi.setCcdBinning() #1173: indi_canon_ccd does not support bin settings
2023-07-01 17:57:37,457 [INFO] MainProcess darks._take_exposures() #672: Temp folder: /tmp/tmpzw1khwud
2023-07-01 17:57:37,457 [INFO] MainProcess darks.shoot() #320: Taking 60.00000000 s exposure (gain 100)
2023-07-01 17:57:37,558 [INFO] MainProcess indi.set_number() #1230: Setting Duration (s) = 60.0
2023-07-01 17:57:37,610 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:57:37: [INFO] Starting 60 seconds exposure.
2023-07-01 17:58:39,577 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,577 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,577 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [WARNING] Could not wait for event.
2023-07-01 17:58:39,578 [INFO] MainProcess indi.newMessage() #324: new Message 2023-07-01T15:58:37: [ERROR] Exposure failed to save image... Unspecified error

Any idea what could be wrong?

2 looks ok, 1 and 3 not.

the strange temp reading in 1 is not the issue, as same on 2 and there it is ok.

3 looks like an error in saving the image. This is a Canon 2000d

@aaronwmorris
Copy link
Owner

I am assuming the Touptek camera that is generating the exception is the color camera. It is possible the camera is set to INDI_RGB mode instead of INDI_RAW mode. This is also the default for Altair cameras which are related to Touptek.

Try adding the following setting to set it to RAW mode....

{
    "PROPERTIES": {},
    "SWITCHES": {
        "CCD_CAPTURE_FORMAT": {
            "on": [
                "INDI_RAW"
            ]
        }
    }
}

As for the Canon, I am not sure. Is the Camera set to manual mode?

@jkoenig72
Copy link
Author

jkoenig72 commented Jul 1, 2023 via email

@jkoenig72
Copy link
Author

jkoenig72 commented Jul 1, 2023 via email

@jkoenig72
Copy link
Author

Looks like you have something like this already-

    # query external temperature if camera does not return temperature
    if temp_val < -100.0 and self.config.get('CCD_TEMP_SCRIPT'):

Cool.

@aaronwmorris
Copy link
Owner

You can certainly use the temperature script feature. There are some example scripts (shell and python) in the misc/ folder.

@interplanetarychris
Copy link

I'm also having problems with the darks.py script completing (on a ZWO ASI 224MC)

Getting the following error on repeated sessions:

2023-07-11 08:09:54,886 [WARNING] MainProcess indi.setCcdGain() #1062: Setting CCD gain to 0
2023-07-11 08:09:54,887 [INFO] MainProcess indi.configureDevice() #702: Setting property (number) CCD_CONTROLS
2023-07-11 08:09:54,988 [INFO] MainProcess indi.set_number() #1237: Setting Gain = 0
2023-07-11 08:09:56,141 [WARNING] MainProcess indi.setCcdBinning() #1148: Setting CCD binning to (1, 1)
2023-07-11 08:09:56,142 [INFO] MainProcess indi.configureDevice() #702: Setting property (number) CCD_BINNING
2023-07-11 08:09:56,242 [INFO] MainProcess indi.set_number() #1237: Setting X = 1
2023-07-11 08:09:56,243 [INFO] MainProcess indi.set_number() #1237: Setting Y = 1
2023-07-11 08:09:57,397 [INFO] MainProcess darks._take_exposures() #675: Temp folder: /tmp/tmpct2nxb_w
2023-07-11 08:09:57,399 [INFO] MainProcess darks.shoot() #323: Taking 60.00000000 s exposure (gain 0)
2023-07-11 08:09:57,499 [INFO] MainProcess indi.set_number() #1237: Setting Duration (s) = 60.0
2023-07-11 08:09:57,740 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:09:57: [INFO] Taking a 60 seconds frame...
2023-07-11 08:10:58,144 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:10:58: [INFO] Exposure done, downloading image...
2023-07-11 08:10:58,150 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:10:58: [INFO] Download complete.
2023-07-11 08:11:30,228 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:10:58: [INFO] Taking a 60 seconds frame...
2023-07-11 08:11:58,797 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:11:58: [INFO] Exposure done, downloading image...
2023-07-11 08:11:58,802 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:11:58: [INFO] Download complete.
2023-07-11 08:12:03,742 [INFO] MainProcess indi.newMessage() #331: new Message 2023-07-11T15:11:59: [INFO] Taking a 60 seconds frame...
Traceback (most recent call last):
  File "/home/chris/indi-allsky/./darks.py", line 90, in <module>
    action_func()
  File "/home/chris/indi-allsky/indi_allsky/darks.py", line 472, in sigmaclip
    self._sigmaclip()
  File "/home/chris/indi-allsky/indi_allsky/darks.py", line 479, in _sigmaclip
    self._run(IndiAllSkyDarksSigmaClip)
  File "/home/chris/indi-allsky/indi_allsky/darks.py", line 638, in _run
    self._take_exposures(exposure, dark_filename_t, bpm_filename_t, ccd_bits, stacking_class)
  File "/home/chris/indi-allsky/indi_allsky/darks.py", line 686, in _take_exposures
    self.shoot(exposure_f, sync=True, timeout=180.0)  # flat 3 minute timeout
  File "/home/chris/indi-allsky/indi_allsky/darks.py", line 325, in shoot
    self.indiclient.setCcdExposure(exposure, sync=sync, timeout=timeout)
  File "/home/chris/indi-allsky/indi_allsky/camera/indi.py", line 936, in setCcdExposure
    ctl_ccd_exposure = self.set_number(self._ccd_device, 'CCD_EXPOSURE', {'CCD_EXPOSURE_VALUE': exposure}, sync=sync, timeout=timeout)
  File "/home/chris/indi-allsky/indi_allsky/camera/indi.py", line 1243, in set_number
    self.__wait_for_ctl_statuses(c, timeout=timeout)
  File "/home/chris/indi-allsky/indi_allsky/camera/indi.py", line 1342, in __wait_for_ctl_statuses
    raise TimeOutException('Timeout error while changing property {0}: elapsed={1}, timeout={2}, status={3}'.format(ctl.getName(), elapsed, timeout, self.__state_to_str_p[ctl.getState()] ))
indi_allsky.exceptions.TimeOutException: Timeout error while changing property CCD_EXPOSURE: elapsed=180.1258189678192, timeout=180.0, status=BUSY
BaseClient::~BaseClient: Probability of detecting a deadlock.

@aaronwmorris
Copy link
Owner

@interplanetarychris What version of INDI are you running on your indiserver?

You can usually query this with pkg-config --modversion libindi. If you are using a remote indiserver, make sure this is from the remote server.

@interplanetarychris
Copy link

interplanetarychris commented Jul 11, 2023 via email

@aaronwmorris
Copy link
Owner

Looks like you are using the astroberry repo. The timeout is probably a firmware issue with your camera. The only way to upgrade this is to install a newer version of INDI.

You can clone the indi-allsky on your raspberry pi and run ./misc/build_indi.sh to build the latest version on your Pi. You will have to uninstall the existing version to proceed. Compiling usually takes 20-30 minutes on a Pi4.

https://github.com/aaronwmorris/indi-allsky/wiki/Uninstall-indi-repository

@aaronwmorris
Copy link
Owner

Also, fully reboot your Pi once you have a new version of INDI installed.

@interplanetarychris
Copy link

interplanetarychris commented Jul 11, 2023 via email

@aaronwmorris
Copy link
Owner

The state of the available INDI packages is definitely a source of frustration. The INDI team relied on Astroberry to provide packages for Raspbian/Debian ARM, which worked very well for a few years, but the Astroberry project is basically abandoned now. There are current binary packages available for Ubuntu (x86_64 and arm64), but nothing for 95% of the users using a Raspberry PI.

I probably need to remove Astroberry entirely from my setup.sh script. I left it in case Astroberry was picked up again, but it does not appear that is going to happen.

The script was never intended to be the primary method of obtaining INDI.

@interplanetarychris
Copy link

The build of indi solved the problem (but took 4 hours on my Raspberry Pi 4b). I submitted #834 with some refinements to show progress in collecting darks.

@aaronwmorris
Copy link
Owner

The compile of INDI should have taken no longer than about 40 minutes on a Pi4. Do you have a heat sink and/or fan installed? Throttling would explain that level of performance.

@aaronwmorris
Copy link
Owner

Closing this for now. Feel free to re-open if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants