Smart Phone: An Embedded System For Universal Interactions
Smart Phone: An Embedded System For Universal Interactions
Interactions
Abstract
In this paper, we present a system architecture that allows users to interact with
embedded systems located in their proximity using Smart Phones. We have identified four models of
interaction between a Smart Phone and the surrounding environment: universal remote control, dual
connectivity, gateway connectivity, and peer-to-peer. Although each of these models has different
characteristics, our architecture provides a unique framework for all of the models Central to our
architecture are the hybrid communication capabilities incorporated in the Smart Phones, which allow
them to interact with the close-by environment through short-range wireless networking and with the
rest of the world through the Internet over cellular links. This feature together with significant
processing power and memory can turn a Smart Phone into the long awaited universal personal
assistant that can make our daily life much simpler. These phones have the unique feature of
incorporating short range wireless connectivity (e.g., Blue tooth) and Internet connectivity (e.g.,
GPRS) in the same personal mobile device. This feature together with significant processing power
and memory can turn a Smart Phone into the only mobile device that people will carry wherever they
go.
This paper is organized as it presents the enabling technologies for Smart Phones, the
four models of interaction between a Smart Phone and the embedded systems located within its
proximity and the unified software architecture for all the models, at last we discuss the current status
and future work.
Introduction
The problem with this idea is that many embedded systems may not be powerful enough to run
complex software that implements such protocols. In the following, we describe a second model of
interaction that solves this problem.
More powerful systems, however, can take advantage of the 802.11 benefits and create mobile ad
hoc networks. In such a situation, a user would like to access data and services provided by these
networks from its Smart Phone. To succeed, a gateway device has to perform a change of protocol
from Blue tooth to 802.11 and vice-versa. any places in a city (e.g., stores, theaters, restaurants) can
provide such gateway stations together with 802.11 hotspots. Figure 4 illustrates this communication
model and also presents an application that can be built on top of it. Let us assume a scenario where
people want to book nearby cabs using their Smart Phones. Instead of calling a taxi company or
”gesturing” to book a cab, a client can start an application on her Smart Phone that seamlessly
achieves the same goal. Hence, the client is just one-click away from booking a cab. In this scenario,
each cab is equipped with 802.11 wireless networking and GPS devices, and the entire booking
process is completely decentralized. To join the mobile ad hoc network created by the cabs, a Smart
Phone needs to connect to a gateway station that performs a translation of protocols from Bluetooth to
802.11 and vice-versa.
• Peer-to-Peer Model:
The Smart Phones can also communicate among themselves (or with other bluetooth-enabled
devices) in a multihop, peer-to-peer fashion, similar to mobile ad hoc networks. For instance, this
model allows people to share music and pictures with others even if they are not in the proximity of
each other. Figure 5 depicts yet another example of this model. A group of friends having dinner in a
restaurant can use their Smart Phones to execute a program that shares the check. One phone initiates
this process, an ad hoc network of Smart Phones is created, and finally the payment message arrives at
the cashier.
System Architecture:
Our system architecture for universal interaction consists of a common Smart Phone software
architecture and an interaction protocol. This protocol allows Smart Phones to interact with the
surrounding environment and the Internet. Figure 6 shows the Smart Phone software architecture.
.
• Blue tooth Engine is responsible for communicating with the Blue tooth-enabled embedded
systems It is composed of sub-components for device discovery and sending/receiving data.
The Blue tooth Engine is a layer above the Blue tooth stack and provides a convenient Java
API for accessing the Bluetooth stack.
• Internet Access Module carries out the communication between the Smart Phone and various
Internet servers. It provides a well-defined API that supports operations specific to our
architecture (e.g., downloading an interface). The protocol of communication is HTTP on top
of GPRS.
• Proximity Engine is responsible for discovering the embedded systems located within the
Bluetooth communication range. Each time the user wants to interact with one of these
systems, and an interface for this system is not available locally (i.e., a miss in the Interface
Cache), the Proximity Engine is responsible from downloading such an interface. If the
embedded system has enough computing power and memory, the interface can be downloaded
directly from it. Otherwise, the Proximity Engine invokes the Internet Access Module to
connect to a web server and download the interface. The downloaded interface is stored in the
Interface Cache for later reuse. Once this is done, the proximity Engine informs the Execution
Engine to dispatch the downloaded interface for execution. All further communication
between the Smart Phone and the embedded system happens as a result of executing this
interface.
• Execution Engine is invoked by the Proximity Engine and is responsible for dispatching
interface programs for execution over the Java virtual machine. These programs interact with
the Bluetooth Engine to communicate with the embedded systems or with other Smart Phones
(as described in Section 3.4). They may also interact with the Internet Access Module to
communicate with Internet servers. For instance, the interface programs may need to contact a
server for security related actions or to download necessary data in case of a miss in the
Personal Data Storage.
• Interface Cache stores the code of the downloaded interfaces. This cache avoids downloading
an interface every time it is needed. An interface can be shared by an entire class of embedded
systems (e.g., Smart Locks, or Microwaves). Every interface has an ID (which can be the ID
of the embedded system or the class of embedded systems it is associated with). This ID helps
in recognizing the cached interface each time it needs to be looked up in the cache.
Additionally, each interface has an associated access handler that is executed before any
subsequent execution of the interface. This handler may define the time period for which the
interface should be cached, how and when the interface can be reused, or the permissions to
access local resources. The user can set the access handler’s parameters before the first
execution of the interface.
• Personal Data Storage acts as a cache for “active data”, similar to Active ache [14]. It stores
data that needs to be used during the interactions with various embedded systems. Examples
of such data include digital door keys and electronic cash. Each data item stored in this cache
has three associated handlers: access handler, miss handler, and eviction handler. Each time an
interface needs some data, it checks the Personal Data Storage. If the data is available locally
(i.e., hit), the access handler is executed, and the program goes ahead. For instance, the access
handler may check if this data can be shared among different interfaces. If the data is not
available locally (i.e., miss), the miss handler instructs the Internet Access Module to
download the data from the corresponding Internet server. The eviction handler defines the
actions to be taken when data is evicted from the cache. For instance, electronic cash can be
sent back to the bank at eviction time.
Figure 7 shows the interaction protocol that takes place when a Smart Phone needs to interact with an
embedded system. We consider that any embedded system is registered
with a trusted web server (this web server can be physically distributed on multiple computers). At
registration, the web server assigns a unique ID and a URL to the device.
All the information necessary to interact with the device along with a user interface is stored at that
URL. This URL may be common for an entire class of embedded systems. The user invokes the
Proximity Engine each time she needs to interact with a device located in the proximity.
Once the embedded systems in the proximity have been identified, the user can choose the one she
wants to interact with. Consequently, a request is sent to the embedded system to provide its ID and
URL. Upon receiving the ID and URL of the embedded system, the Smart Phone executes the access
control handler, and then, loads and executes the interface.
In case of a miss in the Interface Cache, the interface needs to be downloaded on the phone either from
the web server or from the embedded system itself. An inter- Device ID, Name, Data (optional)
Interface (optional) Interaction via InterfaceDevice ID, Smart Phone ID Request for Interface
Timeline Interface, Data Interaction via Interface Request for Device ID
Status and Future Work:
In this section, we briefly outline the current status and several open issues that we have to
overcome in order to implement our system architecture. We are in the process of building the system
architecture on top of Ericsson’s P800/900 phones. Our first step consists of implementing the basic
architecture for the universal remote control interaction model. The architecture components to be
developed for this model are the Bluetooth Engine and Proximity Engine along with a simple
Execution engine over Java. We have partially implemented the Bluetooth Engine and have written
and tested a few sample programs to test the feasibility of connecting a phone to another phone or to a
Bluetooth-enabled laptop. Besides directly connecting to Bluetooth-enabled devices, a phone can also
connect to a LAN. We are in the process of investigating the feasibility of using the Bluetooth LAN
profile to connect the phone to a LAN through a Bluetooth access point. Until recently, the
commercially available Bluetooth chips have been working well for one-hop communication, but their
scatternet capabilities have not been mature enough to support multi-hop communication as needed in
our peer-to-peer interaction model.
Currently, there are products, however, whose scatternet capabilities have been
successfully tested. We envision that multi-hop communication in ad hoc networks will take place
either over Bluetooth or over 802.11 depending on the trade-offs between the battery power
consumption and communication range. Our system architecture supports both situations through the
peer-to-peer model and the gateway model, respectively. To connect a Smart Phone to the Internet
over GPRS, we can use HTTP or TCP. A decision regarding the protocol used for Internet access
needs to consider the trade-offs between the simplicity provided by HTTP and the flexibility and
efficiency provided by TCP. Although our architecture provides a level of security by obtaining
interface code and confidential data from a trusted web server, many issues related to security and
privacy still need to be addressed. For instance, we need to investigate different lightweight encryption
algorithms that work on resource constrained devices to counter eavesdropping without a serious
overhead. So far we have assumed that the personal information of the user, including confidential
data, would be stored on the Smart Phone. In such a situation, losing the Smart Phone could pose a
serious security threat to the owner. The data stored on the phone should be made inaccessible to
anyone but the phone owner.
A simple password scheme is insufficient because entering a password every time
confidential data is accessed could be a major turn off for the users. We plan to investigate both
software protection mechanisms and hardware solutions (e.g., biometric security using fingerprint
recognition ).
Conclusions:
In this paper, we have argued for turning the Smart Phone into the only device that people carry in
their pockets wherever they go. The Smart Phone can be used as both personal server that stores or
downloads data that its user needs and personal assistant for remote interaction with embedded
systems located in the user’s proximity. To achieve this vision, we have presented a unified system
architecture for different models of interaction between a Smart Phone and the surrounding
environment. Central to this universal interaction architecture is the dual connectivity feature of Smart
Phones, which allows them to interact with the close-by environment through short-range wireless
networking and with the rest of the world through the Internet over cellular links.
References
[1] The Millicent Protocol for Inexpensive Electronic Commerce.
http://www.w3.org/Conferences/WWW4
/Papers/246/.
[2] MIDP Profile. http://wireless.java.sun.com/midp/.
[3] General Packet Radio Service (GPRS).
http://www.gsmworld.com/technology/gprs/intro.shtml.
[4] Zeevo Bluetooth. http://www.azzurri.com/new htm/zeevo.htm.
[5] HP iPAQ 5400. http://welcome.hp.com/country/us/en
/prodserv/handheld.html.
[6] Jini Network Technology.
http://wwws.sun.com/software/jini.
[7] Bluetooth. https://www.bluetooth.org/.
[8] Digicash. http://www.digicash.com.
[9] Ericsson P800. http://www.sonyericsson.com/P800/.
[10] Motorola A760. http://motoinfo.motorola.com/motoinfo
/products.asp?product=A760&y=2003.
[11] PersonalJava. http://java.sun.com/j2me/.
[12] Symbian OS. http://www.symbian.com/.
[13] A. Beaufour and P. Bonnet. Personal Servers as Digital Keys.
In Proceedings of the 2nd IEEE International Conference on
Pervasive Computing and Communications (PerCom 2004).
To Appear, 2004.
[14] P. Cao, J. Zhang, and K. Beach. Active Cache: Caching
Dynamic Contents on the Web . In Proceedings of IFIP
International Conference on Distributed Systems Platforms
and Open Distributed Processing (Middleware 1998), pages
373–388, 1998.
[15] S. Hartwig, J.-P. Stromann, and P. Resch. Wireless Microservers.
Pervasive Computing, 1(2):58–66, April-June
2002.