Page 1 of 4 123 ... LastLast
Results 1 to 15 of 53

Thread: WebCam - SPCA50x drivers

  1. #1

    Thumbs up WebCam - SPCA50x drivers

    Hi everyone,
    I have recently managed to compile the SPCA50x driver (http://mxhaard.free.fr/download.html) for Asus. The driver claims my camera (Mustek Gsmart Mini2), however when I try to grab a picture using a userland app like videodog (http://planeta.terra.com.br/informat.../videodog.html ) or palantir (http://www.fastpath.it/products/palantir/) Asus reboots

    I'm just wondering if maybe someone has also experimented with this driver and made it work... The firmware I'm using is 1.9.2.7-3c (Asus 500gx).

    Thanks
    LP

  2. #2

    Ps

    Here is the driver (which I believe is broken, but have tested it only with that Gsmart Mini so far), and here is the app that should grab images.

    Code:
    insmod spca50x.o
    ./videodog -x 320 -y 240 -w 3 -d /dev/v4l/video0 -f test.jpg
    Could you please try it with your camera? The list of supported cameras is here.

  3. #3

    Working!

    OK, the problem was in some magic MIPS-specific compiler options. Now the driver is working!

    Download:
    http://artax.karlin.mff.cuni.cz/~prosl0am/spca50x.o

    It's working fine with palantir
    http://wl500g.info/showthread.php?t=1362

    and also with manually launched rcamd. How do I "integrate" this driver to Asus and make the "USB Application - Web Camera" work with it?

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Well, integration means changing web pages, probably httpd variables and modifying rc...
    Does it work out of box or you've modifed sources somehow?
    I would like to integrate this to the firmware, but I'm busy at the moment. In fact kernel module should be integrated to the kernel sources and should not be separate part.
    Could you please make kernel patch?

  5. #5
    this module is developed specificaly to be out of kernel (to avoid pwc mistake??)

  6. #6
    Quote Originally Posted by Oleg
    Does it work out of box or you've modifed sources somehow?
    Out of the box. Makefile was the only thing that needed some edits.

    Quote Originally Posted by Oleg
    Could you please make kernel patch?
    I'm afraid my little Linux experience does not permit (I am just a hobbyist when it comes to Linux/GNU stuff). Sorry

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by hugo
    this module is developed specificaly to be out of kernel (to avoid pwc mistake??)
    yes, but adding it to our kernel sources simplifies firmware compiling.

  8. #8

    Image Size

    If you integrate it to the firmware, could you please add one new image size option to the web page? My camera happens to support 176x144 instead of 160x120...

    If there's anything I could do to help, please let me know (but it has to be something more beginner-like than patching the kernel )

    Thank You!

  9. #9
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    Quote Originally Posted by lada
    OK, the problem was in some magic MIPS-specific compiler options. Now the driver is working!

    Download:
    http://artax.karlin.mff.cuni.cz/~prosl0am/spca50x.o
    I've tried this version of compiled spca50x with my Genius VideoCAM Express V2 (USB ids (0x0458, 0x7004)) with no success (yet?) I got router reboot (or hang) while trying to capture image using mvc application. I have not tried videdog since I got an expression that mvc is using v4l interface for capture, so it should be working. I've also tried to get some debug out of spca50x.o adding debug switch to insmod line with no success - may be debug is not compiled?

    I'll try videodog with spca50x.o this weekend and let you know if it helps. It would be really nice to use spca50x.o on asus, so if I can help by trying it wiith my cam - I am ready, let me know

    And thank you for your efforts

    regards
    RoofCat

  10. #10
    Debug messages are not compiled to make the module smaller - sorry, I should have mentioned that. Try the "debug" version of the module, which has debug messages included:

    artax.karlin.mff.cuni.cz/~prosl0am/spca50x-debug.o

  11. #11
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    Hi

    Thank you for the module compilation .
    I have also the Genius V2 cam, can you tell me which version of the driver did you compiled ? The last time i tryed it, this cam wasnґt supported as far is needet for all-day operation since it didnґt adjusted the shutter speed for propper brightness controll which is needet for the way the cam works, with no dram and direkt video aray to usb transfers. This makes the framerate heavily light-dependant .

    I am trying it just the moment.

    As i suspekted, the picture is unusable, i can hardly recognise anything, spurios pixels and a greyish picuture at all.

    Also, Palantir crashes after a short time of operation.
    Code:
    [admin@(none) palantir]$ ./bin/palantir -s 160x120 -m -e
    Feb 26 21:18:32 [main] -- palantir 2.5.5-Mips starting --
    Feb 26 21:18:32 [main] Definitions for 1 devices found
    Feb 26 21:18:32 [main] No serial port specified
    Feb 26 21:18:32 [main] No named pipe specified
    Feb 26 21:18:33 [video] Card:   Genius VideoCAM Express V2 (/dev/v4l/video0)
    Feb 26 21:18:33 [video] Capabilities:   1 (capture )
    Feb 26 21:18:33 [video] Size:   (160x120)-(352x288)
    Feb 26 21:18:33 [video] Channel no. 0 ('SPCA561')      tuners: 0, flags: 0, type: 2, norm: 0
    Feb 26 21:18:33 [video] brightness: 1920  hue: 65  colour: 60368
    Feb 26 21:18:33 [video] contrast: 38464  whiteness: 27468
    Feb 26 21:18:33 [video] depth: 24  palette: 4
    Feb 26 21:18:33 [video] Actual capture box is 160x120 (requested 160x120)
    Feb 26 21:18:33 [video] Video buffer size: 4915232, frames: 4
    Feb 26 21:18:33 [main] Starting device thread
    Feb 26 21:18:33 [main] Listening on port 3000
    Feb 26 21:18:33 [main] Control queue timeout set to 30 s
    Feb 26 21:18:37 [main] 192.168.1.20:1699 #0: connection accepted, spawning server.
    Feb 26 21:18:37 [main] 1 client(s) connected
    Feb 26 21:18:37 [main] Capture thread started
    Feb 26 21:18:37 [http] 192.168.1.20:1699: video server started
    Feb 26 21:18:37 [http] 192.168.1.20:1699: requested URL `/'
    Feb 26 21:18:37 [http] 192.168.1.20:1699: User-Agent: Mozilla/5.0 (Windows; U; W
    indows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
    Feb 26 21:18:38 [http] 192.168.1.20:1699: streaming mode: continuous, open loop
    Terminated
    [admin@(none) palantir]$

    This is a fault of the cam support of the driver, not depending on your nice work. I think other better supported cams should work fine with this driver and he should be integrated into the main modified firmware line.

    Seems to be a memory leak problem or similar, cause it kills various processes as well.

    Code:
    Feb 26 21:01:06 login[434]: root login  on `pts/0' 
    Feb 26 21:01:28 kernel: usb.c: registered new driver spca50x
    Feb 26 21:01:28 kernel: drivers/usb/spca50x.c: spca5xx driver 56.02.06 registered
    Feb 26 21:01:43 kernel: hub.c: new USB device 00:04.0-1.2, assigned address 5
    Feb 26 21:01:43 kernel: drivers/usb/spca50x.c: USB SPCA5XX camera found. Type Genius VideoCAM Express V2 (SPCA561A)
    Feb 26 21:02:48 kernel: Out of Memory: Killed process 442 (videodog).
    Feb 26 21:05:17 kernel: usb.c: deregistering driver spca50x
    Feb 26 21:05:17 kernel: drivers/usb/spca50x.c: driver spca5xx deregistered
    Feb 26 21:05:49 kernel: usb.c: registered new driver spca50x
    Feb 26 21:05:49 kernel: drivers/usb/spca50x.c: USB SPCA5XX camera found. Type Genius VideoCAM Express V2 (SPCA561A)
    Feb 26 21:05:49 kernel: drivers/usb/spca50x.c: [spca50x_probe:7258] Camera type GBRG 
    Feb 26 21:05:49 kernel: drivers/usb/spca50x.c: spca5xx driver 56.02.06 registered
    Feb 26 21:13:14 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
    Feb 26 21:13:17 kernel: Out of Memory: Killed process 51 (dnsmasq).
    Feb 26 21:14:52 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
    Feb 26 21:14:59 kernel: Out of Memory: Killed process 467 (palantir).
    Feb 26 21:15:00 kernel: Out of Memory: Killed process 468 (palantir).
    Feb 26 21:15:00 kernel: Out of Memory: Killed process 469 (palantir).
    Feb 26 21:15:38 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
    Feb 26 21:15:45 kernel: Out of Memory: Killed process 425 (upnp).
    Feb 26 21:18:32 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
    Feb 26 21:18:46 kernel: Out of Memory: Killed process 484 (palantir).
    Feb 26 21:18:46 kernel: Out of Memory: Killed process 485 (palantir).
    Feb 26 21:18:46 kernel: Out of Memory: Killed process 486 (palantir).
    Feb 26 21:18:46 kernel: Out of Memory: Killed process 487 (palantir).
    Feb 26 21:18:46 kernel: Out of Memory: Killed process 488 (palantir).
    Greets
    Last edited by WlanMan; 26-02-2005 at 21:30.
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  12. #12
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Well, I've Genius V2 also, and yes it's pretty useless at this time. Also, driver is looking terrible for me...

  13. #13
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    Quote Originally Posted by Oleg
    Well, I've Genius V2 also, and yes it's pretty useless at this time. Also, driver is looking terrible for me...
    Inside of driver, no idea.
    I just wonder why the hell we all habe this crapy cam, i bought mine with the router for 15eur reduced price, and now it sits here and collects dust

    Nevetheless, including the driver would be nice for all which have cams which support this driver, maybe not in the web gui ...

    Greets
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  14. #14
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Well, in fact I've also Creative WebCam NX, which is supported by zc030x driver and most likely I will include this driver as soon as it would be finally cleared and bugs inside it fixed. This driver is looking pretty good to me.

  15. #15
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    Hello,

    So it looks like spca50x is completely useless with Videocam Express V2... Pity , I had an idea to finally find usage for this cam.

    Roofcat

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Webcam Motion Alert
    By Smuggler in forum German Discussion - Deutsch (DE)
    Replies: 28
    Last Post: 17-12-2013, 21:35
  2. Compiling driver for webcam
    By max2950 in forum WL-500gP Firmware Discussion
    Replies: 44
    Last Post: 06-03-2011, 12:15
  3. WL500gPv2 and webcam
    By cu4xs in forum WL-500gP Q&A
    Replies: 59
    Last Post: 27-09-2010, 17:02
  4. Wl-500gP и WebCam
    By Alkand in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 167
    Last Post: 12-05-2010, 17:06
  5. Asus WL-500g and WebCam
    By alpha5 in forum WL-500g Q&A
    Replies: 54
    Last Post: 23-05-2006, 01:57

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •