Deriverootkeysandgetpin; Table 11-5: Deriverootkeysandgetpin Command (Standard); Table 11-6: Deriverootkeysandgetpin Response - Semtech LR1121 User Manual

Table of Contents

Advertisement

11.2.3 DeriveRootKeysAndGetPin

Command DeriveRootKeysAndGetPin(...) derives the AppKey and NwkKey root keys, and calculates the
corresponding PIN, required to claim a device on the Semtech Join Server. It is a very versatile function with a standard use
and a more advanced use, as described in the coming sections:
Three use-cases are possible:
Standard: Uses the pre-provisioned ChipEui, DevEui and use the Semtech Join Server.
Advanced: The DevEui and/or the JoinEui can be personalized, whilst still using the Join Server.
Alternate: AppKey and NwkKey are forced by the user, and the Join Server can't be used.
11.2.3.1 Standard Use

Table 11-5: DeriveRootKeysAndGetPin Command (Standard)

Byte
Data from Host
Data to Host

Table 11-6: DeriveRootKeysAndGetPin Response

Byte
Data from Host
Data to Host
PIN: Coded on 4 bytes, in big endian format
In the standard use-case, the ChipEui is used as LoRaWAN DevEui, SemtechJoinEui is used as LoRaWAN JoinEui, and
therefore no specific action should be taken. The host should:
1. Call the DeriveRootKeysAndGetPin() command with no argument.
2. Read the SemtechJoinEui (GetSemtechJoinEui() command) and assign it to a JoinEui variable.
3. Read the ChipEui (GetChipEui() command) and assign it to a DevEui variable.
4. Execute the Join procedure using the elements that have just been read.
5. At the reception of a valid Join Answer, all lifetime and session keys can be derived according to the required LoRaWAN
Standard.
The device must also be claimed on the Semtech Join Server for the Join Request to be accepted.
LR1121
User Manual
Rev 1.1
UM.LR1121.W.APP
Mar 2023
0
0x01
Stat1
0
1
0x00
0x00
Stat1
PIN(31:24)
www.semtech.com
1
0x27
Stat2
2
3
0x00
0x00
PIN(23:16)
PIN(15:8)
4
0x00
PIN(7:0)
115 of 130
Semtech
Proprietary & Confidential

Advertisement

Table of Contents
loading

Table of Contents