nrf9160

Set command

The set command requests the device's claim token.

Syntax:

%CLAIMTOKEN=<sec_tag>[,<challenge>]

Response syntax:

%CLAIMTOKEN: <response>
+CME ERROR code
529 – Failed to create response. Ownership key is not found at the given <sec_tag> or an error has occurred in secure side processing.

The set command parameters and their defined values are the following:

<sec_tag>
Integer, 0–2147483647.
Identifies the <sec_tag> where the ownership public key is stored on the device. The values correspond to the <sec_tag> in %CMNG.
<challenge>
Optional.
32-character string in hexadecimal format.
Used to generate a response.
<response>
Device claim token message and COSE_Sign1 signature as Base64Url encoded strings separated by a dot ".": "Base64Url(Device claim token).Base64Url(Cose_Sign1)"

The following command example requests the claim token. The ownership key is stored at <sec_tag> 22:

AT%CLAIMTOKEN=22
%CLAIMTOKEN: "RGV2aWNlIGNsYWltIHRva2Vu.Q29zZV9TaWduMQ"
OK

The following command example requests the claim token including challenge. The ownership key is stored at <sec_tag> 34:

AT%CLAIMTOKEN=34,"90115c20ac3f381b520b43c76bd5d99c"
%CLAIMTOKEN: "RGV2aWNlIGNsYWltIHRva2Vu.Q29zZV9TaWduMQ"
OK