Skip to content

Commit 783b39c

Browse files
JordanYatesfabiobaltieri
authored andcommitted
modem: modem_cellular: update APN timings
100 ms is insufficient time enter command mode after `CMUX` on at least one modem (Telit LE910Cx), and waiting 5 seconds before retrying seems excessive. Signed-off-by: Jordan Yates <[email protected]>
1 parent dc56fb2 commit 783b39c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/modem/modem_cellular.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ static void modem_cellular_wait_for_apn_event_handler(struct modem_cellular_data
11881188
static int modem_cellular_on_run_apn_script_state_enter(struct modem_cellular_data *data)
11891189
{
11901190
/* Allow modem time to enter command mode before running apn script */
1191-
modem_cellular_start_timer(data, K_MSEC(100));
1191+
modem_cellular_start_timer(data, K_MSEC(200));
11921192
modem_cellular_build_apn_script(data);
11931193
return 0;
11941194
}
@@ -2077,7 +2077,7 @@ static void modem_cellular_init_apn(struct modem_cellular_data *data)
20772077
modem_chat_script_set_abort_matches(&data->apn_script,
20782078
abort_matches,
20792079
ARRAY_SIZE(abort_matches));
2080-
modem_chat_script_set_timeout(&data->apn_script, 5);
2080+
modem_chat_script_set_timeout(&data->apn_script, 1);
20812081
modem_chat_script_set_callback(&data->apn_script,
20822082
modem_cellular_chat_callback_handler);
20832083
}

0 commit comments

Comments
 (0)