I have been working with Azure IoT Central for the past few months and I am going to share my experience and learnings through a series of blogs. So let’s get started with the first one. By now anyone who is interested in Azure IoT should be aware of the MX Chip Dev Kit. You can find more details about the Dev Kit over here. I this article we will look at how to connect the MX Chip Devkit to Azure IoT Central
What is Azure IoT Central?
IoT Central is an IoT platform that enables you to connect various IoT devices to monitor device conditions, create rules, and manage millions of devices and their data throughout their life cycle.
Connecting the MX Chip Dev Kit to Azure IoT Central.
Setting up Azure IoT Central
Navigate to: https://apps.azureiotcentral.com
Create a New Application
Select Custom App for the list of App Templates
Provide the details for the new Application
Once the App is created, go into the App and select “Device Templates“, Create a New Template and select the MXChip IoT DevKit
Review and Create the Device Template
Next, navigate to the Devices menu and you will see the Device Template created. Click on the Device Template and Select “New“
Provide a Device ID and Name and make sure Simulated option is set to “Off” and click on the Create Button.
Now you will see an MX Chip Device Record created
Once the Device is created go into the device record and click on Connect.
This will bring up the connection details for the device which will we will need later when connecting the MXChip to the Azure IoT Central. Copy the ID Scope, Device ID and the Primary Key to a Notepad as we will need this later.
Setting up the MXChip Dev Kit
Now that we have done our setup on Azure IoT Central. Lets prepare the MX Chip. First Download the latest pre-built Azure IoT Central Plug and Play (preview) firmware for the DevKit device from GitHub.
Connect the MxChip DevKit device to your PC or Laptop using a USB cable. In Windows, a file explorer window will open on a drive mapped to the storage on the DevKit device. For example, the drive might be called AZ3166 (D:).
Drag the iotc_devkit.bin file onto the drive window. When the copying is complete, the device reboots with the new firmware.
Now that we have copied the new Firmware the next step is to connect the MXChip to Wifi and Azure IoT Central. On the MXChip, hold down B Button, push and release the Reset button, and then release B Button. The device is now in access point mode. To confirm, the screen displays “IoT DevKit – AP” and the configuration portal IP address.
On your PC or Laptop, connect to the WiFi network name shown on the screen of the device. The WiFi network starts with AZ. When you connect to this network, you don’t have internet access.
Open the web browser and navigate to http://192.168.0.1/ and the following web page will appear. Select the WiFi and the Password you want the MX Chip to Connect and provide the ID Scope, Device ID and the Primary Key you retrieved in the earlier step when configuring the Azure IoT Central “Step 6”.
Finally, Click “Configure Device” The MX Chip will reboot and the Dev Kit LED Screen will display Confirmation that the device is connected to Azure IOT Central.
You can now navigate to the Azure IoT Central and see the Device Telemetry passing though
Azure IoT Central is great fun. There is a Command area from where you can send commands to the MXChip.
I will be wiring a few more articles on getting the Azure IoT Central data to Dynamics 365 Field Services App.
As always have fun and let me know if you have any questions.