Skip to main content

KSP-N51U-M.2 Network Attach

The KSP-N51U-M.2 runs Nordic Semiconductor's Serial Modem firmware and is controlled over UART with AT commands. It is set up to attach to the cellular network automatically at power-on — for most users there is nothing to configure.

tip

Most of the time you don't need this page — power the module and wait, and it attaches on its own. Come here only for the exceptions: to confirm the attach, to switch the radio mode (LTE-M vs NB-IoT), or to attach manually with a custom APN.


Attach Flow​

StepActionCommandExpected Result
1Power on the module—Module attaches automatically
2Confirm registrationAT+CEREG?Status 1 (home) or 5 (roaming)
3Check signalAT+CESQRSRP better than −110 dBm
4Confirm data connectionAT+CGPADDRModule has an assigned IP address
note

Steps 2–4 are checks, not configuration. You only need the manual attach section for uncommon situations such as a custom APN or a specific radio mode.


How Attach Works by Default​

At power-on the module brings up the radio and registers on the network on its own. Power it up, wait up to about a minute for band scanning, and it comes online — no AT commands required.


Confirm the Module Attached​

1. Check Registration Status​

This is the check that matters most. Query the network registration state:

AT+CEREG?
+CEREG: 1,1

OK

The second value is the registration status:

+CEREG statusMeaning
1✅ Registered — home network
5✅ Registered — roaming
2Still searching — wait a moment
0 / 3 / 4Not attached — see manual attach below

2. Check Signal and IP​

AT+CESQ
+CESQ: 99,99,255,255,20,54

OK
AT+CGPADDR
+CGPADDR: 0,"10.0.0.1"

OK
tip

Aim for RSRP better than −110 dBm. An assigned IP from AT+CGPADDR confirms the data connection is up.


Set the Radio Mode (LTE-M or NB-IoT)​

This is the setting most users configure. Use AT%XSYSTEMMODE to choose which radio access technology the module uses:

AT%XSYSTEMMODE=<LTE-M>,<NB-IoT>,<GNSS>,<preference>
ParameterMeaningValue
<LTE-M>Enable LTE-M1 = on, 0 = off
<NB-IoT>Enable NB-IoT1 = on, 0 = off
<GNSS>Enable GNSS1 = on, 0 = off
<preference>Which to prefer when both are on0 none · 1 LTE-M · 2 NB-IoT

Common presets:

AT%XSYSTEMMODE=1,1,0,1 LTE-M + NB-IoT, prefer LTE-M (typical)
AT%XSYSTEMMODE=1,0,0,0 LTE-M only
AT%XSYSTEMMODE=0,1,0,0 NB-IoT only
caution

Change the system mode with the radio off, then bring it back online:

AT+CFUN=4 Go offline
AT%XSYSTEMMODE=1,1,0,1 Set the radio mode
AT+CFUN=1 Go online; attach begins

Manual Attach​

Use this only if your SIM needs an APN different from the default, or the module did not attach on its own.

1. Go Offline and Configure​

AT+CFUN=4 Go offline
AT%XSYSTEMMODE=1,1,0,1 Choose the radio mode
AT+CGDCONT=0,"IP","<your-apn>" Set the APN

2. Go Online and Attach​

AT+CFUN=1 Go online; attach begins
AT+CEREG=5 Subscribe to registration updates
AT+CEREG? Poll until status is 1 or 5

3. Verify the Checkpoints​

CheckpointCommandPass Condition
RegisteredAT+CEREG?status 1 or 5
Signal OKAT+CESQRSRP better than −110 dBm
Data upAT+CGPADDRnon-empty IP address

Troubleshooting​

SymptomLikely CauseRecommended Action
Stuck at +CEREG: ...,2Weak coverage / band not supportedCheck antenna; confirm operator LTE-M / NB-IoT support
+CEREG: ...,3 (denied)SIM not provisioned / wrong APNVerify data plan; set the APN manually
Wrong radio modeOperator only supports one RATSet AT%XSYSTEMMODE for LTE-M only or NB-IoT only
Registered but no IPPDP context inactiveRe-check the APN; confirm the plan allows data
tip

For registration error codes in depth, see the FAQ.


  • Quick Start — hardware bring-up and first AT command
  • AT Commands — full command reference
  • FAQ — registration troubleshooting