element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
IoT on Wheels Design Challenge
  • Challenges & Projects
  • Design Challenges
  • IoT on Wheels Design Challenge
  • More
  • Cancel
IoT on Wheels Design Challenge
Blog VeTAS - Blog #4: Device-to-Cloud Communication & Mobile App Menu
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shantimohan
  • Date Created: 12 Oct 2017 3:05 AM Date Created
  • Views 507 views
  • Likes 1 like
  • Comments 0 comments
  • iot on wheels design challenge
  • temperature alert system
  • vetas
  • iot on wheels
Related
Recommended

VeTAS - Blog #4: Device-to-Cloud Communication & Mobile App Menu

shantimohan
shantimohan
12 Oct 2017

Device-to-Cloud Communication:

In the last blog I have explained the code that reads the sensors data, process it and sent to Cloud storage, in this case it is Azure Services.

 

First created an Azure IoT Hub using the Azure portal as described here. I am using my Biz Spark subscription for this.

 

Then provisioned a device in the above IoT Hub and got the Device Connection String, which is set in the device software in the azure1_config,h as shown below. Actually this device name / id will follow a format which is yet to be decided. The provisioning will final be done from a Mobile App.

#define AZUREIOTHUBCONNECTIONSTRING "HostName=esm-iot-hub.azure-devices.net;DeviceId=P-NUCLEO-AZURE1-Test;SharedAccessKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

 

Currently used Device Explorer utility provided by Microsoft is used to confirm that the data is received by the IoT Hub as shown in the following image.

image

 

The data received by IoT Hub will be stored in Azure Storage / SQL database which will  be displayed by the Mobile App using Azure App Service. Currently this part is being designed and coded.

 

Mobile App Menu Contents:

In the last blog I have shown the glimpse of the Mobile App Main Menu, which is show below. The functionality is explained here.

image

 

When the app is started it will be showing the Home page as shown below

image

 

Tapping the 'Hamburger' icon at the top left corner shows the Main Menu shown earlier. Tapping the [NEW DEVICE] button will allow to add a new device to the Azure IoT Hub. Tapping the [ABOUT] button will show the details about the app. Tapping the [START RECIVING DATA] button will start displaying the data as it is received by the IoT Hub. This will be in the form of a formatted table.

 

The Main Menu options are described below:

  1. Home (Live Data) - Shows the Home Page. This is used to return to the Home Page from any other page.
  2. Alerts - This will display the current and past alerts received. On app start, if there is an active alert the Alerts page will be displayed automatically.
  3. History - This system saves past 7 days data in the cloud storage. This past data will be shown here date-wise. This also includes the data received currently till the time of showing this page.
  4. Manage Cloud - This enables removing an existing device from IoT Hub. If no data is received from a device continuously for 2 days, that device will be 'disabled'. Such disabled device also can be enabled again here. Until it is enabled the data will not be received by the IoT Hub.
  5. Manage Device - This enables the setting of Wi-Fi credentials, IoT Device Connection String, Temperature Unit, Threshold Temperature and other necessary parameters in the device. This connects to the device through the Bluetooth.
  6. App Settings - This allows change of password and other app parameters be set.
  7. Setup New Device - This will walk you through the steps to setup a new device.
  8. About and Help - This shows the details of the app and help topics.

 

Currently researching on the components needed to connect the mobile app to Azure services. Once it is finalized more app pages will be designed and shown here.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube