Professional Documents
Culture Documents
008
Table of Contents
1. BACKGROUND........................................................................................................................6
2. PROBLEM STATEMENT........................................................................................................9
3. INTRODUCTION....................................................................................................................11
3.1 SYSTEM OVERVIEW:.................................................................................................................11
4. LITERATURE REVIEW........................................................................................................18
4.1 GSM NETWORK......................................................................................................................18
4.2.1 GPS...............................................................................................................................24
4.2.2 GPS Receivers..............................................................................................................26
4.2.3 NMEA Data..................................................................................................................27
5. ANALYSIS AND DESIGN......................................................................................................30
Transport Information System 2
008
5.2 ANALYSIS................................................................................................................................32
5.3 DESIGN:..................................................................................................................................59
6. IMPLEMENTATION..............................................................................................................83
6.1 APPLICATION INTERFACES:.........................................................................................................83
6.3.1 TeltonikaFM4100........................................................................................................101
7. DATABASE IMPLEMENTATION......................................................................................104
7.1.1 Entity Relationship diagrams.....................................................................................104
8. TESTING................................................................................................................................107
8.1 TESTING AREAS.....................................................................................................................107
2 of 125
Transport Information System 2
008
List of Figures
3 of 125
Transport Information System 2
008
4 of 125
Transport Information System 2
008
CHAPTER
Background
1
5 of 125
Transport Information System 2
008
1. Background
Many vehicle tracker companies are currently working in Pakistan. They are using some
dedicated software applications for manipulating GPS coordinates. But no one is working on
application that gives the SMS interface for real time query. The field in which we worked is
somehow different because we provide the SMS interface for tracking application.
When we talk about GPS history in Pakistan it is widely used by the vehicle tracker companies,
GPS-GSM device is installed in the vehicle ,it simply send data to the server about the current
location of the vehicle ,the particular data is uploaded by using the GPRS facility of GSM
modem. Some companies are also using SMS alerts to track the particular vehicle. Data that is
received by GPRS or in SMS is basically the Longitude & Latitude of a particular instance, these
longitudes & latitudes are then mapped on real map, by using this strategy vehicle’s current
location and speed is investigated. The major job that is performed by this type of companies is
to make sure that their registered vehicle should be transported within defined boundaries. In
case of route violation they will track the vehicle and inform the law enforcement agencies about
Some part of our project task is very much similar with the job of any tracker company. On the
other hand we have to maintain the current location of each bus in database. Secondly we have to
select a communication technique that is accessible for the majority of the citizens of Karachi.
GSM mobile phone is the first option for updating a commuter. Mobile phone users increased
rapidly in last few years and today that trend is growing in the same fashion. The major reason
6 of 125
Transport Information System 2
008
behind this development is the portability and exponential decrease in the cost of cell phones. On
the other hand the GSM service providers are also increasing rapidly in Pakistan. The average
cost of the SMS service provided by these companies is reduced to 20 or 10 paisa per SMS. So
SMS service is the best option available today for updating the commuter any where and any
time.
Initially the idea was to build a distributed web application, because the bus starts from two
This idea was turned down because of the cost of the project. If it would have been distributed
then the company will have to appoint two computer literate people on both ends and also an
7 of 125
Transport Information System 2
008
CHAPTER
Problem Statement
2
8 of 125
Transport Information System 2
008
2. Problem Statement
Majority of population in Karachi travels in public transport, their trouble starts when they reach
at bus stop and wait for the arrival their desired bus. Passengers have to spend their precious time
at bus stop without any shelter. There is no specific arrival time of these public busses.
Now if there is some way that these passengers are get informed by the arrival time of that
particular bus they can save their valuable time as well as their trouble is reduced.
9 of 125
Transport Information System 2
008
CHAPTER
Introduction
3
10 of 125
Transport Information System 2
008
3. Introduction
In this chapter we have discussed design, key constituents, requirement specification, and
To develop a system that informs a commuter about the arrival time of his/her desired bus
informing the commuters about arrival of their desired bus remotely. We can decrease much of
their trouble by updating them with the bus arrival time on their stop. For achieving that goal we
have to select such a communication technique that is cheap as well as in access of every single
person.
The idea of the project is about providing transport operators and passengers an attractive
The project will track and provide availability of public transport information to the commuters
11 of 125
Transport Information System 2
008
Transport Information System is a vehicle tracking system having interface with GSM networks.
A GPS device is installed in the vehicle to track the vehicle location. This system facilitates the
commuters by sending approximate time that a bus needs to get to the stop required by the
commuter on the screens of their cell phones. The commuter will send a SMS in the following
format <Bus Name> <Stop Name > <up/down>. The commuter will be updated about the
The complete transport information system comprises of GPS receiver that is installed in the bus.
The GPS receiver data that is simply a sentence carrying longitude & latitude of a particular
On the other hand commuters send SMS that also propagate through GSM network and received
4. Time calculation is performed at server end with respect to the current SMS received.
12 of 125
Transport Information System 2
008
5. Commuter is informed by the arrival time of his/her desired bus by reply SMS.
After the project defense presentation scope of transport information system is revised, according
Basically the work on GPS receiver and its communication with the server is omitted. University
provided a dedicated device FM4100 that has built-in GPS receiver & GSM modem available on
a single package. By using that device we able to upload the current location of each bus on a
13 of 125
Transport Information System 2
008
real IP by using the GPRS facility of respective GSM modem. Database & application design is
our major task; we also have to work on SMS service provided by our application.
1. SMS
2. Database
14 of 125
Transport Information System 2
008
3. GPS
A GSM modem along with a GPS module will be installed in each bus which will send the exact
coordinates of the bus to the internet after every 10 seconds. That data will be downloaded by a
The SMS that the user will send will be received by the OZEKI Message Server in “.MSG”
format. The file will be saved in a folder “SMS IN”. This file will then be read by our application
2. If it exists, then does the required stop belong to that bus route?
3. If the stop does not exist, then a SMS will be sent back to the user indicating that the stop
4. If it exists in the route then the system checks all the buses in that particular route then the
5. The time to reach of the bus whose next stop corresponds to the stop name sent by the user through
6. If there is not any bus exist whose next stop corresponds to the stop name sent by the user then the
system searches for a bus on the stop previous to that. It continues searching until it finds a bus on a
stop. The system then adds up the time for the bus to reach each stop up to the required stop.
15 of 125
Transport Information System 2
008
The reply will be sent via a text file to the “SMS OUT” folder. The file will have the same name
as the user’s cell phone number. The folder is maintained by the OZEKI message server. The
1. GSM Modem
2. GPS Module
3. Real IP
16 of 125
Transport Information System 2
008
CHAPTER
Literature Review
4
17 of 125
Transport Information System 2
008
4. Literature Review
In this chapter we mentioned the literature review that we studied before the design and
implementation of the project, the respective material has truly help a lot in understanding key
4.1.1History of GSM
In the early 1980s, analog cellular telephone systems were achieving rapid expansion in Europe,
particularly in Scandinavia and the United Kingdom, but also in France and Germany. Each
country developed its own system, which was unable to coexist with everyone else's in system
and processes. This was an unattractive circumstance, because the mobile equipment was
bounded to operation within national boundaries, the mobile phones users can communicate only
The Europeans understand this early on, and in 1982 the Conference of European Posts and
Telegraphs (CEPT) formed a study group called the Groupe Spécial Mobile (GSM) to study and
develop a pan-European public land mobile system. The proposed system had to meet certain
criteria:
18 of 125
Transport Information System 2
008
6. Spectral efficiency
7. ISDN compatibility
From the very first day, the pioneers of GSM wanted ISDN compatibility with respect to services
that offered by GSM. However, radio transmission limitations, in terms of bandwidth and cost,
do not allow the standard ISDN B-channel bit rate of 64 kbps to be practically achieved.
Using the ITU-T definitions, telecommunication services can be composed of bearer services,
tele services, and additional services. The most basic tele service supported by GSM is
telephony. As with all other communications, speech is digitally encoded and transmitted through
A wide range of data services is offered by GSM. GSM users can send and receive data, at rates
up to 9600 bps, to users on POTS (Plain Old Telephone Service), ISDN, Packet Switched Public
Data Networks, and Circuit Switched Public Data Networks using a variety of access methods
and protocols. Since GSM is a digital network, a modem is not required between the user and
GSM network, although an audio modem is required inside the GSM network to inter work with
POTS.A unique feature of GSM, not found in older analog systems, is the Short Message Service
(SMS). SMS is a bidirectional service for short alphanumeric (up to 160 bytes) messages. These
message can be sent or received to another subscriber, and an acknowledgement of the reception
19 of 125
Transport Information System 2
008
of the SMS is received by the sender that particular SMS is received by the destination or
receiver. SMS can also be used in a cell-broadcast mode; this type of service is used when we
have to send same massage to multiple users like news broadcast. SMS can also be stored in the
A GSM network is composed of several useful units, whose functions and interfaces are
specified. Fig 4.1 shows the layout of a generic GSM network. The GSM network can be divided
into three broad parts. The Mobile Station is carried by the subscriber. The Base Station
Subsystem controls the radio link with the Mobile Station. The Network Subsystem, the main
part of which is the Mobile services Switching Center (MSC), executes the switching of calls
between the multiple mobile users, and between mobile and fixed network users. The MSC also
holds the mobility management operations. Not shown is the process and Maintenance Center,
which manages the proper operation and setup of the network. The Mobile Station and the Base
Station Subsystem communicate across the Um interface, also known as the air interface or radio
link. The Base Station Subsystem communicates with the Mobile services Switching Center
20 of 125
Transport Information System 2
008
4.1.4Mobile Station
The mobile station (MS) consists of the mobile tools (the terminal) and a smart card called the
Subscriber Identity Module (SIM). The SIM provides personal mobility, so that the user can have
access to subscribed services irrespective of a specific terminal. By inserting the SIM card into
another GSM terminal, the user is able to receive calls at that terminal, make calls from that
The mobile equipment is uniquely identified by the International Mobile Equipment Identity
(IMEI). The SIM card contains the International Mobile Subscriber Identity (IMSI) used to
identify the subscriber to the system, a secret key for authentication, and other information. The
21 of 125
Transport Information System 2
008
IMEI and the IMSI are independent, thereby allowing personal mobility. The SIM card may be
4.1.5Network Subsystem
The central part of the Network Subsystem is the Mobile services Switching Center (MSC). It
acts like a normal switching node of the PSTN or ISDN, as well as give all the functionality
handovers, and call routing to a roaming subscriber. These services are provided in combination
with several functional entities, which together form the Network Subsystem [1].
The International Telecommunication Union (ITU), which manages the international allocation
of radio spectrum, allocated the bands 890-915 MHz for the uplink; mobile station to base
station, and 935-960 MHz for the downlink ;base station to mobile station, for mobile networks
in Europe. Since this range was already being used in the early 1980s by the analog systems of
the day, the CEPT had the foresight to reserve the top 10 MHz of each band for the GSM
network that was still being developed. Ultimately, GSM will be assigned the whole 2x25 MHz
bandwidth [1].
A traffic channel (TCH) is used to carry speech and data traffic. Traffic channels are defined
using a 26-frame multiform, or group of 26 TDMA frames. The length of a 26-frame multiform
is 120 ms, which is how the length of a burst period is defined (120 ms divided by 26 frames
22 of 125
Transport Information System 2
008
divided by 8 burst periods per frame). Out of the 26 frames, 24 are used for traffic, 1 is used for
the Slow Associated Control Channel (SACCH) and 1 is currently unused as mentioned in Fig
4.2. TCHs for the uplink and downlink are separated in time by 3 burst periods, so that the
mobile station does not have to transmit and receive simultaneously, thus simplifying the
electronics [1].
Fig. 4.4 Organization of bursts, TDMA frames, and multi frames for speech and data [1]
4.1.7Network aspects
Ensuring the communication of voice or data of a given quality over the radio link is only part of
the role of a cellular mobile network. A GSM mobile can faultlessly wander nationally and
internationally, which requires that registration, authentication, call routing and location updating
functions exist and are homogeneous in GSM networks. In addition, the fact that the
23 of 125
Transport Information System 2
008
geographical area covered by the network is divided into cells requires the implementation of a
4.2.1GPS
The law behind GPS is the calculation of distance between the satellites and the receiver. The
satellites notify receiver exactly where they are in their orbits by broadcasting data, the receiver
on the other end uses that similar data to compute their positions. If we know our precise
distance from a satellite in space, we know we are somewhere on the surface of an imaginary
sphere with a radius equal to the distance to the satellite radius. If we know our exact distance
from two satellites, we know that we are located somewhere on the line where the two spheres
intersect. And, if we take a third and a fourth measurement from two more satellites, we can find
our location. The GPS receiver processes the satellite range measurements and produces its
24 of 125
Transport Information System 2
008
GPS utilizes a method of coordinates called WGS 84, which stands for World Geodetic System
1984. It permits surveyors all around the world to generate maps, all with a common reference
frame for the lines of latitude and longitude that trace places and things all over the entire world.
Likewise, GPS uses time from the United States Naval Observatory in Washington, D.C., to
synchronize all the timing constituents of the GPS system, much like Harrison's chronometer
25 of 125
Transport Information System 2
008
4.2.2GPS Receivers
GPS generally means a GPS receiver. The Global Positioning System (GPS) is actually a
constellation of 27 Earth-orbiting satellites (24 in operation and three backup in case one fails).
The U.S. military developed and executed this satellite network for a military navigation system,
but soon opened it everyone else. Fig 4.5 & 4.6 shows the GPS satellites hovering around earth.
Each of these 3,000- to 4,000-pound solar-powered satellites float around the Earth at about
12,000 miles (19,300 km), making two complete rotations every day. The orbits are arranged so
that at anytime, anywhere on Earth, there are at least four satellites "visible" in the sky.
26 of 125
Transport Information System 2
008
A GPS receiver's function is to locate four or more of these satellites, calculate the distance to
each one, and use this information to deduce its own location. GPS receiver formulates that data
4.2.3NMEA Data
The National Marine Electronics Association NMEA has developed a design that defines the
interface between various pieces of marine electronic equipment. The standard allows marine
GPS receiver communication is defined within this specification. Most computer programs that
provide real time position information understand and expect data to be in NMEA format. This
data includes the complete PVT (position, velocity, time) solution computed by the GPS receiver
[4].
27 of 125
Transport Information System 2
008
NMEA consists of sentences, the first word of which, called a data type, defines the explanation
of the rest of the sentence. Each Data type would have its own unique interpretation and is
defined in the NMEA standard. NMEA sentences may repeat some of the same information but
will also supply new data. Whatever device or program that interpret the data can watch for the
data sentence that it is concerned and simply ignore other sentences that is doesn't care about [4].
28 of 125
Transport Information System 2
008
CHAPTER
Analysis and Design
5
29 of 125
Transport Information System 2
008
In this chapter we have discussed overall system structure, requirement capture, data handling
Use-cases are used to capture the requirements of the customer. Through use-case modeling, the
external actors that have interest in the system are modeled along with the functionality they
require from the system (the use cases). The actors and use cases are modeled with relationships
and have communication associations with each other or are broken down into hierarchies. The
actors and use cases are described in a UML use-case diagram. Each use case is described in text,
and that specifies the requirements of the customer, what he or she expects of the system,
without considering how the functionality will be implemented. Transport information system
has two major actors which is Commuter and System administrator. The use-case diagrams are
30 of 125
Transport Information System 2
008
Receives sms
Initiate
31 of 125
Transport Information System 2
008
5.2 Analysis
Analysis is concerned with the primary abstractions and mechanisms that are present in the
problem domain. Analysis provides the software designer with a representation of information,
function, and behavior that can be translated to data, architectural, interface, and component-
level designs.
Each analysis method has a unique point of view. However, all analysis methods are related by a
32 of 125
Transport Information System 2
008
3. The behavior of the software (as a consequence of external events) must be represented.
4. The models that depict information function and behavior must be partitioned in a manner
5. The analysis process should move from essential information toward implementation detail.
33 of 125
Transport Information System 2
008
34 of 125
Transport Information System 2
008
ACTOR Commuter
STEP2.1.1 A SMS will be sent to the user that the bus does
not exist.
STEP2.2 If the bus exists then
STEP3.1.1 A SMS will be sent to the user that the stop does
not belong to the route.
STEP 6.1: if there does not exist any bus whose next stop
corresponds to the stop name sent by the user then the
system searches for a bus on the stop previous to that. It
continues searching until it finds a bus on a stop. The system
then adds up the time for the bus to reach each stop up to the
required stop.
35 of 125
Transport Information System 2
008
36 of 125
Transport Information System 2
008
37 of 125
Transport Information System 2
008
38 of 125
Transport Information System 2
008
39 of 125
Transport Information System 2
008
40 of 125
Transport Information System 2
008
ASSUMPTION NONE
ASSUMPTION STEP
NONE2 : System will give instruction how to
add a new stop
ASSUMPTION NONE
Transport Information System 2
008
42 of 125
Transport Information System 2
008
ASSUMPTION NONE
43 of 125
Transport Information System 2
008
ASSUMPTION NONE
44 of 125
Transport Information System 2
008
45 of 125
Transport Information System 2
008
46 of 125
Transport Information System 2
008
ASSUMPTION NONE
47 of 125
Transport Information System 2
008
ASSUMPTION NONE
48 of 125
Transport Information System 2
008
49 of 125
Transport Information System 2
008
50 of 125
Transport Information System 2
008
51 of 125
Transport Information System 2
008
ASSUMPTION NONE
52 of 125
Transport Information System 2
008
ASSUMPTION NONE
53 of 125
Transport Information System 2
008
ASSUMPTION NONE
54 of 125
Transport Information System 2
008
POSTCONDITION NONE
ASSUMPTION NONE
55 of 125
Transport Information System 2
008
POSTCONDITION NONE
ASSUMPTION NONE
56 of 125
Transport Information System 2
008
POSTCONDITION NONE
ASSUMPTION NONE
57 of 125
Transport Information System 2
008
POSTCONDITION NONE
ASSUMPTION NONE
58 of 125
Transport Information System 2
008
POSTCONDITION NONE
ASSUMPTION NONE
5.3 Design:
In design, the result of the analysis is expanded into a technical solution. New classes are added
to provide the technical infrastructure like the user interface, database handling to store objects in
a database, communication with other systems, interfacing to devices in the system, and others.
59 of 125
Transport Information System 2
008
Preconditions: The name of that bus Group should not exist in the database
Assumptions: None
60 of 125
Transport Information System 2
008
Preconditions: GSM Number assigned to that Registration Number should not be belong
Assumptions: None
Assumptions: None
61 of 125
Transport Information System 2
008
Preconditions: Stop Name, Latitude, Longitude should not exist in the database
Post Conditions: Stop Name, Latitude, Longitude should exist in the database
Use case Name Add New Stop Location for Route Down
Actor: System Administrator
Description: This use case describes the design adding a new Stop Location for Route Down
Reference: PS-1.0
Actor Action System Response Controls Constraints
Step-1: Will select the Stop Name (Text Stop Name
Stop and Down from the box) (text)
New menu strip. Step-2: On the Latitude(Text Box) Latitude(Varcha
response, a new Longitude(Text Box) r)
form will open and Longitude(Varc
the following field har)
swill be appeared Stop Name,
Stop Name Latitude,
,Latitude, Longitude
Step-3: The System Longitude should be
Administrator will click unique.
on the ADD button and
62 of 125
Transport Information System 2
008
Preconditions: Stop Name, Latitude, Longitude should not exist in the database
Post Conditions: Stop Name, Latitude, Longitude should exist in the database
Assumptions: None
63 of 125
Transport Information System 2
008
Preconditions: The Stop Name, Next Stop in that particular route name should not exist in
the database
Post Conditions: The Stop Name in that particular route name should exist in the database
Assumptions: None
Use case Name Add New Stop in existing Route for Down
Actor: System Administrator
Description: This use case describes the design adding a new Stop in existing Route for Down
Reference: PS-1.0
Actor Action System Response Controls Constraints
Step-1: Will select the Route Name (Text Route Name
Stop In Route and Box) (Varchar)
Down from the New Step-2: On the Stop Name(Combo Stop
Menu Strip. response, a new Box) Name(Varchar)
form will open and Next Stop (Combo Next Stop
the following fields Box) (Varchar)
will be appeared Stop Number(Text Stop Number(int)
Route Name Box) Time(int)
Step-3: The System Stop Name Time (Text Box)
Administrator will click Next Stop Name
on the ADD button and Stop Number The stop name in
the values will be saved Time that particular route
in the database name should be
unique
The next stop in
that particular route
should be unique
Preconditions: The Stop Name, Next Stop in that particular route name should not exist in
the database
Post Conditions: The Stop Name in that particular route name should exist in the database
Assumptions: None
64 of 125
Transport Information System 2
008
Preconditions: The GSM Number of that device should not exist in the database
Post Conditions: The GSM Number of that device should exist in the database
Assumptions: None
65 of 125
Transport Information System 2
008
Preconditions: NIC Number and the License Number should not exist in the database
Post Conditions: NIC Number and the License Number should exist in the database
Assumptions: None
Assumptions: None
66 of 125
Transport Information System 2
008
Assumptions: None
67 of 125
Transport Information System 2
008
Assumptions: None
68 of 125
Transport Information System 2
008
Assumptions: None
69 of 125
Transport Information System 2
008
Assumptions: None
70 of 125
Transport Information System 2
008
Assumptions: None
71 of 125
Transport Information System 2
008
buttons will be on
the interface
Edit Complete
Record
Edit Stop Name
Step-4: The System Edit Next Stop
Administrator will click Edit Time
on the Change button Step-3: If the Edit
and the values will be Complete Record
updated in the database Button is clicked
then all the fields
will be enabled.
72 of 125
Transport Information System 2
008
Preconditions: The Stop Name, Next Stop, time in that particular route name should exist in the
database
Post Conditions: The Stop Name, Next Stop, Time in that particular route name should be
Assumptions: None
73 of 125
Transport Information System 2
008
Preconditions: The Device Number of that device should exist in the database
Post Conditions: The Device Number of that device should be updated in the database
Assumptions: None
74 of 125
Transport Information System 2
008
Preconditions: CNIC and the License Number should exist in the database
Post Conditions: CNIC and the License Number should be updated in the database
Assumptions: None
75 of 125
Transport Information System 2
008
Assumptions: None
76 of 125
Transport Information System 2
008
Assumptions: None
77 of 125
Transport Information System 2
008
Assumptions: None
78 of 125
Transport Information System 2
008
Preconditions: None
Assumptions: None
Post Conditions: The bus’s registration number should be deleted from the record
79 of 125
Transport Information System 2
008
Assumptions: None
Post Conditions: The Driver’s information should be deleted from the record
Assumptions: None
80 of 125
Transport Information System 2
008
containing the
following field will
be appeared
Step-3: The System Device ID
Administrator will click on
the Delete button and
Device will be deleted
Post Conditions: The Device Information should be deleted from the record
Assumptions: None
81 of 125
Transport Information System 2
008
CHAPTER
Implementation
6
82 of 125
Transport Information System 2
008
6. Implementation
In this chapter we have discussed some implementation details like application’s major
1. Administrator can add new bus group name by using following interface in Fig 6.1.
2. Administrator can add new bus by using following interface, the two fields can get
registration number of bus and GPS device id against that registration number Fig 6.2. Each
83 of 125
Transport Information System 2
008
3. The following interface is used to add new route name against any particular bus
name.Administrator can select any bus using drop down menu and define new route name
84 of 125
Transport Information System 2
008
4. Adiministrator can define new stop by entering respective logitude and latitude of the
Fig. 6.14 Add new Stops and their locations for Route Up
5. Adiministrator can define new stop by entering respective logitude and latitude of the
respective stop in down direction,using the following interface he can define it easily by
85 of 125
Transport Information System 2
008
Fig. 6.15 Add new Stops and their locations for Route Down
6. When a new device is purchased by the company , administrator can register that device
86 of 125
Transport Information System 2
008
7. When a new driver is recruited administrator can register him by using following interface.
Driver’s name, CNIC, license no is updated in the database by using following interface Fig
6.7.
8. Adiministrator can define new stop in route by entering data of the respective stop for up
87 of 125
Transport Information System 2
008
9. Adiministrator can define new stop in route by entering respective data of the respective stop
88 of 125
Transport Information System 2
008
10. Any device related data that is registered in the database can be edited by following
interface,adminitrator can enter new device number with respect to old one Fig 6.10.
89 of 125
Transport Information System 2
008
11. Similarly any bus related data that is regitered in the database can be edited by following
interface,adminitrator can enter new bus name with respect to current bus name Fig 6.11.
12. Route name can also be edited by using following interface,by replacing the current with new
90 of 125
Transport Information System 2
008
13. By using following interface administrator can edit data related any stop indivisiually or the
complete stop information is also edited by using the same interface,having route for up
91 of 125
Transport Information System 2
008
14. Similarly following interface is used to edit data related to any stop indivisiually as well as
complete stop information is also edited by using the same interface,having route for down
15. Any bus registertion data that is regitered in the database can be edited by following
interface,adminitrator can enter new registeration number with respect to old one, interface
92 of 125
Transport Information System 2
008
16. If the respective logitude and latitude of the stop up is changed then it can be edited by using
following interface.The old longitude and latitude can be replaced by new ones (Fig 6.16).
93 of 125
Transport Information System 2
008
17. If the respective logitude and latitude of the stop down is changed then it can be edited by
using following interface.The old longitude and latitude can be replaced by new ones (Fig
6.17).
18. If any bus is retired form the fleet then administerator can also delete the data e of respective
94 of 125
Transport Information System 2
008
Fig. 6.28 Delete the Bus that has left the company
19. Similarly if any driver is retired or resigned form the company then administerator can also
delete the data of respective driver by using following interface (Fig 6.19).
20. GPS device can also deleted from database by using following interface.Simply select the
respective GPS device-ID from the drop down menu and press the delete button (Fig 6.20).
95 of 125
Transport Information System 2
008
21. When the bus of any route reaches to its destination, administrator can terminate that bus
Fig. 6.31 Terminate the bus instance of the bus that has reached its destination
22. Adminitrator can also track any bus of any route,he can insatantaneously get the current
location of the respected bus by entering the bus name for up or down (Fig 6.22).
96 of 125
Transport Information System 2
008
Fig. 6.32 Track the current location of the buss with respect to the bus name
23. following interface is the major interface of the application,when any bus of any route starts
its new route cycle means that it started its journy towards the last stop of the route,
administraor activate new bus instance by putting the respective data about bus and driver
respectivly.The instance can be viewed at any time (Fig 6.23 & 6.24).
97 of 125
Transport Information System 2
008
98 of 125
Transport Information System 2
008
User will send a SMS for the enquiry of the particular bus. OZEKI Message Server will receive
the SMS and will place it in the SMSIN folder as .MSG file. A window service will receive that
SMS file from the folder and perform the following tasks
1. It will check the name of the bus user inquired is valid or not.
2. If it is not valid then the system will send a SMS to the user that the following bus name does
not exist.
3. If the bus name is valid then it will verify the Stop name that user has inquired about whether
the stop name belong to the bus name which user has inquired
4. If the stop name does not exist against that bus name which user has inquired then a SMS
will be sent to the user about the validity if the stop name
5. If the stop name is verified and it exist in the route of that bus then service will verify the
6. If route is not 0 or 1 then the SMS will be sent to the user that the route is not valid
7. If the route is valid then the service will check whether the route is 1 or 0.
8. If it is 1 then the service will check the stop number of the stop which user has inquired.
9. Then all the busses in that route will be checked whose stop number is less then the inquired
stop and that bus will be selected which is nearest to the inquired stop name , the stop
99 of 125
Transport Information System 2
008
number of that bus will be calculated , the difference between the inquired stop name and the
10. Then the approximate timing of the bus to arrive at the inquired stop will be sent to the user
via SMS.
11. If it is 0 then the service will check the stop number of the stop which user has inquired.
12. Then all the busses in that route will be checked whose stop number is less then the inquired
stop and that bus will be selected which is nearest to the inquired stop name , the stop
number of that bus will be calculated , the difference between the inquired stop name and the
13. Then the approximate timing of the bus to arrive at the inquired stop will be sent to the user
via SMS.
The service will place a .MSG file in the SMS OUT folder and the OZEKI Message Server will
The FM4100 GPS/GSM Modem will send the data on the real IP. The device will send NMEA
sentence. That NMEA sentence will be received by a service of the application. The NMEA
sentence is parsed and the device ID of the device and longitude, latitude of the current location
of the buss will be taken. Those longitude and latitude will be compared with the latitude and
longitude of the stop. If those longitude and latitude are similar to the latitude and longitude of a
100 of 125
Transport Information System 2
008
stop in that route then the current location of that particular bus will be updated. If those
longitude and latitude does not correspond to any stop in the route of that bus then they will be
discarded and the current location of the bus will not be updated. The service will do the
1. It will parse the NMEA sentence and the relevant fields Device ID, latitude and longitude
2. The latitude and longitude of that device on the bus will be compared with the latitude and
3. If the latitude and longitude match the latitude and longitude of any stop in that route then the
current location of that bus will be updated, if they does not match then they will be
discarded
6.3.1TeltonikaFM4100
FM4100 is a terminal with GPS and GSM connectivity, which is able to get device coordinates
and transfer them via GSM network. This device is perfectly suitable for applications where
location acquirement of remote objects is needed. So you can track your remote objects (trucks,
It has option of rechargeable battery inside and special controller for power management. Also
there is an option of using external backup battery. Thus it can operate for up to 48 hours in
Normal (Sending via GPRS) mode with external backup battery. FM4100 can perform tasks on
remote objects, such as monitoring temperature, engine status, fuel consumption, controlling
101 of 125
Transport Information System 2
008
truck’s door etc. In case of losing connection FM4100 (Fig 6.25) can store up to 8000 records
(optionally 64000 records), and once the connection is established the device will send stored
data via GPRS. The aluminum case of the device is very robust and perfectly suitable for
102 of 125
Transport Information System 2
008
CHAPTER
Database Implementation
7
103 of 125
Transport Information System 2
008
7. Database Implementation
In this chapter we have elaborated database implementation detail by using entity relationship
diagram.
Complete Entity relationship diagram of transport information system is mentioned is Fig 7.1.
The major table that is backbone of the data base is “bus instance” table, every time when a bus
of any route starts its new trip its instance is created in the database by using that table. It simply
gathers all bus related data from other tables and integrate it.
104 of 125
Transport Information System 2
008
105 of 125
Transport Information System 2
008
CHAPTER
Testing
8
106 of 125
Transport Information System 2
008
8. Testing
In this chapter we have discussed all test cases and test criteria that we used to test application at
each stage.
8.1 Testing Areas
2. Phase2:Partial testing
3. Phase3:Integeration testing
8.2.1Phase 1
In first phase of testing we evaluated each module individually. First of all database the backbone
1. Each stored procedure of insert, delete, and update is tested in query analyzer.
2. Verification of the status of changes done through these statements in tables manually.
107 of 125
Transport Information System 2
008
User service is continuously watching a particular path ( folder”SMSIN”) when it is started and
when new SMS is arrived it prompts the application for further processing. Manually service
1.1. Writing wrong route no in the SMS and check the response of service.
2. Placing a file of other extension in SMSIN folder, service will take no action.
Now comes the interfacing with GSM modem part in which we tested the functionality of
OZEKI message server and customize it for our specific use in Transport Information System.
SMS is sent from a mobile and the OZEIKI message server receives the SMS and placed the
.Msg file in the SMSIN folder. User service receives that SMS and perform all the functionality,
created a .Msg file and placed the response to that SMS in that file and placed that file in
SMSOUT folder. The Message server receives that file and sent it to the user who sent the
message.
8.2.2Phase 2
108 of 125
Transport Information System 2
008
After testing each module individually, we integrated the database with GUI and run particular
1. If the data is inserted using GUI then a message will prompt “Record inserted”.
2. If the data is updated using GUI then a message will prompt “Record updated”.
3. If the data is deleted using GUI then a message will prompt “You have deleted the following
record”.
1. If the respective bus name is incorrect the application will respond in form of simple text
message having text as follows “Dear customer, bus name <busname> is invalid”.
2. If the stop name is incorrect or the stop name does not exist in that particular route then the
application will respond the following “Dear customer, the stop name <stopname> is
invalid”.
3. If all the information is correct then application respond approximate arrival time of the
desired bus on user’s particular stop ;format is as follows “Dear customer, the bus
8.2.3Phase 3
109 of 125
Transport Information System 2
008
In third test phase we integrated all four modules and perform SMS send receive service and
The message is received in the SMSIN folder and then service retrieves that file and for each
1. If the respective bus name is incorrect the application will respond in form of simple text
message having text as follows “Dear customer, bus name <busname> is invalid”.
2. If the stop name is incorrect or the stop name does not exist in that particular route then the
application will respond the following “Dear customer, the stop name <stopname> is
invalid”.
3. If all the information is correct then application respond approximate arrival time of the
desired bus on user’s particular stop ;format is as follows “Dear customer, the bus
110 of 125
Transport Information System 2
008
CHAPTER
Results
9
111 of 125
Transport Information System 2
008
9. Results
In testing phase the service is tested manually, that entire test results are mentioned in this
1. When the user enter wrong stop name in the respective SMS our window service responded
immediately that the stop name is incorrect as mentioned below is in Fig 9.1 & 9.2
respectively.
112 of 125
Transport Information System 2
008
2. Similarly if the user enter wrong route name in the SMS the service respond the user that
route name is incorrect as mentioned below is in Fig 9.3 & 9.4 respectively.
113 of 125
Transport Information System 2
008
114 of 125
Transport Information System 2
008
3. If incorrect bus name is received in the SMS the service inform the user that respective bus
115 of 125
Transport Information System 2
008
4. Service responds with correct time if and only if the respected format of the SMS is correct
as mentioned below is in Fig 9.7 & 9.8 respectively. The service extracts the respective data
from the received SMS, perform calculations with respect to that received data and respond
116 of 125
Transport Information System 2
008
117 of 125
Transport Information System 2
008
CHAPTER
Discussion
10
118 of 125
Transport Information System 2
008
10.Discussion
In the current chapter we have discussed the progression of the project including the methods
1. If the respective bus name is incorrect the application will respond in form of simple text
message having text as follows “Dear customer, bus name <busname> is invalid”.
2. If the stop name is incorrect or the stop name does not exist in that particular route then the
application will respond the following “Dear customer, the stop name <stopname> is
invalid”.
3. If all the information is correct then application respond approximate arrival time of the
desired bus on user’s particular stop ;format is as follows “Dear customer, the bus
119 of 125
Transport Information System 2
008
CHAPTER
Conclusion
11
120 of 125
Transport Information System 2
008
11.Conclusion
This chapter of report contains a concise statement of the conclusions is drawn from the work
attempted. We also focused to convince the reader that our actual will work without a flaw.
Transport information system is an automatic application informs commuters about the arrival
time of the bus they want to travel using SMS facility of their mobile phones; busses are tracked
using GPS-GSM modem embedded device that updates current longitude and latitude of bus in
database using GPRS technology. Application serves the remote users by manipulating that data
121 of 125
Transport Information System 2
008
CHAPTER
Future Work
12
122 of 125
Transport Information System 2
008
12.Future Work
In the current chapter we pointed out some major future enhancements & implementations that
2. Designing of special purpose hardware for interfacing GSM modem to the software
3. Implementation of intelligent queuing model at server end to reduce the response time of the
application.
5. Replacing the GPS+GPRS embedded device with single GPS device and GSM modem of
123 of 125
Transport Information System 2
008
CHAPTER
References
13
124 of 125
Transport Information System 2
008
13.References
13.1 Web References
[1] Overview of GSM: The Global System for Mobile Communications, by John Scourias,
University Of Waterloo.
https://styx.uwaterloo.ca/publications/pdfs/TR-96-01.pdf
[2] http://www.aero.org/education/primers/gps/howgpsworks.html
[3] How GPS Receiver Works, by Marshall Brain & Tom Harris.
http://adventure.howstuffworks.com/gps4.htm
http://gpsinformation.org/dale/nmea.htm
[5] http://www.teltonika.lt/en/pages/view/?id=762
125 of 125