This project entitled "SMS Based Remote Control Device", submitted by Nazmul Hasan to the Department of Computer Science and Engineering, Daffodil International University, has been accepted as satisfactory for the partial fulfillment of the requirements for the degree of M.Sc. I hereby declare that this project has been carried out by me under the supervision of Dr. I also declare that neither this project nor any part of this project has been submitted elsewhere for the award of any degree or diploma.
I would like to express my deepest gratitude to Junior Associate Professor Shekhor Abdullah and Head, Department of CSE for his kind help in completing my project and also to other faculty members and staff of CSE Department of Daffodil International University. This project is on "SMS Based Remote Control Device", which presents a system of PC remote control with the mobile phone through access to the main PC ports.
Objective
This article presents a simple, practical and very low-cost method that uses the SMS technique, which is already available in all types of mobile phone devices and is available in all modern mobile telecommunication networks. The SMS technique is cheap and more reliable, as data transfer is based on text. This type of application can be used in the industry to control the devices, also the user can get the terrain information and data through the GSM mobile phone in the form of SMS etc.
In the consumer sector, this application can be used to control air conditioners, rice cookers, washing machines, etc. This is cheaper and the SMS can be kept in the network even if the network has been busy for some time.
Background Study
Project Background
GSM Modem: This is a hardware component that allows the ability to send and receive SMS to and from the system. Upon successful opening of the port, the system communicates with the GSM modem, but if it fails, the system does not communicate. The system checks support for battery level, signal strength and GSM modem SMS sending and receiving capability.
If these tests pass, the system returns the response of 'Ok', if not, 'ERROR' is returned. The remote user sent SMS from a pre-configured cell number on the HACS system to turn on the audio alarm and the system performed the respective function by simulating the alarm to green as indicated by the user.
CHAPTER TWO INTERFACING SYSTEM
Remotely PC Controlling System
The goal is to control a remote PC with a mobile phone via SMS messaging services. What can be done using two phones, there is no requirement that both mobile phones must be of the same type or version. The only condition is that they must support SMS in the devices and can work with a network that provides SMS service and.
A block diagram of this system is shown in Figure 2.1, where a computer reads and receives SMS from a mobile phone connected to it via a USB port. So according to the type of mobile phone manufacturers, which includes device recognition software, reading, storing and managing mobile phone device data inside a PC. As the computer recognizes the mobile phone and has received an SMS message from any other mobile phone, it sends the message to the computer.
The PC read the message and placed it in a temporary file. The received SMS message is then searched for available check words and this is done using the appropriate program as set out in this article. The program thus manages the SMS data and Compares with any available control words that the entire project has been designed. The program in this project will continuously search the receiving SMS for the probability that it contains the check words. If no checkwords are found in the received SMS, the program will send an SMS to the sender containing the “wrong keyword”. The comparison with the available ones is achieved after the program has found the control words in the SMS. Then the program will prepare and initialize the parallel port to send the proportional signal to the interface hardware designed in this project; this signal will be proportional to the control device in the home or office with the SMS message sent via the PC from the remote mobile phone. After this work is completed, the device will work according to the message and the program will send a feedback SMS to the sender saying 'operation successful'.
System Algorithm and Program
The program sends the appropriate signal through the parallel port to the bit there so that it can be executed by the interface hardware connected to the parallel port and household appliances. vii).
The Flow Chart
Start
Authoris ed
Control word?
Send the signal to the interface circuit
CHAPTER THREE SYSTEM DETAILS
System Details
Daffodil International University "lights off, fan off, AC off" "lights off, fan off, AC on".
Receiving and Sending SMS
Parallel Port Interfacing
CHAPTER FOUR
COMPONENT DESCRIPTION
- The Parallel Port
- Pin Assignment
- The details of 25-pin parallel port are given in Table
- How to connect circuits to parallel port
The base address of the first parallel port (LPT1) is 0378 in hexadecimal (hex) notation (or 888 in decimal notation). It is usually used to connect computer to printer, but many other types of hardware for that port are available today. The output current capacity of the parallel port is limited to only a few milliamps.
Here is a simple idea how you can connect load to a computer's parallel port data pins. The parallel port data pins are TTL outputs, which can both sink and source current. Regular TTL outputs basically consist of two "stacked" transistors in series between +5 volts and ground, with the output coming from the connection between them.
To pull the output "high", the transistor conducts from +5 to the output (H), which "sources" positive current from the output to ground (that is, an external device between the output and ground will be powered ). Pulling the output low only conducts the bottom transistor (L) and "sinks" current to ground; an external device between +5 volts and the output can be switched on. Trying to take too much current (for example shorting pins to ground) can fry the parallel port.
I haven't killed any parallel port (yet) in this method, but I have had cases where too much load has made the parallel port IC very hot. The load is powered then you have external +5V on and the printer port data pin set to 0. You have to be careful with this circuit because with this circuit you can easily fry the parallel port if you do things wrong.
CHAPTER FIVE
CODING OF PROPOSED PROJECT 5.1: Coding
- Receiving SMS
- Parallel port interfacing
- Sending feedback SMS
- Adding authenticates number into the database
Daffodil International University Private smsMemObj as NokiaCLMessaging.IMemory Private submissionOBJ as NokiaCLMessaging.IGSMSubmit Private function readSMS (ByVal i). Public declare Sub PortOut Lib "IO.DLL" (ByVal port as integer, ByVal data as byte). Privately declare Sub PortWordOut Lib "IO.DLL" (ByVal port as integer, ByVal data as integer).
Private Declare Sub PortDWordOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Long). Private Declaration Function PortIn Lib "IO.DLL" (ByVal Port As Integer) As Private Byte Declare Function PortWordIn Lib "IO.DLL" (ByVal Port As Integer) As Integer. Private Declare Sub SetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte).
Privat Erklærer Sub ClrPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte). Privat Erklærer Sub NotPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte). Private Declare Funktion GetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte) Som Boolean.
Private declaration function RightPortShift Lib "IO.DLL" (ByVal Port As Integer, ByVal Val As Boolean) As Boolean. Private Declaration Function LeftPortShift Lib "IO.DLL" (ByVal Port As Integer, ByVal Val As Boolean) As Boolean. Private Sub Authority_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load.
CHAPTER SIX
TESTING OF PROPOSED PROJECT 6.1: Testing
System testing
Initially when the program is running, the following interface appears and the parallel port voltage is low. When the program receives the sms "light on", then the light button is green and the light is on. When the program receives the "light off" sms, the light button is black and the light turns off.
When the program received "light on, fan on, ac on" sms, the light button is green and the light is on, the fan button is green and the fan is on. The AC button is green and the AC is on. The interface is shown below.
RESULTS
Application
Limitation
CHAPTER EIGHT CONCLUSION
The conclusion can be summarized in the following points
Future Work
Currently we can only control eight devices at a time, but that's so limited connectivity for any home or industry. In the future we will work on how to control multiple devices using this project and some additional software so that an industry or garment or a factory unit can control. To control 220 lines we use 12 volt relay but in parallel port output we get 4.5 volts.
It does not support the latest version of the PC package. We are also working on updating the program which supports all versions and any mobile can access it. For example: Before entering the gate, we send our name via our mobile phone to the master unit. The current scenario of technological advancement and research is advancing towards high-speed and long-distance data communication.
Cellular and cellular technology is one of the reliable and advanced media for data communication. Science and technology are moving at a rapid pace towards long distance communication and data transmission. The idea of using a mobile phone as a remote control device is definitely an innovative and widely accepted concept.
The mobile set as a remote control can cover a wide area compared to any other remote control device. IR remotes and RF remotes have their limitations in their range, where as cellular-based remotes can have a global range using the cellular wireless network. In this project an attempt has been made to control electrical appliances globally using the mobile network.
SINCE this design is an embedded system, all the benefits of embedded system can be achieved in this system. View home automated ion systems as multiple agents. http://www.robosiri.it/ROBOCUP_2003/ROBOCUPSITOSIRI/. 2006) Remotely controlled home automation systems with different network technologies.