Git Product home page Git Product logo

Comments (5)

david-cermak avatar david-cermak commented on May 30, 2024

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.

AshUK avatar AshUK commented on May 30, 2024

We are targeting v4.4.1.

from esp-protocols.

david-cermak avatar david-cermak commented on May 30, 2024

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.

AshUK avatar AshUK commented on May 30, 2024

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.

AshUK avatar AshUK commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.