Docsity

Understanding Pervasive Computing Applications: Characteristics, Middleware, and Examples , Study notes of Computer Science

Partial preview of the text

Download Understanding Pervasive Computing Applications: Characteristics, Middleware, and Examples and more Study notes Computer Science in PDF only on Docsity!

ECE/CS 4984

Wireless and Mobile Systems Design

Spring 2003

Lecture 14

Pervasive Computing Applications

Ing-Ray Chen

Copyright Reserved

ECE/CS 4984, Spring 2003 2 Pervasive Computing Applications

Lecture Objectives

ï Understand characteristics and technical challenges

of pervasive computing applications

ï Understand system middleware and supports for

context-aware ubiquitous computing

ï Exemplify pervasive computing applications

ECE/CS 4984, Spring 2003 3 Pervasive Computing Applications

Sources

ï T. Kindberg and A. Fox, ìSystem software for ubiquitous computing,î IEEE Pervasive Computing , Vol. 1, No. 1, 2002, pp. 70-81. ï A. Smailagic and D. Kogan, ìLocation sensing and privacy in a context-aware computing environment,î IEEE Wireless Communications, Vol. 9, No. 5, Oct. 2002, pp. 10-17. ï S.S. Yau et al. ìReconfigurable context-sensitive middleware for pervasive computing,íí IEEE Pervasive Computing , Vol. 1, No. 3, 2002, pp. 33-40. ï M. Roman, et al. ìA middleware infrastructure for active spacesî, IEEE Pervasive Computing , Vol. 1, No. 4, 2003, pp. 74-

ï B. Johanson, et al. ìThe interactive workspaces project: experiences with ubiquitous computing rooms,î IEEE Pervasive Computing , Vol. 1, No. 2, 2002, pp. 67-75.

ECE/CS 4984, Spring 2003 4 Pervasive Computing Applications

Agenda

ï Characteristics of pervasive computing

ï System supports to enable pervasive computing

ï Middleware for context-aware pervasive computing

applications

ï Examples of pervasive computing applications

! Smart homes/rooms

" UIís Gaia-enabled Active Spaces

" Stanfordís Interactive Workspaces project

ï Experimentation

! SLP-based pervasive Pocket TV application

ECE/CS 4984, Spring 2003 7 Pervasive Computing Applications

Non-Examples of Pervasive Applications

ï Accessing email over a phone line from a laptop

! Neither physical integration nor spontaneous interoperations

" The laptop maintains the same association with a fixed mail

server

ï A collection of wirelessly connected laptops based on

IEEE 802.11 at a conference

! Discovery of the local network can be considered as physical

integration of laptops with a 802.11 access point

" The physical integration in pervasive computing, however,

should involve a part of the environment that has a non- electronic function (e.g., a white board, a cup, etc.)

! No spontaneous interoperation is possible without

considerable human manual intervention

ECE/CS 4984, Spring 2003 8 Pervasive Computing Applications

Borderline Examples of Pervasive

Applications (1)

ï A smart coffee cup and saucer

! Physical integration: The cup is a regular

cup (a non-electronic function) that contains sensing, processing and networking elements that let it communicate with the saucer of its state (full or empty, held or putdown, hot or cold)

! Instantaneous interoperation: not satisfied if

a specialized protocol is used between the cup and saucer as the owner would not be able to use the coffee cup without the saucer

ECE/CS 4984, Spring 2003 9 Pervasive Computing Applications

Borderline Examples of Pervasive

Applications (2)

ï P2P games

! Physical integration: client devices can

have sensors that allow physical integration

! Instantaneous interoperation: not satisfied

if preconfigured components are used in the game

" A more convincing example would

involve players with generic game playing pieces that let them spontaneously join local games not encountered before

ECE/CS 4984, Spring 2003 10 Pervasive Computing Applications

Borderline Examples of Pervasive

Applications (3)

ï A Web-based object discovery system

! Devices (e.g., laptops) have small, embedded web servers that

allow objects to be accessed by physical hyperlinks

! The user is presented with a web page when it senses an

identifier of the object

ï Physical integration

! smart devices can use web functionality to allow advertised

objects to be integrated into the physical world as web pages without the need to reconfigure browsers

ï Instantaneous interoperation

! not exactly satisfied since the system requires human

intervention to keep it going. The human in the loop changes the browserís associations to advertised web services

ECE/CS 4984, Spring 2003 13 Pervasive Computing Applications

The Semantic Rubicon

The semantic Rubicon is the division between system and human for high-level decision-making or physical world semantics processing

The division should be exposed in system design and the criteria and mechanisms for crossing it should be clearly indicated

Little evidence exists to suggest that software alone can meet ubiquitous computing challenges, although it is desirable to have minimum or no Image extracted from intervention IEEE Pervasive ComputingMagazine, Vol. 1, No. 1, 2002.

ECE/CS 4984, Spring 2003 14 Pervasive Computing Applications

System Support

ï Discovery

! Requiring a common ìsyntax and vocabularyî model for

specifying services

ServiceType=ìphotoPrintî

ServiceType=ìprintingî

ServiceType=ìdigitalFrameî

Missed opportunity

Service Type Mismatched

ECE/CS 4984, Spring 2003 15 Pervasive Computing Applications

System Support (2)

ï Interaction

! Requiring a ìcommonî interoperation model for components to

interact

" Event systems ñ publish, subscribe, and handle events

" Tuple space ñ add, read, and remove tuples in a tuple space

ServiceType=ìPrintî DataType=ìJPEGî ServiceType=ìprintî DataType=ìJPEGî

ServiceType=ìdigitalFrameî DataType = ìJPEGî

(Standardized) Data Oriented Interaction Service

(Standardized) Data Oriented Interaction Service

A common service: A tuple space or an event service

ECE/CS 4984, Spring 2003 16 Pervasive Computing Applications

System Support (3)

ï Adaptation

! Without human intervention for achieving ìcalm computingî as

well as spontaneous interaction

! Being able to display or manipulate data or UI from other

devices in a heterogeneous environment

! Possible solutions include:

" Dynamic downloading of mobile code to handle UI and

communication (as in Jini) ñ requiring JVM

" Dynamic UI generation/transformation (as in Stanfordís

Interactive Workspaces) ñ requiring a common UI description language to describe UI elements, e.g., ìThis control is a Boolean toggleî ï Another example is to use XML for specifying UI for web services

ECE/CS 4984, Spring 2003 19 Pervasive Computing Applications

Positioning for Location-aware

Computing

ï Outdoor ñ GPS (Global Position Sensing) normally to within 1- m accuracy with differential correction

ï Indoor

! Active Bat (shown below) developed by AT&T Lab Cambridge

based on ultrasonic sensors (to within 3 cm accuracy)

! CMU-TMI (shown next) developed by CMU based on 802.11 for

location tracking (to within 1-5 m accuracy)

Image extracted from IEEE Pervasive ComputingMagazine, Vol. 1, No. 1, 2002.

ECE/CS 4984, Spring 2003 20 Pervasive Computing Applications

System Support ñ Location Tracking in

Smart Spaces

ï CMU has developed and deployed a Triangulation, Mapping and Interpolation (CMU-TMI) algorithm based on 802.11 for location tracking: ! Physical locations of access points are known in advance ! A mobile device scans all access points (at least 3) within range to determine their signal and noise strengths ! The signal strengths are used to infer the distance between the device and the access points using an approximate relation obtained a priori ! Triangulation technique is applied to calculate the physical location

ECE/CS 4984, Spring 2003 21 Pervasive Computing Applications

System Support (5)

ï Programming Framework

! A programming framework for pervasive computing can be

placed at the application or middleware level:

" Application level

ï Providing only application-level coordination mechanisms, e.g., through a ìtuple-spaceî API

" Middleware level

ï Providing more tightly integrated facilities for achieving context awareness, QoS resource management, and adaptive control. ï Determining the userís task and intention, and facilitating associations between components to assist the user in these activities

ECE/CS 4984, Spring 2003 22 Pervasive Computing Applications

System Support (6)

ï Robustness

! Failure is a common case in mobile and pervasive computing

! Recovering from failures always prepared to reacquire lost

resources

" Expiration-based schemes and soft states

ï Periodic service advertisement and lease in the ìcommonî data-oriented interaction service

" Separating failure-free (logic) from failure-prone (e.g.,

accessing a service or file while moving) application code ï More effective failure handling can be done implicitly by the middleware, e.g., retrying an idempotent operation (binding to a remote file) for a number of times

ï Security ñ trust between devices, access control

ECE/CS 4984, Spring 2003 25 Pervasive Computing Applications

RCSM: A Reconfigurable Context

Sensitive Middleware (2)

ï ASUís RCSM provides a context-aware interface description language (CA-IDL) API for an application to

! Define contexts used by

the application

! Specify actions taken

based on context values ï Compilers are provided to build adaptive object containers (ADCs) based on CA-IDL

Image extracted fromIEEE Pervasive Computing Magazine, Vol. 1, No. 3, 2002.

ECE/CS 4984, Spring 2003 26 Pervasive Computing Applications

Pervasive Computing Example 1:

UIís Gaia-enabled Active Spaces (1)

Image extracted fromIEEE Pervasive Computing Magazine, Vol. 1, No. 4, 2002.

ï Gaia is a distributed middleware infrastructure that coordinates software entities and heterogeneous network devices contained in a physical space

! The physical space is extended

into an ìactive spaceî by adding coordination via a context- based software infrastructure

ECE/CS 4984, Spring 2003 27 Pervasive Computing Applications

Pervasive Computing Example 1:

UIís Gaia-enabled Active Spaces (2)

Image extracted fromIEEE Pervasive Computing Magazine, Vol. 1, No. 4, 2002.

ï Event manager service: for event

channel registration/notification

ï Context service: for

querying/registering context information such as peopleís locations

ï Presence service: for maintaining soft

states of resources including digital entities (applications and services using heartbeats) and physical entities (devices and people using sensors)

ï Space repository: for

displaying/retrieving information about all entities in the active space

ï Context file system: associating data

with context and format info to allow context-sensitive data retrieval presented with the right UI format, e.g., make personal data available to applications conditioned on presence

Example: Presentation Manager Application

ECE/CS 4984, Spring 2003 28 Pervasive Computing Applications

Pervasive Computing Example 1:

UIís Gaia-enabled Active Spaces (3)

EX: Presentation Manager Application

! Speaker X with an RF active badge and a

handheld walks into a Gaia-enabled room

! Presence service detects the badge and

sends a ìX is hereî event with the user profile info of X contained ! Space repository receives the event and displays the user info. ! Context file system obtains the speakerís mount point and mounts the speakerís presentation file ready for access

! The handheld (controller) detects the

directory server and then sends a heartbeat event to the heartbeat channel ! presence service detects and sends a ìnew deviceî found event ! Space repository receives the event and displays the handheld info

! Both speaker X and handheld are now

entities of the active space

A prototype of Gaia-enabled active space

Context: Speaker X enters the room Action: start the presentation manager application ï Read the presentation file ï Allowing X to control presentation by control events generated from the touch screen or handheld

ECE/CS 4984, Spring 2003 31 Pervasive Computing Applications

Experimentation:

SLP-based Pervasive Pocket TV

ï SLP (RFC 2608) is an IETF standard that provides a scalable framework for automatic resource discovery on IP networks. Three entities are defined in a SLP system:

! User agent (UA)

! Server agent (SA)

! Directory agent (DA)

ï A UA initiates service discovery on behalf of one or more applications. It can send queries to all SAs via multicast if a DA does not exist or to a DA to discover services via unicast.

ï A SA works on behalf of one or more services. It responds directly to UA queries via unicast. If a DA exists, a SA can register its services with the DA to expose its services.

ECE/CS 4984, Spring 2003 32 Pervasive Computing Applications

Experimentation:

Pervasive Pocket TV (2)

ï A DA serves as a centralized information repository. It

accepts SA registrations and answers UA directory

service queries. The DA support is optional and is

introduced for performance and scalability

considerations.

Application

UA (^) SA

DA

Service

query

reply

directory service query service registration directory service reply acknowledgment

ECE/CS 4984, Spring 2003 33 Pervasive Computing Applications

Experimentation:

Pervasive Pocket TV (3)

ï DA Discovery: Passive vs. Active

UA/SA DA

Multicast SrvRqst (service:directory-agent)

Unicast DAAdvert

UA/SA DA

Multicast DAAdvert

ECE/CS 4984, Spring 2003 34 Pervasive Computing Applications

Experimentation:

Pervasive Pocket TV (4)

ï Three configurations

SA UA SA

Multicast SrvRqst Multicast SrvRqst Unicast SrvRply Unicast SrvRply

UA DA

SA

SA

Unicast SrvRqst Unicast SrvRply

Unicast SrvReg Unicast SrvAck

Unicast SrvAck Unicast SrvReg

Small: No DA

Medium: 1 DA

Large: Multiple DAís

UA

UA

SA

SA (^) SA

SA

DA

DA ECE Scope CS Scope

adopted in L