Spinnaker initalization causes other USB3 cameras to drop out on Linux
AnsweredHi,
I've been having issues with the Spinnaker software causing other USB3 cameras to drop out on Linux. In my specific case, I am trying to use a FLIR Blackfly S USB3 along side an Intel RealSense camera.
If I have the Intel RealSense camera plugged in and look at what /dev/video devices are available, I have:
crw-rw----+ 1 root video 81, 0 Mar 7 14:40 video0
crw-rw-rw-+ 1 root root 81, 1 Mar 7 15:14 video1
crw-rw-rw-+ 1 root root 81, 2 Mar 7 15:14 video2
crw-rw-rw-+ 1 root root 81, 3 Mar 7 15:14 video3
crw-rw-rw-+ 1 root root 81, 4 Mar 7 15:14 video4
crw-rw-rw-+ 1 root root 81, 5 Mar 7 15:14 video5
crw-rw-rw-+ 1 root root 81, 6 Mar 7 15:14 video6
crw-rw-rw-+ 1 root root 81, 7 Mar 7 15:14 video7
crw-rw-rw-+ 1 root root 81, 8 Mar 7 15:14 video8
If I launch SpinView (with or without a FLIR camera connected), the /dev/video devices are reduced to:
crw-rw----+ 1 root video 81, 0 Mar 7 14:40 video0
crw-rw-rw-+ 1 root root 81, 7 Mar 7 15:30 video7
crw-rw-rw-+ 1 root root 81, 8 Mar 7 15:30 video8
This causes problems with our software not being able to use the Intel RealSense camera any longer. I have to unplug and reconnect the Intel RealSense for it to be usable again from software.
We would love to be able to use FLIR cameras and the FLIR Spinnaker SDK along side our Intel Realsense cameras. I'd really appreciate any help. Thanks!
-
I found that it is the default udev rules the Intel RealSense SDK installs which were causing the problem. If I disable those (or change them). It seems to work fine.
0 -
Hello Dexton,
Thank you for your feedback. We recently had a similar request. I believe the customer could fix this with the instructions at this link:
https://forum.pjrc.com/threads/71889-Teensy4-1-USB-reset-by-third-party-program-removes-device-on-Ubuntu-18-041. Remove any SUBSYSTEMS=="usb" rules from the non-FLIR device's udev rules file.
2. Do not run the Spinnaker SDK with sudo privileges.What did you change in the udev rules of the Intel RealSense?
0 -
I appreciate the reply and the info!
I had to disable the udev rule that matched my RealSense camera idVendor and idProduct. For context, the RealSense rules I am using can be found here: https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules
If I comment only the line which matches my camera, Spinnaker software does not cause any problems. I.e.
[...]
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4d", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b52", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5b", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5c", MODE:="0666", GROUP:="plugdev"
# SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b64", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b68", MODE:="0666", GROUP:="plugdev"# Intel RealSense recovery devices (DFU)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ab3", MODE:="0666", GROUP:="plugdev"
[...]This still allows my RealSense to function under a normal (non-root) user. But, perhaps this isn't the ideal setup. This may still be an issue with Spinnaker software, but I have a decent enough solution for now.
Thanks again!
1 -
Hello Dexton,
Thanks a lot for the additional information!
Markus
0
Please sign in to leave a comment.
Comments
4 comments