source code for vehicle tracking system in android
#1

jbjhb
lknlknjkhbjhgljhj ygkujgub ugu guy iuyg uiug uynm lkjty;ohorhyoiewjfp9wghgiwesufguyewgfuhsgiuyfgrushvoiv8s7ghkfewsjofi rsgfusisnegs w8egvusung eeftgirusnvozidhvsgzd vsfigvu8ysbdzn vrsgvuhsiudzf c7crsydbnb ov9shdi7tyvgb nfdoisuvg7tsyvdbnso;viufos7tgchs bu
Reply
#2

source code for vehicle tracking system in android

Abstract

The Project works with the latest GSM and GPS Technology. The Projects Consists of GPS and GSM Modem. The Project works with the latest GSM and GPS Technology. This Project consists of GPS and GSM Modem “Vehicle Tracking Service“ means an Electronics device that reports its location by using Global Positioning system (GPS), data receive from GPS satellites. This device is installed in car/vehicle with antenna and tracking the vehicle.GPS controlled and handled by computer system. The device consists of a micro-controller interfaced with a GPS and a GPRS module. The GPS module receives the information of the vehicle and passes it to the controller. The controller extracts the required information and makes a packet out of it that consists of geographical data and other information. And latitude and longitude information sent as an SMS periodically.

Description

GPS Module is attached to the vehicle, which is going to be traced. Using this Project we have to send the position of GPS Module (vehicle) to the control unit. The GPS receiver receives signal from the satellite. This signal shows the Latitudes and Longitudes of the GPS receiver. This signal is given to the micro controller. Output from Micro controller is given to the GSM module. GSM module, which is kept at the receiver side, will read this message. This message contains longitude and latitude and receiving time and date. Using this information we can easily find the position of GPS receiver, or simply the position of the vehicle. GPS receiver, which is fixed in transport, will collect the NMEA data from GPS Satellite, which incorporates Latitude, Longitude, time of receiving data, and date. ARM processor will receive these data through serial communication from GPS receiver.

These data are used to identify the position of that transport on the earth. Collected information is given to ARM processor and will be displayed on display board of that vehicle. So ARM processor will send the exact position of that vehicle to GSM module.

This GSM module will send this information to another GSM module, which is kept at the receiver side, where the position of the Transport is needed to be displayed. This information will be sent to ARM processor, which is kept at the receiver side, and position will be displayed at the required place.

Hardware requirements

ARM 7 (LPC 2148) Microcontroller (ARM7 Evaluation Board)Power Supply (9V Adaptor, 5V Adaptor)GSM module
-GPs module
Software requirements

Programming Language: Embedded CKEIL U Vision IDEFlash magicOrcad 16.3
About GSM

GSM has been the backbone of the phenomenal success in mobile telecom over the last decade. Now, at the dawn of the era of true broadband services, GSM continues to evolve to meet new demands. GSM is an open, non-proprietary system that is constantly evolving. One of its great strengths is the international roaming capability. This gives consumers seamless and same standardized same number contact ability in more than 212 countries. This has been a vital driver in growth, with around 300 million GSM subscribers currently in Europe and Asia. In the Americas, today's 7 million subscribers are set to grow rapidly, with market potential of 500 million in population, due to the introduction of GSM 800, which allows operators using the 800 MHz band to have access to GSM technology too. GSM satellite roaming has extended service access to areas where terrestrial coverage is not available. GSM differs from first generation wireless systems in that it uses digital technology and time division multiple access transmission methods. Voice is digitally encoded via a unique encoder, which emulates the characteristics of human speech. This method of transmission permits a very efficient data rate/information content ratio.

Cellular mobile communication is based on the concept of frequency reuse. That is, the limited spectrum allocated to the service is partitioned into, for example, N non-overlapping channel sets, which are then assigned in a regular repeated pattern to a hexagonal cell grid. The hexagon is just a convenient idealization that approximates the shape of a circle (the constant signal level contour from an omni directional antenna placed at the center) but forms a grid with no gaps or overlaps. The choice of N is dependent on many tradeoffs involving the local propagation environment, traffic distribution, and costs. The propagation environment determines the interference received from neighboring co-channel cells, which in turn governs the reuse distance, that is, the distance allowed between co-channel cells (cells using the same set of frequency channels).

The cell size determination is usually based on the local traffic distribution and demand. The more the concentration of traffic demand in the area, the smaller the cell has to be sized in order to avail the frequency set to a smaller number of roaming subscribers and thus limit the call blocking probability within the cell. On the other hand, the smaller the cell is sized, the more equipment will be needed in the system as each cell requires the necessary transceiver and switching equipment, known as the base station subsystem (BSS), through which the mobile users access the network over radio links. The degree to which the allocated frequency spectrum is reused over the cellular service area, however, determines the spectrum efficiency in cellular systems. That means the smaller the cell size, and the smaller the number of cells in the reuse geometry, the higher will be the spectrum usage efficiency.

Since digital modulation systems can operate with a smaller signal to noise (i.e., signal to interference) ratio for the same service quality, they, in one respect, would allow smaller reuse distance and thus provide higher spectrum efficiency. This is one advantage the digital cellular provides over the older analogue cellular radio communication systems. It is worth mentioning that the digital systems have commonly used sectored cells with 120-degree or smaller directional antennas to further lower the effective reuse distance. This allows a smaller number of cells in the reuse pattern and makes a larger fraction of the total frequency spectrum available within each cell. Currently, research is being done on implementing other enhancements such as the use of dynamic channel assignment strategies for raising the spectrum efficiency in certain cases, such as high uneven traffic distribution over cell

GPS

The GPS is a system of positioning by satellite to give an accurate position anywhere on the planet within a hundred meters, by day or night. The visible part is a small electronic case, which indicates precisely -and in a split second- the exact place, height, speed and time.

About GPS

The Global Positioning System (GPS) is a network of 24 Navistar satellite orbiting Earth at 11,000 miles. Originally established by the U.S. Department of Defence (DOD) at a cost of about US$13 billion, access to GPS is free to all users, including those in other countries. The system’s positioning and timing data are used for a variety of applications, including air, land and sea navigation, vehicle and vessel tracking, surveying and mapping, and asset and natural resource management. With military accuracy restrictions partially lifted in March 1996 and fully lifted in May 2000, GPS can now pinpoint the location of objects as small as a penny anywhere on the earth’s surface.

Uses of GPS technology

GPS technology has matured into a resource that goes far beyond its original design goals. These days people from a plethora of professions are using GPS in ways that make their work more productive, safer, and sometimes even easier. There are five main uses of GPS today:

Location- determining a basic position.Navigation - getting from one location to another.Tracking - monitoring the movement of people and things.Mapping- creating maps.Timing - providing precise timing.
Scope

The aims of this project is to design and implement a GPS based Land Surveying system, and find out time, latitude, and longitude of the boundary points and thereby take the survey of the land.

The GPS Land Surveying System includes 24 satellites that provide location awareness by transmitting longitude, latitude, altitude, and time information to GPS receiving and processing devices worldwide. Here the system will track the position of boundary points of a particular land.The micro controller circuitry receive and process the data coming from the GPS receiver. The micro controller will send the needed information to plot the graph of the land to the PC

Source code



#include <LPC214x.H>
#include <string.h>
#define CR 0x0D
#include <stdio.h>

unsigned char msg[] = {"VEHICLE LOCATION"}; //msg
unsigned char msg1[]= {"USING GSM & GPS"}; //msg1

void Serial_Init(void);
int putchar (int ch);
int getchar (void);
char sendchar1 (char ch);
char getkey1(char ch);
void lcd_initialize(void);
void LCD_puts(unsigned char *, unsigned char);
void lcd_cmd(unsigned char);
void lcd_data(unsigned char);
void delay(unsigned int);
void lcd_display(void);

void delay1(unsigned int );
void Serial_Init1(void);
void send_sms();
void gets_USART(unsigned char *);
void Get_GPS_USART0(unsigned char *);
void send_sms();
void delay1(unsigned int);
const unsigned char cmd[4] = {0x38,0x0c,0x06,0x01}; //lcd commands
unsigned long int DATA;
unsigned char Chr,i=0,Str_GPS[100],*ptr,LAT[]="LAT:",LAN[]="LAN:";
unsigned char Disp[]="*** UART0 Demo ***\n\n\rType Characters to be echoed!!\r";
unsigned char Disp1[]="AT+CMGF=1\r";
unsigned char Disp2[]="AT+CMGS=\"9600292363\"\r";
unsigned char Disp3[]="hi GSM modem";
unsigned char Disp4[]="\032";
void main()
{
delay(10);
IODIR0 = 0XFFFFFFFF; //PORT [P0.16--P0.31] output
IODIR1 = 0X00Ff0000; //PORT [P1.20--P1.23] output
delay(10);
lcd_initialize(); //Initialize LCD
delay(10);
VPBDIV = 0x02;
Serial_Init();
delay(15);
lcd_display();
delay(15);
while(1)
{
Get_GPS_USART0(Str_GPS);
send_sms();
lcd_cmd(0x80);
LCD_puts(LAT,4);
LCD_puts(ptr,11);
ptr = ptr+13;
lcd_cmd(0xC0);
LCD_puts(LAN,4);
LCD_puts(ptr,11);
}
}
void serial_isr (void) __irq //UART0 Interrupt
{

delay(250); //printf("AT+CNMI=\"2,2,0,0,0\"%c",13);
if(printf("AT+CNMI=\"2,2,0,0,0\"%c",13) =='2')
{
delay(250);
IOCLR1 |= 0xFF0080;
delay(250);

}
VICVectAddr = 0;
}
void Serial_Init(void)
{
PINSEL0 |= 0x00050000; //Configure TxD1 and RxD1 @ P0.8 & P0.9
U1LCR = 0x83;
U1DLL = 195;
U1LCR = 0x03;
}



//----------------------------------
// LCD Initialize
//----------------------------------
void lcd_initialize(void)
{
int i;
for(i=0;i<4;i++)
{
IOCLR0 = 0x00FF0000;
lcd_cmd(cmd[i]);
delay(15);
}
}

//----------------------------------
// LCD Command Send
//----------------------------------
void lcd_cmd(unsigned char data)
{
IOPIN0 = data << 16;
IOCLR1 |= 0x100000; //RS
IOCLR1 |= 0x200000; //RW
IOSET1 |= 0x400000; //EN
delay(15);
IOCLR1 |= 0x400000; //EN
}
//----------------------------------
// LCD Data Send
//----------------------------------
void lcd_data(unsigned char data)
{
IOPIN0 = data << 16;
IOSET1 |= 0x100000; //RS
IOCLR1 |= 0x200000; //RW
IOSET1 |= 0x400000; //EN
delay(15);
IOCLR1 |= 0x400000; //EN
}

//----------------------------------
// LCD Display Msg
//----------------------------------
void lcd_display(void)
{
char i;
/* First line message */
IOCLR0 = 0x00FF0000;
lcd_cmd(0x80);
delay(15);
i=0;
while(msg[i]!='\0')
{
IOCLR0 = 0x00FF0000;
lcd_data(msg[i]);
i++;
delay(15);
}
delay(15);
/* sECOND line message */
IOCLR0 = 0x00FF0000;
lcd_cmd(0xC0);
delay(15);
i=0;
while(msg1[i]!='\0')
{
IOCLR0 = 0x00FF0000;
lcd_data(msg1[i]);
i++;
delay(15);
}
delay(15);
}
void LCD_puts(unsigned char *string, unsigned char n)
{
while((*string) && ((n--)>0))
lcd_data(*string++);
}


void gets_USART0(unsigned char *string) // Receive a batch of characters via USART1, without interrupt
{ // The String Must Ended with "Carriage return" ie "Enter key"
unsigned char i=0,J=0;
do
{
*(string+i)= getchar();
J = *(string+i);
i++;
}while((J!='\n') && (J!='\r'));
i++;
*(string+i) = '\0';
}
void Get_GPS_USART0(unsigned char *GPS_Str)
{
gets_USART0(GPS_Str);
while(!(strstr(GPS_Str,"GPRMC"))) gets_USART0(GPS_Str);
ptr = strstr(GPS_Str,"GPRMC")+19;
}
void delay(unsigned int Ms)
{
int delay_cnst;
while(Ms>0)
{
Ms--;
for(delay_cnst = 0;delay_cnst <220;delay_cnst++);
}
}

void delay1(unsigned int n)
{
int i,j;
for(i=0;i<n;i++)
{
for(j=0;j<0x2700;j++)
{;}
}
}
void Serial_Init1(void)
{
PINSEL0 |= 0x00050005; /* Enable RxD0 and TxD0 */
U0LCR = 0x00000083; /* 8 bits, no Parity, 1 Stop bit */
U0DLL = 0x000000C3; /* 9600 Baud Rate @ 30MHz VPB Clock */
U0LCR = 0x00000003; /* DLAB = 0 */
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<< Putchar Function >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
void send_sms()
{
unsigned char j=0,k=0,l=0,m=0;
VPBDIV = 0x02;
Serial_Init1();
j=0;
delay1(250);
U0THR = '\n';
while(Disp1[j]!= '\0') {
sendchar1(Disp1[j++]);
delay1(250);
}
U0THR = '\n';
k=0;
delay1(250);
U0THR = '\n';
while(Disp2[k]!= '\0') {
sendchar1(Disp2[k++]);
delay1(250);
}
U0THR = '\n';

// l=0;
delay1(250);
U0THR = '\n';
while(*ptr!= '\0') {
sendchar1(*ptr++);
delay1(200);
}
/// U0THR = '\n';
// U0THR = '\n';

i=0;
delay1(200);
//U0THR = '\n';
while(Disp4[i]!= '\0') {
sendchar1(Disp4[i++]);
delay1(250);
}
// U0THR = '\n';
}

/* implementation of putchar (also used by printf function to output data) */
char sendchar1 (char ch) { /* Write character to Serial Port */
if (ch == '\n')
{
while (!(U0LSR & 0x20));
delay1(50);
U0THR = CR; /* output CR */
delay1(50);
}
while (!(U0LSR & 0x20));
delay1(50);
return (U0THR = ch);
delay1(50);
}



Conclusion

Vehicle location using GSM / GPS Home Automation is undeniably a resource which can make a home environment automated. People can control their electrical devices via these Home Automation devices and set up the controlling actions in the computer. We think this product have high potential for marketing in the future.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: pdf of vehicle tracking system using android phone, vehicle tracking system source code java, android based vehicle tracking system projects, vehicle tracking full project in android, matlab code for vehicle tracking, android vehicle tracking system code, object tracking android source code**checking obc certificate,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  simple java rmi chat application source code 2 19,194 20-07-2018, 12:08 PM
Last Post: Guest
  authentication schemes for session passwords using color and images project source code 2 2,237 03-02-2018, 09:35 AM
Last Post: Nischithnash
  free download source code for online movie ticket booking in java 2 18,704 15-08-2017, 03:21 PM
Last Post: Morshed
  FABRICATION OF A WIND POWERED VEHICLE help with a project hunain zafar 4 2,174 02-08-2017, 12:20 PM
Last Post: jaseela123d
  source code for rsa encryption and decryption in java 2 8,015 29-05-2017, 04:21 PM
Last Post: Meghna Jadhav
  download liver tumor ct scan image in matlab with source code 4 8,064 21-05-2017, 09:54 PM
Last Post: abdulrahmanmashaal
  mobile tracking in android ppt 2 1,017 17-05-2017, 08:51 PM
Last Post: SANYAH
  online cab booking source code in asp net 3 7,940 11-05-2017, 10:39 AM
Last Post: jaseela123d
Thumbs Up online catering management system on php with report and source code and ppt 4 8,800 29-04-2017, 10:59 AM
Last Post: jaseela123d
  source code for task scheduling using genetic algorithm using java 2 8,526 11-04-2017, 08:31 PM
Last Post: Guest

Forum Jump: