CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Hardware Support
  Z-Star Microelectronics Corp. USB 1.1 Webcam

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  kbocek
      kbocek
Z-Star Microelectronics Corp. USB 1.1 Webcam
#1
Jr Board Member
Joined: 2005/5/30
From Benicia CA, USA
Posts: 27
I've got two USB webcams I'm trying to get running with CentOS 5.4 x86_64. I've downloaded and installed the gspca driver from http://mxhaard.free.fr/spca5xx.html. Running lsusb yields:

Bus 002 Device 003: ID 0ac8:307b Z-Star Microelectronics Corp. USB 1.1 Webcam
Bus 002 Device 002: ID 0ac8:307b Z-Star Microelectronics Corp. USB 1.1 Webcam


/etc/modprobe.conf contains:

options gspca force_rgb=1 usbgrabber=1 debug=1


Loading the gspca driver yields (repeated for each camera):

gspcav1-20071224/gspca_core.c: USB GSPCA camera found.(ZC3XX)
gspcav1-20071224/gspca_core.c: [spca5xx_probe:4275] Camera type JPEG
gspcav1-20071224/Vimicro/zc3xx.h: [zc3xx_config:591]  Sensor OV7620
gspcav1-20071224/gspca_core.c: [spca5xx_getcapability:1249] maxw 640 maxh 480 minw 160 minh 120
gspcav1-20071224/gspca_core.c: data format set to RGB


I've added a custom udev rule to create unique device names for the cameras:

SUBSYSTEM=="video4linux", BUS=="usb", SYSFS{idVendor}=="0ac8", SYSFS{idProduct}=="307b", NAME="usbcam%n", MODE="0666"


This creates /dev/usbcam0 and /dev/usbcam1 for the cameras and makes them world-writable.

My problem is that I can't seem to get any output from either camera. I'm testing from the command line using camE and the 'streamer' utility from the xawtv package. Both utilities are installed from RPMForge. Running either yields messages like:

gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2
gspcav1-20071224/gspca_core.c: [spca5xx_restartMode:1439] Mode changing to 640,480
gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7


camE just hangs when trying to take a snapshot. Running streamer yields:

$ streamer -q -c /dev/usbcam1 -f rgb24 -r 3 -t 00:10:00 -s 640x480 -o outfile.avi
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(int=0): Interrupted system call
no way to get: 640x480 24 bit TrueColor (LE: bgr)
movie writer initialisation failed


Does anyone have any ideas what needs to be done here?

Thanks,
Kirk
Posted on: 2009/10/30 4:19
Create PDF from Post Print
Top
  •  abednegoyulo
      abednegoyulo
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#2
Professional Board Member
Joined: 2007/12/26
From
Posts: 269
Just a suggestion. Can you try kmod-video4linux.x86_64 or kmod-video4linux.i686, depending in your arch. You have to first uninstall the driver that you have installed. Information about it can be here.

To install the repo

http://elrepo.org/tiki/tiki-index.php

Just make sure you have priorities installed
Posted on: 2009/10/30 6:05
Create PDF from Post Print
Top
  •  kbocek
      kbocek
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#3
Jr Board Member
Joined: 2005/5/30
From Benicia CA, USA
Posts: 27
Thanks for the reply abednegoyulo. First off, what's up with yum-priorities? It's missing from the CentOS 5.4 disk. I installed it from a 5.3 image I had lying around but yum list yum\* displays yum-priorities in red. I've never seen that. However, it's working.

After removing my own gspca driver and installing kmod-video4linux, attaching the cameras yields:

Linux video capture interface: v2.00
gspca: main v2.6.0 registered
gspca: probing 0ac8:307b
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe 3wr vga 1 0x6001
zc3xx: probe 3wr vga type 29
zc3xx: probe sensor -> 0029
zc3xx: Find Sensor GC0305
gspca: probe ok
gspca: probing 0ac8:307b
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe 3wr vga 1 0x4001
zc3xx: probe 3wr vga type 29
zc3xx: probe sensor -> 0029
zc3xx: Find Sensor GC0305
gspca: probe ok
usbcore: registered new driver zc3xx
zc3xx: registered


But running camE yields:

No supported palette found, please report your device to the author


And running streamer yeilds:

$ streamer -q -c /dev/usbcam1 -f rgb24 -r 3 -t 00:10:00 -s 640x480 -o outfile.avi
no way to get: 640x480 24 bit TrueColor (LE: bgr)
movie writer initialisation failed


The good news is that both utilities return immediately and do not hang. Running modinfo on gspca_zc3xx and gspca_main, I don't see any optional parameters. Is there documentation on these modules somewhere?
Posted on: 2009/10/30 15:57
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#4
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Quote:

kbocek wrote:
...First off, what's up with yum-priorities? It's missing from the CentOS 5.4 disk. I installed it from a 5.3 image I had lying around but yum list yum\* displays yum-priorities in red. I've never seen that. However, it's working.

The yum-priorities package was not included with 5.4 - can now be found in the [extras] repo.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/30 19:05
Create PDF from Post Print
Top
  •  kbocek
      kbocek
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#5
Jr Board Member
Joined: 2005/5/30
From Benicia CA, USA
Posts: 27
Quote:

pschaff wrote:
The yum-priorities package was not included with 5.4 - can now be found in the [extras] repo.


Looks like the version number didn't change between 5.3 and 5.4. Any idea why yum list displays it in red?
Posted on: 2009/10/30 19:12
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#6
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Quote:

kbocek wrote:
Looks like the version number didn't change between 5.3 and 5.4. Any idea why yum list displays it in red?

Because it is installed and (was) not found in any repo. Should be in black now that it's in [extras].
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/30 20:25
Create PDF from Post Print
Top
  •  kbocek
      kbocek
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#7
Jr Board Member
Joined: 2005/5/30
From Benicia CA, USA
Posts: 27
Quote:

pschaff wrote:
Because it is installed and (was) not found in any repo. Should be in black now that it's in [extras].


Nope:

$yum list yum-priorities --enablerepo=extras
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: linux.mirrors.es.net
 * extras: mirrors.bluehost.com
10 packages excluded due to repository priority protections
Installed Packages
yum-priorities.noarch                           1.1.16-13.el5.centos                            installed


But like I said, it *is* working.
Posted on: 2009/10/30 21:02
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#8
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
http://mirrors.bluehost.com/centos/5.4/extras/i386/repodata/

Still dated 01-Sep-2009 07:26

Should turn black when they get synced.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/30 21:10
Create PDF from Post Print
Top
  •  kbocek
      kbocek
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#9
Jr Board Member
Joined: 2005/5/30
From Benicia CA, USA
Posts: 27
After booting into the new kernel installed by the recent update, I saw some selinux messages and thought that might be the problem. But after disabling selinux and rebooting, I still have the same error messages.

Any webcam users out there who can help? Any suggestions?

Thanks,
Kirk
Posted on: 2009/10/31 19:00
Create PDF from Post Print
Top
  •  kbocek
      kbocek
Re: Z-Star Microelectronics Corp. USB 1.1 Webcam
#10
Jr Board Member
Joined: 2005/5/30
From Benicia CA, USA
Posts: 27
One more post with a few more details in the hope that somebody might know something about this camera. After digging around the gspca author's web site and the zc3xx source I added

options gspca_main debug=15
options gspca_zc3xx force_sensor=0


to modprobe.conf. The first line increases messages from gspca_main and the second line changes the sensor. From the source I pulled out

#define SENSOR_ADCM2700 0
#define SENSOR_CS2102 1
#define SENSOR_CS2102K 2
#define SENSOR_GC0305 3
#define SENSOR_HDCS2020b 4
#define SENSOR_HV7131B 5
#define SENSOR_HV7131C 6
#define SENSOR_ICM105A 7
#define SENSOR_MC501CB 8
#define SENSOR_OV7620 9
#define SENSOR_OV7648 9 - same values */
#define SENSOR_OV7630C 10
#define SENSOR_PAS106 11
#define SENSOR_PAS202B 12
#define SENSOR_PB0330 13
#define SENSOR_PO2030 14
#define SENSOR_TAS5130CK 15
#define SENSOR_TAS5130CXX 16
#define SENSOR_TAS5130C_VF0250 17
#define SENSOR_MAX 18


to get the sensor setting. From the author's web site, I see he lists four sensors as working with this camera: 0 ,3 ,9 and 14. I tried all of them in turn. Running camE yields:

gspca: camE open
gspca: open done
gspca: try fmt cap JPEG 10000x10000
gspca: set ctrl [00980900] = 127
gspca: set ctrl [00980901] = 128
gspca: set ctrl [00980910] = 3
gspca: try fmt cap 0x00000000 640x480
gspca: set ctrl [00980900] = 127
gspca: set ctrl [00980901] = 128
gspca: set ctrl [00980910] = 3
gspca: try fmt cap BGR3 640x480
gspca: set ctrl [00980900] = 127
gspca: set ctrl [00980901] = 128
gspca: set ctrl [00980910] = 3
gspca: try fmt cap YU12 640x480
gspca: set ctrl [00980900] = 127
gspca: set ctrl [00980901] = 128
gspca: set ctrl [00980910] = 3
gspca: try fmt cap YU12 640x480
gspca: camE close
gspca: close done
gspca: streamer open


Running streamer yields:

gspca: streamer open
gspca: open done
gspca: try fmt cap 0x00000000 640x480
gspca: try fmt cap YU12 640x480
gspca: try fmt cap 422P 640x480
gspca: try fmt cap RGB3 640x480
gspca: try fmt cap BGR3 640x480
gspca: streamer close
gspca: close done


But still no output. I've also finally installed the intended application for these cameras, ZoneMinder 1.24.2. But no luck there. ZoneMinder refuses to work with these cameras too.

Does anyone have any further suggestions?
Posted on: 2009/11/5 5:20
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com