AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.16k stars 180 forks source link

Image breaks down during the night #62

Closed ghost closed 3 years ago

ghost commented 5 years ago

Hello Thomas,

I have the new raspberry pi B+ with ASI120MC-S, during the day works well, but in the middle of the night the image it starts to be wrong, during the day and first time of night https://www.dropbox.com/s/9twaqvisdb57vud/0595.jpg?dl=0 and suddenly during the night the image breaks down like this https://www.dropbox.com/s/2n0b6wsmtilnqbh/0835.jpg?dl=0

https://www.marccorretge.com/allsky/videos/allsky-20190127.mp4 this is the timelapse of the last night where you can see how the image suddenly breaks down, repair and breaks down again during the night

Sometimes solves itself, or at the beginning of the day also solves itself. How can I fix it?

Thanks.

thomasjacquin commented 5 years ago

Hey, I've never seen this kind of issue before. From the timelapse, it's hard to tell if it's creating a new image or if it's looping over the same one for the rest of the night. Do you notice it more when you use a special camera setting?

ghost commented 5 years ago

Now I'm using the camera's default settings, I'm testing the system for this reason it's inside the house.

But the image is not looped over the same image, it is creating a new capture each time. It is difficult to appreciate without the stars, but in these time intervals https://www.marccorretge.com/allsky/videos/allsky-20190126.mp4 in the last 5 seconds you can see the first rays of the sun,

If I look at all the images captured in one night I see hundreds of defective images, that is to say, they are saved as they are being made

I had that problem with the raspberry pi B and I thought the problem was the raspberry, so I bought the new B +, but I still have the same problem. The ASI120 is also new.

I have tried some possible solutions but nothing works. I thought that the problem could be when you change the size of the image or convert it (convert "$ IMAGE_TO_USE" -resize 100x75), I tried to save only the original images if it also happened but I did not know how to do it.

It only happens during the night, probably the long exhibitions fill the memory of the camera, or something like that. If that were the case, you could restart the camera every hour, for example, to delete all the data stored in the camera and thus release the memory of the camera maybe it would go well from time to time.

gremlinforce007 commented 5 years ago

Hi Thomas,

I've noticed tonight i'm having the same issue as well.. have to reboot the camera to fix it ..

Pi 3 Model B

Auto-Exo- disabled: Auto-Gain - Enabled

I'm going to swap them around to see now

thomasjacquin commented 5 years ago

@gremlinforce007 Can you post your settings. I can take a look to see if I see anything obvious. It could come from a number of reasons (camera model, SD card, usb cable, camera settings, etc).

gremlinforce007 commented 5 years ago

@thomasjacquin : here you go .. thanks for your help

Screen Shot 2019-04-15 at 4 39 59 pm Screen Shot 2019-04-15 at 4 39 48 pm

https://skypulse.org/allsky/

thomasjacquin commented 5 years ago

When I use auto-exposure and auto-gain together I found that it produces unpredictable behaviour. I think it's something coming from the ZWO library. Also I haven't really tested binning 2 so I will take a look on my camera to see it I can reproduce the problem.

gremlinforce007 commented 5 years ago

So update:

Whenever Auto Gain goes above 64 i see this issue occurring :(

gremlinforce007 commented 5 years ago

Hi @thomasjacquin

Its happening again really bad last night, Any ideas ? https://skypulse.org/allsky/keograms/keogram-20190423.jpg https://skypulse.org/allsky/videos/allsky-20190423.mp4

Screen Shot 2019-04-24 at 10 14 34 am Screen Shot 2019-04-24 at 10 14 42 am

ghost commented 5 years ago

It keeps happening to me from time to time, there are nights that work perfectly, but there are other nights like this one https://marccorretge.com/allsky/keograms/keogram-20190419.jpg As someone said the solution is to restart the service, but at midnight we will not be waiting to restart it every time. I read in a blog that the last ASI120 had some error in the firmware that gave several problems, in fact the manufacturer of the ASI (ZWO) have stopped manufacture it and it could be that it had something to do with these errors that it gives us, it would be interesting to know if it happens with any other model than ASI120. The good thing is that after a while it is correct again, anyway, I in the EndOfNight file in the last line I put (sudo service allsky restart) to make sure that if it is not corrected automatically that does it automatically every morning. Also is interesting. Also it only happens to me when it is night, during the day it does not give this problem

ghost commented 5 years ago

https://marccorretge.com/allsky/keograms/keogram-20190419.jpg

thomasjacquin commented 5 years ago

Unfortunately , I don't own an ASI120 camera so I can't replicate the issue at home. It seems to me that this is a firmware or hardware issue with this model. Have you tried the firmware upgrade tool that they provide on their website? I am wondering if the problem happens with both versions of the firmware.

Chboss74 commented 5 years ago

I had something similar with my ASI120, so I changed changed the USB cable and reduced the cable length, which improved things. However I had some issues with pictures not being debarred occasionally and then permanently. Did a complete reinstall of the Raps including allsky software and seems to work properly now.

EricClaeys commented 3 years ago

This issue is from an older release of the AllSky software and the issues appear to have been resolved. If you think it might still be relevant, please test it with the newest version and submit a new issue if needed. Thanks.