Docstoc

GSM REFERENCE SYSTEM

Document Sample
GSM REFERENCE SYSTEM Powered By Docstoc
					                                                                   GSM Reference System




            GSM REFERENCE SYSTEM

                               PROJECT REPORT

                    Submitted in partial fulfillment of the requirements
         for the award of B.Tech Degree in Computer Science & Engineering of the
                                   University of Kerala


                                           by

                                    AJITHLAL P
                                    ANEESH A V
                                     ARUN G J
                                     DIPIN D P

                              Eight Semester, B.Tech

                        Computer Science andEngineering




    DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
              COLLEGE OF ENGINEERING
                   Thiruvananthapuram
                          2010
                                                                                      1
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                 GSM Reference System




       COLLEGE OF ENGINEERING TRIVANDRUM
                       Kulathoor, Thiruvananthapuram- 695016
                           (Affiliated to Kerala University)




        DEPARTMENT OF COMPUER SCIENCE & ENGINEERING



                                CERTIFICATE
      This is to certify that the project report entitled ―JAspect‖ is a bonafide
record of the project done by AJITHLAL P (Reg.No. 06 400 007), during the year
2010, in partial fulfillment of the requirements for the award of B.TechDegree in
Computer Science & Engineering of the University of Kerala.


 Project Guide                 Project Coordinator           Head of the Department




 Mr. SHINE S.                  Mrs. SHREELEKSHMI R.          Dr. RAJASREE M.S.
 Asst. Professor               Asst. Professor               Professor and Head
 Dept. of Computer Science&    Dept. of Computer Science&    Dept. of Computer Science&
 Engineering                   Engineering                   Engineering
 College of Engineering        College of Engineering        College of Engineering
 Trivandrum                    Trivandrum                    Trivandrum




Submitted for the project Viva Voce examination held on ………………


Internal Examiner                                           External Examiner
                                                                                          2
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System




                              ACKNOWLEDGEMENT


               The culmination of our project requires more than a word of thanks to all those
who were part of the efforts in undertaking this project and preparing the report. First of all we
thank the Almighty God for hearing our prayers and showing the benevolence to us. We express
our deepest gratitude to our project guide Mr. Shine S. and project coordinator Mrs.
Shreelekshmi R.for their inspiring and untiring help throughout the course of the project work.
We also express our sincere gratitude to the Head of the Department Prof. Rajasree M.S. for the
help and co-operation extended to us in the completion of the project. We would also like to take
this opportunity to thank all the staff members for their support and help in completing our
project.



                                                                                   AJITHLAL P




                                                                                                3
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                             GSM Reference System


                                         ABSTRACT


    Our project is aimed at developing a GSM reference system. Our language will be using the
syntax of Java 2 Enterprise Edition(J2ee). Our project contains two modules. A social
networking site and a sms search module. Also we include RSS feed facility for users. All these
facilities will be provided to those who have registered in our site. The GSM server module is
developed in Java . Content based search module is developed in servlets. And the website is
developed in Struts which is a model view control architecture of JSP.


                               Even though searching in net can be done using GPRS, our project
has its own merits. First of all there is no need of any GPRS phone. Second one is that the client
do not need to have internet facility for searching in internet. All he need is that any common
mobile phone and GSM network. Also searching using WAP browsers is both time consuming
and very costly. As a backend, we use MySQL for our project. There is a requirement for a
dedicated gateway for accepting the SMS. But for demonstrating the project we are aiming to
connect an ordinary mobile phone and set it as a gateway for accepting the SMS. This gateway
accepts the sms from client and send it for searching . The result will be sent back to the gateway for
sending as text message to client.




                                                                                                     4
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                          GSM Reference System



                           TABLE OF CONTENTS

          TITLE                                                 Page No.



1.    Introduction                                                  1
      1.1 Objectives                                                1
      1.2 Scope of the Project                                      2
2.    Literature Survey                                             3
3.    System Study of the Proposed Project                          4
      3.1 Existing System                                           4
      3.2 Proposed System                                           4
4.    System Analysis                                               5
5.    System Design                                                 7
      5.1 Architectural Framework                                   8
           5.1.1 Use case Diagram                                   8
           5.1.2 Sequence Diagram                                   9
           5.1.3 Class Diagrams                                    11
           5.1.4 Data Flow Diagrams                                12
      5.2 Project Modules                                          14
           5.2.1 GSM Server                                        14
           5.2.2 Content Based Search                              18
           5.2.3 RSS feed                                          19
           5.2.4 Web Module                                        20
      5.3 Database                                                 21
6.    Implementation Methodology                                   23
      6.1 Problem Statement                                        23
      6.2 Problem Description                                      23
      6.3 Features of the Project                                  24
7.    Software Description                                         25
8.    Testing and Validation                                       26
9.    Future Enhancements                                          27
10.   Conclusion                                                   28
      Appendix I : Working Environment                             29
      Appendix II: Screen Shots                                    30

                                                                             5
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                          GSM Reference System


     References                                                                       39




                                        CHAPTER 1
                                     INTRODUCTION

We can search about anything using GPRS enabled phone through WAP browser. But what if
your mobile doesn’t have such facilities? Also we know that browsing in mobile phone is so time
consuming and costly. So to overcome these difficulties we propose a system with which you
can search about anything in internet and also you will get latest news updates, cricket news,
business information etc. The client doesn’t need to install any software in their phone. All he
needs to is just to register in our site. After that he can search about anything by sending SMS to
a particular number we provide.


               Both have their own advantages and limitations. As for the internet, availability of
the constraints such as the GPRS enabled mobile phones and the cost. GSM Reference System
has the ability of welcoming the above said limitations as it is based or retrieved information
through SMS as far SMS are going to be less costly.


               The major benefit is the access of information at any time, from anywhere. For
example in the case of college students semester marks, attendance and percentage etc can be
accessed any time using this innovative system and also a person can search anything from
internet using mobile phone. Various system of similar type has existing but the specialty of
GSM Reference system is that there is no need to activate GPRS service in mobile phone.


1.1 OBJECTIVES
Our project contains mainly two parts. One is the social networking site. Second is the content
based searching. First one is mainly for the registration purpose for using this project and it


                                                                                                 6
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System


should contain some facilities sending scraps and sms. In sms searching we provide both
searching RSS feed facility.




1.2 SCOPE OF THE PROJECT
The scope of SMS was increased and the technology enables the man to send likes of pictures
and video clips using GPRS system from one mobile set to another. But this service is named
Multimedia Messaging Service or simply the MMS. But now it is possible to do something like
MMS through SMS. The SMS can be sent in special text formatting in likes of bold and italics.
Also some icons, animations, sound effects, pictures, and special ring tones can be sent through
SMS these days. This type of Short Messaging Service is known as Enhanced Messaging
Service or simply the EMS. According to the researchers this EMS service is the intermediate
stage between the SMS system and the MMS system Again some 9 Million SMS were sent
among the mobile users in the very first day of 2007 that’s too only in UK! Short Message
Service is too much successful due its low cost nature. Again you need not to reply at that instant
when you receive the SMS. These are the some of the facts that makes the SMS really popular.
So here is the high possibility the progress of the SMS system will continue.

Considering this much of impact of mobile phone and SMS in our country we think our project
could be very useful. Computers and internet have not reached in a wide spread state in our
country comparing to developed countries. But the growth of mobile phone companies and the
number of customers was unbelievable in last decade. Now almost all Indians have a mobile
phone. So providing news updates, sports alerts, searching facilities could attract customers into
our project since GSM network is available now even in the rural areas. About the social
networking site, first of all it is for the registration purpose using this service. But we tried to
provide main facilities available in existing social networking site. The SMS sending facility is a
main attraction of our website. Anyway, we didn’t give much importance to the site since there is
large number of such sites are available.




                                                                                                  7
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                        GSM Reference System




CHAPTER 2
                                LITERATURE SURVEY

General packet radio service (GPRS) is a packet oriented mobile data service available to users
of the 2G cellular communication systems global system for mobile communications (GSM), as
well as in the 3G systems. In 2G systems, GPRS provides data rates of 56-114 kbit/s .GPRS data
transfer is typically charged per megabyte of traffic transferred, while data communication via
traditional circuit switching is billed per minute of connection time, independent of whether the
user actually is using the capacity or is in an idle state. GPRS is a best-effort packet switched
service, as opposed to circuit switching, where a certain quality of service (QoS) is guaranteed
during the connection for non-mobile users.The maximum speed of a GPRS connection offered
in 2003 was similar to a modem connection in an analog wire telephone network, about 32-
40 kbit/s, depending on the phone used. Latency is very high; round-trip time (RTT) is typically
about 600-700 ms and often reaches 1 s. GPRS is typically prioritized lower than speech, and
thus the quality of connection varies greatly. Devices with latency/RTT improvements (via, for
example, the extended UL TBF mode feature) are generally available. Also, network upgrades of
features are available with certain operators. With these enhancements the active round-trip time
can be reduced, resulting in significant increase in application-level throughput speeds.


But comparing to SMS, browsing through WAP browser is more costly and time consuming.
And SMS doesn’t need any additional facilities in phone.SMS and GPRS are the mere bearer
that is used for providing the value added service for a consumer. With SMS being, ubiquitously
available in all the handsets and not all handsets provide option to load a client, we presume
VAS providers, are going for SMS. However with more and more operators trying to load some
kind of client (be it based on Java/BREW/STK), we would think SMS/USSD (in GSM) or some
proprietary data protocol (e.g., TTSL is using CellRadio) would be used. But we also don’t think
GPRS (or EDGE) cannot be ignored for a long time.SMS is standardized. One solution will work
                                                                                               8
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System


