# DevNonce is too small: MLS\_SDK\_1\_0\_P\_5 & TTI v3.13.1 - SAMR34 Microchip

**URL:** <https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649>\
**Category:** SAMR34\
**Created:** [June 10, 2021, 4:54am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649 "2021-06-10T04:54:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoAndrade](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/marcoandrade/32/37068_2.png) [@MarcoAndrade](https://www.thethingsnetwork.org/forum/u/MarcoAndrade)\
**Post date:** [June 10, 2021, 4:54am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/1 "2021-06-10T04:54:20Z")

</div>

Hello! I have a XPLAINED PRO SAMR34, I had my code working on MLS\_SDK\_1\_0\_P\_3, but when upgrading it to 1\_0\_P\_5 and trying to join, on The Things Industries console it appears the message “DevNonce is too small”. I found that MLS\_SDK\_1\_0\_P\_5 is 1.0.4 in LoRaWAN Core Specification Version. And LoRaWAN Regional Specification version is 1.0.2rB. When I registered the device, I put those settings on TTI.

I also found that when disabling joinBackoffEnable, I can see that DevNonce is incrementing but after a while, the device still cannot join. And when enabling joinBackoffEnable, the device only tries to join once but nothing happens. I would like to know if somebody has used MLS\_SDK\_1\_0\_P\_5 before.

Also, I doubled check OTAA Join parameters (DevEUI, JoinEUI and AppKey).

Hoppe somebody can help me. 😄

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 10, 2021, 7:51am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/2 "2021-06-10T07:51:49Z")

</div>

I haven’t investigated this fully but the work-a-round for now is to use the CLI to reset the devnonce on TTS.

Also, use ABP for developing - saves on the joining issues when testing.

---

<div class="post-metadata">

**Author:** ![MarcoAndrade](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/marcoandrade/32/37068_2.png) [@MarcoAndrade](https://www.thethingsnetwork.org/forum/u/MarcoAndrade)\
**Post date:** [June 16, 2021, 4:50am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/3 "2021-06-16T04:50:02Z")

</div>

I disabled Duty Cycle limitations and enabled it as “test-mode”, but device keeps re-joining and it says that LoRaWAN Radio is Busy.

---

<div class="post-metadata">

**Author:** ![Anilkumarreddy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/anilkumarreddy/32/35697_2.png) [@Anilkumarreddy](https://www.thethingsnetwork.org/forum/u/Anilkumarreddy)\
**Post date:** [May 9, 2022, 3:26pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/4 "2022-05-09T15:26:24Z")

</div>

Hi Descartes , can you help me with the cli command to reset the devnonce

---

<div class="post-metadata">

**Author:** ![markruys](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/markruys/32/38705_2.png) [@markruys](https://www.thethingsnetwork.org/forum/u/markruys)\
**Post date:** [May 9, 2022, 4:47pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/5 "2022-05-09T16:47:39Z")

</div>

```auto
ttn-lw-cli end-device set [application-id] [device-id] --resets-join-nonces

```

---

<div class="post-metadata">

**Author:** ![Anilkumarreddy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/anilkumarreddy/32/35697_2.png) [@Anilkumarreddy](https://www.thethingsnetwork.org/forum/u/Anilkumarreddy)\
**Post date:** [May 9, 2022, 3:41pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/6 "2022-05-09T15:41:45Z")

</div>

Hi , I am trying to reset the Devnonce using cli , need help to understand the warnings I am getting after command execution : Only single ID found in arguments, not considering arguments  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/8/8891a0cb22c62d3906f9ec5106564d81c2b0b549.png)

---

<div class="post-metadata">

**Author:** ![Anilkumarreddy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/anilkumarreddy/32/35697_2.png) [@Anilkumarreddy](https://www.thethingsnetwork.org/forum/u/Anilkumarreddy)\
**Post date:** [May 9, 2022, 3:46pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/7 "2022-05-09T15:46:00Z")

</div>

Intent is to fix devnonce error , In my case after 12 devnonce retries i.e restaring the device 12 times I have to reset the device eui for it to connect again , I am using 1.0.4 version , need help to reset the Devnonce using CLI .

---

<div class="post-metadata">

**Author:** ![Anilkumarreddy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/anilkumarreddy/32/35697_2.png) [@Anilkumarreddy](https://www.thethingsnetwork.org/forum/u/Anilkumarreddy)\
**Post date:** [May 9, 2022, 3:47pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/8 "2022-05-09T15:47:34Z")

</div>

Please confirm if I am using the correct command : .\ttn-lw-cli end-devices set --application-id “7227em” --device-id “a1emiemc” --resets-join-nonces “true”

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [May 9, 2022, 7:15pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/9 "2022-05-09T19:15:40Z")

</div>

@Anilkumarreddy, moved this to the original answering topic - no real need to start a new thread at this stage.

---

<div class="post-metadata">

**Author:** ![lukGWF](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lukgwf/32/35697_2.png) [@lukGWF](https://www.thethingsnetwork.org/forum/u/lukGWF)\
**Post date:** [May 13, 2022, 6:29am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/10 "2022-05-13T06:29:17Z")

</div>

```auto
$ ttn-lw-cli end-device set --application-id "20220107-mitto" --device-id "eui-70b3d57ed005090e" --resets-join-nonces "true"

```

tested with " and without for the arguments provided.  
Output is:

```auto
WARN Only single ID found in arguments, not considering arguments
WARN No fields selected, won't update anything

```

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [May 13, 2022, 2:40pm UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/11 "2022-05-13T14:40:12Z")

</div>

I’ve never used quotes and I’ve never seen quotes in any of the docs - is this a new thing?

---

<div class="post-metadata">

**Author:** ![lukGWF](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lukgwf/32/35697_2.png) [@lukGWF](https://www.thethingsnetwork.org/forum/u/lukGWF)\
**Post date:** [May 16, 2022, 6:14am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/12 "2022-05-16T06:14:11Z")

</div>

Just saw that in a post so I have tested both. Didn’t work. Any hint?

---

<div class="post-metadata">

**Author:** ![lukGWF](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lukgwf/32/35697_2.png) [@lukGWF](https://www.thethingsnetwork.org/forum/u/lukGWF)\
**Post date:** [May 19, 2022, 8:37am UTC](https://www.thethingsnetwork.org/forum/t/devnonce-is-too-small-mls-sdk-1-0-p-5-tti-v3-13-1-samr34-microchip/48649/13 "2022-05-19T08:37:12Z")

</div>

> [@descartes](#):
>
> ve never used quotes and I’ve never seen quotes in any of the docs - is this a new thing?

I have tested with “set” and “reset” for “last-dev-nonce”, “last-join-nonce”, “resets-join-nonce” the output of “echo %ERRORLEVEL” like

````auto
{
  "ids": {
    "device_id": "eui-...",
    "application_ids": {
      "application_id": "..."
    },
    "dev_eui": "...",
    "join_eui": "0000000000000000",
    "dev_addr": "..."
  },
  "created_at": "2022-04-14T08:20:05.961Z",
  "updated_at": "2022-05-19T08:28:28.696897574Z"
}
``` with no success. How can I achieve this?
````
