Cellular PPP modem
Overview
nRF91M1 module can provide a Point-to-Point Protocol (PPP) link over a UART so that a host can use the nRF91M1 module as a cellular dial-up modem. This is typically used in one of the following ways:
Linux host - The host runs a standard PPP daemon (
pppd) and establishes a PPP network interface (ppp0). Optionally, you can use CMUX to keep an AT command channel available while PPP is running.MCU host (controlling chip) - The host runs embedded RTOS, for example, Zephyr, and uses its cellular modem driver. The host application uses the IP stack on the RTOS, while nRF91M1 module provides the modem control, CMUX, and PPP transport.
PPP and CMUX are controlled through AT commands. For details, see PPP AT commands and CMUX AT commands.
PPP and CMUX
CMUX multiplexes AT and PPP over one UART using separate DLC channels.
nRF91M1 module supports PPP both with or without CMUX (GSM 07.10 multiplexing). This allows you to choose the setup that best fits your use case. The recommended setup for most modem use cases is to use CMUX, as it keeps AT control available while PPP is running.
PPP without CMUX
Without CMUX, PPP runs on the current UART.
Send AT+CFUN=1 to activate the modem, then AT+CGDATA to start PPP.
The modem responds with CONNECT and the UART immediately enters PPP data mode.
You cannot use the UART for AT commands until PPP is terminated by LCP negotiation.
No AT notifications are delivered over the UART while PPP is active.
Example
Switching UART from AT mode to PPP mode and back:
PPP session without CMUX.
PPP with CMUX
With CMUX, AT traffic and PPP traffic can share a single UART by using separate CMUX channels.
Start CMUX with AT+CMUX=0, then issue AT+CGDATA on the chosen DLC channel to start PPP on that channel.
The following example uses DLC channel 1 for PPP and DLC channel 2 for AT commands, with AT#XCMUXURC=2 directing URCs to DLC channel 2.
Example
Send AT#XCMUXURC=2 to route URCs to DLC channel 2, start CMUX with AT+CMUX=0, then start PPP on DLC channel 1 using AT+CGDATA:
PPP on DLC1, AT commands and URCs on DLC2.
Note
The AT#XCMUXURC=2 is optional, but it is recommended to route URCs to a static channel.
When the URC channel is not selected, URCs are sent to the first open AT channel, which is not in data mode.
Note
The sequence diagrams in this section show +CEREG: and +CGEV: URCs on the AT channel for illustration.
By default, nRF91M1 module does not forward these URCs to the host.
Operational notes
The nRF91M1 module automatically activates the default PDP context. Manually configuring the APN is typically not required.
The nRF91M1 module automatically restarts a network scan when connectivity is lost. Manual dial-up scripts are typically not required for LTE connection recovery.
When you use the proprietary
AT#XCMUX=1andAT#XPPP=1commands, CMUX channel allocation is static (by default, allocating DLC channel 1 to PPP and DLC channel 2 to AT). See CMUX AT commands and PPP AT commands for details.If you enable packet domain URC forwarding with
AT+CGEREP=1, you might see a packet domain event (+CGEV: IPV6 FAIL 0). This event indicates a failure to obtain an IPv6 address. This is normal and you can ignore it, because the modem does not require an IPv6 address when you use PPP. The host’s IP stack handles IPv6 addressing.