esp-idf/examples/protocols/pppos_client/components/modem/include
David Cermak 55d41c3377 esp_modem: Fixed race condition on exiting PPP mode
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

Closes https://github.com/espressif/esp-idf/issues/6013
Closes https://github.com/espressif/esp-idf/issues/5737
Closes https://github.com/espressif/esp-idf/issues/6024
Closes https://github.com/espressif/esp-idf/issues/6058
Closes https://github.com/espressif/esp-idf/issues/5563
Closes https://github.com/espressif/esp-idf/issues/5695
Closes https://github.com/espressif/esp-idf/issues/5633
Closes https://github.com/espressif/esp-idf/issues/4482
Related https://github.com/espressif/esp-idf/pull/4849
Related https://github.com/espressif/esp-idf/pull/4653
2020-12-21 16:38:20 +01:00
..
bg96.h modem: support modem facility and PPPoS 2019-01-23 18:53:32 +08:00
esp_modem_compat.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp_modem_dce_service.h modem: support modem facility and PPPoS 2019-01-23 18:53:32 +08:00
esp_modem_dce.h fix esp_modem switch mode timeout 2020-05-29 13:03:15 +08:00
esp_modem_dte.h esp_modem: Fixed race condition on exiting PPP mode 2020-12-21 16:38:20 +01:00
esp_modem_netif.h pppos_client: udated example code to use esp-netif in PPP configuration 2019-12-16 17:34:10 +00:00
esp_modem.h esp_modem: Fixed race condition on exiting PPP mode 2020-12-21 16:38:20 +01:00
sim800.h modem: support modem facility and PPPoS 2019-01-23 18:53:32 +08:00
sim7600.h pppos-client: support for SIM7600 modem 2020-07-13 14:45:19 +00:00