element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 #8: Console App - Read Alerts
  • 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: 13 Nov 2017 4:47 AM Date Created
  • Views 453 views
  • Likes 2 likes
  • Comments 0 comments
  • iot on wheels design challenge
  • temperature alert system
  • vetas
  • iot on wheels
Related
Recommended

VeTAS - Blog #8: Console App - Read Alerts

shantimohan
shantimohan
13 Nov 2017

In this blog I detail the procedure to separate the device messages that contain temperature alert. Once these are separated, they can be channeled to separate cloud storage and also trigger actions to intimate the user about the alert.

 

The messages with alert are sent to a critical queue and read from that. This is done as described in the Azure document

 

  1. First a Service Bus Messaging Namespace is created in Azure Portal as follows:
    1. Go to +New -> Enterprise Integration -> Service Bus. This shows the Create Namespace panel.
    2. .Here created a name space named esm-sb-ns.
  2. Then copied the connection string for this name space to text file.
  3. In this name space then created a Queue named esm-iot-critical-q.
  4. Then in the IoT Hub named esmiothub, created a custom endpoint with following attributes:
    1. Name: esm-critical-q-ep
    2. Type: Service Bus Queue
    3. Service Bus Namespace: esm-sb-ns
    4. Service Bus Queue: esm-iot-critical-q
  5. Then created a Route in the same IoT Hub with following attributes:
    1. Name: esm-iot-critical-route.
    2. Data Source: Device Messages
    3. Endpoint: esm-critical-q-ep
    4. Query String: TemperatureAlert="true"
  6. Then created a .Net Console app named vc_read_alerts. The code for which is shown in the screenshot below.

image

 

 

Then both vc_read_alerts and vc_device_live_data are run simultaneously. The STM unit was also powered up. It is expected that all messages with "No Alert" are to be picked up by vc_device_live_data and the messages with "Alert Occurred" will be picked up by the vc_read_alerts program. Unfortunately alert messages were not picked up by vc_read_alerts. This can be seen in the screenshot below. The upper part is the output of vc_device_live_data and the lower part is that of vc_read_alerts. I have created alert by moving the sensors to near a warm light bulb. This needs to be debugged.image

  • 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 © 2025 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