Forum Discussion
Altera_Forum
Honored Contributor
20 years agoproblem with usb camera
Hi, I have some trouble with getting usb camera to work. I configured kernel with UsbHost following the document in http://nioswiki.jot.com//wikihome/operatingsystems/usbhost (http://nioswiki.j...
Altera_Forum
Honored Contributor
20 years agoHi,
Is there nobody to use Usb camera on DE2 board? In ISP1362 DateSheet ,it said that ISP1362 support all four type of USB transfers:control,bulk,interrupt,ISOCHRONOUS., and it also support transfer at full-speed and low-speed(not high speed). But the ISOCHRONOUS transfers are defined only for full-speed and high-speed. So it means that in ISO transfer type,we can only use full-speed. In isp1362-hcd.c, line 1307 (function isp1362_urb_enqueue):if (type == PIPE_ISOCHRONOUS) {
ERR("Isochronous transfers not supported\n");
return -ENOSPC;
} So when i run test app: #include <stdlib.h># include <stdio.h># include <sys/types.h># include <sys/stat.h># include <fcntl.h># include <unistd.h>
int main()
{
char devname = "/dev/video0";
printf("Begin device open test......\n");
printf("Device name: %s\n", devname);
int hf = open(devname, O_RDWR);
if(hf < 0)
{
perror("Device open test ERROR! : ");
exit(1);
}
close(hf);
printf("Device open test OK!\n");
return 0;
} The error message like this: />devopen
Begin device open test.......
Isochronous transfers not supported
deriver/usb/media/ov511.c:init isoc: usb_submit_urb<0> ret -28
Device open test ERROR! : : No space left on device
/> So i mask the code: //if (type == PIPE_ISOCHRONOUS) {
//ERR("Isochronous transfers not supported\n");
//return -ENOSPC;
//} Then the erro message like this: />devopen
Begin device open test.......
Device name: /dev/video0
start_iso_transfers:Not enough ISO buffer space for 1023 byte PTD So I puzzled .......if ISP1362 support ISOCHRONOUS transfer, Why the error happened? Is it because the urb->dev->speed ? Is there anyone facing the same problem? Pls give me some advice. Thanks leewood