GSM based security system

download GSM based security system

of 75

  • date post

    31-Oct-2014
  • Category

    Documents

  • view

    156
  • download

    1

Embed Size (px)

description

communication project

Transcript of GSM based security system

Table of contentsExecutive Summary............................................................................................................. 2 Introduction ........................................................................................................................ 3 Part one .............................................................................................................................. 5 Hardware ............................................................................................................................ 5 Infrared Transmitter ....................................................................................................... 5 Infrared receiver ............................................................................................................. 6 Inverter gate (SN54/74LS04) .......................................................................................... 7 Microcontroller ............................................................................................................... 7 A Brief Introduction to 8051 Microcontroller............................................................. 7 Pin Description of the AT89C55WD microcontroller: ............................................... 10 Interrupt .................................................................................................................... 12 Level-triggered interrupts ..................................................................................... 12 Enabling and disabling an interrupt .................................................................. 13 Serial Interrupt ...................................................................................................... 14 Serial data cable ............................................................................................................ 17 An Introduction to Nokia F-Bus ................................................................................ 18 The difference between F (Fast) bus and M (master) bus .................................... 18 Introduction to serial data cable (DB-9) ................................................................... 18 AT command supporting GSM mobile phone. ............................................................. 20 The phone we used for the project is an AT command supporting. At commands will be explained in later topics later .................................................................................. 20 Part two ............................................................................................................................ 21 Software ........................................................................................................................... 21 Theory of Operation...................................................................................................... 21 Assembly Language ....................................................................................................... 23 Advantages of Assembly language .......................................................................... 23 ASM (assembly) form........................................................................................... 25 HEX (the program in hexadecimal values) form .................................................. 25 LST (list) form ...................................................................................................... 27 AT-Command set overview ....................................................................................... 30 Table 3: AT command set ......................................................................................... 30 AT command formats ............................................................................................... 30 The text mode ....................................................................................................... 30 PDU (protocol data unit) mode ............................................................................ 31 Coding 7-bit data (septets) into octets .............................................................. 31 ASCII Character Chart with Decimal, Binary and Hexadecimal Conversions .... 31 Sending a message in the PDU mode ....................................................................... 33 Serial Communication ................................................................................................... 35 Setting the Serial Port Mode..................................................................................... 36 Setting the Baud rate ................................................................................................ 37

Application and future development ............................................................................... 38 Conclusion ......................................................................................................................... 39 Recommendation.............................................................................................................. 40 Reference materials .......................................................................................................... 41

Executive Summary In todays world, where the issue of security is of paramount importance, people, institutions, government and non-government offices are concerned about it. And also the field is growing with a very high pace. This project, GSM BASED HOME SECURITY SYSTEM, is a system which works by using Infrared sensors, Microcontroller, mobile transmitter and receiver units to alarm the user of the system up on the intrusion of any unauthorized person or material in any application area by sending text SMS to the user. The GSM (Global system for Mobile communication) network, which we use in our daily life for mobile communications, is utilized for different purposes other than simple voice call services. And Security is one of the areas where GSM technology applies. To make the microcontroller send SMS and make voice calls, the project exploited the F/M protocol which applies in every mobile phone that supports AT commands. A more specific block diagram representation of the project would be given in the following form. Inverter IR Transmitter IR Receiver Gate AT89C55 WD Microcont roller Serial Interface Transmitte r mobile unit Fig.1 block diagram representation of the project And in practical ways we can view the system as the following diagram. Receiver mobile unit

SMSPORT1

IR Sensor

AT89C55 WDSerial Connec tion

Fig.2 practical view of the block Diagram

Introduction There is a growing interest in intelligent home network as a way to offer a comfortable, convenient and safe environment for occupants. In order to enhance the occupants convenience and safety, home security system is indispensable in the field of intelligent home network. The requirements of a home security system include low cost, low power consumption, easy installation and rapid response to alarm incidents. How to inform user in real time when alarm incidents occur has become a crucial feature of home security system. This can be done via internet or GSM. GSM is more convenient than internet. The main reason is that the GSM network has wide spread coverage making the whole system available for almost all the time. Furthermore, GSM network has high security infrastructure which makes sure that the information sent or received cannot be monitored The project is aimed at developing the security of Home against Intruders. In this case, while you are out of your home and a place is intruded then the device sends SMS to the emergency number provided to it. The report consists of a background into the area of 8051 microcontroller and mobile communication, how they are interfaced to each other and AT (Attention) command sets used in communication. The project can be effectively applied to the following areas: Home security- to monitor intrusion In monitoring restricted area, military areas In monitoring cash lockers

Furthermore by changing the sensors, signal conditioning elements and by applying some changes on the microcontroller program it can also be applied for Fire alarm Sound level monitoring

Pressure, water level, humidity monitoring etc

Such security and also microcontroller based projects has not been made previously in our department, and hence the project is not a continuation or based on previous works.

Part one HardwareThe following materials are the hard ware components employed for this project.

1. 2. 3. 4. 5. 6.

Infrared Transmitter Infrared receiver Inverter gate (SN54/74LS04) AT89C55WD Microcontroller Serial cable AT command supporting GSM mobile phone.

Infrared TransmitterInfra-Red actually is normal light with a particular colour. Humans can't see this colour because its wave length of 950nm is below the visible spectrum. That's one of the reasons why IR is chosen for remote control purposes or for detecting intrusion in our case. The infrared transmitter (LED) usually is a battery powered component. It should consume as little power as possible, and the IR signal should also be as strong as possible to achieve an acceptable control distance. Preferably it should be shock proof as well. The current through the LED (or LEDs) can vary from 100mA to well over 1A. In order to get an acceptable control distance the LED currents have to be as high as possible. A trade-off should be made between LED parameters, battery lifetime and maximum control distance. LED currents can be that high because the pulses driving the LEDs are very short. Average power dissipation of the LED should not exceed the maximum value though. You should also see to it that the maximum peek current for the LED is not exceeded. All these parameters can be found in the LED's data sheet. A simple transistor circuit can be