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

Lots of "Failed to read busnum/devnum" warnings polluting the terminal #2754

Closed
martinakos opened this issue May 26, 2023 · 16 comments
Closed
Labels

Comments

@martinakos
Copy link

I'm running on ros2 humble. I launch the camera with

ros2 launch realsense2_camera rs_launch.py

and I get this output

[INFO] [launch]: All log files can be found below /ros_logs/dev/2023-05-26-10-24-49-424022-UK64049-33086
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [realsense2_camera_node-1]: process started with pid [33087]
[realsense2_camera_node-1] [INFO] [1685096690.046262963] [camera.camera]: RealSense ROS v4.51.1 [Fn init, Ln 241]
[realsense2_camera_node-1] [INFO] [1685096690.046446139] [camera.camera]: Built with LibRealSense v2.51.1 [Fn init, Ln 242]
[realsense2_camera_node-1] [INFO] [1685096690.046482376] [camera.camera]: Running with LibRealSense v2.51.1 [Fn init, Ln 243]
[realsense2_camera_node-1]  26/05 10:24:50,048 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.4.auto
[realsense2_camera_node-1]  26/05 10:24:50,048 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.10.auto
[realsense2_camera_node-1]  26/05 10:24:50,048 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.3.auto
[realsense2_camera_node-1]  26/05 10:24:50,048 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.15.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.2.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.8.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.14.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.7.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.13.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.6.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.12.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.5.auto
[realsense2_camera_node-1]  26/05 10:24:50,049 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.11.auto
[realsense2_camera_node-1]  26/05 10:24:50,072 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.4.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.10.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.3.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.15.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.2.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.8.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.14.auto
[realsense2_camera_node-1] [INFO] [1685096690.074825755] [camera.camera]: Device with serial number 040322073861 was found.
[realsense2_camera_node-1]  [Fn getDevice, Ln 91]
[realsense2_camera_node-1] [INFO] [1685096690.074905676] [camera.camera]: Device with physical ID /sys/devices/pci0000:00/0000:00:1c.0/0000:03:00.0/0000:04:02.0/0000:39:00.0/usb6/6-1/6-1:1.0/video4linux/video4 was found. [Fn getDevice, Ln 94]
[realsense2_camera_node-1] [INFO] [1685096690.074928594] [camera.camera]: Device with name Intel RealSense D435I was found. [Fn getDevice, Ln 96]
[realsense2_camera_node-1] [INFO] [1685096690.075468299] [camera.camera]: Device with port number 6-1 was found. [Fn getDevice, Ln 114]
[realsense2_camera_node-1] [INFO] [1685096690.075494133] [camera.camera]: Device USB type: 3.2 [Fn getDevice, Ln 166]
[realsense2_camera_node-1] [INFO] [1685096690.078390265] [camera.camera]: getParameters... [Fn getParameters, Ln 12]
[realsense2_camera_node-1] [INFO] [1685096690.078915543] [camera.camera]: JSON file is not provided [Fn setAvailableSensors, Ln 81]
[realsense2_camera_node-1] [INFO] [1685096690.078949690] [camera.camera]: Device Name: Intel RealSense D435I [Fn setAvailableSensors, Ln 84]
[realsense2_camera_node-1] [INFO] [1685096690.078971189] [camera.camera]: Device Serial No: 040322073861 [Fn setAvailableSensors, Ln 87]
[realsense2_camera_node-1] [INFO] [1685096690.078989994] [camera.camera]: Device physical port: /sys/devices/pci0000:00/0000:00:1c.0/0000:03:00.0/0000:04:02.0/0000:39:00.0/usb6/6-1/6-1:1.0/video4linux/video4 [Fn setAvailableSensors, Ln 91]
[realsense2_camera_node-1] [INFO] [1685096690.079009250] [camera.camera]: Device FW version: 05.13.00.50 [Fn setAvailableSensors, Ln 94]
[realsense2_camera_node-1] [INFO] [1685096690.079021009] [camera.camera]: Device Product ID: 0x0B3A [Fn setAvailableSensors, Ln 97]
[realsense2_camera_node-1] [INFO] [1685096690.079031009] [camera.camera]: Sync Mode: Off [Fn setAvailableSensors, Ln 99]
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.7.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.13.auto
[realsense2_camera_node-1]  26/05 10:24:50,073 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.6.auto
[realsense2_camera_node-1]  26/05 10:24:50,074 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.12.auto
[realsense2_camera_node-1]  26/05 10:24:50,074 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.5.auto
[realsense2_camera_node-1]  26/05 10:24:50,074 WARNING [139757807978048] (backend-hid.cpp:1203) Failed to read busnum/devnum. Custom HID Device Path: /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.11.auto
[realsense2_camera_node-1] [INFO] [1685096690.095535245] [camera.camera]: Set ROS param depth_module.profile to default: 848x480x30 [Fn operator(), Ln 309]
[realsense2_camera_node-1] [WARN] [1685096690.098232974] [camera.camera]: Could not set param: rgb_camera.power_line_frequency with 3 Range: [0, 2]: parameter 'rgb_camera.power_line_frequency' could not be set: Parameter {rgb_camera.power_line_frequency} doesn't comply with integer range. [Fn setParam, Ln 127]
[realsense2_camera_node-1]  26/05 10:24:50,098 WARNING [139757807978048] (backend-v4l2.cpp:1444) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
[realsense2_camera_node-1] [INFO] [1685096690.104457611] [camera.camera]: Set ROS param rgb_camera.profile to default: 1280x720x30 [Fn operator(), Ln 309]
[realsense2_camera_node-1] [INFO] [1685096690.105416664] [camera.camera]: Set ROS param gyro_fps to default: 200 [Fn operator(), Ln 423]
[realsense2_camera_node-1] [INFO] [1685096690.105557718] [camera.camera]: Set ROS param accel_fps to default: 63 [Fn operator(), Ln 423]
[realsense2_camera_node-1] [WARN] [1685096690.113497041] [camera.camera]: Could not set param: pointcloud.stream_index_filter with -1 Range: [-1, -2147483648]: parameter 'pointcloud.stream_index_filter' could not be set: Parameter {pointcloud.stream_index_filter} doesn't comply with integer range. [Fn setParam, Ln 127]
[realsense2_camera_node-1] [INFO] [1685096690.114847872] [camera.camera]: Stopping Sensor: Stereo Module [Fn updateSensors, Ln 311]
[realsense2_camera_node-1] [INFO] [1685096690.117412871] [camera.camera]: Starting Sensor: Stereo Module [Fn updateSensors, Ln 330]
[realsense2_camera_node-1] [INFO] [1685096690.126729004] [camera.camera]: Open profile: stream_type: Depth(0), Format: Z16, Width: 848, Height: 480, FPS: 30 [Fn start, Ln 219]
[realsense2_camera_node-1] [INFO] [1685096690.126868803] [camera.camera]: Stopping Sensor: RGB Camera [Fn updateSensors, Ln 311]
[realsense2_camera_node-1] [INFO] [1685096690.128222500] [camera.camera]: Starting Sensor: RGB Camera [Fn updateSensors, Ln 330]
[realsense2_camera_node-1] [INFO] [1685096690.139945806] [camera.camera]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 30 [Fn start, Ln 219]
[realsense2_camera_node-1] [INFO] [1685096690.140672125] [camera.camera]: RealSense Node Is Up! [Fn publishTopics, Ln 148]
[realsense2_camera_node-1] [WARN] [1685096690.255694407] [camera.camera]:  [Fn setBaseTime, Ln 667]

