This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 MQTT connection failure

Hi,

We are using nRF9160 ncs version 1.0.0. 

I have two queries.

We are making connection with AWS server. In the backend we have telenor server. 

We make MQTT connection, publish data and disconnect from server.

Connection interval is 5 minutes. 

We have observed that after 7-8 hours of successful connection (more than 100 times ) it gets stuck in

"connect" function inside "mqtt_client_tls_connect" function. It never comes out of "connect" function. 

Second query is we are using "lte_lc_psm_req" function to put the device in PSM mode to save power.

During first MQTT connection with AWS server device takes more than 10 minutes ( There are multiple failures in MQTT connection during this time )

Initially we get error -111 and then we get error -60. 

After 10 to 15 minutes, connection with  server is established and thereafter we don't have any issue in connection.

Can you help me in resolving this issue ?

Regards,

Smitesh Mali

Parents
  • Hi

    Sorry, but it seems your modem trace is invalid, as we're not able to read anything useful from it. I understand that this may be frustrating to hear, seeing as it takes you so long to reproduce the issue, but we'll need a readable one in order to help you find out what's going on. What you can do, is sending a test trace that doesn't require 8 hours of waiting first, so that we can check if the modem trace is correct before you send the 8-hour version

    The most common mistakes are that CONFIG_BSD_LIBRARY_TRACE_ENABLED=y in prj.conf isn't set in step 1, and that AT%XMODEMTRACE=1,2 isn't sent in step 4.

    Best regards and sorry for the inconvenience,

    Simon

  • Hi,

    Is it possible to see the traces on PC terminal ?

    I didn't send "AT%XMODEMTRACE=1,2" command yesterday. 

    I have added it now but if i see the traces on PC terminal then it shows unreadable data.

    I have kept 115200 buad rate. 

    Regards,

    Smitesh Mali

Reply Children
No Data
Related