Author Topic: More USB Video Class - isochronous problem  (Read 16429 times)

jcheriton

  • Member
  • ***
  • Posts: 5
More USB Video Class - isochronous problem
« on: August 13, 2010, 04:42:39 pm »
Hi again,

Well I'm much further on with this but have reached an impasse when it comes to retrieving data from the camera.

The device is already set to and has accepted the format and frame that I wish to collect using the PROBE and COMMIT controls. I had assumed that if I were to change the streaming interface from Alternate 0 (no bandwidth) to another Alternate (in my case 6) the isochronous data delivery would start as soon as I send an IN token after the next micro-frame SOF. Is this correct or have I forgotten something? Pardon my ignorance but it seems to me that I am missing some information before starting the data retrieval - some command that returns, for example, the number of packets per microframe and their size. PROBE gives me a dwMaxPayloadTransferSize of 1600 bytes while the endpoint shows wMaxPacketSize as 5120 bytes, the last of which apparently implies a 1024-byte packet size and 3 packets per microframe due to bits 11 & 12 (read that somewhere but not sure where). These two figures don't add up - literally.

So, in a nutshell, what, if anything, am I missing. I have read your book until I'm bloodshot and have obviously missed something important.

John 

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: More USB Video Class - isochronous problem
« Reply #1 on: August 13, 2010, 05:57:27 pm »
I don't know the answer. Do you have a working, existing video-class device whose traffic you can monitor? Maybe look at the Linux source code for a clue?

Jan


jcheriton

  • Member
  • ***
  • Posts: 5
Re: More USB Video Class - isochronous problem
« Reply #2 on: August 14, 2010, 11:55:10 am »
Ok, thanks. I shall probably have to rent an analyser and see what's going on at the interface level. Would you like the solution (if I find one!) posted?

John

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: More USB Video Class - isochronous problem
« Reply #3 on: August 16, 2010, 09:01:49 am »
Yes, of course, please share what you find out.

Jan

Jacviah

  • Member
  • ***
  • Posts: 1
Re: More USB Video Class - isochronous problem
« Reply #4 on: March 14, 2012, 02:33:14 pm »
Hello!

I have the same problem! I try to use UVC camera but I can see only part of the preview. I think this is USB problem because there are a lot of packets with zero length through Isoch transfer. Please help me. How do you solve your problem?

Thanks!
Dave