Sei sulla pagina 1di 4

International Journal of Computer Information Systems,

Vol. 2, No. 2, 2011

Remote Access of Building Management System


Alarms Using Android Mobile Devices
M.Rajasekhara Babu
M V Uttam Tej Assistant Professor (Selection Grade) SCSE, VIT
M.Tech Computer Science ,SCSE University, Vellore, Tamil Nadu
VIT University, Vellore, Tamil Nadu mrajasekharababu@vit.ac.in
uttam.mudiam@gmail.com

Dhanaraj Cheelu P Venkata Krishna


Professor SCSE
Assistant Professor (Senior Grade) SCSE,
VIT University, Vellore, Tamil Nadu VIT University, Vellore, Tamil Nadu
dhanaraj.cheelu@vit.ac.in pvenkatakrishna@vit.ac.in

Abstract— As Internet communication technologies are growing


up. Web Services are rising up as a popular middleware II. TECHNOLOGY OVERVIEW
technology used to integrate heterogeneous building automation In this section we describe about the Web Service and
system on Internet. Android Technology with web services has Android Technology used for free movement of operator in all
gained popularity recently in the mobile Application market. The controlled building area [1].
present problem is impossibility of operator’s movement from
the BMS Control center. Now the solution was bought up by Web Services is a small part of business logic, located
using android technology and web services. The aim of this somewhere on the Internet, that is Accessible through standard-
project is remote access of alarms and acknowledging those using based Internet protocols such as HTTP or SMTP. They are self-
android application and web services. describing, self-contained, loosely coupled and modular
applications that can be published and invoked across the web.
Keywords-component; Building Management System; Web The main objective of Web Services is to build a technical
Services; SQL Server; Android layer which is independent of platforms and programming
languages in existing heterogeneous configuration platforms,
I. INTRODUCTION depending on the technical layer the applications of these
A Building Management System (BMS) is a computer different platforms can implement the interlink age and
based system aims at developing the control and management integration between each other[2].
of both mechanical and electrical systems in buildings. More Web Services are based on a “Service Oriented
generally the interaction among all kinds of devices is found Architecture” [3]. There are three important roles in this
there. The core application areas of BMS are handling architecture: Service Provider, Service Requestor and Service
traditional services like Lighting, Ventilating, Fire System and Broker (Figure 1).
Security System.
The Service Provider is the owner of the service .From
A BMS is a combination of both software and hardware. the architectural orientation this is the platform that hosts
Generally software is used to configure the system in access to the service. It is responsible for creating, publishing,
hierarchical manner and it also uses protocols like C-bus, and providing the service.
Profibus, BACnet, Modbus etc .In the traditional system the
operator use to access the alarms and acknowledging them The Service Requestor is the party that requires certain
sitting at control center. Now in the present system operator is functions to be satisfied. From the architectural orientation this
allowed freely to move and to access and acknowledge alarms is the application that is looking for and invoking or initiating
using android application and web service technology. an interaction with a service.

The Present paper is classified mainly into 5 main The Service Broker is a searchable registry and is
sections. First section mainly focuses on Web Services and responsible for advertising service. Most services registries
Android Technology. Second Section throws light on Existing provide classification schemas allowing users to look up
Scenario. Third Section Deals with tools used for developing services. Some registries even provide a set of APIs for
the application and also describes about the contents in the programming access. Service requestors can find needed
table. Fourth Section Focus on actual work that goes on. services and obtain binding information from the service
Finally it concludes with the conclusion. descriptions either at development time or run time.

April Issue Page 44 of 81 ISSN 2229-5208


International Journal of Computer Information Systems,
Vol. 2, No. 2, 2011

B Programming Languages
Symbian Applications are written using Java Me. We use
.NET CF for Windows Mobile and Android Applications are
primarily written in java and compiled into Dalvik executable
format.

Figure 1. Serice Oriented Architecture

Android [4-7] is the open source mobile application


platform that has the potential high significant importance in
many markets Android is the product of Google and it is the
software stack for mobile devices that includes an operating
system, middle ware and key applications. There are six main
components that provide the building blocks are Activities,
Services, Content Providers, Intents, Broadcast Receivers and
Notifications.
Activities are application’s presentation layer; every screen
in the application will be the extension of Activity class.
Services are invisible workers of the application .There
components run invisibly updating data sources and visible
activities and triggering notifications. Content providers are
sharable data stores. We use intents for simple message passing Figure 3. Comparisons for Java Me, . Net CF, Android
among activities. By creating and registering Broadcast
Receivers the application can listen for broadcast intents that C Number of Users
match specific filter criteria. The Figure below is the North America Smart Phone unit
sales. Only Android sales show significant growth.
Reasons for Selecting Android Mobile Platform:-

The three famous smart phone operating system in mobile


application market are Symbian, Android, and Microsoft
Windows. In this section we compare them with parameters
like
A UserInteface and Availablility
User Interface is an interaction space between humans
and device. The motto of interaction is effective operation and
control of the device. Application Availability mainly deals
with readiness of an application to handle requests and generate
response.

Figure 4. Market Share For Various Mobile OS


Figure 2. Comparisons based on UI and Availability

April Issue Page 45 of 81 ISSN 2229-5208


International Journal of Computer Information Systems,
Vol. 2, No. 2, 2011
III. EXISTING SYSTEM For example
In the Existing System the current state of problem is Toast.makeText(RemoteAccessApps.this,”Youarenotauthorize
impossibility of operator’s movement from the BMS Control d”,Toast.LENGTH_LONG).show;
Center. He has to sit in the central location and look after the
control of BMS. In the present system the operator is allowed
freely to remote access of all alarms using Android Mobile
Device.

IV. IMPLEMENTATION TOOLS


In the present paper we developed front end application
using eclipse and android sdk 2.2 .we used SQL Server 2005 as
a back end to store alarms. Here web Services are developed in
java using eclipse. Alarms table are present in SQL Server
which stores alarms generated by various systems. The alarm
table contains Serial Number, Alarm name, category, Date of
occurrence, time, status and acknowledgement fields. Here
status specify about the level of emergency.

V. ALARMS WEBSERVICES AND CLIENT


The remote access to BMS Alarms which are stored in SQL
Server is possible through web services [8]. We created such
web services using java and with the help of Eclipse. The web Figure 6. Alarms and Logs Activity
methods in the present web service are “Alarm Retrieve”,
“Login” and “Acknowledge” methods. Here user is allowed to specify From Date and To Date.
When he put the cursor on this Text Boxes, Date Picker which
The login method takes 2 arguments i.e. Username and is inbuilt widget in android pops up now he can set the date
Password and Alarm Retrieve method takes 3 arguments i.e. using this picker.
From Date ,To Date and acknowledge both these arguments of After setting both the dates’ .User has 2 types of option that
type String where as acknowledge is of type Boolean. This is achieved by using check Box. When user doesn’t checks the
methods takes three arguments i.e. the Serial Number, Alarm acknowledge press the button submit. On submit button click
Name and Category Whenever the Login information is filled the web service is invoked with these input parameters and it
and user press the submit button. displays the alarms which are not acknowledged so far. In
present scenario user didn’t acknowledged it.

Figure 7. Date Picker


Figure 5. Login Screen
Example:-
The login web method in the web service gets invoked and it SoapObjectRequest=newSoapObject(NameSpace,Alarm
takes the user parameters and checks in the database .When it Retrieve);
return successful the user enters into activity call retrieval or
user will be intimated with the pop up message i.e he is not request.addProperty("fromdate",et.getText().toString());
authorized for this application.
request.addProperty("todate",et1.getText().toString();
request.addProperty("ack", is.isChecked());

April Issue Page 46 of 81 ISSN 2229-5208


International Journal of Computer Information Systems,
Vol. 2, No. 2, 2011
SoapSerializationEnvelope envelope=new i.putExtras(b);
SoapSerializationEnvelope(SoapEnvelope.VER11);
startActivity(i);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttp = new
AndroidHttpTransport(URL);
androidHttp.call(SOAP_ACTION,envelope)

Object result = envelope.getResponse();

Figure 10. Final View of Alarm

VI. CONCLUSION
In over two decades IT industry and Building Automation
System Industry have achieved a great success in technology
and market. Using Web Services in BAS industry it saves users
Figure 8. Start Date and End Date from investment and help them in enhancing utility of BAS
With the development of Internet technologies, as a new and
Now the Web Service Interacts with alarm Data Base in powerful model for creating apps from reusable models in
SQL Server and triggers the query based on the input dates. distributed area Web Services are helping us in solving upper
Here inputs are from date, to date and acknowledge The Result problems. In this paper by using android and web services we
got is shown in the list view in other activity. Here user has a proposed a way of accessing remote alarms and acknowledging
provision to select any alarm from the list. them. This solution makes free movement of BMS Control
operator.
REFERENCES
[1] Krejcar, 0., "PDPT framework - Building information system with
wireless connected mobile devices", In Icinco 2006, 3rd
InternationalConference on Infonnatics in Control, Automation and
Robotics Instinct Press, Setubal, Portugal, pp. 162-167 (2006)
[2] S.Wang,Z.Xu,J.Cao and J.Zhang,”A middleware for web service-
enabled integration and interoperation of intelligent building systems,
”Automation in Construction vol,16,pp.112-121,2007
[3] A. Malatras,A.H.Asgari,T.Bauge,and M.Irons, “A Service-oriented
architecture for building services integration”, Journal of Facilities
Management, vol 6,pp.132-151,2008
[4] M.Kenteris, D.Gavalas and D.Economou “AnInnovativeMobile
Electronic Tourist Guide Application,” Personal and Ubiquitious
Computing, vol 13,no.2, 2009,pp.103-118
[5] A.Shabtai,Y.Fledel,and Y.Elovici, “Securing Android Powered
Figure 9. List View of Alarms Mobile Devices Using SELinux”, IEEE Security and Privacy,2010
[6] W.Enck, M.Ongtang, and P. McDaniel, “Understanding Android
Whenever user clicks on any of the alarm list. The activity Security”, IEEE Security and Privacy, vol 7, 2009, pp 50-57
will be called with the arguments such as Alarm which we [7] “Gartner Says Android to Become No.2 Worldwide Mobile Operating
selected. The Complete information is show to user in the System in 2010 and Challenge Symbian for No1 Position by
activity. 2014,”Gartner Group,10 Sept,2010
For example [8] Krejcar,O.,”Full Scale Software Support on Mobile Lightweight
Devices by Utilization of all Types of Wireless Technologies”, In
Intent I=new Intent (ListAlarm.this, CompleteData.class); Mobilight 2009,May 18-20,2009,LNICST Vol 13 pp. 173-184.
Bundle b=new Bundle(); F.Granelli,C. Skianis,P. Chatzimisos,Y.Xiao andS.Redana(Eds)
Springer,Heidelberg,DOI 10.1007/978-3-642-03819-8_17(2009)
b.putInt("Alarm",selectedalarm); .

April Issue Page 47 of 81 ISSN 2229-5208

Potrebbero piacerti anche