Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applications: slm: Fix HWFC problems on nRF9151DK #20979

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions applications/serial_lte_modem/Kconfig
Original file line number Diff line number Diff line change
@@ -201,6 +201,12 @@ config SLM_MODEM_PIPE_TIMEOUT

endif

config SLM_SKIP_READY_MSG
bool "Skip ready message"
help
Skip sending the ready message when the application is powered on.


module = SLM
module-str = serial modem
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
1 change: 1 addition & 0 deletions applications/serial_lte_modem/overlay-cmux.conf
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
#

CONFIG_SLM_CMUX=y
CONFIG_SLM_SKIP_READY_MSG=y

# Zephyr modem subsystem
CONFIG_MODEM_MODULES=y
9 changes: 6 additions & 3 deletions applications/serial_lte_modem/src/slm_at_host.c
Original file line number Diff line number Diff line change
@@ -910,9 +910,12 @@ int slm_at_host_init(void)
return err;
}

err = slm_at_send_str(SLM_SYNC_STR);
if (err) {
return err;
if (!IS_ENABLED(CONFIG_SLM_SKIP_READY_MSG)) {
/* Send Ready string to indicate that AT host is ready */
err = slm_at_send_str(SLM_SYNC_STR);
if (err) {
return err;
}
}

/* This is here and not earlier because in case of firmware
4 changes: 4 additions & 0 deletions applications/serial_lte_modem/src/slm_cmux.c
Original file line number Diff line number Diff line change
@@ -114,6 +114,10 @@ static void init_dlci(size_t dlci_idx, uint16_t recv_buf_size,

static int cmux_write_at_channel(const uint8_t *data, size_t len)
{
if (cmux.dlcis[cmux.at_channel].instance.state != MODEM_CMUX_DLCI_STATE_OPEN) {
return 0;
}

int ret = modem_pipe_transmit(cmux.dlcis[cmux.at_channel].pipe, data, len);

if (ret != len) {