MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” !...

20
1 © 2015 The MathWorks, Inc. MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln und Analysieren ihrer IoT Daten Dr.-Ing. Rainer Mümmler

Transcript of MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” !...

Page 1: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

1 © 2015 The MathWorks, Inc.

MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln und Analysieren ihrer IoT Daten

Dr.-Ing. Rainer Mümmler

Page 2: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

2

What is IoT – Internet of Things?

§  “Internet der Dinge” §  “Internet of Everything” §  “Industrie 4.0” §  “M2M”

§  “IoT is literally collecting sensor data from IP addressable sensors anywhere in the world for anything and transmitting the data.” Tom Moore, IHS Analyst II, Industrial Automation

§  “It’s about enabling connectivity and imbedded intelligence in more devices,” says Bill Morelli, IHS director, Internet of Things and M2M, more generally that,” the IoT is about the communication of useful information between devices. In this sense, it's important to keep in mind that IoT is in itself not a thing but “a conceptual framework”.

§  …

Page 3: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

3

Internet of Things System

Page 4: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

4

Developing and Testing Edge Node Devices

Smart Devices, Wearables, Smart Watches

Page 5: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

5

Developing and Testing Edge Node Devices

Challenges: §  Don’t want to send too much data – need data reduction §  Connectivity – no agreed standards yet for IoT connectivity, reliant on

Bluetooth and WiFi §  Need for smart, low power algorithms

Page 6: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

6

Accessing and Aggregating Data

Page 7: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

7

Accessing and Aggregating Data

Challenges: §  Cloud based analytics needs to be streaming §  The ability to take action - notifications §  Communication protocols

Page 8: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

8

Exploratory Analysis of IoT Data

Page 9: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

9

Exploratory Analysis of IoT Data

Challenges: §  Variety between applications with small Data and Big Data §  No idea what’s in the data and difficult gaining access §  Deployment of algorithms: local or cloud based

Page 10: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

10

MathWorks Solutions

Page 11: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

11

MathWorks Solutions

Data Analysis Data Analytics Techniques

Page 12: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

12

MathWorks Solutions

Acces to Data Aggregators Database Connectivity Built-in web services commands

Page 13: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

13

MathWorks Solutions

Signal Processing and Communications Applications Code Generation for Embedded Systems and SoCs Verify the communication using test equipment: Test and Measurement

Page 14: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

14

Weather Station Example

MATLAB Central: Analyzing Weather Data from an Arduino-based weather station Makerzone: Arduino Weather Station Data Analysis

Page 15: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

15

To Enable Custom Data Analysis and Visualization

§  Data was brought into MATLAB using thingSpeakFetch function –  thingSpeakFetch on File Exchange

[d,t,ci] = thingSpeakFetch(12397,'NumPoints',8000)

§  ThingSpeakFetch supports retrieving data in a variety of ways

Page 16: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

16

Custom Data Analysis & Visualization of the Data using MATLAB

§  Analysis: –  Remove noise and outliers –  Calculate summary statistics –  Calculate daily and weekly trends –  Implement custom algorithm (e.g. dew point)

§  Visualization: –  Surface plots –  Histogram –  Bar charts, Compass plots

Page 17: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

17

Historical and Live Analysis of Data

§  What direction was the wind blowing during the last 3 hours? §  How have the temperature and dew point varied over the last week? §  Does the barometric pressure really fall as a rain storm approaches?

Page 18: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

18

Collecting Data with ThingSpeak

Page 19: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

19

ThingSpeak Support from MATLAB and Simulink

Hardware support packages for Arduino and Rasperry Pi

Page 20: MATLAB in der Welt des Internet der Dinge (IoT) – Sammeln ...€¦ · “Internet der Dinge” ! “Internet of Everything” ! “Industrie 4.0” ! “M2M” ! “IoT is literally

20

Additional Ressources

Internet of Things solution page: www.mathworks.com/iot