This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF9160 eDRX weird behavior + how to properly monitor?

Hello,

My setup is UDP sample and PPK2 for power measurements. I am trying to figure out the best settings that are available with eDRX set to <= 20.48s, and preferably 5.12 or 10.24. I prefer using LTE-M when available over NB-IoT. PSM is off.

When testing with default UDP sample settings (PSM enabled) i get a very similar power profile to the tutorial (https://www.youtube.com/watch?v=r_dr3Qd8inE). Only difference is in cDRX inactivity timer, i get ~100 ms compared to 300 in the tutorial. All good and normal.

When testing with eDRX i get the following:

  1. the network seems to accept it, meaning i get the callback lte_handler case LTE_LC_EVT_EDRX_UPDATE with the values i set. In one test i set 1110 on LTE-M which is N/A and got back 2621.44 which is the closest value
  2. the power profiler shows an average of 500-600 micro amps with spikes every ~1.2 seconds no matter what eDRX value i set, and even if eDRX is set to "OFF".Also a bit weird since normally with eDRX off i should expect an average current in RRC Idle of ~1 mA (according to Online Power Profiler) and i get about half that.

From the above, to me it looks like i'm getting some pseudo eDRX.

Slight smile

Questions:

1. Do i have eDRX or not? Slight smile

2. If i don't, which is the more likely option, how can i detect this from the code? I would attempt to try NB-IoT in case eDRX does not work on LTE-M.

Attached:

1. Modem trace collector /cfs-file/__key/communityserver-discussions-components-files/4/modem_5F00_trace_2D00_2022_2D00_02_2D00_01T20_2D00_53_2D00_47.991Z.bin 

2. eDRX on with 10.24 s

3. eDRX off

  • Hi,

     

    Thank you for the trace. It shows this as the return:

    +CEDRXP: 4,"0001","0001","0001"

    Which you can decode here: https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxs_set.html?cp=2_1_7_3_0

    It seems to match your wanted settings.

     

    The initial connection includes a RRC inactivity timer, as explained in this post: https://devzone.nordicsemi.com/power/w/opp/4/user-guide-lte

    If you try to log current for a longer period, you should see that it enters RRC idle (and then eDRX idle or PSM) after x amount of seconds (60 seconds in my network).

     

    Kind regards,

    Håkon

  • Hi Håkon

    Thanks for looking into this!
    I just made another test, edrx 0001, got the same psw of 0001 and i kept power profiling for 5:30 minutes. I also activated logs.


    Unfortunately no change later on. Besides the first ~20 seconds the rest of the spikes were all ~1.2 s apart for the whole 5 minutes..

    Logs (i just added k_uptime_get for clarity):

    *** Booting Zephyr OS build v2.6.99-ncs1-1 ***
    [206]UDP sample has started
    [10510]LTE cell changed: Cell ID: 3584259, Tracking area: 10103
    [10748]RRC mode: Connected
    [12530]Network registration status: Connected - roaming

    [1253Transmitting UDP/IP payload of 38 bytes to the IP address 8.8.8.8, port number 2469
    5]PSM parameter update: TAU: -1, Active time: -1
    eDRX parameter update: eDRX: 10.240000, PTW: 2.560000

    [18175]RRC mode: Idle

    [18275]LTE cell changed: Cell ID: 2624769, Tracking area: 10103
    [94303]LTE cell changed: Cell ID: 3584259, Tracking area: 10103
    [109739]LTE cell changed: Cell ID: 2624769, Tracking area: 10103
    [148064]LTE cell changed: Cell ID: 3584259, Tracking area: 10103
    [397708]LTE cell changed: Cell ID: 2624769, Tracking area: 10103

     

    Attached:

    ppk export file

    screenshots a, b, c with various views.

  • Hi,

     

    Thank you for the detailed information. I have checked internally, and yes, there's a bug here in the AT interface for eDRX, where CEDRXS reports incorrectly.

    Your network does not provide you with eDRX, even though that CEDRXS indicates that it does. This will be improved in the future.

     

    For detecting modem sleep periods, you can use XMODEMSLEEP notifications:

    https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xmodemsleep_set.html?cp=2_1_4_32_0

     

    Kind regards,

    Håkon

  • Hi Håkon,

    Thank you for looking into this in detail!

    Our aim is to write code that uses the lowest power setting available given the circumstances.

    I have added CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS=y in the prj.conf and i get a single pair of LTE_LC_EVT_MODEM_SLEEP_ENTER and LTE_LC_EVT_MODEM_SLEEP_EXIT in the beginning, then nothing.


    Can i interpret this that eDRX is off? And if eDRX is on, in RRC mode Idle i should get sleep_enter/sleep_exit with the frequency of eDRX period? Is this how it's supposed to work?
    I can't get a different network in Bucharest Romania to test, or is there a way for me to test somehow with a real eDRX?
    Logs from UDP Sample:
    *** Booting Zephyr OS build v2.6.99-ncs1-1 ***
    [206]UDP sample has started
    [273]Modem sleep enter - sleep time -1, mode -1
    [311]Modem sleep exit - sleep time 0, mode 0
    [9506]Network registration status fail: 2
    [9509]LTE cell changed: Cell ID: 3584259, Tracking area: 10103
    [9548]RRC mode: Connected
    [11364]Network registration status: Connected - roaming

    [1136Transmitting UDP/IP payload of 38 bytes to the IP address 8.8.8.8, port number 2469
    9]PSM parameter update: TAU: -1, Active time: -1
    eDRX parameter update: eDRX: 20.480000, PTW: 2.560000

    [16843]RRC mode: Idle

    Thanks,

    Nicolae

  • Hi Nicolae,

     

    nicolae.georgescu said:
    Can i interpret this that eDRX is off? And if eDRX is on, in RRC mode Idle i should get sleep_enter/sleep_exit with the frequency of eDRX period? Is this how it's supposed to work?

    Yes, unfortunately, this is the case. Your network does not allow you to enter eDRX mode, so you're still in RRC idle mode, which consumes more current.

    nicolae.georgescu said:
    I can't get a different network in Bucharest Romania to test, or is there a way for me to test somehow with a real eDRX?

    The SIM card that you currently use is a roaming SIM, meaning that it is not a sim card provided by the network provider that you're currently connecting to. I would recommend that you contact your local network provider and ask if they have eDRX support for their "home registered" (ie. the SIM's that they provide) SIM cards.

     

    Kind regards,

    Håkon

Related