1
Discussion - Software / Re: USB HOST UVC Camera FTDI Vinculum-II not reading video stream
« on: April 21, 2021, 08:59:35 AM »
Thank you so much for addressing the problem directly at hand. Sadly, I am still not successfully reading bytes yet. Between the time I posted, and I received your response I had already corrected the issues that you pointed out. I think my problem may lay with the configuration of the camera. I still get 0 bytes read upon return:
xfer.len_psw[i - 1].size == 0
xfer->len_psw[I - 1].cond_code == 9 (SBHOST_CC_DATAUNDERRUN)
Which makes sense if it is not reading the proper amount.
I have tried multiple different Formats and Frames
FormatIndex 1 = Uncompressed
FormatIndex 2 = MJPEG
As well as different FrameIndex
FrameIndex = 1 (Default 640x480)
FrameIndex = 2 (160x120)
FrameIndex = 5 (320 x 240)
To reproduce the same MJPEG 320 x 240 @ 15fps I configure:
// Add lines between the GET_CUR and SET_CUR
VProbeAndCom.bFormatIndex = 2; // MJPEG
VProbeAndCom.bFrameIndex = 5; // 320 x 240
VProbeAndCom.dwFrameInterval = 0x000A2C2A; // 0x000A2C2A = 66.666600 mSec (15.00 Hz)
Still no bytes read. I have attached the dump of the Logitech camera I am using to see if you may find a flaw.
1.) When you tested, did you actually do a debug dump of the buffer that the bytes are being read into or only just view the USB Analyzer?
2.) What chip pin count where you using in the V2Eval? (I am using 48 pin.)
Thank you again for your help on the specifics of what I am doing.
Leonard
xfer.len_psw[i - 1].size == 0
xfer->len_psw[I - 1].cond_code == 9 (SBHOST_CC_DATAUNDERRUN)
Which makes sense if it is not reading the proper amount.
I have tried multiple different Formats and Frames
FormatIndex 1 = Uncompressed
FormatIndex 2 = MJPEG
As well as different FrameIndex
FrameIndex = 1 (Default 640x480)
FrameIndex = 2 (160x120)
FrameIndex = 5 (320 x 240)
To reproduce the same MJPEG 320 x 240 @ 15fps I configure:
// Add lines between the GET_CUR and SET_CUR
VProbeAndCom.bFormatIndex = 2; // MJPEG
VProbeAndCom.bFrameIndex = 5; // 320 x 240
VProbeAndCom.dwFrameInterval = 0x000A2C2A; // 0x000A2C2A = 66.666600 mSec (15.00 Hz)
Still no bytes read. I have attached the dump of the Logitech camera I am using to see if you may find a flaw.
1.) When you tested, did you actually do a debug dump of the buffer that the bytes are being read into or only just view the USB Analyzer?
2.) What chip pin count where you using in the V2Eval? (I am using 48 pin.)
Thank you again for your help on the specifics of what I am doing.
Leonard