USB devices with android : Kanamaru Lab. in Kogakuin Univ.

Usage of USB webcam with customized Galaxy Nexus (android 4.0.3)

I used USB webcam(s) (Logicool QVX-13NS) with customized Galaxy Nexus (android 4.0.3). Only low-power webcams seem to work fine. The launch of application fails unless the application is launched in an appropriate timing after the insertion of the USB cable. I enabled the following kernel configuration,
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
in tuna_defconfig, and I commented out the following line in drivers/media/video/Kconfig.
# source "drivers/media/video/omapgfx/Kconfig"
Then I gave a permission 666 to /dev/video0,1 in ueventd.tuna.rc.
Finally, I wrote some applications that access /dev/video0,1 through JNI.

Source code of simple version
Source code of simple version (two cameras)





Usage of USB webcam with Iconia Tab A500 (stock rom)

I used USB webcam(s) (Logicool Webcam C210) with Iconia Tab A500 (stock rom). I wrote some applications that access /dev/video0,1 through JNI.

Source code of simple version
Source code of simple version (two cameras)





USB to serial converter with stock android in USB host mode

USB to serial converter is used with stock android in USB host mode. REX-USB60MI (RATOC systems) and FTDriver (by ksksue) are used.





USB to serial converter with customized Galaxy Nexus (android 4.0.3)

I used USB to serial converter with customized Galaxy Nexus (android 4.0.3). I tried communication with Windows, reading ultrasonic sensor, and controlling a robot.
I enabled the following kernel configuration,
CONFIG_USB_SERIAL_FTDI_SIO=y
CONFIG_USB_SERIAL_PL2303=y
in tuna_defconfig, and gave a permission 666 to /dev/ttyUSB0 in ueventd.tuna.rc.
And I wrote some applications that access /dev/ttyUSB0 through JNI.