Skip to content

arch/nrf91: improvements for LTE API#19129

Open
raiden00pl wants to merge 3 commits into
apache:masterfrom
raiden00pl:nuttx-nr91-lte
Open

arch/nrf91: improvements for LTE API#19129
raiden00pl wants to merge 3 commits into
apache:masterfrom
raiden00pl:nuttx-nr91-lte

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

Summary

  • arch/nrf91: implement LTE PSM/eDRX via the LAPI

    Add LTE_CMDID_SETPSM / LTE_CMDID_SETEDRX handling that encodes the requested
    PSM (T3412/T3324) and eDRX timers to AT+CPSMS / AT+CEDRXS, so the LTE power
    saving modes are controllable through the common LTE API.

  • arch/arm/nrf91: improve LTE_CMDID_GETQUAL handling

    1. Don't fail LTE GETQUAL on AT+CSQ error
      The LTE_CMDID_GETQUAL handler queried the modem with AT+CESQ (RSRP/RSRQ)
      and then AT+CSQ (RSSI), returning the result of the last command.
      Set 'valid' only when AT+CESQ parses, treat AT+CSQ as optional, zero
      the metrics up front, and return OK so the caller inspects 'valid'.
    2. get SNIR
  • arch/arm/nrf91: add support for LTE_CMDID_GETCELL

    add support for LTE_CMDID_GETCELL ioctl call

Impact

Add more LTE API features for nrf91. These are useful for debuggin LTE connection

Testing

thingy91 with lwm2m

@raiden00pl raiden00pl requested a review from jerpelea as a code owner June 13, 2026 06:28
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: M The size of the change in this PR is medium labels Jun 13, 2026
Comment thread arch/arm/src/nrf91/nrf91_modem_sock.c
Comment thread arch/arm/src/nrf91/nrf91_modem_sock.c
Comment thread arch/arm/src/nrf91/nrf91_modem_sock.c
Add LTE_CMDID_SETPSM / LTE_CMDID_SETEDRX handling that encodes the requested
PSM (T3412/T3324) and eDRX timers to AT+CPSMS / AT+CEDRXS, so the LTE power
saving modes are controllable through the common LTE API.

Signed-off-by: raiden00pl <raiden00@railab.me>
1. Don't fail LTE GETQUAL on AT+CSQ error
   The LTE_CMDID_GETQUAL handler queried the modem with AT+CESQ (RSRP/RSRQ)
   and then AT+CSQ (RSSI), returning the result of the last command.

   Set 'valid' only when AT+CESQ parses, treat AT+CSQ as optional, zero
   the metrics up front, and return OK so the caller inspects 'valid'.

2. get SNIR

Signed-off-by: raiden00pl <raiden00@railab.me>
add support for LTE_CMDID_GETCELL ioctl call

Signed-off-by: raiden00pl <raiden00@railab.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants