smart home automation - Technofist

whinnycampingΜηχανική

5 Νοε 2013 (πριν από 3 χρόνια και 11 μήνες)

101 εμφανίσεις

Software Requirement Specification of Smart Home Automation


Bangalore

Page
1



ANDROID MEETS

LED BULBS
IN

SMART HOME AUTOMATION


















Software Requirement Specification of Smart Home Automation


Bangalore

Page
2


1.

INTRODUCTION

Android is a free, open source mobile platform. It is a Linux
-
based, multiprocess,
multithreaded
Operating System.

Android is a software stack for mobile devices that
includes an operating system, m
iddleware
and key applications.
By providing an open development platform, Android offers developers the
ability to build extremely rich and innovative applications.

The Android SDK provides the tools and APIs necessary to be
gin developing applications on the
Android platform using the Java programming language.

1.1

Purpose

The purpose of this project is to present an implementation of smart home automation with
advanced android mobile using Bluetooth.
It is intended to give the
user the ability to manage all
the equipments

that are capable of being automated, from a

single controlling source. This
document can serve as a reference or guide to the developers of smart home automation using
android.

1.2

Scope

Smart Home Technology is a collective term for information and communication
-
technology in
homes, where the components are communicating through a Bluetooth.
Disparate equipments
from a variety of manufacturers, using a variety of automation protocols, are

all

abstracted into a
common metaphor

that allows it to be controlled easily by a single system
. All the automation
equipments are viewed in a consistent and uniform way.
Smart Home Technology may be used
for monitoring or switching on and off of the comp
onents, according to the
programmed criteria.

1.3 Definitions, Acronyms
and Abbreviations

Android



Android is a software stack for mobile devices that includes an operating system,
middleware and key applications.

Smart Home automation


It is
anything
that gives you remote or automatic control of things in
& around the home.

Software Requirement Specification of Smart Home Automation


Bangalore

Page
3


LED (Light E
mitting Diode)


It is a diode

that emit
s

visible light when electricity is applied.

It
is a semiconductor light source.

Bluetooth


It
is a

proprietary

open

wireless

technology standard for exchanging data over short
distances.

1.3

References



en.wiki
pedia.org/wiki/Android_(operati
ng_system)



http://developer.android.com/guide/basics/what
-
is
-
android.html













Software Requirement Specification of Smart Home Automation


Bangalore

Page
4


2.
THE OVERALL DESCRIPTION

2.1 Product Perspective

Smart Home Technology can be implemented using various techniques, such as, by using an
X10 device or WiFi. But, they have certain limitations. Communicating over electrical lines is
not always reliable because the lines get "noisy" from powering other dev
ices and an X10 device
could interpret electronic interference as a command and react, or it might
not receive the
command at all.


Bluetooth is selected as our way of communicating PDA/Mobile with the central system.
Bluetooth is selected over WiFi for va
rious reasons: First of all, Bluetooth security is less
complex and more stable than that of WiFi. Bluetooth manages a security measure of only
permitting certain selected devices to interact with them; WiFi, on the other hand, establishes a
WEP key that h
as been known to be cracked. Another reason for Bluetooth to be selected over
WiFi is that, Bluetooth has a shorter range of signal emission than WiFi. This is a pro because
the shorter the range, the less is the amount of intruders who will try to infiltr
ate your home
system.



A block diagram showing the major components are as shown below:













ANDROID
MOBILE

Bluetooth

Bluetooth
Module

8051
Controller

General
Purpose
I/O


Device 1

Device 2

Device n


USER

Software Requirement Specification of Smart Home Automation


Bangalore

Page
5


2.1.1 System Interfaces

The following diagram shows the m
ajor components of the Android Operating S
ystem:


Applications
:

These are applications written in Java.

Application Framework
:

This is the skeleton or framework which all android developers have
to follow.
It enables the reuse and replacement of components.
The developers can access all
framework APIs and manage phone’s basic funct
ions
.

Libraries
:

This layer consists of

Android

libraries
written in C, C++, and used by various
system
s
.

The Android runtime layer which includes
a
set of core java libraries and DVM (Dalvik
Virtual Machine) is also located in same layer.

Runtime Android
:

This layer
includes a set of core libraries
that provides most of the
functionality available in the core libraries of the Java programming language.

Software Requirement Specification of Smart Home Automation


Bangalore

Page
6


Kernel
-

Linux
:

Android relies on Linux for core system services such as security, memory
management, process management, network stack, and driver mo
del. The kernel also acts as an
abstraction layer between the hardware and the rest of the software stack.

2.1.2 Hardware Interfaces

The hardware interfaces required are:



An A
ndroid phone, which acts as the “Universal Remote Controller”.



LED bulbs, which
are the components being automated from a controlling source.

2.1.3

Software
Interfaces

Android SDK
provides the tools and APIs necessary to begin developing applications on the
Android platform using the Java programming language.

2.2

Constraints

The
constraints pertain
ing to our system are
:



Android OS must be installed on the device.



Bluetooth
has a limited range.

2.3

Assumptions and Dependencies

One of our main dependencies is that the Android SDK environment that is set up uses Eclipse
as the IDE, with
a plug
-
in for the SDK and the Android Platform for which it will be developed.







Software Requirement Specification of Smart Home Automation


Bangalore

Page
7


3.

S
PECIFIC REQUIREMENTS

3.1

Functions

The
sequence of operations involved in implementing smart home automation is
:



Switch on the Bluetooth on the Android phone.



Select the LED
device on which the operation is to be performed.

Ensure that the LED

device’s Bluetooth has been activated.



T
he operation
s which can be performed are
“Turn On”

and

“Turn Off”.



Perf
orm the selected operation via Bluetooth.



If the operation performed is “Tu
rn On”, the LED bulb glows and if it is “Turn Off”, the
LED bulb switches off.



The Bluetooth is then deactivated on either side.

3.2

Performance Requirements

Smart Home automation can be implemented on any device that can be made co
mpatible with
the Androi
d phone
.

Any number of LED devices can be supported on the Android phone.

The
data transfer between the s
ource and target devices via Bluetooth shall take place at the rate of 1
Mbps.

3.3

Hardware Requirements



Android m
obile



8051 B
oard


3.4

Software R
equirements



Android SDK



Eclipse SDK



Keil Microvision 3