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

D435 Not working on realsense-viewer and pyrealsense2 #7337

Closed
wikpunGitHub opened this issue Sep 14, 2020 · 8 comments
Closed

D435 Not working on realsense-viewer and pyrealsense2 #7337

wikpunGitHub opened this issue Sep 14, 2020 · 8 comments

Comments

@wikpunGitHub
Copy link


Required Info
Camera Model { D400 }
Firmware Version (05.12.07.100)
Operating System & Version Linux (Ubuntu 20)
Kernel Version (Linux Only) (5.4.0-47)
Platform Udoo x86.
SDK Version { 2 }
Language {/python }
Segment {Robot/ }

Issue Description

Build from source

Even realsense-viewer is not working.
UNKNOWN in rs2_create_device(info_list:0x564e5301c330, index:0):
failed to set power state

Pyrealsense Not Working
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import pyrealsense2 as rs
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 848, 480, rs.format.z16, 30)
:1: DeprecationWarning: an integer is required (got type pyrealsense2.pyrealsense2.format). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
profile = pipeline.start(config)
Traceback (most recent call last):
File "", line 1, in
RuntimeError: hwmon command 0x2c( 9 0 0 0 ) failed (response -9= No expected user action)

$ rs-enumerate-devices
Device info:
Name : Intel RealSense D400
Serial Number : ffffffffffff
Firmware Version : 05.12.07.100
Recommended Firmware Version : 05.12.07.100
Physical Port : 2-3-3
Debug Op Code : 15
Advanced Mode : YES
Product Id : 0AD1
Camera Locked : YES
Usb Type Descriptor : 3.2
Product Line : D400
Asic Serial Number : 812113024424
Firmware Update Id : 812113024424

Stream Profiles supported by Stereo Module
Supported modes:
stream resolution fps format
Infrared 1280x720 @ 30Hz UYVY
Infrared 1280x720 @ 30Hz BGRA8
Infrared 1280x720 @ 30Hz RGBA8
Infrared 1280x720 @ 30Hz BGR8
Infrared 1280x720 @ 30Hz RGB8
Infrared 1280x720 @ 15Hz UYVY
Infrared 1280x720 @ 15Hz BGRA8
Infrared 1280x720 @ 15Hz RGBA8
Infrared 1280x720 @ 15Hz BGR8
Infrared 1280x720 @ 15Hz RGB8
Infrared 1280x720 @ 6Hz UYVY
Infrared 1280x720 @ 6Hz BGRA8
Infrared 1280x720 @ 6Hz RGBA8
Infrared 1280x720 @ 6Hz BGR8
Infrared 1280x720 @ 6Hz RGB8
Infrared 848x480 @ 90Hz UYVY
Infrared 848x480 @ 90Hz BGRA8
Infrared 848x480 @ 90Hz RGBA8
Infrared 848x480 @ 90Hz BGR8
Infrared 848x480 @ 90Hz RGB8
Infrared 848x480 @ 60Hz UYVY
Infrared 848x480 @ 60Hz BGRA8
Infrared 848x480 @ 60Hz RGBA8
Infrared 848x480 @ 60Hz BGR8
Infrared 848x480 @ 60Hz RGB8
Infrared 848x480 @ 30Hz UYVY
Infrared 848x480 @ 30Hz BGRA8
Infrared 848x480 @ 30Hz RGBA8
Infrared 848x480 @ 30Hz BGR8
Infrared 848x480 @ 30Hz RGB8
Infrared 848x480 @ 15Hz UYVY
Infrared 848x480 @ 15Hz BGRA8
Infrared 848x480 @ 15Hz RGBA8
Infrared 848x480 @ 15Hz BGR8
Infrared 848x480 @ 15Hz RGB8
Infrared 848x480 @ 6Hz UYVY
Infrared 848x480 @ 6Hz BGRA8
Infrared 848x480 @ 6Hz RGBA8
Infrared 848x480 @ 6Hz BGR8
Infrared 848x480 @ 6Hz RGB8
Infrared 848x100 @ 100Hz UYVY
Infrared 848x100 @ 100Hz BGRA8
Infrared 848x100 @ 100Hz RGBA8
Infrared 848x100 @ 100Hz BGR8
Infrared 848x100 @ 100Hz RGB8
Infrared 640x480 @ 90Hz UYVY
Infrared 640x480 @ 90Hz BGRA8
Infrared 640x480 @ 90Hz RGBA8
Infrared 640x480 @ 90Hz BGR8
Infrared 640x480 @ 90Hz RGB8
Infrared 640x480 @ 60Hz UYVY
Infrared 640x480 @ 60Hz BGRA8
Infrared 640x480 @ 60Hz RGBA8
Infrared 640x480 @ 60Hz BGR8
Infrared 640x480 @ 60Hz RGB8
Infrared 640x480 @ 30Hz UYVY
Infrared 640x480 @ 30Hz BGRA8
Infrared 640x480 @ 30Hz RGBA8
Infrared 640x480 @ 30Hz BGR8
Infrared 640x480 @ 30Hz RGB8
Infrared 640x480 @ 15Hz UYVY
Infrared 640x480 @ 15Hz BGRA8
Infrared 640x480 @ 15Hz RGBA8
Infrared 640x480 @ 15Hz BGR8
Infrared 640x480 @ 15Hz RGB8
Infrared 640x480 @ 6Hz UYVY
Infrared 640x480 @ 6Hz BGRA8
Infrared 640x480 @ 6Hz RGBA8
Infrared 640x480 @ 6Hz BGR8
Infrared 640x480 @ 6Hz RGB8
Infrared 640x360 @ 90Hz UYVY
Infrared 640x360 @ 90Hz BGRA8
Infrared 640x360 @ 90Hz RGBA8
Infrared 640x360 @ 90Hz BGR8
Infrared 640x360 @ 90Hz RGB8
Infrared 640x360 @ 60Hz UYVY
Infrared 640x360 @ 60Hz BGRA8
Infrared 640x360 @ 60Hz RGBA8
Infrared 640x360 @ 60Hz BGR8
Infrared 640x360 @ 60Hz RGB8
Infrared 640x360 @ 30Hz UYVY
Infrared 640x360 @ 30Hz BGRA8
Infrared 640x360 @ 30Hz RGBA8
Infrared 640x360 @ 30Hz BGR8
Infrared 640x360 @ 30Hz RGB8
Infrared 640x360 @ 15Hz UYVY
Infrared 640x360 @ 15Hz BGRA8
Infrared 640x360 @ 15Hz RGBA8
Infrared 640x360 @ 15Hz BGR8
Infrared 640x360 @ 15Hz RGB8
Infrared 640x360 @ 6Hz UYVY
Infrared 640x360 @ 6Hz BGRA8
Infrared 640x360 @ 6Hz RGBA8
Infrared 640x360 @ 6Hz BGR8
Infrared 640x360 @ 6Hz RGB8
Infrared 480x270 @ 90Hz UYVY
Infrared 480x270 @ 90Hz BGRA8
Infrared 480x270 @ 90Hz RGBA8
Infrared 480x270 @ 90Hz BGR8
Infrared 480x270 @ 90Hz RGB8
Infrared 480x270 @ 60Hz UYVY
Infrared 480x270 @ 60Hz BGRA8
Infrared 480x270 @ 60Hz RGBA8
Infrared 480x270 @ 60Hz BGR8
Infrared 480x270 @ 60Hz RGB8
Infrared 480x270 @ 30Hz UYVY
Infrared 480x270 @ 30Hz BGRA8
Infrared 480x270 @ 30Hz RGBA8
Infrared 480x270 @ 30Hz BGR8
Infrared 480x270 @ 30Hz RGB8
Infrared 480x270 @ 15Hz UYVY
Infrared 480x270 @ 15Hz BGRA8
Infrared 480x270 @ 15Hz RGBA8
Infrared 480x270 @ 15Hz BGR8
Infrared 480x270 @ 15Hz RGB8
Infrared 480x270 @ 6Hz UYVY
Infrared 480x270 @ 6Hz BGRA8
Infrared 480x270 @ 6Hz RGBA8
Infrared 480x270 @ 6Hz BGR8
Infrared 480x270 @ 6Hz RGB8
Infrared 424x240 @ 90Hz UYVY
Infrared 424x240 @ 90Hz BGRA8
Infrared 424x240 @ 90Hz RGBA8
Infrared 424x240 @ 90Hz BGR8
Infrared 424x240 @ 90Hz RGB8
Infrared 424x240 @ 60Hz UYVY
Infrared 424x240 @ 60Hz BGRA8
Infrared 424x240 @ 60Hz RGBA8
Infrared 424x240 @ 60Hz BGR8
Infrared 424x240 @ 60Hz RGB8
Infrared 424x240 @ 30Hz UYVY
Infrared 424x240 @ 30Hz BGRA8
Infrared 424x240 @ 30Hz RGBA8
Infrared 424x240 @ 30Hz BGR8
Infrared 424x240 @ 30Hz RGB8
Infrared 424x240 @ 15Hz UYVY
Infrared 424x240 @ 15Hz BGRA8
Infrared 424x240 @ 15Hz RGBA8
Infrared 424x240 @ 15Hz BGR8
Infrared 424x240 @ 15Hz RGB8
Infrared 424x240 @ 6Hz UYVY
Infrared 424x240 @ 6Hz BGRA8
Infrared 424x240 @ 6Hz RGBA8
Infrared 424x240 @ 6Hz BGR8
Infrared 424x240 @ 6Hz RGB8
Infrared 256x144 @ 90Hz UYVY
Infrared 256x144 @ 90Hz BGRA8
Infrared 256x144 @ 90Hz RGBA8
Infrared 256x144 @ 90Hz BGR8
Infrared 256x144 @ 90Hz RGB8
Infrared 1 1920x1080 @ 25Hz Y16
Infrared 1 1920x1080 @ 25Hz Y8
Infrared 1 1920x1080 @ 15Hz Y16
Infrared 1 1920x1080 @ 15Hz Y8
Infrared 1 1280x720 @ 30Hz Y8
Infrared 1 1280x720 @ 15Hz Y8
Infrared 1 1280x720 @ 6Hz Y8
Infrared 1 960x540 @ 25Hz Y16
Infrared 1 960x540 @ 15Hz Y16
Infrared 1 848x480 @ 90Hz Y8
Infrared 1 848x480 @ 60Hz Y8
Infrared 1 848x480 @ 30Hz Y8
Infrared 1 848x480 @ 15Hz Y8
Infrared 1 848x480 @ 6Hz Y8
Infrared 1 848x100 @ 100Hz Y8
Infrared 1 640x480 @ 90Hz Y8
Infrared 1 640x480 @ 60Hz Y8
Infrared 1 640x480 @ 30Hz Y8
Infrared 1 640x480 @ 15Hz Y8
Infrared 1 640x480 @ 6Hz Y8
Infrared 1 640x360 @ 90Hz Y8
Infrared 1 640x360 @ 60Hz Y8
Infrared 1 640x360 @ 30Hz Y8
Infrared 1 640x360 @ 15Hz Y8
Infrared 1 640x360 @ 6Hz Y8
Infrared 1 480x270 @ 90Hz Y8
Infrared 1 480x270 @ 60Hz Y8
Infrared 1 480x270 @ 30Hz Y8
Infrared 1 480x270 @ 15Hz Y8
Infrared 1 480x270 @ 6Hz Y8
Infrared 1 424x240 @ 90Hz Y8
Infrared 1 424x240 @ 60Hz Y8
Infrared 1 424x240 @ 30Hz Y8
Infrared 1 424x240 @ 15Hz Y8
Infrared 1 424x240 @ 6Hz Y8
Infrared 1 256x144 @ 90Hz Y8
Infrared 2 1920x1080 @ 25Hz Y16
Infrared 2 1920x1080 @ 25Hz Y8
Infrared 2 1920x1080 @ 15Hz Y16
Infrared 2 1920x1080 @ 15Hz Y8
Infrared 2 1280x720 @ 30Hz Y8
Infrared 2 1280x720 @ 15Hz Y8
Infrared 2 1280x720 @ 6Hz Y8
Infrared 2 960x540 @ 25Hz Y16
Infrared 2 960x540 @ 15Hz Y16
Infrared 2 848x480 @ 90Hz Y8
Infrared 2 848x480 @ 60Hz Y8
Infrared 2 848x480 @ 30Hz Y8
Infrared 2 848x480 @ 15Hz Y8
Infrared 2 848x480 @ 6Hz Y8
Infrared 2 848x100 @ 100Hz Y8
Infrared 2 640x480 @ 90Hz Y8
Infrared 2 640x480 @ 60Hz Y8
Infrared 2 640x480 @ 30Hz Y8
Infrared 2 640x480 @ 15Hz Y8
Infrared 2 640x480 @ 6Hz Y8
Infrared 2 640x360 @ 90Hz Y8
Infrared 2 640x360 @ 60Hz Y8
Infrared 2 640x360 @ 30Hz Y8
Infrared 2 640x360 @ 15Hz Y8
Infrared 2 640x360 @ 6Hz Y8
Infrared 2 480x270 @ 90Hz Y8
Infrared 2 480x270 @ 60Hz Y8
Infrared 2 480x270 @ 30Hz Y8
Infrared 2 480x270 @ 15Hz Y8
Infrared 2 480x270 @ 6Hz Y8
Infrared 2 424x240 @ 90Hz Y8
Infrared 2 424x240 @ 60Hz Y8
Infrared 2 424x240 @ 30Hz Y8
Infrared 2 424x240 @ 15Hz Y8
Infrared 2 424x240 @ 6Hz Y8
Infrared 2 256x144 @ 90Hz Y8
Depth 1280x720 @ 30Hz Z16
Depth 1280x720 @ 15Hz Z16
Depth 1280x720 @ 6Hz Z16
Depth 848x480 @ 90Hz Z16
Depth 848x480 @ 60Hz Z16
Depth 848x480 @ 30Hz Z16
Depth 848x480 @ 15Hz Z16
Depth 848x480 @ 6Hz Z16
Depth 848x100 @ 100Hz Z16
Depth 640x480 @ 90Hz Z16
Depth 640x480 @ 60Hz Z16
Depth 640x480 @ 30Hz Z16
Depth 640x480 @ 15Hz Z16
Depth 640x480 @ 6Hz Z16
Depth 640x360 @ 90Hz Z16
Depth 640x360 @ 60Hz Z16
Depth 640x360 @ 30Hz Z16
Depth 640x360 @ 15Hz Z16
Depth 640x360 @ 6Hz Z16
Depth 480x270 @ 90Hz Z16
Depth 480x270 @ 60Hz Z16
Depth 480x270 @ 30Hz Z16
Depth 480x270 @ 15Hz Z16
Depth 480x270 @ 6Hz Z16
Depth 424x240 @ 90Hz Z16
Depth 424x240 @ 60Hz Z16
Depth 424x240 @ 30Hz Z16
Depth 424x240 @ 15Hz Z16
Depth 424x240 @ 6Hz Z16
Depth 256x144 @ 90Hz Z16

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Sep 14, 2020

Hi @wikpunGitHub I notice that although the title says that you are using a D435 (a cased USB camera), the logs that you kindly provided state that the camera is a D400, which is a camera circuit board without a casing.

Name : Intel RealSense D400

It should instead say "Intel RealSense D435" if it is a D435 camera. A camera that is mis-identified by the camera firmware as a D400 would have support missing for features such as RGB and the projector, as the D400 model does not have those components.

image

Do you have a computer or other RealSense-compatible computing device that you could test the camera on, please?

@wikpunGitHub
Copy link
Author

wikpunGitHub commented Sep 15, 2020 via email

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Sep 15, 2020

Ok, thank you very much. If you are using a caseless D415 depth module then you should be able to access the RGB and projector, as those components are included on the D415 depth module (the D415 is the only model in the depth module range that has an integrated RGB sensor).

The USB connection is clearly being detected as USB 3.2 and you have the full range of stream modes listed in the rs-enumerate-devices log that you would expect to see on a USB 3 connection. So there does not seem to be a problem with USB bandwidth.

The 400 Series cameras can work with any Intel or Arm processor, and the Udoo x86 boards seem to have a good amount of memory RAM capacity. I would not discount the possibility that there is an issue related to power instability on the USB ports though, especially considering the failed to set power state message when using the RealSense Viewer that was reported into your opening message.

You also mention that you have a D415 depth module and a D435. If you are using both of them at the same time on the board, it may be causing a power problem. For example, there are past cases where one camera attached to a board works fine but when a second camera is attached, a failed to set power state error occurs. If you have two cameras connected at the same time to the board, could you try it with just one camera attached please?

@wikpunGitHub
Copy link
Author

wikpunGitHub commented Sep 16, 2020 via email

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Sep 16, 2020

Great to hear that you made progress!

You can purchase USB cables that have a 90 degree angled connector to help resolve problems caused by lack of insertion room with the typical straight connectors.

A company called Newnex are the USB equipment supplier who are officially recommended by Intel in the data sheet document for the 400 Series cameras as a supplier for USB-C cables for use with RealSense, so you can have confidence that Newnex cables will work with your camera.

Newnex can supply "industrial-grade" premium quality cables and have cables available with L-connectors. They also supply ones with screw-locks for securing the cable firmly into the side of the camera via two small holes either side of the camera's micro-USB port (great for use with mobile robots where the cable might work its way out of the port during motion).

https://www.newnex.com/realsense-3d-camera-connectivity.php
https://www.youtube.com/watch?v=GLQgR1jT04M

If you still require the USB-C specification, you can download it from the link below:

https://www.usb.org/document-library/usb-type-cr-cable-and-connector-specification-revision-20

@MartyG-RealSense
Copy link
Collaborator

Hi @wikpunGitHub Do you require further assistance with this case, please? Thanks!

@wikpunGitHub
Copy link
Author

wikpunGitHub commented Sep 26, 2020 via email

@MartyG-RealSense
Copy link
Collaborator

Thanks very much for the update!

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

2 participants