worlickwerx / sbig-util

Linux utility for Santa Barbara Instrument Group cameras for astronomy
GNU General Public License v3.0
5 stars 2 forks source link

STF-402 camera requires v 4.99 of SBIG universal driver #45

Open garlick opened 3 years ago

garlick commented 3 years ago

From a private discussion on the diffraction limited forums:

STF-402 (upgraded ST-402) camera enumerates like this:

[78471.398297] usb 1-2: New USB device found, idVendor=0d97, idProduct=0102
[78471.398301] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[78471.398305] usb 1-2: Product: USB8-CAM Engine
[78998.522395] usb 1-2: new high-speed USB device number 10 using xhci_hcd

We are unable to access the camera with the current universal driver:

$ sbig info driver
version: 4.84
name: libsbigudrv Ver 4.84-LINUX
maxreq: 1

$ sbig info ccd imaging
parusbio.c --> USBGetPixels : CE_DEVICE_NOT_IMPLEMENTED
sbig-info: sbig_establish_link: Device not Implemented

We did verify that this camera is self-contained and does not need to download firmware like the older ST cameras.

Updating to a more recent universal driver posted on the DL forum resovled the problem

$ sbig -S /usr/lib/libsbigudrv.so.1 find
USB1: STF 'SBIG STF-0402 CCD Camera' 060501002

$ sbig -S /usr/lib/libsbigudrv.so.1 info driver
version: 4.99
name: libsbigudrv Ver 4.99-LINUX
maxreq: 1

sbig -S /usr/lib/libsbigudrv.so.1 info ccd imaging
firmware-version: 2.49
camera-type: STF
name: SBIG STF-0402 CCD Camera
mode-0: 767 x 510 0.31 e-/ADU 9.00 x 9.00 microns
mode-1: 383 x 255 0.31 e-/ADU 18.00 x 18.00 microns
mode-2: 255 x 170 0.31 e-/ADU 27.00 x 27.00 microns
mode-3: 767 x 0 0.31 e-/ADU 9.00 x 9.00 microns
mode-4: 383 x 0 0.31 e-/ADU 18.00 x 9.00 microns
mode-5: 255 x 0 0.31 e-/ADU 27.00 x 9.00 microns
mode-6: 767 x 510 0.31 e-/ADU 9.00 x 9.00 microns
mode-7: 383 x 255 0.31 e-/ADU 18.00 x 18.00 microns
mode-8: 255 x 170 0.31 e-/ADU 27.00 x 27.00 microns
mode-9: 85 x 56 0.31 e-/ADU 81.00 x 81.00 microns
mode-10: 0 x 0 0.31 e-/ADU 9.00 x 9.00 microns
bad-columns: 0
ABG: yes
serial-number: 060501002
ccd-type: full frame
electronic-shutter: no
remote-guide-port: no
biorad-tdi-mode: no
AO8-detected: no
frame-buffer: yes
use-startexp2: yes
mechanical-shutter: no
color-type: mono

At the time this was originally discussed (29 Dec 2019), the INDI-packaged sbigudrv for arm32 was providing v 4.84. Just wanted to make sure we had this issue documented in case it comes up again. We can close it once we have confirmed that INDI has updated their package.

garlick commented 3 years ago

I think the INDI libsbigudrv2 is shipping 4.99 for all architectures except armhf, because of a problem with the build for that architecture described here

Another issue I found is that their armhf version was compiled under buster and requires glibc 2.28 which is not available on most LTS distros now. I again asked them to update it and awaiting their response. Any suggestions welcome.

I will confirm this and open an INDI bug if it is still the case.