TTN devnonce is too small error

Hi Team,

I am facing some issues with the LoRaWAN MAC layer version 1.0.4. I have registered and called the store context function, but I am still having trouble switching the end nodes in the TTN server. Additionally, I am receiving a “devNonce is too small” error when trying to connect the same end node a second time. The first attempt works fine, but I encounter this devNonce error on the second attempt ( or )Sometimes ,but My devnonce counter value increments each time I send a join request, but I am still facing this “devnonce is too small” issue. it takes five minutes to connect to the same end node a second time… Is this a security feature or a bug? Please confirm on your side.

i am using STM32WLE5CC controller.
RAk wireless gateway

Thank you.

That means you have a persistence issue. Either saving the nonce or retrieving it after restart fails.

What is the interval between join attempts? If you choose it too small (less then a couple of minutes after the first two attempts with a backoff mechanism that increases on every failed attempt) you are creating a new issue because the gateway will have too many downlinks to send and will drop some of them resulting in even more join failures. Hammering the network with requests never works.

Both. It is a security feature of LoRaWAN and a bug in the end node software. Sorry.

You are on the same side as us - this is not TTI support, this is the TTN community forum. Anyone can read the source code, but we, in the main, are not the developers of TTS.

Which exact function in which exact firmware would be super especially useful - there are several LW stacks this could be - answers will be highly generic aka non-specific without this information.