ftctechnh/ftc_app

Configuration not detecting external webcam Serial

webcamqn opened this issue · 6 comments

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.

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?

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

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

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

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

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