asset_tracker does not work with firmware v1.0.0

Environment

- DK 0.8.2 in which SB44 is cut, and P1 and P2 are connected
- firmware v1.0.0
- program : asset_tracker
- SIM: iBasis

Before updating firmware, asset_tracker worked fine. 

However, after updating, LED3 is always blinking and LED4 is off.
What I do is to write the program to DK, push reset button, and wait for more than 5 min.
at_client program and LTE Link Monitor works out with v1.0.0.

this is log

SPM: NS image at 0xc000
SPM: NS MSP at 0x2002aa00
SPM: NS reset vector at 0x142f1
SPM: prepare to jump to Non-Secure image.
***** Booting Zephyr OS v1.14.99-ncs2-rc3 *****
Asset tracker started
Connecting to LTE network. This may take several minutes.
Connected to LTE network

Any idea to solve this?

Parents
  • Hi.

    Edit: This procedure has been deprecated by an update to the nRF Cloud API. For a new procedure, see devzone.nordicsemi.com/.../nrf-cloud-certificate-update

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    If your device has been registered at nRF Cloud earlier, you can recover your certificates by following this procedure:

    1. Install httpie.
    2. Get your API key from nRF Cloud (you can find it at your account page).
    3. Get the device ID by running 
      http https://api.nrfcloud.com/v1/devices Authorization:"Bearer <your API key>"
      .
    4. Get the devices certificates by running 
      http POST https://api.nrfcloud.com/v1/devices/<device ID>/certificates Authorization:"Bearer <API key>"
      .
    5. Get Amazon's root CA certificate: https://www.amazontrust.com/repository/AmazonRootCA1.pem
    6. Write the certificates to the modem
      1. By writing certificates to the modem using AT command:
        1. Root CA cert: AT%CMNG=0,16842753,0,"< Amazon root CA >"
        2. Client cert:     AT%CMNG=0,16842753,1,"< Client cert >"
        3. Private key:    AT%CMNG=0,16842753,2,"< Private key >"
      2. Or by adding the certificates and your client ID to certificates.h (in the asset tracker sample) and adding CONFIG_NRF_CLOUD_PROVISION_CERTIFICATES=y to your prj.conf

    Best regards,

    Didrik

Reply
  • I attempted running the AT commands in the Link Monitor, but it kept giving me a time out error. 

    I then proceeded to add the to the certificates header file, I hope that I edited it correctly

    certificates.txt
    /*
     * Copyright (c) 2018 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
     */
    
    #define NRF_CLOUD_CLIENT_ID "my-client-id"
    
    #define NRF_CLOUD_CLIENT_PRIVATE_KEY \
    	"-----BEGIN RSA PRIVATE KEY-----\n" \
    	"MIIEpQIBAAKCAQEAzsk/XiDetNx5nDVYbjSxqftIaeYvqCiPoNhWqE9MVyYl84w0\nf3GYQDZYp5VLtP1i5o3pulblCwOO17VWRYzP6MnVxRXheKIaVf3fNw2e4MxV4XSM\n7SZe/YIqiLC18CGrNrkaOZ/SfRuJSWihZLyKndOmoJr59ahVTelL6VTun4sVlo2C\nwPuVELu47QXPfv8aTkKV8Jiz1KyyI9GAMv9HcH8ZO0whf7bsd58gSW68NAppTczv\nE9v/XZ7FctJ0Kw4aDgyNo+GkAWmuo2Tt7NY/o2MwvLcBV3wjV4lEd/pMNDez9K5r\np/9KQMxTpVPEbFOUZ+D+MXJqKUtOvl76nsMSuwIDAQABAoIBAQCqFylzcJAfrpat\nYcfKZreYvSP0T631oN97i1fEe+2sZamj6jiod7SnZMyJlClAx4fZYvPVHXKrG5Mc\nZYGAFfJSZerbgUMEKjqFbxxzOVXtTMZ7e5YL35sU5UO9SbVtvxQJIDqtGYRW+hZz\n9oeCx/8xEQ4nXzKp2XvJaVPSqtTZD2D7Mxr639ZA9OORapnJSqGzj56fUYN0YFmh\n7G61mlychhp4yZmRWvKd0HTeg09pJpnnPp77x4fs5IU1CK5fgzzj3IbB2m00a9/p\n4H29AV8DqC5nC1viK8rpbOkQ+g2bx4TVj8AhlOPBkHagsDEfSI/Q0C6dMhEj2rnY\nLh/4QS1BAoGBAOisXO5lLeanTnfS+P1vrLaYic3ocfGjHedMl0tbidajkaIZgYo1\nraejup6Y10M46obvZ7c4alyNco9+0VNtz25Eofju6808GGaZA0flGBkmVpdgkAdN\nA55UF2jltMIrlaXh+ppLj6tNh/OImhGG4vDmhitG8zLDfQzVN1Amc76bAoGBAOOE\ne1OgTX9zY6siWbMovaYL7WrjB0inru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wJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQmjgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUAA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDIU5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUsN+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vvo/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpyrqXRfboQnoZsG4q5WTP468SQvvG5\n" \
    	"-----END CERTIFICATE-----\n"
    
    
    

    I then proceeded to build the application and run it again. I no longer get the -111 error but now it permanently

    stays at this state

    It seems to connect to LTE as I do get a network, but LED 3 continues blinking and LED 4 remains off. 

    Please advise

Children
Related