Register

USB UVC Camera woes

This is a discussion on USB UVC Camera woes within the Galaxy Nexus Hacking & Mods [LTE/CDMA] forums, part of the Galaxy Nexus Development category; Hello Everyone, I am attempting to get a USB UVC web camera to run on my Google Nexus. I have recompiled the kernel with the ...

Results 1 to 3 of 3
  1. #1
    Milky Way
    Member #
    10583
    Join Date
    May 2012
    Posts
    2

    USB UVC Camera woes

    Hello Everyone,


    I am attempting to get a USB UVC web camera to run on my Google Nexus. I have recompiled the kernel with the UVC and V4L drivers enabled. Everything works good with one exception. About half the time the camera does not register or show up /dev/video0. Unplugging and Re-plugging the camera several or many times causes the camera to register. Also, more than half the time if I power cycle the unit the camera also does not register.





    When the camera does not register I get the following:


    dmesg:


    [ 67.085723] usb 1-1: device not accepting address 5, error -110
    [ 67.086120] hub 1-0:1.0: unable to enumerate USB device on port 1
    [ 67.086517] musb_bus_suspend 2292: trying to suspend as a_host while active
    [ 67.210723] usb 1-1: new high speed USB device number 6 using musb-hdrc
    [ 82.335693] usb 1-1: device descriptor read/64, error -110


    lsusb:


    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


    When the camera works I get the following:


    dmesg:


    [ 286.460693] usb 1-1: new high speed USB device number 18 using musb-hdrc
    [ 286.908294] usb 1-1: device v046d p0821 is not supported
    [ 286.908538] usb 1-1: New USB device found, idVendor=046d, idProduct=0821
    [ 286.908905] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    [ 286.909240] usb 1-1: SerialNumber: 284550E0
    [ 286.916534] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0821)
    [ 287.311492] input: UVC Camera (046d:0821) as /devices/platform/omap/musb-omap2430/musb-hdrc/usb1/1-1/1-1:1.2/input/input6


    lsusb:


    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 018: ID 046d:0821 Logitech, Inc. HD Webcam C910


    Things I've tried so far that do not resolve the issue:



    1. swapped out the OTG host cable for several different cables from different vendors
    2. Swapped out different cameras and models
    3. Resetting USB with a .c program (/dev/bus/usb)



    Questions:



    1. Has anyone else had this problem and found a solution?
    2. Does anyone know what GPIO# is used to control the USB bus power, I would like to write a reset routine that will reset power to the USB port until the camera registers. This is a bit hackie, but it should work. I've tried googeling and digging through the kernel source to find the GPIO# with no success
    3. Any other ideas on how to approach this?





    Thanks

  2. # ADS
    Ads


  3. #2
    Milky Way
    Member #
    10583
    Join Date
    May 2012
    Posts
    2
    Good news - Fixed the problem

    Line 2032 in hub.c, change the following to:

    #define HUB_ROOT_RESET_TIME 500 /* times are in msec */
    #define HUB_SHORT_RESET_TIME 500
    #define HUB_LONG_RESET_TIME 500
    #define HUB_RESET_TIMEOUT 2000

    All is well with all of the USB cameras I have tested.

  4. #3
    Milky Way
    Member #
    12791
    Join Date
    Jul 2012
    Posts
    1
    I am trying to get UVC device to be recognized by tablet or phone, does it appear as normal camera device to the android stack or one has to implement specific UVC viewer?

    I am trying to get this to work on Nexus 7 tablet. I am trying to see other than modifying hub.c as shown above what other stuff I have to implement to get this to work on Nexus 7 tablet.

    Sam

 

 

Remove Ads

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. treadmill woes
    By 916Kev in forum Galaxy Nexus General Discussion
    Replies: 6
    Last Post: 03-11-2012, 04:59 PM
  2. Battery woes
    By tycoon177 in forum Galaxy Nexus Help
    Replies: 18
    Last Post: 02-28-2012, 12:08 PM
  3. Software Update Woes: WEP Encryption
    By Smile in forum Galaxy Nexus General Discussion
    Replies: 0
    Last Post: 02-12-2012, 08:24 AM
  4. Camera ??
    By shizumie in forum Galaxy Nexus General Discussion
    Replies: 39
    Last Post: 11-27-2011, 02:35 PM

Search tags for this page

android uvc camera

,

general uvc

,
general uvc camera
,
nexus 7 powering uvc webcam
,

nexus 7 usb webcam

,

nexus 7 uvc

,
nexus 7 uvc camera
,
nexus 7 webcam uvc
,
nexus webcam android
,
usb3 uvc camera
,

uvc android

,

uvc camera

,
uvc nexus 7
,
uvc nexus7
,
uvc webcam nexus 7
Click on a term to search for related topics.

Tags for this Thread