雲端家電控制系統 joseph. Outline Motivation IoT System Architecture Hardware & Software specification Demo Q&A.

Slides:



Advertisements
Similar presentations
MINECRAFT MOD PROGRAMMING Part III of Minecraft: Pi Edition October 31, 2015.
Advertisements

Applications of Internet of Things based on Intel IDP system Embedded Core Group (Software) Mentor : Louis Lu Interns : Howard Chen Aaron Chang Aaron Chang.
Intel® XDK for IoT – Integration Point #1
Multiple Tiers in Action
Social Internet of Things Humans are connected to Internet. – Through Social Networking (e.g., facebook, foursquare, LinkedIn) Internet.
Lecture 8 Modeling & Simulation of Communication Networks.
Web Apps vs. Native Apps vs. Hybrid Apps vs. iBook Author Mobile Publishing:
WebRTC Multimedia in www Ján Murányi, Ivan Kotuliak.
A day in the life: scenario
Link Layer 5-1 Link layer, LAN s: outline 5.1 introduction, services 5.2 error detection, correction 5.3 multiple access protocols 5.4 LANs  addressing,
1 John Magee 11 July 2013 CS 101 Lecture 11: How do you “visit” a web page, revisted Slides adapted from Kurose and Ross, Computer Networking 5/e Source.
ASP.NET Web API. ASP.NET Members MS Open Source ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source ASP.NET MVC 4, ASP.NET.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
Share your View I-See. Outline Control (UE) – Smart Glass (Send/Reciver) Communication Cloud Server ( Raspberry PI 2) Hotspot Map Future Work.

Zz SOCKET.IO going real time with Arnout Kazemier
Link Layer5-1 Synthesis: a “day” in the life of a web request  journey down protocol stack!  application, transport, network, link  putting-it-all-together:
SaaS application apply on WISE-PaaS RESTful APIs Final Report Intern Jeffrey Hung, Hank Tsai.
Esri UC 2014 | Demo Theater | Using ArcGIS Online App Logins in Node.js James Tedrick.
Cevgroup.org C utting E dge V isionaries. cevgroup.org TODAY’s TALK 1) Internet Of Things (IoT) 2) Wi-Fi Controlled Robots 3) Augmented Reality.
Welcome to Azure App Services! Amie Seisay
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
1 KaaShivInfoTech Presents Intel XDK For Inplant Training / Internship, please download the "Inplant training registration form" from our website
INTRODUCING HYBRID APP KAU with MICT PARK IT COMPANIES Supported by KOICA
家電控制系統-WSN+ARM mbed
Introduction to Networks
Virtualization of networks
Web Technologies Computing Science Thompson Rivers University
IoT Integration Patterns, REST, and CoAP
Brice Copy, Mirjam Labrenz
WWU Hackathon May 6 & 7.
A Typical Connection Scenario
Websocket Application
Cloud Architecture Internet of Everything Meetup
SQL Server Reporting Service & Power BI
System Design of Internet-of-Things for Residential Smart Grid
What has Azure to offer to IoT Developers?
IoT 技術架構簡介 M2M 通訊協定.
Course Review 2015 Computer networks 赵振刚
Tracking and Booking Taxi
3 Things Everyone Knows About Node JS That You Don't
Chapter 10: DHCP Routing & Switching Chapter 10: DHCP
Internet of Things.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
The Internet of Things (IoT)
CISCO Implementing Cisco IP Routing (ROUTE v2.0) Dumps VCE
Open Automation Software
Open Automation Software
KnightHome Sponsored by Leidos
Mobile-Controlled Lighting
Introduction to Networks
Chapter 6 The Data Link layer
03 | Building a Backend with Socket.IO and Mongo
Purdue University Fort Wayne
MOBILE CONTROLLED LIGHTING Prototype
$, $$, $$$ API testing Edition
KaaShivInfoTech Presents
TMS RADical WEB : TMS WEB Core intro
Module P3 Practical: Building a webapp in nodejs and
Purdue University Fort Wayne
GMA Gas detection system
Tareq Khan, Ph.D. Assistant Professor,
Google Cloud Messaging (sort of)
Distributed AI and Edge-oriented IoT Infrastructures for Smart Cities
Intro to IoT & JavaScript
Synthesis A day in the life of a web request
Web Technologies Computing Science Thompson Rivers University
Sending a text message (and more)
Erik Porter Program Manager ASP.NET Microsoft Corporation
IoT Security and Privacy
Presentation transcript:

雲端家電控制系統 joseph

Outline Motivation IoT System Architecture Hardware & Software specification Demo Q&A

Motivation 節能議題與物聯網 結合無線感測網路 (WSN) 與 IoT, 進行遠端家 電控制與能源監測 WSN : Application

IoT 系統架構 A D C B IoT Gateway GPIO ARM mbed device connector 110V Wi-Fi RESTful API/ HTTP MQTT GPIO

Hardware & Software specification Hardware 1)FCM2401 Module ( )x4 Relay & Switch Module Lamp (110V) 2)Raspberry Pi 3 for IoT Gateway x1 Pi Shield for buzzer Software 1)Routing protocol in FCM2401Module 2)mbed Client for mDS server 3)Node.js for Cloud Server ( between mDS server and browser) 4)Web APP

Multi-hop in WSN A D C B IoT Gateway Switch State Relay 110V Wi-Fi Switch Relay Control send_DATA(NORMAL) send_DATA_ACK (ACK) GPIO

My data Format Dest ID Seq No. Relay on/off Src MAC Src ID for Routing

send_DATA() TypeDest IDDest MACSrc IDSrc MACLenData[10] 0x10'B'0x0002'A'0x00017 for Routing 'D'0 state Dest ID 'A' 0x0001 Seq No. Relay on/off Src MAC Src ID Example: 'A'-->'D'

send_DATA_ACK() TypeDest IDDest MACSrc IDSrc MACLenData[10] 0x11'C'0x0003'D'0x00043 for Routing 'A' 0 state Seq No. Switch on/off Example: 'D'-->'A' Dest ID

Structure of routing table dest_id dest_macnext_id next_mac B0x0002B D0x0004D example: C's (MAC addr=0x003) routing table

dest_id dest_macnext_id next_mac B0x0002B D0x0004D find_next_hop() r =find_next_hop('B',tbl); r TypeDest IDDest MACSrc IDSrc MACLenData[10] 0x11'B'0x0002'C'0x0003 'C'-->'B'

Routing table 建構方式 用 Broadcast WHOAMI/WHOAMI_REPLY 建立一條 reverse path 沒有人回應時, 自己就是 A 用 unicast 建立一條 forward path (A 可以到 D) D0x0004D Relay Switch C0x0003C A B C D A0x0001A B0x0002B D0x0004C0x0003 D0x0004B0x0002 假設

PART 2 ARM MBED CLOUD

mbed Device Connector Free to IoT developers Free tier is limited to 100 devices, 10,000 events per hours and two API keys.

Resource Path for RESTful API GPIO/ 0/ 1)STATE 1/ 1)BUTTON1 2)BUTTON2 3)Zigbee 4)….. 可以將 GPIO 註冊成為一種資源來進行讀 / 寫 / 執行函式 利用 HTTP GET 讀取 Zigbee 裝置的狀態 利用 HTTP POST 控制 Zigbee 裝置動作 ( 執行特定函式 ) 1) 函式參數可由 POST Payload 取出 Example: HTTP POST GPIO/1/Zigbee with payload "relay=on"

註冊 Resource

HTTP long Polling HTTP Get GPIO/1/Zigbee Resource Path: GPIO/1/Zigbee

HTPP Response

HTTP POST "relay=on" or "relay=off" curl -v -H 'Authorization: Bearer ' -H Content-Type:text/plain -X POST --data-raw 'relay=off' 5e48-4f89-8eb6-e9fae4b32a14/GPIO/1/Zigbee/

WebAPP Socket.io Express node.js HTTP mbed-connector-api mbed DS HTML JQuery Socket.io JavaScript CSS web Socket HTTPS RESTful Web interfaces with Access Key

Demo

問題 Pi 必須提供電源端的 3.3V 及 5V 才能使 MCU 的 GPIO 看到 1, 其他 Pi 的輸出接腳, 即使 >3.3V 能然使得 MCU GPIO=1 電流問題, Pi 的 GPIO 腳輸出電流太小 (~30mA).. 不足以驅動 MCU 上的電晶體使得 MCU 無法看見 GPIO 變化 1) 必須輸入電流 >=400mA 才能看見變化

解法方案 (1) 接一顆電晶體 (2) 用 Relay 解決 Raspberry PiMCU MCU' 5V MCU' GPIO Pi GPIO

THANK YOU