Closed lijunru-hub closed 3 months ago
@lijunru-hub Sorry for the late reply.
Draft implementation is here https://github.com/espressif/esp-usb/pull/24/commits/a639a34e904cc0a3ba6d10ab9c7d3b6341c4cbc6
Compared to your proposal, it is a little different: It accepts a uvc_device_handle_t
, so the UVC device must be already opened. Does this solve your problem?
I think before uvc_open to get the hardware's info is better. Like use the uvc_device_t
handle
I think before uvc_open to get the hardware's info is better. Like use the uvc_device_t handle
Thank you for the feedback, I understand now. Implemented according to your suggestion in 83cf7019fcb0d49197aedc89460a6c4114e944e5
On the IDF branch hotfix/usb_hub_uninstall, a new field for the hardware port of the hub has been added. However, currently, this information can only be retrieved within UVC_OPEN. It is desired to add an API to retrieve device information before UVC_OPEN.
eg: