IoT device provisioning in a very succinct manner is to add the new device onto the system (e.g. AWS) and to configure them to send authenticated data to the system. In other words: you let your system know that the device exists and that data coming from it is trusted and authorized by you.
In order to trust the device, we need to authenticate it. Therefore, the device's credentials and certifications are evaluated. You can install certificates on the device before delivery, but they can also be installed by a trusted user. You can learn more here.
When provisioning Vitro Crystal, the required credentials and certificates are generated and exchange between the device and the cloud.
Provisioning is performed only once for a given device.
The entire process is presented by the high-level diagram below. If you want to know more about the process, you can read about certificates creation and AWS Just-In-Time Registration. To better understand the cryptographic side of things, you can read about Elliptic-curve cryptography. A good starting point is here.
As mentioned previously, these procedures can only be done by a trusted user. Thus, everything is done by a script located in a private repository. If you have access to the script, just follow these steps:
- Download the script.
- Connect Vitro Crystal to the local Network.
- Obtain Vitro Crystal IP address. You can do that by logging into the device / SSH connection / Serial connection. One possible command you can use to check for the IP address is
ifconfigor even pinging the device by using
- Run the script:
ecc_toolkit/scripts/ecc-register-host.sh provision -a <crystal_ip> -c <flag>
The available flags are DEV for development, and PROD for production.
- Reboot the device:
- Check if Crystal is notifying AWS correctly. To do that, go to
IoT Coreservice and
Teststab, subscribe to the following MQTT topic
vitroio/<crystal-id>/notify. Every one minute, Vitro Crystal should notify AWS about being operational. Example output is given below.
Vitro Shard also needs to be provisioned. To do that, you need a Vitro Crystal already provisioned and a serial connection between Vitro Crystal and Vitro Shard. Remember that only Vitro Crystal can be connected to the Internet. To provision Vitro Shard, please talk to an administrator.
Updated over 2 years ago