UART configuration

The nRF91M1 module is a pre-programmed nRF9151 SiP that runs the Serial Modem application out of the box.

UART interface

The nRF91M1 module is controlled by a host processor through a UART interface. The host sends AT commands and receives responses and notifications over this UART. When CMUX is enabled, the same UART also carries PPP data frames for network communication.

UART interface setup

UART interface setup

The following UART signals are used:

Signal

Direction

Purpose

TX/RX

Bidirectional (crossed)

Data transmission.

RTS/CTS

Bidirectional (crossed)

Hardware flow control.

DTR

Host to nRF91M1

Data Terminal Ready. Host signals UART is powered on.

RI

nRF91M1 to Host

Ring Indicator. The nRF91M1 wakes host for incoming data.

The Data Terminal Ready (DTR) and Ring Indicator (RI) signals are the control signals for UART power management, while TX/RX/RTS/CTS are the standard UART signals.

Important

The nRF91M1 module has hardware flow control (RTS and CTS) permanently enabled. Using the nRF91M1 module without connecting RTS and CTS to the host is experimental and strongly not recommended. See Operating without hardware flow control for more information.

nRF91M1 module pin assignment

The following table shows how to connect the UART pins to the corresponding pins on the nRF91M1 module (nRF9151 LGA pin assignments):

Signal

nRF91M1 module pin

UART0 TX

45

UART0 RX

44 (pull-up)

UART0 RTS

74

UART0 CTS

75 (pull-up)

UART0 DTR

50 (active low, pull-up)

UART0 RI

49 (active low)

UART1 TX

48

UART1 RX

47 (pull-up, not connected to the host)

AT UART:

  • UART instance: UART0

  • Baud rate: 115200

  • Hardware flow control: Enabled

Log / Trace UART:

  • UART instance: UART1

  • Baud rate: 1000000

  • Hardware flow control: Disabled

Important

Operating the nRF91M1 module without hardware flow control is strongly not recommended. See Operating without hardware flow control for more information.

Power and reset pins

The following pins supply, power on, and reset the nRF91M1 module:

Signal

nRF91M1 module pin

ENABLE

10 (active high)

nRESET

9 (active low, external pull-up not allowed)

VDD

14

VDD_GPIO

65

The nRF91M1 module firmware has no watchdog. The host must therefore be able to reset the nRF91M1 module to a known state, either by power cycling it with ENABLE or by using nRESET.

Note

The pins listed here are not the only pins that can be useful with the nRF91M1 module. For the complete pin list, see the nRF9151 LGA pin assignments. For hardware integration guidance, see the nRF9151 Hardware Integration page.

Controlling the UART power state

The UART power state of the nRF91M1 module is controlled by the DTR signal. When DTR is asserted by the host, the UART is enabled and ready for communication. When DTR is deasserted, the UART is powered down to save power.

When the UART is powered down, it releases its high-speed clocks, which are then automatically stopped by the system’s power management. This achieves the lowest possible power consumption, as the UART is one of the primary power consumers in nRF91M1 module. Power consumption can be reduced from hundreds of microamps to just a few microamps when the UART is powered down.

UART power management is completely independent of the modem power management (CFUN, PSM, eDRX, and so on). By actively managing the UART power state through DTR control, the nRF91M1 module achieves ultra-low power consumption of approximately 2 µA when the cellular modem enters Power Saving Mode (PSM) and the UART is powered down. For comparison, the nRF9151 Product Specification lists a typical current of 510 µA for UARTE transferring data at 115200 bps. The nRF91M1 module retains all the RAM content while in any of the power saving modes, so the application can resume from where it left off when the UART is powered up. Full network context is maintained, including socket connections, TLS/DTLS sessions, and so on. LTE connection is automatically resumed when there is outgoing data to be sent. No other GPIO control is required to utilize the PSM or eDRX modes.

Incoming data wake-up

When the UART is powered down and there is incoming data, the nRF91M1 module asserts the RI pin to notify the host. The host must handle the RI signal by powering up its UART device and asserting the DTR line, signaling to the nRF91M1 module that the UART is powered on and ready to receive data. The RI signal remains asserted until the UART is activated and ready to transmit data.

Modem waking up the host timing diagram

Sequence diagram showing the wake-up sequence when the UART is powered down

This sequence diagram illustrates the wake-up sequence when the UART is powered down. The RI signal triggers the host to power up its UART and assert DTR. Once the host UART is ready and DTR is asserted, the nRF91M1 module enables its UART interface. The RI signal remains active throughout this process and only returns to inactive once the nRF91M1 module UART is active. This coordinated wake-up ensures both ends of the communication link are ready before data transmission begins.

With hardware flow control - The host can observe its CTS pin (connected to nRF91M1 module’s RTS) to know when nRF91M1 module is ready to receive data. When nRF91M1 module starts driving its RTS pin, the host knows that nRF91M1 module is ready to receive. The host must also have a pull-up on its CTS pin.

Without hardware flow control- The host must monitor the RI signal, which is de-asserted when the nRF91M1 module UART becomes ready to receive data. Alternatively, the host can implement a sufficient timeout between asserting DTR and initiating its first TX operation. See Operating without hardware flow control for how to configure nRF91M1 module to transmit without hardware flow control.

Host-initiated wake-up

When the host processor needs to send data, it first powers up the UART device, then asserts the DTR signal to indicate that the UART is active. The modem detects the DTR assertion and powers up its UART interface, allowing communication to resume.

Host waking up the modem

Sequence diagram showing host-initiated wake-up of the modem

Boot-up scenario

To boot-up the nRF91M1 module, the host asserts ENABLE, DTR, and enables its UART (driving nRF91M1 module CTS low). The nRF91M1 module firmware initializes within approximately 2000 ms, during which it activates its UART and asserts RTS to signal readiness. nRF91M1 module then transmits a "Ready" message on TX, confirming that the link is operational.

Boot-up sequence diagram

Signal sequence during boot-up

The ENABLE pin (pin 10 on the nRF91M1 module) is a high-impedance control input for the internal power management unit (PMU) of the nRF91M1 module. Driving it to a logic high powers on the nRF91M1 module. Driving it to a logic low brings the device into an extremely low-current state. Any internal state not retained in non‑volatile memory is lost, and a full boot-up sequence is required when ENABLE is reasserted. See nRF9151 Hardware Design Guidelines — ENABLE for more information about the ENABLE pin.

Reset scenario

To reset the nRF91M1 module to a known state, do one of the following:

  • Drive nRESET low for at least 5 µs.

  • Power cycle the nRF91M1 module with ENABLE. Keep ENABLE low for at least 1 s.

After the reset, the startup sequence is the same as in the Boot-up scenario.

Pull-up resistors and power consumption

The DTR input and the UART RX and CTS pins of the nRF91M1 module have internal pull-up resistors. A pull-up resistor connects the pin to the I/O supply (VDD_GPIO), so that the pin reads as high when nothing drives it.

The pull-up of the DTR pin is always enabled. The pull-ups of the RX and CTS pins are enabled only while the UART is powered on. When the UART is powered down, the pull-ups are disabled and the input buffers are disconnected, so the RX and CTS pins are floating. This prevents pull-up current when the host drives these pins low, so the pins do not add to the power consumption in that state.

When the host drives such a pin low, the host output works against the pull-up resistor. Current flows from VDD_GPIO, through the pull-up resistor, and into the host output.

According to the GPIO electrical specification in the nRF9151 Product Specification, the pull-up resistance is 11 kΩ minimum, 13 kΩ typical, and 16 kΩ maximum. The lower the resistance, the higher the current. The specification does not list the resulting currents. The following table lists the current for each pin that is driven low, calculated from these resistance values with I = V / R:

VDD_GPIO

Lowest current (16 kΩ)

Typical (13 kΩ)

Highest current (11 kΩ)

1.8 V

113 µA

138 µA

164 µA

3.0 V

188 µA

231 µA

273 µA

For comparison, an active UART consumes about 510 µA at 115200 bps, so the pull-up current is a considerable addition. The UART current is drawn from VDD (3.0 V to 5.5 V), and the nRF9151 Product Specification gives the typical value at 3.7 V. The pull-up current is drawn from VDD_GPIO (1.7 V to 3.6 V), so the table lists 1.8 V and 3.0 V as examples of host I/O voltages. Compared to the current of an active modem, both the pull-up current and the UART current are small.

Important

The pull-up current is drawn from VDD_GPIO, not from the main supply (VDD). A current measurement on VDD, for example with the Power Profiler Kit II (PPK2) connected between the power source and VDD, does not include this current. To see it, measure the current of the VDD_GPIO supply.

The DTR signal of the nRF91M1 module is active low. Therefore, the pull-up current flows for as long as the host keeps DTR asserted. While DTR is deasserted, the pin is high and no current flows.

To reduce the current, release the pin or drive it high whenever you do not need the low state. The internal pull-up then holds the pin high, and no current flows.

Zephyr hosts

If the host runs Zephyr, you can automate the UART power management with Zephyr’s cellular modem driver.

See Automatic UART power management using Zephyr’s Cellular Modem driver for more information.

Operating without hardware flow control

Important

The use of the nRF91M1 module without hardware flow control (RTS/CTS) is experimental and strongly not recommended. Hardware flow control ensures reliable communication and prevents timing-related issues. Without hardware flow control, there is a risk of data loss in UART communication, especially in high-throughput scenarios.

The nRF91M1 module has hardware flow control permanently enabled and it cannot be disabled. To operate without hardware flow control, do the following:

  • Wire the CTS pin to GND — Wiring CTS to GND holds the line low, allowing the nRF91M1 module to transmit. Without this, the nRF91M1 module sees CTS as high (not clear to send) and does not transmit.

    • Increased power consumption — The nRF91M1 module has an internal pull-up on the CTS pin that cannot be removed. With CTS wired to GND, the pull-up draws current and increases the power consumption while the UART is active. See Pull-up resistors and power consumption.

  • RTS does not need to be connected — The RTS pin is not used.

Key requirements:

  • The host must enable its own UART before asserting DTR.

  • To detect when the nRF91M1 module is ready to receive, monitor the RI signal (de-asserted when ready) or use a sufficient timeout after DTR assertion.

  • See Incoming data wake-up for detailed timing information.

  • In boot-up scenarios, the host must wait for the "Ready" message from the nRF91M1 module before sending any data.

Buffer size:

The UART receive buffer of the nRF91M1 module is fixed to 532 bytes and cannot be configured.

Operating with the nRF9151 DK

You can flash the nRF91M1 firmware to the nrf9151dk board for development and testing purposes.

Important

The UART stays disabled until the DTR pin is asserted. On the nrf9151dk board, you must connect P0.31 (DTR) to GND. Otherwise, the nRF91M1 module does not respond to AT commands.

On the DK, the SiP is an nRF9151, and the UART pins follow the pin mapping of the nRF91M1 as listed in the following table:

Signal

nrf9151dk pin

UART0 TX

P0.27

UART0 RX

P0.26 (pull-up)

UART0 RTS

P0.14

UART0 CTS

P0.15 (pull-up)

UART0 DTR

P0.31 (active low, pull-up)

UART0 RI

P0.30 (active low)

UART1 TX

P0.29

By default on the nrf9151dk board, UART0 is routed to VCOM0 on the interface chip, and UART1 is routed to VCOM1 on the interface chip. This allows you to use the nrf9151dk board with a PC host for development and testing.

Run the application firmware on the nRF9151 DK

To test the nRF91M1 application firmware on the nrf9151dk board, complete the following steps:

  1. Download the modem firmware and the application firmware from the nRF91M1 Downloads page.

  2. Install the Programmer app in nRF Connect for Desktop.

  3. Program the modem firmware to the nrf9151dk board using the Programmer app. Follow the instructions for the modem firmware in Programming nRF91x1 DK firmware.

  4. Unzip the application firmware package. Program the .hex file to the nrf9151dk board using the Programmer app. Follow the instructions for the application firmware in Programming nRF91x1 DK firmware, which differ from the instructions for the modem firmware.

  5. Connect P0.31 (DTR) to GND using a jumper wire. Currently, you must use a physical jumper wire, but in the future, you can use the Board Configurator app in nRF Connect for Desktop.

  6. Open a serial terminal on VCOM0 using the settings listed in PC host.

  7. Press the RESET button on the board and wait for the Ready message.

  8. Send AT. The nRF91M1 module responds with OK.

PC host

When you use the nrf9151dk board with a PC host, you must connect the DTR pin to GND to enable UART0, as described in Run the application firmware on the nRF9151 DK.

When you use a PC serial terminal application (for example, PuTTY, Tera Term, minicom) to send AT commands, configure the terminal as follows:

  • UART instance: VCOM0

  • Baud rate: 115200

  • Hardware flow control: RTS/CTS enabled

  • Line terminator: CRLF

  • AT command terminator: CR

Ensure that the return key sends the CR (Carriage Return) character as the line terminator. Incoming serial output uses both the CR and the LF (Line Feed) characters. These settings are the default configuration for the PuTTY, Tera Term, minicom, and picocom serial terminal applications.

UART1 (VCOM1) carries the log and trace output at 1000000 baud, without hardware flow control.

See AT command syntax for the AT command syntax.

External MCU host

When you use the nrf9151dk board with an external MCU host, you must disable VCOM0 in the Board Configurator app to release the UART pins for external use.

Cellular PPP modem

For information on how the nRF91M1 module works as a cellular PPP modem, see Cellular PPP modem. For information on how to configure a Linux host with the nrf9151dk board running nRF91M1 firmware, see Serial Modem PPP Linux host. For a Zephyr host, see Serial Modem PPP Zephyr host.

UART security considerations

UART is a plain serial link with no built-in encryption or authentication, so data that the host and the nRF91M1 module exchange over the UART is therefore not protected. You can reduce the exposure by keeping the UART lines hidden inside the physical security boundary of your product. When you need stronger confidentiality, terminate secure protocols on the host instead of in the modem.

The following data is sent over the UART in cleartext:

  • Application data sent and received over modem-terminated TLS or DTLS sockets.

  • AT commands, responses, and notifications exchanged with the nRF91M1 module that may contain sensitive information.

Choose one of the following security models based on the physical security of your product.

Aspect

Model A: Trusted UART

Model B: Untrusted UART

When to use

The UART lines are inside the physical security boundary of the product.

The UART lines are accessible outside the physical security boundary of the product, or the product requires stronger confidentiality.

Credential storage

Credentials are stored in the modem with AT%CMNG. Provision them in a controlled environment, such as the production line.

Credentials are stored on the host. No credentials for internet services are written to the modem.

Secure channel

Secure protocols, such as TLS, DTLS, MQTT, and HTTP, are terminated in the modem and controlled with AT commands.

All internet protocols, such as TLS, DTLS, MQTT, HTTP, and CoAP, are terminated on the host. The host uses PPP over CMUX and the modem only forwards IP packets.

Data on the UART

Application data and AT commands are in cleartext.

Application data is encrypted by the host. AT commands are still in cleartext. Commands that configure the modem, such as the SIM PIN, PDN authentication credentials, and SMS content, can carry sensitive data. Apply these settings in a controlled environment where possible. Commands that are needed in the field remain visible on the UART.

Note

Firmware integrity does not depend on the UART. Firmware updates are signature-verified on the device, regardless of the security model.