Replies: 1 comment
-
The reset in begin method is quite intentional - the assumption is that you're only calling begin() after power-on reset, when the SX127x device is in an unknown state. However, I'm not sure why would you want to call begin() on wakeup of the ESP32 in the first place? I would only call begin once, after the power-on reset. EDIT: Also, this doesn't seem like an issue - converting to a discussion instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Is it any procedure to initialise instance of SX1278 without reset LoRa chip?
I'd try to put MCU (esp32) in deep sleep when LoRa modem (sx1278) in receive state.
When packet received MCU is woken up by extX wake up source with dio0 line. But begin() method of instance SX1278 resets LoRa chip and its state lost, so cant read received packet, its size, RSSI etc. Without initialize I can't read resieved data too, because there is not control SS line of SPI.
Temporary I commented out code with reset in SX127x::findChip routine but sure that is not the best decision to change library code...
Is it any right way to do this?
I think I am not first who plays with power saving of LoRa boards.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions