Arduino-LoRa-Ra01S
Arduino-LoRa-Ra01S copied to clipboard
Waking up LLCC68
Hello! It appears that the current version of this library is unable to wake up LLCC68 (Ra-01SC) from sleep. In the datasheet, it is mentioned that the BUSY pin is held HIGH while in sleep, but the current implementation for wakeup will call the GetStatus function, and that waits for the BUSY pin to be LOW before continuing. Because of this, calling wakeup will just make the code get stuck waiting forever.
It is a simple fix though, it is just necessary to pull the NSS pin to LOW for a short while
This worked for me:
void SX126x::Wakeup(void) { digitalWrite(SX126x_SPI_SELECT, LOW); delay(1); digitalWrite(SX126x_SPI_SELECT, HIGH); }
I am not sure how this was overlooked in #7 as it is closely related
Thank you for your report. I've adopted your code.
https://github.com/nopnop2002/Arduino-LoRa-Ra01S/commit/c1aa49883be3e93ce8581e0399dcab5aa948b13e