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

How do I add nrf9160 modules to nrfcloud

1. I have an nrf9160 module, patched on the customer's own board.
2. I want to connect this board to nrfcloud
3. I read the imei of this nrf9160 module through the software
4. But I don't know where to look for PIN or HWID
5. Please tell me where to get PIN or HWID to add module to nrfcloud's background

Parents
  • Hi,

     

    Only Thingy:91 and nRF9160-DKs have preloaded certificates matching the IMEI, and a HWID/pin.

     

    However; you can generate your own certificates, just not name them with "nrf-"prefix.

    If you follow this guide, then generate a new certificate which isn't named nrf-*:

    https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-cloud-certificate-update

     

    Follow the guide as you would if it were a nRF9160-DK or a thingy, just that you have given it a new name and pin number.

    The "pin/hwid" field can also be freely chosen, just remember it for when you should add the device to your cloud account.

     

    Before compiling the asset_tracker sample, you define "NRF_CLOUD_CLIENT_ID" to match your newly generated certificate name and compile/flash the project to your device.

    If you want to add this define directly to your prj.conf, it would look like this (note the string starts and ends with \" and \" symbols):

    CONFIG_COMPILER_OPT="-DNRF_CLOUD_CLIENT_ID=\"my-new-nrf9160-cloud-certificate-name\""

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Only Thingy:91 and nRF9160-DKs have preloaded certificates matching the IMEI, and a HWID/pin.

     

    However; you can generate your own certificates, just not name them with "nrf-"prefix.

    If you follow this guide, then generate a new certificate which isn't named nrf-*:

    https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-cloud-certificate-update

     

    Follow the guide as you would if it were a nRF9160-DK or a thingy, just that you have given it a new name and pin number.

    The "pin/hwid" field can also be freely chosen, just remember it for when you should add the device to your cloud account.

     

    Before compiling the asset_tracker sample, you define "NRF_CLOUD_CLIENT_ID" to match your newly generated certificate name and compile/flash the project to your device.

    If you want to add this define directly to your prj.conf, it would look like this (note the string starts and ends with \" and \" symbols):

    CONFIG_COMPILER_OPT="-DNRF_CLOUD_CLIENT_ID=\"my-new-nrf9160-cloud-certificate-name\""

     

    Kind regards,

    Håkon

Children
Related