Connecting the nRF93M1 DK to nRF Cloud

The nRF Cloud client runs in the module firmware. You can provision a device and use cloud services with AT commands, without building a host application that includes a cloud library.

Transport is CoAP over DTLS 1.2, which keeps message overhead small and works with cellular power saving. Each cloud transaction emits a %COAP: unsolicited result code carrying the transport-layer status for that request.

Requirements

Connect USB1 on the DK to your computer, then identify the AT command port:

nrfutil device list

Open the vcom1 port at 115200 bps. This is the port that communicates with the module.

Device identity

Each device presents two stable identities and two short-lived credentials.

Command

What it returns

AT%DEVICEUUID

A 36-character device UUID, generated once and stored in non-volatile memory

AT%CLOUDACCESSKEY

A P-256 ECC public key in Base64-DER form. The private key is generated on-chip and never leaves the device.

AT%REGJWT

A signed registration JWT, used during onboarding

AT%JWT

A short-lived authentication JWT, valid for approximately one hour

Important

Device system time must be valid for a JWT to be accepted by the cloud. If authentication fails immediately after a cold boot, check time before investigating anything else.

Provisioning a device

To provision the device, onboard it to your nRF Cloud project with the registration JWT that AT%REGJWT returns. For the step-by-step procedure, see nRF Cloud nRF93M1 Onboarding.

To onboard several devices at once, see nRF Cloud Device Onboarding.

Location

Location requires no GNSS receiver. The module collects Wi-Fi® or cellular measurements and nRF Cloud resolves them to a position.

Collect measurement data:

Command

Data collected

AT%BCINFO

Serving cell as %BCINFOSC: EARFCN, PCI, RSRP, RSRQ, MCC, MNC, cell ID, TAC. Neighbor cells as %BCINFONC: EARFCN, PCI, RSRP, RSRQ.

AT%WIFISCAN

Per access point: encryption, SSID, RSSI, MAC, channel. Scan time, rounds, and BSSID count are configurable.

Request a location with AT%NRFCLOUDLOCATION:

AT%NRFCLOUDLOCATION=<method>,<fetch_result>
Data collection methods

<method>

Sources used

1

Single-cell

2

Multicell

3

Single-cell and multicell

4

Wi-Fi only

5

Single-cell and Wi-Fi

6

Multicell and Wi-Fi

7

All

<fetch_result> set to 1 returns the position to the host. Set to 0, the module sends the collected data to nRF Cloud and reports only an acknowledgment:

%NRFCLOUDLOCATION: ACK RECEIVED

Use 0 when the position is only needed server side, since it avoids transferring the result back over the air. For the full syntax, see the nRF93M1 AT Commands Reference Guide.

With <fetch_result> set to 1, the result arrives as:

%NRFCLOUDLOCATION: <lat>,<lon>,<unc>,<fulfilled_method>
  • <unc> is the uncertainty in meters.

  • <fulfilled_method> is the method the cloud actually used, reported as 1 for single-cell, 2 for multicell, or 4 for Wi-Fi. It can differ from the method you requested whenever you allow multiple data sources.

Prefer a combined method such as 7 in a deployed device, and log <fulfilled_method> alongside <unc>. A device that silently falls back from Wi-Fi to single-cell reports a much larger uncertainty, and without the fulfilled method there is nothing to explain why.

Caution

Multicell and Wi-Fi positioning do not work while the module is in RRC Connected mode. Request a location when the connection is idle, not immediately after a data transfer.

Note

Unsolicited %COAP result codes can be emitted during any cloud transaction.

Messaging and shadow

Command

Purpose

AT%NRFCLOUDMESSAGE

Publish a JSON payload over CoAP, for example {"appId":"BUTTON","data":"1"}

AT%NRFCLOUDSHADOW

Read a dotted path from the desired shadow, and write a dotted path into the reported shadow

Firmware observability

The module integrates Memfault firmware observability. Coredumps and periodic metrics heartbeats are captured on the device, stored in the secure file system, and uploaded over the existing cellular connection.

Command

Purpose

AT%NRFCLOUDOBSUPLOAD[="<projectKey>"]

Upload observability data. The optional project key overrides automatic routing.

AT%NRFCLOUDOBSHEARTBEAT

Trigger a heartbeat. Debug use.

AT%NRFCLOUDOBSFORWARD="<base64>"

Forward observability chunks from the host MCU

Observability is the practical way to diagnose intermittent field faults, where the failure does not reproduce on a bench.

Note

Forwarding host MCU chunks means your host application can report its own diagnostics through the module’s existing connection, without opening a second channel.

Firmware updates

Both modem firmware and host application firmware updates are delivered through nRF Cloud with AT%NRFCLOUDFOTA. See Updating the modem firmware.

Moving to production

The onboarding flow described in Provisioning a device provisions one device by hand. A production flow differs in the following ways:

  • You collect and register the credentials in bulk during manufacturing, instead of typing them into a terminal. See nRF Cloud Device Onboarding for the available bulk onboarding options.

  • Your host application issues the AT sequence, rather than a person.

  • SIM provisioning uses SGP.32 remote provisioning or SoftSIM rather than the physical trial SIM supplied with the DK. See SIM support.

Disable power saving during provisioning. Peripheral and general-purpose I/O functionality must stay available. See Configuring power saving.