@@ -2109,6 +2109,14 @@ MODEM_CHAT_SCRIPT_CMDS_DEFINE(simcom_a76xx_periodic_chat_script_cmds,
2109
2109
MODEM_CHAT_SCRIPT_DEFINE (simcom_a76xx_periodic_chat_script ,
2110
2110
simcom_a76xx_periodic_chat_script_cmds , abort_matches ,
2111
2111
modem_cellular_chat_callback_handler , 4 );
2112
+
2113
+ MODEM_CHAT_SCRIPT_CMDS_DEFINE (simcom_a76xx_shutdown_chat_script_cmds ,
2114
+ MODEM_CHAT_SCRIPT_CMD_RESP ("AT+CPOF" , ok_match ));
2115
+
2116
+ MODEM_CHAT_SCRIPT_DEFINE (simcom_a76xx_shutdown_chat_script ,
2117
+ simcom_a76xx_shutdown_chat_script_cmds , abort_matches ,
2118
+ modem_cellular_chat_callback_handler , 15 );
2119
+
2112
2120
#endif
2113
2121
2114
2122
#if DT_HAS_COMPAT_STATUS_OKAY (u_blox_sara_r4 )
@@ -2614,7 +2622,7 @@ MODEM_CHAT_SCRIPT_DEFINE(sqn_gm02s_periodic_chat_script,
2614
2622
&simcom_sim7080_dial_chat_script, \
2615
2623
&simcom_sim7080_periodic_chat_script, NULL)
2616
2624
2617
- #define MODEM_CELLULAR_DEVICE_SIMCOM_A76XX (inst ) \
2625
+ #define MODEM_CELLULAR_DEVICE_SIMCOM_A76XX (inst ) \
2618
2626
MODEM_PPP_DEFINE(MODEM_CELLULAR_INST_NAME(ppp, inst), NULL, 98, 1500, 64); \
2619
2627
\
2620
2628
static struct modem_cellular_data MODEM_CELLULAR_INST_NAME(data, inst) = { \
@@ -2629,9 +2637,10 @@ MODEM_CHAT_SCRIPT_DEFINE(sqn_gm02s_periodic_chat_script,
2629
2637
\
2630
2638
MODEM_CELLULAR_DEFINE_INSTANCE(inst, 500, 100, 20000, 5000, false, \
2631
2639
NULL, \
2632
- &simcom_a76xx_init_chat_script, \
2633
- &simcom_a76xx_dial_chat_script, \
2634
- &simcom_a76xx_periodic_chat_script, NULL)
2640
+ &simcom_a76xx_init_chat_script, \
2641
+ &simcom_a76xx_dial_chat_script, \
2642
+ &simcom_a76xx_periodic_chat_script, \
2643
+ &simcom_a76xx_shutdown_chat_script)
2635
2644
2636
2645
#define MODEM_CELLULAR_DEVICE_U_BLOX_SARA_R4 (inst ) \
2637
2646
MODEM_PPP_DEFINE(MODEM_CELLULAR_INST_NAME(ppp, inst), NULL, 98, 1500, 64); \
0 commit comments