{"id":264,"date":"2013-02-11T12:07:11","date_gmt":"2013-02-11T10:07:11","guid":{"rendered":"http:\/\/marko-seifert.de\/blog\/?p=264"},"modified":"2020-01-15T12:23:36","modified_gmt":"2020-01-15T10:23:36","slug":"das-internet-der-dinge-teil-1","status":"publish","type":"post","link":"http:\/\/marko-seifert.de\/blog\/?p=264","title":{"rendered":"Teil 1: Das Internet der Dinge &#8211; Infrastruktur und Ger\u00e4te"},"content":{"rendered":"<h1>Ein Experiment mit Arduino, MQTT, Apache ActiveMQ und Apache Camel<\/h1>\n<p><!--more--><\/p>\n<h2>Einleitung<\/h2>\n<p>Die IBM-Vision\u00a0des Internets der Dinge ist der smarte Planet.<\/p>\n<ul>\n<li>Instrumentiert<\/li>\n<li>miteinander verbunden<\/li>\n<li>intelligent<\/li>\n<\/ul>\n<div id=\"attachment_272\" style=\"width: 444px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/smart.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-272\" class=\"size-full wp-image-272\" title=\"Smarter Planet\" src=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/smart.png\" alt=\"\" width=\"434\" height=\"119\" srcset=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/smart.png 434w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/smart-300x82.png 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/a><p id=\"caption-attachment-272\" class=\"wp-caption-text\">Smarter Planet (Quelle IBM Redbooks &#8222;Building Smarter Planet Solutions with MQTT and IBM WebSphere MQ Telemetry&#8220;)<\/p><\/div>\n<p>Die technische Grundlage f\u00fcr den Ansatz stellt Messaging dar. Bereits 1999 wurde von Andy Stanford-Clark (IBM) und Arlen Nipper (Eurotech) das Messaging-Protokoll MQTT (Message Queue Telemetry Transport) entwickelt.<\/p>\n<blockquote><p>MQTT is a machine-to-machine (M2M)\/&#8220;Internet of Things&#8220; connectivity protocol. It was designed as an extremely lightweight publish\/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and\/or network bandwidth is at a premium. For example, it has been used in sensors communicating to a broker via satellite link, over occasional dial-up connections with healthcare providers, and in a range of home automation and small device scenarios. It is also ideal for mobile applications because of its small size, low power usage, minimised data packets, and efficient distribution of information to one or many receivers &#8230; Quelle:\u00a0<a href=\"http:\/\/mqtt.org\/\">http:\/\/mqtt.org\/<\/a><\/p><\/blockquote>\n<p>Das Protokoll wird neben IBM WebSphere\u00ae MQ Telemetry auch von Open Source Brokern wie z.B. Apache ActiveMQ oder unterst\u00fcrzt. Diesen werde ich in diesem Tutorial verwenden.<\/p>\n<h2>Systemaufbau<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-282\" title=\"internet-der-dinge-fachlich\" src=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/internet-der-dinge-fachlich.png\" alt=\"\" width=\"598\" height=\"527\" srcset=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/internet-der-dinge-fachlich.png 598w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/internet-der-dinge-fachlich-300x264.png 300w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/internet-der-dinge-fachlich-340x300.png 340w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/p>\n<p>Das Prototyp-Bord simuliert zwei Sensoren (Taster 1 und Taster 2) und \u00a0vier Aktoren (LED 1-4). Es ist \u00fcber die digitalen Anschl\u00fcsse D02-D07 mit dem Arduino UNU-Board verbunden.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-268\" style=\"color: #333333; font-style: normal;\" title=\"IMG_4403\" src=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4403.jpg\" alt=\"\" width=\"448\" height=\"299\" srcset=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4403.jpg 448w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4403-300x200.jpg 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/p>\n<p>Das ArduinoBoard ist \u00fcber ein Ethernet-Shield per LAN mit einem Hausnetz verbunden. M\u00f6glich ist auch das Arduino per LAN mit einem WLAN-Router zu verbinden, der sich als WLAN-Client mit einem bestehenden Hausnetz verbindet. Ein Fonera mit DDWRT ist aufgrund seiner Gr\u00f6\u00dfe gut geeignet daf\u00fcr.<\/p>\n<p><a style=\"font-style: normal; line-height: 24px; text-decoration: underline;\" href=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4405.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-269\" style=\"border-color: #bbbbbb; background-color: #eeeeee;\" title=\"IMG_4405\" src=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4405.jpg\" alt=\"\" width=\"448\" height=\"299\" srcset=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4405.jpg 448w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/IMG_4405-300x200.jpg 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/a><\/p>\n<p><span style=\"color: #000000; font-weight: bold;\">Schaltplan Sensoren und Aktoren<\/span><\/p>\n<p><a href=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/sensor-actor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-289\" title=\"sensor-actor\" src=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/sensor-actor.png\" alt=\"\" width=\"630\" height=\"443\" srcset=\"http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/sensor-actor.png 630w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/sensor-actor-300x210.png 300w, http:\/\/marko-seifert.de\/blog\/wp-content\/uploads\/2013\/02\/sensor-actor-426x300.png 426w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<h2>Ausblick<\/h2>\n<p>Im <a href=\"http:\/\/marko-seifert.de\/blog\/?p=295\">zweiten Teil des Blogs<\/a> wird die Realisierung des Home-Gateways vorgestellt, was die die Sensoren und Aktoren an die MQTT Messaging-Welt anschlie\u00dft. Im dritten Teil des Blogs wird die zentrale Steuerlogik (HomeControl) vorgestellt, welche \u00fcber das Camel-Framework das intelligente Routing der Nachrichten und die fachliche Logik enth\u00e4lt.<\/p>\n<h2>Links<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.redbooks.ibm.com\/redbooks\/pdfs\/sg248054.pdf\">Building Smarter Planet Solutions with MQTT and IBM WebSphere MQ Telemetry<\/a><\/li>\n<li><a href=\"http:\/\/www.redbooks.ibm.com\/redpapers\/pdfs\/redp4929.pdf\">MQTT and Arduino Devices<\/a><\/li>\n<li><a href=\"http:\/\/knolleary.net\/arduino-client-for-mqtt\/\">Arduino Client for MQTT<\/a><\/li>\n<li>JavaMagazin 01\/2013, Push \u00a0Notifications f\u00fcr Android mit MQTT, Androiden im Internet der Dinge<\/li>\n<li><a href=\"http:\/\/marko-seifert.de\/blog\/?p=295\">Teil 2: Das Internet der Dinge &#8211; Vernetzung<\/a><\/li>\n<li><a href=\"http:\/\/marko-seifert.de\/blog\/?p=371\">Teil 3: Das Internet der Dinge &#8211; Logik<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ein Experiment mit Arduino, MQTT, Apache ActiveMQ und Apache Camel<\/p>\n","protected":false},"author":1,"featured_media":272,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,172,4,12,10],"tags":[59,58,161,60,57,127,128,103,64,56,65,55],"class_list":["post-264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-iot","category-java","category-microcontroller","category-softwarearchitektur","tag-apache-activemq","tag-apache-camel","tag-arduino","tag-broker","tag-eai","tag-internet-der-dinge","tag-internet-of-things","tag-m2m","tag-message-oriented-middleware","tag-messaging","tag-mom","tag-mqtt"],"_links":{"self":[{"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=264"}],"version-history":[{"count":46,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":1147,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/264\/revisions\/1147"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=\/wp\/v2\/media\/272"}],"wp:attachment":[{"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/marko-seifert.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}