librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Raspberry Pi 3 not detecting D400 camera

Open armaghank opened this issue 8 years ago • 17 comments

Required Info
Camera Model D400
Firmware Version 05.07.05.00
Operating System & Version Ubuntu Mate 16.04
Kernel Version (Linux Only)
SDK Version 2.0 librealsense

I have cloned and compiled the library successfully. However, all the tools or examples fail to detect the camera. The ports are working and so is the camera with Windows 10.

armaghank avatar Dec 12 '17 15:12 armaghank

@armaghank, the D400 requires a USB 3.0 interface and the Raspberry Pi 3 only supports USB 2.0.

MichaelHanssonPH avatar Dec 12 '17 15:12 MichaelHanssonPH

@MichaelHanssonPH I am following this document from the official repo https://github.com/IntelRealSense/librealsense/blob/master/doc/RaspberryPi3.md. It should work at a lower res.

armaghank avatar Dec 12 '17 16:12 armaghank

Hi @armaghank You are using a pre-production sample that is likely to have relatively old firmware. Can you please share the firmware version?

dorodnic avatar Dec 12 '17 16:12 dorodnic

Hi @dorodnic yes it is a pre-production sample of 430. The firmware version is 05.07.05.00

armaghank avatar Dec 12 '17 16:12 armaghank

I believe this is the root cause of the problem. Can you reach out to the Intel representative who provided you the camera and ask for firmware update or a replacement? Firmware update tool and new firmware binaries are scheduled to be released publicly very soon, but they are not part of this SDK. Unfortunately, 5.7 firmware is rather old, so there may be additional missing features (such as camera presets)

dorodnic avatar Dec 12 '17 19:12 dorodnic

@dorodnic I tried out the camera today with Upboard with a USB 3.0 OTG (running Ubuntu 16.04.3 LTS) and even that isn't detecting the camera after I compile the example codes. Do you think that might be because of the firmware as well? Btw the camera works fine with Linux on a normal laptop.

armaghank avatar Dec 13 '17 15:12 armaghank

No, it should work on the Upboard. I will check if there is any BIOS configuration required. We can help you troubleshoot the problem. Anything in the dmesg log when you connect the camera?

dorodnic avatar Dec 14 '17 21:12 dorodnic

@dorodnic I got a D415 with a newer firmware 05.08.09.00 . In windows the realsense-viewer can detect it over a USB 2.0 connection. Raspberry Pi also detects the device but it throws this error: rs_error was raised when calling rs2_create_device(info_list:0xa43dd0, index=0): Opcodes do not match! Sent 16 but received -1! I will try it out with the UPBoard and let you know the result.

armaghank avatar Dec 19 '17 17:12 armaghank

@armaghank, could you please update the udev rules on the Reaspberry PI and check if it solved the issue?

  1. Ensure that no RealSense camera is connected
  2. Copy the udev file to rules.d folder by typing sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
  3. Reload udev rules by typing sudo udevadm control --reload-rules && udevadm trigger

icarpis avatar Dec 31 '17 09:12 icarpis

@armaghank any update on this issue?

dorodnic avatar Jan 13 '18 12:01 dorodnic

Hi all

I also have this issue on my D415. I have updated the firmware to the newest version (5.9.2.0), and have also performed what @icarpis wrote in his last comment.

Do you guys have help that I can try?

Thanks in advance

BGA3 avatar Mar 05 '18 07:03 BGA3

Same problem here. Tried both D435 and D415 on firmware 5.8.15.0 and 5.9.2.0 and both are not detected over USB2 on Raspberry Pi and a linux desktop. They did get detected on the same linux desktop over USB3. Any help would be very appreciated!

Thank you.

FurqanHabibi avatar Mar 09 '18 10:03 FurqanHabibi

Finally found a workaround for this. For anyone out there looking for a way to connect their realsense via USB2. The way to do it is:

  1. First connect your USB type A end of the cable to your PC / raspberry pi image
  2. Then connect the type C end of the cable to the realsense image
  3. Check if realsense is detected or not using lsusb. It will show something like below if detected. image
  4. If it doesn't show up, repeat from step 2 (connecting type C end). For me it always shows up after the first or second try.

Obviously, this is not the proper way to connect realsense to your PC, so if someone from Intel can look into this, that will be greatly appreciated.

Cheers!

FurqanHabibi avatar Mar 09 '18 11:03 FurqanHabibi

Hi @FurqanHabibi

Thanks for your input. Unfurtunately, for me it does not resolve the issue. I always get the "opcode error", even if the device is listed using lsusb.

Any help is greatly appreciated.

BGA3 avatar Mar 13 '18 12:03 BGA3

Hi @BGA3

Yes, me too actually. I also got the "opcode error" even if it's listed by lsusb. Thankfully I found a way to fix this a few days ago. Turns out the USB port of raspberry pi doesn't provide enough power for realsense. So to fix that, I use an externally powered USB hub like this one: image

Now the realsense is fully detected by raspberrypi and the SDK and examples can be run successfully. Keep in mind though that the realsense capabilities are severely limited by using it through USB2.

Hope it helps!

FurqanHabibi avatar Mar 15 '18 10:03 FurqanHabibi

Sounds great, @FurqanHabibi! Thanks for the input.

I will try this out as soon as I get a hold of a USB hub with external power

BGA3 avatar Mar 16 '18 11:03 BGA3

Was searching for quite a bit, looking for the OpCode error, but indeed, using a powered hub fixes the issue. The RealSense camera is now detected and the viewer works, was also able to use some of the examples.

carter040 avatar Mar 22 '18 19:03 carter040