Easycap STK1160 USB dongle can capture high quality video and sound directly through the USB 2.0 interface.
In this post, we show the steps to install easycap STK1160 USB dongle on pcDuino3.
1. We will first do ‘sudo apt-get update’ to bring the source list to date.
2. The STK1160 driver for pcDuino can be found at https://github.com/pcduino/Stk1160-raspberrypi.
We need to install git by typing ‘$sudo apt-get install git’, and then download the driver source files by ‘$sudo clone git://github.com/pcduino/Stk1160-raspberrypi’.
3. Navigate to directory ‘Stk1160-raspberrypi’, and compile the driver by typing:
Unexpectedly, we got the following error message:
ubuntu@ubuntu:~/Stk1160-raspberrypi$ make make -C /lib/modules/3.4.79+/build M=/home/ubuntu/Stk1160-raspberrypi modules make: *** /lib/modules/3.4.79+/build: No such file or directory. Stop. make: *** [all] Error 2
By refer to the post Install pcduino-linux-headers-3.4.79+ and compile driver on pcDuino, we know that we need to first install the linux headers in order to compile the driver.
So we install pcduino linux headers by:
$ sudo apt-get install pcduino-linux-headers-3.4.79+
After install the linux header, we can then compile the driver:
We can install the driver by typing “$sudo make install’. Then we run ‘$sudo depmod -a’.
Then we plug in the STK1160 dongle through the USB hub:
Run ‘$sudo dmesg’ to check:
[ 4763.843716] usb 4-1.1: new full-speed USB device number 4 using sw-ohci [ 4763.955704] usb 4-1.1: not running at top speed; connect to a high speed hub [ 4763.965711] usb 4-1.1: New USB device found, idVendor=05e1, idProduct=0408 [ 4763.965731] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4763.965745] usb 4-1.1: Product: USB 2.0 Video Capture Controller [ 4763.965756] usb 4-1.1: Manufacturer: Syntek Semiconductor [ 4764.021560] usb 4-1.1: New device Syntek Semiconductor USB 2.0 Video Capture Controller @ 12 Mbps (05e1:0408, interface 0, class 0) [ 4764.021586] usb 4-1.1: video interface 0 found [ 4764.021598] usb 4-1.1: must be connected to a high-speed USB 2.0 port [ 4764.021751] usbcore: registered new interface driver stk1160
It shows that the device was detected correctly and driver was loaded correctly. However, STK1160 needs a USB 2.0. But my USB hub needs to be a very old one, and doesn’t support it. Let’s plug STK1160 dongle directly to USB port of pcDuino, and run ‘$sudo dmesg’ again:
[ 5176.182910] usb 3-1: new high-speed USB device number 3 using sw-ehci [ 5176.333622] usb 3-1: New USB device found, idVendor=05e1, idProduct=0408 [ 5176.333646] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 5176.333660] usb 3-1: Product: USB 2.0 Video Capture Controller [ 5176.333670] usb 3-1: Manufacturer: Syntek Semiconductor [ 5176.335000] usb 3-1: New device Syntek Semiconductor USB 2.0 Video Capture Controller @ 480 Mbps (05e1:0408, interface 0, class 0) [ 5176.335028] usb 3-1: video interface 0 found [ 5177.273270] stk1160: driver ver 0.9.5 successfully loaded [ 5177.275223] stk1160: registers to NTSC like standard [ 5177.276475] stk1160 3-1:1.0: V4L2 device registered as video1
Now it works! STK1160 shows up as /dev/video1.