-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Configuration descriptor larger than control transfer max length (IDFGH-8401) #9868
Comments
Set the value you need |
Thank you for the reply.
I changed this value from 1024 to 4096. uvc_find_device() is pass.
app_main main.c:231 is UVC_CHECK( uvc_start_streaming(devh, &ctrl, frame_callback, NULL, 0) ); |
I compared it with: "uvc_get_stream_ctrl_format_size" in esp-idf does not work properly. Linux
ESP-IDF
|
Mayby libusb_open() issues. uvc_print_diag() using Linux
uvc_print_diag() using ESP-IDF
|
@nopnop2002 I'm very sorry for the extra ordinary slow response. As you can see from your logs, the USB camera descriptors differs for HighSpeed (linux) and FullSpeed (esp32-sx). In latest master branch we merged bunch fixes for USB cameras. Could you try again? |
Thank you for your reply.
Using the Logitech C615 I get the following error:
|
@nopnop2002 Thanks for the log. We'd need a USB trace to see what exactly caused the problem. The USB Video class will get more attention from us in upcoming weeks/months so I hope we can reproduce and fix on our side |
Please let me know if there is anything I can do. |
In the past 6 months we have tested with a dozen of different USB cameras and we did not see similar error. We can keep this open if someone gets the same error |
I would like to know the device ID of a USB camera that works properly. |
It's hard to find a working USB camera. Older Microsoft models work reliably. Microsoft LifeCam Cinema -> Success |
Thank you! If I want to run this project, do you think I should buy a new camera, or try different code? |
@sbyang369 |
Hello everyone who follows this very old issue. We had many requests for USB cameras support and with High Speed capabilities of ESP32-P4 the pressure for this feature increased even more. If you are interested in pre-release testing you can have a look here espressif/esp-usb#84 |
I used this sample to try out the UVC driver v2. I used Logitech C615. linux libuvcIt can capture in YUY2 and 640x480.
esp-idf libuvcIt can't capture in YUY2 and 640x480.
|
@nopnop2002 I ordered the camera and will test ASAP EDIT: The issues was reproduced, working on a fix now |
Some UVC devices require to set alternate setting to 0 before the negotiation starts. Closes espressif/esp-idf#9868
@nopnop2002 thank you for your patience. Could you please test if espressif/esp-usb#129 fixes your problem? |
|
Some UVC devices require to set alternate setting to 0 before the negotiation starts. Closes espressif/esp-idf#9868
@nopnop2002 Sorry about that, I force-pushed to espressif/esp-usb#129 and tested with your frame format, all works now. Thank you again! |
This is good news. |
Answers checklist.
IDF version.
ESP-IDF v5.1-dev-862-g09f7589ef2-dirty
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
Development Kit.
A board using Ai-Thinker's ESP-S3-12K
Power Supply used.
USB
What is the expected behavior?
I tried this example.
https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/uvc
With This USB camera(SANWA) it works fine.
However, Using the Logitech C615 I get the following error:
What is the actual behavior?
Using the Logitech C615 I get the following error:
Steps to reproduce.
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: