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