0% found this document useful (0 votes)
8 views5 pages

PID13687571

This paper discusses the design and implementation of a GPRS-based vehicle positioning system using a PIC microcontroller. The system integrates GPS and GSM technologies to track vehicle location in real-time, providing data on speed and mileage, while also allowing for data storage during GPRS outages. Experimental results demonstrate the system's effectiveness in accurately estimating vehicle position and displaying it via a web interface integrated with Google Maps.

Uploaded by

mansi.kushwaha23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

PID13687571

This paper discusses the design and implementation of a GPRS-based vehicle positioning system using a PIC microcontroller. The system integrates GPS and GSM technologies to track vehicle location in real-time, providing data on speed and mileage, while also allowing for data storage during GPRS outages. Experimental results demonstrate the system's effectiveness in accurately estimating vehicle position and displaying it via a web interface integrated with Google Maps.

Uploaded by

mansi.kushwaha23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/221258287

Implementation of GPRS-Based Positioning System Using PIC Microcontroller

Conference Paper · July 2010


DOI: 10.1109/CICSyN.2010.76 · Source: DBLP

CITATIONS READS
23 5,901

5 authors, including:

Wael Elmedany Alauddin Al-Omary


University of Bahrain University of Bahrain
43 PUBLICATIONS 406 CITATIONS 34 PUBLICATIONS 297 CITATIONS

SEE PROFILE SEE PROFILE

All content following this page was uploaded by Alauddin Al-Omary on 10 December 2015.

The user has requested enhancement of the downloaded file.


Implementation of GPRS-Based Positioning System using PIC Microcontroller

Wael M El-Medany, and Alauddin Alomary Reyadh Al-Hakim, Sufyan Al-Irhayim, and
Computer Engineering Department Mustafa Nousif
University Of Bahrain, 32038 Bahrain Computer Engineering Department
Email: [email protected] University Of Bahrain, 32038 Bahrain

Abstract— This paper presents a hardware design and


implementation of GPRS based positioning system using PIC II. SYSTEM ARCHITECTURE
microcontroller. The system is implemented using the The tracking system architecture comprises three main
microchip PIC 16F877A microcontroller. The system has been modules: the GPS location module, the GSM delivery
tested on a test board, and then a PCB (Printed Circuit Board) module, and the backend system that collects the information
layout has been implemented for the final system prototype.
and displays it when requested.
The system provides the ability to track current position of the
vehicle or its position in any specific time and date by A. The GPS Location Module
analyzing the received data from the GPS receiver. The
The GPS receiver unit (attached to the monitored
prototype has been tested experimentally and the results are
analyzed and discussed. vehicle) is built using the GM862-GPS quad band cellular
modem, which combines a powerful GSM engine with a
Keywords- GPS; GPRS; ITS; PIC; Positioning System. SIRF III 20-channel high sensitivity GPS receiver. The
receiver uses triangulation to calculate its location. The
coordinates (latitude, longitude, altitude) will be calculated at
I. INTRODUCTION predetermined regular intervals and passed along with a
Vehicle positioning technique currently has been applied time-stamp to the GSM delivery service.
to many popular applications, including vehicle navigation, B. The GPRS Delivery System
vehicle tracking, fleet management, and location based
services [1], [2], [3], [4], [5]. Recently, it has developed into The GSM module communicates with the
a powerful and marketable package due to its low-cost and microcontroller to access and send this data to the server via
varying facilities such as Anti-theft modules, client a previously established GPRS connection. First, the unit
identification and real time performance monitoring [6], [7]. will establish a GPRS connection with the server, and then
The objective of this research is to design and implement establishes a TCP/IP socket connection with the data that is
a Vehicle Positioning System (VPS) based on GPRS sent as IP data packets over this connection. In the event that
(General Packet Radio Service) [8], [9],[10]; and GPS there is no GPRS available, the GPS data is stored in the
(Global Positioning System) [11], [12]. To design an memory unit and will be sent to the server along with the real
affordable and fast system the GM862 cellular quad band time location details as soon as GPRS becomes available
module is used. GM862 has GPS and GPRS integrated again.
together to decrease the time delay and give an accurate C. The Backend System
measurements for the real time tracking [13]. The Microchip PIC 16F877A microcontroller is the main
The system provides the ability to track the vehicle operational unit of the tracking device. It communicates with
current position or its position in any specified time and date. each of the other operational GPRS delivery service units via
It also provides information regarding the vehicle status such its built-in UART interfaces. The monitoring server is
as speed and mileage. By monitoring these information in integrated with a Web Portal that allows users to access the
real-time, a person or a company will have fully updated tracking device location data for analysis and display. This
information regarding their vehicle status. This gives the web-based architecture allows the common infrastructure to
option of using this information to avoid vehicle theft, or to be leveraged by a variety of different users. The monitoring
manage their fleets [14], [15], [16], [17]. server provides the data processing to convert the GPS
The materials in this paper are organized as follows; sensor data into locations, and it is integrated with Goggle
tracking system architecture is presented in section two. maps to provide a visual interface for tracking the vehicle
Section three presents the hardware implementation of the location. There are three LEDS attached to the output pins of
Vehicle Positioning System (VPS). The results and the microcontroller to indicate the GSM signal availability,
discussion will be reported in section four. Finally a 3D-GPS signal fix is locked, and when the microcontroller
conclusion and future work is presented in section five. sends data to the monitoring server.
III. HARDWARE IMPLEMENTATION B. Microchip's PIC16F877 Microcontroller
The hardware of the system is based on Telit GM862- The Microchip's PIC16F877, 40 pins 8-bit (with 8 Mhz
GPS module and supported with a microcontroller by which clock) processor is used as the system controller [18]. It has
the communication requirements are configured, activated 8K x 14-bit of FLASH program memory, 368 bytes of data
and GPS data are analyzed, as shown in Figure 1. RAM, 256 bytes of data EEPROM and 33 I/O lines. Only 6
lines of the I/O lines have been used. Two of these lines are
for TxD and RxD signals of the USART of the
microcontroller; the baud rate is set at 4800 bps. The third
line is used for driving the ON/OFF pin of GM862. The
remaining 3 lines are used to drive 3 status LEDs as follows:
GSM signal LED: this led will be on when GSM signal is
available; GPS signal LED: will be on when 3D GPS fix is
locked; Data LED: will be on whenever the microcontroller
sends data to the monitoring server.
The Mikrobasic Complier [19] is used to compile the
microcontroller program with BASIC syntax. A simple WIN
PIC Programmer [20] is used to save the hex files into the
microcontroller flash. The program size is 2359 x 14-bit and
uses 188 bytes of the RAM.
C. GM862 Antennas
The GM862-GPS module has two 50 ohm micro-
miniature (MMCX) antenna connectors, one for the GPS
antenna and the other for the GSM antenna. The GM862-
GPS module is not provided with an internal LNA amplifier.
The use of an active antenna is therefore important to
Figure 1. Schematic Circuit achieve a good performance. A VSWR <= 2:1 is
recommended. A Quad-band antenna for the GM862 GSM
A. GM862 GPS/GPRS Module modem with a frequency range of 824 ~ 960 MHz // 1710 ~
The GM862 has 50 pins formed in a MOLEX connector 1990 MHz, and a GPS Antenna 3V Magnetic Mount SMA
[13]. Out of the 50 pins, only 4 of the signal pins are required have been implemented.
(see Figure 1). The GM862 is a GPRS + GPS module with D. Printed Circuit Board Layout and Prototyping
simple AT-based communication protocol. The serial port on
the GM862 is the core of the interface between the module The layout for the printed circuit board has been designed
and external hardware. Two serial ports are available on the using TraxMaker tools. Two PCB layouts were designed in
module: MODEM serial port and GPS serial port (NMEA order to minimize the size of the tracking device and to be
protocol). able to print them using a single face PCB, where the double
The MODEM serial port on the GM862-GPS is a +2.8V side PCB was not available. The two PCB layouts are
UART with all the 7 RS232 signals of which only 2 pins connected using a ribbon cable. Figure 2 present the top side
(TxD and RxD signals) are used. These 2 signals are of PCB design. The prototype of the tracking system is
connected to RxD and TxD signals of the USART of the shown in figure 3.
PIC16F877 microcontroller. The connection is not direct, but
through some level translation (+5V/+2.8V) circuit. Two
cascaded RS232 Converters MAX3232 are used for level
translation. The upper one (in Figure 1) converts +5V to
RS232 and the lower one converts the RS232 to 3V.
The third implemented pin is the ON/OFF pin. The
fourth implemented pin is the STAT_LED pin. This pin is an
Open Collector output where it is possible to directly connect
a LED to show information on the network service
availability and Call status.
The remaining implemented pins are the power supply
pins, +Vcc and GND. The GSM system is made in a way
that the RF transmission is not continuous, it is packed into
bursts and the relative current peaks can be as high as about
2A.Therefore the power supply has to be designed in order to
withstand with these current peaks without big voltage drops. Figure 2: Tracking System PCB Layout
Figure 3: Tracking System PCB Prototype

E. Flow Diagram for PIC Firmware


The firmware has been written using BASIC syntax, and
has been compiled using Mikrobasic complier from
MIKROE Corporation. This compiler is easy, powerful, and
provides many examples and tutorials. It also provides
debugging capabilities for the code. WIN PIC Programmer
software is used to send the hex files to the microcontroller
in order to program the chip and JDM 2 is chosen as the
interface type for the programmer. The flow diagram for the
PIC microcontroller program is shown in figure 4, which
Figure 4. Microcontroller Firmware Flow Diagram
describe the communications between the microcontroller
and the GM862 module. At the initial states the controller
check for the GSM MODEM operation, set the baud rate to
the required baud rate, stop the MODEM flow control, and
then check the GSM network registration.
After creating and activating the GPRS connection, the
microcontroller will request data from GPS, and then analyze
the GPS data before sending them to the server. The
microcontroller will calculate the difference in time and
distance between current GPS data request and the last GPS
data sent. Then it will decide wither to send the data or not
based on comparing the calculated time and distance
difference with the fixed time and distance intervals. The
state of requesting and analyzing the GPS data is described
in more details in figure 5, in that state the controller check
to see which satellite is in view, and check for the
transmission intervals to trigger the time and distance
intervals to see if there is a GPS data is available or not. If
GPS data is ready, it will resume the socket connection, and
then send the data to the server through the GPRS network as Figure 5. Flow Diagram for Requesting and Analyzing GPS Data
shown in figure 5.
F. Local TCP Packet Listener Application REFERENCES
Normally the tracking device waits until the GPS module [1] Wei-Hsun Lee, Shian-Shyong Tseng, Ching-Hung Wang, “Design
is locked on the signal of at least four satellites to calculate and implementation of electronic toll collection system based on
vehicle positioning system techniques”, Computer Communications
the 3D position. The position is defined by three values; journal, Vol 31, pp. 2925–2933, 2008.
longitude, latitude, and altitude, those values are called the
[2] Asvin Goel: Fleet Telematics - Real-Time Management and Planning
coordinates of the tracked position. The tracking device of Commercial Vehicle Operations. Operations Research/Computer
sends those coordinates with other information to a fixed IP Science Interfaces Series, Vol. 40. Springer. 2007.
address at a fixed port for specific server. The transmission [3] Asvin Goel and Volker Gruhn , “Fleet Monitoring System for
of those data is done by establishing a GPRS connection Advanced Tracking of Commercial Vehicles”, Proceedings of the
using the GSM MODEM. The wireless carrier network 2006 IEEE International Conference on Systems, Man, and
provides wireless internet service through the GPRS Cybernetics (SMC 2006), pp. 2517-2522, Taipei, Taiwan, 08.10.2006
- 11.10.2006.
connection.
[4] M. Ahmad, J. Iqbal, et al, “Real time fleet monitoring and security
A TCP packet with all the essential information is sent to system using GSM network”, Proceedings of the 6th WSEAS
the monitoring server. The server has TCP packet listener International Conference on Simulation, Modelling and Optimization,
application installed and running on the server. The packet Lisbon, Portugal pp. 498-503, 2006.
listener opens a local TCP port that specifies for the GPRS [5] Chadil, N.; Russameesawang, A.; Keeratiwintakorn, P, “Real-time
packets and keeps listening until a TCP packet is received. tracking management system using GPS, GPRS and Google earth”,
After receiving the data, the application analyses, the data ECTI-CON 2008, Volume 1, pp. 393 – 396, 2008.
format is checked against the supposed tracker data format, [6] Diane J. Cook, Juan C. Augusto, Vikramaditya R. Jakkula, “Ambient
intelligence: Technologies, applications, and opportunities”,
and then inserted into the database based on its tracker Pervasive and Mobile Computing 5, pp. 277-298, 2009.
device ID. The packet listener is written using VB.net 2005. [7] L. Figueiredo, I. Jesus, J.A.T. Machado, J.R. Ferreira, J.L. Martins de
Carvalho, Towards the Development of Intelligent Transportation
IV. RESULTS AND DISCUSSION Systems. IEEE Intelligent Transportation Systems Proceedings,
Oakland, CA, pp.25-29, 2001.
In order to test the vehicle tracking system, the tracking [8] S. Ni, GPRS Network Planning on the Existing GSM System, IEEE
device prototype was installed in a car by connecting the GLOBECOM, pp 1432-1438, 2000.
power jack with a 12V power from the car battery, then [9] GSMWorld. [Online]. Available:
http://www.gsmworld.com/technology/faq.shtml
placing the GSM and GPS antennas. By looking at the
[10] Wael M El-Medany, “GPRS-Based Remote Sensing and Climate
packet listener which is installed on the monitoring server, Control System Using CMOD CPLD”, International Journal of
two received packets are identified. Computing, ISSN 1727-6209, Vol 8, Issue 2, pp 68-73, 2009.
The vehicle position estimation is excellent as well [11] Garmin. “What is GPS.” [Online]. Available:
improving the precision of the GPS system. Using the http://www.garmin.com/aboutGPS/index.html
website interface, the position can be viewed on the Google [12] US Air Force Fact Sheet: Global Positioning Systems Wing, Los
maps along with car information such as speed and Angles Air Force Base, Available: http://www.losangeles.af.mil/
coordinates. Also, the time interval of 1 minute can be library/ factsheets/factsheet.asp?id=5311
noticed from the UTC time difference. [13] www.telit.co.it/data/uploads_EN/products/1vv0300728_GM862
The prototype has been tested experimentally and the GPS_Hardware_User_Guide_r6.pdf
results are analyzed. The experiments are conducted in [14] Muhammad Ahmad, Javaid Iqbal, Qurat-ul-ain, Sumaira Ghazal,
"Real Time Fleet Monitoring and Security System using GSM
different areas on Kingdom Of Bahrain using Google maps. Network", Proceedings of the 6th WSEAS International Conference
The cost is much lower compared to other tracking systems on Simulation, Modeling and Optimization, Lisbon, Portugal,
in the literatures. Free Google map reduces the cost for the September 22-24, pp. 498-503, 2006.
individual user and also for the small business owner. [15] Aloquili, O, Elbanna, A, Al-Azizi, A, ”Automatic vehicle location
tracking system based on GIS environment”, Software, IET Volume
V. CONCLUSION 3, Issue 4, pp. 255 – 263, 2009.
[16] Hapsari, A.T., E.Y. Syamsudin, and I. Pramana, “Design of Vehicle
In this paper we have presented a GPRS based Position Tracking System Using Short Message Services and its
positioning system with an accurate localization has been implementation on FPGA, . Proceedings of the Design Automation
implemented using PIC16F877 Microchip. The combination Conference, 2005 (ASP-DAC 2005), Asia and South Pacific, Vol. 2,
of the GPS and GPRS provides continuous and real time pp. D19-D20, Shanghai, China, 2005.
tracking. The system provides the ability to track current [17] Deblauwe, N.; Ruppel, P, “Combining GPS and GSM Cell-ID
position of the vehicle or its position in any specific time and positioning for Proactive Location-based Services”, Fourth Annual
International Conference on
date by analyzing the received data from the GPS receiver. Mobile and Ubiquitous Systems: Networking & Services, Page(s):1 –
The system also provides information regarding the vehicle 7, Aug. 2007.
status such as speed, mileage, and driver performance. The [18] http://www.microchip.com
tracking device can be adjusted with reference to the time [19] http://www.mikroe.com/pdf/mikrobasic/mikrobasic_manual.pdf
intervals of data transmission. [20] http://www.qsl.net/dl4yhf/winpicpr.html

View publication stats

You might also like