From 9febaeb8b7a351ac1956dac6adc78addcae178b4 Mon Sep 17 00:00:00 2001 From: Tommi Kangas Date: Mon, 6 Oct 2025 14:21:23 +0300 Subject: [PATCH 1/2] samples: cellular: gnss: 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 --- samples/cellular/gnss/prj.conf | 6 ++---- samples/cellular/gnss/src/main.c | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/samples/cellular/gnss/prj.conf b/samples/cellular/gnss/prj.conf index 465b7034b41c..b40140a273ac 100644 --- a/samples/cellular/gnss/prj.conf +++ b/samples/cellular/gnss/prj.conf @@ -20,11 +20,9 @@ CONFIG_GNSS_SAMPLE_ASSISTANCE_NRF_CLOUD=n # LTE Link Control CONFIG_LTE_LINK_CONTROL=y -# Request eDRX from the network -CONFIG_LTE_LC_EDRX_MODULE=y -CONFIG_LTE_EDRX_REQ=y -# PSM requested periodic TAU 8 hours CONFIG_LTE_LC_PSM_MODULE=y +CONFIG_LTE_PSM_REQ=y +# PSM requested periodic TAU 8 hours CONFIG_LTE_PSM_REQ_RPTAU="00101000" # PSM requested active time 6 seconds CONFIG_LTE_PSM_REQ_RAT="00000011" diff --git a/samples/cellular/gnss/src/main.c b/samples/cellular/gnss/src/main.c index 6a1f7ef62d5d..7e05771c4bb3 100644 --- a/samples/cellular/gnss/src/main.c +++ b/samples/cellular/gnss/src/main.c @@ -452,8 +452,6 @@ static int modem_init(void) #if defined(CONFIG_GNSS_SAMPLE_LTE_ON_DEMAND) lte_lc_register_handler(lte_lc_event_handler); #elif !defined(CONFIG_GNSS_SAMPLE_ASSISTANCE_NONE) - lte_lc_psm_req(true); - LOG_INF("Connecting to LTE network"); if (lte_lc_connect() != 0) { From 304fc0ffdeaf126724f04fa03c25f867d850db7a Mon Sep 17 00:00:00 2001 From: Tommi Kangas Date: Mon, 6 Oct 2025 14:25:37 +0300 Subject: [PATCH 2/2] 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 --- samples/cellular/location/prj.conf | 5 +++-- samples/cellular/location/src/main.c | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/samples/cellular/location/prj.conf b/samples/cellular/location/prj.conf index 47b54c030c95..965d4cdd70a0 100644 --- a/samples/cellular/location/prj.conf +++ b/samples/cellular/location/prj.conf @@ -31,9 +31,10 @@ CONFIG_NET_SOCKETS_OFFLOAD=y # LTE link control CONFIG_LTE_LINK_CONTROL=y -CONFIG_LTE_LC_EDRX_MODULE=y -CONFIG_LTE_EDRX_REQ=y CONFIG_LTE_LC_PSM_MODULE=y +CONFIG_LTE_PSM_REQ=y +# Request periodic TAU of 8 hours +CONFIG_LTE_PSM_REQ_RPTAU="00101000" # Request PSM active time of 8 seconds. CONFIG_LTE_PSM_REQ_RAT="00000100" diff --git a/samples/cellular/location/src/main.c b/samples/cellular/location/src/main.c index 1ca33050065a..7a38a9de7fb5 100644 --- a/samples/cellular/location/src/main.c +++ b/samples/cellular/location/src/main.c @@ -258,8 +258,6 @@ int main(void) lte_lc_register_handler(lte_event_handler); - /* Enable PSM. */ - lte_lc_psm_req(true); lte_lc_connect(); k_sem_take(<e_connected, K_FOREVER);