SmartRC-CC1101-Driver-Lib icon indicating copy to clipboard operation
SmartRC-CC1101-Driver-Lib copied to clipboard

Waking up from Sleep

Open jwfx opened this issue 3 years ago • 0 comments

I'm looking for a more efficient way of waking up from sleep for TX.

void loop() {

  // Wake up option 1:
  // ELECHOUSE_cc1101.setSidle();
  // ELECHOUSE_cc1101.setCCMode(1);
  // ELECHOUSE_cc1101.setMHZ(868.95);

  // Wake up option 2:
  ELECHOUSE_cc1101.Init();


  ELECHOUSE_cc1101.SendData("something");
  ELECHOUSE_cc1101.goSleep();

  delay(10000);
}

From my understanding the chip should already wake up when CS (SS) is pulled to LOW, which is already done be SendData(). For for some reason sending does not work in the 2nd iteration of the loop, unless I use one of the two "wake up options" in the code above.

Of course these functions have a lot of overhead, so I was wondering if there is a more efficient way of triggering a wake up.

jwfx avatar Sep 19 '21 10:09 jwfx