Beruflich Dokumente
Kultur Dokumente
Supervised by
Mr. MukhtiarZamin
Developed by
Umer Ali
FA12-BSE-208
Saif-ur-Rehman
FA12-BSE-065
Javeria Mughal
FA12-BSE-109
DEPARTMENT_OF_COMPUTER SCIENCES
COMSATSINSTITUTE_OF INFORMATION
TECHNOLOGYABBOTTABAD
MAY, 2016
STARTING WITH NAME OF ALLAH,THE
COMPASSIONATE, ETERNALLY MERCIFUL
Thesis report submitted to COMSATS (CIIT) Abbottabad,
As completionof_requirements
For the_award of the degree_of Bachelors_of Science_in
Software Engineering
FINAL APPROVAL
It is to certify, that we have analyze and read the thesis report submitted by
______________________. It is our analysis and judgment that this thesis report is of enough
standard to warrant it acceptances by the CIIT, Abbottabad for the ____________
3. Supervisor ___________________________________
Mr. MukhtiarZamin
Lecturer,
4. Head of Department
Dr. Muhammad Waqas
Department of Computer Science,
COMSATS Institute of Information Technology,
Abbottabad
I
DEDICATION
This thesis is devoted to my mother and father who encourage me and give_me economic and
moral_aid for fulfilling all my_needs for the duration of the time I evolved my system. This
thesis is also dedicated to my_respected and honorable instructors who supported me all the
way. This thesis is also dedicated to my_juniors and all those people who believe within the
richness of mastering.
I devoted this degree to my respectable Parents, My whole Family, and close Friends
regarded Teachers who spurred, upheld and empowered me in each part of my project.
Umer Ali
II
DECLARATION
I therefore proclaim that this anticipate neither as entire nor as a section has been duplicated
out from any source. It is further announced that I have built up this equipment and went with
report completely on the premise of my own exertion, under the earnest direction of my
instructor (supervisor) and seniors. On the off chance that any piece of this framework is
turned out to be replicated out from any source or observed to be generation of another
person, I might remain by the results.
Signature: ___________
Umer Ali
III
ACKNOWLEDGEMENT
It is my pleasure and I am happy and feeling greatly euphoric to pay heartiest obligations.
Above all else, omnipotent ALLAH that he empowered and favored me to remove the leaf
from his large number bounties.
To my Dear guardians, their supplications turned into the venturing stones towards the
fruition of my undertaking.
I am enormously obligated to my regarded good and kind-hearted supervisor
Mr.MukhtiarZamin that he proposed me an exceptionally amazing and productive thought
and directed and co-worked our venture entire heartedly.
I might likewise want to thank the individuals from the Committee to the Commission and
give esteem counsel and help with this anticipate.
IV
PROJECT IN BRIEF
V
PREFACE
The report speaks to portrayal of investigation, outline, improvement, usage and testing of
"Real Time Fuel Monitoring System (V2)" at CIIT Abbottabad. The whole progress is
outlined and divided in chapters, Appendix and some sections.
CHAPTER ONE: This section examines the introduction of our work, the foundation,
scope and destinations of the framework. It is fundamentally the presentation of the proposed
framework and the disadvantages of the past framework.
CHAPTER THREE: This chapter contains information about components of our projects.
It contain information about both hardware and software components. This chapter is helpful
for the people who are not aware of hardware or software components used in system.
CHAPTER FOUR: This chapter includes the complete design of the system that is main
model of the system, the ways in which system is working and tasks are being executed.
Complete details are provided about the design of system and diagrams are used to give
graphical displays for understanding. The graphical UI is also displayed through images in
this chapter.
CHAPTER FIVE: This chapter includes the information about trial and error in the system
and describes the use of the ways and strategies. The test cases and test plans are used to
make sure the credibility of the system are also described in this chapter. Test cases defined
in this chapter are helpful to understand the functionalities of system and also prove the
correctness of system. Test cases are described in this chapter are detailed to deliver the
correctness of system.
CHAPTER SIX: This chapter deals with the conclusion, features, limitations and future
works of system. This chapter includes the information about the work and advancements
that can be done in future to maximize the utilities and functionalities of system. This
chapter can be helpful for the people working on the system in future.
CHAPTER SEVEN: This chapter deals with the user manual that how to install the system,
how to operate the system and how to take advantage of all functionalities of system. User
manual is for the ease of the user to use the system without any problem and to install al
components when needed.
VI
ABSTRACT
As we know Fuel theft is very common issues now a days and an important economic
problem. It is very common on Base stations and other industrial area where fuel is
continuously used in generators and machines. In our project “Real Time Fuel Monitoring
System” our objective is to remotely monitor the fuel consumption 24/7 and view the refined
information with Graphical displays, Alerts/notifications generation, Reports generation of
consumption, Admin Console, Operator Console, Contractor Console. Monitoring of fuel will
be done using Arduino, specific sensors, GSM and data SIM. Alerts and notifications along
with time and device id are being generated on web server against any change in specified
device of any stakeholder.
In this project main functionalities are extract fuel status from generator, maintain logs on
web server along with date, time and status, Notifications and alerts generations in case of
any change. There will be 3 users of our system Admin, contractor and operator. Admin has
overall authority of system. Contractor will be registered by admin, operator will be
registered by contractor. System is developed by using the separate roles of all stakeholders.
Permissions and roles are assigned to stakeholders according to their level. System
automatically manages the roles of stakeholders when they signed in to the system.
Tools and technologies used in project are C#, Bootstrap, MVC, SQL databases, Html, CSS,
Signal R ,Visual studio and Arduino coding, Arduino (used as medium to read data from
sensors and transfer it to GSM), GSM (used as medium between Arduino and Server for
sending data), Arduino Software (interface between developer and Arduino device), and
Sensors to measure level. Due to Bootstrap technology, system is independent of size of
device in which user will access the website. Bootstrap will automatically resize the size of
website according to screen. So we don’t need android or IOS application in future to access
the system using mobile devices.
Our product will be very effective and beneficial in industries and base stations and it will
decrease the fuel theft rate. We are focusing to make a system as a product to fulfill the
industry requirements and to minimize the fuel theft.
System is useful in all those industries using fuel as their primary source of running daily
operations. System is also helpful to be used in houses, small industries to measure and
monitor any type of liquid on a large scale. As there is no restriction to use the system on fuel
monitoring only, that’s why it can be advantageous on many places.
VII
Table of Contents
Chapter 1:Introduction………….…………………………………………………………………….1
1.1Introduction ........................................................................................................................................ 1
1.2 Scope ................................................................................................................................................. 1
1.3 Objectives ......................................................................................................................................... 1
1.4 Statement of the problem .................................................................................................................. 2
1.5 System importance ............................................................................................................................ 2
1.6 Process prototypical .......................................................................................................................... 2
1.6.1 Prototypes model ....................................................................................................................... 2
1.6.2 Communication: ......................................................................................................................... 2
1.6.3 Planning ..................................................................................................................................... 2
1.6.4 Quickly design ........................................................................................................................... 2
1.6.5 Prototypeconstruction ................................................................................................................ 2
1.6.6 Development, delivery and feedback ......................................................................................... 3
1.7 Feasibility report ............................................................................................................................... 3
1.7.1 Technical feasibility ................................................................................................................... 3
1.7.1.1 Arduino Mega and Arduino IDE......................................................................................... 3
1.7.1.3 Simulators ........................................................................................................................... 3
1.7.1.4 C# language using MVC architecture ................................................................................. 3
1.7.1.5 Web server .......................................................................................................................... 3
1.7.1.6Bootstrap and CSS ............................................................................................................... 3
1.7.1.7 RTC time module ................................................................................................................ 3
1.7.1.8 GSM module ....................................................................................................................... 4
1.7.1.9 SIM ..................................................................................................................................... 4
1.7.2 Financial feasibility .................................................................................................................... 4
1.7.3 Resource feasibility .................................................................................................................... 4
1.7.3.1 Hardware ............................................................................................................................. 4
1.7.3.2 Visual studio ....................................................................................................................... 4
1.7.3.3 XAMPP server and domain ................................................................................................ 5
1.7.4 Operational feasibility ................................................................................................................ 5
Chapter 2:Requirement Analysis…………………………………………………………………….6
2.1 Introduction ....................................................................................................................................... 6
2.1.1 Objective of project.................................................................................................................... 6
2.1.2 Current system ........................................................................................................................... 6
2.1.3 Proposed system......................................................................................................................... 6
2.2 Requirements analysis ...................................................................................................................... 7
VIII
2.2.1 Documentation for user.............................................................................................................. 7
2.2.2 External interface ....................................................................................................................... 7
2.2.3 Functional requirements............................................................................................................. 7
2.3 Performance requirements ................................................................................................................ 7
2.4 Security requirements ....................................................................................................................... 8
2.5 Quality requirements ......................................................................................................................... 8
2.6 Non-Functional requirements ........................................................................................................... 8
2.6.1 Visibility .................................................................................................................................... 8
2.6.2 Scalability .................................................................................................................................. 8
2.6.3 Compatibility ............................................................................................................................. 8
2.6.4 Usability ..................................................................................................................................... 8
2.6.5 Availability ................................................................................................................................ 8
2.6.6 User profiling and role assignment ............................................................................................ 8
Chapter 3:Project Components...…………………………………………………………………….9
3.1 Hardware parts description ............................................................................................................... 9
3.1.1 Arduino Mega 2560 ................................................................................................................... 9
3.1.2 Ultrasonic Module Transducer Sensor ..................................................................................... 10
3.1.3 GSM Module SIM900D .......................................................................................................... 11
3.1.4 RTC module ............................................................................................................................. 12
3.2 Software parts components ............................................................................................................. 13
3.2.1 Windows Operating System..................................................................................................... 13
3.2.2 Visual studio 2013 ................................................................................................................... 13
3.2.3 Arduino 1.0.6 ........................................................................................................................... 13
Chapter 4:System Design………….……………………………………………………………...….13
4.1 Design description .......................................................................................................................... 14
4.2 The design specification of the system ........................................................................................... 14
4.2.1 Analysis model partition .......................................................................................................... 14
4.2.2 Allocation and concurrency subsystem.................................................................................... 14
4.3 Use Case diagram ........................................................................................................................... 14
4.4 Class diagram .................................................................................................................................. 15
4.5 Sequence diagram ........................................................................................................................... 17
4.5.1 Create log readings .................................................................................................................. 17
4.5.2 Login request ........................................................................................................................... 18
4.5.3 Register device ......................................................................................................................... 19
4.5.4 Register user............................................................................................................................. 20
4.6 Component diagram ........................................................................................................................ 21
4.7 Deployment diagram ....................................................................................................................... 22
IX
4.8 Package Diagram ............................................................................................................................ 23
4.9 Entity Relationship Diagram ........................................................................................................... 24
4.10 Block diagram ............................................................................................................................... 25
4.11 Communication diagrams ............................................................................................................. 26
4.11.1 Login request ......................................................................................................................... 26
4.11.2 Add log readings .................................................................................................................... 27
4.11.3 Register device ....................................................................................................................... 28
4.11.4 Register user........................................................................................................................... 29
4.11.5 Request logs ........................................................................................................................... 30
4.12Circuit diagrams ............................................................................................................................. 31
4.12.1GSM Connections ................................................................................................................... 31
4.12.2GSM Module internal circuit diagram .................................................................................... 32
Chapter 5:Quality Assurance………….……………..…………………………………………..….32
5.1 Quality............................................................................................................................................. 33
5.2 Tests ................................................................................................................................................ 33
5.2.1 Test scenario 1 ......................................................................................................................... 33
5.2.2 Test scenario 2 ......................................................................................................................... 33
5.2.3 Test scenario 3 ......................................................................................................................... 34
5.3 Test cases ........................................................................................................................................ 35
5.3.1 Verify Sign In .......................................................................................................................... 35
5.3.2 Verify Register ......................................................................................................................... 38
5.3.3 Change Password ..................................................................................................................... 43
5.3.4 Edit Profile ............................................................................................................................... 46
5.3.5 View Alerts .............................................................................................................................. 49
5.3.6 View Logs ................................................................................................................................ 50
5.3.7 Update Device .......................................................................................................................... 51
5.3.8 Verify Device Reports ............................................................................................................. 54
5.3.9 Verify Devices View................................................................................................................ 56
5.3.10 Verify Accounts View ........................................................................................................... 57
5.4 Discussion on results....................................................................................................................... 59
Chapter 6:Conclusion and Future work.…………………………………………………………...59
6.1 Assessment...................................................................................................................................... 60
6.2 Limitations and features .................................................................................................................. 60
6.2.1 Limitations ............................................................................................................................... 60
6.2.2Features ..................................................................................................................................... 60
6.3 Conclusion ...................................................................................................................................... 60
6.4 Future enhancements ...................................................................................................................... 61
X
Chapter 7:User Manual……..….…………………………………………………...……………….61
7.1 Device installation .......................................................................................................................... 62
7.2 Light status ...................................................................................................................................... 62
7.3 SIM installation............................................................................................................................... 62
7.4 Turn on GSM .................................................................................................................................. 63
7.4.1 GSM light status ...................................................................................................................... 63
7.5 Open the website ............................................................................................................................. 63
7.6 Registration ..................................................................................................................................... 64
7.7 Sign In ............................................................................................................................................. 64
7.8 View dashboard .............................................................................................................................. 65
7.9 Main features .................................................................................................................................. 67
8.1 References ...................................................................................................................................... 71
9.1 Appendix ........................................................................................................................................ 72
XI
List of Tables
XII
List of Figures
XIII
Figure 7-11: Device report .................................................................................................................... 69
Figure 7-12: Logs .................................................................................................................................. 70
XIV
XV
RealaTimeaFuelaMonitoringaSystem
1.1 Introduction
It is the second or modified part of already done fuel monitoring system but we are focusing
to increase the functionalities and utilities of system. Main objective is to create a system
which will monitor the fuel consumption 24/7 and send the required data to web server.
Furthermore we will provide the remote access to the system. It will also include order
processing, refill analysis and fuel consumption analysis. When fuel consumption exceed
threshold value system will send alert to the server to avoid fuel theft. They are normally
utilized as a part of the remote zones where telecom segments have towers and their full
equipment keeps running on Generators, including, Mobilink, Zong, Ufone and Warid and
additionally any association that obliges fuel to work.
Fuel monitoring system is a proper mechanism to analyze and view the live values of fuel
consumption and refill. System will monitor the level or amount of fuel in defined unit and
send the values (data) on server with defined interval of time. Monitoring of fuel level will be
done using Arduino and specific sensors which will be connected to the web server. System
will also perform order processing which includes sending order in case of decreasing fuel to
specified stage. In case of any unwanted change in fuel level system will send alert to the
server. It will also measure and store the amount of change.
Its scope also includes customized website which will presents proper and detailed
information which is required for complete monitoring, alerts and order processing.
1.2 Scope
The framework is designed for the daily monitoring of fuel where user wants. This system is
very cheap, simple, useful, easy to understand and helpful in organizations where fuel is a
basic need and used on daily basis. This framework must be utilized by the administrator,
contractual worker and admin. All of three clients have their specific rights. In simple words
the system will monitor fuel with the help of specialized hardware, arrange the data in
specific order and send the data to web server for refined and customized display.
1.3 Objectives
Main objective is to remotely monitor the fuel consumption 24/7 and view the refined
information with:
Graphical displays
Alerts and notifications generation
Reports generation of consumption
User’s Console
It will empower clients of FMS to save quality energy and time by specifically
giving them the required information of interest on the web, without accessing the
actual device deployed at any place to save client's valuable time
It will decrease the fuel theft rate
Enable users (admin, contractor, and operator) to check the status of the generators
This sensor is based on the concept of sonar waves production to determine distance. It is a
good and cheap way of measuring distance from sensor to the surface where it is placed. Its
readings can be modified to centimeters, inches or feet etc. depending upon requirements
1.7.1.3 Simulators
Simulator are use to send bulk of data to server
1.7.1.9 SIM
GSM module supports SIM card, so it enables us to activate internet package on SIM and use that
internet package to send data to server
1.7.3.1 Hardware
Hardware is easily available in market and can also ordered online.
Real time data capturing from fuel levels through Arduino by using Ultrasonic sensor
(SR04)
Process data on server side and display results
Operational environment for hardware side will include Arduino, Ultrasonic sensors
and fuel tank
For server side web technologies will be used and server will be deployed in any
computer system
Simulators will be used:
To send bulk of data to database so that database can handle maximum load in future
To establish scalability standards
Simulators will be installed in same or different computer systems
Windows Operating system for server side and simulators:
2.1 Introduction
A prerequisite detail for software framework portrays far reaching report of execution of the
system which we will be built up. It contains assets of employments possessions that depict
the all communications the clients will have with the product. SRS likewise contains practical
and non-useful prerequisites. Requirement Analysis is the beginning stage of the product
creating movement. As system developed more intricate it got to be clear that the goal of
whole system can't grasp. Requirement Analysis procedure is request and more uncertain, it
manage the comprehension of the issue, aim and constraints.
The motivation behind our venture is to delineate a model FMS in generators/fuel tanks. The
main purpose as mentioned above is that, system will monitor the fuel in fuel generator tanks.
After analyzing the level in tanks, it will deliver logs, cautioning and alerts .it can be
recognized sufficiently early to maintain a strategic distance from any loses in fuel and
distinguish burglary. The extent of this anticipate performs essentially two errands at first
recognizing fuel volume and afterward performing activity concurring (cautioning the
Operator, contractual worker or Admin – Theft identification).
warning and cautions.It will create reports for vital basic leadership. The extent of this
anticipate performs fundamentally three errands at first identify the fuel volume and after that
performing activity concurring (cautioning the Operator, temporary worker or Admin – Theft
discovery) and generate reports.
2.6.1 Visibility
It has friendly user interface and responsive (The forms and screens of the system will be
adjusted to the size of window of device)
2.6.2 Scalability
The system will be scalable to handle more users after deployment. To test the scalability we
will use simulators to increase users.
2.6.3 Compatibility
This application is compatible with all versions of laptop PC’s.
2.6.4 Usability
System should have usable and simple interfaces for the ease of users.
2.6.5 Availability
As the main purpose of the system is to monitor fuel 24 hours, so availability matters a lot.
System should be available 24/7 to fulfill required functionalities.
.It also contains ports for interface to computer, battery and internet. Arduino contains a small
processor to process code instructions. Its code is compiled in Arduino IDE.
Arduino board can be used on choice of coder, you can use Arduino to perform any
task by attaching specific hardware with it and write the required code.Arduini board
have versatile functionalities and it can be usedwith multiple sensors and components.
It has 54 automated data/yield pins for data and yield, 15 of them are dedicatedto be
used as PWM yields.
In our undertaking observing of fuel level will be done utilizing Arduino and
particular sensors which will be associated with the web server.
Our task depends on Real time information catching from fuel levels through Arduino
by utilizing Ultrasonic sensor (SR04).
It is a good and cheap way of measuring distance from sensor to the surface where it
is placed. Its readings can be modified to centimeters, inches or feet etc. depending
upon requirements
When voltage is provided i.e. 5 volts, it sends sonar waves to the fuel, to check the
level of fuel
When sonar waves hit the level of fuel, ultrasonic sensor measures the distance
between its face and the level of fuel
Distance can be converted to cm, inches, feet etc. on the demand of user
Ultrasonic sensor is the best way to measure distance as it is cheap
It also have some limitations that cannot be ignored like positioning problems
For more accurate measurement and very less percentage of data loss, highly accurate
sensors can be used
Figure 3-3:
3 -3:SIM900D
GSM Module Figure 3-3: SIM900D
This GSM module supports SIM card, and SIM internet can be activated and used by
using this module with Arduino. This module uses the internet connection of SIM to
transfer data to server.
GSM module is a best way to remove the dependency of internet in far or backward
areas
We are using GSM module in order to remove dependency of internet connection like
DSL in mobile communication towers on hilly areas
GSM module supports SIM card, so it enables us to activate internet package on SIM
and use that internet package to send data to server
This module works likes a medium to end the dependency of internet like DSL,
Ethernet, WIFI and used the remote network to transfer data
It is used in all mobiles by telecommunication companies. It can be also used with
embedded systems to perform many tasks.
The module is used for time calculations and real time updation. This module contains
its own battery so that time remains updated even if the system is power of. Different
libraries can be used with it.
Calculations of Leap and normal years
Calender with full accuracy
Backup battery for time updation
Pin for output
Memory of 56 bytes for user, it is non-volatile
This module works on DST library, which can be easily download and installed in
Arduino IDE
It also have built-in method of checking circuit, if circuit is not properly made,
Arduino IDE will display message to check circuit
For interfacing and connection of these hardware modules, connectors or jumpers are used.
These are small wires to provide voltage to hardware components from battery. All hardware
used in this project is easily available in market and can be programmed to do required
functionality.
In case of failure of any of hardware component, it can be easily replaced and new component
can easily installed.
Visual studio is a versatile and very good tool for development of applications
designed and created by Microsoft
It is used for many purposes including web applications development, android apps
development and much more
It contains rich variety of forms, facility of designing, debugging and testing, code
management, frameworks, application architectures, and support of multiple
applications development
It’s one other functionality is that managed and native code both can be produced
Visual studio allows multiple instances to run at same time because every instance has
its own VS package
Specific inputs (data types etc.) which we are entering into the system.
Admin usecase diagram is describing complete interaction of Admin with system. This
diagram is showing all the functionalities and the roles fulfilled by the Admin. Contractor
usecase diagram is describing complete interaction of Contractor with system. This diagram
is showing all the functionalities and the roles fulfilled by the Contractor. Operatorusecase
diagram is describing complete interaction of Operator with system. This diagram is showing
all the functionalities and the roles fulfilled by the Operator.Device usecase diagram are
describing complete interaction of Genset device with system. This diagram is showing all
the functionalities and the roles fulfilled by the Genset device.
DeserializeObject<ResultsCont...
Steps includes how to make request, what data is required, how data will be passed, how
objects will be made etc.
Diagram is showing the complete mechanism which will be performed at the back end.
Department of computer Science, CIIT Abbottabad 20
RealaTimeaFuelaMonitoringaSystem
Above mentioned diagram is showing our system’s components and their connection. It is
clearly mentioned that there are three main components in our system. Arduino is used at
hardware side for fuel monitoring and sending it to server through GSM. FMS service is
playing the role of data acceptor and performing analysis on data, It is accepting data from
device sent through GSM, analyze it and send it to FMS web application.
FMS web application receives data and display it on dashboard for the stakeholders, It
displays the data in different styles for the understanding of stakeholders.
Deployment diagram mentioned above is showing the deployment of our system when we
will deploy it in actual environment. Diagram is showing the main components and the way
in which they are deployed. Diagram is also sowing the relationship between components
when they are deployed.
The package diagram is use for demonstrating the course of action and association of model
components in center to expansive scale undertakings. This outline demonstrates both
structure and conditions amongst frameworks and subsystems or modules of the fancied
framework. Packages are arranged in form of layers or we can say separate boxes, each
packages contains related components which works together or whose work is related to each
other. For example package for UI, package for business logic, package for storage or
database etc. In our project our three main packages are FMS, FMSCommon and FMSDAL
application.
This ER diagram is showing the database structure of our system, main classes of database,
their dependency, relationships and variables declared. ER diagram shows the complete
database design, working and purpose of database. It also shows the data needed to be saved
and how to deal with data. It also shows the data types of data which is being stored.
This block diagram is showing the main blocks of our system and how these main blocks are
communicating with each other. How communication is depending on blocks and what is the
dependency, we can take the general idea about blocks of system and their working but we
can’t take details from block diagram, In short we can say that this diagram is generally
showing the overview of the blocks of the system without going into inner details of system.
It does not describe the inner functionalities but the components of the system in which one
component provide the services and other component require the services
In our case we have 4 major blocks of our system Sensor, Arduino, GSM,
WebService.Arduino takes reading from the sensor and send reading to web server through
GSM modem. Sensor will sense the top distance of fuel from sensor in centimeters .Arduino
will take reading from sensor and transfer it to webserver through GSM.
It can be easily observed that how functions are being called, which functions are called and
how communication is being done in the mentioned diagram.
It can be easily observed that how functions are being called, which functions are called and
how communication is being done in the mentioned diagram.
How GSM module is integrated with Arduino, and how to join sensors with Arduino. It is
clearly described from these diagrams. Also one diagram is showing the internal mechanism
and structure of GSM module for more understanding.
These diagrams are helpful for future works and also helpful in case there is need to replace
any module and connect it again. Circuit diagrams are important because it is very difficult to
make hardware runnable without circuit diagram. Circuit diagrams enables developers to
integrate and run hardware components in short time.
These diagrams are also describing the position and direction of connectors to connect them
on a specific point of Arduino. These connector are difficult to manage and very hard to
remember without these circuit diagram. Circuit diagrams are clearly elaborating everything.
5.1 Quality
As mentioned above, we will discuss accuracy and performance of our system from both
developers and users point of view. The aspect of the future upgrade and adjustments to be
made are also mentioned. Quality is assured with the help of test cases and test scenarios.
5.2 Tests
We have perform different tests to measure the accuracy and performance of our system by
taking 100 different reading actual reading, layered reading, reading by using 2 sensors and
compare the results and see which gives better result.
Description: Verify Sign In page and Approved by: Supervisor andUmer Ali
functionality with valid username and Password
Pre-conditions:
1. Sign In screen should be open
2. There should be working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
4 Click on Invalid Email Id User should not Sign Sign In failed Pass
Sign In and valid In and message is with message
button Password displayed
Post-conditions:
1. User is validated with database
2. Successfully signed in to required account (Admin account or Contractor account or
Operator account according to Email Id and Password)
3. The account session details are maintained
Table 5-1: Test Case Verify Sign In
Description: Verify Registration page and functionality Test Approved by: Supervisor
with all valid fields andJaveria Mughal
Pre-conditions:
1. Register screen should be open
2. There should be working internet connection
3. System is up to use
Basic flow:
Basic flow shows the basic steps needed to perform the testcase. Basic flow is showing the
steps needed to perform the step and data required to fulfill the requirements of steps needed
to process the request.
User Successfu
should lly
2 Enter FirstName=Umer Register Registere Pass
FirstName when d to
Register required
pressed account
when
Register
pressed
User Successfu
should lly
3 Enter LastName= Register Registere Pass
LastName when d to
Ali
Register required
pressed account
when
Register
pressed
User Successfu
should lly
4 Enter EmailId= Register Registere Pass
EmailId when d to
umer_shiningstar@yahoo.co
m Register required
pressed account
when
Register
pressed
User Successfu
should lly
5 Enter Password= Register Register Pass
User Successfu
should lly
6 Enter CellNumber= Register Registere Pass
CellNumbe when d to
r 034595627333
Register required
pressed account
when
Register
pressed
User Successfu
should lly
Enter Supervisor Id= Register Registere Pass
Supervisor when d to
7 Id “saif.ciit@gmail.com”
Register required
pressed account
when
Register
pressed
034595627333
Etc
Display “Enter 8-
“Enter 8- 20
Provide
20 characters
invalid
3 Password=aaaa characters Password” Pass
Password
Password”
message Message is
with displayed
Password with
field. Password
field.
FisrtName:
Umer
Etc
User Sign In
should not failed with
3 Click on One or both empty fields Sign In and message Pass
Sign In message is “Required
button displayed ” with all
fields
Post-conditions:
1. User(Contractor, Operator) data is being save in database
2. Successfully registered to required account ( Contractor account or Operator account
according to their selection of type)
Table 5-2: Test Case Verify Register
Description: Verify Change Password Test Approved by: Supervisor and Saif-
ur-Rehman
Pre-conditions:
1. Change Password panel should be open
2. There should be working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase for verifying the required
functionality of testcase. Basic flow is showing the steps and data needed to process this
request and sequence in which steps should be performed in order to process the task
successfully.
Successfully
Changed
User Password
Password from
2 Enter Old OldPassword= should be specified Pass
Password change
Fuel1234 account
when when
change change
Password Password
pressed pressed
Successfully
Changed
User Password
Password from
3 Enter New NewPassword= should be specified Pass
Password change
mughal1234 account
when when
change change
Password Password
pressed pressed
Password New
with message Password and
“New and confirm
Password New
doesn’t Password and
change with confirm
Enter New NewPassword= following Password
Password message doesn’t
3 mughal1234 “New match Pass
Password
and confirm
Password
doesn’t
match”
Password New
doesn’t Password and
change with confirm
Confirm Confirm following Password
New NewPassword= message doesn’t
4 Password “New match Pass
Mughal0345 Password
and confirm
Password
doesn’t
match”
Post-conditions:
1. New Password is being updated in database
2. Successfully change Password from specified account ( Contractor ,Operator, Admin)
Table 5-3: Test Case Change Password
Description: Verify Edit Profile page Test Approved by: Supervisor andSaif-
ur-Rehman
Pre-conditions:
1. Update profile screen should be open
2. There should be working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
Post-conditions:
1. User(Contractor, Operator, Admin) data is being updated in database
Table 5-4: Test Case Edit Profile
Pre-conditions:
1. Alerts page should be displayed on screen
2. There should be working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
User is
navigated on
the alerts
1 Navigate to Alerts are being User should page and Pass
view alerts save in database be able to alerts are
see all alerts being
displayed.
1 Navigate to Alerts not save in User should Alerts are not Pass
view logs database not see alerts displayed
Post-conditions:
1. Alerts are being displayed on screen with Threshold, id and device etc.
Table 5-5: Test Case View Alerts
Description: Verify Logs are maintained Approved by: Supervisor and Umer Ali
Pre-conditions:
1. Logs reading page should be open
2. There should be working internet connection
3. Database in working condition
4. Server should be up and working
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
Post-conditions:
1. Logs are being displayed on screen with id, phone number, distance in cm etc.
Table 5-6: Test Case View Logs
Pre-conditions:
1. User must be logged in
2. Dashboard should be in working
3. There should be working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
Post-conditions:
1. Updated device data stored in database should be maintained with updated data
Table 5-7: Test Case Update Device
Pre-conditions:
1. User (Admin, Contractor, Operator) must be logged in
2. Dashboard should be in working
3. There should be working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
Select
required
device Selected device from Device Device Pass
from dropdown should be selected
3 selected successfully
dropdown
Post-conditions:
1. Data is fetched from database for displaying report
2. Report displayed with specific information
Table 5-8: Test Case Verify Device Reports
Description: Verify that all registered devices Approved by: Supervisor andgroup
are available to display members
Pre-conditions:
1. User (Admin or Contractor or Operator should be signed in)
2. Dashboard should be in working condition
3. Working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
View devices
page with all
Click on NILL User should registered
view be able to see devices in a Pass
2 devices empty space table is
from Main at “operated displayed
navigation by” if device with empty
has no space if
operator device has no
operator
Post-conditions:
1. Specific data is fetched from database for displaying devices (Contractors and
Operators can view their devices only not all
2. Devices displayed in table with specific information
Table 5-9: Test Case Verify Devices View
Pre-conditions:
1. Admin should be signed in
2. Dashboard should be in working condition
3. Working internet connection
Basic flow:
Basic flow shows the basic steps needed to perform the testcase.
Post-conditions:
1. Specific data is fetched from database for displaying accounts (Only admin can view)
2. Accounts displayed in table with specific information
Table 5-10: Test Case Verify Accounts
6.1 Assessment
Assessment of the framework is really assessment of execution, from engineers and clients
perspective, complex programming frameworks. The part without bounds conformity to be
made is additionally said.
6.3 Conclusion
As I have discussed all aspects of the system in the document above. All functionalities,
features, and limitations are discussed in detail. I conclude that this system is good for the
fuel monitoring at different places like telecommunication companies. These companies use
large generators under the towers, and it cause difficulties and extra efforts to maintain the
required level of fuel. There is also a big problem of fuel theft which is the main target of our
system.
If it is marketed in the proper way and we take care of its maintenance and future works and
we update it with time, this system has full capability to survive in market and save the time,
efforts and cost of people. Also it can play a good role in avoiding fuel theft. Some
limitations are still there in system at hardware side but these can be controlled and removed
with time and we can make the system more reliable.
Department of computer Science, CIIT Abbottabad 60
RealaTimeaFuelaMonitoringaSystem
1. In the future we will modify this application to allow the application to run on other
operating systems
2. We will extend the role of the application and add some extra features to the website.
3. Sensors that will not be failed even fuel touches them
4. Highly accurate sensors
5. More refine reports and more refine hardware
6. System will be able to handle more large reservoirs
7. System will produce crystal reports (more refined mechanism of reporting)
8. Extension of system to be used in automobiles and tankers also
9. Future works also contains handling of much irregular fuel and tank shape
10. More realistic and simple user interface
7.6 Registration
User should first of all register himself or herself and select their type.
7.7 Sign In
After this user can sign in by the credentials he used to sign up.
Edit profile
View alerts of assigned devices only
Generate fuel added reports
View concerned operator
Verify requested operator
Register new device
Assign device to operator
Generate fuel consumption graph
View Genset device on map(reporting devices, non-reporting devices, reporting in
last 15 minutes)
Log off to quit safely
It is contractor console with all features provided to contractor at left side in side bar. Main
map is showing device locations and status of devices. Three boxes above the map are
showing the information about the logs, devices and members. Icons at top left corner are
shoeing alerts and notifications.
Same dashboard is designed for the admin and operator with different features and
permissions.
It is device registration panel for registration of new device when it is deployed in real
environment. After registration system will perform all functionalities on new device
implemented for device management.
These are the graphs for visualizing logs readings and fuel consumption for better
understanding and analysis performed by the user. These graphs are generated on real data
and gives the picture of real analysis of fuel monitoring.
These are the device reports showing the customized and summarized information about
device. User will just select the device and click on generate report to show the report of that
specific device.
These are the actual readings showing the actual level of fuel in the Genset where device is
deployed. System perform every functionality on the basis of data i.e. reports, graphs, etc. are
generated on the basis of this data.
8.1 References
http://www.guardmagic.com/01-engl/11e-solution/21e-fuelstorage-tank/22-04-tank-
monitoring.htm
http://imgusr.tradekey.com/p-8567263-20140126074347/fuel-monitoring-system.jpg
http://www.fueltek.co.uk/news/
http://www.guardmagic.com/01-engl/01e-shortly/1-fuel-monitoring/0e-fuel.htm
http://www.guardmagic.com/01-engl/11e-solution/aboutproducts.htm
http://www.alltrac.com.pk/generator-monitoring/
http://aakashtechsupportdocs.readthedocs.org/en/latest/nonfunc.html
https://www.sparkfun.com/products/9533
https://www.elprocus.com/gsm-architecture-features-working/
http://ecomputernotes.com/software-engineering/principles-of-software-design-and-concepts
http://creately.com/blog/diagrams/uml-diagram-types-examples/
9.1 Appendix
Terms Definition
Server Server means web server application that will run on PC side.
RTC Real Time Clock (RTC) Module is the cheapest and excellent way to get
the time with every reading sent from device to server.