38
Evolution to OS of Everything Tizen Micro profile for low-end IoT devices (Cho, Yong Jin) [email protected] Software Center, Samsung Elec.

Tizen Micro Profile for IoT device

  • Upload
    ryo-jin

  • View
    712

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Tizen Micro Profile for IoT device

Evolution to OS of Everything

Tizen Micro profile for low-end IoT devices

趙 庸 鎭

(Cho, Yong Jin) [email protected]

Software Center, Samsung Elec.

Page 2: Tizen Micro Profile for IoT device

2 TIZEN 开发者大会 2015 中国 深圳

Contents

Part I. OS of Everything in IoT

Part II. Tizen Micro Profile

Part III. PoC of Tizen Micro Profile

Part IV. Future Plans

Page 3: Tizen Micro Profile for IoT device

Part I,

OS of Everything in IoT

Page 4: Tizen Micro Profile for IoT device

4 TIZEN 开发者大会 2015 中国 深圳

Internet of Things Part I. OS of Everything in IoT

Internet

???

Internet uses Things

Things use Internet

Page 5: Tizen Micro Profile for IoT device

5 TIZEN 开发者大会 2015 中国 深圳

Internet of Things

Q) Why do you want to use Internet?

A) If I know when my master is coming,

I can make room temperature

more comfortable for my master.

It will make my master happier.

Part I. OS of Everything in IoT

Page 6: Tizen Micro Profile for IoT device

6 TIZEN 开发者大会 2015 中国 深圳

Internet of Things

Q) How do you know when he is coming?

A) It depends.

My master is usually coming home by his car.

I may guess his arrival time,

if I know when he is parking his car at home.

Part I. OS of Everything in IoT

Page 7: Tizen Micro Profile for IoT device

7 TIZEN 开发者大会 2015 中国 深圳

Internet of Things

Q) If your master goes out after parking, ...

A) In the estimated time, if my master isn’t

coming home, I will send message to him.

“Air-conditioner: I started to make room temperature."

Part I. OS of Everything in IoT

He can stop me or let me know his arrival

by replying message. “Master: I will be home at 4:00pm."

Page 8: Tizen Micro Profile for IoT device

8 TIZEN 开发者大会 2015 中国 深圳

Internet of Things Part I. OS of Everything in IoT

The more utilizations of Internet,

the smarter services by IoT devices

Things use Internet

Page 9: Tizen Micro Profile for IoT device

9 TIZEN 开发者大会 2015 中国 深圳

What’s needed in the things?

Service App

Utilize the information from Internet of Things

Provide smart service and add more value to device

- Personalized service

- Context-aware service IoT

Open Platform

Internet

Part I. OS of Everything in IoT

Open platform, allowing to add new IoT service app

which provides more personalized service and make the device much smarter

Application framework / API

Page 10: Tizen Micro Profile for IoT device

10 TIZEN 开发者大会 2015 中国 深圳

Another way?

Service App Device App

Part I. OS of Everything in IoT

IoT

Open Platform

Internet

HUB

Provide the pre-defined

interface

[w/o AppFW]

Device provides only the pre-defined interface to the connected.

Service app is running on the other device or cloud which can provide

the more personalized service.

Page 11: Tizen Micro Profile for IoT device

11 TIZEN 开发者大会 2015 中国 深圳

OS of Everything in IoT

Internet of Things

Nano Micro Full

(TV, Mobile)

, Tizen Part I. OS of Everything in IoT

[AppFW] [w/o AppFW]

Page 12: Tizen Micro Profile for IoT device

Part II,

Tizen Micro Profile

Page 13: Tizen Micro Profile for IoT device

13 TIZEN 开发者大会 2015 中国 深圳

Tizen Micro Profile Part II. Tizen Micro Profile

Service App

<<IoT Open Platform>>

Tizen Micro Profile

Internet

Tizen profile for developing IoT device which has application framework

and exposes APIs, that allows to add IoT services.

Utilize the information from Internet of Things

Provide smart service and add more value to device

- Personalized service

- Context-aware service

Page 14: Tizen Micro Profile for IoT device

14 TIZEN 开发者大会 2015 中国 深圳

Requirement - Market Part II. Tizen Micro Profile

MCU

MCU

Physical Integration UART, I2C, ...

Cost Effectiveness 32M FLASH, 64M RAM

Wi-Fi SoC

Tizen

Micro

Internet

Model with IoT

Model w/o IoT

Page 15: Tizen Micro Profile for IoT device

15 TIZEN 开发者大会 2015 中国 深圳

<<remote>>

Device Cloud

Tizen Micro Device

App

<<local>>

Device

Requirement - Apps Part II. Tizen Micro Profile

Tizen Micro Apps want to use

- Internet service from cloud

- Service from the other connected device

- Local device service

Tizen Micro Apps need to provide

- Internet service to cloud

- Service to the other connected device

- Event handler from local device

use service from IoT + provide service to IoT

Page 16: Tizen Micro Profile for IoT device

16 TIZEN 开发者大会 2015 中国 深圳

Architecture Part II. Tizen Micro Profile

<<remote>>

Device Cloud

Tizen Micro Device

App

<<local>>

Device RESTful

XML/JSON over HTTP

RESTful

XML/JSON over HTTP

Web of Things connects things through the existing Web technology

(XML/JSON over HTTP)

Page 17: Tizen Micro Profile for IoT device

17 TIZEN 开发者大会 2015 中国 深圳

Architecture – Web of Things Part II. Tizen Micro Profile

System

Web Server

JavaScript App FW

<<JavaScript>>

Service App

JSON

(HTTP)

JavaScript is the most popular language in web,

not only client-side but also server-side

Page 18: Tizen Micro Profile for IoT device

18 TIZEN 开发者大会 2015 中国 深圳

Architecture – Device BUS Part II. Tizen Micro Profile

<<JavaScript>>

Device App

Device BUS

System

Web Server

JavaScript App FW

<<JavaScript>>

Service App

Device

UART

Page 19: Tizen Micro Profile for IoT device

19 TIZEN 开发者大会 2015 中国 深圳

Architecture – Device BUS Part II. Tizen Micro Profile

System

Web Server

JavaScript App FW

<<JavaScript>>

Service App

Device BUS

<<JavaScript>>

Device App

Device

ZigBee, Z-Wave, ...

Extends to the external device

Page 20: Tizen Micro Profile for IoT device

20 TIZEN 开发者大会 2015 中国 深圳

Tizen Nano Device Part II. Tizen Micro Profile

System

Web

Server

JavaScript App FW

<<JavaScript>>

Service App

Device BUS

<<JavaScript>>

Device App

Device

UART

Equivalent Service Model

(Tizen Micro)

Tizen Nano Device

System

Web

Server

JavaScript App FW

<<JavaScript>>

Service App

Device BUS

<<JavaScript>>

Device App

Device

ZigBee

- Tizen Companion Device

- Device App installed on Tizen Device

- Equivalent Device Function of Tizen Micro,

added to Tizen Device

Page 21: Tizen Micro Profile for IoT device

21 TIZEN 开发者大会 2015 中国 深圳

Tizen Full Profile & Micro Part II. Tizen Micro Profile

Web of Things and Device BUS features in Tizen Micro profile

can be integrated into the existing Tizen profiles.

System

Web Browser

Core Services for Tizen TV profile

Web App <<JavaScript>>

Service App <<JavaScript>>

Device App

Web

Server

JavaScript App FW

Device BUS

Page 22: Tizen Micro Profile for IoT device

22 TIZEN 开发者大会 2015 中国 深圳

Tizen 3.0 & Micro Profile Part II. Tizen Micro Profile

Tizen GIT repository git://review.tizen.org

/platform/framework/native

/platform/framework/web

/platform/kernel/linux-3.10

/platform/upstream/glib

/platform/upstream/nodejs

/platform/profile/mobile

/platform/profile/tv

/platform/profile/micro

Tizen Micro Profile

Tizen TV Profile

Tizen Mobile Profile

Page 23: Tizen Micro Profile for IoT device

Part III,

PoC of Tizen Micro

Profile

Page 24: Tizen Micro Profile for IoT device

24 TIZEN 开发者大会 2015 中国 深圳

Proof of Concept Part III. PoC of Tizen Micro Profile

- Memory footprints: 32M FLASH, 64M RAM

- Web of Things with JavaScript framework

- IoT scenarios

Linux Kernel

Core Libraries

glib openssl

Node.js Nginx

busybox

Framework

20M FLASH

40M RAM (Remote UI scenario)

Page 25: Tizen Micro Profile for IoT device

25 TIZEN 开发者大会 2015 中国 深圳

Demo Scenario Part III. PoC of Tizen Micro Profile

ARTIK10

Tizen 3.0 TV

<<service>>

Temp

Change

<<device>>

Person

<<device>>

Temp

<<service>>

Person

In/Out

Tizen Micro

Audio

<<service>>

Auto Play

Tizen Micro

Printer

Tizen Micro

Air-conditioner

<<service>>

Auto Control

22℃

22℃

OUT

<<service>>

Personal News

Page 26: Tizen Micro Profile for IoT device

Part IV,

Future Plans

Page 27: Tizen Micro Profile for IoT device

27 TIZEN 开发者大会 2015 中国 深圳

Future Plans Part IV. Future Plans

[Release 1. ’15. 4Q]

step 1. building Tizen Linux kernel and system on Raspberry Pi2

using Yocto

step 2. integrating Nginx and Node.js

step 3. building Device BUS

[Release 2. ‘16. 1Q]

- foot print optimization: 32M FLASH, 64M RAM

- product-line management

[Release 3. ‘16. 4Q]

- additional features: remote access, multimedia, etc.

Page 28: Tizen Micro Profile for IoT device

28 TIZEN 开发者大会 2015 中国 深圳

Tizen Micro profile on RTOS Part IV. Future Plans

Samsung opened development of IoT.js, JavaScript engine

and application framework for low-end IoT devices.

RTOS Linux

IoT.js Node.js iotjs.net

JerryScript V8 jerryscript.net

Page 29: Tizen Micro Profile for IoT device

29 TIZEN 开发者大会 2015 中国 深圳

The best way to connect everything Part IV. Future Plans

Inter-operability

Easier integration and spread of IoT

OS of everything in IoT

Micro

Nano OIC

WoT

Full

Page 30: Tizen Micro Profile for IoT device

30 TIZEN 开发者大会 2015 中国 深圳

Q & A

Page 31: Tizen Micro Profile for IoT device

31 TIZEN 开发者大会 2015 中国 深圳

Tizen Nano Device Part II. Tizen Micro Profile

Service App

Tizen Device

Internet

Device App

Provide the pre-defined

interface

HUB [w/o AppFW]

Tizen companion device, which adds device function

into another Tizen device with installing device app on it

Equivalent to Tizen Micro

Page 32: Tizen Micro Profile for IoT device

32 TIZEN 开发者大会 2015 中国 深圳

Package Name Git Repository

linux-3.10 platform/kernel

openssl-1.0.2 platform/upstream/openssl 1.0.1

nodejs-0.12.5 platform/upstream/nodejs 0.12.0

nginx-1.6.2 platform/upstream/nginx [new]

libglib2-2.42.0 platform/upstream/glib

busybox-1.23.1 platform/upstream/busybox 1.22.1

gettext-0.19.4 platform/upstream/gettext 0.18.3.2

pcre-8.36 platform/upstream/pcre 8.31

libffi-3.1 platform/upstream/libffi

zlib-1.2.8 platform/upstream/zlib

uclibc-0.9.33.2 platform/upstream/uclibc [new]

Packages Used in PoC

Page 33: Tizen Micro Profile for IoT device

33 TIZEN 开发者大会 2015 中国 深圳

Internet of Things

Q) What else do you want more?

A) It will be helpful to know

- how the temperature is in the car

- whether he is excising or not

- where he is exactly at home

- how the weather or the forecast is

Part I. OS of Everything in IoT

I can provide more personalized service.

Page 34: Tizen Micro Profile for IoT device

34 TIZEN 开发者大会 2015 中国 深圳

Demo Scenario(1) person in

Part III. PoC of Tizen Micro Profile

ARTIK10

Tizen 3.0 TV

<<service>>

Temp

Change

<<device>>

Person

<<device>>

Temp

<<service>>

Person

In/Out

Tizen Micro

Audio

<<service>>

Auto Play

Tizen Micro

Printer

Tizen Micro

Air-conditioner

<<service>>

Auto Control

22℃

22℃

IN

Page 35: Tizen Micro Profile for IoT device

35 TIZEN 开发者大会 2015 中国 深圳

Demo Scenario(2) new service added

Part III. PoC of Tizen Micro Profile

ARTIK10

Tizen 3.0 TV

<<service>>

Temp

Change

<<device>>

Person

<<device>>

Temp

<<service>>

Person

In/Out

Tizen Micro

Audio

<<service>>

Auto Play

Tizen Micro

Printer

<<service>>

Personal News

Tizen Micro

Air-conditioner

<<service>>

Auto Control

22℃

22℃

IN

Page 36: Tizen Micro Profile for IoT device

36 TIZEN 开发者大会 2015 中国 深圳

Demo Scenario(3) temperature up

Part III. PoC of Tizen Micro Profile

ARTIK10

Tizen 3.0 TV

<<service>>

Temp

Change

<<device>>

Person

<<device>>

Temp

<<service>>

Person

In/Out

Tizen Micro

Audio

<<service>>

Auto Play

Tizen Micro

Printer

<<service>>

Personal News

Tizen Micro

Air-conditioner

<<service>>

Auto Control

25℃

23℃

IN

Page 37: Tizen Micro Profile for IoT device

37 TIZEN 开发者大会 2015 中国 深圳

Demo Scenario(4) person out

Part III. PoC of Tizen Micro Profile

ARTIK10

Tizen 3.0 TV

<<service>>

Temp

Change

<<device>>

Person

<<device>>

Temp

<<service>>

Person

In/Out

Tizen Micro

Audio

<<service>>

Auto Play

Tizen Micro

Printer

<<service>>

Personal News

Tizen Micro

Air-conditioner

<<service>>

Auto Control

24℃

22℃

OUT

Page 38: Tizen Micro Profile for IoT device

38 TIZEN 开发者大会 2015 中国 深圳

Demo Scenario(5) scheduled

Part III. PoC of Tizen Micro Profile

ARTIK10

Tizen 3.0 TV

<<service>>

Temp

Change

<<device>>

Person

<<device>>

Temp

<<service>>

Person

In/Out

Tizen Micro

Audio

<<service>>

Auto Play

Tizen Micro

Printer

<<service>>

Personal News

Tizen Micro

Air-conditioner

<<service>>

Auto Control

24℃

22℃

OUT

AM 6:00