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

Modem Sleep Notifications

Hi, 

I am developing a simple application where I read some data from a sensor, and publish the data with MQTT. I want to use PSM to conserve battery life, and I am able to turn it on, and its looks like it's working. I have turned on "MODEM_SLEEP_NOTIFICATIONS" via the proj.conf file. I get the notifications over the virtual COM port, but I am unclear how I can actually use them in the application. 

(Example of what is seen on VCOM PORT)

%XT3412: 4199999

%XMODEMSLEEP: 1,4189987

Is there some sort of user callback function I can implement when a notification is received? I can't even work out where the code is that's supplying the notifications. 

I'm sure there is something but can't seem to find any example or documentation about it. 

Thanks,

Damien

Parents
  • The library you are looking for is the at_notif library at /nrf/lib/at_notif in the NRF Connect SDK.


    The LTE Link Control library at /nrf/lib/lte_link_control has an example of using it.  It registers a handler using "at_notif_register_handler" which is then invoked each time any AT messages are received from the modem.

Reply
  • The library you are looking for is the at_notif library at /nrf/lib/at_notif in the NRF Connect SDK.


    The LTE Link Control library at /nrf/lib/lte_link_control has an example of using it.  It registers a handler using "at_notif_register_handler" which is then invoked each time any AT messages are received from the modem.

Children
No Data
Related