IoTThinks.com

Results 207 comments of IoTThinks.com

B111 is binary 111 or 0x07. It should be MODE_CAD instead. #define MODE_CAD 0x07 ``` bool LoRaClass::isTransmitting() { if ((readRegister(REG_OP_MODE) & B111) == MODE_TX) { return true; } ... ```

This example from @w-ockham has something "not right" too me. https://github.com/w-ockham/arduino-LoRa/blob/master/examples/LoRaCADCallback/LoRaCADCallback.ino ``` void onCadDone(boolean signalDetected) { // detect preamble if (signalDetected) { Serial.println("Signal detected"); // put the radio into continuous...

I believe only need to run LoRa.end() before setting the MCU to deep sleep.

You want wake up event? May be you can play around with CAD in DIO1. I never try yet, btw. Now, I prefer doing like Class A of LoRaWAN. Node...

@chocotov1 : So eager to wait for your code :-)

@morganrallen The CAD is still pending for a release, right? In LoRaWAN, a CAD is useful to detect a packet from any SF of a frequency.

@neo7530 I only have dio0 connected to MCU. Can I short circuit DIO0 and DIO1 to use CAD too? So basically, dio0 and dio1 connect to the same GPIO.

@chocotov1 @maxholgasson : The following code is for Arduino only, right? I'm using ESP32, What should I do for ESP32? Thanks a lot. ``` // wdt sleep settings: // 10.8...

My esp32 now can reach 60uA deepsleep with LoRa. When I switch off power for LoRa, I can reach 30uA. You can check how much your LDO consumes to go...

If unable to reach under 500uA, check the LDO first. Some LDOs have high quiescent current.