-
Notifications
You must be signed in to change notification settings - Fork 783
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
uvc摄像头例子通讯报错 (AEGHB-844) #157
Comments
The root reason for this problem is that the camera has a different configuration descriptor in USB To get the camera's
|
I ran the 2nd way of ESP-IDF host example, in the attached file still shows USB2.0. |
Hi, from the ESP32_USB_Descriptor.txt, the camera could be supported because there is a the latest commits of uvc_stream can help print the camera class's descriptors, please try to find the MJPEG IDF should also be updated to the latest release/v4.4, these new commits must be included |
Thanks your suggest! I updated to latest release/v4.4 and run usb_camera_wifi_transfer example(remove wifi and http). And then get HCD_PIPE_EVENT_ERROR_OVERFLOW warning:(
my uvc_config:
The HCD_PIPE_EVENT_ERROR_OVERFLOW warning because of MPS >= 512? |
I'm trying to set it like this
It's can be working. |
@Gornerrrrr I think MPS=512 corresponding DEMO_ISOC_INTERFACE_ALT should be UVC negotiate process will give a suggested MPS result, your camera seems prefer MPS=800 interface, but it's no problem if you can set interface Alt to 512 without a pipe stall response, after that your camera will prepare 512-Bytes packets for the host to fetch. |
Thanks your help! |
@Gornerrrrr You can dig deeper into the issue, if you set |
when ALT=4 log
And I tryed get descriptor in windows PC.
ALT=4 MPS=512 |
@Gornerrrrr 你用的摄像头在哪买的?我买了几个类型,idf得到的MJPEG Frame Descriptor都是只有一个,而且只有160*120 |
淘宝搜阿香科技买的 |
方便问下这个摄像头型号么,我买的在fullspeed模式下仅支持非常小的分辨率。 |
我使用ESP32S3尝试了4款USB摄像头,提示E (1856) UVC_STREAM: Configuration descriptor larger than control transfer max length 都不支持设置接口为 wMaxPacketSize 为 512,最小都是800,请问能给出一个可用的UVC usb摄像头的购买链接或者是型号吗?,感谢 |
Some isochronous mode cameras support multiple interface alternatives, to support different data rates. You can try to run the example to find the But for camera vendors, it should be easy to add a 512 Bytes interface. BTW. Bulk mode camera is also supported now (no FIFO restriction, because Full speed bulk using 64 Bytes MPS), please refer fa1d17e for details. |
就是分辨率不高的吗,只能说能看到:( |
开发板:esp32s2-Saola-v1.2
开发环境:win10 + IDFv4.4 + esp iot solution
摄像头:USB2.0 uvc免驱支持MJPEG摄像头
我根据摄像头描述符配置了usb_camera_wifi_transfer例程的参数后烧写测试,发现在通讯之后报错“SWAP NO EOF ”。
运行log
我的配置:
摄像头描述符,我是用win10的软件获取的,比较多
摄像头描述符.txt
请问可能是什么问题导致的?uvc协议还在学习中不是很明白,是描述符配置的不对还是摄像头本身就不支持?或者说例程需要改动?
The text was updated successfully, but these errors were encountered: