TIZEN Overview

Preview:

Citation preview

Open Source Project

T I Z E N O v e r v i ew

2014.09.22

1Introduction to Tizen

2How to Develop Tizen

Applications

3Example of Tizen

Application

4About Ajou Tizen

Supporters

I N D E X

3

1Introduction to Tizen

• Android’s market share – 70%

• Patent fee - Android platform and its associated technologies

• Competition between mobile device manufacturers

• Necessity for an alternative OS

• TIZEN, Firefox OS, Ubuntu Mobile

4

Background

• Computing Platform

– Environment that an applications can be developed and executed on

– Platform ☞ Hardware + Operating System + Run-time libraries

– Includes services and open API’s

5

Background of Platform

• A project within Linux Foundation for a Smart Device OS

• Technical Steering Group: Samsung & Intel

• Open Source Platform Based on Linux kernel GNU C library

• Current(March 2015) release - TIZEN 2.3

• Application Type– Web app(HTML5/Javascript + CSS)

– Native app(C language)

– Hybird app(Web + Native)

6

What is TIZEN?

• Open source components of Tizen– X Windows, Cairo, EFL for UI & Graphics– Gstreamer, PulseAudio, OpenAL for Multimedia– Connman, Bluez, libsoup, wpa_supplicant for

Connectivity– WebKit2 for Web– SMACK & OpenSSL for Security– Dbus, glibc for Base– Sqlite for Database & PIM– Linux for OS Kernel– Eclipse for Tizen SDK– QEMU, U-Boot for Target Emulator– GCC, llvm, cmake, gbs for build– Etc….

7

What is TIZEN?

8

TIZEN Architecture

W3C/HTML5W3C/HTML5 Device APIsDevice APIs

Web RuntimeWeb Runtime

VideoVideo TouchTouch

CSS3CSS3 WebGLWebGL

WorkerWorker

BTBT CallCall

LBLB NFCNFC

MsgMsg… …

Web Framework

Kernel

Core Framework

ApplicationFrameworkApplicationFramework

Graphics & UIGraphics & UI MultimediaMultimedia WebWeb MessagingMessaging LocationLocation

SecuritySecurity SystemSystem BaseBase ConnectivityConnectivity TelephonyTelephony PIMPIM

Linux Kernel & device driversLinux Kernel & device drivers

Web ApplicationWeb Application

Native ApplicationNative Application

9

TIZEN Architecture

Kernel

Linux Kernel & device driversLinux Kernel & device drivers

Overall management of system devices/resources Linux Kernel

Core Framework

ApplicationFrameworkApplicationFramework

Graphics & UIGraphics & UI MultimediaMultimedia WebWeb MessagingMessaging LocationLocation

SecuritySecurity SystemSystem BaseBase ConnectivityConnectivity TelephonyTelephony PIMPIM

Provides infrastructure in which each application works seamlessly in the platform

Basic functions of mobile devices

10

TIZEN Core Services of Mobile

11

TIZEN Architecture

W3C/HTML5W3C/HTML5 Device APIsDevice APIs

Web RuntimeWeb Runtime

VideoVideo TouchTouch

CSS3CSS3 WebGLWebGL

WorkerWorker

BTBT CallCall

LBSLBS NFCNFC

MsgMsg… …

Application

Web Framework

Web ApplicationWeb Application Native ApplicationNative Application

Public API

API, Data Structure, and UI for Tizen App development Web Framework – HTML5/Javascript API, Device API

• API based on C for developing Native Application

• Tizen is Based on Standards

– Strongly supports HTML5

• Tizen is OPEN

• Tizen is Heterogeneous

– Designed to be used for various devices(profiles)

12

Reasons for Programming in Tizen

2How to Develop Tizen

Applications

14

Tizen Development Environment

W3C/HTML5W3C/HTML5 Device APIsDevice APIs

Web RuntimeWeb Runtime

VideoVideo TouchTouch

CSS3CSS3 WebGLWebGL

WorkerWorker

BTBT CallCall

LBSLBS NFCNFC

MsgMsg… …

Web Framework

Web Framework – HTML5, Javascript API Native Application - Tizen API based on C

• Web Apps – Web Application development environment – since Tizen 1.0

– Included in Tizen SDK

– Various sample applications

– Plans for Samsung smart TV’s with Tizen OS supporting web applications

15

Tizen Applications

• Web Apps Fundamental– W3C/HTML5

– Device API

– JqueryMobile base UI

• Device API– Based on JavaScript

– Provides access to Platform Device

– Device resources

– Asynchronous Success callback Function

16

Tizen Applications

• Web Apps

– HTML5 + Javascript + CSS 기반으로Running

– Package file: *.wgt

17

Tizen Application Package

Name Description

config.xml Application configuration data

icon.png Application Default icon

index.html Application Default start file

css/ CSS source file directory

js/ Javascript file directory

Web application Package contents

• Native Apps

– C and Tizen native API

– Package file: *.tpk

18

Tizen Application Package

Name Description

manifest.xml Application configuration data

resource/ Application Resource data

src/ Application source file

inc/ Application include header file

data/ Application Private data

lib/ Application library directory

shared/ Sharable directory between application

Native application Package contents

19

3Example of Tizen Application

20

Hello TIZEN!

21

Hello World

1. File > New > Tizen Web Project

22

2. Go to Templete > Basic > Basic Application , type in the project name and Enter

Hello World

23

You must have a security profile

before running an application

3. menu > Window > Preferences

4. Go to Security Profiles tab under

Tizen SDK, and click Add

After adding a profile name, click

Generate to use the Certificate

Generator

Fill out the required field(*) and click OK

Hello World

24

5. You can see the page design and the source code at the same time by opening index.html

Hello World

25

6. Click the left-most icon in the Connection Explorer to generate and start a Tizen emulator

Hello World

26

7. After an emulator is generated and turned on, you can run the project as a Tizen Web Application

Hello World

27

8. Tizen Web provides the Simulator to simulate sensor inputs or options to verify you applications

you can use the TizenWeb Simulator by going to Run as > Tizen Web Simulator(Google Chrome is required)

Hello World

28

Tizen API Reference

• https://developer.tizen.org/ provides the API documentation under Develop menu

29

Tizen Open Source (github)

4About Ajou Tizen Supporters

1) Google Site

2) Contacts

3) ETC

• https://sites.google.com/site/ajoutizencommunity

31

Google Site

Name Lab E-Mail Address Phone Number

Kwon, YongJae Paldal 1004-1 yjkwon1990@gmail.com 010-4412-5075

Lee, Seung-Kyu Paldal 1004-1 lsk2da@gmail.com 010-8526-5127

Park, Hyun-Ju Paldal 913 imcreator3@gmail.com 010-9338-0955

32

Contacts

33

Development Reference

34

Development Guide

https://developer.tizen.org/documentation/dev-guide/2.2.1

• Tizen official websites

– https://tizen.org

• Tizen SDK download and Events checking.

– mailing list & IRC

• IRC: discussion, troubleshooting, collaboration, chatting with other contributors

– source code: https://review.tizen.org/git/

– code review: https://review.tizen.org/gerrit/

– wiki: https://wiki.tizen.org

35

Reference Site

Recommended