Author Topic: Problem with usb cameras -how to make template?  (Read 1251 times)

Vinterhem

  • Making baby steps
  • Posts: 2
    • View Profile
Problem with usb cameras -how to make template?
« on: April 04, 2009, 11:04:37 pm »
Hi!

Lets start this question with the fact that i am absolutely new to linux and lmce.. But I like it!

As I have three usb cameras, and can not get any of them to function, I would really be happy if someone could help me, and explain exactly how to make a template for the most advanced of them, the Qeye that is so nicely fitted into my new BenQ M2200HD screen. And yes, I have tryed to use every thread i could find here, related to this.

The camera has, according to the output of "lsusb -v" a built in microphone.  Could one use this output in any way for the template to get the camera working?  I have spended most of two days trying to make a template on my own, and yes it loads alright, pnp-finds the camera by vendor id, but how i try i never get any picture from the camera..

..Any help are welcome..
Thanks in advance!
/Peter

Part of the lsusb -v output:



Bus 005 Device 005: ID 04f2:a142 Chicony Electronics Co., Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 Common Class
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x04f2 Chicony Electronics Co., Ltd
  idProduct          0xa142
  bcdDevice            1.00
  iManufacturer           1 Chicony Corp.
  iProduct                2 QEye 2.0M pixel
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          783
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              320mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0
      iFunction               2 QEye 2.0M pixel
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1

.....
« Last Edit: April 05, 2009, 11:37:14 am by Vinterhem »

darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: Problem with usb cameras -how to make template?
« Reply #1 on: April 04, 2009, 11:20:54 pm »
You will need drivers for the camera under linux and then you just use the generic usb camera template controlled by motion wrapper under linuxmce.

Unfortunately, there are quite a few cameras that do not have drivers - but they may still show  up in lsusb.
Your best bet is to to check dmesg to see if a driver has been loaded. It will usually create a /dev/video entry. If it has that then just follow the wiki pages for setting up generic usb camera.

If drivers have not been loaded for you camera they may just need to be loaded. Google your camera and linux to see what you can find out.

HTH
Darren

Vinterhem

  • Making baby steps
  • Posts: 2
    • View Profile
Re: Problem with usb cameras -how to make template?
« Reply #2 on: April 05, 2009, 12:56:39 am »
Thanx for new commands I did not know existed! =)

This lines in "dmesg" output indicate that this camera got a driver loaded:

[   67.528719] Linux video capture interface: v2.00
[   67.667196] uvcvideo: Found UVC 1.00 device QEye 2.0M pixel (04f2:a142)
[   67.668368] usbcore: registered new interface driver uvcvideo
[   67.668420] USB Video Class driver (v0.1.0)

But there was no "/dev/video" in the output (From the MD, where the camera are attached)

And I have done some googling already, and tested every solution suggested in wiki / forums that seems to be related.
..been stuck with this for almost 48 hours..  =)

/Peter