SlideShare a Scribd company logo
1 of 25
Download to read offline
Cassting Demonstrator
Mads Kronborg Kim G. Larsen Marco Muniz
Petur Olsen Thomas Pedersen Arne Skou Jiri Srba
Center for Embedded Software Systems
Aalborg University, Denmark
petur@cs.aau.dk
InfinIT, November 3, 2016
Introduction Demonstrator Raspberry Pi Conclusion
Introduction
Cassting demonstrator
Implementation on Raspberry Pi
2/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Overview
European research project
System synthesis
Floor heating controller
Demonstrator
Real and simulated devices
3/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
4/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
5/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Homeport
Middleware for heterogeneous home automation networks
Abstracts underlying physical devices
Adapters
RESTful interface
Real and simulated devices
6/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Adapter1 Adapter2
... Adaptern
HomePort API
Discovery
Service
Event
Handler
Request
Handler
Data Model
Application1 Application2
... Applicationm
Logging
Service
Daemon
Service
Devices Devices Devices...
Clients Clients Clients...
7/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Tool Chain Architecture
Uppaal-
Stratego
HomePort GUI
Seluxit adapters
temperature readings valve control
data strategy
weather
forecast
current data
temperature
set-point
8/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Tool Chain Architecture
Uppaal-
Stratego
HomePort GUI
temperature readings valve control
d
dt Ti (t) = n
j=1 Ad
i,j (Tj (t) − Ti (t)) + Bi (Tenv(t) − Ti (t)) + Hv
j,i · vj
data strategy
weather
forecast
current data
temperature
set-point
8/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Tool Chain Architecture
Uppaal-
Stratego
HomePort GUI
temperature readings valve control
d
dt Ti (t) = n
j=1 Ad
i,j (Tj (t) − Ti (t)) + Bi (Tenv(t) − Ti (t)) + Hv
j,i · vj
data strategy
weather
forecast
current data
temperature
set-point
8/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
HomePort Library
Rest
Webservice
Simulink
to
Seluxit
Seluxit
Adapter
House
GFX
(SDL2)
Simulink
ERT
Adapter
Forecast
Adapter
Controller
Simulink
Model
LCD ScreenUPPAAL
STRATEGO
Seluxit
Gateway
Setpoint Ctrl
Relay Box Valve1..n
9/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
HomePort Library
Rest
Webservice
Simulink
to
Seluxit
Seluxit
Adapter
House
GFX
(SDL2)
Simulink
ERT
Adapter
Forecast
Adapter
Controller
Simulink
Model
LCD ScreenUPPAAL
STRATEGO
Seluxit
Gateway
Setpoint Ctrl
Relay Box Valve1..n
10/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
11/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Implementation on Raspberry Pi
Not Uppaal
Homeport with adapters
Matlab/Simulink Code Generation
GUI - C++/SDL2
12/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Matlab/Simulink
Thermodynamics simulation
Four times per second
Homeport adapter
Sends new values to Homeport
Received values from Homeport
Code generation out-of-the-box
13/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Graphical User Interface
Simple DirectMedia Layer
C++
OpenGL
Game development
Simple game loop - event, update, render
Dynamic rendering
14/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
15/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
16/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
17/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Performance issues
Runs at about 2-3 FPS
CPU utilization about 40%
Vast majority of CPU time spent waiting for drawing
Grid tiles 96x54 = 5184
18/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Possible solution
Pre-render background
Bake rooms
Did not help
19/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Possible solution
Pre-render background
Bake rooms
Did not help
Full HD 1920x1080
Proves to much for the graphics chip
19/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Possible solution
Pre-render background
Bake rooms
Did not help
Full HD 1920x1080
Proves to much for the graphics chip
No graphics upgrade in new Raspberry Pi
19/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Conclusion
Excellent platform for the demonstrator
(Mostly) Easy to develop on
Prototyping with Matlab/Simulink
Very good performance, except
Lacking graphics performance
20/21 petur@cs.aau.dk Cassting Demonstrator
Introduction Demonstrator Raspberry Pi Conclusion
Questions?
21/21 petur@cs.aau.dk Cassting Demonstrator

More Related Content

What's hot

The Cost Of Free Linux
The Cost Of Free LinuxThe Cost Of Free Linux
The Cost Of Free LinuxAlbert Mietus
 
Applied Shell Scripting - stills to time-lapse
Applied Shell Scripting - stills to time-lapseApplied Shell Scripting - stills to time-lapse
Applied Shell Scripting - stills to time-lapseShoaib Sufi
 
From zero to gremlin hero - Part I
From zero to gremlin hero - Part IFrom zero to gremlin hero - Part I
From zero to gremlin hero - Part IGraphRM
 
An evaluation of piece picking algorithms for layered content in bittorrent-b...
An evaluation of piece picking algorithms for layered content in bittorrent-b...An evaluation of piece picking algorithms for layered content in bittorrent-b...
An evaluation of piece picking algorithms for layered content in bittorrent-b...Alpen-Adria-Universität
 

What's hot (11)

Ansible on AWS
Ansible on AWSAnsible on AWS
Ansible on AWS
 
XREST Protocol
XREST ProtocolXREST Protocol
XREST Protocol
 
GNU Parallel
GNU ParallelGNU Parallel
GNU Parallel
 
The Cost Of Free Linux
The Cost Of Free LinuxThe Cost Of Free Linux
The Cost Of Free Linux
 
Haskell Accelerate
Haskell  AccelerateHaskell  Accelerate
Haskell Accelerate
 
Cheap HPC
Cheap HPCCheap HPC
Cheap HPC
 
Applied Shell Scripting - stills to time-lapse
Applied Shell Scripting - stills to time-lapseApplied Shell Scripting - stills to time-lapse
Applied Shell Scripting - stills to time-lapse
 
Otto AI
Otto AIOtto AI
Otto AI
 
From zero to gremlin hero - Part I
From zero to gremlin hero - Part IFrom zero to gremlin hero - Part I
From zero to gremlin hero - Part I
 
Project 2
Project 2Project 2
Project 2
 
An evaluation of piece picking algorithms for layered content in bittorrent-b...
An evaluation of piece picking algorithms for layered content in bittorrent-b...An evaluation of piece picking algorithms for layered content in bittorrent-b...
An evaluation of piece picking algorithms for layered content in bittorrent-b...
 

Viewers also liked (12)

Værktøjer udviklet på AAU til analyse af SCJ programmer
Værktøjer udviklet på AAU til analyse af SCJ programmerVærktøjer udviklet på AAU til analyse af SCJ programmer
Værktøjer udviklet på AAU til analyse af SCJ programmer
 
Raspberry Pi? Men vi har jo iPads! Overvejelser omkring undervisning. RPI-ud...
Raspberry Pi? Men vi har jo iPads!  Overvejelser omkring undervisning. RPI-ud...Raspberry Pi? Men vi har jo iPads!  Overvejelser omkring undervisning. RPI-ud...
Raspberry Pi? Men vi har jo iPads! Overvejelser omkring undervisning. RPI-ud...
 
Raspberry Pi – Putting the fun back into computing
Raspberry Pi – Putting the fun back into computingRaspberry Pi – Putting the fun back into computing
Raspberry Pi – Putting the fun back into computing
 
Embedded Software Quality
Embedded Software QualityEmbedded Software Quality
Embedded Software Quality
 
Home Automation System
Home Automation SystemHome Automation System
Home Automation System
 
GomSpace introduktion
GomSpace introduktionGomSpace introduktion
GomSpace introduktion
 
A history of (Nordic) compilers and autocodes
A history of (Nordic) compilers and autocodesA history of (Nordic) compilers and autocodes
A history of (Nordic) compilers and autocodes
 
Udviklingsplatform og programmeringssprog
Udviklingsplatform og programmeringssprogUdviklingsplatform og programmeringssprog
Udviklingsplatform og programmeringssprog
 
Tools and Methods for Continuously Expanding Software Applications
Tools and Methods for Continuously Expanding Software ApplicationsTools and Methods for Continuously Expanding Software Applications
Tools and Methods for Continuously Expanding Software Applications
 
Embedded Development for the Future - Platforms for Rohde-Schwarz Mobile Tester
Embedded Development for the Future - Platforms for Rohde-Schwarz Mobile TesterEmbedded Development for the Future - Platforms for Rohde-Schwarz Mobile Tester
Embedded Development for the Future - Platforms for Rohde-Schwarz Mobile Tester
 
Home Automation
Home AutomationHome Automation
Home Automation
 
Home automation & security system
Home automation & security systemHome automation & security system
Home automation & security system
 

Similar to The Casting Demonstrator. Using the Raspberry Pi for graphics and simulated floor heating

Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfWiseNaeem
 
Apresentação FLOSS
Apresentação FLOSSApresentação FLOSS
Apresentação FLOSSAdriano Melo
 
Projects list raspberry pi projects-1230 - projects
Projects list   raspberry pi projects-1230 - projectsProjects list   raspberry pi projects-1230 - projects
Projects list raspberry pi projects-1230 - projectsAshraf11111
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfWiseNaeem
 
Bridging the Pervasive Computing Gap: An Aggregate Perspective
Bridging the Pervasive Computing Gap: An Aggregate PerspectiveBridging the Pervasive Computing Gap: An Aggregate Perspective
Bridging the Pervasive Computing Gap: An Aggregate PerspectiveRoberto Casadei
 
FINAL SEMINAR REPORT OF RASPBERRY PI
FINAL SEMINAR REPORT OF RASPBERRY PIFINAL SEMINAR REPORT OF RASPBERRY PI
FINAL SEMINAR REPORT OF RASPBERRY PIGANESH GOVIND BHOR
 
SEMINAR REPORT OF RASPBERRY PI
SEMINAR REPORT OF RASPBERRY PI SEMINAR REPORT OF RASPBERRY PI
SEMINAR REPORT OF RASPBERRY PI GANESH GOVIND BHOR
 
Deploying a Task-based Runtime System on Raspberry Pi Clusters
Deploying a Task-based Runtime System on Raspberry Pi ClustersDeploying a Task-based Runtime System on Raspberry Pi Clusters
Deploying a Task-based Runtime System on Raspberry Pi ClustersPatrick Diehl
 
Socket programming
Socket programmingSocket programming
Socket programmingNemiRathore
 
Projects list 1271 raspberry pi projects
Projects list  1271 raspberry pi projectsProjects list  1271 raspberry pi projects
Projects list 1271 raspberry pi projectsAshraf11111
 
Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Thomas Paviot
 
Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Codemotion
 
CS 354 Introduction
CS 354 IntroductionCS 354 Introduction
CS 354 IntroductionMark Kilgard
 
Flash and Hardware
Flash and HardwareFlash and Hardware
Flash and HardwareKevin Hoyt
 
pythonOCC PDE2009 presentation
pythonOCC PDE2009 presentationpythonOCC PDE2009 presentation
pythonOCC PDE2009 presentationThomas Paviot
 
Linux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and EngineeringLinux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and EngineeringPDE1D
 

Similar to The Casting Demonstrator. Using the Raspberry Pi for graphics and simulated floor heating (20)

Slides - Day 10.pdf
Slides - Day 10.pdfSlides - Day 10.pdf
Slides - Day 10.pdf
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
Apresentação FLOSS
Apresentação FLOSSApresentação FLOSS
Apresentação FLOSS
 
Projects list raspberry pi projects-1230 - projects
Projects list   raspberry pi projects-1230 - projectsProjects list   raspberry pi projects-1230 - projects
Projects list raspberry pi projects-1230 - projects
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
Raspberry Pi
 Raspberry Pi  Raspberry Pi
Raspberry Pi
 
Bridging the Pervasive Computing Gap: An Aggregate Perspective
Bridging the Pervasive Computing Gap: An Aggregate PerspectiveBridging the Pervasive Computing Gap: An Aggregate Perspective
Bridging the Pervasive Computing Gap: An Aggregate Perspective
 
FINAL SEMINAR REPORT OF RASPBERRY PI
FINAL SEMINAR REPORT OF RASPBERRY PIFINAL SEMINAR REPORT OF RASPBERRY PI
FINAL SEMINAR REPORT OF RASPBERRY PI
 
SEMINAR REPORT OF RASPBERRY PI
SEMINAR REPORT OF RASPBERRY PI SEMINAR REPORT OF RASPBERRY PI
SEMINAR REPORT OF RASPBERRY PI
 
Deploying a Task-based Runtime System on Raspberry Pi Clusters
Deploying a Task-based Runtime System on Raspberry Pi ClustersDeploying a Task-based Runtime System on Raspberry Pi Clusters
Deploying a Task-based Runtime System on Raspberry Pi Clusters
 
Socket programming
Socket programmingSocket programming
Socket programming
 
Projects list 1271 raspberry pi projects
Projects list  1271 raspberry pi projectsProjects list  1271 raspberry pi projects
Projects list 1271 raspberry pi projects
 
Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...
 
Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!
 
CS 354 Introduction
CS 354 IntroductionCS 354 Introduction
CS 354 Introduction
 
Flash and Hardware
Flash and HardwareFlash and Hardware
Flash and Hardware
 
pythonOCC PDE2009 presentation
pythonOCC PDE2009 presentationpythonOCC PDE2009 presentation
pythonOCC PDE2009 presentation
 
report
reportreport
report
 
Linux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and EngineeringLinux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and Engineering
 
1st RINASim Webinar
1st RINASim Webinar1st RINASim Webinar
1st RINASim Webinar
 

More from InfinIT - Innovationsnetværket for it

More from InfinIT - Innovationsnetværket for it (20)

Erfaringer med-c kurt-noermark
Erfaringer med-c kurt-noermarkErfaringer med-c kurt-noermark
Erfaringer med-c kurt-noermark
 
Object orientering, test driven development og c
Object orientering, test driven development og cObject orientering, test driven development og c
Object orientering, test driven development og c
 
Embedded softwaredevelopment hcs
Embedded softwaredevelopment hcsEmbedded softwaredevelopment hcs
Embedded softwaredevelopment hcs
 
C og c++-jens lund jensen
C og c++-jens lund jensenC og c++-jens lund jensen
C og c++-jens lund jensen
 
201811xx foredrag c_cpp
201811xx foredrag c_cpp201811xx foredrag c_cpp
201811xx foredrag c_cpp
 
C som-programmeringssprog-bt
C som-programmeringssprog-btC som-programmeringssprog-bt
C som-programmeringssprog-bt
 
Infinit seminar 060918
Infinit seminar 060918Infinit seminar 060918
Infinit seminar 060918
 
DCR solutions
DCR solutionsDCR solutions
DCR solutions
 
Not your grandfathers BPM
Not your grandfathers BPMNot your grandfathers BPM
Not your grandfathers BPM
 
Kmd workzone - an evolutionary approach to revolution
Kmd workzone - an evolutionary approach to revolutionKmd workzone - an evolutionary approach to revolution
Kmd workzone - an evolutionary approach to revolution
 
EcoKnow - oplæg
EcoKnow - oplægEcoKnow - oplæg
EcoKnow - oplæg
 
Martin Wickins Chatbots i fronten
Martin Wickins Chatbots i frontenMartin Wickins Chatbots i fronten
Martin Wickins Chatbots i fronten
 
Marie Fenger ai kundeservice
Marie Fenger ai kundeserviceMarie Fenger ai kundeservice
Marie Fenger ai kundeservice
 
Mads Kaysen SupWiz
Mads Kaysen SupWizMads Kaysen SupWiz
Mads Kaysen SupWiz
 
Leif Howalt NNIT Service Support Center
Leif Howalt NNIT Service Support CenterLeif Howalt NNIT Service Support Center
Leif Howalt NNIT Service Support Center
 
Jan Neerbek NLP og Chatbots
Jan Neerbek NLP og ChatbotsJan Neerbek NLP og Chatbots
Jan Neerbek NLP og Chatbots
 
Anders Soegaard NLP for Customer Support
Anders Soegaard NLP for Customer SupportAnders Soegaard NLP for Customer Support
Anders Soegaard NLP for Customer Support
 
Stephen Alstrup infinit august 2018
Stephen Alstrup infinit august 2018Stephen Alstrup infinit august 2018
Stephen Alstrup infinit august 2018
 
Innovation og værdiskabelse i it-projekter
Innovation og værdiskabelse i it-projekterInnovation og værdiskabelse i it-projekter
Innovation og værdiskabelse i it-projekter
 
Rokoko infin it presentation
Rokoko infin it presentation Rokoko infin it presentation
Rokoko infin it presentation
 

Recently uploaded

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 

Recently uploaded (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

The Casting Demonstrator. Using the Raspberry Pi for graphics and simulated floor heating

  • 1. Cassting Demonstrator Mads Kronborg Kim G. Larsen Marco Muniz Petur Olsen Thomas Pedersen Arne Skou Jiri Srba Center for Embedded Software Systems Aalborg University, Denmark petur@cs.aau.dk InfinIT, November 3, 2016
  • 2. Introduction Demonstrator Raspberry Pi Conclusion Introduction Cassting demonstrator Implementation on Raspberry Pi 2/21 petur@cs.aau.dk Cassting Demonstrator
  • 3. Introduction Demonstrator Raspberry Pi Conclusion Overview European research project System synthesis Floor heating controller Demonstrator Real and simulated devices 3/21 petur@cs.aau.dk Cassting Demonstrator
  • 4. Introduction Demonstrator Raspberry Pi Conclusion 4/21 petur@cs.aau.dk Cassting Demonstrator
  • 5. Introduction Demonstrator Raspberry Pi Conclusion 5/21 petur@cs.aau.dk Cassting Demonstrator
  • 6. Introduction Demonstrator Raspberry Pi Conclusion Homeport Middleware for heterogeneous home automation networks Abstracts underlying physical devices Adapters RESTful interface Real and simulated devices 6/21 petur@cs.aau.dk Cassting Demonstrator
  • 7. Introduction Demonstrator Raspberry Pi Conclusion Adapter1 Adapter2 ... Adaptern HomePort API Discovery Service Event Handler Request Handler Data Model Application1 Application2 ... Applicationm Logging Service Daemon Service Devices Devices Devices... Clients Clients Clients... 7/21 petur@cs.aau.dk Cassting Demonstrator
  • 8. Introduction Demonstrator Raspberry Pi Conclusion Tool Chain Architecture Uppaal- Stratego HomePort GUI Seluxit adapters temperature readings valve control data strategy weather forecast current data temperature set-point 8/21 petur@cs.aau.dk Cassting Demonstrator
  • 9. Introduction Demonstrator Raspberry Pi Conclusion Tool Chain Architecture Uppaal- Stratego HomePort GUI temperature readings valve control d dt Ti (t) = n j=1 Ad i,j (Tj (t) − Ti (t)) + Bi (Tenv(t) − Ti (t)) + Hv j,i · vj data strategy weather forecast current data temperature set-point 8/21 petur@cs.aau.dk Cassting Demonstrator
  • 10. Introduction Demonstrator Raspberry Pi Conclusion Tool Chain Architecture Uppaal- Stratego HomePort GUI temperature readings valve control d dt Ti (t) = n j=1 Ad i,j (Tj (t) − Ti (t)) + Bi (Tenv(t) − Ti (t)) + Hv j,i · vj data strategy weather forecast current data temperature set-point 8/21 petur@cs.aau.dk Cassting Demonstrator
  • 11. Introduction Demonstrator Raspberry Pi Conclusion HomePort Library Rest Webservice Simulink to Seluxit Seluxit Adapter House GFX (SDL2) Simulink ERT Adapter Forecast Adapter Controller Simulink Model LCD ScreenUPPAAL STRATEGO Seluxit Gateway Setpoint Ctrl Relay Box Valve1..n 9/21 petur@cs.aau.dk Cassting Demonstrator
  • 12. Introduction Demonstrator Raspberry Pi Conclusion HomePort Library Rest Webservice Simulink to Seluxit Seluxit Adapter House GFX (SDL2) Simulink ERT Adapter Forecast Adapter Controller Simulink Model LCD ScreenUPPAAL STRATEGO Seluxit Gateway Setpoint Ctrl Relay Box Valve1..n 10/21 petur@cs.aau.dk Cassting Demonstrator
  • 13. Introduction Demonstrator Raspberry Pi Conclusion 11/21 petur@cs.aau.dk Cassting Demonstrator
  • 14. Introduction Demonstrator Raspberry Pi Conclusion Implementation on Raspberry Pi Not Uppaal Homeport with adapters Matlab/Simulink Code Generation GUI - C++/SDL2 12/21 petur@cs.aau.dk Cassting Demonstrator
  • 15. Introduction Demonstrator Raspberry Pi Conclusion Matlab/Simulink Thermodynamics simulation Four times per second Homeport adapter Sends new values to Homeport Received values from Homeport Code generation out-of-the-box 13/21 petur@cs.aau.dk Cassting Demonstrator
  • 16. Introduction Demonstrator Raspberry Pi Conclusion Graphical User Interface Simple DirectMedia Layer C++ OpenGL Game development Simple game loop - event, update, render Dynamic rendering 14/21 petur@cs.aau.dk Cassting Demonstrator
  • 17. Introduction Demonstrator Raspberry Pi Conclusion 15/21 petur@cs.aau.dk Cassting Demonstrator
  • 18. Introduction Demonstrator Raspberry Pi Conclusion 16/21 petur@cs.aau.dk Cassting Demonstrator
  • 19. Introduction Demonstrator Raspberry Pi Conclusion 17/21 petur@cs.aau.dk Cassting Demonstrator
  • 20. Introduction Demonstrator Raspberry Pi Conclusion Performance issues Runs at about 2-3 FPS CPU utilization about 40% Vast majority of CPU time spent waiting for drawing Grid tiles 96x54 = 5184 18/21 petur@cs.aau.dk Cassting Demonstrator
  • 21. Introduction Demonstrator Raspberry Pi Conclusion Possible solution Pre-render background Bake rooms Did not help 19/21 petur@cs.aau.dk Cassting Demonstrator
  • 22. Introduction Demonstrator Raspberry Pi Conclusion Possible solution Pre-render background Bake rooms Did not help Full HD 1920x1080 Proves to much for the graphics chip 19/21 petur@cs.aau.dk Cassting Demonstrator
  • 23. Introduction Demonstrator Raspberry Pi Conclusion Possible solution Pre-render background Bake rooms Did not help Full HD 1920x1080 Proves to much for the graphics chip No graphics upgrade in new Raspberry Pi 19/21 petur@cs.aau.dk Cassting Demonstrator
  • 24. Introduction Demonstrator Raspberry Pi Conclusion Conclusion Excellent platform for the demonstrator (Mostly) Easy to develop on Prototyping with Matlab/Simulink Very good performance, except Lacking graphics performance 20/21 petur@cs.aau.dk Cassting Demonstrator
  • 25. Introduction Demonstrator Raspberry Pi Conclusion Questions? 21/21 petur@cs.aau.dk Cassting Demonstrator