Figuring out functional state of nrf9160 modem

I hope someone can help me here with my question.

In my project we are using a nrf9160 with modem fw version 1.3.5. The application sends/receives data periodically (1 hour etc) using nB-Iot. Meanwhile it is in PSM.

We were running for several times in the last months/years into a modem state that it hangs and a connection can not be established. There were several reasons, previous modem firmware versions that were buggy etc etc (not only in my project) ... There is a fault handler implemented as I see which might help

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/fault_handling.html

The goal is to detect whether the modem is in a functional state and could connect if a connection can be established. Excepts the fault handler that directly signals a not functional state of the modem, are there any other ways how to detect whether the modem is functional? Sending AT-commands periodically? Unfortunately I did not see anything in the documentation.

Thanks!

Andreas

Related