Replies: 2 comments
-
Hello, so now I just want to pm suspend and then pm resume modem after I get NET_EVENT_L4_DISCONNECTED: [00:07:29.597,000] conn_mgr: conn_mgr_ipv4_events_handler: (0x2000bb50): IPv4 event 0xe030000000000002 received on iface 1 (0x20002ee0) [00:07:50.709,000] conn_mgr: conn_mgr_iface_events_handler: (0x2000bb50): Iface event 0xd010000000000002 received on iface 1 (0x20002ee0) and here everything stops. "net iface" command from shell reports ipv4 none I can regain connectivity only if I do suspend and resume modem again at this point. |
Beta Was this translation helpful? Give feedback.
-
It helps if I chnage line fsm->flags = 0U to fsm->flags = FSM_RESTART in ppp_fsm_init (zephyr/subsys/net/l2/fsm.c). I'm using latest zephyr (main branch). if flags are 0 as originally set, then in ppp_fsm_open function if state is PPP_STOPPED nothing happens:
Should I open a issue? Similiar problem: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
How to react on NET_EVENT_L4_DISCONNECTED event with cellular modem to restore connectivity? Should I call net_if_down() and net_if_up()? In that case I cannot get socket to connect again, it is returning error 22 and warnings like:
net_ctx: DROP: src addr is unspecified
It only helps if I suspend / resume modem.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions