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

Problem adding Thingy:91 in the nRF Cloud

Hello,

I try to add a Thingy:91 to the nRF Cloud after I received it today. The sim card got's activated without a problem. When I try to key in my IMEI and the Pin which is printed on the label I receive this error: "There was an error adding your device. It wasn't found. Is it connected?"

How to solve this and add the device to my account?

  • If you still get the error, it's possible you haven't actually updated your certificates. 

    Could you please describe to me step by step how you did it?

     

    T1mS_ said:
    Is there a way to switch between LTE-M and NB-IOT on the modem?

     Yes,  AT%XSYSTEMMODE sets the supported system modes of the modem, and you can also set the LTE preference of the modem. 

    T1mS_ said:
    Is it possible the connection to your nRFCloud is blocked by my provider?

    This is highly unlikely, but you will have to check this with your provider. However, error code -111 means you have run out of data or you're missing certificates.

  • I just did these following steps again:

    1. download at_client.hex and the modem certificate
    2. connect thingy:91 to the jlink device
    3. flash at_client.hex to device
    4. open LTE Link Monitor
    5. extract the json file from the downloadet zip
    6. turn thingy:91 on, choose correct com port and send AT+CFUN=4.
    7. switch to "certificate manager" tab, press "load from json", choose extracted json file.
    8. Press "Update certificates". This is the log:
      2019-09-04T08:27:37.264Z INFO Modem port is opened
      2019-09-04T08:27:37.269Z DEBUG modem >> AT+CFUN?\x0D\x0A
      2019-09-04T08:27:37.282Z DEBUG modem << +CFUN: 4\x0D
      2019-09-04T08:27:37.285Z DEBUG modem << \x0A
      2019-09-04T08:27:37.286Z DEBUG modem << OK\x0D\x0A\x00
      2019-09-04T08:27:37.293Z DEBUG modem >> AT+CFUN=1\x0D\x0A
      2019-09-04T08:27:37.337Z DEBUG modem << OK\x0D
      2019-09-04T08:27:40.831Z DEBUG modem >> AT+CFUN=4\x0D\x0A
      2019-09-04T08:27:40.859Z DEBUG modem << OK\x0D
      2019-09-04T08:27:47.803Z INFO Updating CA certificate...
      2019-09-04T08:27:47.805Z DEBUG modem >> AT%CMNG=0,16842753,0,"-----BEGIN CERTIFICATE-----\x0D\x0A
      2019-09-04T08:27:47.821Z DEBUG modem >> MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\x0D\x0A
      2019-09-04T08:27:47.836Z DEBUG modem >> ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\x0D\x0A
      2019-09-04T08:27:47.852Z DEBUG modem >> b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\x0D\x0A
      2019-09-04T08:27:47.868Z DEBUG modem >> MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\x0D\x0A
      2019-09-04T08:27:47.885Z DEBUG modem >> b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\x0D\x0A
      2019-09-04T08:27:47.901Z DEBUG modem >> ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\x0D\x0A
      2019-09-04T08:27:47.915Z DEBUG modem >> 9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\x0D\x0A
      2019-09-04T08:27:47.932Z DEBUG modem >> IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\x0D\x0A
      2019-09-04T08:27:47.947Z DEBUG modem >> VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\x0D\x0A
      2019-09-04T08:27:47.965Z DEBUG modem >> 93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\x0D\x0A
      2019-09-04T08:27:47.980Z DEBUG modem >> jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\x0D\x0A
      2019-09-04T08:27:47.996Z DEBUG modem >> AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\x0D\x0A
      2019-09-04T08:27:48.008Z DEBUG modem >> A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\x0D\x0A
      2019-09-04T08:27:48.021Z DEBUG modem >> U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\x0D\x0A
      2019-09-04T08:27:48.034Z DEBUG modem >> N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\x0D\x0A
      2019-09-04T08:27:48.046Z DEBUG modem >> o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\x0D\x0A
      2019-09-04T08:27:48.059Z DEBUG modem >> 5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\x0D\x0A
      2019-09-04T08:27:48.072Z DEBUG modem >> rqXRfboQnoZsG4q5WTP468SQvvG5\x0D\x0A
      2019-09-04T08:27:48.086Z DEBUG modem >> -----END CERTIFICATE-----"\x0D\x0A
      2019-09-04T08:27:48.204Z DEBUG modem << OK\x0D\x0A
      2019-09-04T08:27:48.208Z INFO Updating client certificate...
      2019-09-04T08:27:48.209Z DEBUG modem >> AT%CMNG=0,16842753,1,"-----BEGIN CERTIFICATE-----\x0D\x0A
      2019-09-04T08:27:48.223Z DEBUG modem >> MIIDfjCCAmYCFGVGqbf+zifvsS7o6QZ7vmBdApFEMA0GCSqGSIb3DQEBCwUAMG8x\x0D\x0A
      2019-09-04T08:27:48.235Z DEBUG modem >> CzAJBgNVBAYTAk5PMRIwEAYDVQQIDAlUcm9uZGVsYWcxEjAQBgNVBAcMCVRyb25k\x0D\x0A
      2019-09-04T08:27:48.249Z DEBUG modem >> aGVpbTEhMB8GA1UECgwYTm9yZGljIFNlbWljb25kdWN0b3IgQVNBMRUwEwYDVQQL\x0D\x0A
      2019-09-04T08:27:48.262Z DEBUG modem >> DAxucmZjbG91ZC5jb20wHhcNMTkwOTAzMTE0ODIyWhcNNDkwODI2MTE0ODIyWjCB\x0D\x0A
      2019-09-04T08:27:48.276Z DEBUG modem >> hzELMAkGA1UEBhMCTk8xEjAQBgNVBAgMCVRyb25kZWxhZzESMBAGA1UEBwwJVHJv\x0D\x0A
      2019-09-04T08:27:48.290Z DEBUG modem >> bmRoZWltMSEwHwYDVQQKDBhOb3JkaWMgU2VtaWNvbmR1Y3RvciBBU0ExHDAaBgNV\x0D\x0A
      2019-09-04T08:27:48.304Z DEBUG modem >> BAMME25yZi0zNTI2NTYxMDA0NDM5NjIxDzANBgNVBC4TBjkwNjc5MTCCASIwDQYJ\x0D\x0A
      2019-09-04T08:27:48.318Z DEBUG modem >> KoZIhvcNAQEBBQADggEPADCCAQoCggEBAN2NGIiqQKTvXJ+cIdVqekoUzMD5mH5/\x0D\x0A
      2019-09-04T08:27:48.332Z DEBUG modem >> qQs58AR91uPmk9RV4m0q4Af6/wRdGWSMcIH7olpOZK4UDTsoEDx/YCgyx50AiEMc\x0D\x0A
      2019-09-04T08:27:48.346Z DEBUG modem >> zJxdyo+nKblTV0Pe/e1loLJnrwT9MFEeW378vzRPON0bsOpExJFQEPGgmTUmYmrw\x0D\x0A
      2019-09-04T08:27:48.359Z DEBUG modem >> Nns7yXAAZurXSaEFcnRFZe/qEjCqnTNqJDOOzbgaxxPsLn6c+BhnaUBLcHzP3EAc\x0D\x0A
      2019-09-04T08:27:48.375Z DEBUG modem >> Ijtj86aFqRCkN5wug4cVmL2cEuN1AYxCNHcqQ0262UWir7mvffrkpbufq8KLOYhD\x0D\x0A
      2019-09-04T08:27:48.388Z DEBUG modem >> gGZ/DSFhSvXKSeB77uoJlyOzHI9Qb5Z3MB42GULMVb7J8DmiZu8nouUCAwEAATAN\x0D\x0A
      2019-09-04T08:27:48.401Z DEBUG modem >> BgkqhkiG9w0BAQsFAAOCAQEAnHiDRTASqtPXMAvdDk4GOvF3S/B+8/HeLhXZF3N+\x0D\x0A
      2019-09-04T08:27:48.413Z DEBUG modem >> U7y///0YLSx+3P2ezTDfCyPqnVPapSI7re5FxYMAm2iron7mWHudAtezy5b/urbh\x0D\x0A
      2019-09-04T08:27:48.426Z DEBUG modem >> AmpOOwS+HeOsBGN52JBRkLPp1l5MWuyEPkNxlZDVSCaT/l9lPrhGMsu46y3acg83\x0D\x0A
      2019-09-04T08:27:48.440Z DEBUG modem >> rXAalSIHLf4ePv2i/AbMEzl0dKYMAXCoxMhYMXlIZ4ZNhCoshsRhBhDWJ2LJVrkT\x0D\x0A
      2019-09-04T08:27:48.453Z DEBUG modem >> KNKxNXSfk2wzq6b7EP1HSUgXGltMMevLmbygdkzHriIjiudaO08h3mHakHdrhTvk\x0D\x0A
      2019-09-04T08:27:48.465Z DEBUG modem >> /XsAMBa3fBXestpoVJrOMY/rTfUgM1/X5DY2f8NPkgnxpg==\x0D\x0A
      2019-09-04T08:27:48.479Z DEBUG modem >> -----END CERTIFICATE-----\x0D\x0A
      2019-09-04T08:27:48.492Z DEBUG modem >> -----BEGIN CERTIFICATE-----\x0D\x0A
      2019-09-04T08:27:48.505Z DEBUG modem >> MIIDvzCCAqegAwIBAgIUNemB7s2i29Hr0VtYFohInDrZaJcwDQYJKoZIhvcNAQEL\x0D\x0A
      2019-09-04T08:27:48.518Z DEBUG modem >> BQAwbzELMAkGA1UEBhMCTk8xEjAQBgNVBAgMCVRyb25kZWxhZzESMBAGA1UEBwwJ\x0D\x0A
      2019-09-04T08:27:48.532Z DEBUG modem >> VHJvbmRoZWltMSEwHwYDVQQKDBhOb3JkaWMgU2VtaWNvbmR1Y3RvciBBU0ExFTAT\x0D\x0A
      2019-09-04T08:27:48.545Z DEBUG modem >> BgNVBAsMDG5yZmNsb3VkLmNvbTAeFw0xOTA0MTIxMTM4NDhaFw00OTA0MDQxMTM4\x0D\x0A
      2019-09-04T08:27:48.560Z DEBUG modem >> NDhaMG8xCzAJBgNVBAYTAk5PMRIwEAYDVQQIDAlUcm9uZGVsYWcxEjAQBgNVBAcM\x0D\x0A
      2019-09-04T08:27:48.574Z DEBUG modem >> CVRyb25kaGVpbTEhMB8GA1UECgwYTm9yZGljIFNlbWljb25kdWN0b3IgQVNBMRUw\x0D\x0A
      2019-09-04T08:27:48.588Z DEBUG modem >> EwYDVQQLDAxucmZjbG91ZC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK\x0D\x0A
      2019-09-04T08:27:48.602Z DEBUG modem >> AoIBAQDn3B9XG57j8rlgITz++pBaNA3Yz9nukrjYFddF8FryU86nM9tKrBb8Nj9J\x0D\x0A
      2019-09-04T08:27:48.615Z DEBUG modem >> nMnVFh8QQdYbkq/gHhd10Ma7TO6q0aiTt0xTea4ZAd5Zk4jdGTH6LGdqs54bsSo2\x0D\x0A
      2019-09-04T08:27:48.628Z DEBUG modem >> OLZgLUUOvH4CfRA7vnmPje6aTqUczCXF2waRt/pRjdaaG6PdCZxcuXtp6Wzlq6C6\x0D\x0A
      2019-09-04T08:27:48.642Z DEBUG modem >> glKXF17bYsbrfa4XhAGKZvScVxTttpGaqIu+5+tuXCDisKSc968zmn2NskdRz8ef\x0D\x0A
      2019-09-04T08:27:48.655Z DEBUG modem >> S6Pb9IcmxHUdURZvNzyFZvFvx9m7eGgVkC/PZcvvghRvG2I2JDdNZTnxnucjSxko\x0D\x0A
      2019-09-04T08:27:48.669Z DEBUG modem >> aBsNnwA09QTT/BiiFAIi4I5U6PhJAgMBAAGjUzBRMB0GA1UdDgQWBBQdJy7Jq1xv\x0D\x0A
      2019-09-04T08:27:48.685Z DEBUG modem >> tYVOMRJ/qwpY+19JTjAfBgNVHSMEGDAWgBQdJy7Jq1xvtYVOMRJ/qwpY+19JTjAP\x0D\x0A
      2019-09-04T08:27:48.698Z DEBUG modem >> BgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCJ9UYerhcwW1HidAjl\x0D\x0A
      2019-09-04T08:27:48.713Z DEBUG modem >> Kuj9QrsPOzmxfwO/hZx+s+o8zZ5Ac0+oSvW/n7cuh3Hp0Cxfal7CkL9fKlcKAVK/\x0D\x0A
      2019-09-04T08:27:48.729Z DEBUG modem >> 03Rre9ovUd+lvyN/9hRq6ko0yBcGTw9BdYFF0QQRPpuA3aP71lkJd2dGKe260CBI\x0D\x0A
      2019-09-04T08:27:48.742Z DEBUG modem >> isVUu7J0byTjrxhHDhRZy4mTLrkEBr0ietBGWBhPCPs6VbfHt4F+CJgVA4VED63u\x0D\x0A
      2019-09-04T08:27:48.756Z DEBUG modem >> rgnBjA7L5ta/9ccHiXlJreaO0MGGhnFvayDZiBC5f4EQwkiF0Q7PuM5od1xA868f\x0D\x0A
      2019-09-04T08:27:48.770Z DEBUG modem >> b2mWMzaTVH+z7PRYIJOYqgwcefQVzwrQTB16IlAz6S5KWtK+xhRh2KjJetiPs1c+\x0D\x0A
      2019-09-04T08:27:48.784Z DEBUG modem >> dLIT\x0D\x0A
      2019-09-04T08:27:48.798Z DEBUG modem >> -----END CERTIFICATE-----"\x0D\x0A
      2019-09-04T08:27:48.862Z DEBUG modem << OK\x0D\x0A
      2019-09-04T08:27:48.864Z INFO Updating private key...
      2019-09-04T08:27:48.865Z DEBUG modem >> AT%CMNG=0,16842753,2,"-----BEGIN RSA PRIVATE KEY-----\x0D\x0A
      2019-09-04T08:27:48.879Z DEBUG modem >> MIIEpQIBAAKCAQEA3Y0YiKpApO9cn5wh1Wp6ShTMwPmYfn+pCznwBH3W4+aT1FXi\x0D\x0A
      2019-09-04T08:27:48.892Z DEBUG modem >> bSrgB/r/BF0ZZIxwgfuiWk5krhQNOygQPH9gKDLHnQCIQxzMnF3Kj6cpuVNXQ979\x0D\x0A
      2019-09-04T08:27:48.905Z DEBUG modem >> 7WWgsmevBP0wUR5bfvy/NE843Ruw6kTEkVAQ8aCZNSZiavA2ezvJcABm6tdJoQVy\x0D\x0A
      2019-09-04T08:27:48.918Z DEBUG modem >> dEVl7+oSMKqdM2okM47NuBrHE+wufpz4GGdpQEtwfM/cQBwiO2PzpoWpEKQ3nC6D\x0D\x0A
      2019-09-04T08:27:48.933Z DEBUG modem >> hxWYvZwS43UBjEI0dypDTbrZRaKvua99+uSlu5+rwos5iEOAZn8NIWFK9cpJ4Hvu\x0D\x0A
      2019-09-04T08:27:48.947Z DEBUG modem >> 6gmXI7Mcj1BvlncwHjYZQsxVvsnwOaJm7yei5QIDAQABAoIBAQCsjNGIzyCd1JbM\x0D\x0A
      2019-09-04T08:27:48.961Z DEBUG modem >> 8KshLlakD+MQgNSV4RNlXPBkbyXIRbLo8yLwZy4oyQGJAoFeYErX0YW208tyEMfl\x0D\x0A
      2019-09-04T08:27:48.975Z DEBUG modem >> ROSwWXwokrQIwXte2bU6K4oxq73BSvlyMOCP3lDz4fDb792LsBsOogbA1NqyynhV\x0D\x0A
      2019-09-04T08:27:48.988Z DEBUG modem >> XM3DZxprNetdC9Im+4NTI1NV2dpOF3+S2P/0wB9B6B0CPvhzLOXtjAGXB61CCaGq\x0D\x0A
      2019-09-04T08:27:49.000Z DEBUG modem >> Nu/AuOja9FcQJZ0N/X+T9CmLimHN2OkQ9uFxwaB/VZRNCSnHomlQPFhR/9mbu8U8\x0D\x0A
      2019-09-04T08:27:49.013Z DEBUG modem >> 8CKD4iSK6N5oL13oYhIDtbUlQFwpjcvRCyY/fdbT//EhGQMYAiSXxgogVLcEaL5r\x0D\x0A
      2019-09-04T08:27:49.027Z DEBUG modem >> rd8w8PPZAoGBAPCApdHb5vmi2kUbH4KJSUIPYK22lRaOXrEVEOBUIaaNZvAMQRYx\x0D\x0A
      2019-09-04T08:27:49.040Z DEBUG modem >> nNV7PB0kVin1fJZCftc3U+JCI0ZM5T9nRPtDrnfWQbM4yijlDPKnIVyDRi3EqZce\x0D\x0A
      2019-09-04T08:27:49.055Z DEBUG modem >> eYdixel8ncimOlTJbrYwyBemxxASemmtc4tNmk5dahEYsSdlxHHWHbRnAoGBAOvT\x0D\x0A
      2019-09-04T08:27:49.067Z DEBUG modem >> 0w885WtrDCKdxhze4m9lHvPYMDbeIbBPZL3XRI8XGIg9xxJGGJhTmhfPwVmRr+BL\x0D\x0A
      2019-09-04T08:27:49.081Z DEBUG modem >> kqvqyi18F+l5ZOwPUkLY/vyi/yd049YztiMvjDvnXNNrinmZObcut57J8N83ygec\x0D\x0A
      2019-09-04T08:27:49.094Z DEBUG modem >> 7hGo71964cV7u16wZ0IZxWvpO0VlP3WtzE8ATT7TAoGAGGz4alfrHW9su5gFmzxW\x0D\x0A
      2019-09-04T08:27:49.107Z DEBUG modem >> NF9bckkY2zGabGG3VRE2WbQCwF5+PcLMKuJZOJx4I8rK3Hfkafc0jcYpzvoATnAu\x0D\x0A
      2019-09-04T08:27:49.120Z DEBUG modem >> kVZOYd1gztL1tTGOHxbaTIsIlZ1jm/V8YkOl1hDR9Y7sXbAXjmll6QEHNpqp1BHJ\x0D\x0A
      2019-09-04T08:27:49.134Z DEBUG modem >> qlw3T74tB496boXnbahRXAECgYEAweuum9IkiV8+XFzG40i4hIdvm26DvyqMI1I1\x0D\x0A
      2019-09-04T08:27:49.147Z DEBUG modem >> 8hHJU6zXRHkgcLtpUCE3DiuNv9yX9mXOl0X7uMlZVGi5f4/dwhB0JUTXchehnqtp\x0D\x0A
      2019-09-04T08:27:49.160Z DEBUG modem >> M6fOthe7cjL1bKZ+Gk71OUKvqq5SmE4ISkdTh30hmGX1npiKYIWWnPTuA1ONinQ/\x0D\x0A
      2019-09-04T08:27:49.174Z DEBUG modem >> FBuYaXcCgYEA5afBQCiXTp5hdgXusD+1NgoHF3e2bTaMAnI2MvnRj1eLEnE7Fhd2\x0D\x0A
      2019-09-04T08:27:49.187Z DEBUG modem >> asWCYUY4lxiWwtMqkk7yuMm7ZEoXQGtgjoGQMozzJBEAIiRnl/hSk34E8VE0lHHI\x0D\x0A
      2019-09-04T08:27:49.201Z DEBUG modem >> qIw6AZEmXZEyNwyv6dDQLbICc06ajXgarbgf/CJfJLpYxd1/CSIklgU=\x0D\x0A
      2019-09-04T08:27:49.213Z DEBUG modem >> -----END RSA PRIVATE KEY-----"\x0D\x0A
      2019-09-04T08:27:49.298Z DEBUG modem << OK\x0D
      2019-09-04T08:27:49.301Z INFO Certificate update completed
    9. Now I get this using the AT%CMNG=1: (Last time I didn't got this result...)
      AT%CMNG=1
      %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
      %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
      %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
      OK

    What is the next step I should do? :)

  • Excellent! Now you just have to flash the asset_tracker example and it should work!

     asset_tracker.hex

  • FLashed this to the thingy:91. Is it supposed to do anything? There is no LED now, now serial output. Nothing. :D

    I reflashed the hex file, I restarted my pc, nothing helps.

Related