Tizen.IoTivity.Init. Tizen IoTivity 를시작하기위한환경설정. Geunsun Lee

Similar documents
Lab2 - Bootloader. Conventions. Department of Computer Science and Information Engineering National Taiwan University

Zephyr Kernel Installation & Setup Manual

IoTivity Development on ARTIK 530s

Tizen TCT User Guide

Raspberry Pi Tutorial 2

Building Tizen Development Environment

Davide Cavaliere 18 th February 2017

Getting Started with BeagleBoard xm

Embedded Linux. A Tour inside ARM's Kernel

Lab: Setting up PL-App with a Raspberry Pi

RETROPIE INSTALLATION GUIDE

Mars ZX3 Android manual. Antmicro

Wallet Installation Guide for Staking on Raspberry PI

Cross-compilation with Buildroot

XLink Kai Raspberry Pi Beginners Tutorial

Copyright 2017 Samsung. All Rights Reserved. O-Hoon Kwon, Ph.D. Samsung Electronics

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Pengwyn Documentation

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to to download Raspbian to the PC.

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

REX-RED Community Android 4.3

Cubieboard4 Linux Sdk Guide TF BOOT & TF WRITE EMMC. Website: Support:

i.mx7dual L4.1.15_2.0.0

LotOS Framework. Getting Started Guide for Banana Pi. Copyright (C) 2015 ilbers GmbH Revision 1.1,

Introduction to the UNIX command line

Setup: Scratch GPIO. What is Scratch? Introducing Scratch GPIO. How to install Scratch GPIO. Obtain Scratch GPIO

IoTivity Development on Raspberry Pi* 3

Moving Your Application on the Raspberry Pi to the UC-8100-LX Computer. 1 Background Requirement Overview System Environment...

WB40NBT Quick Start Guide Version 2.0

Raspberry Pi Network Boot

Adafruit's Raspberry Pi Lesson 6. Using SSH

1. USB to Serial cable driver installation instructions 2. Instructions for use with Raspberry Pi 3. Instructions for use with WRT54g and similar

Tizen Project Guideline. SKKU Embedded Software Lab.

Building Tizen Development Environment

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Die Brummbeere Documentation

A113X1 Development Kit

You will need to know the IP address or the hostname of the pi (as discussed above) to continue and login to your pi via putty over Ethernet.

Raspberry Pi Class Ed 299. Mike Davis Truman College 5/26/2015

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Installation Guide for Linux

D, E I, J, K. Generalized Regular Expression Parser (GREP), 110 Generic 105 key (Intl) PC, 29 git command, 242

Tizen EFL UTC User Guide

Vantron VT-M2M-TC-VM ThingWorx Setup Guide

GIGABYTE. Software Reference Guide for MP30 (APM) Platform R01. Document Version:

Linux Essentials Objectives Topics:

Lab11 - Bare Metal Programming. Department of Computer Science and Information Engineering National Taiwan University

Preparing SD card for Pi

Raspberry Pi Kernel-o-Matic

Labs instructions for Enabling BeagleBone with TI SDK 5.x

Rover Documentation Tracing with Perf, Conversion to CTF, and analysis with TraceCompass

SAMA5D3x-CM Instruction to program images with PEEDI

Proview on Raspberry PI

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

DEVELOPMENT GUIDE AMOS-820. Linux BSP v

User-friendly Cross-platform Industry 4.0 Web Viewer Smartphone-App Free Hotline

Docusnap X - Docusnap Script Linux. Script-based Inventory for Linux

Connect the GSM-DSA to a router where the network is configured to x with a mask

xpress Release Notes

5inch HDMI LCD (B) User Manual

5inch HDMI Display User Manual

Linux PPPd for LTE CAT M1 Verizon Skywire on Raspberry Pi 3

Parking Lot Practical IOT COURSE

Simulation Manager Configuration Guide

Manual to install experimental firmware on a TYTERA MD380

Programming Microcontrollers using OpenOCD on a Raspberry Pi

Preliminary. Jetson TX1 BSP flashing guide. Version 2.1. May 2017 AUVIDEA GMBH FIRMWARE INSTALLATION 1. Auvidea GmbH Kellerberg 3 D Denklingen

Remote GUI access to a Linux computer using Tightvnc

Hands-on Labs using the WLAN Pros ODROID Performance Testing Device

Contents in Detail. Acknowledgments

Z-Stack Linux Gateway Quick Start Guide Version 1.0

10/02/2015 PetaLinux Linux Image Network Connection

Spring 2017 Gabriel Kuri

Linux. For BCT RE2G2. User Guide. Document Reference: BCTRE2G2 Linux User Guide. Document Issue: Associated SDK release: 1.

Raspberry Pi Kernel Install. By: Daniel Rizko

BeBot - Software Installation Guide

Lab 6: OS Security for the Internet of Things

Broadcom BCM943364WCD1 C-SDK Setup Guide. Version 1.0

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission.

Adding a block devices and extending file systems in Linux environments

10/02/2015 PetaLinux Image with Custom Application

Raspberry Pi 2b PART 1. Table of Contents. Step by step guide. 1. Hardware (0:05) RS Online (ex-tax prices)... 3 MSY ebay...

Best Practice for Tizen Platform from Code to Device. Zhang, Qiang Chen, Gui (Intel Open Source Technology Center)

User Manual. DVK512 Expansion Board For Raspberry Pi

User Guide Linux for AT91CAP9-STK Version 1.1. User Guide LINUX FOR AT91CAP9-STK VERSION: 1.1 1/11

Build Ubuntu System on Rockchip Sapphire Excavator Board

Building Debian-Based Products: Experiences in Collaboration

DEVELOPMENT GUIDE VAB-630. Linux BSP v

Drupal Command Line Instructions Windows 7 List Files >>>CLICK HERE<<<

Arducam ESP32 UNO board

5 inch HDMI Display-B

How to Make a Raspberry Pi Web Server

APRS Radio Guide TJ REVERB. By: Rishabh Misra

Gooligum Electronics 2015

Raspberry Pi NTP Clock Setup Guide

Automatic Creation of a Virtual Network with VBoxManage [1]

DEVELOPMENT GUIDE VAB-630. Android BSP v

Tutorial: Ubuntu on the Zynq SoC Featuring the Avnet ZedBoard

a module solution provider i.mx6q Android6.0 + WL8 integration Release Note Date: 2016/6/16

6 Git & Modularization

Transcription:

Tizen.IoTivity.Init Tizen IoTivity 를시작하기위한환경설정 Geunsun Lee

1 Installing Tizen Platform How to install IoT Headless image on RPi3(for Ubuntu) 2 Booting The RPi3 Connecting a Host PC to RPi3 via UART 3 Building a Tizen project Cloning Tizen repositories Building the project with Tizen Studio 4 Running the Tizen project on RPi3 Connecting RPi3 to the network Connecting RPi3 to Tizen Studio

Preparation Micro SD Card Infrared Motion Sensor (HC-SR501) Note PC Raspberry Pi 3 Serial Port (PL2303) Jumper Cable Power Charger

1 Installing Tizen Platform How to install IoT Headless image on RPi3(for Ubuntu) 2 Booting The RPi3 Connecting a Host PC to RPi3 via UART 3 Building a Tizen project Cloning Tizen repositories Building the project with Tizen Studio 4 Running the Tizen project on RPi3 Connecting RPi3 to the network Connecting RPi3 to Tizen Studio

How to install IoT Headless image on RPi3 (for ubuntu) 1. Downloads a script that can install the image of tizen platform on the SD card. rpi_sdcard_setup.sh $ wget https://git.tizen.org/cgit/apps/native/position-finder-client/plain/tool/rpi_sdcard_setup.sh $ chmod +x rpi_sdcard_setup.sh You can also go to the location where the script is located and download it. Clones position-finder-client repository with Git Bash. $ git clone git://git.tizen.org/apps/native/position-finder-client (Branch : template) The script(rpi_sdcard_setup.sh) is located in the position-finder-client/tools directory. $ cd position-finder-client/tools/

How to install IoT Headless image on RPi3 (for ubuntu) 2. Runs the downloaded script on the SD card. 1. Inserts SD card reader with an SD card into the PC. 2. Runs the script. $./rpi_sdcard_setup.sh 3. There are three questions when the script runs. #1 : Please type device node of usb [press enter key to use default(sdb)] : #2 : Please type binary version of tizen [press enter key to use default(latest)] : When you press enter, latest binary is downloaded. If you want another version, please enter the desired versi on date. (e.g. 20171110.3) Information about the version can be found on http://download.tizen.org/snapshots/tizen/unified/ #3 : /dev/sdb will be formatted, Is it OK? [y/n]

What the script(rpi_sdcard_setup.sh) does 1. Downloading files needed for image installation 2. Downloading the IoT Headless Image 3. Making partitions of SD Card 4. Fusing boot & platform image to SD Card 5. Copying firmwares for Wi-Fi and Bluetooth * NOTE : The above should be done on Ubuntu PC. TIZEN PLATFORM

1. Downloading files needed for image installation 1. Installing pv package on Ubuntu PC. $ sudo apt-get install pv 2. Downloading the fusing-script for RPi3. $ wget https://git.tizen.org/cgit/platform/kernel/linuxrpi3/plain/scripts/sd_fusing_rpi3.sh?h=submit/tizen/20170725.223437 --output-document=$download_dir/$script_fusing 3. Downloading firmwares for Wi-Fi and Bluetooth. $ wget https://github.com/rpi-distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.bin $ wget https://github.com/rpi-distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.txt $ wget https://github.com/openelec/misc-firmware/raw/master/firmware/brcm/bcm43430a1.hcd

2. Downloading the IoT Headless Image Kernel & Module Image Access http://download.tizen.org/snapshots/tizen/unified/latest/images/standard/iot-boot-arm64-rpi3/ Download tizen-unified_2017xxxx.x_iot-boot-arm64-rpi3.tar.gz Tizen Platform Image Access http://download.tizen.org/snapshots/tizen/unified/latest/images/standard/iot-headless-2parts-armv7l-rpi3/ Download tizen-unified_2017xxxx.x_iot-headless-2parts-armv7l-rpi3.tar.gz 3. Making partitions of SD Card 1. Check the device node of SD card. (ex. sdx : x is alphabet) 2. Make partitions using the fusing-script.* $ sudo./sd_fusing_rpi3.sh -d /dev/sdb --format

Screen when SD Card is formatted.*

4. Fusing boot & platform image to SD Card 1. Write boot image to SD Card using the fusing-script.* $ sudo./sd_fusing_rpi3.sh -d /dev/sdb -b tizen-unified_2017xxxx.x_iot-boot-arm64-rpi3.tar.gz 2. Write IoT Headless image to SD Card using the fusing-script.* $ sudo./sd_fusing_rpi3.sh -d /dev/sdb -b tizen-unified_2017xxxx.x_iot-headless-2parts-armv7l-rpi3.tar.gz 5. Copying firmwares for Wi-Fi and Bluetooth Copy firmwares for Wi-Fi and Bluetooth to SD Card $ mkdir rootfs $ sudo mount /dev/sdb2 rootfs $ sudo mkdir -p rootfs/usr/etc/bluetooth $ sudo cp BCM43430A1.hcd rootfs/usr/etc/bluetooth $ sudo mkdir -p rootfs/usr/lib/firmware/brcm $ sudo cp brcmfmac43430-sdio.* rootfs/usr/lib/firmware/brcm $ sync $ sudo umount rootfs $ rmdir rootfs

Screen when boot image is installed.*

Screen when IoT Headless Image is installed.*

1 Installing Tizen Platform How to install IoT Headless image on RPi3(for Ubuntu) 2 Booting The RPi3 Connecting a Host PC to RPi3 via UART 3 Building a Tizen project Cloning Tizen repositories Building the project with Tizen Studio 4 Running the Tizen project on RPi3 Connecting RPi3 to the network Connecting RPi3 to Tizen Studio

Booting the RPi3 1. Inserting SD Card to RPi3. 2. Connecting a Host PC to RPi3 via UART Board. 3. Connecting power to RPi3. 4. Entering user ID and password

Booting the RPi3 1. Inserting SD Card to RPi3. 2. Connecting a Host PC to RPi3 via UART Board. Raspberry Pi 3 Host PC (Window) Serial Port (PL2303) 1) Information of connecting to UART Board*

1) Information of connecting to UART Board* Raspberry Pi 3 In case of PL2303, RPi3 TXD(08pin) UART Board RXD RPi3 RXD(10pin) UART Board TXD RPi3 Ground(06pint) UART Board GND

Booting the RPi3 1. Inserting SD Card to RPi3. 2. Connecting a Host PC to RPi3 via UART Board. Raspberry Pi 3 Host PC (Window) Serial Port (PL2303) 1) Information of connecting to UART Board* 2) Opening a Serial Terminal with Host PC(Windows)* Use PuTTY program in practice.

2) Opening a Serial Terminal with Host PC(Windows)* 1. Install the appropriate drivers. Download the PL2303 Windows Driver : http://www.prolific.com.tw/us/showproduct.aspx?p_id=225&pcid=41 When the serial port is recognized: Prolific USB-to-Serial Comm Port(COM#)

2) Opening a Serial Terminal with Host PC(Windows)* 1. Execute a PuTTY program to open serial terminal. Download the PuTTY terminal emulator : http://www.putty.org/ 2 3 1 Configure the PuTTY menu as follows: a. Under Connection type, select Serial. b. In the Serial line field, enter the COM# for your board, such as COM10. * Note : If you did not identify your COM# when setting up your board, navigate to the Device Manager and check for an entry called USB Serial Port. The COM# is displayed next to the USB Serial Port entry. Source : https://software.intel.com/en-us/setting-up-serial-terminal-on-system-with-windows

Booting the RPi3 3. Connecting power to RPi3. 4. Entering user ID and password User id : root / Password : tizen (The password is not shown when you enter it.)

Booting the RPi3 3. Connecting power to RPi3. 4. Entering user ID and password User id : root / Password : tizen (The password is not shown when you enter it.) If the following screen does not appear, Make sure 1. The line connecting the RPi3 to the UART board is misconnected. 2. The UART board is broken.

1 Installing Tizen Platform How to install IoT Headless image on RPi3(for Ubuntu) 2 Booting The RPi3 Connecting a Host PC to RPi3 via UART 3 Building a Tizen project Cloning Tizen repositories Building the project with Tizen Studio 4 Running the Tizen project on RPi3 Connecting RPi3 to the network Connecting RPi3 to Tizen Studio

Prerequisite 1. Downloading the Git. https://www.git-scm.com/downloads 2. Installing the Tizen Studio. https://developer.tizen.org/development/tizen-studio/download

Cloning Tizen repositories Template source code position-finder-server Git path : apps/native/position-finder-server Branch : template position-finder-client Git path : apps/native/position-finder-client

Cloning Tizen repositories 1) Access the Tizen Project GIT Repositories. https://git.tizen.org/ 2) Searching for position-finder-server. 3) How to clone the repository : apps/native/position-finder-server.* 4) Running a Git Bash and cloning the Tizen repository.* 5) How to change the branch of the project.* 6) Changing the branch of the Tizen Project.*

3) How to clone the repository : apps/native/position-finder-server* $ git clone <Git address of the repository> $ git clone git://git.tizen.org/apps/native/position-finder-server https://git.tizen.org/

4) Running a Git Bash and cloning the Tizen repository* Git bash $ cd <THE PATH> Enters the path to download the source code. $ git clone <Git address of the repository> Downloads the repository on your local PC using the git clone command. ex) $ git clone git://git.tizen.org/apps/native/position-finderserver

5) How to change the branch of the project* $ git checkout <BRANCH NAME> $ git checkout template https://git.tizen.org/

6) Changing the branch of the Tizen Project* Git bash $ cd position-finder-server Enter the project. $ git checkout <BRANCH NAME> Change the branch of the project using the git checkout command. ex) git checkout template

Building the project with Tizen Studio 1. Importing the cloned project into Tizen Studio.* a. File > Select Import b. Tizen > Select Tizen Project > Next c. Select Directory / File > Select Root directory d. Location > Browse > Select the path of the cloned project(.\position-finder-server) > Next e. Finish 2. Building the project Project > Build Project (F10)

Import the project into Tizen Studio.* a. File > Select Import b. Tizen > Select Tizen Project > Next* c. Select Directory / File > Select Root directory* d. Location > Browse > Select the path of the cloned project(.\position-finder-server) > Next* e. Finish 1-b. 1-c. 1-d.

Building the project with Tizen Studio 1. Import the project into Tizen Studio.* a. File > Select Import b. Tizen > Select Tizen Project > Next c. Select Directory / File > Select Root directory d. Location > Browse > Select the path of the cloned project(.\position-finder-server) > Next e. Finish 2. Build the project Project > Build Project (F10)

NOTE* (Native 개발환경설치 ) Package Manager -> 개발하고자하는 package 설치 * NOTE : 해당자료에서는 lot- Headless-4.0 package 가설치되었음을전제로실습을진행하였습니다. IOT-Headless-4.0

NOTE* (Native 개발시 Perspective 설정 ) Perspective 변경 * NOTE : Package Manager 에서 <Native 개발환경설치 > 가완료되어야 Native perspective 로변경할수있습니다.

1 Installing Tizen Platform How to install IoT Headless image on RPi3(for Ubuntu) 2 Booting The RPi3 Connecting a Host PC to RPi3 via UART 3 Building a Tizen project Cloning Tizen repositories Building the project with Tizen Studio 4 Running the Tizen project on RPi3 Connecting RPi3 to the network Connecting RPi3 to Tizen Studio

Connecting RPi3 to the network Connects RPi3 to Wifi* (Connects Host PC to Wifi) TIZEN STUDIO

Connects RPi3 to Wifi * Raspberry Pi 3 1. Connects a Host PC to RPi3 via UART. 2. Opens the serial terminal of RPi3. 3. Connects Wifi with the wifi_test command. $ wifi_test Follow the steps below: (Input only numbers.) 1. Wi-Fi Init and set callbacks 3. Activate Wi-Fi device c. Connect (Write AP name/password) 6. Get connection state (Verify the network is connected) 0. Exit * Note : You should not misspell a AP name and password when you enter it. If you get typo, you have to run it again from the beginning.

Connects RPi3 to Wifi * Raspberry Pi 3 4. Checks the IP address of the connected Wi-Fi on RPi3. $ ifconfig

Connecting RPi3 to Tizen Studio 1) Registers RPi3 as a remote device* 2) Runs the Tizen project on RPi3* TIZEN STUDIO

1) Registers RPi3 as a remote device* Tizen Studio * Note : Ip address of RPi3 (Refer to Connects RPi3 to Wifi*) 1. Adds RPi3 as a remote device. a. Tools > Device Manager > Remote Device Manager b. Scan (scanning remote devices) 2. Sets the connection state to ON. If the connection fails, 1. Check if Wifi is disconnected or not. 2. Your RPi3 and PC are on the same local network. 1-a. 1-b. 2. Change to ON Remote device manager

2) Runs the Tizen project on RPi3* 1. Running the project on RPi3. Run > Run As > 2. How to open the shell. $ su Password : tizen 3. How to view logs. * NOTE: The password is not shown when you enter it. Execute dlogutil in the opened shell. $ dlogutil <LOG_TAG> ex) dlogutil TT

Thank you