Mobile Home Security Management System may contain mainly two design parts such as software design and hardware design. Use case diagram will help to get understanding of the system and its users. In this system all electronic devices which are attached to the circuit are consider as another user of the system. House owner can be communicating with the system.
Passive infrared motion detection sensors are using with this system but these sensors are not capable of detecting motion until two rays become crossed by intruder. Self – acting moment detector JQ-30 has been used for detect motions, below picture shows how infrared are organized with this sensor.
In this architecture intruders can come closer to the home but only having naked eyes, intruders are unable to detect the infrared rays but they can ware infrared active spectacles then they can come closer to the home. According to the above picture of second step a person has crossed the two infrared rays, then the sensor will trigger but intruder has come closer. When designing sensor architecture for home, have to avoid the above problem. So we can use two sensors to make a cross infrared rays in home premises then intruders are unable to come closer. So below picture shows some kind of sensor architecture for home.
According to the picture home premises has been divided into four sections. Generally section has only one sensor but zone has two or many sensors. Combining two or many sensors, can generate cross infrared architecture to avoid intruders` moment to get closer to home.
High level overview may explain in context diagram in the above picture. In general you may find the inputs and outputs of the system. System may get the inputs from all external entities when it required and system will send outputs to only three external entities. Those inputs and outputs may contain text message, binary signals, database records and video streaming. Another important part is voice streaming will not going through the computer so I have exclude it from the system design.

This picture shows top level data flow diagram about the systems` interaction with inputs and outputs. So SMS gateway will communicate with the mobile phone and database as well as port control windows service will communicate with the port and database. Port control windows service basically does converting text message into binary code and binary code into text message and each transaction will be stored in the database. There will be three separated methods to do the operational functions such as reading, check status and writing, each reading and writing functions will be associated with the data which to write or read from the port and database, below picture shows level one data flow diagram to how read, write and check status methods are functioning.

4.1. Application Architecture Design
Home security Management System may contain Interface Layer, Value Object Layer, Business Layer and two communication Layers for Database and parallel port separately. Interface Layer will have all interfaces with attributes are defined with get and set methods. Then Value Object layer will be used to implement the interfaces with get and set method for each and every attribute in the interface. Then business layer will use to define the method and there are some business logic in this layer after that business layer communicates with the database communication layer or Port communication layer. There are two ways of communications, one is, to communicate with database and other way is, communication with parallel port. So we have to design class diagram separately for above two. Below diagram shows parallel port class diagram.

There are two separated classes which are inherited from the port base class. These two classes will be using for port communication. Database communication class diagram appears in the below and it also has one base class and inherited the other classes.

4.1.1. Ozeki SMS Gateway
In Mobile Home Security Management System has been used already developed product for getting support to the application. This software can be found in (Ozeki NG SMS Gateway software, 2010), it is a free trail for 20 days. This developed application is used to prototype the SMS gateway which is cable to send and receives SMS to MHSM System. Also this software is capable of integrating with SQL database and other format of databases as well. Therefore this facility was an advantage to application development because, it is an easy way to receive SMS directly to the SQL database throughout this Ozeki NG SMS Gateway. SMS gateway was required to configure with a Global System for Mobile (GSM) modem or any smart phone which is capable to attach as modem to the computer or any dongle which is used browse the internet. SMS gateway will send and read the received SMS in the modem then those SMS will be transferred to SQL database without changing any detail in message and also SMS gateway has a facility to read a table in database. That table can be populates with text and mobile numbers. Then those texts will send as a SMS to the given recipients. There is an online help for Ozeki SMS gateway configuration, those details can be found in (Ozeki Informatics Ltd, 2012).
4.2. Database Architecture Design
In MHSM System has SQL database which is associated with C#.Net application and the SMS gateway software. When I consider the design of database, I decided to keep only mandatory records. Therefore I will be keeping the all received and sent SMS, all interrupts from the port and all interrupts which are given to the port and especially keeps and updates the current status of the home, Active mobile numbers and some reference data which is map the input text message with binary code and read binary code with some human readable text messages.
4.2.1. Database Table: Active Mobile Numbers
This table is used to keeps mobile numbers which can send and receive SMS, except mobile numbers in this table are unable to communicate with the security system. This table will increases the security for application; therefore other hackers unable to overload the application by sending the loop text messages but as a default function those text message will receive to database and those text messages will be ignored by the application because number which send those text messages is not in the active mobile number list. So bulk SMS won’t hurt the application.
4.2.2. Database Table : Home Current Status
This table will keep the port status which was sent last time. This data will be used when new text messages received to the database, suppose that you have sent an SMS to switch on the front light, so associated binary pattern as follows 00000001. Then this record will be stored in home current status table.
4.2.3. Database Table : Ozeki Message In and Ozeki Message Out
These tables will be used to record the received and sent SMS. When sending the SMS recipient numbers, will grab from the active mobile number table which are in active status. These two tables will be accessed by SMS gateway software and port control software. Especially I have to mention there will not be any deadlock because developed code is intelligent to handle the situation.
4.3. Electronic Circuit Design
The electronic circuit functions according to the direct current signals which are coming from the parallel port and circuit is capable of sending direct current signals to the port. The data port of the parallel port uses for control lights in the house and status port of the parallel port uses to send signals to the parallel port. According to the measurements the parallel port will 0.7 voltage as zero and 3.3 voltage as one. Based on the input voltages, circuit was designed to operate the alternate current. Major function in electronic circuit is handled by the C9013 transistors and 12 volt really. When input voltage is 3.3V, transistor will function in statutory level as a result of that 12 volt relay will start the function, then it will connect the alternate current through the bulb or attached electronic device.
There will be sensors for motion detection; once motion is detected that detection will be send to the status port. But the problem is unable to connect the plus to port directly because motion sensor is working under 230 alternate current and also it is required the use the load with the sensor, therefore 100W bulb has been used as load. Then another connection is coming to the circuit box then 230 voltages is converted to 5 volt direct current, then it will connect 5V really. Then using the really switching function it will set the required bit on the port. Then port listener will feel something input is given to the port and then program code will execute for sending text message. To get an understanding about the circuit please see below picture.

4.4. Video Monitoring System Design
In this project there will be a video monitoring system for the view house premises over the internet. So IP camera will be used for monitor the house. Because it is very easy to install and maintains but IP camera is very expensive. There will be IP camera around the house to view the outside and another IP camera for view inside the house.