mobile gps tracking

Download Mobile GPS Tracking

Post on 22-May-2015




2 download

Embed Size (px)


  • 1. Mobile GPS TrackingChapter 1INTRODUCTION1.1 Overview of BackgroundThe Global Positioning System (GPS) is a location system based on a constellation of 24 to 32satellites orbiting round the earth at altitudes of 11,000 miles. Each satellite is powered bythe Sun via its solar panel. In its earlier years, GPS was developed in the US for military use,for the Department of Defense (DOD). Through the years of development andimprovement, we have advanced the use of GPS to tracking our precise location worldwideand as a navigation aiding tool for civilian usage. Currently, it is used as navigation tooldevice to assist us in finding the shortest route to our destination. We can use it either inthe forest to help in navigation task or in a vehicle to guide us to our destination. Runneruses GPS watches worn on wrist to track the distance and route they have travelled. Assuch, with the advancement of GPS into our life, we will never lose our way again whichsaves us time, energy and petrol. In conclusion, overall GPS improves our efficiency in ourdaily life.1.2 GPS TechnologyThe most important factor in GPS tracking, accuracy is essential to precisely track the exactlocation in real-time. There is a need to know the GPS infrastructure layouts, limitations,and communication protocol. Research will need to be conduct in order to fully understandeach individual component. We need to understand the type of methods used for the GPStechnology and the problem which would affect the performance of the GPS trackerreceiving of satellite signal.1.3 Motivations and GoalsSecurity is very important in some activities. Free ride, mountain walking or climbing,paragliding are those where accidents can be serious or fatal. Having the possibility tofollow physically the position of a person on regular basis can be comfortable for family,relatives or others.These meant to propose a simple and portable solution for people to get traced during atrip. The application is web based and should be available for every people who have thepossibility toR V College of Engineering1

2. Mobile GPS Tracking 1. Run a small Java application on its mobile phone. 2. Has link between a GPS device and its mobile phone. 3. Has Internet access.This concept is not new and a lot of applications involving GPS are available on the market:now a days almost every new car is equipped with a GPS on board and helps people in cityor country side to find their road.The concept of this project is a bit different. We are not focusing on "where are we?" butmore on "where he/she is?. For this the idea is to use a cell phone which accepts to receiveGPS coordinates and send them to a server able to record them under the account of aregister user (tracked person). Then from a web client, the user can be followed on a map inreal time mode. Figure 1.3 GPS Tracker General SchemaR V College of Engineering 2 3. Mobile GPS TrackingChapter 2REQUIREMENT ANALYSIS2.1 System RequirementsThe system needs different components are given below: An Application Server J2EE EJB 2.1 compatible. A SQL database Java compatible mobile phone with Bluetooth Internet access2.1.1 Functional RequirementsThe application will follow the use cases described in Fig 1.4. All use cases are nowdescribed formally. Within the 3 actors, the manager has a special role and is automaticallycreated with the user Id 1. It can do exactly what a standard user can do but has specialrights that the others dont have. Creation of usersAny user who wants to be followed needs to be register in the system first. The applicationswill offer a web interface to enter the following data.1. First Name2. Last Name3. Street4. Zip code5. City6. Phone7. PasswordThen the user receives a user Id (integer) and is recorded in the database. This part is doneon the web client side. The password must be more than 4 characters long. Any fields mustbe empty otherwise the user is not register.R V College of Engineering 3 4. Mobile GPS Tracking Modification of the user profileOnce logged, the user can modify its profile using the same data as above and sameconstraints. User loginThis web page is the first one in the system. The user must be identify in order to access anyoptions. The web page contains two fields:1. User ID2. Password Creation of a track for a given userThe user, once registered, can log in the system and create a track. There is two possibilitiesto do it.1. From the web client application.2. From the mobile application (mobile phone).If a new track is started from the mobile application, the user must provide:1. User Id2. PasswordThen the server will create a new track and be ready to store the future positionsin under this tracks id.For a track started from the web client, the user can give:1. North coordinates2. East coordinatesThis will represent the first point of the track. The track has a unique identifier within thesystem. The time and date when the track is created is taken from the servers clock. Sending GPS coordinates to a server using mobile data communicationThe users get the coordinates (position) from its GPS device and send them to the serverwith mobile phone. The position must contain:1. User Id2. Time3. North coordinatesR V College of Engineering 4 5. Mobile GPS Tracking4. East coordinates5. AltitudeThen the server records the position under the users current track id. If no track is createdor the user Id does not exists, the system gives an error message and do not record theposition. Follow a user in real time mode on the InternetAny person having the right to watch a users track must log in the system under the usersID and password. Then he/she can choose the track to be drawn. A list of the users tracks isavailable. This is done through the web page. The drawings of the track are done in twodifferent manners: Swiss Topo 2D maps and Google Earth. If the track chosen is the currentone and drawn in 2D mode, it is refreshed periodically using a "refresh time" parameter. Delete a trackThe user can delete tracks from a list of tracks. If the track deleted is the current one thenthe previous one become again the current track and all the future positions sent to theserver will be save under this track id. Manager - Delete usersThe web page allow the manager to delete users from a list of register one. This list showsall the available users. Manager - Follow a tracked user in real time mode on the InternetThe manager can choose the track to be drawn. A list of all users tracks is available. This isdone through the web page. The other options are the sameas standard users.2.1.2 Non Functional RequirementsConstraints on the services or functions offered by the system such as timing constraints,constraints on the development process, standards, etc.Following Non-functional requirements will be there in our project:R V College of Engineering5 6. Mobile GPS Tracking 1. Secure access of confidential data (users details). 2. 24 X 7 availability. 3. Security 4. Reliability 5. Maintainability 6. Portability 7. Extensibility 8. Reusability 9. Application Compatibility2.3 Software RequirementsThe OS where all the following were installed is Windows XP sp2: J2EE Application Server: Sun Java System Application Server Platform Edition 8.1 2005Q1 Enterprise Java Beans 2.1 Java Midlet : SUN J2ME Wireless Tool Kit 2.2 PointBase free Version: 5.2 ECF build 294 Java VM : J2SE Version 1.5.0 (build 1.5.0 06 b05)2.4 Hardware RequirementsOnly two devices where needed and are1. Mobile Nokia Phone2. GPS EMTAC Bluetooth - GPS TrineR V College of Engineering6 7. Mobile GPS TrackingChapter 3 DESIGN 3.1 Architecture The technologies used for the project are client-server and web based. The main platform of development is J2EE. The full description of the language, server version is described above. We will not explain in detail how J2EE works and assume that the reader knows this technology and how the modules are defined. The general structure of the application is shown in the Fig 3.1. The application is based on 3-tiers architecture: 1. Client side: mobile application, web browser 2. Server side: business logic, web application (interface) 3. DatabaseFigure 3.1 General Architecture of GPS Tracker application 3.2 Components As shown in the fig 3.1, there are 3 main components. The client side which contains an Java Midlet application (loaded in the mobile phone) and the browsers. The application server which contains the Web container (JSPs and servlets) and the EJB container where the business logic (Session beans and Entity beans) stands. The third tier is the database managing the tables where the entity beans store their values. R V College of Engineering 7 8. Mobile GPS Tracking3.3 Software ModulesNow we enter into the different modules which are contained in the main components. Wewill treat them by decreasing complexity. Finally we will describe the communication layerbetween the different modules. 1. EJB container: description of the Session and Entity Bean. 2. WEB container: description of the JSPs and Servlets. 3. Database: description of the tables and relations. 4. Midlet: description of the Java mobile application.3.3.1 EJB container: description of Entity Bean and the SessionThe fig 3.2 shows the definition of the entity beans class and the relation between them.Primary Key management: the primary key management is implemented with an entitybean. The idea is to avoid for the user to give manually a unique key for each new position,track, address, user, etc. This is simply impossible to do it in a large scale. Also managing theprimary key allow the system to be "database vendor independent".3.3.2 WEB Container: description of the JSPs and ServletsThe figure 7 shows the different JSPs and Servlets that the Web container manages. Theassociation represents the navigation between the JSPs. This figure contains the web accessJSPs. The JSPs are composed with HTML code for the fro