ftctechnh / ftc_app

FTC Android Studio project to create FTC Robot Controller app.
761 stars 3.16k forks source link

Configuration not detecting external webcam Serial #638

Closed webcamqn closed 4 years ago

webcamqn commented 6 years ago

We are trying to use an external camera for mineral detection. The configuration file detects the webcam, however, most of the time, the identified serial number is 0.0 which causes the program to error. We are able to resolve the issue by scanning for usb devices repeatedly, but haven't been able to identify a root cause. Any suggestions would be a great help.

gearsincorg commented 6 years ago

Several questions:

What Webcam are you using? What phone are you using? Are you using a powered hub? (What kind) How have you configured the USB connection?

webcamqn commented 6 years ago

Thanks for the quick followup

Phone: Moto G4

Camera: ELP 170 Degree Wide Angle USB 5 Megapixel Webcam for Portable Video System : Link

USB Hub: TUSITA Micro USB HUB Adaptor with Power: Link

Configuration:: See attached picture. 20181112_092219

kev626 commented 5 years ago

My team is having this exact problem as well Phone: Moto E4

Camera Logitech C170

USB Hub: Recommended Anker hub with backpowering setup

Configuration is identical

gearsincorg commented 5 years ago

@kev626 mentioned "back powering".
Exactly how are you both feeding power into the hub? Are you sending power into the charger port? from where?

kev626 commented 5 years ago

I'm taking power from the +5V port on the rev hub and sending it to the charge port on the USB hub according to this guide: https://github.com/ftctechnh/ftc_app/wiki/Using-an-External-UVC-Camera-and-a-Powered-USB-Hub#usb-hub

ftctechnh commented 4 years ago

Fixed with a pull request that has been tested and merged into the private ftc_sdk repository.