You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the dev nonce is now just randomly selected (rather than incrementally, as LoRaWAN 1.1 specifies IIRC, since that requires storing the last used nonce in EEPROM or similar). However, it might very well be that the random generator is never seeded, so you'll get the same nonce on every try.
You could fix that by something like randomSeed(analogRead(A0)); (e.g. use a random reading from an unused analog pin as the seed, but that might not be sufficient entropy (at most 1024 different values, in practice likely fewer). Seeding using some radio signal measurement might be more reliable.
The SX1262 has an internal random generator too, and there is code for that, but it always returns 0 for me, so I'm not sure what's up with that one.
I had thought of this before and wanted to check this, but since things just worked, I haven't gotten around to it I think.
Bad luck for me, I'm testing on a node with old SX1276 module.
I haven't said before (maybe it can be notable), the problem appears after some resets of the node,
and I registered the node on the server as LoRaWAN 1.0.2 version.
So I'll try to use the random seed (or radio sig as you said).
Hi Matthijs,
I've incurred this issue during my tests with BasicMac on ESP32 :
Do you know what it can be?
The text was updated successfully, but these errors were encountered: