Skip to contentSkip to conversation

spca1528 device (Device 015: ID 04fc:1528 Sunplus Technology)..libv4l2: error turning on stream: Timer expired issue

DISCUSSION Mauricio Henriquez 3 participants 7 messages Sep 4, 2011 – Sep 5, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi guys,

Not sure if is the right place to ask since this device use a gspca driver and not sure if that driver is related to uvc or not, if not please point me to the right place...

Recently I'm trying to make work a Sunplus crappy mini HD USB camera, lsusb list this info related to the device:

Picture Transfer Protocol (PIMA 15470)
Bus 001 Device 015: ID 04fc:1528 Sunplus Technology Co., Ltd

idVendor 0x04fc Sunplus Technology Co., Ltd
idProduct 0x1528
bcdDevice 1.00

  iManufacturer           1 Sunplus Co Ltd
  iProduct                2 General Image Devic
  iSerial                 0

...

Using the gspca-2.13.6 on my Fed12 (2.6.31.6-166.fc12.i686.PAE kernel), the device is listed as /dev/video1 and no error doing a dmesg...but trying to make it work, let say with xawtv, I get:

This is xawtv-3.95, running on Linux/i686 (2.6.31.6-166.fc12.i686.PAE) xinerama 0: 1600x900+0+0
WARNING: No DGA direct video mode for this display. /dev/video1 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
libv4l2: error turning on stream: Timer expired
ioctl: VIDIOC_STREAMON(int=1): Timer expired
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout

..or doing:
xawtv -c /dev/video1 -nodga -novm -norandr -noxv -noxv-video

I get:
ioctl: VIDIOC_STREAMON(int=1): Timer expired
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout
libv4l2: error turning on stream: Timer expired
libv4l2: error reading: Invalid argument

vlc, cheese, etc give me similar "Timeout" related messages...

I read some post about similar devices (but ID 12 or 14) that successfully works with gspca, so it seems that this one is close to work but may be need a fix on some timeout or something similar on the driver...

Any clue of what can be done?..any suggestions or right place to ask?, do you need any other info to help to dig into the problem?

Thanks a lot.

Mauricio

Signature · 7 lines
Mauricio R. Henriquez Schott
Escuela de Ingeniería en Computación
Universidad Austral de Chile - Sede Puerto Montt
Los Pinos S/N, Balneario de Pelluco, Puerto Montt - Chile
Tel: 65-487440
Fax: 65-277156
mail: [email protected]

begin:vcard
fn:Mauricio Henriquez
n:Henriquez;Mauricio
org;quoted-printable:Universidad Austral de Chile - Sede Puerto Montt;Escuela de Computaci=C3=B3n adr:;;Los Pinos S/N Balneario de Pelluco;Puerto Montt;Llanquihue;5480000;Chile email;internet:[email protected]
title:Docente
tel;work:65-487440
tel;fax:65-277156
url:http://www.monobotics.ic.uach.cl
version:2.1
end:vcard

#1 lore raw
Quoted 5 lines · Mauricio Henriquez

Hi guys,

Not sure if is the right place to ask since this device use a gspca driver and not sure if that driver is related to uvc or not, if not please point me to the right place...

Looks right to me, and I hope that someone has more direct knowledge about your camera, which I do not. I do have a couple of questions, however, and a comment.

Quoted 42 lines

Recently I'm trying to make work a Sunplus crappy mini HD USB camera, lsusb list this info related to the device:

Picture Transfer Protocol (PIMA 15470)
Bus 001 Device 015: ID 04fc:1528 Sunplus Technology Co., Ltd

idVendor 0x04fc Sunplus Technology Co., Ltd
idProduct 0x1528
bcdDevice 1.00

  iManufacturer           1 Sunplus Co Ltd
  iProduct                2 General Image Devic
  iSerial                 0

...

Using the gspca-2.13.6 on my Fed12 (2.6.31.6-166.fc12.i686.PAE kernel), the device is listed as /dev/video1 and no error doing a dmesg...but trying to make it work, let say with xawtv, I get:

This is xawtv-3.95, running on Linux/i686 (2.6.31.6-166.fc12.i686.PAE) xinerama 0: 1600x900+0+0
WARNING: No DGA direct video mode for this display. /dev/video1 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
libv4l2: error turning on stream: Timer expired
ioctl: VIDIOC_STREAMON(int=1): Timer expired
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout

..or doing:
xawtv -c /dev/video1 -nodga -novm -norandr -noxv -noxv-video

I get:
ioctl: VIDIOC_STREAMON(int=1): Timer expired
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout
libv4l2: error turning on stream: Timer expired
libv4l2: error reading: Invalid argument

Quoted 1 line

vlc, cheese, etc give me similar "Timeout" related messages...

The comment:

Perhaps a good thing to try would be the nice, simple, basic program svv, which you can get from the website of Jean-Francois Moine. Some of these other things do not always work. Especially I have had trouble with xawtv, though the xawtv people may have fixed a lot of problems while I was not watching them.

The question:

Is this a dual-mode camera which is also supposed to have still camera capabilities? If so, you might be interested in contacting the Gphoto project. I just searched for it there, and it does not seem to be listed.

I assume that the specialists on the spca cameras will step forward. I am not one of them, as I said. Good luck.

Theodore Kilgore

#2 lore raw
Quoted 58 lines · Theodore Kilgore
Quoted 6 lines · Mauricio Henriquez

Hi guys,

Not sure if is the right place to ask since this device use a gspca driver and not sure if that driver is related to uvc or not, if not please point me to the right place...

Looks right to me, and I hope that someone has more direct knowledge about your camera, which I do not. I do have a couple of questions, however, and a comment.

Quoted 41 lines

Recently I'm trying to make work a Sunplus crappy mini HD USB camera, lsusb list this info related to the device:

Picture Transfer Protocol (PIMA 15470)
Bus 001 Device 015: ID 04fc:1528 Sunplus Technology Co., Ltd

idVendor 0x04fc Sunplus Technology Co., Ltd
idProduct 0x1528
bcdDevice 1.00

   iManufacturer           1 Sunplus Co Ltd
   iProduct                2 General Image Devic
   iSerial                 0

...

Using the gspca-2.13.6 on my Fed12 (2.6.31.6-166.fc12.i686.PAE kernel), the device is listed as /dev/video1 and no error doing a dmesg...but trying to make it work, let say with xawtv, I get:

This is xawtv-3.95, running on Linux/i686 (2.6.31.6-166.fc12.i686.PAE) xinerama 0: 1600x900+0+0
WARNING: No DGA direct video mode for this display. /dev/video1 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
libv4l2: error turning on stream: Timer expired
ioctl: VIDIOC_STREAMON(int=1): Timer expired
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout

..or doing:
xawtv -c /dev/video1 -nodga -novm -norandr -noxv -noxv-video

I get:
ioctl: VIDIOC_STREAMON(int=1): Timer expired
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout
libv4l2: error turning on stream: Timer expired
libv4l2: error reading: Invalid argument

Quoted 2 lines

vlc, cheese, etc give me similar "Timeout" related messages...

Quoted 8 lines

The comment:

Perhaps a good thing to try would be the nice, simple, basic program svv, which you can get from the website of Jean-Francois Moine. Some of these other things do not always work. Especially I have had trouble with xawtv, though the xawtv people may have fixed a lot of problems while I was not watching them.

yeap, I try it, same kind of mesages...

Quoted 6 lines

The question:

Is this a dual-mode camera which is also supposed to have still camera capabilities? If so, you might be interested in contacting the Gphoto project. I just searched for it there, and it does not seem to be listed.

yeap a dual-mode camera...

Quoted 5 lines

I assume that the specialists on the spca cameras will step forward. I am not one of them, as I said. Good luck.

Theodore Kilgore

Thanks!

Mauricio

Signature · 7 lines
Mauricio R. Henriquez Schott
Escuela de Ingeniería en Computación
Universidad Austral de Chile - Sede Puerto Montt
Los Pinos S/N, Balneario de Pelluco, Puerto Montt - Chile
Tel: 65-487440
Fax: 65-277156
mail: [email protected]

begin:vcard
fn:Mauricio Henriquez
n:Henriquez;Mauricio
org;quoted-printable:Universidad Austral de Chile - Sede Puerto Montt;Escuela de Computaci=C3=B3n adr:;;Los Pinos S/N Balneario de Pelluco;Puerto Montt;Llanquihue;5480000;Chile email;internet:[email protected]
title:Docente
tel;work:65-487440
tel;fax:65-277156
url:http://www.monobotics.ic.uach.cl
version:2.1
end:vcard

#3 lore raw
In reply to Mauricio Henriquez
Quoted 9 lines · On Sun, 04 Sep 2011 15:39:30 -0400 Mauricio Henriquez <[email protected]>…

Recently I'm trying to make work a Sunplus crappy mini HD USB camera, lsusb list this info related to the device:

Picture Transfer Protocol (PIMA 15470)
Bus 001 Device 015: ID 04fc:1528 Sunplus Technology Co., Ltd

idVendor 0x04fc Sunplus Technology Co., Ltd
idProduct 0x1528
bcdDevice 1.00

Quoted 8 lines
   iManufacturer           1 Sunplus Co Ltd
   iProduct                2 General Image Devic
   iSerial                 0

...

Using the gspca-2.13.6 on my Fed12 (2.6.31.6-166.fc12.i686.PAE kernel), the device is listed as /dev/video1 and no error doing a dmesg...but trying to make it work, let say with xawtv, I get:

	[snip]

Hi Mauricio,

The problem seems tied to the alternate setting. It must be the #3 while the lastest versions of gspca compute a "best" one. May you apply the following patch to gspca-2.13.6?

----------------------8<----------------------

spca1528.c renamed from spca1528.c.orig +3 -2
@@ -307,8 +307,6 @@
 	sd->color = COLOR_DEF;
 	sd->sharpness = SHARPNESS_DEF;
 
-	gspca_dev->nbalt = 4;		/* use alternate setting 3 */
-
 	return 0;
 }
 
@@ -349,6 +347,9 @@
 	reg_r(gspca_dev, 0x25, 0x0004, 1);
 	reg_wb(gspca_dev, 0x27, 0x0000, 0x0000, 0x06);
 	reg_r(gspca_dev, 0x27, 0x0000, 1);
+
+	gspca_dev->alt = 4;		/* use alternate setting 3 */
+
 	return gspca_dev->usb_err;
 }
 

----------------------8<----------------------

(Theodore, this webcam may work in mass storage mode with ID 04fc:0171. In webcam mode with ID 04fc:1528, it offers 3 interfaces: interface 0 contains only an interrupt endpoint, interface 1 is the webcam with only isochronous endpoints and interface 2 contains bulk in, bulk out and interrupt in endpoints - I don't know how to use the interfaces 0 and 2, but sure the interface 2 could be used to access the camera images)

Signature · 2 lines
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
#4 lore raw
Quoted 22 lines · Jean-Francois Moine
Quoted 14 lines · On Sun, 04 Sep 2011 15:39:30 -0400 Mauricio Henriquez<[email protected]>…

Recently I'm trying to make work a Sunplus crappy mini HD USB camera, lsusb list this info related to the device:

Picture Transfer Protocol (PIMA 15470)
Bus 001 Device 015: ID 04fc:1528 Sunplus Technology Co., Ltd

idVendor 0x04fc Sunplus Technology Co., Ltd
idProduct 0x1528
bcdDevice 1.00
iManufacturer 1 Sunplus Co Ltd
iProduct 2 General Image Devic
iSerial 0
...

Quoted 4 lines

Using the gspca-2.13.6 on my Fed12 (2.6.31.6-166.fc12.i686.PAE kernel), the device is listed as /dev/video1 and no error doing a dmesg...but trying to make it work, let say with xawtv, I get:

Quoted 8 lines
	[snip]

Hi Mauricio,

The problem seems tied to the alternate setting. It must be the #3 while the lastest versions of gspca compute a "best" one. May you apply the following patch to gspca-2.13.6?

Thanks Jean, yeap I apply the patch, but still the same kind of messages about timeout sing xawtv or svv:

xawtv:
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
libv4l2: error turning on stream: Timer expired
libv4l2: error reading: Invalid argument
v4l2: read: Invalid argument
libv4l2: error turning on stream: Timer expired
ioctl: VIDIOC_STREAMON(int=1): Timer expired
v4l2: oops: select timeout
ioctl: VIDIOC_REQBUFS(count=0;type=VIDEO_CAPTURE;memory=MMAP): Device or resource busy
libv4l2: error reading: Invalid argument
v4l2: read: Invalid argument

svv:
raw pixfmt: JPEG 640x480
pixfmt: RGB3 640x480
mmap method
VIDIOC_STREAMON error 62, Timer expired

this camera in mass storage mode works ok...

Cheers

Mauricio

Quoted 33 lines

----------------------8<----------------------

spca1528.c renamed from spca1528.c.orig +3 -3
@@ -307,8 +307,6 @@
  	sd->color = COLOR_DEF;
  	sd->sharpness = SHARPNESS_DEF;
 
-	gspca_dev->nbalt = 4;		/* use alternate setting 3 */
-
  	return 0;
  }
 
@@ -349,6 +347,9 @@
  	reg_r(gspca_dev, 0x25, 0x0004, 1);
  	reg_wb(gspca_dev, 0x27, 0x0000, 0x0000, 0x06);
  	reg_r(gspca_dev, 0x27, 0x0000, 1);
+
+	gspca_dev->alt = 4;		/* use alternate setting 3 */
+
  	return gspca_dev->usb_err;
  }
 
----------------------8<----------------------

(Theodore, this webcam may work in mass storage mode with ID 04fc:0171. In webcam mode with ID 04fc:1528, it offers 3 interfaces: interface 0 contains only an interrupt endpoint, interface 1 is the webcam with only isochronous endpoints and interface 2 contains bulk in, bulk out and interrupt in endpoints - I don't know how to use the interfaces 0 and 2, but sure the interface 2 could be used to access the camera images)

Signature · 7 lines
Mauricio R. Henriquez Schott
Escuela de Ingeniería en Computación
Universidad Austral de Chile - Sede Puerto Montt
Los Pinos S/N, Balneario de Pelluco, Puerto Montt - Chile
Tel: 65-487440
Fax: 65-277156
mail: [email protected]

begin:vcard
fn:Mauricio Henriquez
n:Henriquez;Mauricio
org;quoted-printable:Universidad Austral de Chile - Sede Puerto Montt;Escuela de Computaci=C3=B3n adr:;;Los Pinos S/N Balneario de Pelluco;Puerto Montt;Llanquihue;5480000;Chile email;internet:[email protected]
title:Docente
tel;work:65-487440
tel;fax:65-277156
url:http://www.monobotics.ic.uach.cl
version:2.1
end:vcard

#5 lore raw
Quoted 2 lines · On Mon, 05 Sep 2011 11:33:49 -0400 Mauricio Henriquez <[email protected]>…

Thanks Jean, yeap I apply the patch, but still the same kind of messages about timeout sing xawtv or svv:

OK Mauricio. So, I need more information. May you set the gspca debug level to 0x0f

	echo 0x0f > /sys/module/gspca_main/parameters/debug

run 'svv' and send me the kernel messages starting from the last gspca open?

Thanks.

Signature · 2 lines
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
#6 lore raw
Quoted 7 lines · Jean-Francois Moine
Quoted 3 lines · On Mon, 05 Sep 2011 11:33:49 -0400 Mauricio Henriquez<[email protected]>…

Thanks Jean, yeap I apply the patch, but still the same kind of messages about timeout sing xawtv or svv:

Quoted 8 lines

OK Mauricio. So, I need more information. May you set the gspca debug level to 0x0f

	echo 0x0f>  /sys/module/gspca_main/parameters/debug

run 'svv' and send me the kernel messages starting from the last gspca open?

Ok, I set the gspca debug thing and this is the dmesg messages after running svv:

gspca-2.13.6: [svv] open
gspca-2.13.6: try fmt cap JPEG 640x480 gspca-2.13.6: try fmt cap JPEG 640x480 gspca-2.13.6: frame alloc frsz: 115790 gspca-2.13.6: reqbufs st:0 c:4 gspca-2.13.6: mmap start:b7739000 size:118784 gspca-2.13.6: mmap start:b7621000 size:118784 gspca-2.13.6: mmap start:b7604000 size:118784 gspca-2.13.6: mmap start:b75e7000 size:118784 gspca-2.13.6: init transfer alt 3 gspca-2.13.6: isoc 128 pkts size 512 = bsize:65536 spca1528-2.13.6: wait_status_0 timeout gspca-2.13.6: kill transfer
gspca-2.13.6: [svv] close
gspca-2.13.6: frame free
gspca-2.13.6: close done
gspca-2.13.6: [svv] open
gspca-2.13.6: try fmt cap JPEG 640x480 gspca-2.13.6: try fmt cap JPEG 640x480 gspca-2.13.6: frame alloc frsz: 115790 gspca-2.13.6: reqbufs st:0 c:4 gspca-2.13.6: mmap start:b7732000 size:118784 gspca-2.13.6: mmap start:b761a000 size:118784 gspca-2.13.6: mmap start:b75fd000 size:118784 gspca-2.13.6: mmap start:b75e0000 size:118784 gspca-2.13.6: init transfer alt 3 gspca-2.13.6: isoc 128 pkts size 512 = bsize:65536 spca1528-2.13.6: wait_status_0 timeout gspca-2.13.6: kill transfer
gspca-2.13.6: [svv] close
gspca-2.13.6: frame free
gspca-2.13.6: close done

...hope you know what it mean :-) ..let me know if I can help in anything else, here I'm also playing with the code :-)

Mauricio

Quoted 3 lines

Thanks.

Signature · 7 lines
Mauricio R. Henriquez Schott
Escuela de Ingeniería en Computación
Universidad Austral de Chile - Sede Puerto Montt
Los Pinos S/N, Balneario de Pelluco, Puerto Montt - Chile
Tel: 65-487440
Fax: 65-277156
mail: [email protected]

begin:vcard
fn:Mauricio Henriquez
n:Henriquez;Mauricio
org;quoted-printable:Universidad Austral de Chile - Sede Puerto Montt;Escuela de Computaci=C3=B3n adr:;;Los Pinos S/N Balneario de Pelluco;Puerto Montt;Llanquihue;5480000;Chile email;internet:[email protected]
title:Docente
tel;work:65-487440
tel;fax:65-277156
url:http://www.monobotics.ic.uach.cl
version:2.1
end:vcard