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

nRF9160 error code nrf_cloud_connect failed: -111 need certificate in customer board

I got nrf_cloud_connect failed: -111 error while running asset tracker demo.

I know that I need to flash certificate files according to my previous question: https://devzone.nordicsemi.com/support/221703

But we have many products(not nRF9160DK but self designed board) with different IMEI to flash.

And I got this error: Please connect the DK to the computer.

    Here are plans about how to write certificate file

1. Use AT%CMNG to write certificate file but I don't know the content to 

2. The Please connect the DK to the computer might be caused by the wrong COM port. 

Can I use another phtyon to select COM port myself to write  certificate file?

    And I don't know the content of certificate files. I don't know the relationship between IMEI and certificate files

Parents
  • 1) Take a look at this devzone case.

    2) If you look at the TestCom.py file, you can see that the "Please connect the DK to the computer error" is caused by no comport being found. I am not sure that this python script will work out of the box with your custom boards. I believe you will need a JLINK to be able to program the nRF91 custom boards, similar to how it is done with the nRF52 custom HW.

  • I can program nRF9160 and nRF52840 with Debug out port of nRF9160 DK Board.

    But I can't flash certificate files with write_cert_to_dk.py even I changed to this "correct_com = "COM13"" to help to find COM port.

    Or can you tell me how to create certificate files?

    Fill IMEI to the name of nrf-xxxxxxxxxxxxxxx.json and change "clientId": "nrf-xxxxxxxxxxxxxxx" is enough?

    Do I need some tools to create certificate files?

Reply
  • I can program nRF9160 and nRF52840 with Debug out port of nRF9160 DK Board.

    But I can't flash certificate files with write_cert_to_dk.py even I changed to this "correct_com = "COM13"" to help to find COM port.

    Or can you tell me how to create certificate files?

    Fill IMEI to the name of nrf-xxxxxxxxxxxxxxx.json and change "clientId": "nrf-xxxxxxxxxxxxxxx" is enough?

    Do I need some tools to create certificate files?

Children
Related