1 of 18

基於ARM® mbed™ 平台

的物聯網應用實作

組員:鄒乙豪、何維濂、柯景翔

指導老師:Joseph

日期: 2016/7/15

2 of 18

簡報大綱

  1. 專題緣起/引言
  2. 製作目標
  3. 系統方塊
  4. 實作技術
  5. 使用者介面
  6. 專案成果與展示
  7. 感言與問答

3 of 18

1.1 專題緣起

4 of 18

1.2 物聯網的障礙

  • 連上網路?防火牆?安全?
  • 手機電腦要如何讀取資料?
  • 網頁?Refresh?
  • 程式不斷輪詢?電?
  • 節點裝置管理?
  • 跨平台開發?
  • 團隊協同開發?

5 of 18

2. 製作目標

6 of 18

3. 系統方塊

mbed DS

Website on

Google cloud

ethernet

wifi

mbed API

mbed OS

Linux

...

GPIO

I2C

LED

Button

Buzzer

Gyro

Sensor

Relay

edge board

...

7 of 18

4.1 實作技術 device platform

COAP

HTTPS

HTTP

Web APP

8 of 18

4.2 實作技術 mbed Interface

CMSIS-Core / Driver

IP Stack

Thread/Time

Interrupts

C++ APIS

Application / Libraries

GPIO

I2C

Ethernet

LED

Buzzer

Relay

Sensor + Fan

Gyro

9 of 18

4.3

event

flow

CMSIS-Core / Driver

IP Stack

Thread/Time

Interrupts

C++ APIS

Application / Libraries

GPIO

I2C

Ethernet

2. Read data from I/O

3. Sent value to

resource

1. Register the device & resource

mDS

COAP

COAP

4. Method handlader

5. Payload parser

6. Write data to I/O

LED

Buzzer

Relay

Sensor + Fan

Gyro

10 of 18

4.4 實作技術

webUI

Express / Flask

node.js / Python

HTTP

mbed-connector-api

Socket.io

HTML5

JQuery

Socket.io

JavaScript

CSS

web socket

RESTful Web interfaces with Access Key

mDS

HTTPS

11 of 18

4.5 實作技術WebAPP

  • Backend-end
    • The REST API URL for all requests for mDS
    • Node.js+Express (Node.JS web framework)
    • Node.js http
    • Node.js Socket.io
    • "mbed-connector-api"
    • hbs: Handlebars HTML template
  • Front-end
    • JQuery
    • JS/Socket.io (socket.io-client)
    • JSON Parser

12 of 18

4.6 OMA LWM2M Data Model

13 of 18

5. 使用者介面

14 of 18

6.1 專案的成果

  • 連上網路?防火牆?安全?
    • coap , mbed connector server, TLS
  • 行動裝置要如何讀取資料?
    • HTML + Javascript + CSS
  • 網頁?Refresh?
    • Python / node.js
  • 程式不斷輪詢?電?
    • mbedos + event trigger

15 of 18

6.2 專案的成果

  • 節點裝置管理?
    • OMA LWM2M + RESTful API
  • 跨平台開發?
    • Yotta
  • 團隊協同開發?
    • Yotta, mbed Development Platform

16 of 18

6.1 系統展示 motion-sensor

on FRDM-K64F

  • LED
  • Button
  • Gyro sensor

17 of 18

6.2 實際展示: environment-sensor

on Raspberry pi 2

  • Button
  • Relay -> Fan
  • Env Sensor
  • OLED

18 of 18

7. 感言及問答