I get lots of this "Failed to read busnum/devnum" warnings. I'm showing the output of rs_launch.py to make diagnosis easier as it's a provided launch. In the specific launch I'm writing I get event more of this Failed to read busnum/devnum" warnings and it makes hard to see other messages I'm interested in. The driver seems to be working normally though.

Note I'm running humble inside a docker with Ubuntu 22.04 LTS. In my host I have Ubuntu 20.04 with ROS Noetic and if I run

roslaunch realsense2_camera rs_camera.launch

with the same camera connected I don't get any of the warnings above.

I've checked other issues with this warning message but none of their suggestions worked to eliminate this warning. Do you have any suggestions to eliminate this warning?

@MartyG-RealSense
Copy link
Collaborator

Hi @martinakos Failed to read busnum/devnum is a very rarely occurring warning that has typically been associated with using RealSense on a single-board computer where the USB port is a USB OTG micro-sized port instead of a full-sized port. As you experience this warning with ROS2 Humble but not with ROS Noetic though, this suggests that the problem is not related to your computer hardware.

Do the warnings still occur in Humble if you reset the camera at launch with initial_reset:=true

ros2 launch realsense2_camera rs_launch.py initial_reset:=true

@martinakos
Copy link
Author

Do the warnings still occur in Humble if you reset the camera at launch with initial_reset:=true
ros2 launch realsense2_camera rs_launch.py initial_reset:=true

