Skip to content

Commit 2f0df87

Browse files
Support LoRaWAN 1.1 with ATECC608A/B secure element (#1382)
* Clarify ATECC608B-TNGLORA is supported too * Support LoRaWAN 1.1 with ATECC608A/B secure element
1 parent 0062112 commit 2f0df87

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ The `DevEUI`, `Pin` and `JoinEUI` can be changed by editing the `se-identity.h`
114114

115115
#### atecc608a-tnglora-se
116116

117-
The *atecc608a-tnglora-se* abstraction implementation handles all the required exchanges with the ATECC608A-TNGLORA secure-element.
117+
The *atecc608a-tnglora-se* abstraction implementation handles all the required exchanges with the ATECC608A-TNGLORA and ATECC608B-TNGLORA secure-elements.
118118

119-
ATECC608A-TNGLORA secure-element is always pre-provisioned and its contents can't be changed.
119+
This secure-element is always pre-provisioned and its contents can't be changed.
120120

121121
### Building Process
122122

src/peripherals/atecc608a-tnglora-se/atecc608a-tnglora-se-hal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @brief Secure Element hardware abstraction layer implementation
55
*
6-
* @remark Current implementation only supports LoRaWAN 1.0.x version
6+
* @remark Current implementation supports LoRaWAN 1.0.x and 1.1
77
*
88
* @copyright Copyright (c) 2020 The Things Industries B.V.
99
*

src/peripherals/atecc608a-tnglora-se/atecc608a-tnglora-se-hal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @brief Secure Element hardware abstraction layer
55
*
6-
* @remark Current implementation only supports LoRaWAN 1.0.x version
6+
* @remark Current implementation supports LoRaWAN 1.0.x and 1.1
77
*
88
* @copyright Copyright (c) 2020 The Things Industries B.V.
99
*

src/peripherals/atecc608a-tnglora-se/atecc608a-tnglora-se.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @brief ATECC608A-TNGLORA Secure Element hardware implementation
55
*
6-
* @remark Current implementation only supports LoRaWAN 1.0.x version
6+
* @remark Current implementation supports LoRaWAN 1.0.x and 1.1
77
*
88
* @copyright Copyright (c) 2020 The Things Industries B.V.
99
*

src/peripherals/atecc608a-tnglora-se/se-identity.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ extern "C" {
9696
*/
9797
#define TNGLORA_DEV_EUI_SLOT 10U
9898
#define TNGLORA_JOIN_EUI_SLOT 9U
99-
#define TNGLORA_APP_KEY_SLOT 0U
100-
#define TNGLORA_NWK_KEY_SLOT 0U
99+
#define TNGLORA_ROOT_KEYS_SLOT 0U
101100
#define TNGLORA_S_NWK_S_INT_KEY_SLOT 4U
102101
#define TNGLORA_F_NWK_S_INT_KEY_SLOT 5U
103102
#define TNGLORA_J_S_INT_KEY_SLOT 6U
@@ -106,7 +105,8 @@ extern "C" {
106105
#define TNGLORA_NWK_S_ENC_KEY_SLOT 3U
107106
#define TNGLORA_MC_APP_S_KEY_0_SLOT 11U
108107
#define TNGLORA_MC_NWK_S_KEY_0_SLOT 12U
109-
#define TNGLORA_APP_KEY_BLOCK_INDEX 1U
108+
#define TNGLORA_APP_KEY_BLOCK_INDEX 0U
109+
#define TNGLORA_NWK_KEY_BLOCK_INDEX 1U
110110
#define TNGLORA_REMAINING_KEYS_BLOCK_INDEX 0U
111111

112112
#define ATECC608A_SE_KEY_LIST \
@@ -117,7 +117,7 @@ extern "C" {
117117
* WARNING: FOR 1.0.x DEVICES IT IS THE \ref LORAWAN_GEN_APP_KEY \
118118
*/ \
119119
.KeyID = APP_KEY, \
120-
.KeySlotNumber = TNGLORA_APP_KEY_SLOT, \
120+
.KeySlotNumber = TNGLORA_ROOT_KEYS_SLOT, \
121121
.KeyBlockIndex = TNGLORA_APP_KEY_BLOCK_INDEX, \
122122
}, \
123123
{ \
@@ -126,12 +126,12 @@ extern "C" {
126126
* WARNING: FOR 1.0.x DEVICES IT IS THE \ref LORAWAN_APP_KEY \
127127
*/ \
128128
.KeyID = NWK_KEY, \
129-
.KeySlotNumber = TNGLORA_APP_KEY_SLOT, \
130-
.KeyBlockIndex = TNGLORA_APP_KEY_BLOCK_INDEX, \
129+
.KeySlotNumber = TNGLORA_ROOT_KEYS_SLOT, \
130+
.KeyBlockIndex = TNGLORA_NWK_KEY_BLOCK_INDEX, \
131131
}, \
132132
{ \
133133
/*! \
134-
* Join session integrity key (Dynamically updated) \
134+
* Join Server integrity key (Dynamically updated) \
135135
* WARNING: NOT USED FOR 1.0.x DEVICES \
136136
*/ \
137137
.KeyID = J_S_INT_KEY, \
@@ -140,7 +140,7 @@ extern "C" {
140140
}, \
141141
{ \
142142
/*! \
143-
* Join session encryption key (Dynamically updated) \
143+
* Join Server encryption key (Dynamically updated) \
144144
* WARNING: NOT USED FOR 1.0.x DEVICES \
145145
*/ \
146146
.KeyID = J_S_ENC_KEY, \

0 commit comments

Comments
 (0)