Professional Documents
Culture Documents
GSM and Gps Based Vehicle Location and Tracking System
GSM and Gps Based Vehicle Location and Tracking System
Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
www.ijera.com 616 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
1.1 Vehicle Tracking System: A vehicle tracking both consumers, who may benefit from the ability to
system combines the installation of an electronic roam and switch carriers without replacing phones,
device in a vehicle, or fleet of vehicles, with purpose- and also to network operators, who can choose
designed computer software at least at one operational equipment from many GSM equipment vendors.
base to enable the owner or a third party to track the
vehicle's location, collecting data in the process from 1.3 GPS Overview: The Global Positioning
System (GPS) is a space-based global navigation
the field and deliver it to the base of operation. satellite system (GNSS) that provides
Modern vehicle tracking systems commonly reliable location and time information in all weather
and at all times and anywhere on or near the Earth
use GPS or GLONASS technology for locating the when and where there is an unobstructed line of sight
vehicle, but other types of automatic vehicle to four or more GPS satellites. It is maintained by
the United States government and is freely accessible
location technology can also be used. Vehicle by anyone with a GPS receiver. The GPS project was
information can be viewed on electronic maps via the started in 1973 to overcome the limitations of previous
navigation systems, integrating ideas from several
Internet or specialized software. predecessors, including a number of classified
engineering design studies from the 1960s. GPS was
created and realized by the U.S. Department of
Vehicle tracking systems are also popular in
Defense (USDOD) and was originally run with
consumer vehicles as a theft prevention and retrieval 24 satellites. It became fully operational in 1994.
device. Police can simply follow the signal emitted by
the tracking system and locate the stolen vehicle.
When used as a security system, a Vehicle Tracking
System may serve as either an addition to or
2. GSM MODEM:
replacement for a traditional Car alarm. Some vehicle
tracking systems make it possible to control vehicle
remotely, including block doors or engine in case of
emergency. The existence of vehicle tracking device
then can be used to reduce the insurance cost.
www.ijera.com 617 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
sends and receives data through a fixed telephone line GSM system. To achieve the basic definition
while a wireless modem sends and receives data of a new system a meeting was held in 1982 under the
through radio waves. The working of GSM modem is auspices of the Conference of European Posts and
based on commands, the commands always start with Telegraphs (CEPT). They formed a study group called
AT (which means ATtention) and finish with a <CR> the Groupe Special Mobile ( GSM ) to study and
character. For example, the dialing command is develop a pan-European public land mobile system.
ATD<number>; ATD3314629080; here the dialing Several basic criteria that the new cellular technology
command ends with semicolon. would have to meet were set down for the new GSM
system to meet. These included: good subjective
The AT commands are given to the GSM
speech quality, low terminal and service cost, support
modem with the help of PC or controller. The GSM
for international roaming, ability to support handheld
modem is serially interfaced with the controller with
terminals, support for range of new services and
the help of MAX 232..
facilities, spectral efficiency, and finally ISDN
a system across national boundaries, and with the European system. However the first indication that the
political situation in Europe lending itself to success of GSM was spreading further a field occurred
international cooperation it was decided to develop a when the Australian network provider, Telstra signed
www.ijera.com 618 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
www.ijera.com 619 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
www.ijera.com 620 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
By this we can position the vehicle in exact [8] Youjing Cui and Shuzhi Sam Ge,”Autonomous
vehicle positioning with GPS in urban canyon
place.
environments”, IEEE TRANSACTIONS ON
ROBOTICS AND AUTOMATION, vol. 19, NO. 1,
5.CONCLUSION AND FUTURE SCOPE pp 15-25, February 2003.
BOOKS REFFERED
www.ijera.com 621 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
www.ijera.com 622 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
delay(65000); delay(65000);
delay(65000); delay(65000);
delay(65000); serial_transmit(" Your vehicle
//cmdwrt_lcd(0x01); */ Stopped at ");
} serial_tx(0x0a);
void gsm_send1() serial_transmit("Current Location:
{ ");
command("AT"); cmdwrt_lcd(0x01);
delay1(); gps();
command("AT+CMGF=1"); serial_tx(0x0a);
delay(65000); delay(650);
delay(65000); serial_tx(0x1A);
//display_lcd("AT+CMGS="); delay(65000);
serial_transmit("AT+CMGS="); delay(65000);
serial_tx('"'); delay(65000);
cmdwrt_lcd(0xC0); delay(65000);
//display_lcd("9940645764"); delay(65000);
serial_transmit("9710362655"); delay(65000); */
serial_tx('"'); }
serial_tx(0x0d);
serial_tx(0x0a); void wait_0x0a()
delay(65000); {
delay(65000); do
//display_lcd("Vehicle Thefted "); {
delay(65000); a=serial_rx();
delay(65000); }while(a!=0x0a);
delay(65000); }
serial_transmit(" Your vehicle void rec_msg()
Stopped at "); {
serial_tx(0x0a); //receving
serial_transmit("Current Location: message//
"); unsigned char i=0;
cmdwrt_lcd(0x01); do
gps();
serial_tx(0x0a); {
delay(650); while(RI==0);
serial_tx(0x1A); temp[i]=SBUF;
delay(65000); i++;
delay(65000); RI=0;
delay(65000); } while(temp[i-
delay(65000); 1]!=0x0A);
delay(65000); }
delay(65000); void check_ok()
/*ommand("AT"); {
delay1(); unsigned char i;
command("AT+CMGF=1"); for(i=0;i<=3;i++)
delay(65000); //receving OK//
delay(65000); {
//display_lcd("AT+CMGS="); while(RI==0);
serial_transmit("AT+CMGS="); temp1[i]=SBUF;
serial_tx('"'); RI=0;
cmdwrt_lcd(0xC0); }
//display_lcd("9940645764"); }
serial_transmit("9710362655"); void command(unsigned char d[])
serial_tx('"'); {
serial_tx(0x0d); serial_transmit(&d[0]);
serial_tx(0x0a); cmdwrt_lcd(0x80);
delay(65000); //display_lcd(&d[0]);
delay(65000); serial_tx(0x0d);
//display_lcd("Vehicle Thefted "); wait_0x0a();
delay(65000); check_ok();
www.ijera.com 623 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
temp1[2]='\0'; relay=0;
delay(65000); gsm_send1();
delay(65000);
cmdwrt_lcd(0xc0); cmdwrt_lcd(0x01);
//display_lcd(&temp1[0]);
} cmdwrt_lcd(0x80);
void delay1()
{ display_lcd("Vehicle Stopped");
delay(65000);delay(65000);delay(65000); }
}
void gsm_read() }
{ void main()
command("AT"); {
delay1(); serial_init();
command("AT+CMGF=1"); lcd_init();
delay1(); P0=0x00;
command("AT+CGSMS=1"); display_lcd("GSM & GPS
delay1(); BASED ");
command("AT+CMGD=1"); cmdwrt_lcd(0xC0);
delay1(); display_lcd("VEHICLE
cmdwrt_lcd(0x01); TRACKING");
cmdwrt_lcd(0x80); motor=1;
display_lcd("Waiting for Msg"); delay(65000);
for(j=0;j<=15;j++) delay(65000);
{ delay(65000);
while(RI==0); delay(65000);
// while(1)
receving message no// {
m[j]=SBUF; if(rf==0)
RI=0; {
}
delay1(); cmdwrt_lcd(0x01);
cmdwrt_lcd(0xC0); display_lcd("
display_lcd(&m[0]); VEHICLE THEFTED");
delay1(); gsm_send();
cmdwrt_lcd(0x01); relay=1;
cmdwrt_lcd(0x80); gsm_read();
serial_transmit("AT+CMGR=1"); while(rf==0);
display_lcd("AT+CMGR=1"); }
serial_tx(0x0d); }
wait_0x0a(); }
wait_0x0a(); LCD CODE
wait_0x0a();
rec_msg(); sbit rs = P3^5;
delay1();
temp[4]='\0'; sbit rw = P3^6;
cmdwrt_lcd(0xc0);
display_lcd(&temp[0]); sbit en = P3^7;
delay1();
delay1(); void delay(unsigned int dela)
if(temp[0]=='S'&& {
temp[1]=='t'&&temp[2]=='o'&&temp[3]=='p') unsigned int i;
{ for(i=0;i<dela;i++);
motor=0; }
cmdwrt_lcd(0x01); void cmdwrt_lcd(unsigned char cmd)
{
cmdwrt_lcd(0x80); P1 = cmd;
rs = 0;
display_lcd("Vehicle Stopped");
www.ijera.com 624 | P a g e
Baburao Kodavati, V.K.Raju, S.Srinivasa Rao, A.V.Prabu, T.Appa Rao,
Dr.Y.V.Narayana/ International Journal of Engineering Research and Applications
(IJERA) ISSN: 2248-9622 www.ijera.com
Vol. 1, Issue 3, pp.616-625
www.ijera.com 625 | P a g e