Comments (5)
Hi @AshUK
Which version of IDF are you using? This should work correctly on latest v5.0-dev
and v4.4
, but I recall we had some issues with event propagation on some older branches.
from esp-protocols.
We are targeting v4.4.1.
from esp-protocols.
Strange, this must work. Could you please share the initial part of setting up the esp-netif
and modem's DTE?
Note, that there's also a run-time configuration in esp_netif_ppp_config_t
that could enable/disable the phase/state events separately (but the error event should be enabled by default). Could you please try to call esp_netif_ppp_config_t()
API after creating the interface:
esp_netif_config_t ppp_netif_config = ESP_NETIF_DEFAULT_PPP();
esp_netif_t *ppp_netif = esp_netif_new(&ppp_netif_config);
assert(ppp_netif);
esp_netif_ppp_config_t ppp_config = { true, true };
esp_netif_ppp_config_t(ppp_netif, &ppp_config);
from esp-protocols.
Ahh this makes sense, thank you very much, now using esp_netif_ppp_set_params
I am now seeing all the events come through as expected. The misnomer was were seeing NETIF_PPP_ERRORUSER
errors on init as we always exit PPP mode regardless of config.
from esp-protocols.
The flow of events for anyone reading this is the future.
--- connection reset via MVNO portal ---
NETIF_PPP_PHASE_INITIALIZE
NETIF_PPP_PHASE_ESTABLISH
NETIF_PPP_PHASE_AUTHENTICATE
NETIF_PPP_PHASE_NETWORK
NETIF_PPP_PHASE_RUNNING
-- force a modem disconnect ---
NETIF_PPP_PHASE_NETWORK
NETIF_PPP_PHASE_ESTABLISH
NETIF_PPP_PHASE_DISCONNECT
NETIF_PPP_PHASE_DEAD
from esp-protocols.
Related Issues (20)
- When using esp_modem components, cdc_acm: Incorrect number of bytes transferred error occasionally occurs after networking to the Internet (IDFGH-12227) HOT 1
- [BUG] mDNS stops working with heavy UDP load (IDFGH-12307) HOT 2
- mDNS results in esp_netif_lwip log spam (IDFGH-12320) HOT 1
- Freezing of the ESP, triggering the WDT! (ESP-MODEM) (IDFGH-12332) HOT 3
- Response Issue in CMUX Mode (IDFGH-12431) HOT 15
- little help in getting esp_modem and LiliGo-TSIM7080-S3 to work (IDFGH-12454) HOT 3
- esp-modem next step : ppp auth ? (IDFGH-12496) HOT 5
- esp-modem: AT command response truncated sometimes when in CMUX mode (IDFGH-12526) HOT 3
- mdns: ethernet link flap doesn't restart mdns if DHCP in use. (IDFGH-12563) HOT 2
- esp-netif_lwip-ppp: Connection lost, Modem Disconnect from PPP Server (IDFGH-12618) HOT 5
- Choosing The Right Mode For SIMCOM or Any Modem... (AT or DialUP) (IDFGH-12638) HOT 10
- problems with modem_tcp_client and Telit LE910Cx modem (IDFGH-12643) HOT 1
- esp_mqtt_cxx not set last will (IDFGH-12648)
- Kconfig in modem_example limits the UART pins till 31 - should be higher to support s3 (IDFGH-12700) HOT 1
- LwIP PPP connection close and no authentication (IDFGH-12720) HOT 3
- esp_modem freezes when flow control is enabled and module is unresponsive (IDFGH-12739) HOT 1
- C++ example please (IDFGH-12752) HOT 2
- EPPP Reverse link to provide Access Point (IDFGH-12759) HOT 12
- esp_wifi_remote: key-pair generated by generate_test_certs.py not work in example (IDFGH-12801) HOT 10
- Fix code scanning alert - expected '(' for function-style cast or type construction [clang-diagnostic-error] (IDFGH-12824)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-protocols.