You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • does espruino on the D6 use deep sleep at all?

    yes, on nrf5x platform it works automatically out of box, it sleeps almost always. I got to the point that my simple watch app checking for button (and RX pin of serial console) lasts 30-40 days just sitting on the table with bluetooth advertising on (= default state).

    You can verify it by setting busy or sleep indicator (not sure what is the difference)
    https://www.espruino.com/Reference#l__gl­obal_setBusyIndicator
    https://www.espruino.com/Reference#l__gl­obal_setSleepIndicator
    temporarily to pin 25 which is vibration motor and see how long it vibrates when you interact with the watch.

    However recently I tried espruino bootloader made for SDK12 and Softdevice 3.1.0 and I don't see such great power management with that now. I have same build of (latest) espruino for SDK11 and SDK12 and with exactly same javascript code the one with SDK12/SD3.x lasts days while SDK11 lasts weeks so I am investigating what is different. It is built from same git source the only difference seems to be the SoftDevice. I also tried to call NRF.sleep() on SDK12/SD3.x and it still discharges faster than SDK11 with advertising on. Will need more tests, maybe that DS-D6 used has already worse battery (it is the first DS-D6 I got). I don't have any measurement tools for such low currents so I just keep some idle on my desk and check battery voltage after few days.

About

Avatar for fanoush @fanoush started