NRF9160 AWS IOT no connection possible.

Dear

We are bussy with oure first NRF IOT application, in the past we used AWS as cloud environment.

Now we want to write some data in the cloud based on the NRF9160-DK board.

After a clean and up to date, setup from the Nordic SDK and downloading the stock AWS example with the needed adaption, described in the tutorial online, like the URL to the cloud and adding downloading the 3 certificates into the device with AT CMD project.

We run in some problem, after programming the AWS project we got this error:

I can’t find what -119 problem means?

*** Booting Zephyr OS build v3.3.99-ncs1 ***

*** Booting Zephyr OS build v3.3.99-ncs1 ***

I: The AWS IoT sample started, version: v1.0.0

E: AWS IoT library could be initialized, error: 0

E: Adding application specific topics succes, error: 0

E: Modem could be configured, error: 0

E: initializing modem info module, error: 0

+CEREG: 2,"0C3F","02C93C01",7

I: LTE cell changed: Cell ID: 46742529, Tracking area: 3135

+CSCON: 1

I: RRC mode: Connected

+CEREG: 1,"0C3F","02C93C01",7,,,"11100000","00000110"

I: Network registration status: Connected - home network

I: PSM parameter update: TAU: 3600, Active time: -1

%XTIME: "80","32604161952580","01"

I: Date time obtained

I: Next connection retry in 5 seconds

I: AWS_IOT_EVT_CONNECTING

W: connection_poll_start failed, error: -119

E: aws_iot_connect, error: -119

I: Next connection retry in 5 seconds

How can we solve this problem or what configuration is missing?

Parents
  • Hi,

    E: AWS IoT library could be initialized, error: 0
    
    E: Adding application specific topics succes, error: 0
    
    E: Modem could be configured, error: 0
    
    E: initializing modem info module, error: 0

    I assume this is logging you have added to the sample?

    Could you enable debug logging in the aws_iot library to see if that gives us some more information?

    CONFIG_AWS_IOT_LOG_LEVE_DBG=y

    Also, if you disable minimal logging, it will be easier to see where various log lines come from.

    CONFIG_LOG_MODE_MINIMAL=n

    Also, if you can take a modem trace, that would be helpful.

    described in the tutorial online

    Just to make sure we talk about the same thing, could you share a link to the tutorial?

    Best regards,

    Didrik

Reply
  • Hi,

    E: AWS IoT library could be initialized, error: 0
    
    E: Adding application specific topics succes, error: 0
    
    E: Modem could be configured, error: 0
    
    E: initializing modem info module, error: 0

    I assume this is logging you have added to the sample?

    Could you enable debug logging in the aws_iot library to see if that gives us some more information?

    CONFIG_AWS_IOT_LOG_LEVE_DBG=y

    Also, if you disable minimal logging, it will be easier to see where various log lines come from.

    CONFIG_LOG_MODE_MINIMAL=n

    Also, if you can take a modem trace, that would be helpful.

    described in the tutorial online

    Just to make sure we talk about the same thing, could you share a link to the tutorial?

    Best regards,

    Didrik

Children
Related