esp-idf/examples/protocols/pppos_client/components/modem
David Cermak 427aeec530 esp_modem: Fixed race condition on exiting PPP mode (v4.1)
esp_modem_stop_ppp() stops both ppp netif and switches the modem back to
command mode. IF these two actions are not synchronised, we might
experience issues of
* active PPP session trying to send/receive uart-data
* command mode already active before modem switched to it
both resulting in crashes.
Fixed by introducing the transition mode and running these actions in sequence
* set esp-modem to transition mode
* enter command mode, wait for the reply or re-sync
* close the PPP netif
* wait until the netif closes
Other fixes include ignoring certain events if modem component not ready
or not in appropriate mode:
* ignoring all UART events comming from DTE with no DCE attached
* ignore pattern detection in PPP mode
2021-01-05 12:32:30 +01:00
..
include esp_modem: Fixed race condition on exiting PPP mode (v4.1) 2021-01-05 12:32:30 +01:00
src esp_modem: Fixed race condition on exiting PPP mode (v4.1) 2021-01-05 12:32:30 +01:00
CMakeLists.txt esp_modem: add simple compatibility layer for new esp_modem connecting over esp-netif 2019-12-16 17:34:10 +00:00
component.mk modem: support modem facility and PPPoS 2019-01-23 18:53:32 +08:00