in all phones. We don’t have to worry phone make, modal. A layman also knows how to read a
sms.




                                         CHAPTER 3
               SYSTEM STUDY OF THE PROPOSED PROJECT

3.1 EXISTING SYSTEM
       The existing is that we can browse through WAP browsers through s GPRS enabled
mobile phone. The disadvantage with this is , first you need a GPRS enabled phone. Also the
cost of it is very high. Another disadvantage is the low speed due to high traffic. All these things
shows the inefficiency of this system.
                      Another model which resembles ours is GOOGLE SMS . They provide
railway time, news alerts, Cricket score etc, as text message to your mobile phone, if you send
SMS to a particular number.Google SMS Channels is a free service that sends premium content
via SMS, published by Oneindia Channels (linked to the table). You can get alerts on interesting
topics like News, Entertainment, Health, Movies, Sports & Lifestyle. Oneindia also publishes
content in 5 Indian languages i.e., Hindi, Kannada, Malayalam, Tamil and Telugu.


3.2 PROPOSED SYSTEM
                   For implementing this project we use Java 2 Enterprise Edition. For
registering to use this facility we have created a website. It contains pages for registering ,login,
sending scraps between users, and for sending SMS. Also we have provided authentication for
the project of website. No one can access any page without proper authentication. After
registering in the site the customer will be provided a number and he can send SMS in a
particular format. This message will be received by our J2ee server. The server will first check
whether it is a request for searching. Then the query will be searched in internet. After getting
result , it will be stored in database so that the same query doesn’t need to be searched in internet
again, by that we can save processing time. We also provide RSS feed for getting news alerts and

                                                                                                   9
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System


cricket alerts. For that we have created servlets, for reading the RSS feed provided by some news
channels.




                                            CHAPTER 4
                                     SYSTEM ANALYSIS

Project Requirements
Input
           User details for registering.
           Request for searching about a query.
           Request for news alerts, business and cricket news etc.



Output
           The result for the request send by the user should be send to the user’s mobile phone
            as text message.
           The user should be able to login in the website and access the functions provided by
            it.

Modules
GSM Server Module
Content based searching Module
RSS feed module
Social Networking Website Module


1. GSM Server Module:



                                                                                              10
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                            GSM Reference System


               This module is concerned with accepting the message from user , converting it
into the correct format, sending it to the J2ee server, receiving the result from it, converting it to
the correct format, and sending it to the clients mobile phone as text message.




2. Content based search Module
       The functions of this modules are receiving the query from GSM server, searching it in
database, searching in internet, adding the result obtained from internet to database.
3. RSS feed Module
       This module deals with providing the user free news alerts ,sports and business news as
SMS in his mobile. For this an RSS reader is created which reads the RSS feeds provided by
cricinfo.com and Times of India.


4. Social Networking Site Module
       In this module the social networking site is created. Even though it’s main purpose is to
register for using for our service, we have provided some extra functions for sending scraps ,
sending SMS etc from our site. It can be used as a plot for interaction between the users of our
service. They can ask for any help to the admin if they needed in there.




                                                                                                   11
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System




                                          CHAPTER 5
                                      SYSTEM DESIGN

           System design is the process of planning of new systems or one to replace an existing
system. During this stage the analyst works with the user to develop a physical model of the
system flow chart. The modeling process and its outcome depend upon the system to a certain
extent and whether or not object oriented design is followed. The detailed step followed in
arriving at the model is known as the methodology. There are several methodologies available.
But currently the most popular methodology is known as 'the unified process'. The result of these
is a model for the system typically contained in several diagrams. If unified process is followed
the diagrams that result might be UML diagrams.


            Input design is the process of creating user defined input in computer defined format.
User originated inputs are converted to a computer based format. It includes determining the
record media, methods of input, speed of capture and entry into the system. The goal of
designing input data is to make data entry easy. Thus the objective of the designer is to achieve
highest possible level of accuracy and ensure that the input is acceptable and understood by user
and the staff. A formatted form of the data entry is also provided which requested the user to
enter the data in appropriate location.


               A quality output is the one, which needs the user requirements and presents
information carefully. Output design is an important step in the system design. Computer output
is the most direct and important information source to the user. Efficient, intelligible output
                                                                                               12
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System


design should improve the system relationships with user and helps in decision making. The
primary consideration in design of output is the information requirement and objectives of the
end users. The major formation of the output is to convey the information and so its layout and
design need a careful consideration.




5.1 ARCHITECTURAL FRAMEWORK


5.1.1 USE CASE DIAGRAM


               Use Case diagrams identify the functionality provided by the system (use cases),
the users who interact with the system (actors), and the association between the users and the
functionality. Use Cases are used in the analysis phase of software development to articulate the
high-level requirements of the system. Use Cases extend beyond pictorial diagrams. In fact, text-
based use case descriptions are often used to supplement diagrams, and explore use case
functionality in more detail.



                                                              Database Search




              user



                                                            Receiving Message
                                       User




                                                                                              13
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                                  GSM Reference
                                                                        Content Based Search           System




                                                                      Adding Details to database
             Admin




                                                                            Updating details
                                         Admin

5.1.2 SEQUENCE DIAGRAM


Sequence diagrams describe interactions among classes in terms of an exchange of messages
over time. Class roles describe the way an object will behave in context. Use the UML object
symbol to illustrate class roles, but don't list object attributes. Activation boxes represent the time
an object needs to complete a task. Messages are arrows that represent communication between
objects. Use half arrowed lines to represent asynchronous messages. Asynchronous messages are
sent from an object that will not wait for a response from the receiver before continuing its tasks.
Lifelines are vertical dashed lines that indicate the object's presence over time.

Database Update




               admin                                  :add details                        :update details



                         adding details to database




                            added successfully



                                              update the contents



                                              updated successfully



                                                                                                            14
Department of Computer Science and Engineering
                      College of Engineering Trivandrum

                                              SequenceDiagram–Admin
                                                                                               GSM Reference System




Messaging




             client                                   :toolkit                                     :server




                      sending message from the toolkit
                                                                 toolkit send message to server              [Processing the
                                                                                                                 request]


                                                                         data not found

                            data not found retry




                      sending message from the toolkit
                                                                 toolkit sends message to server              [Processing the
                                                                                                                  request]


                                                                           data found

                             display the result




                                                                                                                                15
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                   SequenceDiagram-Client
                                                                          GSM Reference System




5.1.3 CLASS DIAGRAMS


       In software engineering, a class diagram in the Unified Modeling Language (UML) is a
type of static structure diagram that describes the structure of a system by showing the system's
classes, their attributes, and the relationships between the classes.




                                                                            client_details
                                                                           Mob No : string

                                                                           send_message()
                                                                           recieve_message()




                             :toolkit
                 name : string

                 send_message_totheserver()
                 receive_message_fromtheserver()




                                                                           search from database

                                                                            keyword : string
                                                                            message : string

                                                                            search()
                                                                            send_result()




                                                                                                  16
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                          GSM Reference System




5.1.4 DATA FLOW DIAGRAMS
DFD for GSM Server




                                                                            17
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                              GSM Reference System




DFD for WEB Module

Level 0 DFD for Web Module


                                                                                gsm_users




     Admin/user                GSMReferenceSyst                             Admin/user
                                em (mooble.com)




                                                                gsm_Roles




Level 1 DFD FOR Web Module

                                              gsm_Userdetails




                                 Create Profile
                                                                      gsm_Contacts




                                                       Add Contacts
                                                                                  gsm_Sms



   Admin/user              GSMReferenceSyst
                            em (mooble.com)                Sending Message




                                                                                  gsm_Smsdetails
                                                                                                   18
Department of Computer Science and Engineering
                                           Searching
                      College of Engineering Trivandrum
                                                                        GSM Reference System




5.2PROJECT MODULES
5.2.1 GSM SERVER:
       GSM uses a variation of time division multiple access (TDMA) and is most widely used
for the three digital wireless telephony technologies (TDMA, GSM and CDMA). GSM digitizes
and compress data, then sends it down a channel with two other streams of user data, each in its
own time slot. It operates at either the 900 MHz or 1800 MHz frequency band. GSM server act
as the mediator between Application server and GSM kit. Here the GSM kit is a device which
holds a SIM card on it. It acts like an ordinary mobile phone. It can send and receive message to
and from other mobile phones. The GSM kit is connected to the GSM Server via serial port.
GSM kit passes the message from the user to GSM server. Where the GSM Server receives the
alert from the GSM kit it should read the text message and respond it back to the application
server. Then the application server searches the criteria that is given by the user & send the
searched content to the GSM server. After getting the searched contents from the application
server, the GSM Server format and transmit it to the end user.


GLOBAL SYSTEM FOR MOBILE COMMUNICATIONS


       GSM (Global System for Mobile communications) is the most popular standard for
mobile phones in the world. Its ubiquity makes international roaming very common between
mobile phone operators, enabling subscribers to use their phones in many parts of the world.
GSM differs from its predecessors in that both signaling and speech channels are digital, and
thus is considered a second generation (2G) mobile phone system. This has also meant that data
communication was easy to build into the system.
       The ubiquity of the GSM standard has been an advantage to both consumers (who benefit
from the ability to roam and switch carriers without switching phones) and also to network
operators (who can choose equipment from any of the many vendors implementing GSM). GSM
also pioneered a low-cost (to the network carrier) alternative to voice calls, the short message
service (SMS, also called "text messaging"), which is now supported on other mobile standards
as well. Another advantage is that the standard includes one worldwide emergency telephone

                                                                                              19
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System


number; this makes it easier for international travelers to connect to emergency services without
knowing the local emergency number.
       GSM is a cellular network, which means that mobile phones connect to it by searching
for cells in the immediate vicinity. There are five different cell sizes in a GSM network-macro,
micro, Pico, Femto and umbrella cells. The coverage area of each cell varies according to the
implementation environment. Macro cells can be regarded as cells where the base station antenna
is installed on a mast or a building above average roof top level. Micro cells are cells whose
antenna height is under average roof top level; they are typically used in urban areas.
       Pico cells are small cells whose coverage diameter is a few dozen meters; they are mainly
used indoors. Femtocells are cells designed for use in residential or small business environments
and connect to the service provider’s network via a broadband internet connection. Umbrella
cells are used to cover shadowed regions of smaller cells and fill in double or even more,
depending on the antenna system, the type of terrain and the timing advance.
       Indoor coverage is also supported by GSM and may be achieved by using an indoor Pico
cell base station, or an indoor repeater with distributed indoor antennas fed through power
splitters, to deliver the radio signals from an antenna outdoors to the separate indoor distributed
antenna system. These are typically deployed when a lot of call capacity is needed indoors; for
example, in shopping centers or airports. However, this is not a prerequisite, since indoor
coverage is also provided by in-building penetration of the radio signals from any nearby cell.
       GSM networks operate in a number of different frequency ranges (separated into GSM
frequency ranges for 2G and UMTS frequency bands for 3G). Most 2G GSM networks operate
in the 900 MHz or 1800 MHz bands.


SUBSCRIBER IDENTITY MODULE (SIM)


       One of the key features of GSM is the Subscriber Identity Module, commonly known as a
SIM card. The SIM is a detachable smart card containing the user's subscription information and
phone book. This allows the user to retain his or her information after switching handsets.
Alternatively, the user can also change operators while retaining the handset simply by changing
the SIM. Some operators will block this by allowing the phone to use only a single SIM, or only
a SIM issued by them; this practice is known as SIM locking, and is illegal in some countries.
                                                                                                  20
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System


       GSM Reference system is a mobile based searching with user use ordinary sms text
message to search for the content and the searched contents can be viewed as a text message to
the end user. GSM Server module is the main module in this project. GSM is a digital mobile
telephony system that is widely used in all part of the world.


GSM KIT
               GSM Kit is basically a mobile phone which supports Bluetooth. This mobile
phone is connected to the computer through this Bluetooth so that our application can contact
with the mobile phone through serial port. There are mainly two connections are there, they are
   1. Connect a mobile phone or GSM/GPRS modem to a computer / PC. Then use the
       computer / PC and AT commands to instruct the mobile phone or GSM/GPRS modem to
       send SMS messages.
   2. Connect the computer / PC to the SMS center (SMSC) or SMS gateway of a wireless
       carrier or SMS service provider. Then send SMS messages using a protocol / interface
       supported by the SMSC or SMS gateway.
       In this project I selected the first option because it’s completely independent method and
comparatively inexpensive method. After connecting a mobile phone or GSM/GPRS modem to a
computer, you can control the mobile phone or GSM/GPRS modem by sending instructions to it.
The instructions used for controlling the mobile phone or GSM/GPRS modem are called AT
commands.
                           AT command                Meaning
                              +CMGS                Send message
                              +CMSS         Send message from storage
                             +CMGW          Write message to memory
                              +CMGD               Delete message
                              +CMGC               Send command
                              +CMMS           More messages to send


       One way to send AT commands to a mobile phone or GSM/GPRS modem is to use a
terminal program. A terminal program's function is like this: It sends the characters you typed to
the mobile phone or GSM/GPRS modem. It then displays the response it receives from the
                                                                                    21
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                     GSM Reference System


mobile phone or GSM/GPRS modem on the screen. The terminal program on Microsoft
Windows is called HyperTerminal.
              AT
              OK
              AT+CMGF=1
              OK
              AT+CMGW="+85291234567"
              >A simple demo of SMS text messaging.
              +CMGW: 1
              OK
              AT+CMSS=1
              +CMSS: 20
              OK
Here is a description of what is done in the above example:
    Line 1: "AT" is sent to the GSM / GPRS modem to test the connection. The GSM / GPRS
     modem sends back the result code "OK" (line 2), which means the connection between the
     HyperTerminal program and the GSM / GPRS modem works fine.
    Line 3: The AT command +CMGF is used to instruct the GSM / GPRS modem to operate
     in SMS text mode. The result code "OK" is returned (line 4), which indicates the command
     line "AT+CMGF=1" has been executed successfully. If the result code "ERROR" is
     returned, it is likely that the GSM / GPRS modem does not support the SMS text mode. To
     confirm, type "AT+CMGF=?" in the HyperTerminal program. If the response is "+CMGF:
     (0,1)" (0=PDU mode and 1=text mode), then SMS text mode is supported. If the response
     is "+CMGF: (0)", then SMS text mode is not supported.
    Line 5 and 6: The AT command +CMGW is used to write an SMS text message to the
     message storage of the GSM / GPRS modem. "+85291234567" is the recipient mobile
     phone number. After typing the recipient mobile phone number, you should press the Enter
     button of the keyboard. The GSM / GPRS modem will then return a prompt "> " and you
     can start typing the SMS text message "A simple demo of SMS text messaging.". When
     finished, press Ctrl+z of the keyboard.


                                                                                          22
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                            GSM Reference System


    Line 7: "+CMGW: 1" tells us that the index assigned to the SMS text message is 1. It
     indicates the location of the SMS text message in the message storage.
    Line 9: The result code "OK" indicates the execution of the AT command +CMGW is
     successful.
    Line 10: The AT command +CMSS is used to send the SMS text message from the
     message storage of the GSM / GPRS modem. "1" is the index of the SMS text message
     obtained from line 7.
    Line 11: "+CMSS: 20" tells us that the reference number assigned to the SMS text message
     is 20.
    Line 13: The result code "OK" indicates the execution of the AT command +CMSS is
     successful.
       Application server that is GSM Server is always listening to the incoming port of the
serial connection. If any data come at that end receives it and transmit to PDU/Text conversion
module. Because the data always transmit in the format of PDU (Protocol Data Unit). This is
basically encoded in the format of Hexadecimal format. For converting it to the text mode it
transmits to the PDU/Text Conversion module.


5.2.2 CONTENT BASED SEARCH
       GSM Server module transmitted the data to the content based search module. Which first
check the content format; if the content is for search from the database then it directly search the
content from the Database. The search is based on the details provides in the content of text
message. Finally content based search module transmits the information from database to GSM
Server. GSM Server then transmits this information to the incoming message address. Thus the
user gets the searched information in the format of message.Create a content based search engine
with J2ee capabilities of component based architecture. The search engine always listens to the
GSM Server for the incoming messages. When it receives the alert, it searches the criteria that
actually given by user in database or internet. After getting the searched content, application
server will forwarded it to the GSM server for formatting & transmitting to the end user.
       Content Based search is the main part of this project because the existing project all have
the other facilities in there project but searching from the internet is not possible in that project.
Here information are gathered from the internet based on content that is messaged in the format
                                                                                                   23
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                        GSM Reference System


of text message and the result that is the searched content from the internet is transmit we the
format of text message. Through this system normal people can gather the information from
anywhere at anytime through mobile phones in an in expensive method.


5.2.3 RSS FEED
        Web feeds benefit publishers by letting them syndicate content automatically. They
benefit readers who want to subscribe to timely updates from favored websites or to aggregate
feeds from many sites into one place. RSS (abbreviation for Really Simple Syndication) is a
family of Web feed formats used to publish frequently updated works—such as blog entries,
news headlines, audio, and video—in a standardized format.RSS feeds are read
using software called an "RSS reader", "feed reader", or "aggregator", which can be web-
based, desktop-based, mobile device or any computerized Internet-connected device. The user
subscribes to a feed by entering the feed'sURI,into the reader or by clicking an RSS icon in a
browser that initiates the subscription process.

       This system of reading RSS feeds also face the problem of costly mobile phones and
GPRS subscription. In our GSM reference system, we provide facility for users to subscribe read
RSS feeds without GPRS enabled mobile phones and RSS aggregators. Instead of that, the user
need only to send sms to the GSM server for the required feed and the corresponding feed is send
back instantly. RSS feeds are the complementary part of the GSM search. It is simple compared
with the working of the GSM search. It doesn’t need any database to work with. Contents are
retrieved from the RSS channels and delivered to the users instantly.

        RSS formats are specified using XML, a generic specification for the creation of data
formats.The standardized XML file format allows the information to be published once and
viewed by many different programs. The GSM server initially creates a connection with the RSS
channel and retrieves the web feeds from it using the XML file provided. Different channels use
different format for the xml file for providing RSS feeds. The feed is retrieved as an RSS
document. An RSS document (which is called a "feed", "web feed‖, or "channel") includes full
or summarized text, plus metadata such as publishing dates and authorship. The retrieved
contents are parsed and the message body is formatted for sending.Although RSS formats have
evolved since March 1999, the RSS icon (" ") first gained widespread use between 2005 and
2006.



                                                                                             24
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System



5.2.4 WEB MODULE
       Web Module is the online part of the GSM Reference system. This is an add-on part of
the system. Web module is basically user interaction which has the capability of user
registration, contact details storing, message sending facilities, and searching facilities. User can
register his information through online to this system. User can create his on profile for saving
the personal information and as well as the contacts information. User can save his contacts and
whenever he needs he can send sms to desired contact. And also he can send group sms to
number of contacts. User can search stored information from the website. Stored information are
mainly about the famous personality of that current locality, spare part shop, medical shop,
school like anything that was stored in that database can search by the user.




                                                                                                  25
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                GSM Reference System




5.3 DATABASE


                                       user_detail
            Column Name                  Data Type                Description
   username                   VARCHAR(45)                         Primary Key
   name                       VARCHAR(45)
   mobno                      VARCHAR(45)
   dob                        VARCHAR(45)
   email                      VARCHAR(45)
   nation                     VARCHAR(45)
   sex                        VARCHAR(45)
   about                      VARCHAR(200)
   image                      MEDIUMBLOB

                                    secure_user
          Column Name                 Data Type                  Description
    username                   VARCHAR(45)                       Primary Key
    password                   VARCHAR(45)

                                  secure_user_roles
        Column Name           Data Type                     Description
    username              VARCHAR(45)                 Primary Key,Foreign Key
    role                  VARCHAR(45)                       Primary Key


                                         scrap
            Column Name                 Data Type                 Description
    id                        INTEGER                             Primary Key
    sender                    VARCHAR(45)
    receiver                  VARCHAR(45)
    date                      VARCHAR(45)
    time                      VARCHAR(45)
    message                   VARCHAR(1000)



                                                                                  26
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                          GSM Reference System



                                Project_message_result
           Column Name                  Data Type         Description
    message                    VARCHAR(45)                Primary Key
    result                     VARCHAR(45)


                                    gsm_search
          Column Name                 Data Type           Description
    searchid                  INTEGER                     Primary Key
    keyword                   VARCHAR(45)
    searchdata                VARCHAR(160)




                                                                            27
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System




                                         CHAPTER 6
                      IMPLEMENTATION METHODOLOGY

Implementation includes deploying the web site in the WEB server and setting up the GSM
server for content delivery. It also includes a database for maintaining the search contents. The
web site provides facilities for users to register, and use the social networking site. Offline users
can send messages to the GSM server. GSM server manages the content delivery message for the
query received for searching. Both are run simultaneously that both offline and online users can
use the system. The system can be efficiently and reliably implemented.


6.1 PROBLEM STATEMENT
To design a GSM reference system and a social networking site. GSM reference is the sending
the result of search and RSS feeds as text messages. Social networking site provides registered
users to communicate with each other.




6.2 PROBLEM DESCRIPTION


The first step is to design a GSM server. The server manages the receiving and sending of
messages. It is implemented in java. The search query received may be either for searching
contents or for getting RSS updates. If it is a message to search contents, the GSM server first
searches the database for any matching contents in the database. If the contents are in the
database, it is sent as reply to the sender. If the search content is not in the database, then the
GSM server handover the query to the web server. The web server searches the query in some
particular websites such as wiki and retrieves the contents. The result retrieved from the website
is raw text .The raw text is parsed to separate the search contents and remaining is ignored. The

                                                                                                  28
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System


parsed text is then sent as reply message. A copy of the parsed text is stored in the database for
further sending.
       The website is designed in struts and jsp. WebPages are designed for registration, profile,
scrapbook, sending messages and for pointing errors. Validation of user details while registration
are also done using struts-validation.


6.3 FEATURES OF THE PROJECT
      Provide low cost GSM search.
      Users can receive RSS feeds dynamically and when needed.
      Users can use the messaging facility provided in the website to contact friends.




                                                                                               29
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System




                                        CHAPTER 7
                              SOFTWARE DESCRIPTION

      Initially the server for running the website is setup. Apache web server is used for
   running the website. Software consists of both java application and web application. Both are
   run simultaneously using a batch file. The java application runs in the background.
        The web site is loaded into the web browser by typing the url www.mooble.com. The
   user is first lead to the home page .There are two options –firstly the registered users can
   login there with their username and password. Secondly, non registered users can create a
   new account by clicking the hyperlink for new user. The registration page collects user
   details and provides a unique username and password for the user. The users can then go to
   the home page and use this username and password to login there.
      After signing in the users can use This software is implemented using eclipse IDE 3.4.1
   and JDK 1.6. GSM server is implemented using java and web site is provided using struts
   and jsp.
              All the facilities provided such as messaging to mobile phones, sending scraps to
   other members in the friends list and reading and maintaining the scrapbook. The users can
   maintain and edit their details through the edit profile link. Finally users can securely sign out
   before navigating away from the website.
      In GSM reference, an offline user sends some search query as message to the server
   number. The server checks the message if it is a message for searching or for RSS feeds and
   replies with the appropriate contents.




                                                                                                  30
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System




                                         CHAPTER 8
                             TESTING AND VALIDATION

                Software testing is the process of checking whether thedeveloped system is
working according to the original objectives and requirement. The system is tested
experimentally with test data so as to ensure that the system works according to the required
specification. When the system is found working, it is test with actual data and performance is
tested. Software testing is a critical element of software quality assurance and represents the
ultimate review of specification, design and coding.
       When the GSM server startsup, a test message is sent to a particular number to see
whether the messaging system is working. Test is conducted to see if the database contents are
properly retrieved and sent. Messages are sent to registered users only. When an message is
received, reply should be sent only to a registered user. Else an error message should be sent.


      Website is tested to see if the pages are properly redirected. Registration page is tested to
see whether the user enters information in the correct format. The registration info is tested with
the contents of the database if any duplicate user exists.
Java security is also provided in the website. If a user simply types the url of the pages, he cannot
load the page without singing in. after logging out, the users cannot reenter the account by
clicking the back page of the browser.




                                                                                                  31
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                        GSM Reference System




CHAPTER 9
                               FUTURE ENHANCEMENTS


Any system, which has been in not for a number of years gradually, decays and become less
effective because of the change in environment to which it has been to be adapted. For a time
being it’s possible to overcome problems by amendments and the minor modification to
acknowledge the need of fundamental changes. In this project work, the aim is to maximize the
effort to equip the user with latest information user needs it and also this information are
gathered by a user who has the normal mobile phone which has facility to send and receive
message. This was developed using the J2EE and the MySQL. According to new technologies
the system can be modified.
        In this project work, the aim is to maximize the effort to equip the user with latest
information user needs it. This was developed using J2EE and MySQL. According to new
technologies, the system can be modified. The hardware component used in this project is a
mobile phone which has the facility to send and receive sms and can connect to a computer via
Bluetooth. If the new system arrived which has facility to transmit the data in a very high speed
then this system can developed based on that mobile phone. In future the searching technology
can replaced with the new advanced technology and also the formatting technology of the
searched content can be replaced with the new coming technology. The efficiency of this project
is found to be better than the existing in all respects.




                                                                                              32
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                        GSM Reference System




CHAPTER 10
                                      CONCLUSION

              All the suggestion forwarded in the software proposal has successfully been
completed and the final threshold of the application has been crossed. During the design phase of
the system, many difficulties were encountered .Checking different tables and listing out errors
created many problems. More errors were spotted during the system testing. This user friendly
software successfully overcame strict validation checks performed during the test data. The
results attained were fully satisfactory from the user point of view. An attempt was made to
attain maximum perfection in documenting the software in a simple, precise and self explanatory
manner. GSM Reference System package has covered almost all aspects needed for the college.
There is scope for improvement of this system. Apart from these, there is scope for generating
many more features




                                                                                              33
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                 GSM Reference System




                  APPENDIX I: WORKING ENVIRONMENT

  a.) SOFTWARE SPECIFICATION


      Processor            :     Pentium III 800MHz or higher.
      RAM                  :     128 MB and above
      Hard Disk Drive      :     20 GB or higher
      Keyboard             :     101/102 Natural Keyboard
      Monitor              :     Resolution of 800 X 600
      GSM tool kit         :     Bluetooth enabled GSM phone




  b.) HARDWARE SPECIFICATION


Operating System     :     Windows 2000/xp

      Front end            :     J2ee

      Backend              :     MYSQL

      Server               :      Apache Tomcat




                                                                                   34
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                          GSM Reference System




APPENDIX II: SCREEN SHOTS




SAMPLE REQUEST MESSAGE AND RESPONSE SENT FROM GSM SERVER:




                                                                            35
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                          GSM Reference System




RSS FEED PROVIDING CRICKET UPDATES




                                                                            36
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                          GSM Reference System




RSS FEED PROVIDING NEWS




                                                                            37
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                     GSM Reference System




      Home page: This is the welcome page of the website. Registered users can login using
       their unique username and password. New users can create a new account.




                                                                                        38
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                         GSM Reference System




      User Registration: In user registration user can register his information in the site. User
       details are collected and stored in the database persistently. Field validation is also
       provided in the page. Incorrect fields are warned to enter proper details. User can also
       upload his image during registration process.




                                                                                               39
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                          GSM Reference System




      Profile: User can maintain his profile. He can add, edit, save his information in the site.




                                                                                                 40
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                          GSM Reference System




      Sending sms: Through this facility, user can send sms to selected contacts or to a group
       of contacts. The message is followed by a success screen if the message was delivered
       successfully. If the message sending failed due to some reasons, it is also reported.




                                                                                               41
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                           GSM Reference System




      Scrap sending: this allows sending messages between users of the site. After singing in
       into the account the user can send scrap to anyone in the friends list.




                                                                                             42
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                      GSM Reference System




      Scrapbook:It allows the user to read the messages written by other users to him .he can
       remove selected scraps from the list. Additional details such as senders number and
       sending date are also displayed.




                                                                                           43
Department of Computer Science and Engineering
                      College of Engineering Trivandrum
                                                                       GSM Reference System




                                    REFERENCES
[1] Java 2 The Complete Reference by Herbert Schildt –Fifth Edition.

[2] Web Development with Java by Tim Downey, Florida International University.

[3] XML programming in Java by Doug Tidwell.

[4] Java 2 Enterprice Edition 1.4 by James McGovern.

[5] http://www.developerhome.com/sms/howToSendSMSFromPC.asp

[6] http://www.ozeki.hu/index.php?ow_page_number=566




                                                                                         44
Department of Computer Science and Engineering
                      College of Engineering Trivandrum

				
DOCUMENT INFO