Deep sleep receive mode

Hi,
beginners question…

Is it possible to put the cube cell in deep sleep and wake it up when a packet was received?
Like described here: https://learn.circuit.rocks/esp32-lora-gateway-battery-optimized

Greetings
Olaf

Hi Olaf,
The supplied LoRaReceiver.ino example seems to do what you want. Have a look at it.
Peter

     void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
            {
                rssi=rssi;
                rxSize=size;
                memcpy(rxpacket, payload, size );
                rxpacket[size]='\0';
                turnOnRGB(COLOR_RECEIVED,0);
                Radio.Sleep( );
                Serial.printf("\r\nreceived packet \"%s\" with rssi %d , length %d\r\n",rxpacket,rssi,rxSize);
            }

Thx for reply!
I didn’t see the LoRa branch in examples and i found the reason.
When i install the “LoRa” library from Sandeep Mistry the Lora-Branch in the cubecell-branch disapears.
Why is it so? Is it a bug or a feature?

Greetings
Olaf

Is it possibele to put it in deep sleep and then send a packet on interrupt ?

Hi @olfried,
Sorry, can’t help you with this - I use PlatformIO.

Hi @sheik61,
Sure, just have a look at the Heltec examples for LoRaWAN. They use timer generated interrupts, but you can replace of course by another IRQ source. (As long as local dutycycle rules are followed.)

@peterm
Thx anyway.
Greetings
Olaf

as @peterm said check out the examples here is the interrupt one:

cheers,
Jay