Getting Started Android + Linux. February 27 th, 2014



Similar documents
Present and Act Upon. Register. Consume. Stream Analytics. Event Hubs. Field Gateway. Applications Cloud Gateway. Legacy IoT (custom protocols)

Programming the Internet of Things

IoT Cloud, All Seen Alliance. Masanari Arai 荒 井 真 成 CEO, Kii Corpora0on

Getting Started with the AllJoyn Lighting Service Framework 14.12

Cid Santos Luis Matos. Introduction to AllJoyn

Open Sourcing the Internet of Things

Adobe Summit 2015 Lab 718: Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers

Eclipse installation, configuration and operation

AllJoyn Framework System Overview

Elluminate Live! Access Guide. Page 1 of 7

Secure Cloud and Remote Service Connections for AllJoyn Applications

Adobe Summit 2015 Lab 712: Building Mobile Apps: A PhoneGap Enterprise Introduction for Developers

Secure Cloud and Remote Service Connections for AllJoyn Applications

Secure Cloud and Remote Service Connections for AllJoyn Applications

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

AllJoyn Android Environment Setup Guide

Elluminate Live! Access Guide. Page 1 of 7

AllJoyn Device System Bridge

Using Microsoft Visual Studio API Reference

Module 11 Setting up Customization Environment

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Case Closed Installation and Setup

Kaspersky Lab Mobile Device Management Deployment Guide

Backing Up and Restoring the Database

C-more Remote Access with Apple ipad or iphone Tutorial

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

Super Pro Net TM Network Key Installation and Operation

Pentesting Android Mobile Application

Building Mobile Applications Creating ios applications with jquery Mobile, PhoneGap, and Drupal 7

Installation Guides - Information required for connection to the Goldfields Institute s (GIT) Wireless Network

educ Office Remove & create new Outlook profile

FTP Server Configuration

NetBeans IDE Field Guide

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

ID TECH UniMag Android SDK User Manual

App Operating Instructions Manual ES File Explorer

Understanding class paths in Java EE projects with Rational Application Developer Version 8.0

Using AllJoyn with Apache Cordova, Python & Node

Installing Autodesk Vault Server 2012 on Small Business Server 2008

CafePilot has 3 components: the Client, Server and Service Request Monitor (or SRM for short).

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Step by Step Guide for Upgrading Your NetCamPro Camera to Cloud Mode Using an Android Device

LogMeIn Rescue+Mobile for Android

March How Eye-Fi Works Overview Flowcharts

Bulk Downloader. Call Recording: Bulk Downloader

Getting Started with Android Development

CRESTRON-APP/CRESTRON-APP-PAD Control App for Apple ios

IPMI Firmware Update (AMI) In WEB-GUI/DOS/WIN/Linux

Quick Installation Guide

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

How To Test The Nms Adaptive Suite With An Ip Office On A Windows 2003 Server On A Nms Desktop On A Pnet 2.5 (Tapi) On A Blackberry 2.2 (Tapi) On An Ipo 2

Installation Assistance Windows/Microsoft Updates Updating from Spectra or Upgrading from Spectra 6.x...

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

Homeguard Wireless Home Camera Quick Start Guide

SATO Network Interface Card Configuration Instructions

Sophos Anti-Virus for NetApp Storage Systems startup guide

Quick Start. Nighthawk X8 AC5300 Tri-Band WiFi Router Model R8500. Package Contents. NETGEAR, Inc. 350 East Plumeria Drive San Jose, CA USA

Install the SP350 Softphone

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

Configuration Guide. Remote Backups How-To Guide. Overview

Windows Intune Walkthrough: Windows Phone 8 Management

Setting up the Swann HD IP cameras

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Using the Eclipse Data Tools Platform with SQL Anywhere 10. A whitepaper from Sybase ianywhere

How To Use The Lutron Home Control+ App On An Ipad Or Ipod

Configuring Devices for Use with Cisco Configuration Professional (CCP) 2.5

Amcrest 960H DVR Quick Start Guide

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

Android Setup Phase 2

NAS 242 Using AiMaster on Your Mobile Devices

FlexSim LAN License Server

Installation Instructions Release Version 15.0 January 30 th, 2011

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Introduction to Gear VR Development in Unity APPENDIX A: SETUP (WINDOWS 7/8)

Install SQL Server 2014 Express Edition

Configuration Guide. BES12 Cloud

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

AC1200 Smart WiFi Router

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

Kony MobileFabric Messaging. Demo App QuickStart Guide. (Building a Sample Application

Nighthawk AC1900 WiF Range Extender

Configuring the BBj Jetty Web Server (rev10.02) for OSAS

CRESTRON-APP-ANDROID Control App for Android

BlackBerry Desktop Software User Guide

Integration Guide. Microsoft Active Directory Rights Management Services (AD RMS) Microsoft Windows Server 2008

Lexia Network Installation Instructions

Drobo How-To Guide. Drobo Apps - Configuring Plex Media Server. Topics. What You Will Need. Prerequisites

Exchange 2003 Mailboxes

ZeroTurnaround License Server User Manual 1.4.0

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

NETGEAR genie Apps. User Manual. 350 East Plumeria Drive San Jose, CA USA. August v1.0

Cloud Print Edition Quick Start Guide

VERSION 9.02 INSTALLATION GUIDE.

Architecture and Data Flow Overview. BlackBerry Enterprise Service Version: Quick Reference

Transcription:

Getting Started Android + Linux February 27 th, 2014

Overview AllJoyn: High-level architecture Sample AllJoyn Apps for Android, Linux Downloading the AllJoyn Android SDKs Building the Sample AllJoyn Android Apps Sample AllJoyn Android App demos Downloading the Source on Linux Building and Running on Linux 2

AllJoyn Software Framework: High-level architecture A comprehensive software framework lets devices and applications communicate AllJoyn Service Frameworks Interoperable, cross-platform modules for common IoE functionality Onboarding Application Layer AllJoyn Service Frameworks Control Panel Notifications Config Audio, etc AllJoyn Router Fundamental building blocks Typically runs on a HLOS Router can be bundled with a Standard client application or run stand-alone Discovery AllJoyn Router (routing node) Connection / Network Management Security Physical Layer Client Libraries (leaf nodes) Standard Client Thin Client (RTOS) IP Network Connection (Wi-Fi, PLC, Ethernet), Bluetooth AllJoyn Client Libraries Developers Interact with Client libraries Standard Client can be bundled with Router or stand alone Stand alone client libraries require an AllJoyn Router in the network

Sample AllJoyn Apps for Android, Linux Android: Onboarding: OnboardingSampleClient the onboarder app will demonstrate onboarding an onboardee app OnboardingServer the onboardee app being onboarded Notification: NotificationServiceUISample run app on two devices Control Panel: ControlPanelBrowser a Control Panel controller sample app this demo uses a development device SP140-141 running an AC sample app (source code not yet released, but is planned for release in the future) Linux: Notification sample apps sample AllJoyn chat application 4

A Useful (non-allseen Alliance) AllJoyn Android app: AllJoynOn AllJoynOn is a proprietary app created by Qualcomm Connected Experiences (QCE), for Android The AllJoynOn app can be used to interact with several AllJoyn Service frameworks, including: Onboarding Notifications Control Panel Config Download at https://www.alljoyn.org/alljoyn-on Not part of the AllSeen Alliance code 5

Downloading the AllJoyn Android SDKs https://allseenalliance.org Source Code -> Access the Archived SDKs Download the Android zips: AllJoyn SDK 3.4.6 AllJoyn Configuration Service Framework SDK 1.0.1 AllJoyn Control Panel Service Framework SDK 1.0.1 AllJoyn Notification Service Framework SDK 1.0.1 AllJoyn Onboarding Service Framework SDK 1.0.1 6

Building the AllJoyn Android apps - 1 of 5 Extract the Android zips to alljoyn-android: Creates: alljoyn-android / core alljoyn-android / services / alljoyn-config-1.0.1-rel / alljoyn-controlpanel-1.0.1-rel / alljoyn-notification-1.0.1-rel / alljoyn-onboarding-1.0.1-rel 7

Building the AllJoyn Android apps - 2 of 5 Download (more recent) sample code from git.allseenalliance.org OnboardingSampleClient: https://wiki.allseenalliance.org/develop/downloading_the_source git clone https://git.allseenalliance.org/gerrit/services/onboarding.git alljoyn-android/services/onboarding OnboardingServer (shows up as project AboutConfOnbServer in Eclipse): git clone https://git.allseenalliance.org/gerrit/services/simulators.git alljoyn-android/services/simulators 8

Building the AllJoyn Android apps - 3 of 5 Import the projects from the following paths into Eclipse: alljoyn-android / core / alljoyn-3.4.6-rel / java / samples alljoyn-android / services / alljoyn-controlpanel-1.0.1-rel / alljoyn-notification-1.0.1-rel / onboarding / java / OnboardingService / onboarding / java / sample_applications / android / OnboardingSampleClient / simulators Copy the following files: alljoyn-android/core/alljoyn-3.4.6-rel/java/jar/alljoyn.jar alljoyn-android/core/alljoyn-3.4.6-rel/java/lib/liballjoyn_java.so alljoyn-android/core/alljoyn-3.4.6-rel/about/jar/alljoyn_about.jar and add them to your Android sample projects as: /libs/armeabi/liballjoyn_java.so /libs/alljoyn.jar /libs/alljoyn_about.jar 9

Building the AllJoyn Android apps - 4 of 5 Add service framework jars as needed: For the OnboardingSampleClient project: Place in /libs/ folder the jar copied from: alljoyn-android/services/alljoyn-onboarding-1.0.1-rel/java/libs/alljoyn_apps_android_utils.jar Configure the project Java Build Path to add the OnboardingService project Under the Order and Export tab, check the box next to the OnboardingService For the NotificationServiceUISample project, place in /libs/ folder, copy jars from: alljoyn-android/services/alljoyn-notification-1.0.1-rel/java/libs/*.jar android-support-v4.jar For the ControlPanelBrowser project, to /libs/ folder, add jars from: alljoyn-android/services/alljoyn-controlpanel-1.0.1-rel/java/libs/*.jar android-support-v4.jar ** REMOVE FROM JAVA BUILD PATH (fix coming in next release): alljoyn_services_common.jar 10

Building the AllJoyn Android apps - 5 of 5 For the AboutConfOnbServer project (ie. OnboardingServer sample app, from /services/simulators/), to /libs/ folder, add jars from: alljoyn-android/services/alljoyn-config-1.0.1-rel/java/libs/alljoyn_config.jar alljoyn-android/services/alljoyn-onboarding-1.0.1- rel/java/libs/alljoyn_apps_android_utils.jar Configure the project Java Build Path to add the OnboardingService project Under the Order and Export tab, check the box next to the OnboardingService 11

Sample AllJoyn Android app demos 1 of 3 Onboarding demo Illustrates use of Onboarding Service Framework Load and run the AboutConfOnbServer project onto a device (Device #1) This app shows up as Onboarding Server on the device Go to Settings -> Wireless & Networks -> Tethering & portable hotspot, and take note of the hotspot name (ex. AndroidAP ) Start the Onboarding Server app the device should switch to hotspot mode May need to clear data from Settings -> Apps -> Onboarding Server (before re-running) Load and run OnboardingSampleClient on a second device (Device #2) Turn on WiFi on Device #1 Press the Scan WIFI networks button, select the above hotspot (ex. AndroidAP ), if needed, enter password Press the Connect to AllJoyn button, Hit OK on prompt Long Press on the Hello entry, select Onboarding Select Network (or manually type in network name) to onboard the Onboardee to. Enter auth type and password if needed Press the Configure button to push the WiFi Configuration to the Onboardee Press the Connect button to connect the Onboardee to the configured WiFi network If configured properly, the Onboardee should shortly be onboarded to the configured WiFi network 12

Sample AllJoyn Android app demos 2 of 3 Notification demo NotificationServiceUISample Illustrates use of Notification Service Framework Run one instance of the app on one device Run a second instance of the app on a second device Start the app, and check the box Producer on one device, and check the box Consumer on the other. Send messages from the Producer, and confirm they are received by the Consumer 13

Sample AllJoyn Android app demos 3 of 3 Control Panel demo ControlPanelBrowser Illustrates use of Control Panel Service Framework this demo uses a development device SP140-141 running an AC sample app (source code not yet released, but is planned for release in the future) Load and start ControlPanelBrowser on an Android device Select the AC app in the menu Use displayed controls to change the AC temperature and fan settings 14

Downloading the Source on Linux https://wiki.allseenalliance.org https://wiki.allseenalliance.org/develop/downloading_the_source Run these commands to download the source: export AJ_ROOT=`pwd`/alljoyn git clone https://git.allseenalliance.org/gerrit/core/alljoyn.git $AJ_ROOT/core/alljoyn git clone https://git.allseenalliance.org/gerrit/services/config.git $AJ_ROOT/services/config git clone https://git.allseenalliance.org/gerrit/services/onboarding.git $AJ_ROOT/services/onboarding git clone https://git.allseenalliance.org/gerrit/services/notification.git $AJ_ROOT/services/notification git clone https://git.allseenalliance.org/gerrit/services/controlpanel.git $AJ_ROOT/services/controlpanel git clone https://git.allseenalliance.org/gerrit/services/services_common.git $AJ_ROOT/services/services_common git clone https://git.allseenalliance.org/gerrit/services/sample_apps.git $AJ_ROOT/services/sample_apps 15

Building and Running on Linux 1 of 2 https://wiki.allseenalliance.org https://wiki.allseenalliance.org/develop/building_and_running Below are very basic instructions for building some AllJoyn core and services and basic sample applications: cd $AJ_ROOT/core/alljoyn scons BINDINGS=cpp WS=off BT=off ICE=off SERVICES="about,notification,controlpanel,config,onboarding cd $AJ_ROOT/core/alljoyn/build/linux/x86_64/debug/dist/ export LD_LIBRARY_PATH=`pwd`/cpp/lib:`pwd`/about/lib:`pwd`/notification/lib: `pwd`/controlpanel/lib:`pwd`/config/lib:`pwd`/services_common/lib:$ld_ LIBRARY_PATH 16

Building and Running on Linux 2 of 2 https://wiki.allseenalliance.org https://wiki.allseenalliance.org/develop/building_and_running To run a couple of basic Notification Service sample apps: cd $AJ_ROOT/core/alljoyn/build/linux/x86_64/debug/dist/notification/bin./ConsumerService # run this in one terminal to receive notifications, press enter once after launching ConsumerService./ProducerBasic # run this in another terminal to send notifications To run the AllJoyn sample chat application: cd $AJ_ROOT/core/alljoyn/build/linux/x86_64/debug/dist/cpp/bin/samples./chat -s mychatsession # run this in one terminal./chat j mychatsession # run this in a second terminal 17

Questions? Questions? Cwestiynau? Spørgsmål?

Thank You! AllJoyn is a trademark of Qualcomm Innovation Center, Inc.