nRF24 / RF24Mesh

OSI Layer 7 Mesh Networking for RF24Network & nrf24L01+ & nrf52x devices
http://nrf24.github.io/RF24Mesh
GNU General Public License v2.0
422 stars 154 forks source link

battery powered sensor network using rf24mesh #156

Closed Zuputmer closed 5 years ago

Zuputmer commented 5 years ago

As the title suggests I am trying to implement a mesh network that consists of nodes which are battery powered, and I am using the 328p as a standalone microcontroller without the Arduino hardware so as to reduce power consumption, and just by flashing the Arduino bootloader to it. My question is, is the mesh network capable of relaying a message by waking up a node just to relay a message to another node? Should I use the IRQ as an external interrupt to wake up the 328p? If so, what command should I run in the interrupt service routine of the 328p?

TMRh20 commented 5 years ago

Yes,The AVR device can sleep but the radios need to remain active (15ma)

Should I use the IRQ as an external interrupt to wake up the 328p?

Sure.

On Dec 7, 2018, at 21:12, Zuputmer notifications@github.com wrote:

As the title suggests I am trying to implement a mesh network that consists of nodes which are battery powered, and I am using the 328p as a standalone microcontroller without the Arduino hardware so as to reduce power consumption, and just by flashing the Arduino bootloader to it. My question is, is the mesh network capable of relaying a message by waking up a node just to relay a message to another node? Should I use the IRQ as an external interrupt to wake up the 328p? If so, what command should I run in the interrupt service routine of the 328p?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Zuputmer commented 5 years ago

@TMRh20 Thank you for your reply. Unfortunately I cannot keep the radios active all the time as it would severely affect the life of my modules. Is there any other way? What if I used the standby 1 or 2 modes as suggested in the datasheet? If some of my nodes needed to only transmit and not relay any information, could I turn them off completely for a specific period once I obtained the acknowledge from the receiver? When a relaying node has received a packet that it needs to send to another node, will it still give IRQ signal?

Thanks in advance.

ristomatti commented 5 years ago

@Zuputmer It's common to use only wall powered nodes as relays. The battery operated ones should be able to completely go to sleep. At least this is my understanding, I've yet to setup any battery operated nodes myself.