Professional Documents
Culture Documents
Abstract The main subject of this paper focuses on At the same time, the rapid evolution of technology,
the Research and Development (R&D) of an combined with extensive spread of Open Source
automation system which allows authorized users Software and Automation Systems, have made publicly
(personnel, students and guests) to enter or exit the gates accessible to develop applications and devices with
of the Technological Educational Institute (TEI) of notably low cost. Furthermore, many of our needs and
Athens. actions, are all automatically converted into "Smart"
To accomplish that, there will be placed Arduino electric devices (mobile, TV, etc) to our private lives or
receivers stations (Beacon) at the main gates of the TEI our workplace, universities, industries, public services,
of Athens (Central, West and East) in order to control etc.
the entrance and exit through them. The stations will be Automation systems offer convenience to our lives,
connected serially to the computer of each station- better quality of security, communication, technical
gateway and will communicate with the database on the management and management of resources and energy.
Foundations servers. The user identification and The level of automation, as well as the management of
validation will be accomplished using an Android such a system vary, since it depends on several
application, which communicates with the stations via parameters. The most important is that automation is
Bluetooth, using the communication protocol interface addressed to everyone and besides conveniences, can
that was designed for this thesis. offer real solutions to people who really need them, such
Furthermore, in this thesis will be analyzed concepts as people with disabilities and elderly, providing them
such as Backlog management, Control Version, with an independent and functional life.
Logging, etc., knowledge that is necessary for a software
engineer and the participation in a software development
team. II. Purpose of research
Keywords Automation system, Android operating While observing the rapid technological developments
system, Arduino microprocessor, smart systems, C#, in the field of automation systems, arises the need of
.NET, MySQL, Backlog management, Version Control, research and development of "smart" systems that will
Logging improve our quality of life on both personal and
professional level.
The aim of this thesis is the implementation of an
I. Introduction integrated low cost automation system, which gives
Nowadays, the use of smart devices has become an permission to authorized users drivers to entry or exit
indispensable part of our everyday life and constitutes the gates of the TEI of Athens.
the technology sector with the largest growth in recent The above system consists of three subsystems:
years. The easy access to all kinds and forms of Microcontroller Arduino which will operate as a
information is something that characterizes the modern beacon, it will receive requests from users and
society, due to the wide spread of Internet, leading to control the bars and the indicative LED lights
constant development of new technological trends and according to the commands received from the
applications. administration application.
Android Application which gives user the ability The programming languages and the technologies used
to connect remotely via Bluetooth to the Arduino to implement the system are:
Beacon, placed on the gates of the TEI of Athens, The programming language used for the
and send an authorization request. development of the native Android application is
Windows Application that is installed on the Java, as well as XML for the User Interface.
gateway computer and undertakes the management Programming the Beacon was done with the use of
and communication with the Foundations database the official Arduino programming language. It is
to validate users. based on C/C++, it links against AVR Libc and
The main target of this system is the automated allows the use of any of its functions making the use
management of the foundations gates with multiple of ordinary I/O operations much easier.
benefits: The administration application (BtAdmin) was
Easy and safer entrance and exit from the TEI of written in C# using Visual Studio 2013.
Athens, for both drivers and pedestrians Registered users credentials, Beacons details and
The number of vehicles within the premises other necessary information are stored in a MySQL
becomes available, which in a case of emergency, database server.
consists a preventive safety measure
Security to avoid accidents around the gates
User statistics for better management of the vehicle IV. Communication Protocol Interface
parking slots and the personnel resources The format of the commands that construct the packets
between the involved applications:
III. Architecture of the system
On the current thesis, we are going to use a Message
Microcontroller Arduino UNO and the necessary Description: Used to transfer a message via the Beacon
peripherals to build an automation system that will be Example: #MSG^This is a message$
installed at the gates of the TEI of Athens and will allow
the entry / exit to authorized users by using an Android Action Command
application for mobile devices. Description: Used to change Beacons state
The Arduino (Beacon) will be connected serially via Example: #CMD^5^$
USB to the computer at the gates, on which will be
installed the Administration Application (BtAdmin). User Login
BtAdmin is responsible for identifying users and Description: Used by the Android Application to send
providing them with informative messages, as well as the user authorization request
the automated handling of the gates (indicative LED Example: #USR^username^password^$
lights, bars, etc).
Users will have to install the Android Application on Trace Log
their Smartphones or Tablets and login using their Description: Used by the Arduino Beacon to trace log
private credentials. Activating the service for the messages to Administration Application
automated authorization request, the application Example: #LOG^Tracing out log text$
activates devices Bluetooth and searches for Beacons
within range. When a reliable device is found, it Action with Message
automatically connects via Bluetooth to it and sends a Description: Used to change Beacons state and transfer
message that contains users credentials. The Beacon a message
forwards that message to the administration application Example: #INF^cmd^message$
BtAdmin, which processes the request by querying the
database in foundations servers. If the user is Display State
successfully validated, then a command is sent to the Description: Used by the Administration Application to
Beacon to raise the bars (for certain period of time), get the Beacons state
activate the LED indicator lights, and send a message to Example: #STA^$
inform the user. Otherwise, the user is notified with a
Toast message on their smartphone and by the LED with Reset Beacon
an appropriate indication, to prevent accidents. Description: Used to restart and re-initialize Beacon
Example: #RST^$
V. Android Application
The application uses an Android Service to control
devices Bluetooth automatically search for Beacons,
connect with them and send the authorization request.
The service can stop on users demand, or else it will be
auto-terminated when the Beacon responds to the
request.
XII. References
[1] el.wikipedia.org/wiki/Android
[2] el.wikipedia.org/wiki/Git_()
[3] el.wikipedia.org/wiki/Arduino
[4] stackoverflow.com
[5] www.instructables.com
[6] www.android.com
[7] developer.android.com
[8] www.arduino.cc
[9] arduino.stackexchange.com
[10] arduino-info.wikispaces.com
[11] www.codeproject.com
[12] github.com
[13] eclipse.org
[14] marketplace.eclipse.org/content/android-
development-tools-eclipse
[15] www.dotnetperls.com
[16] www.microsoft.com/net
[17] msdn.microsoft.com
[18] Ken Schwaber and Jeff Sutherland, 2013,
Scrum
[19] iblue.eu/smart-gate
[20] www.gogogate.com
[21] www.bft-automation.com