22
Developer Workshop Tizen Wearable Ferdiansyah Dolot [email protected] Samsung Research and Development Institute Indonesia (SRIN) http://bit.ly/TizenWearable

Samsung Indonesia: Tizen Wearables

  • Upload
    ryo-jin

  • View
    379

  • Download
    2

Embed Size (px)

Citation preview

Developer Workshop

Tizen Wearable

Ferdiansyah Dolot [email protected]

Samsung Research and Development Institute Indonesia (SRIN)

http://bit.ly/TizenWearable

Developer Workshop

Intro Wearable

Application types

Wearable SDK

Wearable API

Accessory Protocol

Run your app

Pair your device

Demo Apps

Tizen Wearable Devices

Developer Workshop Tizen Wearable application types

Intro Wearable

Application type

Wearable SDK

Wearable API

Accessory Protocol

Run your app

Pair your device

Demo Apps

Developer Workshop

Install wearable SDK using Tizen Update Manager

Intro Wearable

Application type

Wearable SDK

Wearable API

Accessory Protocol

Run your app

Pair your device

Demo Apps

Developer Workshop

Can we run mobile application on wearable device?

Intro Wearable

Application types

Wearable SDK

Wearable API

Accessory Protocol

Run your app

Pair your device

Accessory Protocol

Demo Apps

Developer Workshop

Additional Rotary Events for Wearable API Native: EFL Extension (bit.ly/TizenEFLExtension)

Web: TAU for wearable (bit.ly/TizenTAUExtension)

Intro Wearable

Application types

Wearable SDK

Wearable API

Accessory Protocol

Run your app

Pair your device

Accessory Protocol

Demo Apps

Developer Workshop

Companion Wearable Connectivity Diagram

Intro Wearable

Accessory Protocol

Provider & Consumer

SAP SDK

Process Flow

Run your app

Pair your device

Demo Apps

Developer Workshop

Intro Wearable

Accessory Protocol

Provider & Consumer

SAP SDK

Process Flow

Run your app

Pair your device

Demo Apps

Developer Workshop

Prerequisites o Android 4.3 (API 18 or above)

o Libs:

accessory-2.3.2.jar

sdk-v1.0.0.jar

o Tizen SDK for Wearable 2.3.1

o Tizen SDK Extras Wearable Extension for 2.3.1

o Wearable device/emulator

Intro Wearable

Accessory Protocol

Provider & Consumer

SAP SDK

Process Flow

Run your app

Pair your device

Demo Apps

Developer Workshop

bit.ly/TizenSAPGuide bit.ly/TizenSAPJava bit.ly/TizenSAPNative bit.ly/TizenSAPWeb

Intro Wearable

Accessory Protocol

Provider & Consumer

SAP SDK

Process Flow

Run your app

Pair your device

Demo Apps

Developer Workshop There are several ways to do run your apps… • Wearable is tertiary (?)

• Emulator/Simulator doesn’t always give accurate result

• Some wearables have USB port, some of them don’t

• Companion wearable includes Android host application to be tested with wearable device

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Developer Workshop There are three ways to run your wearable app • Running on

Emulator/Simulator

• Running on wearable device via USB

• Running on wearable device via wifi

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Developer Workshop Running on Emulator & Wearable device (USB)

Right click on the project, Run As -> Tizen Web Application

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Developer Workshop

1. Enable debugging mode on your wearable device 2. Connect your wearable device and PC to the same network

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Running on Wearable device via Wifi

Developer Workshop

3. Click Remote device manager icon, and add your wearable IP address, then click connect

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Running on Wearable device via Wifi

Developer Workshop

4. Accept debugging confirmation on your wearable screen

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Running on Wearable device via Wifi

Developer Workshop

5. You can see your device connected on Remote device manager

Intro Wearable

Accessory Protocol

Run your app

Emulator/USB

Wifi

Pair your device

Demo Apps

Running on Wearable device via Wifi

Developer Workshop 2 ways to pair your wearable device

• Pair host device with wearable emulator

• Pair host device with wearable device

Intro Wearable

Accessory Protocol

Run your app

Pair your device

Host with emulator

Host with device

Demo Apps

Developer Workshop Pair host device with wearable emulator • Download apks from following link img-

developer.samsung.com/contents/cmm/gear/Applications_for_Emulator.zip

• Extract zip file and install the apks to your host device in following order: – SAccessoryService_Emul.apk – SASystemProviders_ForEmul.apk

• Reboot your host device • Connect your host device to PC using USB connection (make sure you

have adb installed and turn on USB debugging) • Do port forwarding by executing:

– adb forward tcp:8230 tcp:8230

• Run your wearable emulator, and wait until it finished booting into home screen

Intro Wearable

Accessory Protocol

Run your app

Pair your device

Host with emulator

Host with device

Demo Apps

Developer Workshop Pair host device with wearable emulator • Run Emulator for Samsung Accessory

on your host device. You will find the connected status.

• You can now test your host app wearable app using emulator

Intro Wearable

Accessory Protocol

Run your app

Pair your device

Host with emulator

Host with device

Demo Apps

Developer Workshop Pair host device with wearable device

• Install Gear Manager on host device

• Turn on Bluetooth on your host device and wearable device

• Using Gear Manager, find/scan available wearable device

• Confirm to accept pairing, and do light reset to wearable device

Intro Wearable

Accessory Protocol

Run your app

Pair your device

Host with emulator

Host with device

Demo Apps

Developer Workshop Demo Apps

Intro Wearable

Wearable SDK

Accessory Protocol

Run your app

Pair your device

Demo Apps