Open finrut opened 4 years ago
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.
The SX1262 has an internal random generator too
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).
Again, thanks a lot for your support.
Hi Matthijs,
I've incurred this issue during my tests with BasicMac on ESP32 :
Do you know what it can be?