aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
248 stars 41 forks source link

Problems with Svbony SV305 camera #990

Closed mattyryu closed 1 year ago

mattyryu commented 1 year ago

Hi there- I am having some trouble trying to get an Svbony SV305 camera running with a new installation.

After the installation completes successfully and everything is running I see the following in /var/log/syslog:

2023-10-17T11:08:34.373945-04:00 allsky kernel: [   57.298062] usb 1-1.3: reset high-speed USB device number 3 using xhci_hcd
2023-10-17T11:08:34.815858-04:00 allsky python3[902]: Dispatch command error(-1): INDI: Could not find property CCD_CAPTURE_FORMAT in SVBONY CCD SV305
2023-10-17T11:08:34.816319-04:00 allsky python3[902]: <setSwitchVector device="SVBONY CCD SV305" name="CCD_CAPTURE_FORMAT" state="Idle" timeout="60" timestamp="2023-10-17T15:08:34">
2023-10-17T11:08:34.816620-04:00 allsky python3[902]:     <oneSwitch name="SVB_IMG_RAW8">
2023-10-17T11:08:34.816863-04:00 allsky python3[902]: Off
2023-10-17T11:08:34.817092-04:00 allsky python3[902]:     </oneSwitch>
2023-10-17T11:08:34.817313-04:00 allsky python3[902]:     <oneSwitch name="SVB_IMG_RAW16">
2023-10-17T11:08:34.817526-04:00 allsky python3[902]: On
2023-10-17T11:08:34.817742-04:00 allsky python3[902]:     </oneSwitch>
2023-10-17T11:08:34.817980-04:00 allsky python3[902]:     <oneSwitch name="SVB_IMG_Y8">
2023-10-17T11:08:34.818191-04:00 allsky python3[902]: Off
2023-10-17T11:08:34.818386-04:00 allsky python3[902]:     </oneSwitch>
2023-10-17T11:08:34.818647-04:00 allsky python3[902]:     <oneSwitch name="SVB_IMG_RGB24">
2023-10-17T11:08:34.818890-04:00 allsky python3[902]: Off
2023-10-17T11:08:34.819093-04:00 allsky python3[902]:     </oneSwitch>
2023-10-17T11:08:34.819288-04:00 allsky python3[902]: </setSwitchVector>
2023-10-17T11:08:49.747461-04:00 allsky python3[902]: Process Capture-1:
2023-10-17T11:08:49.752199-04:00 allsky python3[902]: Traceback (most recent call last):
2023-10-17T11:08:49.754847-04:00 allsky python3[902]:   File "/usr/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
2023-10-17T11:08:49.755441-04:00 allsky python3[902]:     self.run()
2023-10-17T11:08:49.755927-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/capture.py", line 180, in run
2023-10-17T11:08:49.756381-04:00 allsky python3[902]:     raise e
2023-10-17T11:08:49.756937-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/capture.py", line 176, in run
2023-10-17T11:08:49.757416-04:00 allsky python3[902]:     self.saferun()
2023-10-17T11:08:49.757849-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/capture.py", line 188, in saferun
2023-10-17T11:08:49.758380-04:00 allsky python3[902]:     self._initialize()
2023-10-17T11:08:49.758824-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/capture.py", line 589, in _initialize
2023-10-17T11:08:49.759269-04:00 allsky python3[902]:     ccd_info = self.indiclient.getCcdInfo()
2023-10-17T11:08:49.759712-04:00 allsky python3[902]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-17T11:08:49.760192-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/camera/indi.py", line 556, in getCcdInfo
2023-10-17T11:08:49.760657-04:00 allsky python3[902]:     gain_info = self.getCcdGain()
2023-10-17T11:08:49.761074-04:00 allsky python3[902]:                 ^^^^^^^^^^^^^^^^^
2023-10-17T11:08:49.761487-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/camera/indi.py", line 1006, in getCcdGain
2023-10-17T11:08:49.761890-04:00 allsky python3[902]:     gain_ctl = self.get_control(self._ccd_device, 'CCD_GAIN', 'number')
2023-10-17T11:08:49.762460-04:00 allsky python3[902]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-17T11:08:49.762909-04:00 allsky python3[902]:   File "/home/matt/indi-allsky/indi_allsky/camera/indi.py", line 1223, in get_control
2023-10-17T11:08:49.763362-04:00 allsky python3[902]:     raise TimeOutException('Timeout finding control {0}'.format(name))
2023-10-17T11:08:49.763859-04:00 allsky python3[902]: indi_allsky.exceptions.TimeOutException: Timeout finding control CCD_GAIN

Output from indi_getprop:

SVBONY CCD SV305.CONNECTION.CONNECT=On
SVBONY CCD SV305.CONNECTION.DISCONNECT=Off
SVBONY CCD SV305.DRIVER_INFO.DRIVER_NAME=SVBONY CCD
SVBONY CCD SV305.DRIVER_INFO.DRIVER_EXEC=indi_svbony_ccd
SVBONY CCD SV305.DRIVER_INFO.DRIVER_VERSION=1.4
SVBONY CCD SV305.DRIVER_INFO.DRIVER_INTERFACE=2
SVBONY CCD SV305.POLLING_PERIOD.PERIOD_MS=1000
SVBONY CCD SV305.DEBUG.ENABLE=Off
SVBONY CCD SV305.DEBUG.DISABLE=On
SVBONY CCD SV305.SIMULATION.ENABLE=Off
SVBONY CCD SV305.SIMULATION.DISABLE=On
SVBONY CCD SV305.CONFIG_PROCESS.CONFIG_LOAD=Off
SVBONY CCD SV305.CONFIG_PROCESS.CONFIG_SAVE=Off
SVBONY CCD SV305.CONFIG_PROCESS.CONFIG_DEFAULT=Off
SVBONY CCD SV305.CONFIG_PROCESS.CONFIG_PURGE=Off
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM
SVBONY CCD SV305.CCD_EXPOSURE.CCD_EXPOSURE_VALUE=1
SVBONY CCD SV305.CCD_ABORT_EXPOSURE.ABORT=Off
SVBONY CCD SV305.CCD_FRAME.X=0
SVBONY CCD SV305.CCD_FRAME.Y=0
SVBONY CCD SV305.CCD_FRAME.WIDTH=1920
SVBONY CCD SV305.CCD_FRAME.HEIGHT=1080
SVBONY CCD SV305.CCD_BINNING.HOR_BIN=1
SVBONY CCD SV305.CCD_BINNING.VER_BIN=1
SVBONY CCD SV305.CCD_CAPTURE_FORMAT.SVB_IMG_RAW8=Off
SVBONY CCD SV305.CCD_CAPTURE_FORMAT.SVB_IMG_RAW16=On
SVBONY CCD SV305.CCD_CAPTURE_FORMAT.SVB_IMG_Y8=Off
SVBONY CCD SV305.CCD_CAPTURE_FORMAT.SVB_IMG_RGB24=Off
SVBONY CCD SV305.CCD_TRANSFER_FORMAT.FORMAT_FITS=On
SVBONY CCD SV305.CCD_TRANSFER_FORMAT.FORMAT_NATIVE=Off
SVBONY CCD SV305.CCD_TRANSFER_FORMAT.=Off
SVBONY CCD SV305.CCD_INFO.CCD_MAX_X=1920
SVBONY CCD SV305.CCD_INFO.CCD_MAX_Y=1080
SVBONY CCD SV305.CCD_INFO.CCD_PIXEL_SIZE=2.9000000953674316406
SVBONY CCD SV305.CCD_INFO.CCD_PIXEL_SIZE_X=2.9000000953674316406
SVBONY CCD SV305.CCD_INFO.CCD_PIXEL_SIZE_Y=2.9000000953674316406
SVBONY CCD SV305.CCD_INFO.CCD_BITSPERPIXEL=16
SVBONY CCD SV305.CCD_COMPRESSION.INDI_ENABLED=Off
SVBONY CCD SV305.CCD_COMPRESSION.INDI_DISABLED=On
SVBONY CCD SV305.CCD_FRAME_TYPE.FRAME_LIGHT=On
SVBONY CCD SV305.CCD_FRAME_TYPE.FRAME_BIAS=Off
SVBONY CCD SV305.CCD_FRAME_TYPE.FRAME_DARK=Off
SVBONY CCD SV305.CCD_FRAME_TYPE.FRAME_FLAT=Off
SVBONY CCD SV305.CCD_CFA.CFA_OFFSET_X=0
SVBONY CCD SV305.CCD_CFA.CFA_OFFSET_Y=0
SVBONY CCD SV305.CCD_CFA.CFA_TYPE=
SVBONY CCD SV305.SCOPE_INFO.FOCAL_LENGTH=0
SVBONY CCD SV305.SCOPE_INFO.APERTURE=0
SVBONY CCD SV305.WCS_CONTROL.WCS_ENABLE=Off
SVBONY CCD SV305.WCS_CONTROL.WCS_DISABLE=On
SVBONY CCD SV305.UPLOAD_MODE.UPLOAD_CLIENT=On
SVBONY CCD SV305.UPLOAD_MODE.UPLOAD_LOCAL=Off
SVBONY CCD SV305.UPLOAD_MODE.UPLOAD_BOTH=Off
SVBONY CCD SV305.UPLOAD_SETTINGS.UPLOAD_DIR=/home/matt
SVBONY CCD SV305.UPLOAD_SETTINGS.UPLOAD_PREFIX=IMAGE_XXX
SVBONY CCD SV305.CCD_FAST_TOGGLE.INDI_ENABLED=Off
SVBONY CCD SV305.CCD_FAST_TOGGLE.INDI_DISABLED=On
SVBONY CCD SV305.CCD_FAST_COUNT.FRAMES=1
SVBONY CCD SV305.CCD_VIDEO_STREAM.STREAM_ON=Off
SVBONY CCD SV305.CCD_VIDEO_STREAM.STREAM_OFF=On
SVBONY CCD SV305.STREAM_DELAY.STREAM_DELAY_TIME=0
SVBONY CCD SV305.STREAMING_EXPOSURE.STREAMING_EXPOSURE_VALUE=0.10000000000000000555
SVBONY CCD SV305.STREAMING_EXPOSURE.STREAMING_DIVISOR_VALUE=1
SVBONY CCD SV305.FPS.EST_FPS=30
SVBONY CCD SV305.FPS.AVG_FPS=30
SVBONY CCD SV305.RECORD_STREAM.RECORD_ON=Off
SVBONY CCD SV305.RECORD_STREAM.RECORD_DURATION_ON=Off
SVBONY CCD SV305.RECORD_STREAM.RECORD_FRAME_ON=Off
SVBONY CCD SV305.RECORD_STREAM.RECORD_OFF=On
SVBONY CCD SV305.RECORD_FILE.RECORD_FILE_DIR=/home/matt/indi__D_
SVBONY CCD SV305.RECORD_FILE.RECORD_FILE_NAME=indi_record__T_
SVBONY CCD SV305.RECORD_OPTIONS.RECORD_DURATION=1
SVBONY CCD SV305.RECORD_OPTIONS.RECORD_FRAME_TOTAL=30
SVBONY CCD SV305.CCD_STREAM_FRAME.X=0
SVBONY CCD SV305.CCD_STREAM_FRAME.Y=0
SVBONY CCD SV305.CCD_STREAM_FRAME.WIDTH=1920
SVBONY CCD SV305.CCD_STREAM_FRAME.HEIGHT=1080
SVBONY CCD SV305.CCD_STREAM_ENCODER.RAW=On
SVBONY CCD SV305.CCD_STREAM_ENCODER.MJPEG=Off
Telescope Simulator.CONNECTION.CONNECT=On
Telescope Simulator.CONNECTION.DISCONNECT=Off
Telescope Simulator.DRIVER_INFO.DRIVER_NAME=Telescope Simulator
Telescope Simulator.DRIVER_INFO.DRIVER_EXEC=indi_simulator_telescope
Telescope Simulator.DRIVER_INFO.DRIVER_VERSION=1.0
Telescope Simulator.DRIVER_INFO.DRIVER_INTERFACE=5
Telescope Simulator.POLLING_PERIOD.PERIOD_MS=250
Telescope Simulator.DEBUG.ENABLE=Off
Telescope Simulator.DEBUG.DISABLE=On
Telescope Simulator.CONFIG_PROCESS.CONFIG_LOAD=Off
Telescope Simulator.CONFIG_PROCESS.CONFIG_SAVE=Off
Telescope Simulator.CONFIG_PROCESS.CONFIG_DEFAULT=Off
Telescope Simulator.CONFIG_PROCESS.CONFIG_PURGE=Off
Telescope Simulator.CONNECTION_MODE.CONNECTION_SERIAL=On
Telescope Simulator.CONNECTION_MODE.CONNECTION_TCP=Off
Telescope Simulator.DEVICE_PORT.PORT=/dev/ttyUSB0
Telescope Simulator.DEVICE_BAUD_RATE.9600=On
Telescope Simulator.DEVICE_BAUD_RATE.19200=Off
Telescope Simulator.DEVICE_BAUD_RATE.38400=Off
Telescope Simulator.DEVICE_BAUD_RATE.57600=Off
Telescope Simulator.DEVICE_BAUD_RATE.115200=Off
Telescope Simulator.DEVICE_BAUD_RATE.230400=Off
Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_ENABLED=On
Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_DISABLED=Off
Telescope Simulator.DEVICE_PORT_SCAN.Scan Ports=Off
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator
Telescope Simulator.DOME_POLICY.DOME_IGNORED=On
Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off
Telescope Simulator.TELESCOPE_INFO.TELESCOPE_APERTURE=10
Telescope Simulator.TELESCOPE_INFO.TELESCOPE_FOCAL_LENGTH=10
Telescope Simulator.TELESCOPE_INFO.GUIDER_APERTURE=120
Telescope Simulator.TELESCOPE_INFO.GUIDER_FOCAL_LENGTH=900
Telescope Simulator.SCOPE_CONFIG_NAME.SCOPE_CONFIG_NAME=indi-allsky
Telescope Simulator.MOUNT_AXES.PRIMARY=1.6810361103125615045e-07
Telescope Simulator.MOUNT_AXES.SECONDARY=33
Telescope Simulator.ON_COORD_SET.TRACK=On
Telescope Simulator.ON_COORD_SET.SLEW=Off
Telescope Simulator.ON_COORD_SET.SYNC=Off
Telescope Simulator.EQUATORIAL_EOD_COORD.RA=12.723807759587570487
Telescope Simulator.EQUATORIAL_EOD_COORD.DEC=33
Telescope Simulator.TELESCOPE_ABORT_MOTION.ABORT=Off
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_SIDEREAL=On
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_SOLAR=Off
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_LUNAR=Off
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_CUSTOM=Off
Telescope Simulator.TELESCOPE_TRACK_STATE.TRACK_ON=Off
Telescope Simulator.TELESCOPE_TRACK_STATE.TRACK_OFF=On
Telescope Simulator.TELESCOPE_TRACK_RATE.TRACK_RATE_RA=15.04106717867020393
Telescope Simulator.TELESCOPE_TRACK_RATE.TRACK_RATE_DE=0
Telescope Simulator.TELESCOPE_MOTION_NS.MOTION_NORTH=Off
Telescope Simulator.TELESCOPE_MOTION_NS.MOTION_SOUTH=Off
Telescope Simulator.TELESCOPE_MOTION_WE.MOTION_WEST=Off
Telescope Simulator.TELESCOPE_MOTION_WE.MOTION_EAST=Off
Telescope Simulator.TELESCOPE_REVERSE_MOTION.REVERSE_NS=Off
Telescope Simulator.TELESCOPE_REVERSE_MOTION.REVERSE_WE=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.1x=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.2x=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.3x=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.4x=On
Telescope Simulator.TARGET_EOD_COORD.RA=0
Telescope Simulator.TARGET_EOD_COORD.DEC=0
Telescope Simulator.TIME_UTC.UTC=2023-10-17T15:08:32
Telescope Simulator.TIME_UTC.OFFSET=-4.00
Telescope Simulator.GEOGRAPHIC_COORD.LAT=33
Telescope Simulator.GEOGRAPHIC_COORD.LONG=-84
Telescope Simulator.GEOGRAPHIC_COORD.ELEV=0
Telescope Simulator.TELESCOPE_PARK.PARK=On
Telescope Simulator.TELESCOPE_PARK.UNPARK=Off
Telescope Simulator.TELESCOPE_PARK_POSITION.PARK_HA=0
Telescope Simulator.TELESCOPE_PARK_POSITION.PARK_DEC=33
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_CURRENT=Off
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_DEFAULT=Off
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_WRITE_DATA=Off
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_PURGE_DATA=Off
Telescope Simulator.TELESCOPE_PIER_SIDE.PIER_WEST=Off
Telescope Simulator.TELESCOPE_PIER_SIDE.PIER_EAST=On
Telescope Simulator.APPLY_SCOPE_CONFIG.SCOPE_CONFIG1=On
Telescope Simulator.APPLY_SCOPE_CONFIG.SCOPE_CONFIG2=Off
Telescope Simulator.APPLY_SCOPE_CONFIG.SCOPE_CONFIG3=Off
Telescope Simulator.APPLY_SCOPE_CONFIG.SCOPE_CONFIG4=Off
Telescope Simulator.APPLY_SCOPE_CONFIG.SCOPE_CONFIG5=Off
Telescope Simulator.APPLY_SCOPE_CONFIG.SCOPE_CONFIG6=Off
Telescope Simulator.USEJOYSTICK.ENABLE=Off
Telescope Simulator.USEJOYSTICK.DISABLE=On
Telescope Simulator.SNOOP_JOYSTICK.SNOOP_JOYSTICK_DEVICE=Joystick
Telescope Simulator.TELESCOPE_TIMED_GUIDE_NS.TIMED_GUIDE_N=0
Telescope Simulator.TELESCOPE_TIMED_GUIDE_NS.TIMED_GUIDE_S=0
Telescope Simulator.TELESCOPE_TIMED_GUIDE_WE.TIMED_GUIDE_W=0
Telescope Simulator.TELESCOPE_TIMED_GUIDE_WE.TIMED_GUIDE_E=0
Telescope Simulator.GUIDE_RATE.GUIDE_RATE_WE=0.5
Telescope Simulator.GUIDE_RATE.GUIDE_RATE_NS=0.5
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator
SVBONY CCD SV305.CCD_STREAM_RECORDER.SER=On
SVBONY CCD SV305.LIMITS.LIMITS_BUFFER_MAX=512
SVBONY CCD SV305.LIMITS.LIMITS_PREVIEW_FPS=10
SVBONY CCD SV305.CCD_CONTROLS.Gain=0
SVBONY CCD SV305.CCD_CONTROLS.Contrast=50
SVBONY CCD SV305.CCD_CONTROLS.Sharpness=0
SVBONY CCD SV305.CCD_CONTROLS.Saturation=128
SVBONY CCD SV305.CCD_CONTROLS.WB_R=231
SVBONY CCD SV305.CCD_CONTROLS.WB_G=128
SVBONY CCD SV305.CCD_CONTROLS.WB_B=253
SVBONY CCD SV305.CCD_CONTROLS.Gamma=100
SVBONY CCD SV305.CCD_CONTROLS.Frame speed=2
SVBONY CCD SV305.CCD_CONTROLS.Offset=0
SVBONY CCD SV305.CCD_CONTROLS.Auto exposure target=100
SVBONY CCD SV305.CCD_CONTROLS.Bad pixel correction=1
SVBONY CCD SV305.CCD_CONTROLS_MODE.AUTO_WB_R=Off
SVBONY CCD SV305.CCD_CONTROLS_MODE.AUTO_WB_G=Off
SVBONY CCD SV305.CCD_CONTROLS_MODE.AUTO_WB_B=Off
SVBONY CCD SV305.FLIP.FLIP_HORIZONTAL=Off
SVBONY CCD SV305.FLIP.FLIP_VERTICAL=Off
SVBONY CCD SV305.CCD_VIDEO_FORMAT.SVB_IMG_RAW8=Off
SVBONY CCD SV305.CCD_VIDEO_FORMAT.SVB_IMG_RAW16=On
SVBONY CCD SV305.CCD_VIDEO_FORMAT.SVB_IMG_Y8=Off
SVBONY CCD SV305.CCD_VIDEO_FORMAT.SVB_IMG_RGB24=Off
SVBONY CCD SV305.ADC_DEPTH.BITS=16
SVBONY CCD SV305.SDK.VERSION=v1.11.4
SVBONY CCD SV305.Serial Number.SN#=3031323330313444
SVBONY CCD SV305.NICKNAME.nickname=
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator
SVBONY CCD SV305.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM
SVBONY CCD SV305.CCD_VIDEO_STREAM.STREAM_ON=Off
SVBONY CCD SV305.CCD_VIDEO_STREAM.STREAM_OFF=On
SVBONY CCD SV305.STREAMING_EXPOSURE.STREAMING_EXPOSURE_VALUE=0.10000000000000000555
SVBONY CCD SV305.STREAMING_EXPOSURE.STREAMING_DIVISOR_VALUE=1
SVBONY CCD SV305.FPS.EST_FPS=30
SVBONY CCD SV305.FPS.AVG_FPS=30
SVBONY CCD SV305.RECORD_STREAM.RECORD_ON=Off
SVBONY CCD SV305.RECORD_STREAM.RECORD_DURATION_ON=Off
SVBONY CCD SV305.RECORD_STREAM.RECORD_FRAME_ON=Off
SVBONY CCD SV305.RECORD_STREAM.RECORD_OFF=On
SVBONY CCD SV305.RECORD_FILE.RECORD_FILE_DIR=/home/matt/indi__D_
SVBONY CCD SV305.RECORD_FILE.RECORD_FILE_NAME=indi_record__T_
SVBONY CCD SV305.RECORD_OPTIONS.RECORD_DURATION=1
SVBONY CCD SV305.RECORD_OPTIONS.RECORD_FRAME_TOTAL=30
SVBONY CCD SV305.CCD_STREAM_FRAME.X=0
SVBONY CCD SV305.CCD_STREAM_FRAME.Y=0
SVBONY CCD SV305.CCD_STREAM_FRAME.WIDTH=1920
SVBONY CCD SV305.CCD_STREAM_FRAME.HEIGHT=1080
SVBONY CCD SV305.CCD_STREAM_ENCODER.RAW=On
SVBONY CCD SV305.CCD_STREAM_ENCODER.MJPEG=Off
SVBONY CCD SV305.CCD_STREAM_RECORDER.SER=On
SVBONY CCD SV305.LIMITS.LIMITS_BUFFER_MAX=512
SVBONY CCD SV305.LIMITS.LIMITS_PREVIEW_FPS=10
Telescope Simulator.DOME_POLICY.DOME_IGNORED=On
Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off
Telescope Simulator.TELESCOPE_INFO.TELESCOPE_APERTURE=10
Telescope Simulator.TELESCOPE_INFO.TELESCOPE_FOCAL_LENGTH=10
Telescope Simulator.TELESCOPE_INFO.GUIDER_APERTURE=120
Telescope Simulator.TELESCOPE_INFO.GUIDER_FOCAL_LENGTH=900
Telescope Simulator.SCOPE_CONFIG_NAME.SCOPE_CONFIG_NAME=indi-allsky
Telescope Simulator.USEJOYSTICK.ENABLE=Off
Telescope Simulator.USEJOYSTICK.DISABLE=On
Telescope Simulator.SNOOP_JOYSTICK.SNOOP_JOYSTICK_DEVICE=Joystick
Telescope Simulator.MOUNT_AXES.PRIMARY=1.6810361103125615045e-07
Telescope Simulator.MOUNT_AXES.SECONDARY=33

