E: mqtt_connect, error; -111 when trying to connect nRF9160 to AWS Cloud

Hi,

I'm facing the mqtt error shown in the image below "E: mqtt_connect, error; -111" when I try to establish connection between the nRF9160 DK and AWS Cloud. I've double checked the certificates that I uploaded and there doesn't seem to be any errors in that.

I am using the aws iot sample from this github: https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/aws_iot

I also tried the AT command: "AT+CPMS?" and have included the output for that in the second picture. 

I have included two log files: Before reset and after reset log files.

Please help with this issue.

Parents
  • Hi Swathi,

    Modem trace file could provide more information on what is wrong. In order to collect modem traces, open nRF Connect for Desktop and choose Trace Collector v2 from the list of available applications. You can follow the documentation on how to enable tracing in the application. After programming the device, in the Trace Collector v2 application, choose PCAP option and press "Start tracing". You can then open your saved pcap file to have better insight into desired communication. 

    There is also another case with the same question which might be useful to you. Here is the link to the case.

    Best regards,
    Dejan


  • Hi Dejan,

    Thank you for your suggestions. I have a modem trace from Trace Collector. Here's the log file:



    When I open the trace collector v2 preview application, and choose PCAP option and press "Start Tracing" it just keeps loading and doesn't give a captured modem trace. I've the latest firmware installed as well. We've watched this video as well to trouble shoothttps://www.youtube.com/watch?v=8kB5XA5a2pI but it doesn't seem to work. Here's a screenshot of what is happening:

    We've tried troubleshooting yesterday through the other link that you've sent. We tried the approaches provided in that post's answers and it didn't resolve our issue. Please walk us through how to solve this problem.

Reply
  • Hi Dejan,

    Thank you for your suggestions. I have a modem trace from Trace Collector. Here's the log file:



    When I open the trace collector v2 preview application, and choose PCAP option and press "Start Tracing" it just keeps loading and doesn't give a captured modem trace. I've the latest firmware installed as well. We've watched this video as well to trouble shoothttps://www.youtube.com/watch?v=8kB5XA5a2pI but it doesn't seem to work. Here's a screenshot of what is happening:

    We've tried troubleshooting yesterday through the other link that you've sent. We tried the approaches provided in that post's answers and it didn't resolve our issue. Please walk us through how to solve this problem.

Children
Related