-
Notifications
You must be signed in to change notification settings - Fork 73
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
Unmount a host msc usb #143
Comments
Hi, Yes, this example is probably good starting point to do it |
Hi. Looking at other codes I tried to implement unmount method , but it doesn't work. On diskio_rawmsc.cpp module I added:
} Then, on the example msc.ino inside ... Event is triggered, but when I try to plug usb drive again it doesn't re mount it again. |
Hello, I hjave the same issue with the destructor, I need to modify usb_host.cpp to add the call back USB_HOST_CLIENT_EVENT_DEV_GONE like this :
} And
It will be very useful if the futur version of this library V2_03 include a correct destructor like on IDF, again Chegewara thanks for for library |
Hello.
I'm new to github and and it's the first time I'm approaching USB management.
I hope I'm asking for help correctly: I started from the example /examples/host/msc/msc.ino
I would like to be able to handle remounting a usb drive after unplugging it from the esp32s3 usb port (i'm using pin 19=d- and 20=d+).
Starting from the example mentioned above , I added the management of the USB_HOST_CLIENT_EVENT_DEV_GONE event in
void _client_event_callback() inside usb_host.cpp module of library.
This is because otherwise the usb drive disconnect event was not detected inside void client_event_callback(const usb_host_client_event_msg_t *event_msg, void *arg) of msc.ino.
Once usb drive is disconnected, however, it is no longer remounted if I plug it again.
I tried to implement the unmount function following what I found on https://github.com/chegewara/esp32-usb-host
but it does not work. I can only reset the esp32s3 to be able to mount usb drive again.
Could anyone help me and tell me how to fix the problem?
regards
The text was updated successfully, but these errors were encountered: