Debug connection to LTE-M network / server

Hello!

I am using:

  • NRF1960 Feather board
  • NRF Connect v1.7.0 
  • NCS Toolchain 2.1.1

I am building application which use LTE-M network to connect HTTP/HTTPS server. My application is based on `https_client.c` example under nrf9160 samples.

My device connect to LTE-M network without any problem.  But very often device stuck at connecting to server and reading data from server (if RRC enters in Idle mode after it has connected to server). I have tested my server with Postman and from Python script, it works well without any problems, but from Nordic device very often it fails. 

And the problem happens more often if RRC is in Idle mode or sleep mode. So, I think maybe it related with some `modem` library not with my serveror my code, but I am not sure. 

Does somebody has any suggestions how to track or debug this type of  problem and see, why my device stucks in connection to server or reading data? Important to mention, that LTE-M status is connected to network when this happen.

I have not yet made minimal code project, but if it is needed, I could make one, but I do not want to make this code public as server is running for application. 

Related