I'm working with the AC4040 using dlapi-sdk-4.2.7-0-x64-Ubuntu-24.04 on Ubuntu 24.04 LTS and I've had the exact same problems as Gwanghui. Any information on how this was solved or any help would be greatly appreciated.
It connects on Windows 11, but on Linux when you run the main code in sample directory it fails to connect and gives the error: "Failed to retrieve any USB cameras", despite it showing up as a USB device labeled "Santa barbara instrunment group" when you run "ls_usb" in the terminal.
So there are a few easy reasons this could happen: 1. libftd3xx.so isn't installed on your system (check /usr/local/lib) 2. the camera isn't accessible from your user account (try your application with sudo; if it works, it's a permissions issue) If neither of those things yields fruit, we'll have to check other things like USB buffer sizes, USBPCap logs, and the like.
Hi Adam, I ensured that libftd3xx.so was installed and I tried running it as sudo, but still no luck getting it connected. How can I check those other things? Thank you, Padraig
These are more involved. Would it be possible for me to log in via a remote support tool and do some troubleshooting/collect a baseline?
Just chiming in here, the usual way to check USB buffer capacity goes something like this: To increase the amount of USB buffer space to a more appropriate value (in this case, 1GB), do the following: Solution for systems using GRUB based bootloader (such as Ubuntu running on a PC): 1. Edit the file ‘/etc/default/grub’ and look for the line ‘GRUB_CMDLINE_LINUX_DEFAULT=”{some_text}” 2. Append ”usbcore.usbfs_memory_mb=1000” to the end of some_text. For example: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” becomes GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash usbcore.usbfs_memory_mb=1000” 3. Effect this change with the following command: sudo update-grub 4. Manually set the memory limit (to 1GB) by entering the command: ‘sudo modprobe usbcore usbfs_memory_mb=1000’ 5. Reboot your system for this change to take effect.
Is 1GB the minimum required USB buffer to get the camera to connect? Also Adam, yes it would be possible for you to log in, but I won't be able to get back to the lab until Thursday. What time EST would you be able to help and which software is required for remote support?
The usual system default value of usbfs_memory_mb will be 16MB, which is less than half the amount required. You need at the very least 34MB for a single image from the camera, or it will fail. 1GB is an "overkill" starting point - it depends on what all is attached to your system, and it is a maximum size. Then you need buffers for any other USB devices that can be running concurrently. So reasonably you might want to have 70 MB to 200MB or more.
Changing the size of the USB buffer did not help the connection issue as I've never been able to get past the "Failed to retrieve any USB cameras" message
Despite showing up with lsusb, the logs show that it doesn't find any usb devices: padraig@computer:~/Downloads/dlapi-2.4.5.0-x86_64.linux/redist/sample$ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse Bus 001 Device 003: ID 04f2:b7ba Chicony Electronics Co., Ltd Integrated Camera Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 003: ID 0bda:c123 Realtek Semiconductor Corp. Bluetooth Radio Bus 003 Device 005: ID 0d97:0201 Santa Barbara Instrument Group SBIG USB 3.0 Camera Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Padraig, Quick questions (Adam is tied up at the moment): 1. Can you tell me who you work for/is this a University/College? 2. What's the camera serial number? It's on the label on the side. 3. Are you sure you have the correct SDK version? e.g. Why does your path have an old version of the SDK ? padraig@computer:~/Downloads/dlapi-2.4.5.0-x86_64.linux/redist/sample$ instead of something like: dlapi-sdk-4.2.7-0-x64-Ubuntu-24.04 Are you trying to use an obsolete SDK? A much more recent version is here: https://cdn.diffractionlimited.com/dlapi/ 4. Does the camera connect in Windows with DL Config x64 or MaxIm DL 7.3.0? 5. Is the firmware in the camera updated? Am just thinking about other likely reasons for trouble, as this is usually quick to sort out.
Hi Colin, this is great, thank you! 1. This is for a University. Observatory at the Georgia Institute of Technology. They've had it for a few years but never attempted to hook it up before now. 2. AC4040M-22071502 3. I've also tried it on 4.2.7.0 to no avail, but I read on the forum that people had had success with 2.4.5.0, so I've been most recently trying it with that. 4. It connects on Windows with DL Config x86, but MaxIm DL 7.3.0 has not been tested yet. 5. I have recently updated the firm to the most recent version.
I tried everything again on the latest SDK version that you provided but the same issues still persist and it is unable to detect that any USB cameras. Any guidance getting the camera connected would be greatly appreciated.
Hi Padraig, I'm going to test the latest Linux SDK (4.3.2.1) on a freshly installed Ubuntu 24.04 LTS machine with one of our USB 3.0 cameras and see if I can give you any insight.
Hi Padraig, am still working through this. I've managed to get a clean machine to the same point where a USB 3.0 camera is showing in lsusb, but not seen by the sample programs. Will let you know of further progress when I have more to report.