Monday, February 16, 2015

Windows IoT on Galileo – Sensors to Server




This blog explain you on how to push data to Azure storage table services from Adafruit 10-DOF IMU sensor module connected to Galileo Gen1 or Gen2.  

Prerequisites


Building Casablanca C++ REST SDK, Azure storage client lib
·         Refer the below blog post.

Integrating Adafruit 10-DOF IMU with Galileo
·         Refer the below blog post.

Building the Galileo Wiring Application
  • Create a “Galileo Wiring App” solution, let’s named as GalileoSensorsToServer. You can download it from the below codeplex link.
  • Main.cpp contains integrated source code that can access the Adafruit sensors and send the data to Azure storage services from Galileo. Please refer the above listed blogs to know more about the Adafruit sensor integration and sending data from Galileo to Azure storage table.
  • Install the C++ REST SDK and Azure Storage client library NuGet packages as shown on the prerequisites in addition to the basic Microsoft IoT C++ SDK and its dependencies.
    •  Install-Package cpprestsdk  –version 2.2.0
    • Install-Package wastorage   -Version 0.3.0-preview –Pre
  • Build the application, now your GalileoSensorsToServer.exe is ready.
  • User32.dll, cpprest120d_2_2.dll and wastorage.dll are available in the binaries folder on the release package GalileoSensorsToSever-WinIoT\binaries folder. You copy to Galileo board in the below given location.
  • Navigate to \\mygalileo\c$\test in file explorer (create the “test” folder if necessary).
  • Make sure the User32.dll, cpprest120d_2_2.dll and wastorage.dll are in the same location (\\mygalileo\c$\test ).
  • Run the GalileoSensorsToServer .exe from “remote windows debugger”.
  • You can see the sensor data in the serial port terminal (refer the above linked Adafruit sensor blogs) as well the data in Azure storage services. You can use Azure storage explorer 6 to access the azure storage table data.
 

Fig: Sensor data collected in Azure storage table
Related links

No comments: