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