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:
$make
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.
October 4, 2014 at 10:32 pm
insmod stk1160.ko is needed.
lsmod show:
root@ubuntu:/# lsmod
Module Size Used by
stk1160 19276 0
sw_interrupt 3109 0
gpio 5280 0
pwm 10672 0
adc 2373 0
hardwarelib 2127 4 sw_interrupt,gpio,pwm,adc
g_ether 45219 0
sw_usb_udc 20366 0
udc_core 5289 2 g_ether,sw_usb_udc
rt5370sta 617545 0
8188eu 475819 0
8192cu 433928 0
mali_drm 2095 1
drm 156552 2 mali_drm
mali 91510 0
disp_ump 691 0
ump 44066 4 mali,disp_ump
Then dmesg shows :
[58986.265242] ehci_irq: port change detect
[58986.544363] usb 3-1: new high-speed USB device number 13 using sw-ehci
[58986.695093] usb 3-1: New USB device found, idVendor=05e1, idProduct=0408
[58986.695112] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[58986.695128] usb 3-1: Product: USB 2.0 Video Capture Controller
[58986.695139] usb 3-1: Manufacturer: Syntek Semiconductor
[59188.645013] usb 3-1: New device Syntek Semiconductor USB 2.0 Video Capture Controller @ 480 Mbps (05e1:0408, interface 0, class 0)
[59188.645038] usb 3-1: video interface 0 found
[59188.694853] stk1160: driver ver 0.9.5 successfully loaded
[59188.696713] stk1160: registers to NTSC like standard
[59188.698001] stk1160 3-1:1.0: V4L2 device registered as video0
[59188.698148] usbcore: registered new interface driver stk1160