Skip to content

Commit e3313db

Browse files
committed
Silabs: allow EM2 sleep for battery end devices
The debug UART held an EM1 requirement to keep its receiver on, which kept sleepy end devices out of EM2 (~1mA vs ~1.5uA). Routers are unaffected: the radio keeps them at EM1 anyway.
1 parent 44f74ed commit e3313db

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

docs/changelog_fw.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Please describe what you are working on, under ## Upcoming
4040
- PowerCfg cluster for battery level monitoring
4141
- PollCtrl cluster to allow settings poll rate via ZCL
4242
- Add `BT<pin>` config option to enable battery mode
43+
- Silabs end devices now reach EM2 while idle (the debug UART no longer holds an EM1 requirement to keep its receiver on)
4344

4445
### Bugs
4546

src/silabs/config/sl_iostream_usart_inst_config.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,14 @@
7272
// <i> Default: 0
7373
#define SL_IOSTREAM_USART_INST_CONVERT_BY_DEFAULT_LF_TO_CRLF 0
7474

75-
// <q SL_IOSTREAM_USART_INST_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION> Restrict
76-
// the energy mode to allow the reception. <i> Default: 1 <i> Limits the lowest
77-
// energy mode the system can sleep to in order to keep the reception on. May
78-
// cause higher power consumption.
79-
#define SL_IOSTREAM_USART_INST_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION 1
75+
// <q SL_IOSTREAM_USART_INST_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION> Hold an
76+
// EM1 requirement so the debug serial UART can receive console input.
77+
// <i> Default: 1
78+
// <i> Keeping the UART receiver on blocks EM2, so a sleepy battery device
79+
// <i> never really sleeps (~1mA vs ~1.5uA). Set to 0 here: battery end devices
80+
// <i> reach EM2 and lose only debug-serial input while idle. The Zigbee radio
81+
// <i> is unaffected -- it still wakes to poll and receive.
82+
#define SL_IOSTREAM_USART_INST_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION 0
8083

8184
// </h>
8285

0 commit comments

Comments
 (0)