Yes, they do.

@MartyG-RealSense
Copy link
Collaborator

If you are running Humble in a Docker container and the messages occur, is your Noetic installation on the host that doesn't have the messages not in a Docker container?

@martinakos
Copy link
Author

I have Noetic installed in ubuntu 20.04 in my laptop (the host). I run ros2 humble on a docker because it requires ubuntu 22.04 and I can't install it in the host OS.

@MartyG-RealSense
Copy link
Collaborator

There was a Humble case a few weeks ago at #2730 where a RealSense ROS user was experiencing the busnum/devnum message. Setting RViz to use compressed data - see #1510 (comment) - improved their performance.

@martinakos
Copy link
Author

rviz2 doesn't show the compressed option when selecting an image topic (I think the issue you refer to is for ros1). In any case, the warning message is displayed before I run rviz2

@MartyG-RealSense
Copy link
Collaborator

Would it be possible for you to change the logging level to mute WARNING type messages, or do you need to look for other types of WARNING message when checking the log?

@martinakos
Copy link
Author

I'd prefer not have to mute all warning messages. do you know how to mute that warning message only?

@MartyG-RealSense
Copy link
Collaborator

Individual message types cannot be excluded from the logging level, so the only alternative may be to build a customized version of librealsense from source code where you have edited line 1203 of the file backend-hid.cpp to remove the busnum/devnum message.

https://github.com/IntelRealSense/librealsense/blob/master/src/linux/backend-hid.cpp#L1203

@martinakos
Copy link
Author

martinakos commented May 31, 2023

I was checking who wrote that piece of code and I saw in the commit messages Metadata fields parsing and extraction
I wonder if this may be somehow related to my other question #2760 about not finding frame_laser_power in the metadata, as I'm experiencing both things at the same time.

Could we ask the developers that wrote that code, (@dorodnic, @ev-mp) what are these checks doing and if it's safe to ignore them?

@MartyG-RealSense
Copy link
Collaborator

I have highlighted your question to my Intel RealSense colleagues. Thanks very much for your patience.

@MartyG-RealSense
Copy link
Collaborator

Hi @martinakos My colleagues agreed with my suggestion to edit the source code to remove the busnum/devnum message, and added that it would be safe to ignore the warning as you did not find that it impacted the actual performance.

In regard to metadata extraction, they said that you can use the Realsense Viewer’s metadata window to confirm if the desired metadata attribute(s) is supported. or use the following example code for reference.

https://github.com/IntelRealSense/librealsense/blob/master/examples/save-to-disk/rs-save-to-disk.cpp#L71

@martinakos
Copy link
Author

Ok. thanks.
Regarding the metadata fields I'll replay in the other issue.

@MartyG-RealSense
Copy link
Collaborator

Hi @martinakos Do you require further assistance with this case, please?

Version 2.54.1 of librealsense is now available at the link below.

https://github.com/IntelRealSense/librealsense/releases/tag/v2.54.1

The release notes, with an extensive list of enhancements and bug-fixes, are available here:

https://github.com/IntelRealSense/librealsense/wiki/Release-Notes#release-2541

@martinakos
Copy link
Author

I have updated to the latest librealsense in my host machine and rebuilt realsense2_camera from source with ROS1 noetic and I still get the warnings.
I think for the moment I'll just try to ignore the warnings.

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @martinakos

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

No branches or pull requests

2 participants