-
Notifications
You must be signed in to change notification settings - Fork 126
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
switch off Modem an on again (IDFGH-10544) #317
Comments
i thnik we will need a new ppp and/or netif Object, but i am far away of an Expert in this. |
i guess we need something like this: // UART DTE clean-up
esp_modem_destroy(dce);
esp_netif_destroy(esp_netif); but this code is from pppos Sample, and 'esp_modem_destroy' is not available in C++ also which Code is required to re-establish the dce and netif ? this are only guesses, we need clear advice here. |
Hi, i tried hard to destroy DCE and Netif, but it leads to crashes: Log: https://gist.github.com/diplfranzhoepfinger/8d679dcb099aa86aca3d977f53543111 Code: |
made another Try: Log: Not Successful.
|
VERY Curious: after trying forth and back, Code: https://github.com/diplfranzhoepfinger/esp-protocols-tree-master-components-esp_modem-examples-simple_cmux_client/tree/feature/leave_CMUX2 we have here a switch-off and a switch on of the Modem, so now the Question shrinks down to the Question: why does work while does not work. |
and next: Log: tokk over 3 Lines from the non-Working branch, but still working ? isn't this curious ? |
I guess you just have to send a |
Closing, feel free to reopen |
Answers checklist.
General issue report
Code:
https://github.com/diplfranzhoepfinger/esp-protocols-tree-master-components-esp_modem-examples-simple_cmux_client/tree/feature/CMUX_PWR_DOWN_UP
Log:
https://gist.github.com/diplfranzhoepfinger/744cb0e775afe25e9d8b5d70b4627d3d
I want to switch off the Modem, switch it on again,
and then make again a CMUX Session with Data and Command Channel.
but i get a URC of +PPPD: DISCONNECTED
how to solve this ?
The text was updated successfully, but these errors were encountered: