Windows IoT, Galileo, Azure, Event Hubs and Stream Analytics

News

Extraordinary Robot
Robot
Joined
Jun 27, 2006
Messages
23,048
There have been a number of comments asking for more IoT and cloud/Azure posts. So when I stumbled across Vinoth's blog and his lastest post, I knew I found a winner. Also make sure you check out the rest of his posts too... :)

Windows IoT on Galileo – Using Event Hubs and Stream Analytics


This blogs explains you on how to access Azure Event hubs from Galileo integrated with Adafruit 10-DOF IMU sensor board and using Azure stream Analytics to pipeline the sensor data stream to Azure storage services.

Prerequisites

  • Supported for both Intel Galileo Gen1 and Gen2.
  • Latest OS update released (A common .wim for Gen1 and Gen2) for lightning (improved performance on I2C, SPI, and UART etc..)
  • Visual studio 2013 with Windows IoT SDK (Visit: windowsondevices.com for more details) and Microsoft IoT C++ SDK and its dependent NuGet Package is required.
  • As explained in Windows IoT on Galileo – Using Event Hubs (Connectthedot.io) , Download the sample Link Removed from github.

Integrating Adafruit 10-DOF IMU with Galileo

· Refer the below blog post.


Creating Azure Service Bus Event hub

  • Refer Link Removed , follow the steps up to 6.
  • Follow the step 6 and Create a policy named “manage policy” with manage, send and listen rights.
  • Follow the step 7 to copy the access connection string for “manage policy”.
  • Click the Consumer group tab next to configure and Click CREATE at the bottom of the page and supply a Consumer Group Name in the Create a Consumer Group dialog. This will be used when you configuring stream analytics for this event hub.

Create an Azure Storage account

This sample application requires an Azure Storage account or a storage emulator for maintaining the application state. You can use an existing Storage account or follow the steps below to create one:

...

Creating Azure Stream Analytics job

  • Refer “provisioning the stream Analytics job” topic in Link Removed, I named it as a “Galileosensorstream” for my stream analytics job in our case.

...

Building the Galileo Wiring Application

  • Create a “Galileo Wiring App” solution, let’s named as “GalileoEventhub”. You can download it from the below codeplex link.
    • Link Removed
  • Main.cpp contains integrated source code that can access the Adafruit sensors and send the data to Azure Service bus Eventhub from Galileo. Please refer the above listed blogs to know more about the Adafruit sensor integration.

...

  • Build the application and run it on Galileo.
  • You can see the data in the Azure storage table as created above through stream Analytics. Below picture shows the data on the Azure storage table using Azure storage explorer application.

Link Removed

[Click through for the complete post]

Link Removed
Link Removed
Link Removed

Link Removed

Continue reading...
 


Back
Top