Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 2.65 KB

DeviceSetup.md

File metadata and controls

26 lines (18 loc) · 2.65 KB

Device setup

The basic premise of this project is that data from sensing devices can be sent upstream and received in a prescribed JSON format. This might be achieved by programming the devices themselves (e.g. compiling and uploading a Wiring script to an Arduino UNO), or by reading the data from the device and formatting it accordingly (e.g. using a Python script on a Raspberry Pi to read USB output from a commercial Sound Level Meter).

Creating devices IDs for Azure IoT Hub

The ConnecttheDots project uses Azure IoT Hub to connect devices to the Cloud. When deploying the full solution using the ARM template an Azure IoT Hub was deployed as part of your solution. You can find connection information for managing the IoT Hub instance in the Azure portal. For each of the devices that you want to connect to your ConnectTheDots solution, you will need to create a new device ID. You will find all the instructions to create device IDs and retrieve connection strings here.

Connect The Dots getting started project

For this project, follow the instructions for configuring the following:

  1. Arduino UNO with weather shield
  2. Raspberry Pi

Build your own

To build your own end-to-end configuration you need to identify and configure the device(s) that will be producing the data to be pushed to Azure and displayed/analyzed. Devices fall generally into two categories - those that can connect directly to the Internet, and those that need to connect to the Internet through some intermediate device or gateway. Sample code and documentation can be found in the following folders:

  1. Simple devices requiring a gateway - Devices too small or basic to support a secure IP connection, or which need to be aggregated before sending to Azure
  2. Devices connecting directly to Azure - Devices powerful enough to support a secure IP connection
  3. Gateways or other intermediary devices - Devices which collect data from other devices and upload to Azure. These can be very simple (e.g. just package and send the data securely to Azure without changes), or very sophisticated (e.g. allow for device authentication, provisioning, management, and communications).

Build a sensor infrastructure

For additional scenarios, or more advanced configurations, follow the setup instructions in the folders for the devices or gateways listed above.