Hi, Thanks for your help. Usb mouse is working now!! .. I have gone throush USB CAM folder. Could you please tell me which file contains usb driver for your CPIA webcam. I have seen 1 folder named "contrib" under usbcam directory. I think that it contains lots of linux usb webcam drivers under directory "l4/pkg/usb/examples/usbcam/contrib/linux/drivers/media/video" .
I didn't understand make files in every directory. Could you please explain compilation procedure without using make files. What is the use of contrib directory under usbcam folder? Please let us know which files are responisble for usb webcam device driver function.
I am a beginner . Please help me.
Thanks Tapas
On Fri, Apr 10, 2009 at 4:43 PM, Dirk Vogt dvogt@os.inf.tu-dresden.de wrote:
Hi,
- For usb camera a dope has started and a small menu has came showing
"usbcam" and "exit". But it is not showing anything when I am clicking on usbcam.
That's the normal behavior of usbcam, when it does not find a usbcam.
However you should see in the debugging console that usbcore and have usbcam are initialized.
When usbcam recognizes a new cam, a new button video0 will appear. By clicking this button usbcam will start the video capture.
- For usbhid , we have connected a usb mouse . But it was not
working. Here is the menu.lst , I have used for usb mouse.
It seems you forgot to put usbcore into your menu.lst. Remember, DDEUSB uses a client/server approach to offer USB functionality. The usbcore is the only one to touch the host-controller hardware and thus needed for all other USB drivers.
Please know that we have a plan to add support for new webcams . Please let us know following information :
- Please provide us the menu.lst which you have used for usbcam and usbhid.
They do not differ much from yours.
- I have found following files under directory
"/home/tapas/10AprilUserbuild/source/pkg/usb/examples/usbcam/src" main.c , support.c , usbcam.c and libv4lconvert (directory)
Actually usbcam.c is just containing the gui and the v4l and v4l2 capturing code. The first should be documented somewhere in the dope package and for the second there is plenty of documentation including small examples spread all over the world wide web.
the libv4lconvert was taken from libv4l [1] and was needed to convert the data from the video device from e.g. jpeg to the vscreen's pixel format. Further, support.c implements some functions the were needed by linux kernel part of V4L.
If you have a look at the makefile, you can probably see how to add support for new usbcams.
Good luck, Dirk.
Hi, Could you please tell us how can I easily port a linux usb webcam driver . Please know that I am a beginner . Please explain procedure to me..
On Fri, Apr 10, 2009 at 9:30 PM, tapas kundu tapaskundu1@gmail.com wrote:
Hi, Thanks for your help. Usb mouse is working now!! .. I have gone throush USB CAM folder. Could you please tell me which file contains usb driver for your CPIA webcam. I have seen 1 folder named "contrib" under usbcam directory. I think that it contains lots of linux usb webcam drivers under directory "l4/pkg/usb/examples/usbcam/contrib/linux/drivers/media/video" .
I didn't understand make files in every directory. Could you please explain compilation procedure without using make files. What is the use of contrib directory under usbcam folder? Please let us know which files are responisble for usb webcam device driver function.
I am a beginner . Please help me.
Thanks Tapas
On Fri, Apr 10, 2009 at 4:43 PM, Dirk Vogt dvogt@os.inf.tu-dresden.de wrote:
Hi,
- For usb camera a dope has started and a small menu has came showing
"usbcam" and "exit". But it is not showing anything when I am clicking on usbcam.
That's the normal behavior of usbcam, when it does not find a usbcam.
However you should see in the debugging console that usbcore and have usbcam are initialized.
When usbcam recognizes a new cam, a new button video0 will appear. By clicking this button usbcam will start the video capture.
- For usbhid , we have connected a usb mouse . But it was not
working. Here is the menu.lst , I have used for usb mouse.
It seems you forgot to put usbcore into your menu.lst. Remember, DDEUSB uses a client/server approach to offer USB functionality. The usbcore is the only one to touch the host-controller hardware and thus needed for all other USB drivers.
Please know that we have a plan to add support for new webcams . Please let us know following information :
- Please provide us the menu.lst which you have used for usbcam and usbhid.
They do not differ much from yours.
- I have found following files under directory
"/home/tapas/10AprilUserbuild/source/pkg/usb/examples/usbcam/src" main.c , support.c , usbcam.c and libv4lconvert (directory)
Actually usbcam.c is just containing the gui and the v4l and v4l2 capturing code. The first should be documented somewhere in the dope package and for the second there is plenty of documentation including small examples spread all over the world wide web.
the libv4lconvert was taken from libv4l [1] and was needed to convert the data from the video device from e.g. jpeg to the vscreen's pixel format. Further, support.c implements some functions the were needed by linux kernel part of V4L.
If you have a look at the makefile, you can probably see how to add support for new usbcams.
Good luck, Dirk.
Hi,
Hi, Could you please tell us how can I easily port a linux usb webcam driver . Please know that I am a beginner . Please explain procedure to me..
When you have a look at the Makefile in examples/usbcam/src/, you'll see that, there are variables which contain the source files that should be compiled. There are several of this variables containing the files for different webcams driver. For excample, GSPCA_SRC_C, CPIA_SRC_C.
So a way to do it would be to identify the source files needed for your webcam, add those source files to a new variable MY_NEW_PRETTY_CAMDRIVER_SRC_C and finally add this variable to SRC_C.
Likely there will be undefined references after this procedure, so you somehow have to resolve those errors. Either this can be done by including more source files that include those symbols or by reimplementing them. A good place for the last way could be support.c.
Good luck, Dirk.
Hi Dirk, Could you please tell me the model of webcam which you have tested with this usbcam software .
Thanks Tapas
On Sat, Apr 11, 2009 at 9:23 AM, Dirk Vogt dvogt@os.inf.tu-dresden.dewrote:
Hi,
Hi, Could you please tell us how can I easily port a linux usb webcam driver . Please know that I am a beginner . Please explain procedure to me..
When you have a look at the Makefile in examples/usbcam/src/, you'll see that, there are variables which contain the source files that should be compiled. There are several of this variables containing the files for different webcams driver. For excample, GSPCA_SRC_C, CPIA_SRC_C.
So a way to do it would be to identify the source files needed for your webcam, add those source files to a new variable MY_NEW_PRETTY_CAMDRIVER_SRC_C and finally add this variable to SRC_C.
Likely there will be undefined references after this procedure, so you somehow have to resolve those errors. Either this can be done by including more source files that include those symbols or by reimplementing them. A good place for the last way could be support.c.
Good luck, Dirk.
Hi, I tested usbcam with the following webcams:
046d:08ad Logitech, Inc. QuickCam Communicate STX 0553:0002 STMicroelectronics Imaging Division (VLSI Vision) CPiA WebCam
Ciao, Dirk
Hi Dirk, Thanks for ur kind help. Could you please tell me how can I debug signals received from camera.. Can I activate debugger console by pressing some keys. I want to print some text output (using printf) on console from camera .. so that I can debug my camera codes.
By the way , I have found uvc driver and also other drivers under directory l4/pkg/usb/examples/usbcam/contrib/linux/drivers/media/video
You have incuded CPIA , GSPCA and UVC drivers in make file of SRC directory . I think that all the drivers that you have incuded in make file should work . Please correct me if I am not correct. The UVC driver for my laptop is not working . I am trying to make it work.
Thanks Tapas
On Tue, Apr 14, 2009 at 10:51 AM, Dirk Vogt dvogt@os.inf.tu-dresden.dewrote:
Hi, I tested usbcam with the following webcams:
046d:08ad Logitech, Inc. QuickCam Communicate STX 0553:0002 STMicroelectronics Imaging Division (VLSI Vision) CPiA WebCam
Ciao, Dirk
Hi Tapas,
You have incuded CPIA , GSPCA and UVC drivers in make file of SRC directory . I think that all the drivers that you have incuded in make file should work . Please correct me if I am not correct. The UVC driver for my laptop is not working . I am trying to make it work.
I tried the UVC driver, but unfortunately this driver does not support video capturing trough the read system call. To make it work you have to add the code for capturing video through shared memory. You should have a look into the the V4L2 documentation for that.
Ciao, Dirk.
l4-hackers@os.inf.tu-dresden.de