AssetTracker v2: connection management and sleep state

Hi!

I can't find a detailed technical description of the following points of the AssetTracker v2 application. Some description, explanation, details will be appreciated.

1. Connection management (connection/disconnection behavior). Does the app stay offline most of the time? Is the modem switched off during this offline periods? Or is it in some sleep mode (e.g., PSM)? What is the algorithm of connection management (including reconnections in case of a network lost)?

In the docs, I see "If the modem module receives an APP_EVT_LTE_DISCONNECT event, it instructs the modem to detach from the network". But I don't see this event to actually appear (neither in the code, nor in the logs).

2.  Power management, going to sleep. It's declared that the application sleeps most of the time. But I don't see anything clear about going to sleep neither in the app's code, nor in the logs. I would be glad to know some technical details of how it works.

Thank you!

Parents Reply
  • Hi Jonathan,

    Thanks for the reply!

    Do you not feel that this addresses your question?  

    Sorry, but I don't feel so. I've seen these docs and they don't answer my questions.

    LTE connection handling doc:

    - (From my original question) I see "If the modem module receives an APP_EVT_LTE_DISCONNECT event, it instructs the modem to detach from the network, and a subsequent MODEM_EVT_LTE_DISCONNECTED event can be expected after the disconnect.". But I can't find this event neither in the code, nor in the logs (in both active/passive modes). Does this mean that the device stays always connected (especially if my carrier doesn't support PSM)?

    - What is the reconnection policy? I see "If the network registration is lost at some point, a MODEM_EVT_LTE_DISCONNECTED event is sent.". But I see no info about reconnection. Is it handled by the LTE link control library without any calls from the application?

    Application behavior and functionality doc also doesn't give any details about the connection management. I only see "In connected state?" blocks on the diagrams, nothing more about connectivity.

    https://github.com/nrfconnect/sdk-nrf/blob/69b617e753df68d2be7e54cb4c204732ef137c20/include/modem/lte_lc.h#L299 there is the two handles here:

    Ok, this is modem's sleep mode. As far as I understand, nRF9160 has some sleep modes/states of MCU - e.g., deep sleep. Does the AssetTracker app use some features like these?
    Does it keep peripherals off (or in some low-power mode) most of the time?


    Regards,
    Ruslan

Children
No Data
Related