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
- Supported for both Intel Galileo Gen1 and Gen2.
- Latest OS update released on 21-Nov-2014 (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.
- NuGet package for C++ REST SDK (Casablanca) Version ≥ 2.0.1 (tested with version 2.0.1 and 2.2.0)
- Source code for C++ REST SDK. Go through the instructions given in the below link.
- NuGet package for Microsoft Azure Storage Client Library for C++ 0.3.0-preview
- Source code for Azure Storage Client Library for C++ 0.3.0-preview from Github.
- Sample source code to access the Azure storage client library. I used the source code for accessing table for this example but it should work for all storage services.
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
- Windows IoT on Galileo – Accessing Azure storage services
- Windows IoT on Galileo – Connecting Adafruit 10DOF IMU Breakout Part – 1
- Windows IoT on Galileo – Connecting Adafruit 10DOF IMU Breakout Part-2
- https://azurestorageclientgalileo.codeplex.com
- https://adafruit10dofgalileo.codeplex.com/
- https://galileosensorstoserver.codeplex.com/
No comments:
Post a Comment