-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Stack operation without ram retention during sleep #59
Comments
You must also save the Fcnt (up and down) as these must always increase in value after a join (with the exception of during repeated message transmissions). |
I'm afraid that there would be much more to save, I assume:
Maybe you can try to ask Semtech to facilitate this work to identify those params ;-) |
No, I only have 32K of flash, i can't use an OS....I'm using structure saved in flash before sleep. I will tell semtech about that. |
One comment, about Flash usage. It will age and depending how often you power cycle your board, it can reach the limit quite fast. depending the component, it will have between 10.000 and 100.000 write cycles. https://en.wikipedia.org/wiki/Flash_memory#Write_endurance. If you power cycle once a day, no problem, but if this is more often, it might be problematic. You probably can write at various location in the flash to prevent aging. |
Yes, one transmission per day during 5 years. 1825 transmission it's largely below 10000.... |
This was a suggestion to ask, but I'm not sure that it is on their priority list. I would take in consideration those possibilities: B) similar to A) but include more parameters (after discussion with the other parties C) more safe (from approach, but not from potential introduction of bugs) but may require quite big effort on definition, stack modification and stack merge at every release.
|
It's possible to get MIB_UPLINK_COUNTER and MIB_DOWNLINK_COUNTER but it's impossible to set them with LoRaMacMibSetRequestConfirm.... |
Hi, Just read quickly. What mcu are you using? Does it have eeprom? |
This issue is covered by the #364 issue. |
Hi,
To minimize consumption during sleep, I don't have ram retention during sleep. To achieve that, i plan to save DevAddr, NwkID, NwkSKey, AppSKey in flash before sleep, and restore them after .
( LoRaMacMibGetRequestConfirm and LoRaMacMibSetRequestConfirm ).
But there are many others global variables in stack and I'm afraid to loose some important configuration data during sleep.
Is it a problem to loose state of stack ?
May it increase consumption at start ? ( receive each time mac commands with configuration data from network)
Is there a way to properly save stack state during sleep ?
Regards,
The text was updated successfully, but these errors were encountered: