Você está na página 1de 33

1

1. Problem Statement and its Analysis


1.1 Problem Statement
In Petrochemicals refineries, Metal factories and Nuclear Reactors are some of the example of firms where working with high temperature and fire is normal. All the times either they need to work with high heat, fire or they need to work with fire sensitive substances, and so a small spark takes the form of fire disaster is common. All the companies often include more than hundred or sometimes thousands of employees and in case where fire matters, the safety of each employee is crucial. Example: One of the recent examples is the disaster in Rajasthan, Jaipur oil depots. The loss of money was of Rupees 191 crore and 5 killed, 150 injured in Jaipur oil depot fire. This is just one example and if we refer history then well find a large number of such disasters. So Now to make secure life of workers in such firms is most important as because in countries like India, most of the families have only one working person and the end of life of any human due to such fire disaster cannot be tolerated.

1.2 Effective way to Alert


What does YOUR staff do when you hear an alarm go off? Unfortunately, statistics show 75% of them will think it is a nuisance alarm and do nothing. So how best to warn employees and the general public when there really IS an emergency? Dont just tell them whats going on, show them! Instantly publish a highly visible alert on all PC and mobile devices. With this Emergency Alert Server this only takes few seconds. Easily publish alerts in multiple colored notice, add a (spoken) audio warning, emergency details or evacuation instructions. After all, people take detailed alarms more seriously than generic ones. And, calamities differ. To give an example what do you do if there is an important virus alert? And what if there is a fire at the designated meeting point? Follow in the footsteps of nuclear power plants, airports and police services already using high prevention again fire disasters. Complete and strengthen your existing alert systems without the need for investing in expensive hardware.

2. Methodologies & Architecture

2.1 Following mechanisms are required for implementing our security system:
Sensing Mechanism To sense the smoke at regular interval of time and checking for the data at serial port. Processing Mechanism To start taking action if the data value is available at Serial port and start other modules. Attention Mechanism To send a signal to the hardware in order to notify fire. Serial Port Communication - Using DB9 connector (For data input to the computer) Parallel Port Communication - Using DB25 connector (For data output from the computer)

3. Tools and Technology


3.1 Software
3.1.1 C#: C# is an object oriented programming language developed by Microsoft as part of the .NET initiative. Anders Hejlsberg leads development of the C# language, which has a procedural, object-oriented syntax based on C++ and includes influences from aspects of several other programming languages with a particular emphasis on simplification. C# has evolved from C/C++. Hence, it retains its family name. The .NET platform supports more than 20 different languages and the list is growing every day. The C# compiler is considered to be the most efficient compiler in the .NET family as a major part of the .NET base classes libraries (which constitute a major part of .NET) itself are written in C#. Moreover, C# can be regarded as a modern replacement for C/C++ languages. It gives access to many of the facilities previously available only in C++, while retaining some of the simplicity of Visual Basic. Though other languages have been plugged into the .NET platform, C# was developed specifically for the new platform. It is because of all these reasons that C# is the preferred choice of the language for the .NET platform. Advantages of C#:      Simple Secure Portable Object-oriented Robust     Architecture-neutral Interpreted High Performance Dynamic

3.1.2 SQL SERVER 2005: Microsoft SQL Server 2005 is a full-featured relational database management system (RDBMS) that offers a variety of administrative tools to ease the burdens of database development, maintenance and administration. The SQL Server 2005 data platform provides organizations of all sizes with the following benefits: Leverage data assets: In addition to delivering a secure, reliable database for line-of business and analytical applications, SQL Server 2005 enables customers to get more value from their data by including embedded functionality such as reporting, analysis and data mining. Increase productivity: Through comprehensive business intelligence capabilities and integration with familiar tools such as the Microsoft Office System, SQL Server 2005 provides information workers across your organization with critical, timely business information that is tailored to their specific needs. The goal is to extend BI to all users within an organization to make better business decisions based on one of their most valuable assets their data. Reduce Information Technology complexity: SQL Server 2005 simplifies the development, deployment and management of line-of-business and analytical applications by providing a flexible development environment for developers and integrated, automated management tools for database administrators.

3.2 Hardware Tools :


The other backbones are      LM 324 AT 89S52 voltage regulators 7805 blue port Smoke detector

 Crystal for pulse generations

4. Logical Decomposition
The Fire Alert System is divided into two parts. 1. Hardware 2. Software Below figure shows the flow of our modules.

DATABASE

SENSOR

HARDWARE INTERFACING

C# MODULE

SMOKE SENSING MODULE

OPENING EXIT DOORS MODULE

Figure 4.1: Flow Of Module

4.1 Explanation of Module


Fire Sensor: Sensor is used for sensing the fire. Fire sensor is generally one kind of smoke sensor which senses the smoke. Hardware Interface: This module enables the external hardware circuit to communicate with serial port. The fire sensor senses smoke which is converted into high logic which is applied to controller circuit which converts the signal in HEX format and transfers it to serial port. C# Module: As the signal received the C# module starts working. It sends messages to all employees mobile, Alert all LAN connected PC i.e. Send messages to all LAN connected PCs and alert employees by announcing i.e. Text to Speech conversion.

4.2 Hardware Decomposition


Fire Sensor The Fire Sensor is actually a Photo Sensor in which the stop receiving the signal due to heavy smoke and then the output of the sensor is given to time IC which generates the 0 1 square pulses for Buzzer

Micro Programming In Hardware The P89V51RD2 is an 80C51 microcontroller with 64 kB Flash and 1024 bytes of data RAM. A key feature of the P89V51RD2 is its X2 mode option. The design engineer can choose to run the application with the conventional 80C51 clock rate (12 clocks per machine cycle) or select the X2 mode (6 clocks per machine cycle) to achieve twice the throughput at the same clock frequency. Another way to benefit from this feature is to keep the same performance by reducing the clock frequency by half, thus dramatically reducing the EMI. The Flash program memory supports both parallel programming and in serial In-System Programming (ISP).

HARDWARE INTERFACING

HARDWARE

ALRM BUZZES AND LED GLOWS

MICRO PROGRAMMING IN HARDWARE

Figure 4.2 Hardware Decomposition

4.3 Software Decomposition


Login Authentication Login authentication for fire alert system enables the login of only authorized users. The password for login is encrypted and then stored in the database. So no one can understand it even if one get access to database Sensing Circuit Interfacing This module at the time of execution, verifies that all the hardwares required are connected or not. The message displayed if some hardware module is not connected properly. Receive Signal from Hardware Circuit The signal generated externally is applied to computer via serial port. The signal sends the data to serial port which is read by receiving signal module. Send message to mobile and LAN connected PCs Once the signal is received the alert messages send to all those employees cell phones that are present in company. Sequentially the LAN connected PCs are also alerted by alert message. Database Entry This module is used to make insertion and retrieval in different database tables such as LOGIN, EMPLOYEE, DESIGNATION, DEPARTMENT, etc. Send Signal to Hardware Circuit For opening and closing the emergency doors the software send the signal to external hardware circuit.

10

LOGIN AUTHENTICATION SENSING CIRCUIT INTERFACING SOFTWARE RECEIVE SIGNAL FROM HARDWARE SEND MESSAGES TO MOBILES AND LAN CONNECTED PCS

DATABASE ENTRY

SEND SIGNAL TO HARDWARE CIRCUIT

Figure 4.3 Software Decomposition

11

5. Database Design

LoginId Login Password


For the authentication purpose we are using the login table which has fields loginId and password

DeptID
Department table include the details for all department which has fields DeptId and DeptName. DeptId is primary key

Department DeptName

12

DesigID
Designation table include the details about designation which has fields DesigId and DesigName. DesigId is primary key.

Designation

DesigName

EmpNo EmpName

Email
Employee

Phone No Address DesigId DeptId

Employee table include the details for all employees which has fields such as EmpId, EmpName, Email, PhNo, Address, DesigId, DeptId. EmpNo is primary key.

13

6. UML Diagrams
6.1 Use Case Diagrams
A use case is a methodology used in system analysis to identify, clarify, and organize system requirements. In use case diagram actors and activities are defined. In this use case Sensing device, Employee and Systems are defined as Actors. System has activities such as receiving signal, sending messages to mobile, sending messages to LAN connected PCs. Sensing device has activity of sensing smoke and sending signal.

sense signal

Sensing Device

login Employee send signal to system

14

Recei e i

end Messages empl mobile

Send messages o all LAN connected PC

System

Text to Spech convert

Database entry

delete database

Update database

Figure 6.1: Use Case Diagrams

ee

15

6.2 Activity Diagram


Activity diagrams are graphical representations of workflows of stepwise activities and actions with support for choice, iteration and concurrency Here how alert is done is shown. As the signal is sense the system receive it and start sending messages to all employees mobiles,LAN connected PCs and convert Text to Speech.

Figure 6.2: Activity Diagrams

16

6.3 Sequence Diagram


A sequence diagram in Unified Modeling Language (UML) is a kind of interaction diagram that shows how processes operate with one another and in what order. It is a construct of a Message Sequence Chart. In the sequence diagram shown below, as the signal is sense the system receive it and start sending messages to all employees mobiles,LAN connected PCs and convert Text to Speech.

Sensing Device

System

Database Driver

Database

Sense Temperature

Send signal

Execute Select Query

Fetch Employee ph no.

Send Messages to employee mobile

Send LAN message

Text to Speech convert

Figure 6.3: Sequence Diagram

17

6.4 Class Diagram


In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, and the relationships between the classes.

S 1 S

1 1..* Syst

i si

s s

Figure 6.4: Class Diagram

 

c iv si l() ss () AN s () t xt2s ch()

            

      
s t S si

 
si D vic tu () l() 1 l y i h _ _ i si i ()

          

       

18

7. Model
7.1 Waterfall Model
The name of the waterfall lifecycle model comes from its physical appearance, shown in Figure 8.1, and the process by which the results from one phase flow into the next. An alternative name for this model is the Big Bang lifecycle because working results first appear near the end of the process, something like how scientists describe the Big Bang theory of how the universe was created. The waterfall model is simple, easy to learn, and easy to use. I and others have used it successfully in its standard and modified forms. The format of this model makes it easy to document, update, and refine using software such as Office Project and other Gantt chartbased project management systems. Advantages y Waterfall model provides a template into which methods for analysis, design, coding, testing and support can be placed. it remains a widly used procedural model for software engineering.

y .

Disadvantages y Real project rarely follow thw sequential flow that the model proposes. Although the waterfall model can accommodate iteration, it does so indirectly. As a result, change can cause confusion as the project team proceeds. The waterfall model requires all requirement explicitly, but it is often difficult for the customer to state all requirement explicitly.

A working version of the program will not be available until late in the project timespan.

19

Communication
Information gathering

Planning
Planning schedule Risk analysis

Modeling
Design Analysis

Construction
Coding Testing

Deployment
Delivery Feedback

Figure 7.1: Waterfall Model

20

8. Test Cases

8.1 Unit Testing


Unit testing focuses verification effort on the smallest unit of software design the software component. It is a white-box testing method i.e. it focuses on the internal processing logic and data structures of a component or unit. Test Case 1 Statement: Login module test. Result: Valid user is logging in. Test Case 2 Statement: Checking the serial port input. Result: The HEX value is received properly. Test Case 3 Statement: Messages Sending. Result: The Messages are received. Test Case 4 Statement: LAN Messages Sending. Result: The LAN Messages are received. Test Case 5 Statement: Sending signal to parallel port. Result: The signal is received at parallel port.

21

10. Gantt Chart

22

8/30/2009 0/19/2009 2/8/20091/27/20103/18/20105/7/20106/26/2010 1 1

1. Informatin Gathering

2. Learning C#

3. Hardware Design

4. Database Design

5. Sending LAN Meaasage

6. Sending Messge To Mobile

7. Text to speech Conversion

8. Learning and Implementing Serial Port Interface

9. Complete Integration

10. Final touch up

23

Conclusion

24

References
1. http://electroschematics.com/4426/diode-based-fire-sensor/ 2. http://en.kioskea.net/contents/elec/connecteur-prise-db9.php3

3. http://www.dotnetspider.com/forum/144707-send-message-one-system-another-systemLAN.aspx 4. http://www.dotnetspider.com/resources/35565-Send-Message-all-hosts-connectedLAN.aspx 5. http://www.gnutellaforums.com/general-p2p-network-discussion/67061-send-messagelan-i-want-write-program-c-can-send-others.html 6. http://www.eggheadcafe.com/community/aspnet/2/10085799/how-to-send-message-vial.aspx 7. http://www.eggheadcafe.com/community/aspnet/2/10068132/how-to-send-the-messagef.aspx 8. http://www.dreamincode.net/forums/topic/75990-convert-speech-to-text-and-vice-versain-c%23net/ 9. http://www.dreamincode.net/forums/topic/75990-convert-speech-to-text-and-vice-versain-c%23net/ 10. The 8051 Micro Controller and Embedded Systems by Muhammad Ali Mazidi and Janice Gillipie Mazidi 11. A Brain Friendly Guide Head First C# by Andrew Stellman and Jennifer Greene PSE 12. Programming in C# by Balagurusamy

25

Appendix

Login Form

New User Form

26

Main Screen

Department Form

27

Designation

28

Employee Form

29

IC 8051

30

Pin Description of P89V51RD2

31

Block daigram of P89V51RD2

32

Circuit Diagram for Motor Circuit

33

Você também pode gostar