On Linux, Cirrent provides a script to configure the WCM on each device. Before you start, make sure the WCM is properly installed on the device. You'll need to have a few pieces of information available before you start:
- Account ID. This is your Cirrent account ID, an integer like 1312, which you can find here. It lets Cirrent associate the device with a company account.
- Device ID. This is the unique ID for the device.
- Device secret. This is the secret that you allocated to the device, or Cirrent issued for the device. If you don't have a secret yet, make sure to register the device in the Device Management section of go.cirrent.com. Make sure to double check capital I and l and 0 and O to get the secret right. You can find more information about the Device ID and secret here.
- Demo device. A demo device resets itself and clears any private networks each time it reboots. For testing purposes this is useful, because you can rediscover a device each time it boots up. Decide whether you want the device to be a demo device.
Now you can configure the device by running the personalization script:
# sudo /etc/wcm/personalize.sh
Now enter the information as the script asks you to.
The script will generate a credential file for the WCM to use. The script will also validate the entered device credentials by attempting a call to the Cirrent cloud. If you have an internet connection on the device, this should return a success. If you do not have an internet connection, the script will get an error. You can either setup an internet connection manually on the device and run the script again, or you can move on. Your device credentials will be validated later when running the WCM in range of a ZipKey network. You can find information on setting up a test ZipKey network here. (Note: this script is only run when you are manually installing the WCM on your Linux device. For production devices, the device credentials will be pre-provisioned during manufacturing.)
Now you can start running the WCM on your device. If you have installed the WCM on a Raspberry Pi using the .deb install package, simply reboot the Raspberry Pi to start the WCM. You can confirm that the WCM is running by running using the command:
# ps aux | grep wcm
You should see the wcm_agent process running on your device. Now you're ready to test.