Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet (IEC-34) #218

Open
3 tasks done
sxrap1 opened this issue Jul 25, 2023 · 1 comment

Comments

@sxrap1
Copy link

sxrap1 commented Jul 25, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I can connect to USB UVC Camera, ans start streaming,
Frame Callback has packet lengths around the 1 to 2K bytes length, should be closer to 61K bytes
I can see the bytes coming in, in stream.c _uvc_stream_callback, however this code looks wrong to build up the full packet, hence the callback getting scrambled data.

@github-actions github-actions bot changed the title lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet (IDFGH-10727) Jul 25, 2023
@igrr igrr transferred this issue from espressif/esp-idf Jul 25, 2023
@github-actions github-actions bot changed the title lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet (IDFGH-10727) lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet (IDFGH-10727) (IEC-34) Jul 25, 2023
@igrr igrr changed the title lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet (IDFGH-10727) (IEC-34) lib uvc - isochronous mode transfer doesnt seem correct, causes callback to client on each partial frame packet (IEC-34) Jul 25, 2023
@leeebo
Copy link

leeebo commented Sep 14, 2023

@sxrap1 If you only need the UVC/UAC function in your USB Host project/product, try the usb_stream also. Which is based on a lower-level HCD driver, incompatible with other ESP-IDF USB host drivers, but easier to use and debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants