-
Notifications
You must be signed in to change notification settings - Fork 181
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
ERROR: Failed getting image, status = 11 (ASI_ERROR_TIMEOUT) #417
Comments
Same error here with the latest version and GUI using a ZWO AI385MC. Setting "Auto USB bandwidth" back to No and "USB bandwidth" to 80 solved the problem |
I tried USBAUTO no and 90 for the bandwidth, no luck. Also USBAUTO on , no luck. What else can I try ? |
Neither got luck, wathever value i put on bandwidth.. |
Also a 178mc owner. With previous version I had to lower quality (png) to 7 and had to plug into a USB2 port. With the new version of allsky, encountered the timeout error no matter what setting. |
Got the same problem on my Pi Zero which was installed two days ago. I tired with both 120mc and 178mc.. didn't work.. |
This isn't good. During testing we eliminated the problem by setting USB Bandwidth high. One person has it at 100 with the camera the only thing on the USB 3 bus. Another has it at 75. I have 80 and auto-usb. One of us had to move the camera to the USB port. bbillp, would you please set your Debug Level to 3 then restart allsky and upload the log? The WARNING you got implies the exposure time was set to -1. Thanks. |
snip “bbillp, would you please set your Debug Level to 3 then restart allsky and upload the log? The WARNING you got implies the exposure time was set to -1. Thanks.”
Will do with V0.8 but NOTE: Beginning with V0.7 the images from the first 5 minutes following power up begin with very short sub second exposures then with each following image the exposure slowly lengthens out to the correct exposure around 15 seconds at typically 5 minutes time. (Night images only; ASI178MC) Is there a setting that starts the camera at a longer exposure ? Autoexpose = yes autogain = no gain = 195 max exposure is >20 seconds, forgot exact number but after 5 minutes the images look very good, no complaints (V0.7) .
ASICAP/ASISUITE, FIRECAP, PHD2, ASTROBERRY all work fine .
I have only 1 image from V0.8 until we figure out the Timeout problem with the 178.
…Sent from my iPad
On Aug 13, 2021, at 3:03 PM, EricClaeys ***@***.***> wrote:
This isn't good. During testing we eliminated the problem by setting USB Bandwidth high. One person has it at 100 with the camera the only thing on the USB 3 bus. Another has it at 75. I have 80 and auto-usb. One of us had to move the camera to the USB port.
Only one of you resolved the problem by using "auto" no, and "USB Bandwidth" of 80. Can other people try a different USB port? And continue trying different combinations of "Auto USB" and "USB Bandwidth "?
I have a feeling there may be a Pi USB driver issue, since we see the reset errors as well.
bbillp, would you please set your Debug Level to 3 then restart allsky and upload the log? The WARNING you got implies the exposure time was set to -1. Thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
"would you please set your Debug Level to 3" |
bbillp, In version 0.7, the nighttime exposure setting was called "Exposure". I have my nighttime "Manual Exposure" set to 45 since when it's fully dark, the camera takes 60 second auto-exposures. |
I’ll set debug to 3 Saturday night because today is Friday the 13th so the debug output will be corrupted. My printer and microwave broke today.
…Sent from my iPad
On Aug 13, 2021, at 3:03 PM, EricClaeys ***@***.***> wrote:
This isn't good. During testing we eliminated the problem by setting USB Bandwidth high. One person has it at 100 with the camera the only thing on the USB 3 bus. Another has it at 75. I have 80 and auto-usb. One of us had to move the camera to the USB port.
Only one of you resolved the problem by using "auto" no, and "USB Bandwidth" of 80. Can other people try a different USB port? And continue trying different combinations of "Auto USB" and "USB Bandwidth "?
I have a feeling there may be a Pi USB driver issue, since we see the reset errors as well.
bbillp, would you please set your Debug Level to 3 then restart allsky and upload the log? The WARNING you got implies the exposure time was set to -1. Thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
V0.7 ASI178MC Pi3b+
autoexposure is 210
default ‘exposure’ = 10000
changed ‘exposure’ to 15000
sudo service allsky stop, sudo service allsky start
the starting images seem better …. I’ll adjust as needed following a fresh bootup.
Thanks ……
…Sent from my iPad
On Aug 13, 2021, at 6:40 PM, EricClaeys ***@***.***> wrote:
bbillp,
If you have auto-exposure turned on, then the corresponding "exposure" setting is used as a staring point.
For example, if nighttime "Auto-Exposure" is turned on, then the nighttime "Manual Exposure" setting is used as a starting point if the program is started at night. However, when the program has been running during the day and nighttime comes, it will use the last daytime exposure as a starting point for night, adjusting the gain if "Gain Transition Time" is greater than 0. This is done to avoid abrupt changes in brightness between day and night.
In version 0.7, the nighttime exposure setting was called "Exposure".
I have my nighttime "Manual Exposure" set to 45 since when it's fully dark, the camera takes 60 second auto-exposures.
Does this help?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Brad, |
I am using the GUI, but nothing shows up for the RPIiHQ Advanced Options looks to be only for the ZWO. Advanced Options is there, but nothing is added to the GUI when turned on. I added it to the settigs_RPiHQ.json file but not sure it's an option. |
Brad,
|
I just submitted an update for this to Thomas. Thanks for pointing it out. |
@EricClaeys Did you send me a pull request for this? |
@thomasjacquin Yes. I submitted 15 pull requests last night. Each was in its own branch. |
@EricClaeys Weird, I'm not seeing them on the GitHub page and I didn't get any notification. |
@EricClaeys I think it's because you submitted a PR onto your own fork of my repository. Let me see if I can bring them over. |
When I try to submit on yours, it tells me I don't have write permission, so I don't try. |
Can you select the base repository to push to? See item 4 on this page. |
Thomas,
You now have a bunch of PRs in allsky and allsky-portal.
Eric
From: Thomas Jacquin ***@***.***>
Sent: Saturday, August 14, 2021 2:55 PM
To: thomasjacquin/allsky ***@***.***>
Cc: EricClaeys ***@***.***>; Mention ***@***.***>
Subject: Re: [thomasjacquin/allsky] ERROR: Failed getting image, status = 11 (ASI_ERROR_TIMEOUT) (#417)
Can you select the base repository to push to? See item 4 on this page.
https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#417 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AT2PYKZ3WWSKOLEJKJMO62DT43C25ANCNFSM5B5NAWRQ> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email> . <https://github.com/notifications/beacon/AT2PYK2TJUQM4CDQR54GT2TT43C25A5CNFSM5B5NAWR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWKOZHQ.gif>
|
snip “bbillp, would you please set your Debug Level to 3 then restart allsky and upload the log? The WARNING you got implies the exposure time was set to -1. Thanks.” V0.8 with debug = 3 , create dark images, one dark file created and the image folder 20210814 was created then saved sudo service allsky status to status.txt Attached are the files for config.sh, settings_ZWO.json, status.txt, log.txt . I was expecting to see a lot of info from debug level 3 in log.txt but there isn't . |
Are Erics updates ready to download and update 0.8 on the Pi ? |
Bill, my updates aren't there yet. I'm having some problems with GitHub which is making it difficult to merge my changes into Thomas' master. |
Bill, sorry, I wasn't clear. Post the /var/log/allsky.log file. Maybe first stop the service, remove or truncate the file, then start the service and let it go a while, then upload allsky.log. That way it will only contain the most recent data, which makes it easier to look at. |
Bill, try the attached capture.cpp file - it should fix the -1 exposure for dark frames. |
Same problem for me. I use a ZWO ASI120MC Cam. Worked with older version of allsky. |
Dang, eagle eyes! I fixed it now... and, happy to report it still works fine. :) I did omit the actual display function of the code.. I spent a bit of time looking into how to implement it in OpenCV4, but came up empty on execution. I don't use it, so it wasn't high priority for my hacking around. |
@linuxkidd Michael, anything we should change in the master software based on your test? |
@EricClaeys Bullseye support is a bit bleeding edge, but everything else is working fine on all new buster installs even with updates. The only thing I have different from default is I've disabled auto-exposure in Daytime capture. In my first attempts with that early on, it was still causing wild swings of brightness. I'll set it back to auto at this point and see how it goes. |
Even better, you should do up a PR. It's easier to review, and easier to cherry pick changes if others want to experiment with it, and easier for you to be credited for your contributions to Allsky. |
@linuxkidd Michael, if you send /var/log/allsky.log while you're having wild swings, I'll take a look. I've also noticed some swings in the log file but haven't had time to look into it. |
@EricClaeys |
@bobhillier99 use it in a 0.8 build. It won't have any of the 0.8 features except printing an error message if a capture fails. 0.7 did almost no error checking. |
FYI -- I found that the OpenCV4 compatible methods work with Debian Buster as well as Debian Bullseye. I've submitted a new issue #508 and a new PR #505 for this. |
I appreciate this extra work and findings, but I don't know how to read those two open issues. Any action we can take to debug this further and make progress on this issue? |
Hi @maphilli14, apologies for the confusion of mentioning these other Issue/PRs. I initially had the same timeouts, but a fresh install of buster + allsky resolved it entirely on my setup. If you opt to test this, be sure to back up your |
I just did a fresh install and git clone and it still errors out.... see attached :( |
Hey dumb question. With lots of 'scientific' cameras there is a separate register to change the exposure range is that possibly in play here? IE, exp values from 1ms to 100ms are valid for mode A but to get to 100ms to 1000ms you need mode B and for beyond 1sec you need modeC? Possibly? Let me know what other logs you might need? I can try a higher logging level as suggested or a different capture.cpp if needed. TIA |
@maphilli14 Allsky restarted only once because of ASI_ERROR_TIMEOUTs but was successful many other times. Did you restart it the other times or did it restart itself? There are quite a few restarts. There is no separate register to change exposure range. If you want to see the exposure range for your camera, set the Debug Level to 4 and restart. It will show you all the camera's capabilities including their default, min, and max values. |
I tried your suggestions and may have gotten lost along the way but I attached several setting example logs. This was fairly consistent
As was the total inability to go beyond 1sec exposures of any kind. Thanks for all the help and support! |
@maphilli14, those message are just saying your camera doesn't support gamma (most don't) and setting color balance since you have a mono camera. A future version of capture.cpp won't attempt to set color balance on mono cameras. Those message are nothing to worry about. Try downloading the newest capture.cpp which is in the "src" directory at https://github.com/thomasjacquin/allsky. First rename your current capture.cpp to capture-ORIGINAL.cpp, then copy the new one in and run "make capture". The new file increases the max number of consecutive errors from 2 to 5. I don't think it'll help but it's worth a try. Also increase the USB Bandwidth from 40 to 80 and if that doesn't help, increase to 100. After you run "make capture", stop the service and run "sudo rm -f /var/log/allsky.log", then restart the service and let it go a few minutes and send me the log file. |
Yes, much the same... |
@maphilli14 Sigh... Also, please try with 0.8 exposure mode off. If none of the above work I don't know what else to do other than use the attached file. which is the version 0.7 capture.cpp. |
Thanks @EricClaeys I seemed to have lost all camera ability. Switching to daytime mode at the end of that night of troubleshooting left it timing out no matter what settings. I tried refreshing the entire allsky from repo 2x times. It's as though something stuck in the camera registers. Even powering off for many minutes did not recover. I will refresh again tonight and try the suggested cpp! TIA |
@maphilli14 Sorry you are still having problems. Can you attach the camera to a Windows machine and connect via ASI Studio? |
no sweat, I can but it's on the roof and raining, might be some time.... I have recovered basic, < 1s exp again. I found in the logs I needed to manually specify zwo in the config.sh file. All seems to work mostly, the cpp file complied but doesn't execute well...
|
also fwiw i used to use the same setup with 4sec 250gain exposures for over a year as an allsky camera. during that time i used the zwo sdk and oacapture to test things with prior, should I try that again? |
@maphilli14 After running Definitely try with oacapture. If it works and AllSky doesn't then it's something in AllSky. If oacapture doesn't work either it points to a hardware problem. |
@maphilli14 That probably points to a hardware or SDK issue; let's see what happens under Windows. Where can I get oacapture? |
-->Might take me some time to get it hooked up. If you want oacapture it’s here - https://www.openastroproject.org/oacapture/ Thanks, Mike
|
@maphilli14 I'm closing this issue since it's been resolved, and opened https://github.com/thomasjacquin/allsky/issues/650 for the problem you're having. |
Latest ALLSKY 8/10/2021 about 7PM PDT Los Angeles.
Pi 3b+
ZWO ASI178MC
Previous ALLSKY versions worked fine but except a recent version makes the ASI178 run hot
Attached as TEXT Files for the upload here,: config.sh and settings_ZWO.json
config.sh.txt
settings_ZWO.json.txt
Problem
One successful DARK image then ASI_ERROR_TIMEOUT repeats for any image.
In subsequent attempts I tried increasing USB from 40 to 100; autoUSB, reduced photo quality, No luck What next ?
â—� allsky.service - All Sky Camera
Loaded: loaded (/lib/systemd/system/allsky.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-08-10 20:01:36 PDT; 11s ago
Main PID: 10191 (allsky.sh)
CGroup: /system.slice/allsky.service
├─10191 /bin/bash /home/pi/allsky/allsky.sh
└─10282 /home/pi/allsky/capture -alwaysshowadvanced 1 -angle -6 -autousb 0 -autowhitebalance 0 -coolerEnabled 0 -darkframe 1 -dayautoexposure 1 -daybin 1 -daybrightness 50 -daydelay 5000 -dayexposure .5 -debuglevel 1 -extratext -extratextage 600 -filename image.jpg -flip 0 -fontcolor 255 255 255 -fontline 1 -fontname 0 -fontsize 7 -fonttype 0 -gaintransitiontime 15 -gamma 50 -height 0 -histogrambox 500 500 50 50 -latitude 33.5N -locale en_US.UTF-8 -longitude 118.1W -nightautoexposure 1 -nightautogain 0 -nightbin 1 -nightbrightness 50 -nightdelay 10 -nightexposure 10000 -nightgain 195 -nightmaxexposure 20000 -nightmaxgain 200 -notificationimages 1 -outlinefont 0 -quality 95 -showBrightness 0 -showExposure 1 -showGain 1 -showHistogram 0 -showTemp 1 -showTime 1 -showhistogrambox 0 -smallfontcolor 0 0 255 -targetTemp 0 -temptype C -text -textlineheight 60 -textx 15 -texty 30 -timeformat %Y%m%d %H:%M:%S -type 99 -usb 90 -wbb 90 -wbr 53 -width 0 -daytime 0 -tty 0
Aug 10 20:01:40 Allsky3B allsky.sh[10191]: Debug Level: 1
Aug 10 20:01:40 Allsky3B allsky.sh[10191]: TTY: 0 (no)
Aug 10 20:01:40 Allsky3B allsky.sh[10191]:
Aug 10 20:01:40 Allsky3B allsky.sh[10191]: Will NOT adjust gain at transitions
Aug 10 20:01:40 Allsky3B allsky.sh[10191]: Stop the allsky service to end this process.
Aug 10 20:01:40 Allsky3B allsky.sh[10191]: WARNING: Value of -1 less than min value allowed (32) for control 'Exposure' (#1).
Aug 10 20:01:40 Allsky3B allsky.sh[10191]: Taking dark frames...
Aug 10 20:01:41 Allsky3B allsky.sh[10191]: > ERROR: Failed getting image, status = 11 (ASI_ERROR_TIMEOUT)
Aug 10 20:01:43 Allsky3B allsky.sh[10191]: > ERROR: Failed getting image, status = 11 (ASI_ERROR_TIMEOUT)
Aug 10 20:01:46 Allsky3B allsky.sh[10191]: > ERROR: Failed getting image, status = 11 (ASI_ERROR_TIMEOUT)
The text was updated successfully, but these errors were encountered: