Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ubuntu18]SR300 is not detected by librealsense #5233

Closed
manhha1402 opened this issue Nov 12, 2019 · 11 comments
Closed

[Ubuntu18]SR300 is not detected by librealsense #5233

manhha1402 opened this issue Nov 12, 2019 · 11 comments

Comments

@manhha1402
Copy link

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model SR300
Firmware Version 05.11.06.250
Operating System & Version Ubuntu 18.04
Kernel Version (Linux Only) 4.15.0-66-generic
Platform PC
SDK Version v2.30.0

Issue Description

I have both SR300 and D435 camera and the librealsense can only detects D435 camera. I checked both build from source code and deb packages.
Both SR300 and D435 are connected via USB 3.0 port but only D435 is detected
modinfo uvcvideo | grep "version:" outputs:
version: 1.1.1 srcversion: 4D154F77796C7B15BCB6EFF
Output from dmesg after plugging the camera
Screenshot
Do you have any idea what is problem?
Thanks

@manhha1402 manhha1402 changed the title [Ubuntu18][SR300] is not detected by librealsense [Ubuntu18]SR300 is not detected by librealsense Nov 12, 2019
@ev-mp
Copy link
Collaborator

ev-mp commented Nov 12, 2019

@ipa-mah hello, the kernel log doesn't suggests that anything went wrong; on the contrary, the camera was correctly identified as USB3 device and both the enumeration and loading of the UVC driver completed successfully.

Is it a first time usage ? Do you manage to communicate with this camera on another PC/OS ?
Can you share the output of rs-enumerate-devices ?

@manhha1402
Copy link
Author

manhha1402 commented Nov 12, 2019

@ev-mp
SR300:
rs-enumerate-devices outputs:
No device detected. Is it plugged in?

For 435, it outputs list of modes and device info as usual.
SR300 is working well on another PC running Ubuntu 16.04 and librealsense ver 2.18.0
I want to upgrade the system to ubuntu 18.04 with new PC, but it does not work anymore

@ev-mp
Copy link
Collaborator

ev-mp commented Nov 13, 2019

@ipa-mah , we managed to reproduce it and can confirm that this is a SR300 bug introduced in the latest v2.30 version. it will be rectified in the next release.
In the meanwhile please use SDK v2.29 or older.
Sorry for the inconvenience

@manhha1402
Copy link
Author

manhha1402 commented Nov 13, 2019

@ev-mp
Thank you for your info.
I built the SDK v2.27, v2.28 and had the same issue with SR300. The SDK v2.29 cannot detect SR300
rs-enumerate-devices outputs:

Device info: 
    Name                          : 	Intel RealSense SR300
    Serial Number                 : 	617202004319
    Firmware Version              : 	3.26.1.0
    Recommended Firmware Version  : 	03.26.01.00
    Physical Port                 : 	/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.2/video4linux/video3
    Debug Op Code                 : 	53
    Product Id                    : 	0AA5
    Camera Locked                 : 	YES
    Product Line                  : 	SR300
    Asic Serial Number            : 	617202004319

Stream Profiles supported by Coded-Light Depth Sensor
 Supported modes:
    stream       resolution      fps       format   
    Infrared 1	  640x480	@ 60Hz	   Y16
    Infrared 1	  640x480	@ 60Hz	   Y8
    Infrared 1	  640x480	@ 30Hz	   Y16
    Infrared 1	  640x480	@ 30Hz	   Y8
    Infrared 1	  640x480	@ 10Hz	   Y16
    Infrared 1	  640x480	@ 10Hz	   Y8
    Infrared 1	  640x240	@ 110Hz	   Y16
    Infrared 1	  640x240	@ 110Hz	   Y8
    Infrared 1	  640x240	@ 60Hz	   Y16
    Infrared 1	  640x240	@ 60Hz	   Y8
    Infrared 1	  640x240	@ 30Hz	   Y16
    Infrared 1	  640x240	@ 30Hz	   Y8
    Infrared 1	  640x240	@ 10Hz	   Y16
    Infrared 1	  640x240	@ 10Hz	   Y8
    Depth	  640x480	@ 60Hz	   Z16
    Depth	  640x480	@ 30Hz	   Z16
    Depth	  640x480	@ 10Hz	   Z16
    Depth	  640x240	@ 110Hz	   Z16
    Depth	  640x240	@ 60Hz	   Z16
    Depth	  640x240	@ 30Hz	   Z16
    Depth	  640x240	@ 10Hz	   Z16

Stream Profiles supported by RGB Camera
 Supported modes:
    stream       resolution      fps       format   
    Color	  1920x1080	@ 30Hz	   RGB8
    Color	  1920x1080	@ 30Hz	   Y16
    Color	  1920x1080	@ 30Hz	   BGRA8
    Color	  1920x1080	@ 30Hz	   RGBA8
    Color	  1920x1080	@ 30Hz	   BGR8
    Color	  1920x1080	@ 30Hz	   YUYV
    Color	  1920x1080	@ 10Hz	   RGB8
    Color	  1920x1080	@ 10Hz	   Y16
    Color	  1920x1080	@ 10Hz	   BGRA8
    Color	  1920x1080	@ 10Hz	   RGBA8
    Color	  1920x1080	@ 10Hz	   BGR8
    Color	  1920x1080	@ 10Hz	   YUYV
    Color	  1280x720	@ 60Hz	   RGB8
    Color	  1280x720	@ 60Hz	   Y16
    Color	  1280x720	@ 60Hz	   BGRA8
    Color	  1280x720	@ 60Hz	   RGBA8
    Color	  1280x720	@ 60Hz	   BGR8
    Color	  1280x720	@ 60Hz	   YUYV
    Color	  1280x720	@ 30Hz	   RGB8
    Color	  1280x720	@ 30Hz	   Y16
    Color	  1280x720	@ 30Hz	   BGRA8
    Color	  1280x720	@ 30Hz	   RGBA8
    Color	  1280x720	@ 30Hz	   BGR8
    Color	  1280x720	@ 30Hz	   YUYV
    Color	  1280x720	@ 10Hz	   RGB8
    Color	  1280x720	@ 10Hz	   Y16
    Color	  1280x720	@ 10Hz	   BGRA8
    Color	  1280x720	@ 10Hz	   RGBA8
    Color	  1280x720	@ 10Hz	   BGR8
    Color	  1280x720	@ 10Hz	   YUYV
    Color	  960x540	@ 60Hz	   RGB8
    Color	  960x540	@ 60Hz	   Y16
    Color	  960x540	@ 60Hz	   BGRA8
    Color	  960x540	@ 60Hz	   RGBA8
    Color	  960x540	@ 60Hz	   BGR8
    Color	  960x540	@ 60Hz	   YUYV
    Color	  960x540	@ 30Hz	   RGB8
    Color	  960x540	@ 30Hz	   Y16
    Color	  960x540	@ 30Hz	   BGRA8
    Color	  960x540	@ 30Hz	   RGBA8
    Color	  960x540	@ 30Hz	   BGR8
    Color	  960x540	@ 30Hz	   YUYV
    Color	  960x540	@ 10Hz	   RGB8
    Color	  960x540	@ 10Hz	   Y16
    Color	  960x540	@ 10Hz	   BGRA8
    Color	  960x540	@ 10Hz	   RGBA8
    Color	  960x540	@ 10Hz	   BGR8
    Color	  960x540	@ 10Hz	   YUYV
    Color	  848x480	@ 60Hz	   RGB8
    Color	  848x480	@ 60Hz	   Y16
    Color	  848x480	@ 60Hz	   BGRA8
    Color	  848x480	@ 60Hz	   RGBA8
    Color	  848x480	@ 60Hz	   BGR8
    Color	  848x480	@ 60Hz	   YUYV
    Color	  848x480	@ 30Hz	   RGB8
    Color	  848x480	@ 30Hz	   Y16
    Color	  848x480	@ 30Hz	   BGRA8
    Color	  848x480	@ 30Hz	   RGBA8
    Color	  848x480	@ 30Hz	   BGR8
    Color	  848x480	@ 30Hz	   YUYV
    Color	  848x480	@ 10Hz	   RGB8
    Color	  848x480	@ 10Hz	   Y16
    Color	  848x480	@ 10Hz	   BGRA8
    Color	  848x480	@ 10Hz	   RGBA8
    Color	  848x480	@ 10Hz	   BGR8
    Color	  848x480	@ 10Hz	   YUYV
    Color	  640x480	@ 60Hz	   RGB8
    Color	  640x480	@ 60Hz	   Y16
    Color	  640x480	@ 60Hz	   BGRA8
    Color	  640x480	@ 60Hz	   RGBA8
    Color	  640x480	@ 60Hz	   BGR8
    Color	  640x480	@ 60Hz	   YUYV
    Color	  640x480	@ 30Hz	   RGB8
    Color	  640x480	@ 30Hz	   Y16
    Color	  640x480	@ 30Hz	   BGRA8
    Color	  640x480	@ 30Hz	   RGBA8
    Color	  640x480	@ 30Hz	   BGR8
    Color	  640x480	@ 30Hz	   YUYV
    Color	  640x480	@ 10Hz	   RGB8
    Color	  640x480	@ 10Hz	   Y16
    Color	  640x480	@ 10Hz	   BGRA8
    Color	  640x480	@ 10Hz	   RGBA8
    Color	  640x480	@ 10Hz	   BGR8
    Color	  640x480	@ 10Hz	   YUYV
    Color	  640x360	@ 60Hz	   RGB8
    Color	  640x360	@ 60Hz	   Y16
    Color	  640x360	@ 60Hz	   BGRA8
    Color	  640x360	@ 60Hz	   RGBA8
    Color	  640x360	@ 60Hz	   BGR8
    Color	  640x360	@ 60Hz	   YUYV
    Color	  640x360	@ 30Hz	   RGB8
    Color	  640x360	@ 30Hz	   Y16
    Color	  640x360	@ 30Hz	   BGRA8
    Color	  640x360	@ 30Hz	   RGBA8
    Color	  640x360	@ 30Hz	   BGR8
    Color	  640x360	@ 30Hz	   YUYV
    Color	  640x360	@ 10Hz	   RGB8
    Color	  640x360	@ 10Hz	   Y16
    Color	  640x360	@ 10Hz	   BGRA8
    Color	  640x360	@ 10Hz	   RGBA8
    Color	  640x360	@ 10Hz	   BGR8
    Color	  640x360	@ 10Hz	   YUYV
    Color	  424x240	@ 60Hz	   RGB8
    Color	  424x240	@ 60Hz	   Y16
    Color	  424x240	@ 60Hz	   BGRA8
    Color	  424x240	@ 60Hz	   RGBA8
    Color	  424x240	@ 60Hz	   BGR8
    Color	  424x240	@ 60Hz	   YUYV
    Color	  424x240	@ 30Hz	   RGB8
    Color	  424x240	@ 30Hz	   Y16
    Color	  424x240	@ 30Hz	   BGRA8
    Color	  424x240	@ 30Hz	   RGBA8
    Color	  424x240	@ 30Hz	   BGR8
    Color	  424x240	@ 30Hz	   YUYV
    Color	  424x240	@ 10Hz	   RGB8
    Color	  424x240	@ 10Hz	   Y16
    Color	  424x240	@ 10Hz	   BGRA8
    Color	  424x240	@ 10Hz	   RGBA8
    Color	  424x240	@ 10Hz	   BGR8
    Color	  424x240	@ 10Hz	   YUYV
    Color	  320x240	@ 60Hz	   RGB8
    Color	  320x240	@ 60Hz	   Y16
    Color	  320x240	@ 60Hz	   BGRA8
    Color	  320x240	@ 60Hz	   RGBA8
    Color	  320x240	@ 60Hz	   BGR8
    Color	  320x240	@ 60Hz	   YUYV
    Color	  320x240	@ 30Hz	   RGB8
    Color	  320x240	@ 30Hz	   Y16
    Color	  320x240	@ 30Hz	   BGRA8
    Color	  320x240	@ 30Hz	   RGBA8
    Color	  320x240	@ 30Hz	   BGR8
    Color	  320x240	@ 30Hz	   YUYV
    Color	  320x240	@ 10Hz	   RGB8
    Color	  320x240	@ 10Hz	   Y16
    Color	  320x240	@ 10Hz	   BGRA8
    Color	  320x240	@ 10Hz	   RGBA8
    Color	  320x240	@ 10Hz	   BGR8
    Color	  320x240	@ 10Hz	   YUYV
    Color	  320x180	@ 60Hz	   RGB8
    Color	  320x180	@ 60Hz	   Y16
    Color	  320x180	@ 60Hz	   BGRA8
    Color	  320x180	@ 60Hz	   RGBA8
    Color	  320x180	@ 60Hz	   BGR8
    Color	  320x180	@ 60Hz	   YUYV
    Color	  320x180	@ 30Hz	   RGB8
    Color	  320x180	@ 30Hz	   Y16
    Color	  320x180	@ 30Hz	   BGRA8
    Color	  320x180	@ 30Hz	   RGBA8
    Color	  320x180	@ 30Hz	   BGR8
    Color	  320x180	@ 30Hz	   YUYV
    Color	  320x180	@ 10Hz	   RGB8
    Color	  320x180	@ 10Hz	   Y16
    Color	  320x180	@ 10Hz	   BGRA8
    Color	  320x180	@ 10Hz	   RGBA8
    Color	  320x180	@ 10Hz	   BGR8
    Color	  320x180	@ 10Hz	   YUYV

But realsense-viewer cannot open Coded-Light Depth Sensor, and outputs:

13/11 15:35:46,161 ERROR [140353207961344] (types.h:304) xioctl(VIDIOC_G_CTRL) failed Last Error: Invalid argument
 13/11 15:35:46,161 WARNING [140353207961344] (sensor.cpp:766) Exception was thrown when inspecting RGB Camera property Enable / disable auto-exposure
 13/11 15:35:48,217 ERROR [140353172293376] (types.h:304) xioctl(VIDIOC_DQBUF) failed for fd: 33 Last Error: No such device
 13/11 15:35:48,217 ERROR [140353172293376] (backend-v4l2.cpp:1235) xioctl(VIDIOC_DQBUF) failed for fd: 33 Last Error: No such device
 13/11 15:35:51,252 WARNING [140353387919232] (backend-v4l2.cpp:1148) Pixel format 435a4e49-b602-480f-978c-e4e88ae likely requires patch for fourcc code INZC!
 13/11 15:35:51,252 WARNING [140353387919232] (backend-v4l2.cpp:1148) Pixel format 52494150-8536-4841-b6bf-8fc6ffb likely requires patch for fourcc code PAIR!
 13/11 15:35:51,263 ERROR [140353387919232] (types.h:304) xioctl(VIDIOC_STREAMOFF) failed for buf_type=1 Last Error: No such device 

Waiting for next release of the SDK

@ev-mp
Copy link
Collaborator

ev-mp commented Nov 13, 2019

@ipa-mah, the camera is properly recognized with the previous version as expected, so this is great.
The error reported at the end is of a different nature:

13/11 15:35:48,217 ERROR [140353172293376] (types.h:304) xioctl(VIDIOC_DQBUF) failed for fd: 33 Last Error: No such device

The message is fired when the device is forcibly disconnected from/by host. And it often occurs due to device being under-powered. I would recommend to switch USB port and/or get a powered USB3 hub.

@manhha1402
Copy link
Author

The problem is solved with SDK 2.28.
Thanks

@manhha1402
Copy link
Author

Hi,
I just want to ask whether the problem of SR300 fixed or not in current master branch. Since v2.2.8 version both librealsense and realsense-ros are not working with SR300 (IntelRealSense/realsense-ros#1017)
Thanks

@RealSenseCustomerSupport
Copy link
Collaborator


@ipa-mah SDK v2.31 has fixed the issue. Please try ROS v2.2.11 with SDK v2.31. https://github.com/IntelRealSense/realsense-ros/releases/latest

@manhha1402
Copy link
Author

Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


@ipa-mah Could you please update? Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


@ipa-mah Sorry that we didn't get response from you for weeks. Will close this issue at this point. Please feel free to create new one if you still have questions or issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants