-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DevNonce is too small : BUG #1153
Comments
Hi @askmurphy, please refer to the README in the LoRaWAN examples folder for information on this. There you will find an explanation and links to sketches that will resolve this problem for you. And FYI: the 'reset' button on the TTN console doesn't do anything. Only checking the "Resets DevNonces" box resolves that problem. But is not what should happen on LoRaWAN v1.1. So refer to previous sketch please. |
Ok, will check this tomorrow. Thanks! |
hello again, `etup ets Jul 29 2019 12:21:46 ` |
Just curious, why are there 2 different version of the radiolib examples? |
That is explained in the README I linked earlier. The implementation is different for all platforms, and thus difficult to keep up to date in RadioLib itself.
Please provide the logs created by your device upon the first boot, with |
Ok, I have tested it again. Double checked correct radiolib version v6.6.0 and example https://github.com/radiolib-org/radiolib-persistence/tree/main/examples/LoRaWAN_ESP32 (maybe I had still the wrong example the previous test??) RADIOLIB_DEBUG_PROTOCOL enabled in BuildOptUser.h also. Created new device at TTN, compiled, joined and 1st time: it works great again. firstboot_log.txt So, it seems to be ok ;-) Maybe an idea to make a TTN sub-folder in the examples-folder from your nice Library? I will rewrite the software of my little Pond-device (https://github.com/askmurphy/Lora-pH-temperature-sensor) using your library now. Many thanks for your help and keep on the good work, really appreciated !!!!!!!!!!! |
Awesome, looks all good. I agree that the split in the examples may be a bit confusing, but it has been a topic of discussion before and we settled on the current solution.. not completely perfect but best maintainable. Veel succes verder ;) |
hello again,
|
|
Tested this with the Arduino IDE, also with Visual Studio: same troubles. |
If you used the T-Beam for other sketches/programs or erased the flash for whatever reason, the DevNonces are likely lost. In that case you need to reset the used DevNonces on your LoRaWAN Network Server. |
Have tried that a few times, didn't work. |
Does anyone have an example of a simple radiolib (LoRaWan) code with the following:
I did a test with the ESP32 demo and replaced the random code to send to LoRaWan with this:
I got this first as a result: "downlink transmission failed with result: TOO_EARLY" So, the above seem to work. But if it's the correct way to do it, not sure. Anyone who can help a bit? |
@askmurphy this is a question that is completely unrelated to this topic (it isn't even an issue now); please open a Discussion for this. |
Hello, found a bug with the "LilyGO TTGO T-Beam - LoRa 868MHz - NEO-M8N GPS". If I use radiolib and compile the RadioLib LoRaWAN Starter Example with the correct LoRawan keys and create the relevant LoRa sensor at TTN, it all works fine: the data arrives neatly at TTN. But as soon as I disconnect the T-Beam from the power and connect it again after 5 minutes, I no longer have a connection with TTN: I get this error message on the TTN console: "DevNonce is too small". Also a DevNonce reset on the TTN panel does not help. It only works if I remove the device from the TTN panel and recreate it. This is quite clumsy and uncooperative. Hope this can be resolved soon ;-)
BUT: when I enable RESET USED DEVNONCES then I can re-join and it works again?
Additional info:
The text was updated successfully, but these errors were encountered: