Skip to content

Commit 36c979e

Browse files
tokangasrlubos
authored andcommitted
samples: cellular: location: Disable use of eDRX
The sample used to have both PSM and eDRX enabled. This causes bad behavior in some networks, so it is better to disable eDRX and use only PSM, which suits the use case better. Signed-off-by: Tommi Kangas <[email protected]>
1 parent b0c0af6 commit 36c979e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

samples/cellular/location/prj.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ CONFIG_NET_SOCKETS_OFFLOAD=y
3131

3232
# LTE link control
3333
CONFIG_LTE_LINK_CONTROL=y
34-
CONFIG_LTE_LC_EDRX_MODULE=y
35-
CONFIG_LTE_EDRX_REQ=y
3634
CONFIG_LTE_LC_PSM_MODULE=y
35+
CONFIG_LTE_PSM_REQ=y
36+
# Request periodic TAU of 8 hours
37+
CONFIG_LTE_PSM_REQ_RPTAU="00101000"
3738
# Request PSM active time of 8 seconds.
3839
CONFIG_LTE_PSM_REQ_RAT="00000100"
3940

samples/cellular/location/src/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ int main(void)
258258

259259
lte_lc_register_handler(lte_event_handler);
260260

261-
/* Enable PSM. */
262-
lte_lc_psm_req(true);
263261
lte_lc_connect();
264262

265263
k_sem_take(&lte_connected, K_FOREVER);

0 commit comments

Comments
 (0)