Wake up on Lora message reception

Hello,

I am using a RAK3172 for a low power application and I would like to put the module in sleep mode for most of the time and wake it only when I need to send data. This part doesn’t seem to be hard using the AT commands.
But my problem is that I would like to send parameters to my system using Lora. So here’s my question:
Is it possible to wake the module on Lora message reception? If yes, is there any documentation on this feature?

Thank You,

Arthur

Welcome to the forum @ao38

Assuming you are working only with AT commands and a host MCU that controls the RAK3172:

When in RX mode, the module will never go into full sleep mode. This is because the LoRa transceiver has to be in receiver mode, which will cost ~6mA consumption.

You have to set the RAK3172 into RX mode with the AT+PRECV command.

Once a packet was received, the RAK3172 will send the received packet over the UART as an asynchronous event. Your host MCU has to be able to receive this event over UART and process it.

Depending on the mode you set with AT+PRECV, the RAK3172 will continue in RX mode, or go into sleep mode until you activate RX again. The different modes are explained in the AT+PRECV documentation.

While not as an example, the RX modes and how they work can be found in our Documentation Center

Attempt of an example:

(1) set RAK3172 into continous RX mode
AT+PRECV=65533
(2) once a packet was received, the RAK3172 will send the packet over UART
+EVT:RXP2P:-112:1:1234

Hello Bernd,

Thank you for your quick answer!

Ok, that’s what I was afraid of…

So to implement my feature, I think I will let the module send a message to the server then wait for a response with the parameters and then go to sleep.

Thank you,

Arthur