-
Notifications
You must be signed in to change notification settings - Fork 213
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
setting DevEUI #460
Comments
Hi, This is done by providing your own functions. The names are pre-LoRaWAN spec, so need translation. For OTAA, you provide functions:
For ABP, you instead must call the function The library catena-arduino-platform uses |
May we close this? |
I haven't tested your solution yet, but the answer is very clear. |
Hello @terrillmoore just jumping in here to ask regarding what network parameters are needed when coming back from a deep sleep after a successful OTAA join; I'm using esp32 and at this moment the device is joining every time is waking up (30 minutes sleep). I got what you commented on issue #380 about the LMIC being idle before sleeping and also the timing handling; but I have doubts on what to store before deepsleep and how to use it after. thanks in advance and best regards |
Just to continue on this matter, I've decided to keep these variables: Which I fill before deepsleep and recover after the reboot, I check what's the wakeup_reason. So far it's working, OTAA join once and then I use all those variables to set LMIC's session. Now about the timing issue; microseconds counter on esp32 resets after each deepsleep cycle that's a fact; so far I haven't coded anything to handle this, but I'm getting my package each 30 minutes as intended; so far I don't see any random wait time before tx, time diff between consecutive packets is steady at 29:59 So do I really need to handle that? modifying osticks to get an offset of 1800 seconds when coming back from sleep? |
@Beliwars we do all these things in https://github.com/mcci-catena/arduino-lorawan and https://github.com/mcci-catena/Catena-Arduino-Platform. Short answers:
Hope this helps, |
Thanks for you answer Terry, I commented on #380 (comment) I can just confirm that after 71 boots (35 hours and a half) I haven't yet seen anything weird; my code is really simple as I send only one buffer at each time. |
Hi @Beliwars Could you share your code for the startup where you reload the settings from RTC to lmic? Regards |
@geppoleppo -- this ticket drifted away from your original question. Is it resolved? May I close this? |
yes, thanks |
Hi,
I ask you if it is possible to set the security keys for the ABP or OTAA connection and the devaddr and devui values interactively without having to write them directly in the firmware source code.
In this way you could compile a single firmware that could be loaded on multiple devices which will be configured subsequently in an interactive way.
Thanks
The text was updated successfully, but these errors were encountered: