Skip to content

Commit 71ba8e3

Browse files
committed
applications: serial_lte_modem: Allow skipping of startup message
If there is no certainty that remote end of serial connection has configured baud rates and flow-control pins correctly, it might be safer to just skip the "Ready" message from serial port. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
1 parent 20d1cbc commit 71ba8e3

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

applications/serial_lte_modem/Kconfig

+6
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ config SLM_MODEM_PIPE_TIMEOUT
201201

202202
endif
203203

204+
config SLM_SKIP_READY_MSG
205+
bool "Skip ready message"
206+
help
207+
Skip sending the ready message when the application is powered on.
208+
209+
204210
module = SLM
205211
module-str = serial modem
206212
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

applications/serial_lte_modem/overlay-cmux.conf

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66

77
CONFIG_SLM_CMUX=y
8+
CONFIG_SLM_SKIP_READY_MSG=y
89

910
# Zephyr modem subsystem
1011
CONFIG_MODEM_MODULES=y

applications/serial_lte_modem/src/slm_at_host.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -910,9 +910,12 @@ int slm_at_host_init(void)
910910
return err;
911911
}
912912

913-
err = slm_at_send_str(SLM_SYNC_STR);
914-
if (err) {
915-
return err;
913+
if (!IS_ENABLED(CONFIG_SLM_SKIP_READY_MSG)) {
914+
/* Send Ready string to indicate that AT host is ready */
915+
err = slm_at_send_str(SLM_SYNC_STR);
916+
if (err) {
917+
return err;
918+
}
916919
}
917920

918921
/* This is here and not earlier because in case of firmware

0 commit comments

Comments
 (0)