This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UVC camera on beagle board with Android ICS

Other Parts Discussed in Thread: WL1271

HI all,

  Iam working on UVC camera with Android ICS on Beagle board xM  REV-c . I have enabled the default drivers for USB camera.But while booting but my device is not detecting as a camera.

please help me.It will appreciated.

usb 1-2.5: SerialNumber: E1919800
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
input: UVC Camera (046d:0825) as /devices/platform/ehci-omap.0/usb1/1-2/1-2.5/1-2.5:1.0/inp2
4:3:3: cannot get freq at ep 0x86
ehci-omap ehci-omap.0: remove, state 1
usb usb1: USB disconnect, address 1
usb 1-2: USB disconnect, address 2
4:3:4: cannot set freq 48000 to ep 0x86
usb 1-2.1: USB disconnect, address 3
smsc95xx 1-2.1:1.0: usb0: unregister 'smsc95xx' usb-ehci-omap.0-2.1, smsc95xx USB 2.0 Ethert
usb 1-2.5: USB disconnect, address 4
EXT3-fs: barriers not enabled
ehci-omap ehci-omap.0: USB bus 1 deregistered
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap.0 supply hsusb0 not found, using dummy regulator
ehci-omap.0 supply hsusb1 not found, using dummy regulator
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: OMAP-EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.37-g06ebbba ehci_hcd
usb usb1: SerialNumber: ehci-omap.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
kjournald starting. Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 204K
init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/sgx/rc.pvr', disabling 'pvr'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
enabling adb
adb_open

Thanks,

Ranjith

  • hi Ranjith

    please follow this

    http://processors.wiki.ti.com/index.php/TI-Android-ICS-PortingGuide#USB_Camera

    and change your /dev/video* according to your usb device.

    follow this

    http://e2e.ti.com/support/embedded/android/f/509/p/232037/1165159.aspx#1165159

    maybe it will work.

  • hi ranjith

    have you came across this problem ever

    ....................................................

    my camera (usb) is working fine with inbuilt app.(i have configure according to the ti ics porting guide)

    but when ever i am trying to use webapp like .appspot.com/ .
     

    i am not able to get the preview. even chrome is asking for permission and i am allowing, but nothing.

    same thing works fine for other android phones.

    from kernel i  am getting this message

    wl1271: ERROR exceeded max RX BA sessions

    here is my logcat




    --------- beginning of /dev/log/main
    D/dalvikvm( 1694): GC_CONCURRENT freed 628K, 10% free 8611K/9479K, paused 3ms+5ms
    --------- beginning of /dev/log/system
    I/ActivityManager( 1256): Start proc com.android.chrome:sandboxed_process3 for service com.android.chrome/org.chromium.content.app.SandboxedPro}
    D/ChildProcessLauncher( 1694): Setting up connection to process: slot=3
    D/dalvikvm( 2093): GC_CONCURRENT freed 163K, 4% free 6807K/7047K, paused 3ms+2ms
    I/dalvikvm( 2093): Could not find method android.provider.Settings$Global.getInt, referenced from method com.google.android.apps.chrome.ChromeM1
    W/dalvikvm( 2093): VFY: unable to resolve static method 1512: Landroid/provider/Settings$Global;.getInt (Landroid/content/ContentResolver;LjavaI
    D/dalvikvm( 2093): VFY: replacing opcode 0x71 at 0x0009
    I/ChildProcessService( 2093): Creating new ChildProcessService pid=2093
    D/ChildProcessLauncher( 1694): on connect callback, pid=2093 context=6749944
    I/LibraryLoader( 2093): Loading: chrome.1847.114
    D/dalvikvm( 2093): Trying to load lib /data/data/com.android.chrome/app_lib/libchrome.1847.114.so 0x410afc10
    D/dalvikvm( 2093): Added shared lib /data/data/com.android.chrome/app_lib/libchrome.1847.114.so 0x410afc10
    I/LibraryLoader( 2093): Time to load native libraries: 38 ms (timestamps 8145-8183)
    I/LibraryLoader( 2093): Expected native library version number "34.0.1847.114",actual native library version number "34.0.1847.114"
    I/chromium( 2093): [INFO:library_loader_hooks.cc(117)] Chromium logging enabled: level = 0, default verbosity = 0
    D/dalvikvm( 2093): GREF has increased to 201
    I/chromium( 1694): [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
    I/ActivityManager( 1256): Process com.android.chrome:sandboxed_process1 (pid 2009) has died.
    W/ActivityManager( 1256): Scheduling restart of crashed service com.android.chrome/org.chromium.content.app.SandboxedProcessService1 in 5000ms
    I/chromium( 1694): [INFO:child_process_launcher.cc(390)] ChromeProcess: Stopping process with handle 2009
    D/ChildProcessLauncher( 1694): stopping child connection: pid=2009
    W/ChildProcessConnection( 1694): onServiceDisconnected (crash or killed by oom): pid=0
    D/dalvikvm( 1694): GC_CONCURRENT freed 813K, 12% free 8395K/9479K, paused 3ms+5ms
    D/****CameraHAL( 1164): cameraHal BACK 0
    D/****CameraHAL( 1164): cameraHal 0
    D/****CameraHAL( 1164): cameraHal BACK 0
    D/****CameraHAL( 1164): cameraHal 0
    I/CameraService( 1164): Opening camera 0
    I/****CameraHAL( 1164): camera_device open
    D/CameraHardware( 1164): Set Parameter...!!
    D/CameraHardware( 1164): PreviewFormat yuv422sp
    D/CameraHardware( 1164): PictureFormat jpeg
    D/CameraHardware( 1164): preview width:320,height:240
    D/CameraHardware( 1164): picture width:320,height:240
    D/CameraHardware( 1164): FRAMERATE 15
    D/CameraHardware( 1164): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 1164): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware( 1164): enableMsgType:1037
    I/AwesomePlayer( 1164): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
    D/dalvikvm( 1694): GC_CONCURRENT freed 609K, 12% free 8429K/9479K, paused 4ms+11ms
    I/AwesomePlayer( 1164): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
    I/chromium( 2093): [INFO:SkUtilsArm.cpp(177)] Device supports ARM NEON instructions!
    I/chromium( 2093):
    D/CameraHardware( 1164): Set Parameter...!!
    D/CameraHardware( 1164): PreviewFormat yuv422sp
    D/CameraHardware( 1164): PictureFormat jpeg
    D/CameraHardware( 1164): preview width:320,height:240
    D/CameraHardware( 1164): picture width:320,height:240
    D/CameraHardware( 1164): FRAMERATE 15
    D/CameraHardware( 1164): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 1164): Preview Resolution by CamHAL 320 x 240
    E/Camera  ( 1694): Invalid range list string=null
    D/CameraHardware( 1164): disableMsgType:16
    D/CameraHardware( 1164): disableMsgType:65535
    I/CameraService( 1164): Destroying camera 0
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/V4L2Camera( 1164): Uninit: Unmap failed
    I/dalvikvm( 1694): Could not find method android.view.View.announceForAccessibility, referenced from method org.chromium.chrome.browser.infobard
    W/dalvikvm( 1694): VFY: unable to resolve virtual method 4718: Landroid/view/View;.announceForAccessibility (Ljava/lang/CharSequence;)V
    D/dalvikvm( 1694): VFY: replacing opcode 0x6e at 0x004b
    I/chromium( 1694): [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
    E/chromium( 1694): [ERROR:CONSOLE(1)] "Uncaught ReferenceError: ntp is not defined", source:  (1)
    W/chromium( 1694): [WARNING:CONSOLE(4331)] "i18n-values: Missing value for "syncLoading"", source: chrome://newtab/ (4331)
    I/chromium( 1694): [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
    E/chromium( 1694): [ERROR:CONSOLE(1)] "Uncaught ReferenceError: ntp is not defined", source:  (1)
    E/chromium( 1694): [ERROR:CONSOLE(1)] "Uncaught ReferenceError: ntp is not defined", source:  (1)
    W/chromium( 1694): [WARNING:CONSOLE(4331)] "i18n-values: Missing value for "syncLoading"", source: chrome://newtab/ (4331)
    D/dalvikvm( 1694): GC_CONCURRENT freed 444K, 11% free 8530K/9479K, paused 2ms+15ms
    D/VideoCapture( 1694): allocate: requested (640x480)@30fps
    D/****CameraHAL( 1164): cameraHal BACK 0
    D/****CameraHAL( 1164): cameraHal 0
    I/CameraService( 1164): Opening camera 0
    I/****CameraHAL( 1164): camera_device open
    D/CameraHardware( 1164): Set Parameter...!!
    D/CameraHardware( 1164): PreviewFormat yuv422sp
    D/CameraHardware( 1164): PictureFormat jpeg
    D/CameraHardware( 1164): preview width:320,height:240
    D/CameraHardware( 1164): picture width:320,height:240
    D/CameraHardware( 1164): FRAMERATE 15
    D/CameraHardware( 1164): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 1164): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware( 1164): enableMsgType:1037
    D/****CameraHAL( 1164): cameraHal BACK 0
    D/****CameraHAL( 1164): cameraHal 0
    D/VideoCapture( 1694): allocate: orientation dev=270, cam=0, facing=0
    D/CameraHardware( 1164): Set Parameter...!!
    D/CameraHardware( 1164): PreviewFormat yuv422sp
    D/CameraHardware( 1164): PictureFormat jpeg
    D/CameraHardware( 1164): preview width:320,height:240
    D/CameraHardware( 1164): picture width:320,height:240
    D/CameraHardware( 1164): FRAMERATE 15
    D/CameraHardware( 1164): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 1164): Preview Resolution by CamHAL 320 x 240
    E/Camera  ( 1694): Invalid range list string=null
    E/VideoCapture( 1694): allocate: no fps range found
    E/chromium( 1694): [ERROR:video_capture_device_android.cc(286)] VideoCaptureDeviceAndroid::SetErrorState: failed to allocate
    D/Camera  ( 1694): app passed NULL surface
    D/CameraHardware( 1164): disableMsgType:16
    D/CameraHardware( 1164): disableMsgType:65535
    I/CameraService( 1164): Destroying camera 0
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/V4L2Camera( 1164): Uninit: Unmap failed
    E/audio_hw_primary( 1164): Route MIXER CTRL name: HeadsetR Mixer AudioR2
    E/audio_hw_primary( 1164): Route MIXER CTRL name: HeadsetL Mixer AudioL2
    E/audio_hw_primary( 1164): Route MIXER CTRL name: Headset Playback Volume
    E/audio_hw_primary( 1164): Route MIXER CTRL name: Analog Left AUXL Capture Switch
    I/chromium( 1694): [INFO:CONSOLE(45)] "[object NavigatorUserMediaError]", source: http://videotesttechm.appspot.com/ (45)
    W/GooglePlayServicesUtil( 1694): Google Play Store is missing.
    W/GooglePlayServicesUtil( 1694): Google Play Store is missing.