Hi, I use a Huawei MS2372h-607. It is a classical AT+PPP modem. I have a problem when I stop ofono while context is activated. When I restart ofono (without unplugging the modem), I am not able to send any AT command on Modem channel because this channel is still in data mode. I made a patch to send escape sequence when gprs-context atom is removed. It fixes the problem but I don't know if this is the right thing to do. Attached to this mail: I/ reconnectError_01: traces of complete test (with debug and AT debug). Test done: 1) board boot 2) Connection (success), start at line 1058: connmanctl connect cellular... 3) stop ofono, start at line 1109: /etc/init.d/ofono stop 4) start ofono, start at line 1348: /etc/init.d/ofono start 5) Connection (error), start at line 2018: connmanctl connect cellular... I don't have PPP debug in this trace but here is what happens at PPP level when Ofono is stopped: ofonod[944]: ../ofono-1.24/drivers/atmodem/gprs-context.c:at_gprs_detach_shutdown() cid 0 ofonod[944]: PPP: lcp: pppcp_generate_event: current state 9:OPENED ofonod[944]: PPP: event: 3 (Close), action: 8224, new_state: 4 (CLOSING) ofonod[944]: PPP: lcp: pppcp_initialize_restart_count: current state 9:OPENED ofonod[944]: PPP: lcp: pppcp_send_terminate_request: current state 9:OPENED ofonod[944]: PPP: ipcp: pppcp_generate_event: current state 9:OPENED ofonod[944]: PPP: event: 1 (Down), action: 201, new_state: 1 (STARTING) ofonod[944]: PPP: ../ofono-1.24/gatchat/gatppp.c:ppp_enter_phase() 5 ofonod[944]: ../ofono-1.24/src/gprs.c:gprs_context_unregister() 0xc10ed0, 0xc10d90 ofonod[944]: ../ofono-1.24/src/gprs.c:gprs_context_remove() atom: 0xc10ef0 ofonod[944]: ../ofono-1.24/drivers/atmodem/gprs-context.c:at_gprs_context_remove() ofonod[944]: ../ofono-1.24/src/gprs.c:gprs_unregister() 0xc10d90 Terminate request is sent and then gprs-context atom is removed before Terminate Ack is received. II/ 0001-PPP-send-escape-sequence-when-ofono-dies.patch The patch I made to fix the problem. The idea is to immediately send escape sequence when removing gprs-context atom. This patch is not ready to be sent (at least it must be split in two patches). Can you tell me what you think about this patch?  Best Regards, Christophe Ronco