Arduino-LoRa-Ra01S icon indicating copy to clipboard operation
Arduino-LoRa-Ra01S copied to clipboard

Waking up LLCC68

Open andrejtetkic opened this issue 9 months ago • 1 comments

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

Image

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

andrejtetkic avatar Feb 20 '25 15:02 andrejtetkic

Thank you for your report. I've adopted your code.

https://github.com/nopnop2002/Arduino-LoRa-Ra01S/commit/c1aa49883be3e93ce8581e0399dcab5aa948b13e

nopnop2002 avatar Feb 21 '25 09:02 nopnop2002