DMS Provisioning

DMS provisioning supplies a device with the credentials to allow access to the DMS.

DMS provisioning can taken place after the device is programmed with the manufacturing image and the debug interface is locked.

At this point, the device:

The device cannot access the DMS in this state. Credentials required for DMS access include a device certificate and key and a device UUID.

To provision the device for the DMS, obtain a DMS provisioning token.

A DMS provisioning token can supply the device with a certificate and key, and optionally a UUID.

If the token does not supply a UUID, but is configured to require a UUID, configure the device UUID with the system.uuid variable:

set system.uuid <uuid>

The next time the device attempts to connect to the DMS, the device attempts to verify with the DMS:

If the token is valid and the device certificate and key are missing or invalid, the device issues a provision request to the DMS.

The provision request provisions the device with the certificate and key and other configured credentials. The devices stores the credentials to NVM.

The procedure in pseudo-code is as follows:

DMS Provisioning API

Command

Variables

The variable dfu.status has additional error codes, 147 and 148, to indicate provisioning status.

The variable system.uuid can now be set with a custom UUID.