haomin@ubuntu :/mnt/sd/usr/bin$ lsusb
Bus 001 Device 002: ID 0c45:62f1 Microdia
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
sudo dmesg | tail
[ 3445.710000] usb 1-1: new high-speed USB device number 3 using sw-ehci
[ 3445.900000] usb 1-1: New USB device found, idVendor=0c45, idProduct=62f1
[ 3445.900000] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 3445.900000] usb 1-1: Product: USB 2.0 Camera
[ 3445.900000] usb 1-1: Manufacturer: Sonix Technology Co., Ltd.
[ 3445.900000] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62f1)
[ 3445.910000] input: USB 2.0 Camera as /devices/platform/sw-ehci.1/usb1/1-1/1-1:1.0/input/input2
378 while(CameraNumber < MAX_CAMERAS) {
379 /* Print the CameraNumber at the end of the string with a width of one character */
380 sprintf(deviceName, ”/dev/video”, CameraNumber);
381 /* Test using an open to see if this new device name really does exists. */
382 deviceHandle = open(deviceName, O_RDONLY);
383 if (deviceHandle != -1) {
384 /* This device does indeed exist – add it to the total so far */
385 // add indexList
386 indexList|=(1 << CameraNumber);
387 numCameras++;
388 }