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

nRF91: Can't get to nRF Cloud: getaddrinfo failed -11

Hi,

I live in Austria and I can't use the delivered iBasis SIM cards but I have got ones from Magenta (Deutsche Telekom in Austria)
for their NB-IoT network and they seems to work, at least they get connected to the NB-IoT network.

I followed this guide to get to nRF Cloud:
devzone.nordicsemi.com/.../nrf-cloud-certificate-update
with images_full/nrf9160dk_asset_tracker_nbiot_2020-04-29_bc7ade8b.hex and mfwnrf916012.zip.

The first problem is at reset device step: "request failed with status code 404".

Despite this, I tried to add the device to the nRF Cloud.
I skipped the step "Activate SIM Card" because my card is not from iBasis and I don't have PUK anyway.

Step "Add LTE Device" says "There was an error adding your device".

I think the problem is shown on this log line:


[00:00:06.463,134] [0m<dbg> nrf_cloud_transport.nct_connect: getaddrinfo failed -11[0m

Why is this? Does the IP address resolution need some settings from the NB-IoT network which
is not activated?

After this attempt, I programmed the at_client firmware/images_full/nrf9160dk_at_client_2020-04-29_bc7ade8b.hex
and it comes to the NB-IoT network of Magenta, (that is the very first image)

I have a modified asset_tracker with extra log

[00:00:07.364,410] [0m<inf> asset_tracker: CLOUD_EVT_CONNECTING[0m
nrf_getaddrinfo: 22
[00:00:07.372,985] [0m<dbg> nrf_cloud_transport.nct_connect: getaddrinfo failed -11[0m

In the doc https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/bsdlib/doc/api.html?highlight=nrf_getaddrinfo#_CPPv415nrf_getaddrinfoPKcPKcPK12nrf_addrinfoPP12nrf_addrinfo

there is no hint what error code 22 means.

What can be the problem?

With kind regards,

Árpád

Related