T265 will not open in realsense-viewer
| Required Info | |
|---|---|
| Camera Model | T265 |
| Firmware Version | Version Installed when Shipped (won't open in viewer) |
| Operating System & Version | Ubuntu 16.04 |
| Kernel Version (Linux Only) | 4.15.0-45-generic |
| Platform | Dell Precision 7510 (i7-6920HQ) and Hades Canyon NUC8i7HVK |
| SDK Version | v2.18.1 |
| Language | N/A |
| Segment | Robot/others |
Issue Description
We are unable to open the T265 in realsense-viewer, it results in this message in the terminal:
01/03 15:43:52,382 WARNING [139827475371776] (types.cpp:57) set_pu(id=3) failed! Last Error: Input/output error
01/03 15:43:52,382 WARNING [139827475371776] (sensor.cpp:725) Exception was thrown when inspecting properties of a sensor
when the realsense-viewer software is run on the NUC as well as laptop. Doesn't matter what port it is plugged into, still results in same issue.
When I lsusb it shows:
Bus 001 Device 009: ID 03e7:2150
Interestingly no Intel Corp. name following it like there is with D435 and the D435 works great in realsense-viewer on both computers.
(lsusb for D435 shows Bus 002 Device 002: ID 8086:0b07 Intel Corp. )
Has anyone else had issues with their T265? @dorodnic I know you helped out with our issue on the D435i (fixed in v2.18.1) in #realsense-viewer, was curious if you have seen anything like this with T265 yet.
#3129
Does seem to work in Windows 10 Pro Version 1809 (OS Build 17763.316) with SDK v2.18.1 though, was it maybe not tested in Linux fully yet? Sadly using Windows is not an option as the system must be implemented in Linux. But at least this shows the device works, just not in a way useful to our needs.
Hi @bperseghetti Everything should be supported on Linux as well. Maybe udev rules are missing? (any Permission Denied errors in the output?) Another questions is how did you install the SDK? Is this from apt or did you build it from source? When building the SDK from source, we require internet connection to download and embed T265 firmware into the binary (since the module does not come with firmware on board) Sometimes when behind proxy, CMake will fail to connect and print something to the extent of building without T265. Apt version should be good.
Hi @bperseghetti,
You can try to use the prebuilt dkms and realsense-viewer app (refer to below link) to run T265. If the T265 firmware (ex: 0.0.18.4577) can be loaded correctly from realsense-viewer, you should see a renewed VID:PID as 8087:0b37. https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md
ubuntu 18.04, sdk 2.18.1 realsense viewer wit t265 works perfectly
@dorodnic thank you for your very fast reply, sorry I wasn't able to get back with you as fast. I had installed from source but grep of build didn't show any related issues/warns. I followed the advice to install from apt but first made sure to sudo make uninstall and remove all the files installed from source build followed by rm -rf the repo. I then followed the installation instructions for 16.04 from apt and it all installed without any errors or issues, furthermore I installed the -dbg and -dev packages just to play it safe and then restarted my machine (to play it extra safe). It appears that it has not helped as running realsense-viewer results in:
04/03 16:14:17,315 WARNING [140486059050752] (types.cpp:57) set_pu(id=3) failed! Last Error: Input/output error
04/03 16:14:17,315 WARNING [140486059050752] (sensor.cpp:725) Exception was thrown when inspecting properties of a sensor
@RealSenseCustomerSupport weirdly my VID:PID from lsusb for the device changed to:
Bus 001 Device 007: ID 03e7:2150
When I run which realsense-viewer I get:
/usr/bin/realsense-viewer
Hi @bperseghetti,
Suggest to refer to distribution_linux.md doc to install the prebuilt apps. ($ sudo apt-get install librealsense2-utils) And, see how the prebuilt realsense-viewer works. You may not successfully build TM2 (BUILD_WITH_TM2 is ON). Or, probably, TM2 firmware is not downloaded successfully. You can also check if target.mvcmd file in /third-party/libtm/resources.
The good news is that T265 is detected on your system (03e7:2150)
Did you try to run rs-enumerate-devices?
Hello@bperseghetti,
Did you manage to export the displayed trajectory to any kind of file ? Could you please share it ?
I don't know yet if the device would be useful for my project, so I would like to see what data I get precisely and in what format.
@dorodnic running rs-enumerate-devices:
No device detected. Is it plugged in?
and lsusb still shows:
Bus 001 Device 006: ID 03e7:2150
running modinfo uvcvideo | grep "version:" results in:
version: 1.1.2.realsense-1.3.4
srcversion: C4FB5E9B212E9C39ED6CD7C
@RealSenseCustomerSupport that is the directions that I followed for installing it (through apt) to play it safe I also followed instructions to remove/purge all realsense dpkg for a reinstall just in case:
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
followed by removing the apt repo:
sudo add-apt-repository -r "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
and reinstalled by:
-
sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE -
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u -
sudo apt update -
sudo apt-get install librealsense2-dkms -
sudo apt-get install librealsense2-utils -
sudo apt-get install librealsense2-dev -
sudo apt-get install librealsense2-dbg -
sudo shutdown -r now
Resulted in exact same issues where it is not running correctly in realsense-viewer with same warns I have posted before and same exact lsusb, rs-enumerate-devices and uvcvideo version.
@jattiogbe I'm only using Linux for my use applications but soon as I get it running correctly in Linux will upload examples of it running and data output stream.
Thanks for the info @bperseghetti . I wish you good luck on your project :)
@bperseghetti, I encounter the same case with my machine. If you have builded SDK with TM2 (BUILD_WITH_TM2 is ON) successfully, you can run command: $ sudo realsense-viewer in your OS terminal, it works in my machine.
Hello chunyang-zhang
@chunyang-zhang - If sudo solved the issue for you, you should be able to do:
sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
sudo rm ~/.realsense-config.json
And then run the SDK tools without sudo
@dorodnic thanks a lot ! It runs very well without sudo
Hi @bperseghetti,
Do you have any good progress? similar issue with @chunyang-zhang?
@RealSenseCustomerSupport I'm having the same issues as @bperseghetti, running Ubuntu 16.04.
I've tried installing from apt repositories and building from source (both v2.19.0)
The binaries rs-capture and rs-pose both work fine.
I noticed that I can get the USB ID to update to the correct value of 0b37 by running rs-pose, but I'm not sure that the firmware is being updated since it is not persistent. Here are the steps to reproduce:
- Plug T265 into USB3 port
lsusboutputsID 03e7:2150 _- run
rs-pose lsusboutputsID 8087:0b37 Intel Corp..realsense-vieweroutputs (sensor.cpp:753) Exception was thrown when inspecting properties of a sensor`rs-enumerate-devicesoutputsNo device detected. Is it plugged in?- Unplug/Replug the T265
lsusboutputsID 03e7:2150 _
Hi @antmusco,
- Any more dmesg and librealsense logs beteen step 3 and step 5?
- Indeed, "rs-enumerate-devices" can't work for T265, need to be addressed.
Hi @antmusco,
Please also run "lsusb -v" with more usb info.
Here is the dmesg output and lsusb -v immediately after the associated steps:
- Plug T265 into USB3 port
[ 3088.626937] usb 1-4: new high-speed USB device number 6 using xhci_hcd
[ 3088.775782] usb 1-4: New USB device found, idVendor=03e7, idProduct=2150
[ 3088.775788] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3088.775792] usb 1-4: Product: Movidius MA2X5X
[ 3088.775796] usb 1-4: Manufacturer: Movidius Ltd.
[ 3088.775799] usb 1-4: SerialNumber: 03e72150
- run
rs-pose
[ 3144.708740] usb 1-4: USB disconnect, device number 6
[ 3145.230738] usb 2-5: new SuperSpeed USB device number 3 using xhci_hcd
[ 3145.251843] usb 2-5: New USB device found, idVendor=8087, idProduct=0b37
[ 3145.251849] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3145.251852] usb 2-5: Product: Intel(R) RealSense(TM) Tracking Camera T265
[ 3145.251856] usb 2-5: Manufacturer: Intel(R) Corporation
[ 3145.251859] usb 2-5: SerialNumber: 8454121116760000
@dorodnic @RealSenseCustomerSupport @chunyang-zhang Thanks for the help, still having issues with it on laptop, I think it might have to do with interference of the built-in webcam. I will have a longer update of all my findings between 6 different systems, just been swamped with other more pressing work to give a quality response. As a side note @antmusco do you have a built in camera on the system you are trying to run it on? I found that switching to a system that doesn't have one lets the T265 work. Or at least it worked on my Desktop with 16.04 and using v2.18.1. I will update more info on all the different issues/solutions I found probably over the weekend or maybe on Monday, just didn't want people to think that I was ignoring the issue/thread.