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

USB Camera 设备描述符解析错误 (AEGHB-898) #439

Closed
3 tasks done
NuclearRee opened this issue Dec 1, 2024 · 6 comments
Closed
3 tasks done

USB Camera 设备描述符解析错误 (AEGHB-898) #439

NuclearRee opened this issue Dec 1, 2024 · 6 comments

Comments

@NuclearRee
Copy link

NuclearRee commented Dec 1, 2024

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.

IDF version.

v5.3.1

Espressif SoC revision.

ESP32S3 UTG USB

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

usb_stream.c

Steps to reproduce.

使用ESP32S3 OTG USB开发板进行开发,使用官方示例项目usb_camera_mic_spk进行摄像头推流时。接入摄像头后发现usb设备描述符解析与windows的 usbtreeview.exe解析结果不一致,导致识别不到usbCamera的Video Streaming MJPEG Format Type Descriptor,无法进行摄像头推流。不一致数据如下图所示
企业微信截图_20241201222504

Build Logs.

No response

More Information.

No response

@github-actions github-actions bot changed the title USB Camera 设备描述符解析错误 USB Camera 设备描述符解析错误 (AEGHB-898) Dec 1, 2024
@lijunru-hub
Copy link
Contributor

应该是你这个摄像头不支持在 USB 1.1 Full Speed 下工作,可以用接上 USB 隔离器后再抓一下描述符。

It seems that your camera does not support working in USB 1.1 Full Speed mode. You can try connecting it through a USB isolator and then capture the descriptors again.

@NuclearRee
Copy link
Author

应该是你这个摄像头不支持在 USB 1.1 Full Speed 下工作,可以用接上 USB 隔离器后再抓一下描述符。

It seems that your camera does not support working in USB 1.1 Full Speed mode. You can try connecting it through a USB isolator and then capture the descriptors again.

尝试了一下接了一个usbhub后无法识别到设备了
image
下面是用usbtreeview解析的文件
usb.md

@lijunru-hub
Copy link
Contributor

usb stream 不支持 USB HUB, USB 隔离器不是 USB HUB,是强制设备运行在 FullSpeed 的设备。
看 log 你这个摄像头在 PC 下是走的 HighSpeed 运行的。你得确定这个设备支不支持 USB FullSpeed。
有些摄像头在 HighSpeed 下可以正常工作,但是可能 FullSpeed 下就没有那么多格式选择,甚至不支持
image

@NuclearRee
Copy link
Author

usb stream 不支持 USB HUB, USB 隔离器不是 USB HUB,是强制设备运行在 FullSpeed 的设备。 看 log 你这个摄像头在 PC 下是走的 HighSpeed 运行的。你得确定这个设备支不支持 USB FullSpeed。 有些摄像头在 HighSpeed 下可以正常工作,但是可能 FullSpeed 下就没有那么多格式选择,甚至不支持 image

我又查看了一下设备描述符,有全速模式下的描述符,发现就是我们选取的摄像头不支持全速模式下运行。
可以通过修改驱动层来适配HighSpeed的usb设备?硬件层面会有问题吗

@NuclearRee
Copy link
Author

NuclearRee commented Dec 2, 2024

usb stream 不支持 USB HUB, USB 隔离器不是 USB HUB,是强制设备运行在 FullSpeed 的设备。 看 log 你这个摄像头在 PC 下是走的 HighSpeed 运行的。你得确定这个设备支不支持 USB FullSpeed。 有些摄像头在 HighSpeed 下可以正常工作,但是可能 FullSpeed 下就没有那么多格式选择,甚至不支持 image

我又查看了一下设备设备描述符,下面有全速模式的设备描述,确实是我们选取的摄像头不支持全速模式下运行。

如果想支持的化可以通过修改驱动层来适配HighSpeed的usb设备?硬件层面会有问题吗?

@lijunru-hub
Copy link
Contributor

硬件限定的,除非你换 ESP32-P4

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