SlideShare ist ein Scribd-Unternehmen logo
1 von 16
IoT Parking Lot Demo on
Toradex Modules
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 2
CHAIRMAN
Introduction
In this blog post, I am going to talk about our IoT parking lot demo
and the technology behind it. I will try to explain how to use Azure IoT
Hub to send messages between Azure services and devices to achieve
the same level of communication we had in our demo. I will also quickly try to explain all
the different modules we used in our demo, but my samples will focus on Azure IoT Hub
and how to easily send and receive messages. If you are interested in knowing more
about Azure IoT Hub, you can check the details here.
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH
In our demo, we have used multiple devices, namely:
• Parking Lot 1 (called Stretnor in our demo)
• Parking Lot 2 (called Theater Parkhouse in our demo)
• Public Display (Parking Lot independent device)
Every parking lot consists of more than one of the following devices:
• Gate Controller (Colibri T30 running Win10 IoT)
• Parking Controller (Colibri VF50 running Windows Embedded Compact 2013)
• Payment Terminal (Apalis iMX6 running Linux and Qt)
• Public Display (Colibri iMX6 running Windows Embedded Compact 2013)
6/20/2016 3
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH 6/20/2016 4
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 5
CHAIRMAN
As you can see in the above image, all the communication messages go
through the Azure IoT Hub to the application service that processes these
messages. You can also see that we have a web page and database running in
Azure but this blog post focuses only on the part about Azure IoT Hub.
Message flow in IoT Parking demo
There are two basic events that trigger the flow of information between
devices and IoT Hub.
The first event is when a car arrives at the gate (refer the diagram below):
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 6
CHAIRMAN
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 7
CHAIRMAN
When a car arrives to the gate, the gate controller will scan the license plate and send a
message to IoT Hub (1). After the application service verifies the data, it will send the
message back to Gate Controller to open the gate (2). At the same time, a message is
sent to the Parking Controller with the number of assigned parking spaces (3). The
Parking Controller will start blinking the Red light indicating that the parking space is
going to be occupied soon. The message is sent also to the Payment Terminal. This
message includes the license plate number and time of arrival (4). At the same time,
the Public Display receives the information about all the parking spaces in the area (5).
When the car is parked at the parking space, the Parking Controller stops blinking the
Red light and sends a message to the IoT Hub indicating that car is parked (6). At the
same time, the Gate Controller is informed to close the gate (7).
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 8
CHAIRMAN
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 9
CHAIRMAN
When a car leaves the parking lot, the driver has to pay the parking charges first. On
the Payment Terminal, a person can select the appropriate license plate of their car
and select pay. A message is then sent to the IoT Hub initiating a request of payment
(1). Application service calculates the price and sends it back to the Payment
Terminal (2). When the Payment Terminal receives the payment credit, it sends the
information to the IoT Hub that the payment was successful (3). Application service
will than send a message to the Parking Controller that the car is about to be
removed from the parking lot (4). The Parking Controller starts blinking the Green
light. After the car is removed from the parking space, a message is sent to the IoT
Hub indicating the removal of car (5). The Parking Controller also opens the gate to
exit. After a timeout value, the gate is closed again and a message is sent to the IoT
Hub that the parking space is now free. After this, the Public Display again shows
the updated information on all the parking lots (6).
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 10
CHAIRMAN
Sample application
In the following sample application, I will try and show to you how to
communicate with the Azure IoT Hub easily. To understand this sample you need
a basic understanding of C#. If you want to build the application, you will need
Visual Studio 2015.
To run the example, you will also need an Azure account. You will need to create
a free Azure IoT Hub and create a device on your Azure IoT Hub. You can use the
device explorer to do this. Device explorer documentation can be found here.
Here I am going to show you a small example of a server-side application that
takes messages from the IoT Hub and processes them. This code is really simple
and is not meant for the production environment.
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 11
It is only to show you how easy it is to communicate with the Azure IoT Hub. In this
example, we only receive the message from the device and send new messages back
to the same device.
You will have to modify the server-side code with your connection string.
As you can see in my sample, I have only called the method connect of the class
TDXServerEmulator
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 12
CHAIRMAN
This will take care of receiving and responding to messages.
To use the clients, you need to replace the URL to Azure IoT Hub with your URL.
Device.cs.
Inside your client you need to create a new Device object and register the
OnMessageReceived event. This will allow you to get all the messages sent from the
Azure IoT Hub to your device.
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 13
CHAIRMAN
After this, you will be able to run the demo project. After you’ve executed the
project, two console applications will appear. You have to wait for the server
application to be ready for connection
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 14
CHAIRMAN
After the server is ready, you can select “Send Hi” from the client application.
In the image above, you can see the client sending “Hi”. After the server received the
message from client, it responds with the following message, “Hi from IoT Hub”.
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 15
CHAIRMAN
As you can see in my sample, it is really easy to communicate with the Azure IoT
Hub and send simple messages. For more complex applications, there are many
things that can be improved but that also makes the sample application more
complex.
With this sample and explanation, you should be able to develop simple
applications using Azure IoT Hub. Also all Toradex modules support Azure IoT
Hub. You can read more about the type of support offered by the Toradex modules
here. You can also download SDKs for WinCE and Linux.
|www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 16
Thank
you!

Weitere ähnliche Inhalte

Was ist angesagt?

JGT Auto Park Presentation (by Wong) (1)
JGT Auto Park Presentation (by Wong) (1)JGT Auto Park Presentation (by Wong) (1)
JGT Auto Park Presentation (by Wong) (1)
Vin Lee
 
Automated parking systems
Automated parking systemsAutomated parking systems
Automated parking systems
sowmya Sowmya
 
automatic car parking system
automatic car parking systemautomatic car parking system
automatic car parking system
sowmya Sowmya
 
IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...
IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...
IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...
ASHOKKUMAR RAMAR
 

Was ist angesagt? (20)

State fair project
State fair projectState fair project
State fair project
 
Smart parking System
Smart parking SystemSmart parking System
Smart parking System
 
Arduino Based Parking Lot System
Arduino Based Parking Lot SystemArduino Based Parking Lot System
Arduino Based Parking Lot System
 
Smart Parking
Smart Parking Smart Parking
Smart Parking
 
iPARK: Intelligent Parking System based on IoT & AI
iPARK: Intelligent Parking System based on IoT & AIiPARK: Intelligent Parking System based on IoT & AI
iPARK: Intelligent Parking System based on IoT & AI
 
SMART CAR-PARKING SYSTEM USING IOT
SMART CAR-PARKING SYSTEM USING IOTSMART CAR-PARKING SYSTEM USING IOT
SMART CAR-PARKING SYSTEM USING IOT
 
Smart parking - Happiestminds !
Smart parking - Happiestminds !Smart parking - Happiestminds !
Smart parking - Happiestminds !
 
Kmp14a
Kmp14aKmp14a
Kmp14a
 
GSMA IoT Final project: smart car parking
GSMA IoT Final project: smart car parkingGSMA IoT Final project: smart car parking
GSMA IoT Final project: smart car parking
 
JGT Auto Park Presentation (by Wong) (1)
JGT Auto Park Presentation (by Wong) (1)JGT Auto Park Presentation (by Wong) (1)
JGT Auto Park Presentation (by Wong) (1)
 
ADVANCE CAR PARKING SYSTEM
ADVANCE CAR PARKING SYSTEMADVANCE CAR PARKING SYSTEM
ADVANCE CAR PARKING SYSTEM
 
Automated parking systems
Automated parking systemsAutomated parking systems
Automated parking systems
 
automatic car parking system
automatic car parking systemautomatic car parking system
automatic car parking system
 
Automatic car parking system with and without password report
Automatic car parking system with and without password reportAutomatic car parking system with and without password report
Automatic car parking system with and without password report
 
IOT Based Smart Parking and Damage Detection Using RFID
IOT Based Smart Parking and Damage Detection Using RFIDIOT Based Smart Parking and Damage Detection Using RFID
IOT Based Smart Parking and Damage Detection Using RFID
 
PLC Based multilevel automatic car parking
PLC Based multilevel automatic car parkingPLC Based multilevel automatic car parking
PLC Based multilevel automatic car parking
 
IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...
IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...
IEEE PROJECTS ABSTRACT-MULTI LEVEL CARPARKING/VERTICAL CAR PARKING SYSTEMS PR...
 
Parking Management System
Parking Management SystemParking Management System
Parking Management System
 
Arduino Automated Parking Lot System
Arduino Automated Parking Lot SystemArduino Automated Parking Lot System
Arduino Automated Parking Lot System
 
Smart parking
Smart parkingSmart parking
Smart parking
 

Ähnlich wie IoT Parking Lot Demo on Toradex Modules

Rapid IoT Application Development with IBM Bluemix - Mikko Poutanen
Rapid IoT Application Development with IBM Bluemix - Mikko PoutanenRapid IoT Application Development with IBM Bluemix - Mikko Poutanen
Rapid IoT Application Development with IBM Bluemix - Mikko Poutanen
WithTheBest
 
Consider the above diagram. FIGURE, of the car park The object of thi.pdf
Consider the above diagram. FIGURE, of the car park The object of thi.pdfConsider the above diagram. FIGURE, of the car park The object of thi.pdf
Consider the above diagram. FIGURE, of the car park The object of thi.pdf
excellentmobilesabc
 

Ähnlich wie IoT Parking Lot Demo on Toradex Modules (20)

Azure IoT Hub on a Toradex Colibri VF61 – Part 1 - Sending data to the cloud
Azure IoT Hub on a Toradex Colibri VF61 – Part 1 - Sending data to the cloudAzure IoT Hub on a Toradex Colibri VF61 – Part 1 - Sending data to the cloud
Azure IoT Hub on a Toradex Colibri VF61 – Part 1 - Sending data to the cloud
 
Simplifying IoT App Development - A Whitepaper by RapidValue
Simplifying IoT App Development - A Whitepaper by RapidValueSimplifying IoT App Development - A Whitepaper by RapidValue
Simplifying IoT App Development - A Whitepaper by RapidValue
 
Smart Car Parking System Based on IoT Concept
Smart Car Parking System Based on IoT ConceptSmart Car Parking System Based on IoT Concept
Smart Car Parking System Based on IoT Concept
 
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 - IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
 
IRJET- Smart Parking System using IoT
IRJET- Smart Parking System using IoTIRJET- Smart Parking System using IoT
IRJET- Smart Parking System using IoT
 
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy
Internet of Things (IoT) Business & Technology & Patent Integrated StrategyInternet of Things (IoT) Business & Technology & Patent Integrated Strategy
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy
 
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy 4...
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy 4...Internet of Things (IoT) Business & Technology & Patent Integrated Strategy 4...
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy 4...
 
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy
Internet of Things (IoT) Business & Technology & Patent Integrated StrategyInternet of Things (IoT) Business & Technology & Patent Integrated Strategy
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy
 
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy
Internet of Things (IoT) Business & Technology & Patent Integrated StrategyInternet of Things (IoT) Business & Technology & Patent Integrated Strategy
Internet of Things (IoT) Business & Technology & Patent Integrated Strategy
 
Automatski - The Internet of Things - Overview
Automatski   - The Internet of Things - OverviewAutomatski   - The Internet of Things - Overview
Automatski - The Internet of Things - Overview
 
Rapid IoT Application Development with IBM Bluemix - Mikko Poutanen
Rapid IoT Application Development with IBM Bluemix - Mikko PoutanenRapid IoT Application Development with IBM Bluemix - Mikko Poutanen
Rapid IoT Application Development with IBM Bluemix - Mikko Poutanen
 
Iot 1906 - approaches for building applications with the IBM IoT cloud
Iot 1906 - approaches for building applications with the IBM IoT cloudIot 1906 - approaches for building applications with the IBM IoT cloud
Iot 1906 - approaches for building applications with the IBM IoT cloud
 
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Can we build an Azure IoT controlled device in less than 40 minutes that cost...Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
 
Accelerating your application development with IBM BlueMix (Your dream devel...
Accelerating your application development with IBM BlueMix (Your dream devel...Accelerating your application development with IBM BlueMix (Your dream devel...
Accelerating your application development with IBM BlueMix (Your dream devel...
 
Learn how to make your IoT pilot projects and POCs successful
Learn how to make your IoT pilot projects and POCs successfulLearn how to make your IoT pilot projects and POCs successful
Learn how to make your IoT pilot projects and POCs successful
 
Turn your smartphone into a sensor.pptx
Turn your smartphone into a sensor.pptxTurn your smartphone into a sensor.pptx
Turn your smartphone into a sensor.pptx
 
Cloud computing in iot seminar report
Cloud computing in iot seminar reportCloud computing in iot seminar report
Cloud computing in iot seminar report
 
Consider the above diagram. FIGURE, of the car park The object of thi.pdf
Consider the above diagram. FIGURE, of the car park The object of thi.pdfConsider the above diagram. FIGURE, of the car park The object of thi.pdf
Consider the above diagram. FIGURE, of the car park The object of thi.pdf
 
IAB3948 Wiring the internet of things with Node-RED
IAB3948 Wiring the internet of things with Node-REDIAB3948 Wiring the internet of things with Node-RED
IAB3948 Wiring the internet of things with Node-RED
 
Azure IoT Hub on a Toradex Colibri VF61 – Part 2 - Interfacing sensors and th...
Azure IoT Hub on a Toradex Colibri VF61 – Part 2 - Interfacing sensors and th...Azure IoT Hub on a Toradex Colibri VF61 – Part 2 - Interfacing sensors and th...
Azure IoT Hub on a Toradex Colibri VF61 – Part 2 - Interfacing sensors and th...
 

Mehr von Toradex

Mehr von Toradex (20)

Toradex Strengthens Custom Solutions Offering with Acquisition of Linear Comp...
Toradex Strengthens Custom Solutions Offering with Acquisition of Linear Comp...Toradex Strengthens Custom Solutions Offering with Acquisition of Linear Comp...
Toradex Strengthens Custom Solutions Offering with Acquisition of Linear Comp...
 
プレスリリース:ToradexがJapan IT Week【春】2024年に出展
プレスリリース:ToradexがJapan IT Week【春】2024年に出展プレスリリース:ToradexがJapan IT Week【春】2024年に出展
プレスリリース:ToradexがJapan IT Week【春】2024年に出展
 
Introducing Aquila: The Next Generation Toradex SoM Family
Introducing Aquila: The Next Generation Toradex SoM FamilyIntroducing Aquila: The Next Generation Toradex SoM Family
Introducing Aquila: The Next Generation Toradex SoM Family
 
Join Toradex at Japan IT Week Spring 2024
Join Toradex at Japan IT Week Spring 2024Join Toradex at Japan IT Week Spring 2024
Join Toradex at Japan IT Week Spring 2024
 
Toradex announces Titan Eval Kit w/ NXP's i.MX 95 - Early Access Program
Toradex announces Titan Eval Kit w/ NXP's i.MX 95 - Early Access ProgramToradex announces Titan Eval Kit w/ NXP's i.MX 95 - Early Access Program
Toradex announces Titan Eval Kit w/ NXP's i.MX 95 - Early Access Program
 
ToradexがJapan IT Week【春】2023年に出展
ToradexがJapan IT Week【春】2023年に出展ToradexがJapan IT Week【春】2023年に出展
ToradexがJapan IT Week【春】2023年に出展
 
NXP Semiconductors elevates Toradex to Platinum Partner status
NXP Semiconductors elevates Toradex to Platinum Partner statusNXP Semiconductors elevates Toradex to Platinum Partner status
NXP Semiconductors elevates Toradex to Platinum Partner status
 
Webinar: Secure Offline and Online Updates for Linux Devices
Webinar: Secure Offline and Online Updates for Linux DevicesWebinar: Secure Offline and Online Updates for Linux Devices
Webinar: Secure Offline and Online Updates for Linux Devices
 
Toradex opens office in Tokyo, reaffirming its growth strategy in the Asia-Pa...
Toradex opens office in Tokyo, reaffirming its growth strategy in the Asia-Pa...Toradex opens office in Tokyo, reaffirming its growth strategy in the Asia-Pa...
Toradex opens office in Tokyo, reaffirming its growth strategy in the Asia-Pa...
 
Toradex launches Verdin featuring NXP i.MX 8M Mini/Nano SoMs
Toradex launches Verdin featuring NXP i.MX 8M Mini/Nano SoMsToradex launches Verdin featuring NXP i.MX 8M Mini/Nano SoMs
Toradex launches Verdin featuring NXP i.MX 8M Mini/Nano SoMs
 
Ethernet Compliance Testing at Toradex
Ethernet Compliance Testing at ToradexEthernet Compliance Testing at Toradex
Ethernet Compliance Testing at Toradex
 
Webinar On-demand: Introducing the new Colibri SoM based on the NXP i.MX 6ULL...
Webinar On-demand: Introducing the new Colibri SoM based on the NXP i.MX 6ULL...Webinar On-demand: Introducing the new Colibri SoM based on the NXP i.MX 6ULL...
Webinar On-demand: Introducing the new Colibri SoM based on the NXP i.MX 6ULL...
 
Starting with OpenCV on i.MX 6 Processors
Starting with OpenCV on i.MX 6 ProcessorsStarting with OpenCV on i.MX 6 Processors
Starting with OpenCV on i.MX 6 Processors
 
Cloud-Aided Yocto Build Speedup
Cloud-Aided Yocto Build SpeedupCloud-Aided Yocto Build Speedup
Cloud-Aided Yocto Build Speedup
 
Toradex Global Video Montage
Toradex Global Video MontageToradex Global Video Montage
Toradex Global Video Montage
 
Considerations on usage of Computer on Modules for Applications inside Emerge...
Considerations on usage of Computer on Modules for Applications inside Emerge...Considerations on usage of Computer on Modules for Applications inside Emerge...
Considerations on usage of Computer on Modules for Applications inside Emerge...
 
Customizable Embedded 3D Surround View Turn-Key Solution on Apalis iMX6 SoM
Customizable Embedded 3D Surround View Turn-Key Solution on Apalis iMX6 SoMCustomizable Embedded 3D Surround View Turn-Key Solution on Apalis iMX6 SoM
Customizable Embedded 3D Surround View Turn-Key Solution on Apalis iMX6 SoM
 
288 Core ARM® and 13’824 CUDA Core Microserver Cluster with Toradex Apalis Sy...
288 Core ARM® and 13’824 CUDA Core Microserver Cluster with Toradex Apalis Sy...288 Core ARM® and 13’824 CUDA Core Microserver Cluster with Toradex Apalis Sy...
288 Core ARM® and 13’824 CUDA Core Microserver Cluster with Toradex Apalis Sy...
 
First Steps Developing Embedded Applications using Heterogeneous Multi-core P...
First Steps Developing Embedded Applications using Heterogeneous Multi-core P...First Steps Developing Embedded Applications using Heterogeneous Multi-core P...
First Steps Developing Embedded Applications using Heterogeneous Multi-core P...
 
Developing Real-Time Systems on Application Processors
Developing Real-Time Systems on Application ProcessorsDeveloping Real-Time Systems on Application Processors
Developing Real-Time Systems on Application Processors
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

IoT Parking Lot Demo on Toradex Modules

  • 1. IoT Parking Lot Demo on Toradex Modules
  • 2. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 2 CHAIRMAN Introduction In this blog post, I am going to talk about our IoT parking lot demo and the technology behind it. I will try to explain how to use Azure IoT Hub to send messages between Azure services and devices to achieve the same level of communication we had in our demo. I will also quickly try to explain all the different modules we used in our demo, but my samples will focus on Azure IoT Hub and how to easily send and receive messages. If you are interested in knowing more about Azure IoT Hub, you can check the details here.
  • 3. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH In our demo, we have used multiple devices, namely: • Parking Lot 1 (called Stretnor in our demo) • Parking Lot 2 (called Theater Parkhouse in our demo) • Public Display (Parking Lot independent device) Every parking lot consists of more than one of the following devices: • Gate Controller (Colibri T30 running Win10 IoT) • Parking Controller (Colibri VF50 running Windows Embedded Compact 2013) • Payment Terminal (Apalis iMX6 running Linux and Qt) • Public Display (Colibri iMX6 running Windows Embedded Compact 2013) 6/20/2016 3
  • 4. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH 6/20/2016 4
  • 5. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 5 CHAIRMAN As you can see in the above image, all the communication messages go through the Azure IoT Hub to the application service that processes these messages. You can also see that we have a web page and database running in Azure but this blog post focuses only on the part about Azure IoT Hub. Message flow in IoT Parking demo There are two basic events that trigger the flow of information between devices and IoT Hub. The first event is when a car arrives at the gate (refer the diagram below):
  • 6. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 6 CHAIRMAN
  • 7. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 7 CHAIRMAN When a car arrives to the gate, the gate controller will scan the license plate and send a message to IoT Hub (1). After the application service verifies the data, it will send the message back to Gate Controller to open the gate (2). At the same time, a message is sent to the Parking Controller with the number of assigned parking spaces (3). The Parking Controller will start blinking the Red light indicating that the parking space is going to be occupied soon. The message is sent also to the Payment Terminal. This message includes the license plate number and time of arrival (4). At the same time, the Public Display receives the information about all the parking spaces in the area (5). When the car is parked at the parking space, the Parking Controller stops blinking the Red light and sends a message to the IoT Hub indicating that car is parked (6). At the same time, the Gate Controller is informed to close the gate (7).
  • 8. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 8 CHAIRMAN
  • 9. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH June’16 9 CHAIRMAN When a car leaves the parking lot, the driver has to pay the parking charges first. On the Payment Terminal, a person can select the appropriate license plate of their car and select pay. A message is then sent to the IoT Hub initiating a request of payment (1). Application service calculates the price and sends it back to the Payment Terminal (2). When the Payment Terminal receives the payment credit, it sends the information to the IoT Hub that the payment was successful (3). Application service will than send a message to the Parking Controller that the car is about to be removed from the parking lot (4). The Parking Controller starts blinking the Green light. After the car is removed from the parking space, a message is sent to the IoT Hub indicating the removal of car (5). The Parking Controller also opens the gate to exit. After a timeout value, the gate is closed again and a message is sent to the IoT Hub that the parking space is now free. After this, the Public Display again shows the updated information on all the parking lots (6).
  • 10. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 10 CHAIRMAN Sample application In the following sample application, I will try and show to you how to communicate with the Azure IoT Hub easily. To understand this sample you need a basic understanding of C#. If you want to build the application, you will need Visual Studio 2015. To run the example, you will also need an Azure account. You will need to create a free Azure IoT Hub and create a device on your Azure IoT Hub. You can use the device explorer to do this. Device explorer documentation can be found here. Here I am going to show you a small example of a server-side application that takes messages from the IoT Hub and processes them. This code is really simple and is not meant for the production environment.
  • 11. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 11 It is only to show you how easy it is to communicate with the Azure IoT Hub. In this example, we only receive the message from the device and send new messages back to the same device. You will have to modify the server-side code with your connection string. As you can see in my sample, I have only called the method connect of the class TDXServerEmulator
  • 12. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 12 CHAIRMAN This will take care of receiving and responding to messages. To use the clients, you need to replace the URL to Azure IoT Hub with your URL. Device.cs. Inside your client you need to create a new Device object and register the OnMessageReceived event. This will allow you to get all the messages sent from the Azure IoT Hub to your device.
  • 13. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 13 CHAIRMAN After this, you will be able to run the demo project. After you’ve executed the project, two console applications will appear. You have to wait for the server application to be ready for connection
  • 14. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 14 CHAIRMAN After the server is ready, you can select “Send Hi” from the client application. In the image above, you can see the client sending “Hi”. After the server received the message from client, it responds with the following message, “Hi from IoT Hub”.
  • 15. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 15 CHAIRMAN As you can see in my sample, it is really easy to communicate with the Azure IoT Hub and send simple messages. For more complex applications, there are many things that can be improved but that also makes the sample application more complex. With this sample and explanation, you should be able to develop simple applications using Azure IoT Hub. Also all Toradex modules support Azure IoT Hub. You can read more about the type of support offered by the Toradex modules here. You can also download SDKs for WinCE and Linux.
  • 16. |www.toradex.com Toradex® is a registered trademark of Montadex GmbH May’16 16 Thank you!