-
• #2
Firmware.3:
BLUETOOTH_ADVERTISING_INTERVAL=750
, default 375
1 Attachment
-
• #3
You can change
NRF.setTxPower(...)
to reduce power usage. Also if you're notscannable
(setAdvertising option) then that can save some power too. -
• #4
Is there something similar like
setDeeepSleep()
for NRF528XX devices? -
• #5
it is not needed, it goes to sleep automatically once there in nothing to do in event loop
EDIT:
or you can check what bangle poweroff does here https://github.com/espruino/Espruino/blob/master/libs/banglejs/jswrap_bangle.c#L4078
for lowest power state, but not sure this is something you'd want. This wakes up from off state by gpio trigger, not sure if RTC could do it too and whether with RTC turned on it would save something compared to ordinary sleep with advertising off. -
• #6
nRF52 with Espruino does 'deep sleep' by default.
The difference between normal sleep and
sd_power_system_off
is pretty small - just a few uA, and you lose the RTC and everything in RAM, so generally it's not worth it.
Online Power Profiler for BLE show's some option which are available in
Firmware
enable the DC/DC instead of the LDO (-DESPR_DCDC_ENABLE=1)
enable slow speed external osc (-DESPR_LSE_ENABLE)
change advertising interval (-DBLUETOOTH_ADVERTISING_INTERVAL)
NRF class
eg
NRF.setConnectionInterval({minInterval:10,maxInterval:500});
- not sure about this oneAny further possibilities?