-
Notifications
You must be signed in to change notification settings - Fork 30
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
Low Power #20
Comments
One thing I noticed while testing is that when For example
|
@robgil I'm in full support of developing a low power mode, There is actually another individual who was working on a similar fork stored here, https://gitlab.com/thefinn93/LoRaLayer2/-/tree/sleepable. Maybe there are some useful insight in some of their commits. From what I recall they also had to fork arduino-LoRa (something to do with not resetting the LoRa chip). They actually merged their modifications to my fork (which I want to start using for this repo) In addition to the flushing of packets which you identified, we will also need to make sure that the routing table persists between sleeps. I've believe this is mostly what @thefinn93 was working on. And you are half correct about the ability to check how many messages are in the packet buffer. While there isn't a function written explicitly for this purpose, the Or maybe the I'm not sure what will be the best way to ensure that all the buffer's have been flushed, I would have to think about it more deeply (or maybe I just need to sleep on it 😝 ) |
Hey Folks
I have been working on getting LoRaLayer2 working for the purposes of sending sensor data. I'm very excited to have a mesh solution that will have the ability to resolve the line to sight issues of other technologies. As a result, I'm trying to get my sensors to go in to deep sleep. One issue that I keep running in to is that messages that are in the buffer when it goes to sleep are not sent.
Pseudo code
Whenever I have
esp_deep_sleep_start()
set, it seems to immediately stop whatever theLL2->daemon()
is doing. I'm thinking this is doing a hard stop and not lettingLL2
flush the packets.I'm thinking we need 2 things.
Note, that this is specific for sensors. I'm thinking relay nodes will need to be active almost all the time, or at some sort of regular interval that both sender and receiver are both active at the same time.
Curious to hear your thoughts. I know this is outside of what LoRaLayer2 was originally designed for, but conceptually its awesome! (and can be applied to other problems)
The text was updated successfully, but these errors were encountered: