Skip to content

Latest commit

 

History

History
69 lines (34 loc) · 2.28 KB

provisioning_guide.md

File metadata and controls

69 lines (34 loc) · 2.28 KB

Provisioning Guide

This guide provides instructions for you to provision your Duo to Particle cloud.

To do this if you:

  • cleared the DCT or you forgot to backup it before
  • don't trust RedBear and you want to do the provisioning yourself
  • have problems to connect to Particle cloud

Note: you can send your device ID to us privately for provisioning if you are not sure how to do.

Prerequisites

How it works

Each Duo have an unique ID, it is a secret data and already provisioned in Particle cloud. The DCT includes Particle cert. (pulic key) and is preloaded by factory and the keys (public and private) for your Duo are empty at the moment.

Once you try the out-of-box test follow the getting started guide, during the handshaking process, your keys will be generated and the public key of your Duo will be encrypted by Particle's public key and then it will be sent to the cloud for storing.

That means, all communication between your Duo and Particle is safe (encryted). Finally, did you backup the DCT (i.e. keys) as told in the getting started guide?

If you clear the DCT, then you will be unable to connect to the Cloud anymore, this time, you need to provision your Duo again.

Upload DCT.bin

  • To load the DCT:

    $ dfu-util -d 2b04:d058 -a 0 -s 0x08004000 -D duo-dct.bin

Get Access Token

  • Log into your Particle account, from the 'Settings' icon, copy the 'Access Token'.

image

Edit main.js

  • Change YOUR_ACCESS_TOKEN (your own one!) and YOUR_PRODUCT_ID (88 is the Duo product ID assigned by Particle):

      var YOUR_ACCESS_TOKEN = "63796d690652ffffffffffffff66fd5d3d53bce8";
      var YOUR_PRODUCT_ID = 88;
    

Provisioning

Run the command as the following and you will get the similar output:

$ node main.js 2fff27fffc473530fff23637
using generic public key
attempting to add a new public key for device 2fff27fffc473530fff23637
Success - Device Provisioned!

After that, your Duo should be able to connect to the Particle Cloud again.