【已解决】esp32s3使用usb stream,报错NUM Stage CHECK_SHORT_DEV_DESC, Failed

hlmpost
Posts: 6
Joined: Sat Jul 25, 2020 2:48 am

【已解决】esp32s3使用usb stream,报错NUM Stage CHECK_SHORT_DEV_DESC, Failed

Postby hlmpost » Thu Aug 24, 2023 2:30 am

idf是5.1版本,使用usb_camera_lcd_display例程,插入uvc,就会报如下错误
(5531) USB_STREAM: ENUM Stage GET_SHORT_DEV_DESC, Succeed
W (5537) USB_STREAM: Pipe(default): ERROR_XFER
I (5542) USB_STREAM: Action: ACTION_PIPE_DFLT_RECOVER
E (5548) USB_STREAM: D:/develop/esp/esp-iot-solution-master/components/usb/usb_stream/usb_stream.c:2759 (_uvc_uac_device_enum):urb cleared: enum abort
E (5562) USB_STREAM: ENUM Stage CHECK_SHORT_DEV_DESC, Failed
W (5568) USB_STREAM: USB enum failed, retrying in 200 ms...
同样代码,换成target为esp32s2,输出就正常。不知道是不是要打什么s3的补丁。

ESP_Junru
Posts: 49
Joined: Tue Jul 12, 2022 6:26 am

Re: esp32s3使用usb stream,报错NUM Stage CHECK_SHORT_DEV_DESC, Failed

Postby ESP_Junru » Thu Aug 24, 2023 2:48 am

请先检查一下硬件连接是否正确,s3 是 io 19 20。 软件上没有对 s3 进行特殊处理

hlmpost
Posts: 6
Joined: Sat Jul 25, 2020 2:48 am

Re: esp32s3使用usb stream,报错NUM Stage CHECK_SHORT_DEV_DESC, Failed

Postby hlmpost » Thu Aug 24, 2023 3:50 am

确实和开发板有关,换了一个,可以了,但
USB_STREAM: Pipe(UVC): ERROR_OVERFLOW
I (3685) USB_STREAM: usb stream task wait reset
I (4105) LVGL_INIT: png display,1
W (4685) USB_STREAM: usb stream task recover, reason: stream error
发生,
原始代码没有改动过。

hlmpost
Posts: 6
Joined: Sat Jul 25, 2020 2:48 am

Re: esp32s3使用usb stream,报错NUM Stage CHECK_SHORT_DEV_DESC, Failed

Postby hlmpost » Thu Aug 24, 2023 8:26 am

知道原因了,支持mps=512的接口是1-4,但usb stream找到的是1-3,不知道为什么?初始化时,用这个uvc_streaming_config,把option的项都填了,也没用 :?:

Who is online

Users browsing this forum: No registered users and 43 guests