Project Report GSM Modem

Embed Size (px)

Citation preview

  • 8/10/2019 Project Report GSM Modem

    1/12

    Project Reporton

    send and receive sms via GSM modem

    Submitted as a part of course curriculum for

    Bachelor of Technologyin

    information technology

    Submitted toMr. Harsharandeep Singh

    Submitted byManpreet 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

  • 8/10/2019 Project Report GSM Modem

    2/12

    Content&&' Abstract

    ' )b#ective

    *' Introduction

    +' Screens!ort

    ' Application

    -' .eference

  • 8/10/2019 Project Report GSM Modem

    3/12

  • 8/10/2019 Project Report GSM Modem

    4/12

    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

  • 8/10/2019 Project Report GSM Modem

    5/12

    O-jecti3e

    T!is pro#ect aims to develop and to desi7n a software for sendin7 and receivin7 s!ortmessa7e 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' 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

  • 8/10/2019 Project Report GSM Modem

    6/12

    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 andler'' 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 andler' 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

  • 8/10/2019 Project Report GSM Modem

    7/12

    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

  • 8/10/2019 Project Report GSM Modem

    8/12

    2en' #e&&age1

  • 8/10/2019 Project Report GSM Modem

    9/12

    Rea' All #e&&age&1

    Delete #e&&age& .One or All/

  • 8/10/2019 Project Report GSM Modem

    10/12

    Application

  • 8/10/2019 Project Report GSM Modem

    11/12

    ere 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!ops 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, anautomatic 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

  • 8/10/2019 Project Report GSM Modem

    12/12

    www'7oo7le'com

    www'wi3ipedia'com

    http://www.google.com/http://www.wikipedia.com/http://www.google.com/http://www.wikipedia.com/