Cool project! I'd appreciate any help on this. -Matt

aaronwmorris commented 1 year ago

It looks like the INDI developers changed the gain property in the 2.0.4 release if INDI for SVBony cameras.

Some background on this, the gain setting for INDI cameras is one of two possible settings (assuming they support gain). The latest release of INDI appears to have switched it to the other setting for SVBony cameras. This is the first time this has happened.

Let me work on this tonight.

mattyryu commented 1 year ago

Awesome, thanks! Let me know if I can provide any other data that you may need.

aaronwmorris commented 1 year ago

Merged #995 with fixes. I would normally test this with my sv305, but it is currently boxed up due to my current move. Let me know how it works.

mattyryu commented 1 year ago

Thanks for the quick turnaround! It seems much better as the camera loads and I can view all the details about it in the GUI. I do see that it seems stuck in this loop of exposure state: busy and I have yet to capture an image:

2023-10-18T09:59:48.632989-04:00 allsky [INFO] Capture-1-918/MainThread capture.saferun() #209: Camera last ready: 67.6s
2023-10-18T09:59:48.633490-04:00 allsky [INFO] Capture-1-918/MainThread capture.saferun() #210: Exposure state: BUSY
2023-10-18T09:59:48.633634-04:00 allsky [INFO] Capture-1-918/MainThread capture.detectNight() #1272: Sun altitude: 25:53:59.7
2023-10-18T09:59:48.633789-04:00 allsky [INFO] Capture-1-918/MainThread capture.detectMoonMode() #1290: Moon altitude: -18:28:57.6, phase 15.0%
2023-10-18T09:59:48.833919-04:00 allsky [WARNING] Capture-1-918/MainThread indi.getCcdTemperature() #852: Sensor temperature not supported
2023-10-18T09:59:48.934408-04:00 allsky [INFO] Capture-1-918/MainThread indi.getTelescopeRaDec() #842: Telescope Coord: RA 10.18, Dec 33.00

