nRF9160 thingy91 - AWS IOT (sample): Connect errors -11 and -10

Hello All,

This is from an app I had working 1 1/2 months ago - when I've tried recently to get it connected again, I haven't been successful.

The latest asset tracker appears to work find and posts data to the nRF Cloud.

I've seen previous posts - DNS is working - or appears to be ok.

I'm getting the following:

===

+CSCON: 0


RRC mode: Idle


Next connection retry in 30 seconds


AWS_IOT_EVT_CONNECTING


+CSCON: 1


RRC mode: Connected


E: getaddrinfo, error -11


E: client_broker_init, error: -10


AWS_IOT_EVT_CONNECTING


+CSCON: 0


RRC mode: Idle


Next connection retry in 30 seconds


AWS_IOT_EVT_CONNECTING


+CSCON: 1


RRC mode: Connected


E: getaddrinfo, error -11


E: client_broker_init, error: -10


AWS_IOT_EVT_CONNECTING


+CSCON: 0


RRC mode: Idle

====

I can reload the asset tracker and it'll work fine.  I'm running the AWS_IOT sample code.

Thanks in advance as to what -11 and -10 mean - it would appear getting the address fails - I tried to find error codes that make sense but not sure and wanted to ask in case something has changed in the last 1 1/2 months.  This app used to run without issue.

Thanks!
jwest

Parents
  • Didrik,

    I'm seeing this when I boot:

    ** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    
    
    
    
    Flash regions
    	
    	
    Domain
    	
    	
    Permissions
    
    
    
    
    00 02 0x00000 0x18000 
    	
    Secure
    	
    	
    rwxl
    
    
    
    
    03 31 0x18000 0x100000 
    	
    Non-Secure
    	
    rwxl
    
    
    
    
    
    
    
    
    Non-secure callable region 0 placed in flash region 2 with size 32.
    
    
    
    
    
    
    
    
    SRAM region
    	
    	
    Domain
    	
    	
    Permissions
    
    
    
    
    00 07 0x00000 0x10000 
    	
    Secure
    	
    	
    rwxl
    
    
    
    
    08 31 0x10000 0x40000 
    	
    Non-Secure
    	
    rwxl
    
    
    
    
    
    
    
    
    Peripheral
    	
    	
    Domain
    	
    	
    Status
    
    
    
    
    00 NRF_P0               Non-Secure
    	
    OK
    
    
    
    
    01 NRF_CLOCK            Non-Secure
    	
    OK
    
    
    
    
    02 NRF_RTC0             Non-Secure
    	
    OK
    
    
    
    
    03 NRF_RTC1             Non-Secure
    	
    OK
    
    
    
    
    04 NRF_NVMC             Non-Secure
    	
    OK
    
    
    
    
    05 NRF_UARTE1           Non-Secure
    	
    OK
    
    
    
    
    06 NRF_UARTE2           Secure
    	
    	
    SKIP
    
    
    
    
    07 NRF_TWIM2            Non-Secure
    	
    OK
    
    
    
    
    08 NRF_SPIM3            Non-Secure
    	
    OK
    
    
    
    
    09 NRF_TIMER0           Non-Secure
    	
    OK
    
    
    
    
    10 NRF_TIMER1           Non-Secure
    	
    OK
    
    
    
    
    11 NRF_TIMER2           Non-Secure
    	
    OK
    
    
    
    
    12 NRF_SAADC            Non-Secure
    	
    OK
    
    
    
    
    13 NRF_PWM0             Non-Secure
    	
    OK
    
    
    
    
    14 NRF_PWM1             Non-Secure
    	
    OK
    
    
    
    
    15 NRF_PWM2             Non-Secure
    	
    OK
    
    
    
    
    16 NRF_PWM3             Non-Secure
    	
    OK
    
    
    
    
    17 NRF_WDT              Non-Secure
    	
    OK
    
    
    
    
    18 NRF_IPC              Non-Secure
    	
    OK
    
    
    
    
    19 NRF_VMC              Non-Secure
    	
    OK
    
    
    
    
    20 NRF_FPU              Non-Secure
    	
    OK
    
    
    
    
    21 NRF_EGU1             Non-Secure
    	
    OK
    
    
    
    
    22 NRF_EGU2             Non-Secure
    	
    OK
    
    
    
    
    23 NRF_DPPIC            Non-Secure
    	
    OK
    
    
    
    
    24 NRF_REGULATORS       Non-Secure
    	
    OK
    
    
    
    
    25 NRF_PDM              Non-Secure
    	
    OK
    
    
    
    
    26 NRF_I2S              Non-Secure
    	
    OK
    
    
    
    
    27 NRF_GPIOTE1          Non-Secure
    	
    OK
    
    
    
    
    
    
    
    
    SPM: NS image at 0x18200
    
    
    
    
    SPM: NS MSP at 0x2001f800
    
    
    
    
    SPM: NS reset vector at 0x1e2bd
    
    
    
    
    SPM: prepare to jump to Non-Secure image.
    
    
    
    
    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    
    
    
    
    The AWS IoT sample started, version: v1.0.0 
    
    
    
    
    W: Already initialized. Nothing to do
    
    
    
    
    +CEREG: 2,"8B53","0A301B3F",7
    
    
    
    
    LTE cell changed: Cell ID: 170924863, Tracking area: 35667
    
    
    
    
    +CSCON: 1
    
    
    
    
    RRC mode: Connected
    
    
    
    
    +CEREG: 1,"8B53","0A301B3F",7,,,"11100000","11100000"
    
    
    
    
    Network registration status: Connected - home network
    
    
    
    
    Next connection retry in 30 seconds
    
    
    
    
    PSM parameter update: TAU: -1, Active time: -1
    
    
    
    
    AWS_IOT_EVT_CONNECTING
    
    
    
    
    AT+COPS=3,2
    
    
    
    
    OK
    
    
    
    
    AT+COPS?
    
    
    
    
    +COPS: 0,2,"310410",7
    
    
    
    
    OK
    
    
    
    
    AT%XCBAND
    
    
    
    
    %XCBAND: 2
    
    
    
    
    OK
    
    
    
    
    AT+CGDCONT?
    
    
    
    
    +CGDCONT: 0,"IP","m2m.com.attz","10.33.176.184",0,0
    
    
    
    
    OK
    
    
    
    
    AT+CGACT?
    
    
    
    
    +CGACT: 0,1
    
    
    
    
    OK
    
    
    
    
    E: getaddrinfo, error -11
    
    
    
    
    E: client_broker_init, error: -10
    
    
    
    
    AWS_IOT_EVT_CONNECTING
    
    
    
    
    DATE_TIME_OBTAINED_NTP
    
    
    
    
    +CSCON: 0
    
    
    
    
    RRC mode: Idle
    
    
    
    
    Next connection retry in 30 seconds
    
    
    
    
    AWS_IOT_EVT_CONNECTING
    
    
    
    
    +CSCON: 1
    
    
    
    
    RRC mode: Connected
    
    
    
    
    E: getaddrinfo, error -11
    
    
    
    
    E: client_broker_init, error: -10
    
    
    
    
    AWS_IOT_EVT_CONNECTING

    Regards,
    johnwest

Reply
  • Didrik,

    I'm seeing this when I boot:

    ** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    
    
    
    
    Flash regions
    	
    	
    Domain
    	
    	
    Permissions
    
    
    
    
    00 02 0x00000 0x18000 
    	
    Secure
    	
    	
    rwxl
    
    
    
    
    03 31 0x18000 0x100000 
    	
    Non-Secure
    	
    rwxl
    
    
    
    
    
    
    
    
    Non-secure callable region 0 placed in flash region 2 with size 32.
    
    
    
    
    
    
    
    
    SRAM region
    	
    	
    Domain
    	
    	
    Permissions
    
    
    
    
    00 07 0x00000 0x10000 
    	
    Secure
    	
    	
    rwxl
    
    
    
    
    08 31 0x10000 0x40000 
    	
    Non-Secure
    	
    rwxl
    
    
    
    
    
    
    
    
    Peripheral
    	
    	
    Domain
    	
    	
    Status
    
    
    
    
    00 NRF_P0               Non-Secure
    	
    OK
    
    
    
    
    01 NRF_CLOCK            Non-Secure
    	
    OK
    
    
    
    
    02 NRF_RTC0             Non-Secure
    	
    OK
    
    
    
    
    03 NRF_RTC1             Non-Secure
    	
    OK
    
    
    
    
    04 NRF_NVMC             Non-Secure
    	
    OK
    
    
    
    
    05 NRF_UARTE1           Non-Secure
    	
    OK
    
    
    
    
    06 NRF_UARTE2           Secure
    	
    	
    SKIP
    
    
    
    
    07 NRF_TWIM2            Non-Secure
    	
    OK
    
    
    
    
    08 NRF_SPIM3            Non-Secure
    	
    OK
    
    
    
    
    09 NRF_TIMER0           Non-Secure
    	
    OK
    
    
    
    
    10 NRF_TIMER1           Non-Secure
    	
    OK
    
    
    
    
    11 NRF_TIMER2           Non-Secure
    	
    OK
    
    
    
    
    12 NRF_SAADC            Non-Secure
    	
    OK
    
    
    
    
    13 NRF_PWM0             Non-Secure
    	
    OK
    
    
    
    
    14 NRF_PWM1             Non-Secure
    	
    OK
    
    
    
    
    15 NRF_PWM2             Non-Secure
    	
    OK
    
    
    
    
    16 NRF_PWM3             Non-Secure
    	
    OK
    
    
    
    
    17 NRF_WDT              Non-Secure
    	
    OK
    
    
    
    
    18 NRF_IPC              Non-Secure
    	
    OK
    
    
    
    
    19 NRF_VMC              Non-Secure
    	
    OK
    
    
    
    
    20 NRF_FPU              Non-Secure
    	
    OK
    
    
    
    
    21 NRF_EGU1             Non-Secure
    	
    OK
    
    
    
    
    22 NRF_EGU2             Non-Secure
    	
    OK
    
    
    
    
    23 NRF_DPPIC            Non-Secure
    	
    OK
    
    
    
    
    24 NRF_REGULATORS       Non-Secure
    	
    OK
    
    
    
    
    25 NRF_PDM              Non-Secure
    	
    OK
    
    
    
    
    26 NRF_I2S              Non-Secure
    	
    OK
    
    
    
    
    27 NRF_GPIOTE1          Non-Secure
    	
    OK
    
    
    
    
    
    
    
    
    SPM: NS image at 0x18200
    
    
    
    
    SPM: NS MSP at 0x2001f800
    
    
    
    
    SPM: NS reset vector at 0x1e2bd
    
    
    
    
    SPM: prepare to jump to Non-Secure image.
    
    
    
    
    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    
    
    
    
    The AWS IoT sample started, version: v1.0.0 
    
    
    
    
    W: Already initialized. Nothing to do
    
    
    
    
    +CEREG: 2,"8B53","0A301B3F",7
    
    
    
    
    LTE cell changed: Cell ID: 170924863, Tracking area: 35667
    
    
    
    
    +CSCON: 1
    
    
    
    
    RRC mode: Connected
    
    
    
    
    +CEREG: 1,"8B53","0A301B3F",7,,,"11100000","11100000"
    
    
    
    
    Network registration status: Connected - home network
    
    
    
    
    Next connection retry in 30 seconds
    
    
    
    
    PSM parameter update: TAU: -1, Active time: -1
    
    
    
    
    AWS_IOT_EVT_CONNECTING
    
    
    
    
    AT+COPS=3,2
    
    
    
    
    OK
    
    
    
    
    AT+COPS?
    
    
    
    
    +COPS: 0,2,"310410",7
    
    
    
    
    OK
    
    
    
    
    AT%XCBAND
    
    
    
    
    %XCBAND: 2
    
    
    
    
    OK
    
    
    
    
    AT+CGDCONT?
    
    
    
    
    +CGDCONT: 0,"IP","m2m.com.attz","10.33.176.184",0,0
    
    
    
    
    OK
    
    
    
    
    AT+CGACT?
    
    
    
    
    +CGACT: 0,1
    
    
    
    
    OK
    
    
    
    
    E: getaddrinfo, error -11
    
    
    
    
    E: client_broker_init, error: -10
    
    
    
    
    AWS_IOT_EVT_CONNECTING
    
    
    
    
    DATE_TIME_OBTAINED_NTP
    
    
    
    
    +CSCON: 0
    
    
    
    
    RRC mode: Idle
    
    
    
    
    Next connection retry in 30 seconds
    
    
    
    
    AWS_IOT_EVT_CONNECTING
    
    
    
    
    +CSCON: 1
    
    
    
    
    RRC mode: Connected
    
    
    
    
    E: getaddrinfo, error -11
    
    
    
    
    E: client_broker_init, error: -10
    
    
    
    
    AWS_IOT_EVT_CONNECTING

    Regards,
    johnwest

Children
No Data
Related