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

Asset Tracker V2

I'm trying to build the Asset Tracker V2

The following link is 404

https://github.com/NordicSemiconductor/asset-tracker-cloud-docs/releases/download/v5.9.2/91dk_at_client_increased_buf.hex

I'm making the assumption after reading the documentation that the device (nrf9160) needs to be in a certain state to be able to write the certificates (Modem off), hence the need to program it using the above link.

Please correct me if I'm wrong.

In addition I won't be using a DK, I'm trying to use our own hardware using an nrf9160.

I'd be grateful if you would guide me through the process of creating certificates using this scenario please and also writing them to the device.

Do we still use link monitor or is there a better way?

Thanks in anticipation of your help.

Parents
  • Hi,

    I am not sure what it is that you are linking that is gone, but you can use the AT Client sample to update your certificates with LTE Link Monitor by doing the following:

    1. Flash the AT Client sample to the nRF9160
    2. Open the LTE Link Monitor app
    3. Make sure the device is in "off-mode" (i.e use AT+CFUN=4) and press "Certificate Manager"
    4. Drag the downloaded <device_id>.json file into the "Certificate manager" window
    5. Make sure the Security tag is set correct (for nRF Cloud use 16842753)
    6. Press the "Update certificates" button.

    Best regards,

    Marte

Reply
  • Hi,

    I am not sure what it is that you are linking that is gone, but you can use the AT Client sample to update your certificates with LTE Link Monitor by doing the following:

    1. Flash the AT Client sample to the nRF9160
    2. Open the LTE Link Monitor app
    3. Make sure the device is in "off-mode" (i.e use AT+CFUN=4) and press "Certificate Manager"
    4. Drag the downloaded <device_id>.json file into the "Certificate manager" window
    5. Make sure the Security tag is set correct (for nRF Cloud use 16842753)
    6. Press the "Update certificates" button.

    Best regards,

    Marte

Children
  • Thanks for your help.

    You may have misunderstood me. I am using a 9160, however it's not a DK, my understanding is that link monitor will not update certificates to a device that is connected via a DK.

    Is this correct?

    Therefore how do It do it please?

  • Hi,

    You can still use LTE Link Monitor even if it is not a DK, as LTE Link Monitor works with all COM ports. You probably have to turn off "Auto device/port filter", which you can find to the bottom right in the program. You do not have to use LTE Link Monitor and can instead use a different serial terminal and send AT commands, using %CMNG (credential storage management).

    You can also check out the guide Automating nRF91 TLS credential management via serial port AT commands if you want to automate the process.

    Best regards,

    Marte

  • Frustratingly I have 4 nRF9160 DK's I had some success a few hours ago, by programming them with at client and issuing AT commands though link monitor.

    But now they won't respond at all.

    I used command line nrfjprog -e on them.

    Could this cause a problem ? I doubt it...just thought I'd ask..

    Is there any underlying firmware that needs to be flashed ?

  • Further to my previous concerns.

    If I connect a DK to our nrf9160 device and switch the DK to nRF52840 and then use the programmer I am able to see that I have selected an nRF9160, which I am then able to program successfully.

    If I then program modem software to it, There is a chance that I will receive a response from an AT command.

    I chose at+cgsn to give me the IMEI

    Unfortunately it is the IMEI of the DK not the nRF9160 that I have just programmed, despite it being switched to nrf52840 mode.

  • Hi,

    nrfjprog -e is the command to erase all program flash memory and the UICR page. If you have not programmed an application or sample to the devices after using this command, they will not do anything, as there will not be any application on them. The command should not cause any problems to your devices, so you should be able to program them and use them as before again. You can find more information about nrfjprog commands here. If using this command caused any other problem than just erasing the program, then please let me know. You should also know that using this command will not delete the modem firmware or anything stored in the modem flash, so you do not have to program the modem firmware again after using this command.

    As for your problem when using a DK to program your nRF9160 device and getting the IMEI of the DK instead of the device, could you please try the solution proposed by  and report back whether that solved the issue or not?

    KevinA said:
    I use my DK to program external nrf9160 devices, you just have to remember to power the external device before switching the DK on, the nrf52840 detects and switchs the debug ports.

     Best regards,

    Marte

Related