I rebooted and started an strace on the indi_svbony_ccd process and saw what appeared to be configuration happening until this:

futex(0x55afddcd40, FUTEX_WAKE_PRIVATE, 1) = 0
sendmsg(1, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="<?xml version='1.0'?>\n<setNumber"..., iov_len=260}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 260
pselect6(1, [0], NULL, NULL, NULL, NULL) = 1 (in [0])
read(0, "<setNumberVector device=\"Telesco"..., 2048) = 264
pselect6(1, [0], NULL, NULL, NULL, NULL <unfinished ...>) = ?
+++ killed by SIGSEGV +++

I started the strace again on indi_svbony_ccd and it seems to do this every second forever after:

pselect6(1, [0], NULL, NULL, NULL, NULL) = 1 (in [0])
read(0, "<setNumberVector device=\"Telesco"..., 2048) = 264
pselect6(1, [0], NULL, NULL, NULL, NULL) = 1 (in [0])
read(0, "<setNumberVector device=\"Telesco"..., 2048) = 262
pselect6(1, [0], NULL, NULL, NULL, NULL) = 1 (in [0])
read(0, "<setNumberVector device=\"Telesco"..., 2048) = 264
pselect6(1, [0], NULL, NULL, NULL, NULL) = 1 (in [0])
read(0, "<setNumberVector device=\"Telesco"..., 2048) = 264

This is my first time using this so it could entirely be user error and I need to tune the config. I did try rebooting and unplugging the camera for a while to make sure it wasn't locked up. Same result.

aaronwmorris commented 1 year ago

I am really not sure the INDI 2.0.4 SVBony driver is actually stable in its current form. Apparently, the driver was completely rewritten last month.

https://github.com/indilib/indi-3rdparty/pull/839

You might want to try INDI 2.0.2 or 2.0.1.

mattyryu commented 1 year ago

Oh yeah look at that. I'll work on dropping back the INDI driver. Thanks again for the help!

SNinfinite commented 1 year ago

I have INDI 2.0.4 installed. Could you give me some instructions how to downgrade to an earlier version. I'm very new to linux and willing to learn! Thanks

mattyryu commented 1 year ago

@aaronwmorris I can confirm that running with INDI v2.0.2, the SV305 is working as expected with indi-allsky v7.4 (to go back to the old way of collecting the gain settings before your most recent fix for the v2.0.4 INDI). I can retest your changes when INDI v2.0.5 is release and also report any driver issues in the INDI project.

@SNinfinite I opted to grab a new SD card and install Bullseye/64-bit to be compatible with the v7.4 release of indi-allsky. The setup.sh script will detect if the INDI drivers are installed already, so I went to the indi-core and indi-3rdparty repos and grabbed v2.0.2 and followed the build instructions. After that I grabbed v7.4 of indi-allsky and ran thru the setup. It is possible that you could grab v2.0.2 and follow the instructions to build those on your current system, but I'm not sure it'll work and didn't want to deal with resolving any issues if they came up.

aaronwmorris commented 1 year ago

Let me know about your testing. The changes I made in the newer indi-allsky releases were intended to be backwards compatible, as well.

mattyryu commented 1 year ago

I didn't realize the changes were backwards compatible. I just installed the latest bookworm/64-bit with the latest indi-allsky and the INDI v2.0.2 and everything came up okay.

@SNinfinite so it turns out @aaronwmorris made it really easy for us and you can run: ./misc/build_indi.sh v2.0.2 from the indi-allsky directory to install the v2.0.2 INDI components (even over v2.0.4) without any other work. Amazing!