Managing claimed devices using the nRF Cloud portal
This page explains how to create provisioning groups and claim devices using the nRF Cloud portal. See Managing claimed devices using the APIs if you want to use the APIs instead.
Prerequisites
Complete these steps before claiming your device:
- Program the device with a sample compatible with nRF Cloud Security Services, such as the Multi-service sample configured for your desired protocol.
- Create an nRF Cloud account.
Requirements
- nRF91x1 device.
- Modem firmware v2.0.0 or later.
- Serial Terminal app.
Claiming devices
This section explains how to claim a device, with the option to auto-onboard one or more devices.
To claim a device, you must first generate an attestation token:
-
Open Serial Terminal.
-
Connect your device over USB and turn it on.
-
Select your device in Serial Terminal to connect to it.
-
Enter the
AT%ATTESTTOKENcommand to generate an identity attestation token.- If you are using the
Multi-service sample,
you may need to format AT commands with an additional
atprefix (with a space): for example,at AT%ATTESTTOKEN.
- If you are using the
Multi-service sample,
you may need to format AT commands with an additional
-
Copy the content of the response between the quotation marks.
- For bulk claiming, repeat these steps for each device, storing the tokens in a CSV file.
-
Log in to the nRF Cloud portal.
-
Select Security Services in the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Click the Claim Device button.
A pop-up opens.
-
Select either Single or Bulk, depending on the number of devices:
- Single device
- Bulk
To claim a single device, with optional auto-onboarding:
- Copy and paste the identity attestation token into the Claim token text box.
- Enter the name of an existing provisioning rule, or create a new rule to
auto-onboard the device during the claiming process as follows:
-
Click the toggle to create a new rule.
-
Enter a rule name (must be unique).
-
(Optional) Click Additional Configuration to show more options:
-
Specify the security tag (if different than the default).
-
Choose which certificates you want to provision to the device, depending on your firmware configuration and protocol:
- All: (Recommended) Certificates for REST, MQTT, and CoAP.
- AWS: Required certificates for REST and MQTT only.
- CoAP: Required certificate for CoAP only.
- None: Do not provision any certificates.
-
(Optional) Select a device management group.
-
(Optional) Specify supported firmware types. This depends on your application configuration.
-
(Optional) Specify device subtype.
-
-
Click Claim Device.
-
The device is now claimed, and an entry appears on the Claimed Devices page. If you created an auto-onboarding rule, nRF Cloud adds the device to the corresponding provisioning group. You can use this group later to add more devices.
Auto-onboarding rules that you create during device claiming are immediately activated. You cannot edit the rule or commands for an activated rule.
nRF Cloud generates provisioning commands to handle key and certificate generation for onboarding. If you chose to auto-onboard the device, see Verifying auto-onboarding.
To claim multiple devices, with optional auto-onboarding:
- Drag and drop a CSV file containing the required information.
- Either specify a provisioning group for an existing rule, or click the toggle
to create a new auto-onboarding rule:
-
Click the toggle to create a new rule.
-
Enter a rule name (must be unique).
-
(Optional) Click Additional Configuration for more options:
-
Specify the security tag (if different than the default).
-
Choose which certificates you want to provision to the device, depending on your firmware configuration and protocol:
- All: (Recommended) Certificates for REST, MQTT, and CoAP.
- AWS: Required certificates for REST and MQTT only.
- CoAP: Required certificate for CoAP only.
- None: Do not provision any certificates.
-
(Optional) Select a device management group.
-
(Optional) Specify supported firmware types. This depends on your application configuration.
-
(Optional) Specify device subtype.
-
-
Click Claim Devices.
-
The devices are now claimed, and entries for them appear on the Claimed Devices page. If you created an auto-onboarding rule, nRF Cloud adds the devices to the corresponding provisioning group.
nRF Cloud generates provisioning commands to handle key and certificate generation for onboarding. If you chose to auto-onboard your devices, see Verifying auto-onboarding.
If you chose not auto-onboard your devices while claiming and need to create a configuration or rule manually, see the following pages:
- Define a single-device provisioning configuration.
- Manually create provisioning rules that apply to multiple devices.
Verifying auto-onboarding
If you chose to auto-onboard during the claiming process, do the following to verify that the device has onboarded:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Click the ID or name of the claimed device.
-
Verify that the device's status is PROVISIONED and the status of each command under the Provisioning Configuration card is Succeeded.
- If the device or command status is PENDING, open Serial Terminal, connect the device, and ensure that the device has successfully connected to the Provisioning Service and received commands. The interval between checks depends on application configuration.
- If the device's status is ERROR and any of the commands have failed, see Troubleshooting.
-
Select Device Management from the left sidebar.
A panel opens to the right.
-
Select Devices.
-
Verify that the new device appears on the Devices page.
You can still perform other operations using provisioning rules after onboarding the device.
Provisioning groups
You do not need to create a provisioning group manually if you created a rule while auto-onboarding one or more devices.
Create and manage your groups manually if your devices need to process more than one rule, or if your rule will contain commands not included at claiming.
Provisioning groups and tags are separate from device groups and tags in the rest of nRF Cloud.
Click the following tabs for more information on each operation.
- Viewing
- Adding
- Editing
- Deleting
To view existing provisioning groups:
-
Log in to the nRF Cloud portal.
-
Select Security Services in the left sidebar.
A panel opens to the right.
-
Select Provisioning Groups.
The Provisioning Groups page opens.
To add a new provisioning group:
-
Click the Add group button.
A pop-up opens.
-
Enter the group name and optional description.
-
Click Add group.
The new provisioning group is added. You can add devices to groups when you claim them.
To edit a provisioning group:
- From the Provisioning Groups page, find the desired group.
- Click the gear icon at the end of the row for that group.
- Select Edit to change the group's name or description.
- Click Submit.
To delete a provisioning group:
- From the Provisioning Groups page, find the desired group.
- Click the gear icon at the end of the row for that group.
- Select Delete.
- Confirm that you want to delete the group.
Blocking and unblocking devices
Blocking a device prevents it from checking for and applying new provisioning configurations or rules. You maintain the claim on a blocked device and can unblock it at any time.
Blocking
You can block a single claimed device from its own page, or block multiple devices from the Claimed Devices overview.
- Single device
- Multiple devices
To block a single device:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Click the ID or name of the claimed device.
-
Click Block.
A pop-up opens.
-
Click OK.
The device is now blocked.
To block multiple devices:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Select the checkbox next to the devices you want to block.
-
Click Block.
A pop-up opens asking for confirmation.
-
Click OK.
The devices are now blocked.
Unblocking
You can unblock a single claimed device from its own page, or unblock multiple devices from the Claimed Devices overview.
- Single device
- Multiple devices
To unblock a device:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Click the ID or name of the claimed device.
-
Click Unblock.
The device is now unblocked.
To block multiple devices:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Select the checkbox next to the devices you want to unblock.
-
Click Unblock.
The devices are now unblocked.
Unclaiming devices
You can unclaim a single claimed device from its own page, or unclaim multiple devices from the Claimed Devices overview.
Unclaiming a device means that another user or team can claim it and create a provisioning configuration for it. If you want to securely provision the device, you will need to claim it again.
- Single device
- Multiple devices
To unclaim a single device:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Click the name or ID of the device you want to unclaim.
-
Click Unclaim.
A pop-up opens asking for confirmation.
-
Click OK.
The device is now unclaimed, and can be claimed by another user or team.
Unclaiming a device does not delete it from nRF Cloud if the device is already onboarded. If you want to fully remove it from your team, you must also delete it.
To unclaim multiple devices:
-
Log in to the nRF Cloud portal.
-
Select Security Services from the left sidebar.
A panel opens to the right.
-
Select Claimed Devices.
-
Select the checkbox next to each device you want to unclaim.
-
Click Unclaim.
A pop-up opens asking for confirmation.
-
Click OK.
The devices are now unclaimed, and can be claimed by another user or team.
Unclaiming devices does not delete them from nRF Cloud if they are already onboarded. If you want to fully remove unclaimed devices from your team, you must also delete them.