-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
Required Info | |
---|---|
Camera Model | D415 |
Firmware Version | 5.11.04 |
Operating System & Version | MacOS 10.13.6+Android Studio 3.4.1 |
Kernel Version (Linux Only) | N/A |
Platform | Andriod 8.1(linux kernel 4.5) +USB 3.1 Gen2 c-to-c cable |
SDK Version | 2.22.0 |
Language | java &c++ } |
Segment | Smartphone |
Issue Description
short version:
I ran the wrappers/android/examples/capture app on a Android Phone(has a usb 3.1 compatible type-c female interface) with D415 plugged in. But there was only black screen on the UI, which means the text "Connect to a Realsense Camera" was gone but no video data rendered. And at the same time, I found in the logcat of Android studio there reported constantly a plenty of warning messages:
2019-05-29 00:01:49.276 27981-28475/com.intel.realsense.capture W/librs: bulk_transfer returned error, endpoint: �, error: Out of memory
the full log was something as follow:
Click me to expand
2019-05-29 00:01:45.036 27981-28098/com.intel.realsense.capture D/librs DeviceWatcher: Device: /dev/bus/usb/003/002 added successfully
2019-05-29 00:01:49.237 27981-27981/com.intel.realsense.capture I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad3
mi- 0
unique_id- /dev/bus/usb/003/002
path- /dev/bus/usb/003/002
susb specification- 320
2019-05-29 00:01:49.237 27981-27981/com.intel.realsense.capture I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad3
mi- 3
unique_id- /dev/bus/usb/003/002
path- /dev/bus/usb/003/002
susb specification- 320
2019-05-29 00:01:49.239 27981-27981/com.intel.realsense.capture I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad3
mi- 0
unique_id- /dev/bus/usb/003/002
path- /dev/bus/usb/003/002
susb specification- 320
2019-05-29 00:01:49.239 27981-27981/com.intel.realsense.capture I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad3
mi- 3
unique_id- /dev/bus/usb/003/002
path- /dev/bus/usb/003/002
susb specification- 320
2019-05-29 00:01:49.241 27981-27981/com.intel.realsense.capture D/librs capture example: try start streaming
2019-05-29 00:01:49.241 27981-27981/com.intel.realsense.capture I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad3
mi- 0
unique_id- /dev/bus/usb/003/002
path- /dev/bus/usb/003/002
susb specification- 320
2019-05-29 00:01:49.241 27981-27981/com.intel.realsense.capture I/librs: Found UVC Device vid: id-
vid- 8086
pid- ad3
mi- 3
unique_id- /dev/bus/usb/003/002
path- /dev/bus/usb/003/002
susb specification- 320
2019-05-29 00:01:49.276 27981-28475/com.intel.realsense.capture W/librs: bulk_transfer returned error, endpoint: �, error: Out of memory
...... many many repeated warning message as the above line.....
My Question is: Has anybody ever seen this problem before? What should I do to fix this?
Longer version:
My setup:
"Android Phone Huawei P20 + USB 3.1 Gen 2 C Male to C Male cable + Realsense D415".
I've smiply checked the cable, it is compliant with USB 3.1 Gen 2 10/20Gbps 5A 100W.
I've also checked the Huawei P20's type c interface by plugging it into my Macbook and checking the 'USB 3.0 Bus' section of System Report of the MacBook. It showed the Speed is up to 5Gbps of "Huawei P20+ the c-to-c cable" combination. I guess that means either Huawei P20 or my Macbook has a USB 3.1 Gen 1 or USB 3.0 interface.
What I did and what I saw:
I downloaded the librealsense-2.22.0.aar and librealsense-2.22.0.zip from dl.bintray.com.
After that, I import them into the android project of wrappers/android, making both examples/native-example and examples/capture Modules to depend on them.
Then I modified the examples/native-example's source code to enumerate the device, the sensors and the stream profiles of each sensor. And save the enumerated result to a log file: usb3.2-P20-enumerate-log.txt
In a word, I could tell that the highest profiles (1280x720xZ16x30Hz Depth stream and the 1920x1080xRGB8x30Hz Color stream) are available.
In the next step, I build and ran examples/capture on the Huawei P20. After granting the USB permission the capture app, the screen was black and the message
“27981-28475/com.intel.realsense.capture W/librs: bulk_transfer returned error, endpoint: �, error: Out of memory” was flooding the Logcat.