EspTinyUSB icon indicating copy to clipboard operation
EspTinyUSB copied to clipboard

Does the MSC support Hot plugging?

Open starr3333 opened this issue 2 years ago • 2 comments

First of all, thank you for your work, EspTinyUSB is a great library!

When I try the MSC example, I found that the current MSC example program doesn't seem to support hot-plugging.

According to my test, when hot-plugging the disk, the usb_host_transfer_submit() function in USBmscDevice::csw() will return the status of ESP_ERR_INVALID_STATE. And then the program will lose the usb_host communication.

Is there any solution?

starr3333 avatar Feb 10 '22 15:02 starr3333

Sorry, it is not supported yet. Its because of bugs in esp-idf host code, which is already fixed in master, but im not sure if its backported to v4.4 and arduino-esp32.

chegewara avatar Mar 10 '22 13:03 chegewara

https://github.com/chegewara/EspTinyUSB/blob/master/examples/host/msc/msc.ino How can the functionality of USB hot-plugging be implemented in the example of host msc ?

gary7530 avatar Jun 07 '23 15:06 gary7530