espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.66k stars 7.29k forks source link

How to get all String Descriptors for the USB Sample ? (IDFGH-11665) #12778

Open diplfranzhoepfinger opened 10 months ago

diplfranzhoepfinger commented 10 months ago

Answers checklist.

General issue report

This Example:

https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/usb_host_lib

Sample Output: https://gist.github.com/diplfranzhoepfinger/2f6951300c622824c8db3332b0d2d5c5

Sample Output of a USB Device Tree Viewer on Windows https://gist.github.com/diplfranzhoepfinger/6e361602ca2154ba93dacb8b7c00dc1e

same by: lsusb -von Linux: https://gist.github.com/diplfranzhoepfinger/ee25591b7285ee4f715818d7adcaa494

why do we not get the Descriptors like "Mobile AT Interface" ?

Thanks, Franz

roma-jam commented 10 months ago

Hi @diplfranzhoepfinger,

Strings descriptors as "Mobile AT Interface", "Mobile RNDIS Network Adapter", "Mobile Diag Interface" and others are the additional String Descriptors describing the Interfaces . These String Descriptors are not handled in the usb_host_lib example.

In usb_host library only the primary String Descriptors are requested from the device (which describes iManufacturer, iProduct, iSerialNumber), that is why these descriptors are absent in the output of the example.

Do you think that the feature to be able to get these descriptors via usb_host library will be useful?

diplfranzhoepfinger commented 10 months ago

Hi @roma-jam 

Do you think that the feature to be able to get these descriptors via usb_host library will be useful?

I would love it.

diplfranzhoepfinger commented 10 months ago

i even would love to see:

SimTech HS-USB AT Port 9011

SimTech HS-USB Modem 9011

: SimTech HS-USB NMEA 9011

diplfranzhoepfinger commented 9 months ago

Any Timeframe when this will be ready ?

diplfranzhoepfinger commented 8 months ago

Hello, 

any idea when this could be ready ? 

thanks !

HDLA-BG commented 8 months ago

We also have the same problem in our project.

DOevermann commented 8 months ago

We also have the same problem in our project.

diplfranzhoepfinger commented 7 months ago

@david-cermak would help in the esp-modem to get rid of these Descriptors:

https://github.com/espressif/idf-extra-components/blob/09e79a9b24177b2024d373822029e67ac2495701/usb/esp_modem_usb_dte/include/esp_modem_usb_config.h#L75

having here , 4, 5)seems to be very bad style. 

Thanks.