How to save the OTAA join parameters in the memory permanently?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-24 10:55 PM
Hi everyone
I have been working with the BL072Z-LRWAN using the AT Slave software provided by stm.
In our custom devices , we are using the same module and to save power we have a relay to turn on and off the module , as and when required.
But the problem is that whenever i switch off the module , the key and OTAA join parameters are lost , and to send data over LoRa , we have to initiate Join Command again , which is not a good way to go.
Can you please guide me on how can i save the join parameters in the memory so that i don't have to do it again?
Is there any AT command to save the information?
Thanks and Regards
Rajat Kalyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-24 11:14 PM
You're probably going to need to modify the source, and add code to write into FLASH or EEPROM
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-02 12:55 PM
I did the same for the end node example. You can use the STM HAL Flash libraries to write to EEPROM and store the LoRa join parameters, then fetch the parameters from memory when the module starts up again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-02 11:09 PM
Can you please guide me to some github source to take reference from , pretty new to the Stm enviornment actually , so i don't know much how to go about it.
Also if possible , can you provide me the code you wrote for the flash/eeprom?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-04 10:54 AM
Find the link attached; it will download the entire zip folder (couldn't find a public repo on Github). Project is built for Keil. See the terminalhandler source for reference on writing/reading to/from EEPROM.
https://iot.machineq.com/l/651953/2019-07-11/8z65n/651953/72651/MachineQ_STDevKit_SampleCode.zip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-13 9:59 PM
Thanks for this , I had a look at it
From what i understand , it seems you are saving only
Join Eui , Device Eui and Network Session Key
My question is
Are these details enough to solve the problem?
How can i access the network session key in the AT SLave software , If you have some idea about it , then please let me know
Thanks
