I bought Raspberry Pi 3 model b to set up asi120mc-s as all sky camera. I installed indi server and SWIG and can successfuly connect to the camera from Python.
If I set exposure under 2s. everything is ok (check attachment 1s.jpeg). But if I go above, band of 183px is less exposed than the rest of the image (check attachment 5s.jpeg). Do you have any idea why this would happen? I also attachedcamera settings (asi120mc-s_indi_settings.txt). This is python code snippet for capture:
def takeExposure(self):
self.logger.info("<<<<<<<< Exposure >>>>>>>>>")
#get current exposure time
exp = self.device.getNumber("CCD_EXPOSURE")
# set exposure time to 5 seconds
exp[0].value = 5
self.sendNewNumber(exp)
def newBLOB(self, bp):
self.logger.info("new BLOB "+ bp.name.decode())
# get image data
img = bp.getblobdata()
import cStringIO
# write image data to StringIO buffer
blobfile = cStringIO.StringIO(img)
# open a file and save buffer to disk
with open("frame.fit", "wb") as f:
f.write(blobfile.getvalue())
For anyone with same problem, the issue was with wrong camera settings. HighSpeedMode must be turned off and than it works ok. Additionally, to turn this flag off, one must set exposure under 100ms first (I got that info from ZWO directly, because I could not change the flag). So to sum up, this is the fix: