Hi all,
I used the TI-Android-FroYo-DevKit-V2.2 to install Adroid on the board and now I want to connect USB camera. What do I have to do to make it work? Do I have to use a certain camera or drivers?
Thanks,
Johnny
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.
Hi all,
I used the TI-Android-FroYo-DevKit-V2.2 to install Adroid on the board and now I want to connect USB camera. What do I have to do to make it work? Do I have to use a certain camera or drivers?
Thanks,
Johnny
You can use a UVC compliant USB camera. However the default kernel config used by the DevKit may not support UVC camera. You can follow the steps mentioned at the below mentioned rowboat forum post to get UVC support enabled in the kernel: http://groups.google.com/group/rowboat/browse_thread/thread/2778fef10df568d7/85979b2736e42ec4
I followed as you said to configure the kernel .But it doesnot work . In the terminal, it printed folloing information after the camera device was plugged in:
usb 1-2: USB disconnect, address 4
binder: release 1428:1428 transaction 3113 out, still active
binder: 1090:1096 transaction failed 29189, size 52-0
binder: 1090:1096 transaction failed 29189, size 52-0
binder: 1171:1171 transaction failed 29189, size 84-0
usb 1-2: new high speed USB device using ehci-omap and address 5
usb 1-2: New USB device found, idVendor=05a9, idProduct=4519
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2: Product: USB 2.0 HD Camera
usb 1-2: Manufacturer: Corp.
gspca: probing 05a9:4519
ov519: Write reg 0x006d -> [0x5a] failed
ov519: OV519 Config failed
ov519: probe of 1-2:1.0 failed with error -16
uvcvideo: Found UVC 1.00 device USB 2.0 HD Camera (05a9:4519).
When I tried to run Camera application in Android, it failed to display anything and an exception dialog opened. In logcat, it printed:
V/camera ( 1465): startPreview
D/CameraHardware( 1010): startPreview :opening device!!!!,width:320,height:240
I/ActivityManager( 1084): Displayed activity com.android.camera/.Camera: 459 ms (total 459 ms)
E/CameraHardware( 1010): return Preview Heap
W/IInputConnectionWrapper( 1174): showStatusIcon on inactive InputConnection
W/OrientationEventListener( 1465): Cannot detect sensors. Not enabled
D/dalvikvm( 1465): GC_EXTERNAL_ALLOC freed 1964 objects / 125264 bytes in 28ms
D/libEGL ( 1465): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 1465): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
D/libEGL ( 1465): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
D/libEGL ( 1465): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
V/GLRootView( 1465): onSurfaceChanged: 556x414, gl10: com.google.android.gles_jni.GLImpl@4400bad8
Are you connecting the camera directly to the USB port on the evm? In that case your webcam may not work correctly.
We recommend to connect USB devices to the evm using a self-powered USB hub. See http://processors.wiki.ti.com/index.php/TI-Android-FroYo-DevKit-V2.2_UserGuide#Setting_up_Hardware
Thanks Vishveshwar, maybe it was caused by lacking of self-powerd usb-hub. I'll try later.
I missed the similar error when USB Camera connected to the AM3517 EVM running android FroYo2.2.
"Sorry. the application Camera(process com.andoid.camera) has stopped
unexpectedly.Please try again."
After Connect to the Hi-speed Hub console show below message when using adb debugger:
android_usb gadget: high speed config #1: android
adb_function_set_alt: maxsize = 512
usb 1-1: new high speed USB device using ehci-omap and address 2
usb 1-1: New USB device found, idVendor=1871, idProduct=01f0
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB2.0 Camera
usb 1-1: Manufacturer: AVEO Technology Corp.
uvcvideo: Found UVC 1.00 device USB2.0 Camera (1871:01f0)
vpfe-capture vpfe-capture: width = 320, height = 240, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 320, height = 240, bpp = 2, bytesperline = 640, sizeimage = 153600
vpfe-capture vpfe-capture: width = 320, height = 240, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 320, height = 240, bpp = 2, bytesperline = 640, sizeimage = 153600
/CameraHardware( 813): Set Parameter...!!
D/CameraHardware( 813): preview width:320,height:240
D/CameraHardware( 813): Validating 1600, 320 and 1200, 240
D/CameraHardware( 813): Validating 1024, 320 and 768, 240
D/CameraHardware( 813): Validating 640, 320 and 480, 240
D/CameraHardware( 813): Validating 352, 320 and 288, 240
D/CameraHardware( 813): Validating 320, 320 and 240, 240
D/CameraHardware( 813): picture width:320,height:240
D/CameraHardware( 813): Validating 1600, 320 and 1200, 240
D/CameraHardware( 813): Validating 1024, 320 and 768, 240
D/CameraHardware( 813): Validating 640, 320 and 480, 240
D/CameraHardware( 813): Validating 352, 320 and 288, 240
D/CameraHardware( 813): Validating 320, 320 and 240, 240
D/CameraHardware( 813): Preview Format:yuv422sp,Picture Format:jpeg
D/Camera ( 4732): app passed NULL surface
D/CameraHardware( 813): Set Parameter...!!
D/CameraHardware( 813): preview width:320,height:240
D/CameraHardware( 813): Validating 1600, 320 and 1200, 240
D/CameraHardware( 813): Validating 1024, 320 and 768, 240
D/CameraHardware( 813): Validating 640, 320 and 480, 240
D/CameraHardware( 813): Validating 352, 320 and 288, 240
D/CameraHardware( 813): Validating 320, 320 and 240, 240
D/CameraHardware( 813): picture width:1600,height:1200
D/CameraHardware( 813): Validating 1600, 1600 and 1200, 1200
D/CameraHardware( 813): Preview Format:yuv422sp,Picture Format:jpeg
V/camera ( 4732): startPreview
D/CameraHardware( 813): startPreview :opening device!!!!,width:320,height:240
E/V4L2Camera( 813): VIDIOC_S_PARM Fail....
E/V4L2Camera( 813): Init_parm Failed: Invalid argument
E/CameraHardware( 813): startPreview failed: cannot open device.
W/dalvikvm( 4732): threadid=8: thread exiting with uncaught exception (group=0x4001d7c8)
E/AndroidRuntime( 4732): FATAL EXCEPTION: Thread-9
E/AndroidRuntime( 4732): java.lang.RuntimeException: startPreview failed
E/AndroidRuntime( 4732): at com.android.camera.Camera.startPreview(Camera.java:1677)
E/AndroidRuntime( 4732): at com.android.camera.Camera.access$5600(Camera.java:94)
E/AndroidRuntime( 4732): at com.android.camera.Camera$4.run(Camera.java:930)
E/AndroidRuntime( 4732): at java.lang.Thread.run(Thread.java:1096)
E/AndroidRuntime( 4732): Caused by: java.lang.RuntimeException: startPreview failed
E/AndroidRuntime( 4732): at android.hardware.Camera.startPreview(Native Method)
E/AndroidRuntime( 4732): at com.android.camera.Camera.startPreview(Camera.java:1674)
E/AndroidRuntime( 4732): ... 3 more