nRF9160: SLM Shell

The SLM Shell sample demonstrates how to send AT commands to modem through the Serial LTE Modem application running on nRF9160 SiP. This sample enables an external MCU to send modem or SLM proprietary AT commands for LTE connection and IP services.

Requirements

The SLM application should be configured to use UART_2 on the nRF9160 side with no hardware flow control.

The sample supports the following development kits:

Hardware platforms

PCA

Board name

Build target

nRF7002 DK

PCA10143

nrf7002dk_nrf5340

nrf7002dk_nrf5340_cpuapp

nRF5340 DK

PCA10095

nrf5340dk_nrf5340

nrf5340dk_nrf5340_cpuapp

nRF52840 DK

PCA10056

nrf52840dk_nrf52840

nrf52840dk_nrf52840

Connect the DK with a nRF9160 DK based on the pin configuration in DTS overlay files of both sides.

The following table shows how to connect PCA10056 UART_1 to nRF9160 UART_2 for communication through UART:

nRF52840 DK

nRF9160 DK

UART TX P1.02

UART RX P0.11

UART RX P1.01

UART TX P0.10

GPIO OUT P0.11 (Button1)

GPIO IN P0.31

GPIO IN P0.13 (LED1 optional)

GPIO OUT P0.30 (optional)

GPIO GND

GPIO GND

Note

The GPIO output level on the nRF9160 side must be 3 V to work with the nRF52 series DK. You can set the VDD voltage with the VDD IO switch (SW9).

The following table shows how to connect PCA10095 UART_2 to nRF9160 UART_2 for communication through UART:

nRF5340 DK

nRF9160 DK

UART TX P1.04

UART RX P0.11

UART RX P1.05

UART TX P0.10

GPIO OUT P0.23 (Button1)

GPIO IN P0.31

GPIO IN P0.28 (LED1 optional)

GPIO OUT P0.30 (optional)

GPIO GND

GPIO GND

Note

The GPIO output level on the nRF9160 side must be 3 V to work with the nRF53 series DK. You can set the VDD voltage with the VDD IO switch (SW9).

The following table shows how to connect PCA10143 UART_2 to nRF9160 UART_2 for communication through UART:

nRF7002 DK

nRF9160 DK

UART TX P1.04

UART RX P0.11

UART RX P1.05

UART TX P0.10

GPIO OUT P0.31

GPIO IN P0.31

GPIO IN P0.30 (optional)

GPIO OUT P0.30 (optional)

GPIO GND

GPIO GND

Note

The GPIO output level on the nRF9160 side must be 1.8 V to work with the nRF70 series DK. You can set the VDD voltage with the VDD IO switch (SW9).

References

AT Commands Reference Guide

SLM-specific AT commands

Dependencies

This sample uses the following nRF Connect SDK libraries: