AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.17k stars 181 forks source link

Capture doesnt start day or night #345

Closed 22878120 closed 3 years ago

22878120 commented 3 years ago

Hi, Ive installed the allsky on RPi 4 1GB RAM 64GB SD card. It is working except it is not capturing.

Apr  5 22:50:11 allskycam01 allsky.sh[1789]: CAMERA_SETTINGS: /etc/raspap/settings_ZWO.json
Apr  5 22:50:11 allskycam01 allsky.sh[1789]: Starting allsky camera...
Apr  5 22:59:42 allskycam01 allsky.sh[637]: Making sure allsky.sh is not already running...
Apr  5 22:59:42 allskycam01 allsky.sh[637]: can't get debug descriptor: Resource temporarily unavailable
Apr  5 22:59:42 allskycam01 allsky.sh[637]: Trying to automatically choose between ZWO and RPI camera
Apr  5 22:59:42 allskycam01 allsky.sh[637]: ZWO camera found. Choosing ZWO
Apr  5 22:59:42 allskycam01 allsky.sh[637]: Settings check done
Apr  5 22:59:42 allskycam01 allsky.sh[637]: CAMERA: ZWO
Apr  5 22:59:42 allskycam01 allsky.sh[637]: CAMERA_SETTINGS: /etc/raspap/settings_ZWO.json
Apr  5 22:59:42 allskycam01 allsky.sh[637]: Starting allsky camera...

When I stop the service and run allsky.sh manually

Making sure allsky.sh is not already running...
can't get debug descriptor: Resource temporarily unavailable
Trying to automatically choose between ZWO and RPI camera
ZWO camera found. Choosing ZWO
Settings check done
CAMERA: ZWO
CAMERA_SETTINGS: /etc/raspap/settings_ZWO.json
Starting allsky camera...

 ******************************************
 *** Allsky Camera Software v0.7 | 2020 ***
 ******************************************

Capture images of the sky with a Raspberry Pi and an ASI Camera

Add -h or -help for available options

Author: Thomas Jacquin - <jacquin.thomas@gmail.com>

Contributors:
-Knut Olav Klo
-Daniel Johnsen
-Yang and Sam from ZWO
-Robert Wagner
-Michael J. Kidd - <linuxkidd@gmail.com>
-Chris Kuethe

Listing Attached Cameras:
- 0 ZWO ASI120MC

ZWO ASI120MC Information:
- Resolution:1280x960
- Pixel Size: 3.8μm
- Supported Bin: 1 2
- Color Camera: bayer pattern:GR
- SDK version 1, 17
- Initialise Camera OK
- Sensor temperature:22.200000

Capture Settings:
 Image Type: ASI_IMG_RGB24
 Resolution: 1280x960
 Quality: 95
 Exposure: 10000ms
 Max Exposure: 20000ms
 Auto Exposure: 1
 Gain: 50
 Max Gain: 200
 Cooler Enabled: 0
 Target Temperature: 0C
 Auto Gain: 0
 Brightness: 50
 Gamma: 50
 WB Red: 53
 WB Blue: 90
 Binning: 1
 Delay: 10ms
 Daytime Delay: 5000ms
 USB Speed: 40
 Text Overlay:
 Text Extra Filename:
 Text Extra Filename Age: 600
 Text Line Height 30px
 Text Position: 15px left, 35px top
 Font Name:  0
 Font Color: 255 , 255, 255
 Small Font Color: 0 , 0, 255
 Font Line Type: 16
 Font Size: 7.0
 Font Line: 1
 Outline Font : 0
 Flip Image: 0
 Filename: image.jpg
 Latitude: 33.00N
 Longitude: 83.00W
 Sun Elevation: -6
 Preview: 0
 Time: 1
 Darkframe: 1
 Show Details: 1
 Debug Level: 0

Starting daytime capture
Saving auto exposed images every 5000 ms

Press Ctrl+C to stop

and it stops here forever

22878120 commented 3 years ago

update: after looking into sudo journalctl i found the following:

Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1044 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: reset high-speed USB device number 3 using xhci_hcd
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1182 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1182 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1182 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: usbfs: process 1182 (capture) did not claim interface 0 before use
Apr 06 13:32:21 allskycam01 kernel: usb 1-1.4: Process 1044 (capture) called USBDEVFS_CLEAR_HALT for active endpoint 0x82
Apr 06 13:32:27 allskycam01 sudo[1188]:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/journalctl
Apr 06 13:32:27 allskycam01 sudo[1188]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Apr 06 13:32:28 allskycam01 kernel: usb 1-1.4: reset high-speed USB device number 3 using xhci_hcd
Apr 06 13:32:31 allskycam01 kernel: usb 1-1.4: Process 1044 (capture) called USBDEVFS_CLEAR_HALT for active endpoint 0x82
Apr 06 13:32:38 allskycam01 kernel: usb 1-1.4: reset high-speed USB device number 3 using xhci_hcd
22878120 commented 3 years ago

I resolved my problem. It was a combination of 2 issues:

[1] Inadequate power. Worked with power supply 5.1v 3.5A [2] Had to update the 120MC firmware with "ASI120MC-compatible"

it is capturing now...