1

Тема: драйвер для камеры кинетик

his site hosts the Linux driver for the QuickCam Express and other QuickCam-related and QuickCam-compatible USB web cameras. The original work was done by Georg Acher and was known as qce-ga; Jean-Frederic Clere took that driver and created the first Video4Linux (V4L) driver, enabling popular V4L applications such as Xawtv to display pictures from the webcam. Since then, a group of developers around the world have evolved the driver into its current state, adding support for new cameras and chipsets as they have become available. In the process, the driver became known as qc-usb to reflect the fact that it supports a wide variety of USB-attached QuickCam cameras, not just the QuickCam Express.

Current Version

The current version of the qc-usb driver is 0.6.6. Get it from the Sourceforge release page.

Supported Cameras

The qc-usb driver is known to work with the following webcams:

Dexxa Webcam
Labtec Webcam (old model)
LegoCam
Logitech QuickCam Express (old model)
Logitech QuickCam Notebook (some models)
Logitech QuickCam Web
Generally, any USB camera with a USB vendor ID of 0x46d and a USB product ID of 0x840, 0x850, or 0x870 (so, 0x46d:0x840, for example), should work. See How to find the USB ID of a camera.

For more information about QuickCam web cameras, visit the original qc-usb page.
Download

The QuickCam driver is currently available in two forms.

The qc-usb driver was originally focused on the QuickCam Web, but should now work with all cameras that work also with qce-ga. It contains a superset qce-ga's features and is the preferred driver. Almost everyone will use this driver. Download it from our Sourceforge release page.
The CVS versions available by following the Sourceforge CVS usage instructions. The module names are quickcam and qc-usb.
Installation

This section explains how to compile and install the qc-usb driver for the Linux kernel. For the most current instructions, please read the README that comes with the driver. These instructions explain how to compile the driver as a standalone module, which is the only option at this time because the driver has not (yet) been integrated into the mainline kernel.

The following requirements must be met:

Kernel >= 2.2.18, kernel 2.4.x, or kernel 2.6.x with USB and V4L support. If you are running a version 2.2 kernel, you really need to upgrade to at least 2.4.
Kernel source for the kernel you are running. The symbolic link /lib/modules/`uname -r`/build should point to the source directory.
A working installation of gcc >= 2.95
Download the driver as described in the Download section and type the following to extract the source files (where X.XX is the current version number):
$ tar zxvf qc-usb-X.XX.tar.gz
Compiling the source should then be a case of simply of cd-ing to the new qc-usb-X.XX directory and executing the following command:
$ make all
After a few moments the compiler will produce a loadable kernel module (LKM) named quickcam.ko for kernel 2.6.x or quickcam.o for kernel 2.4.x.

If the USB and V4L modules are already loaded, then you can load the module by typing one of the following commands (as root). For a 2.6.x kernel:
# insmod ./quickcam.ko
Or, for kernel 2.4.x:
# insmod ./quickcam.o
Once the quickcam module has been successfully loaded, it is time to fire up your favorite V4L application to start viewing pictures from the webcam.
Unsupported Cameras

Certain new Logitech QuickCam Express and Labtec cameras are reported not to work. These cameras have product IDs of 0x920 and 0x921. For these cameras, you might be able to use the SPCA5xx driver, which incorporates and, evidently, obsoletes this experimental driver.

Other webcams produced by Logitech are supported under Linux but use a separate driver. The following Logitech webcams are not compatible with this driver and are supported by other drivers:

Connectix (now Logitech) parallel port QuickCam
Logitech Clicksmart
Logitech QuickCam 3000 Pro
Logitech QuickCam Home is currently not known to work.
Logitech QuickCam Messenger (experimental) — driver written by Mathias K?ster.
Logitech QuickCam Messenger — an improved version of Mathias K?ster's driver, written by by Christian Magnusson, that includes support for the QuickCam Communicate (mirror).
Logitech QuickCam 4000 Pro
Logitech QuickCam Notebook Pro
Logitech QuickCam Notebook
Logitech QuickCam Traveller is currently not known to work.
Logitech QuickCam VC (USB and Parallel)
Logitech QuickCam Zoom
Contact Us

The best (read, "most efficient") way to contact the developers is to email the qce-ga-discussion mailing list list with details of the problem you are experiencing. To subscribe or unsubscribe from the list, visit the mailing lists page. You can also track the mailing list via the Usenet reflector at gmane.linux.drivers.quickcam.general

Help us help you! If you are having compilation, installation, or usage problems, we'll need at least the following information to be able to help you:

Your Linux distribution and distribution version
The driver version with which you are having trouble
The kernel version (the output of uname -a should be sufficient
The camera's vendor and product IDs (the output of lsusb when the camera is attached should be fine
The camera sensor type, which is printed in the system log when the module loads
The output of /sbin/lsmod | grep -i usb
Any relevant output from /var/log/messages
The development list is only used for patches and development-related issues. Please do not send general usage questions or problems to the developers' list. The developers' list, like the users' list, is reflected to Usenet at gmane.linux.drivers.quickcam.devel.

Disclaimer

возможно с этими драйверами установить камеру на кинетик?

2

Re: драйвер для камеры кинетик

Updated! qc-usb-messenger-1.7.tar.gz (2007-09-02) is the source code for the Quickcam Messenger linux-driver.
gspy-0.1.7-messenger.tar.gz is a modified version of gspy-0.1.7. Changes in the picture-format and window-size.
mpeg_encodeWithPNG_1.tar.gz is a mpeg-encoder. (needed by gspy if you want to create a mpeg-movie from all pictures


http://home.mag.cx/messenger/ вот источник

3

Re: драйвер для камеры кинетик

http://home.mag.cx/messenger/source/

4

Re: драйвер для камеры кинетик

Logitech QuickCam Messenger, всё замечательно работает через palantir:
и вот чтобы получить помимо просто интереса ещё и практическую ценность - кто-нибудь подскажите как настроить на неё встроенную в прошивку сторожевую утилиту, иди аналог ей (чтобы с фоткой на mail) в случае вторжения + ещё бы неплохо что то вроде icq или sms эхо, так как это оперативнее. Я пока тоже ищу.
Если кому интересно то чтоб к это белой коробочке прикрутить Logitech QuickCam Messenger нужно:
1) http://www.fastpath.it/products/pala...n-2.6-mips.tgz - здесь драйвер + сам сервер palantir (жаль не столь функцтональный как хотелось бы)

вот что еще нашел
2) копируете содержимое в /usr/local/ и создаём тут же папку /usr/local/share/palantir/ - куда перекидываем (переименовывая из palantir-mips.conf.sample) palantir.conf
3) правим /usr/local/sbin/post-mount - добавляем insmod /usr/local/quickcam.o
4) chmod +x /usr/local/palantir
5) flashfs save && flashfs commit && flashfs enable && reboot
Всё по default - http://ip_route:3000 - картинка с камеры

5

Re: драйвер для камеры кинетик

Интересная идея) Кто-нибудь реализовал сие чудо?  Можно поподробней с момента распаковки: что и в какой дир... а то я нашел некоторое несоответствие в описании выше и фс  "полного" линукса на keenetic

6

Re: драйвер для камеры кинетик

Staff3D -  ничего распаковывать руками не нужно, в исходники ядра прошивок D4 включены драйвера usb камер. Makefile есть в openwrt. Берете и собираете. Скрипты все сами распакуют.

7

Re: драйвер для камеры кинетик

У кого получилось подключить камеру, напишите по подробнее как это сделать! Пожалуйста.

8

Re: драйвер для камеры кинетик

Zyxmon :

Staff3D -  ничего распаковывать руками не нужно, в исходники ядра прошивок D4 включены драйвера usb камер. Makefile есть в openwrt. Берете и собираете. Скрипты все сами распакуют.

А всё же, можно подробно описать процесс подключения web камеры к кинетику? Думаю, после подключения принтера (что есть в стандартном функционале), это следующий по популярности вопрос у пользователей. Ведь питание есть, сервер есть, USB камера у наличие есть. Что сделать, чтобы всё это заработало? Не все знакомы с Linux как вы. Было бы здорово сделать хотя бы краткую инструкцию. Был бы вам очень благодарен!

9

Re: драйвер для камеры кинетик

Ant, ищите человек с камерой, который разбирается с linux. Иначе никак.

10

Re: драйвер для камеры кинетик

А нет ли специального ПО типа Sane для сканеров?

11

Re: драйвер для камеры кинетик

Sane есть. videodev.ko засунулся, uvcvideo хочет символ v4l_compat_ioctl32, которого беглым поиском не нашел в исходнике v4l-compact.c. Сейчас выкачиваю с kernel.org ядро 2.6.32, вставлю драйверы от него

12

Re: драйвер для камеры кинетик

На самом деле, не совсем понял смысл написанного, но вроде бы процесс идёт. Это очень хорошо! Если надо, могу поучаствовать в процессе тестирования. Есть две камеры (USB) одна подревнее - Logitech, вторая более свежая - от Microsoft.

13

Re: драйвер для камеры кинетик

Ant, важно не Logitech или Microsoft - а то, что это uvc видеокамера. Про такие обычно пишут - не требует драйвера (под windows). А под linux нужен uvc драйвер. Вы в гугле в состоянии найти - как заставить Ваши камеры работать под linux - какие им нужны дрова - uvc или нет.

14

Re: драйвер для камеры кинетик

Понятно. Тогда, думаю, старая камера Logitech - точно не UVC. Я при переходе на Висту в своё время никак не смог заставить её работать (Logitech не выпустила к ней новый дрейвер, а просто так камера работать не хотела).

А вот вторая - Microsoft LifeCam VX-3000. Нашёл вот тут http://forum.ixbt.com/topic.cgi?id=82:416-9 описание Microsoft VX-5000 - говорят, что да, UVC.

15

Re: драйвер для камеры кинетик

Господа, это победа (ничего не пришлось докачивать, нужно было доставить compact-ioctl32.ko)

29 окт 18:58:29    kernel    usbcore: registered new interface driver uvcvideo
29 окт 18:58:29    kernel    USB Video Class driver (SVN r209)
29 окт 18:58:51    kernel    usb 1-1.2: new high speed USB device using rt3xxx-ehci and address 5
29 окт 18:58:51    kernel    usb 1-1.2: configuration #1 chosen from 1 choice
29 окт 18:58:51    kernel    Found format YUV 4:2:2 (YUYV).
29 окт 18:58:51    kernel    - 640x480 (30.0 fps)
29 окт 18:58:51    kernel    - 352x288 (30.0 fps)
29 окт 18:58:51    kernel    - 320x240 (30.0 fps)
29 окт 18:58:51    kernel    - 176x144 (30.0 fps)
29 окт 18:58:51    kernel    - 160x120 (30.0 fps)
29 окт 18:58:51    kernel    uvcvideo: Found UVC 1.00 device Microsoft LifeCam (045e:074a)
29 окт 18:58:51    kernel    uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround

Отредактировано xakep666 (2012-10-29 18:04:38)

16

Re: драйвер для камеры кинетик

Следующий этап - mjpg-streamer

17

Re: драйвер для камеры кинетик

Скомпилить mjpg-streamer пока не получается, но скомпилил motion, запустил, лампочка на вебке загжлась, потряс камеру - получил кучу фоток

18

Re: драйвер для камеры кинетик

xakep666, поздравляю! И что теперь со всем этим делать дальше?

19

Re: драйвер для камеры кинетик

как весь софт соберу, упакую в ipk и выложу сюда (Makefile-ы тоже)

20

Re: драйвер для камеры кинетик

xakep666 :

Скомпилить mjpg-streamer пока не получается, но скомпилил motion, запустил, лампочка на вебке загжлась, потряс камеру - получил кучу фоток

mjpg-streamer рекомендуют на wiki openwrt. motion - сгодится. Вроде на форуме Олега есть тема про motion.

21

Re: драйвер для камеры кинетик

xakep666 :

как весь софт соберу, упакую в ipk и выложу сюда (Makefile-ы тоже)

О, круто! Спасибо большое за ваш труд!

И можно вопрос - как всё это дело будет управляться? Точнее - каков будет процесс удалённого получения изображения с камеры? Там веб-интерфейс, или просто картинки с камеры будут на жесткий диск по расписанию выкладываться?

22

Re: драйвер для камеры кинетик

Ant :

Там веб-интерфейс, или просто картинки с камеры будут на жесткий диск по расписанию выкладываться?

Поищите тему на форуме Олега - http://wl500g.info/forumdisplay.php?86- … 9-%28RU%29
Скорее всего все делать ручками - через консоль. Linux на уровне чайника нужно будет изучить.

23

Re: драйвер для камеры кинетик

Mjpg-streamer собрал и завел (правда ревизию 63), проц грузит на 100% в yuv.  Следующим делом - сделать скрипты для всего этого добра и исправить до конца makefile'ы (оригинал из опенврт кривоват по зависимостям)

Отредактировано xakep666 (2012-10-29 21:02:52)

24

Re: драйвер для камеры кинетик

Вроде у MJPG-streamer есть web-интерфейс на основе собственного сервера? Он работает?

25

Re: драйвер для камеры кинетик

Тестим. Пока собрал только motion и модули ядра, mjpg-streamer будет завтра (он компилится и работает, нужен только скрипт)