Chapters-Project Report Final
Chapters-Project Report Final
Department of Computer Science and Engineering MBM Engineering College, Faculty of Engineering, Jai Narain Vyas University, Jodhpur (Rajasthan) 2012-13
Page 1 of 59
Vehicle Tracking System
CERTIFICATE
This is to certify that report entitled Vehicle Tracking System using GPS and GSM modem submitted to Department of Computer Science and Engineering, MBM Engineering College, JNV University in partial fulfillment of the requirements for the award of the degree of BE. in Information Technology is the bonafide record of the work done by group members Harsh Vardhan Pundhir(IT), Kapil Bhadada(IT) under my supervision and guidance.
Page 2 of 59
Vehicle Tracking System
DECLARATION
Where by declare that this project titled Vehicle tracking System using GPS and GSM modem is a record of original work done by me under the supervision and guidance of Sh. Alok Singh Gehlot. We further certify that this
Degree/Diploma/Associate ship/Fellowship or similar work has not formed the basis for the award of the Degree work to any candidate of any university and no part of this report is reproduced as it is from any other source without seeking permission.
Page 3 of 59
Vehicle Tracking System
ACKNOWLEDGEMENT
Acknowledgement is not mere formality as its the usual notion. It is the only way through which we can connote our deep and profound gratitude to the persons who directly or indirectly contributed to the work. First and foremost, I wish to acknowledge the encouragement received from Dr.K.R.Chowdhary (HOD, Computer Science & Engineering Department, MBM Engineering College, Jodhpur) for initiating my interest in project for practical knowledge. I earnestly acknowledge my profound sense of gratitude to Sh. Alok Singh Gehlot (Assistant Professor).Under whose supervision I have been able to complete the project. His mastery and work helped me in covering out this work smoothly. I am also grateful to staff of department who have helped me to improve practical knowledge, kind support and information. Finally, I wish to add that I am incepted to God & my Parents, family for everything good that has happened to me.
Page 4 of 59
Vehicle Tracking System
1.2 OBJECTIVE The main aim of the project is to design and develop an advanced vehicle tracking system in the real time environment. When the request by user is sent to the number at the modem, the system automatically sends a return reply to that mobile indicating the position of the vehicle. The user can send a STATUS message from his cellphone and as soon as the GSM module gets the message, it will check for the users authentication and if found to be valid, it will immediately send the details of the locations like the latitude and the longitude using GPS module. So the user can get to know the exact location of the vehicle.
Developing Automatic Vehicle Location system using GPS for positioning information and GSM/GPRS or information transmission with following features.
Page 5 of 59
Vehicle Tracking System
Acquisition of vehicles location information (latitude longitude) after specified time interval. Transmission of vehicles location and other information (including ignition status, door(open/close status) to the monitoring station/Tracking server after specified interval of time. Developing a web based software to display all transmitted information to end user along with displaying location of vehicle on a map. The objective of the project is to build an additional feature to the present security system that will warn the owner of the vehicle by sending SMS when there has been an intrusion into the vehicle. To provide a solution to avoid car stolen in the lower cost than advance security car system. (GPS)
1.3 Working of VTS In this project ATmega128 microcontroller is used for interfacing to various hardware peripherals. The current design is an embedded application which will continuously monitor the position of vehicle and report the status of the Vehicle on demand . For doing so an ATmega128 microcontroller is interfaced serially to a GSM Modem and GPS Receiver. Intially, the GPS module will continuously receive the data i.e. the latitude and longitude indicating the position of the vehicle from the satellite and stores the latitude and longitudinal positions in microcontrollers buffer. The GPS modem gives many parameters as the output, but only the NMEA data coming out is read and given to microcontroller through serial interface. After processing of the data provided by GPS receiver, microcontroller transmits this information to remote location using GSM modem. Microcontroller controls the operation of GSM modem through serial interface using AT commands. When the request by user is sent to the number at the modem, it gets activated by receiving our message. At the same instant the GPS gets deactivated with the help of controller. . As soon as the GSM gets activated it takes the last received latitude and longitude positions from the buffer and sends a message to the particular number which is executed in the program. After the message has been sent to the user the GSM gets deactivated and similarly the GPS gets activated. This is a cyclic process .An EEPROM is used to store the mobile number. The hardware interfaces to microcontroller are GSM modem and GPS Receiver. The design uses RS-232 protocol for serial communication between the modems and the microcontroller. A serial driver IC is used for converting TTL voltage levels to RS-232 voltage levels. .
Page 6 of 59
Vehicle Tracking System
Page 7 of 59
Vehicle Tracking System
Page 8 of 59
Vehicle Tracking System
Page 9 of 59
Vehicle Tracking System
Page 10 of 59
Vehicle Tracking System
The project is vehicle positioning and navigation system we can locate the vehicle around the globe with ATmega128 micro controller, GPS receiver, GSM modem, MAX 232 and EEPROM. The code is written in the internal memory of Microcontroller i.e. ROM. With help of instruction set it processes the instructions and it acts as interface between GSM and GPS with help of serial communication. GPS always transmits the data and GSM transmits and receive the data. GPS pin TX is connected to microcontroller RX pin via MAX232 connector. GSM pins TX and RX are connected to microcontroller serial ports alternatively, that is TX to RX and RX to TX. Microcontroller communicates with the help of serial communication. First it takes the data from the GPS receiver and then sends the information to the owner in the form of SMS with help of GSM modem. GPS receiver works on 9600 baud rate is used to receive the data from space Segment (from Satellites), the GPS values of different satellites are sent to microcontroller ATmega128, where these are processed and forwarded to GSM. At the time of processing GPS receives only $GPRMC values only. From these values microcontroller takes only latitude and longitude values excluding time, altitude, name of the satellite, authentication etc. E.g. LAT: 1728:2470 LOG: 7843.3089 GSM modem with a baud rate 57600. GSM is a Global system for mobile communication in this project it acts as a SMS Receiver and SMS sender. EEPROM is an Electrically Erasable read only memory which stores is used to store the mobile number. The power is supplied to components like GSM, GPS and Micro control circuitry using a 12V/3.2A battery .GSM requires 12v,GPS and microcontroller requires 5v .with the help of regulators we regulate the power between three components. Crystal oscillator is used in the circuit to initiate the microcontroller with the frequency of 10Mhz. . 1.7 HARDWARE REQUIREMENTS
GPS module 634R GSM modem SIMCOM300 ATmega128 Microcontroller MAX232 RS232
Page 11 of 59
Vehicle Tracking System
Page 12 of 59
Vehicle Tracking System
Page 13 of 59
Vehicle Tracking System
Micro-Controller
Page 14 of 58
Vehicle Tracking System
Micro-Controller
Micro Controller (c): A microcontroller is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of OTP ROM is also often included on chip, as well as a typically small amount of RAM. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications. A microcontroller is a general purpose device, but that is meant to read data, perform limited calculations on that data and control its environment based on those calculations. The prime use of a microcontroller is to control the operation of a machine using a fixed program that is stored in ROM and that does not change over the lifetime of the system.
PROM A programmable read-only memory (PROM) or field programmable read-only memory (FPROM) or one-time programmable non-volatile memory (OTP NVM) is a form of digital memory where the setting of each bit is locked by a fuse or antifuse. Such PROMs are used to store programs permanently. The key difference from a strict ROM is that the programming is applied after the device is constructed.
Page 15 of 58
Vehicle Tracking System
Micro-Controller
These types of memories are frequently seen in video game consoles, mobile phones, radio-frequency identification (RFID) tags, implantable medical devices, high-definition multimedia interfaces (HDMI) and in many other consumer and automotive electronics products.
2.3 Features
The ATmega128 provides the following features: 128Kbytes of In-System Programmable Flash with Read-While-Write capabilities, 4Kbytes EEPROM, 4Kbytes SRAM, 53 general purpose I/O lines, 32 general purpose working registers, Real Time Counter (RTC), 2 USARTs, a byte oriented Two-wire Serial Interface, an 8- channel, 10bit ADC with optional differential input stage with programmable gain, programmable Watchdog Timer with Internal Oscillator, an SPI serial port, IEEE std. 1149.1 compliant
Page 16 of 58
Vehicle Tracking System
Micro-Controller
JTAG test interface, also used for accessing the On-chip Debug system and programming and six software selectable power saving modes.
High-performance, Low-power AtmelAVR8-bit Microcontroller Advanced RISC Architecture 32 x 8 General Purpose Working Registers + Peripheral Control Registers High Endurance Non-volatile Memory segments 128Kbytes of In-System Self-programmable Flash program memory 4Kbytes EEPROM 4Kbytes Internal SRAM
Optional Boot Code Section with Independent Lock Bits In-System Programming by On-chip Boot Program True Read-While-Write Operation Up to 64Kbytes Optional External Memory Space Programming of Flash, EEPROM, Fuses and Lock Bits through the JTAG Interface
Page 17 of 58
Vehicle Tracking System
Micro-Controller
Micro-Controller
5. XTAL1:- Input to the inverting Oscillator amplifier and input to the internal clock operating circuit. 6. XTAL2:- Output from the inverting Oscillator amplifier. 7. AVCC:-AVCC is the supply voltage pin for Port F and the A/D Converter. It should be externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a low-pass filter. 8. AREF:-AREF is the analog reference pin for the A/D Converter. 9. PEN:- PEN is a programming enable pin for the SPI Serial Programming mode, and is internally pulled high . By holding this pin low during a Power-on Reset, the device will enter the SPI Serial Programming mode. PEN has no function during normal operation.
Page 19 of 58
Vehicle Tracking System
Micro-Controller
2.6.3 RAM:- Data memory used by program during its execution. In ram are stored all inter results or temporary data during run-time.
2.6.4 INTERRUPT SYSTEM:An interrupt is an external or internal event that suspends the operation of microcontroller to inform it that a device needs its service. In interrupt method, whenever any device needs its service, the device notifies the micro controller by sending it an interrupt signal. Upon receiving an interrupt signal, the micro controller interrupts whatever it is doing and serves the device. The program associated with interrupt is called as interrupt service subroutine (ISR).Main advantage with interrupts is that the micro controller can serve many devices.
2.6.5 ALU Arithmetic Logic Unit:The high-performance AVR ALU operates in direct connection with all the 32 general purpose working registers. Within a single clock cycle, arithmetic operations between general purpose registers or between a register and an immediate are executed. The ALU operations are divided into three main categories arithmetic, logical, and bitfunctions.
2.6.6 Status Register:The Status Register contains information about the result of the most recently executed arithmetic instruction. This information can be used for altering program flow in order to perform conditional operations. Note that the Status Register is updated after all ALU operations, as specified in the Instruction Set Reference. This will in many cases remove the need for using the dedicated compare instructions, resulting in faster and more compact code. The status register is not automatically stored when entering an interrupt routine and restored when returning from an interrupt.
Page 20 of 58
Vehicle Tracking System
Micro-Controller
2.6.7 General Purpose Register File:The Register file is optimized for the AVR Enhanced RISC instruction set. In order to achieve the required performance and flexibility, the following input/output schemes are supported by the Register file: One 8-bit output operand and one 8-bit result input Two 8-bit output operands and one 8-bit result input Two 8-bit output operands and one 16-bit result input One 16-bit output operand and one 16-bit result input 2.6.8 Stack Pointer:The Stack is mainly used for storing temporary data, for storing local variables and for storing return addresses after interrupts and subroutine calls. The Stack Pointer Register always points to the top of the Stack. Note that the Stack is implemented as growing from higher memory locations to lower memory locations. This implies that a Stack PUSH command decreases the Stack Pointer. The Stack Pointer points to the data SRAM stack area where the Subroutine and Interrupt Stacks are located. This Stack space in the data SRAM must be defined by the program before any subroutine calls are executed or interrupts are enabled.
2.6.9 Clock generator oscillator:Oscillator circuit is used for providing a microcontroller with a clock. Clock is needed so that microcontroller could execute a program or program instructions.
2.6.10 Reset:Reset is used for putting the microcontroller into a 'known' condition. That practically means that microcontroller can behave rather inaccurately under certain undesirable conditions. In order to continue its proper functioning it has to be reset, meaning all registers would be placed in a starting position. Reset is not only used when microcontroller doesn't behave the way we want it to, but can also be used when trying out a device as an interrupt in program execution, or to get a microcontroller ready when loading a program.
Page 21 of 58
Vehicle Tracking System
Micro-Controller
2.6.12 Ports:Term "port" refers to a group of pins on a microcontroller which can be accessed simultaneously, or on which we can set the desired combination of zeros and ones, or read from them an existing status. Physically, port is a register inside a microcontroller which is connected by wires to the pins of a microcontroller. Ports represent physical connection of Central Processing Unit with an outside world. Microcontroller uses them in order to monitor or control other components or devices. 2.6.13 Reset and Interrupt Handling:Interrupts are a mechanism of a microcontroller which enables it to respond to some events at the moment they occur, regardless of what microcontroller is doing at the time. This is a very important part, because it provides connection between a microcontroller and environment which surrounds it. Generally, each interrupt changes the program flow, interrupts it and after executing an interrupt subprogram (interrupt routine) it continues from that same point on. The AVR provides several different interrupt sources. These interrupts and the separate reset vector each have a separate program vector in the program memory space. All interrupts are assigned individual enable bits which must be written logic one together with the Global Interrupt Enable bit in the Status Register in order to enable the interrupt. The lowest addresses in the program memory space are by default defined as the Reset and Interrupt vectors. The lower the address the higher is the priority level. RESET has the highest priority, When an interrupt occurs, the Global Interrupt Enable I-bit is cleared and all interrupts are disabled.
2.6.14 Pull-up:The pull-ups on the AD7:0 ports may be activated if the corresponding Port register is written to one. To reduce power consumption in sleep mode, it is recommended to disable the pull-ups by writing the Port register to zero before entering sleep.
Page 22 of 58
Vehicle Tracking System
Micro-Controller
2.6.15 AVR ATmega128 Memories:This section describes the different memories in the Atmel AVR ATmega128. The AVR architecture has two main memory spaces, the Data Memory and the Program Memory space. In addition, the ATmega128 features an EEPROM Memory for data storage. All three memory spaces are linear and regular.
In-System Reprogrammable Flash Program Memory:The ATmega128 contains 128Kbytes On-chip In-System Reprogrammable Flash memory for program storage. Since all AVR instructions are 16 or 32 bits wide, the Flash is organized as 64K x 16. For software security, the Flash Program memory space is divided into two sections, Boot Program section and Application Program section.
SRAM Data Memory:The Atmel AVR ATmega128 supports two different configurations for the SRAM data memory
Page 23 of 58
Vehicle Tracking System
Micro-Controller
EEPROM Data Memory:The Atmel AVRATmega128 contains 4Kbytes of data EEPROM memory. It is organized as a separate data space, in which single bytes can be read and written
External Memory Interface:With all the features the External Memory Interface provides, it is well suited to operate as an interface to memory devices such as External SRAM and Flash, and peripherals such as LCD display, A/D, and D/A.
Program memory:Program memory has been carried out in FLASH technology which makes it possible to program a microcontroller many times before it's installed into a device, and even after its installment if eventual changes in program or process parameters should occur.
Data memory:Data memory consists of EEPROM and RAM memories. EEPROM memory consists of 256 eight bit locations whose contents is not lost during loosing of power supply. EEPROM is not directly addressable, but is accessed indirectly through EEADR and EEDATA registers. As EEPROM memory usually serves for storing important parameters (for example, of a given temperature in temperature regulators) , there is a strict procedure for writing in EEPROM which must be followed in order to avoid accidental writing. Locations of RAM memory are also called GPR registers which is an abbreviation for General Purpose Registers. GPR registers can be accessed regardless of which bank is selected at the moment
2.7 USART
Page 24 of 58
Vehicle Tracking System
Micro-Controller
The Universal Synchronous and Asynchronous serial Receiver and Transmitter (USART) is a highly flexible serial communication device. The main features are: Full Duplex Operation (Independent Serial Receive and Transmit Registers) Asynchronous or Synchronous Operation Master or Slave Clocked Synchronous Operation High Resolution Baud Rate Generator Supports Serial Frames with 5, 6, 7, 8, or 9 Data Bits and 1 or 2 Stop Bits Odd or Even Parity Generation and Parity Check Supported by Hardware Data OverRun Detection Framing Error Detection Noise Filtering Includes False Start Bit Detection and Digital Low Pass Filter Three Separate Interrupts on TX Complete, TX Data Register Empty, and RX Complete Multi-processor Communication Mode Double Speed Asynchronous Communication Mode
2.7.1 Dual USART:The ATmega128 has two USARTs, USART0 and USART1. The functionality for both USARTs is described below. USART0 and USART1 have different I/O registers.in ATmega128 compatibility mode, USART1 is not available, neither is the UBRR0H or UCRS0C Registers. This means that in ATmega103 compatibility mode, the ATmega128 supports asynchronous operation of USART0 only. The three main parts of the USART: Clock Generator, Transmitter, and Receiver. Control registers are shared by all units. The clock generation logic consists of synchronization logic for external clock input used by synchronous slave operation, and the baud rate generator. The XCK (Transfer Clock) pin is only used by Synchronous Transfer mode. The Transmitter consists of a single write buffer, a serial Shift Register, parity generator and control logic for handling different serial frame formats. The write buffer allows a continuous transfer of data without any delay between frames. The Receiver is the most complex part of the USART module due to its clock and data recovery units. The recovery units are used for asynchronous data reception. In addition to the recovery units, the receiver includes a parity checker, control logic, a Shift Register and a two level receive buffer (UDR). The receiver supports the same frame formats as the Transmitter, and can detect frame error, data overrun and parity errors.
Page 25 of 58
Vehicle Tracking System
Micro-Controller
2.8 MAX232:
Max 232 is a communications device used mainly for serial commands to and from a flash ROM. The MAX232 is an integrated circuit that converts signals from an RSPage 26 of 58
Vehicle Tracking System
Micro-Controller
232serial port to signals suitable for use in TTL compatible digital logic circuits. TheMAX232 is a dual driver/receiver and typically converts the RX, TX, CTS and RTS signals. The drivers provide RS-232 voltage level outputs (approx. 7.5 V) from a single +5 V supply via on-chip charge pumps and external capacitors. This makes it useful for implementing RS-232 in devices that otherwise do not need any voltages outside the 0V to +5 V range, as power supply design does not need to be made more complicated just for driving the RS-232 in this case. The receivers reduce RS-232 inputs (which may be as high as 25 V), to standard 5 VTTL levels. These receivers have a typical threshold of 1.3 V, and a typical hysteresis of 0.5 V. The later MAX232A is backwards compatible with the original MAX232 but may operate at higher baud rates and can use smaller external capacitors 0.1 F in place of the 1.0 F capacitors used with the original device. The newer MAX3232 is also backwards compatible, but operates at a broader voltage range, from 3 to 5.5V.
Micro-Controller
modem, as well as industrial instrumentation. Because of improvements in line drivers and cables, applications often increase the performance of RS-232 beyond the distance and speed listed in the standard. RS-232 is limited to point-to-point connections between PC serial ports and devices. RS-232 hardware can be used for serial communication up to distances of 50 feet.
Page 28 of 58
Vehicle Tracking System
GSM
Improved spectrum efficiency. International roaming. Low-cost mobile sets and base stations (BS) High-quality speech Compatibility with Integrated Services Digital Network (ISDN) and other telephone company services.
Page 29 of 58
Vehicle Tracking System
GSM
Page 30 of 58
Vehicle Tracking System
GSM
3.3 SIM300 -
Designed for global market, SIM300 is a Tri-band GSM/GPRS engine that works on frequencies EGSM 900 MHz, DCS 1800 MHz and PCS1900 MHz. SIM300 provides GPRS multi-slot class 10 capability and support the GPRS coding schemes CS-1, CS2, CS-3 and CS-4. With a tiny configuration of 40mm x 33mm x 2.85 mm. SIM300 can fit almost all the space requirement in your application, such as Smart phone, PDA phone and other mobile device. The physical interface to the mobile application is made through a 60 pins board-toboard connector, which provides all hardware interfaces between the module and customers boards except the RF antenna interface. 1) The keypad and SPI LCD interface will give you the flexibility to develop customized applications. 2) Two serial ports can help you easily develop your applications. 3) Two audio channels include two microphones inputs and two speaker outputs. This can be easily configured by AT command.
Page 31 of 58
Vehicle Tracking System
GSM
SIM300 provide RF antenna interface with two alternatives: antenna connector and antenna pad. The antenna connector is MURATA MM9329-2700. And customers antenna can be soldered to the antenna pad. The SIM300 is designed with power saving technique, the current consumption to as low as 2.5mA in SLEEP mode. The SIM300 is integrated with the TCP/IP protocol, Extended TCP/IP AT commands are developed for customers to use the TCP/IP protocol easily, which is very useful for those data transfer applications.
Implementation
Single supply voltage 3.4V 4.5V Typical power consumption in SLEEP mode to 2.5mA
Page 32 of 58
Vehicle Tracking System
GSM
3.4 Application
SIMComs wireless modules have been applied in: 1) Automotives 2) Telematics 3) Security 4) Tracking and tracing 5) Auto meter reading 6) Industrial automation 7) Payment 8) Healthcare 9) Others
Now SIM300 is connect with Microcontroller Atmega128 through serial port and send Latitude and Longitude position with the help of AT Commands.
3.5 AT CommandsAT commands are used to control GSM MODEM. AT is the abbreviation for Attention. These commands come from Hayes commands that were used by the Hayes smart modems. The Hayes commands started with AT to indicate the attention from the MODEM. The dial up and wireless MODEMs (devices that involve machine to machine communication) need AT commands to interact with a computer. These include the Hayes command set as a subset, along with other extended AT commands. AT commands with a GSM/GPRS MODEM or mobile phone can be used to access following information and services: a. Information and configuration pertaining to mobile device or MODEM and SIM card. b. SMS services. c. MMS services. d. Fax services. e. Data and Voice link over mobile network.
Page 33 of 58
Vehicle Tracking System
GSM
The command returns a result code OK if the computer (serial port) and module are connected properly. If any of module or SIM is not working, it would return a result code ERROR.
2) +CMGF - This command is used to set the SMS mode. Either text or PDU mode can be selected by assigning 1 or 0 in the command. SYNTAX: AT+CMGF=<mode> 0: for PDU mode 1: for text mode The text mode of SMS is easier to operate but it allows limited features of SMS. The PDU (protocol data unit) allows more access to SMS services but the operator requires bit level knowledge of TPDUs. The headers and body of SMS are accessed in hex format in PDU mode so it allows availing more features. For example, AT+CMGF=1 OK 3) +CMGW - This command is used to store message in the SIM. SYNTAX: AT+CMGW= Phone number> Message to be stored Ctrl+z. As one types AT+CMGW and phone number, > sign appears on next line where one can type the message. Multiple line messages can be typed in this case. This is why the message is terminated by providing a Ctrl+z combination. As Ctrl+z is pressed, the following information response is displayed on the screen.
4) +CMGS - This command is used to send a SMS message to a phone number. SYNTAX: AT+CMGS= serial number of message to be send. As the command AT+CMGS and serial number of message are entered, SMS is sent to the particular SIM. For example, AT+CMGS=1 OK
Page 34 of 58
Vehicle Tracking System
GSM
6) ATA - This command is used to answer a call. An incoming call is indicated by a message RING which is repeated for every ring of the call. When the call ends NO CARRIER is displayed on the screen. SYNTAX: ATA(Enter) As ATA followed by enter key is pressed, incoming call is answered. For example, RING RING ATA
7) ATH - This command is used to disconnect remote user link with the GSM module. SYNTAX: ATH (Enter)
Page 35 of 58
Vehicle Tracking System
GPS
GPS
The warm start is when the GPS device remembers its last calculated position, almanac used, and UTC Time, but not which satellites were in view. It then performs a reset and attempts to obtain the satellite signals and calculates a new position. The receiver has a general idea of which satellites to look for because it knows its last position and the almanac data helps identify which satellites are visible in the sky. This takes longer than a hot start but not as long as a cold start. And finally the cold start is when the GPS device dumps all the information, attempts to locate satellites and then calculates a GPS lock. This takes the longest because there is no known information. The GPS receiver has to attempt to lock onto a satellite signal from any available satellites, basically like polling, which takes a lot longer than knowing which satellites to look for. This GPS lock takes the longest.
GPS
4.3 FEATURES
65 channels to acquire and track satellites simultaneously Tracking sensitivity reaches -161 dBm 0.5 PPM TCXO for quick cold start Integral LNA with low power control Cold start _ 29 sec under clear Sky Hot start _ 1 sec under clear Sky Accuracy 5m CEP Operable at 3.6V-6V
Page 38 of 58 Vehicle Tracking System
GPS
Both of RS232 and UART interface at CMOS level Small form factor of 32 mm W x 32 mm Lx 8 mm H Mountable without solder process 6 pins wafer connector
GPS
GPS
Each message's starting character is a dollar sign. The next five characters identify the talker (two characters) and the type of message (three characters). All data fields that follow are comma-delimited. Where data is unavailable, the corresponding field remains blank The first character that immediately follows the last data field character is an asterisk, but it is only included if a checksum is supplied. The asterisk is immediately followed by a checksum represented as a twodigit hexadecimal number. The checksum is the bitwise exclusive OR of ASCII codes of all characters between the $and *. According to the official specification, the checksum is optional for most data sentences, but is compulsory for RMA, RMB, and RMC (among others). <CR><LF> ends the message.
GPS
4.6.1 GGA-GLOBAL POSITIONING SYSTEM FIX DATA Time, position and fix related data for a GPS receiver. Structure: $GPGGA,hhmmss.sss,ddmm.mmmm,a,dddmm.mmmm,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx* hh<CR><LF> 1 2 3 4 5 6 7 8 9 10 11 12 13
GPS
4.6.2 GLL - LATITUDE AND LONGITUDE, WITH TIME OF POSITION FIX AND STATUS Latitude and longitude of current position, time, and status. Structure: $GPGLL,ddmm.mmmm,a,dddmm.mmmm,a,hhmmss.sss,A,a*hh<CR><LF> 12345678 Example:
Page 43 of 58 Vehicle Tracking System
GPS
$GPGLL,4250.5589,S,14718.5084,E,092204.999,A,A*2D<CR><LF>
4.6.3 GSA - GPS DOP AND ACTIVE SATELLITES GPS receiver operating mode, satellites used in the navigation solution reported by the GGA or GNS sentence and DOP values. Structure: $GPGSA,A,x,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,x.x,x.x,x.x*hh<CR><LF> 123333333333334567
Page 44 of 58 Vehicle Tracking System
GPS
Example: $GPGSA,A,3,01,20,19,13,,,,,,,,,40.4,24.4,32.2*0A<CR><LF>
4.7 Application
Automotive and Marine Navigation Automotive Navigator Tracking Emergency Locator Geographic Surveying Personal Positioning
Snapshots
Chapter-5
Snapshots
Snapshots
Snapshots
Snapshots
Snapshots
5.1.5 TOOLS
Snapshots
5.1.6 OPTIONS
Snapshots
Snapshots
Snapshots
Note-Data bits, parity and stop bits are 8,none and 1 generally.
Snapshots
Conclusion
Chapter 6
Conclusion and Reference The Project titled Vehicle Positioning and Navigating using GPS and GSM is a model for Vehicle Tracking unit with the help of GPS receivers and GSM modem. The positioning is done in the form of latitude and longitude along with the exact location of the place, by making use of Google maps. The system tracks the location of particular vehicle and sends to users mobile in form of SMS and also to EEPROM. The arrived data, is in the form of latitude and longitude is used to locate the Vehicle on the Google maps. To see on the Google map we need to decode the received SMS. We have completed the project as per the requirements of our project. Finally the aim of the project i.e. to Position and navigate the vehicle, has been achieved successfully by using Vehicle Positioning and Navigating system.
Reference
1. www.wittyrobbo.com 2. www.robokits.com 3. www.atmel.in 4. hekilledmywire.wordpress.com 5. www.arduino.cc 6. www.probots.co.in 7. www.nskelectronics.com
Conclusion
FUTURE SCOPE We can use the EEPROM to store the previous Navigating positions up to 256 locations and we can navigate up to N number of locations by increasing its memory. We can reduce the size of the kit by using GPS+GSM on the same module. We can increase the accuracy up to 3m by increasing the cost of the GPS receivers. We can use our kit for detection of bomb by connecting to the bomb detector. With the help of high sensitivity vibration sensors we can detect the accident. Whenever vehicle unexpectedly had an accident on the road with help of vibration sensor we can detect the accident and we can send the location to the owner, hospital and police. We can use our kit to assist the traffic. By keeping the kits in the entire vehicles and by knowing the locations of all the vehicles. If anybody steals our car we can easily find our car around the globe. By keeping vehicle positioning vehicle on the vehicle.