-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
T265: Enumeration after boot on Raspberry pi 4 #5527
Comments
Do you make the T265 camera work in Pi4? I'm trying to install sdk2.31 ,but not work. |
@beyond21299 Yes It works. What OS are you using ? Whats the error message. Please provide a bit more detail. |
I'm sorry.I forget take photo. I'm trying Pi 3B+ with Linux raspberrypi 4.19.57-v7+. |
I'll try again today, hoping to repeat yesterday's situation. I remember the error when I installed libusb |
I have tried it with RPi 4,RPi 3B+ , RPi Zero W, Banana Pi M2z, Nanao pi Neo2, Nano Pi Neo 4 and it works on all of them. |
what OS are you using in RPi 3B+? |
I used Raspbian buster, But I also tried with Ubuntu mate. If you dont have a strict requirement of using Other linux distro I would recommend you to have Raspbian buster and try with these instructions https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_raspbian.md. It should work. |
Yes,I can use Raspbian buster OS, thank you ,I will try later |
sudo apt-get install -y libdrm-amdgpu1 libdrm-amdgpu1-dbg libdrm-dev libdrm-exynos1 libdrm-exynos1-dbg libdrm-freedreno1 libdrm-freedreno1-dbg libdrm-nouveau2 libdrm-nouveau2-dbg libdrm-omap1 libdrm-omap1-dbg libdrm-radeon1 libdrm-radeon1-dbg libdrm-tegra0 libdrm-tegra0-dbg libdrm2 libdrm2-dbg |
try this
|
and skip cmake protobuf tbb opencv and python part if you dont need additional features. They take a very long time to compile. Make sure you have cmake installed from apt manager. Otherwise you can install it using |
Thanks, I might want to try installing opencv as this instructed, because my code might need to use AprilTag later. |
Sure go ahead with that. |
Maybe I can install opencv later by myself . Now I compile RealsenseSDK. when I use this 'cmake .. -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=Release -DFORCE_LIBUVC=true', Is it take a long time during '--Building whit TM2'? |
Its downloading files it needs for TM2. Please make sure your internet connection is working fine. Else it will try to build without TM2 which should also go well. |
OK,The Internet connection is good. I'll wait a minute. |
error.txt |
this is the complete error output . |
Hi @zainmehdi, if you happen to have a Raspberry Pi 4B, would you try powering the USB port, that the T265 is connect to, down and back up using uhubctl after the first boot? We have found this to work for other devices. |
@beyond21299, it looks like the firmware file that is downloaded has the wrong SHA1 hash.
Try removing that file and trying again. If you have a clean build directory and your network access is working, then the download should match the expected hash. |
Thanks for the update. I will try and update soon. |
uhubctl doesn't work for me with the Raspberry Pi 4B |
Hi @m4xr1sk, It looks like the Raspberry Pi 4B is supported by |
the firmware is upgraded. I'm waiting for an external usb hub to try with it |
Just to be clear, should see the following device in both cases.
$ lsusb -d 03e7:2150 -v | grep bcdUSB
2.0 When the device needs to be reset, it should in USB 1.0 mode, and it will be in USB 2.0 mode after the device is power cycled. |
Hi @m4xr1sk, Thanks for the nice pictures! Could you provide the output of this command after you use
|
just after connecting the camera:
power off:
power on:
and that's the output of the uhubctl:
everything seems correct but if I run rs-pose it doesn't output anything (just the error).
|
uhubctl author here. @m4xr1sk , does your camera re-enumerate if you unplug/replug USB cable at this point? If it does, can you try adding -R to uhubctl power on command and see if it helps? |
Hi mvp,
If I don't use -e or -R it doesn't work. At the moment the above could be an acceptable solution. |
-R is an attempt to fully reset USB bus, should be similar to physical replugging and re-enumeration. It should work when directly plugged in RPi4B, but you may need to reset all 4 ports with As for AmazonBasics hub and necessity to use -e, that is not normal. Can you please share output of |
Based on uhubctl by @mvp, I created the repo: https://github.com/yousseb/t265_reset which basically recycles the specific hub port that a T265 is connected to. |
@yousseb , I would recommend just calling uhubctl instead. It will get updated over time |
@mvp, we appreciate your point, but our goal with this repo is to eventually integrate it into |
@radfordi , it will not work on Windows. It doesn't have ability to send control message directly to the hub |
Thanks, @mvp, for the heads up. No need to test there now. :) |
@yousseb, please change license on https://github.com/yousseb/t265_reset to GPL2 then. it is based mostly on uhubctl code, which is GPL2. |
Directly connected to the RPI it doesn't work. Also with the param "cycle" and connected to the amazon hub it doesn't work. here the output of sudo uhubctl -l 2-2
|
@mvp It’s already GPL2 (LICENSE file). What am I missing?
…On Tue, Feb 11, 2020 at 3:37 PM mvp ***@***.***> wrote:
@yousseb <https://github.com/yousseb>, please change license on
https://github.com/yousseb/t265_reset to GPL2 then. it is based mostly on
uhubctl code, which is GPL2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5527?email_source=notifications&email_token=ABEAHCRWEBMPWPQDVVLZVIDRCMZE3A5CNFSM4J6ZZZC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELOSDEQ#issuecomment-584917394>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEAHCSZLDER3OY3MR42LZLRCMZE3ANCNFSM4J6ZZZCQ>
.
|
@yousseb , I just looked at first line of https://github.com/yousseb/t265_reset/blob/95ba890fb5fd56b0ebe022ef86a96e5c431a3a0c/main.cpp#L1 and it says:
I understand that you added LICENSE with GPL2 just yesterday. But perhaps you should be consistent with your licensing information. |
@m4xr1sk , it seems that the only difference between your approach
and if you call
I will think about possibly swapping USB2/USB3 turn on order in uhubctl... |
The Intel T265 stop working (using rs-pose) after some minutes if connected to the Amazon Hub. Same problem also attached directly to the Raspberry. How I can investigate the problem? Any suggestion? |
Bad cable? Not enough power for both the hub and the T265? Are you using an external power supply for the hub? |
Same conditions but back to SDK v2.31.0 and now it seems to work. |
@mvp I could have sworn I had this working the other day but now I can't reproduce it. I ran
After which the RealSense does not work. Like others, it will always work by physically replugging but that's not an option. I'm not using an external hub, and doing so is not really an option. Can you clarify whether this resets all USB busses or ONLY works for external hubs? I might just be misunderstanding what a smart hub is. EDIT: Please disregard. Removing |
I can confirm that installing and building uhubctl (as described here) and then running these two commands:
allowed me to connect to the T265 without having to physically disconnect and reconnect the camera. I'm using RPI4 running Ubuntu 18.04 Thanks very much for the help! |
Hi, Will you be needing further help with this? If we don’t hear from you in 7 days, this issue will be closed. Thanks |
| Camera Model | T265 |
| Operating System & Version | Raspbian Buster |
| Platform | Raspberry Pi 4 |
| SDK Version | 2.31 |
Issue Description
Can anyone please provide any update on this issue. It seems like the camera is not detected after initial boot and one has to plug out and plug in to make it work. This is a serious problem that prevents this camera from being used in any of my products. Customers certainly cant plug out and plug in every time they want to use this device. I am really hoping Engineering team can provide some workaround for this issue.
The text was updated successfully, but these errors were encountered: