Anda di halaman 1dari 12

Project Report

on
send and receive sms via GSM modem
Submitted as a part of course curriculum for
Bachelor of Technology
in
information technology
Submitted to
Mr. Harsharandeep Singh


Submitted by
Manpreet Kaur(410029)
Prabjot Kaur(410036)
Ramandeep Kaur(410039)
Randeep Kaur(410040)
Ravneet Kaur(410043)
Sandeep Kaur(410044)
(Session: 20132014 )
!epartment o" in"ormation te#$no%o&'
BABA FARID COLLEGE OF ENGINEERING TEC!"
#$%t&ar Roa'( Bathin'a)*+*,,*( P$nja- .INDIA/
(Approved by AICTE, New el!i and Affiliated to "un#ab Tec!nical $niversity, %aland!ar
Content&
&' Abstract
(' )b#ective
*' Introduction
+' Screens!ort
,' Application
-' .eference
A-&tract

Re0$irement&1)
GSM Modem
2er3er 2i'e1
Proce&&or1 "entium I/ ('0
RA#1 & G1
Di&% 2pace1 + G1

2oft4are Interface1
Client 2i'e1 'NET 2ramewor3, 4eb 1rowser, 4indows 5"6/ista
5e- 2er3er1 'Net 2ramewor3,4indows 5"6/ista
Data Ba&e 2er3er1 1(
O-jecti3e
T!is pro#ect aims to develop and to desi7n a software for sendin7 and receivin7 s!ort
messa7e service (SMS8 via 7lobal system for mobile communication (GSM modem8 'It
provide a way to easily communicate end user'
4e are 7oin7 to e9plain t!e followin7 t!in7s:
Communication "ort Settin7s
.eceive Incomin7 Messa7e
Send Messa7es
.ead All Messa7es (Sent by t!e users8
elete Messa7es ()ne or All8
we !ave used t!e GSMComm ;ibrary for Sendin7 and .eceivin7 SMS' <ou re=uire a
GSM modem or p!one for sendin7 an SMS
Intro'$ction
SMS client and server is an application software w!ic! is used for sendin7 and receivin7
messa7es(SMS8' It listens for incomin7 messa7es to arrive, processes t!e messa7e if it>s
in a valid format' Note t!e processin7 of arrived messa7es depends on t!e application
w!ic! will be discussed later' I am 7oin7 to e9plain t!e followin7 t!in7s:
*/ Comm$nication Port 2etting
Communication Settin7 class is used for storin7 communication port
settin7s: Communication is an ob#ect of type Gsm Communication Main w!ic! is
re=uired for sendin7 and receivin7 messa7es' 4e !ave to set t!e Communication port,
1aud rate and time out for our communication ob#ect of type Gsm Communication Main'
T!en try to open wit! t!e above settin7s' 4e can test t!e Communication port settin7s by
clic3in7 on t!e Test button open, you will 7et a messa7e ?No p!one connected?' T!is is
mainly due to 1aud rate settin7s' C!an7e t!e baud rate and c!ec3 a7ain by clic3in7 t!e
Test button until you 7et a messa7e ?Successfully connected to t!e p!one'?
1efore creatin7 a GSM Communication ob#ect wit! settin7s, we need to validate t!e port
number, baud rate and Timeout'

6/ Recei3e Incoming #e&&age
4e are 7oin7 to re7ister t!e followin7 events for GSM
Communication ob#ect communication'
&' "!one Connected T!is event is invo3ed w!en you try to open t!e Communication
port' T!e event !andler for "!one connected
is communication@"!oneConnected w!ic! will invo3e )n
"!one Connection C!an7e (bool connected8 wit! t!e !elp of
ele7ate Connected Aandler'
(' Messa7e .eceived T!is event is invo3ed w!en a messa7e arrives at t!e GSM
p!one' 4e will re7ister wit!Messa7e .eceived Event Aandler' 4!en t!e
incomin7 messa7e arrives, t!e communication@Messa7e .eceived met!od will be
invo3ed w!ic! in turn calls t!e Messa7e .eceived(8 met!od in order to process
t!e unread messa7e' GSM Communication ob#ect communication !as a
met!od .ead Messa7es w!ic! will be used for readin7 messa7es' It accepts t!e
followin7 parameters p!one status
(All, .eceived .ead, .eceived $nread, Stored Sent, and Stored $nsent8 and
stora7e type: SIM memory or "!one memory'
'
7/ 2en' #e&&age
<ou can send an SMS by 3eyin7 in t!e destination p!one number and te9t messa7e'
If you want to send a messa7e in your native lan7ua7e ($nicode8, you need to c!ec3 in
Send as $nicode'GSM Communication ob#ect communication !as a Send
Messa7e met!od w!ic! will be used for sendin7 SMS to any p!one'
8/ Rea' All #e&&age&
<ou can read all messa7es from t!e p!one memory of SIM memory' %ust clic3 on ?.ead
All Messa7es? button' T!e messa7e details suc! as sender, dateBtime, te9t messa7e will
be displayed on t!e ata Grid' Create a new row for eac! read messa7e, add to ata table
and assi7n t!e ata table to data 7rid>s source
T!e above code will read all unread messa7es from SIM memory' T!e
met!od S!owMessa7e is used for displayin7 t!e read messa7e' T!e messa7e may be a
status report, stored messa7e sent6un sent, or a received messa7e'
,8 elete Messa7es ()ne or All8

All messa7es w!ic! are sent by t!e users will be stored in SIM memory and we are 7oin7
to display t!em in t!e ata 7rid' 4e can delete a sin7le messa7e by specifyin7 t!e
messa7e inde9 number' 4e can delete all messa7es from SIM memory by clic3in7 on
?elete All? button' Messa7es are deleted based on t!e inde9' Every messa7e will be
stored in memory wit! a uni=ue inde9'
T!e followin7 code will delete a messa7e based on inde9:

T!e eleteScope is an Enum w!ic! contains:
&' All
(' .ead
*' .eadAndSent
+' .eadSentAnd$nsent

2creen 2hort
comm$nication port &etting1
2en' #e&&age1
Rea' All #e&&age&1
Delete #e&&age& .One or All/
Application
Aere are some interestin7 applications w!ere you can use and modify t!is
software'
*/ Pre pai' Electricity
2cenario .C$&tomer/
T!e customer !as a7reed for pre paid electricity rec!ar7es wit! t!e !elp of rec!ar7e
coupons' T!e coupon is made available at s!ops' T!e customer will first buy t!e coupons
from s!opsC every coupon consists of Coupon "IN w!ic! will be mas3ed, t!e customer
needs to scratc! to view t!e "IN number' T!e customer will send an SMS to t!e SMS
Server wit! a specified messa7e format for rec!ar7in7'
2cenario .2er3er Data-a&e/
)n t!e Server, t!e atabase consists of Customer information alon7 wit! !is telep!one
number, t!ere will a field named Amount w!ic! will be used and updated w!en t!e
customer rec!ar7ed wit! some amount' T!is application becomes somew!at comple9, an
automatic meter readin7 software alon7 wit! !ardware needs to be inte7rated wit! t!is'
Automatic meter readin7 systems will read all meter readin7s and calculate t!e amount to
be deducted for t!e customer'
6/ A&trology
<ou can implement as astrolo7y software' T!e user will send an SMS wit! !is Dodiac
si7n' T!e SMS server will maintain an Astrolo7y atabase wit! Dodiac si7n and a te9t
description w!ic! contains a messa7e for t!e day' T!e atabase is re=uired to be updated
daily for all Dodiac si7ns'
Messa7e 2ormat w!ic! will be used by t!e user to 7et messa7e of t!e day:
Eodiac Si7n
7/ Remote Controlling 2y&tem
4e can implement a remote controllin7 system, for e9ample you need to:
&' S!utdown
(' .estart

Reference
!ttp:66www'scampers'or76steve6sms6inde9'!tm
www'7oo7le'com
www'wi3ipedia'com

Anda mungkin juga menyukai