dynamic tracking of object through gps

Upload: er-shailesh-chaudhary

Post on 04-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    1/32

    By:xyz

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    2/32

    The Aim of the project is to design a

    system which can navigate, positionand log data for any moving systemand also post the data on a web serverso that anyone with internet can accessand track the movement of system

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    3/32

    System of satellites that provide geo-spatialpositioning with global coverage

    Enables receivers to find out latitude,longitude and altitude by radiating accuratetime signals.

    Line of sight communication. Applications include navigation, surveying

    and mapping, rescue operations, wreckdiving etc.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    4/32

    GPS is the only fully functioning GNSS systemavailable.

    Involves a system of 24 satellites

    revolving around the earth. Data sent by the GPS satellites: The time the message was

    transmitted.

    Precise orbital information(the ephemeris) .

    The general system health and rough orbits of all GPSsatellites (the almanac).

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    5/32

    National Marine Electronics Association(NMEA) is a combined electrical and data

    specification for communication betweenmarine electronic devices.

    GPS receiver communication is defined bythe NMEA format.

    Features of the NMEA sentences are:

    totally self contained and

    independent from other NMEA sentences.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    6/32

    Each sentence begins with a '$' and ends with acarriage return/line feed sequence.

    Each sentence cannot be longer than 80

    characters of visible text. Generally, the NMEA communication is

    configured as: Data rate of 4800 bits/sec.

    Bit length of 8 bits

    1 Stop bit

    No Parity control

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    7/32

    The Garmin G2 device used has its ownsubset of NMEA sentences.

    These commands include: RMC, RMB, GGA,GSA, GSV, GLL, BOD, RTE.

    Commands give latitude, longitude, speed ofobject, heading etc.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    8/32

    Used for interfacing with mobile phones froma PC or computer.

    AT commands allow giving instructions toboth mobile devices and ordinary landlinetelephones.

    Basic features like calling, sending messagesand setting up GPRS could be done with ATcommands.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    9/32

    Some of the basic AT commands include:

    ATA - Answer command

    ATD -Dial command ATH -Hang up call

    AT+CBC - Battery charge

    AT+CGMI - Request manufacturer identification

    AT+CGMM - Request model identification

    AT+CGMR - Request revision identification

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    10/32

    Text messaging related commands are: AT+CMGL - List messages

    AT+CMGR - Read message AT+CMGS -Send message

    In this tracking project, AT commands areused for setting up a GPRS connection to

    facilitate sending and receiving GPS data. Mobile phone is interfaced with serial

    communication with the server or thereceiver.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    11/32

    Connect the mobile phone toyour computer using theserial port.

    Install and check driverdetails in device manager if

    necessary.

    Check communication withAT command and wait for aOK response.

    Set AT+ATT = 1 to forcemobile is attached to GPRS

    Check AT+CGREG? To checkstatus of GPRS attachment

    Use AT + CGDCONT toconfigure the GPRS and set

    quality of service parameters

    Use AT + CGACT to activethe GPRS connection

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    12/32

    KML is an XML notation for expressiongeographical locations and visualizations on

    2D and 3D browsers. The KML file specifies a set of features to

    facilitate the visualization (place marks,images, polygons, 3D models, textualdescriptions, etc.)

    Has applications in navigating, visualization,satellite surveillance etc.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    13/32

    New delhiCapital of india

    77.23798589812928,28.63538550250425,0

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    14/32

    Todays computers dont have serial port inthemThe cable is used to convert the USB port toSerial port.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    15/32

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    16/32

    Data Terminal Ready: Tells DCE that DTE is ready

    to be connected.Data Carrier Detect: Tells DTE that DCE is

    connected to telephone line.

    Data Set Ready: Tells DTE that DCE is ready to

    receive commands or data.

    Ring Indicator: Tells DTE that DCE has detected aring signal on the telephone line

    Request To Send: Tells DCE to prepare to acceptdata from DTE.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    17/32

    Clear To Send: Acknowledges RTS and allows

    DTE to transmitTransmitted Data: Carries data from DTE to

    DCE.Received Data: Carries data from DCE to

    DTE.Ground.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    18/32

    Language Used VC++

    Interface on computer : Console

    Based

    Interface to GPS device: SerialRS232Data format from GPS device :

    NMEA 0183

    Final file : exe fileOutput : KML file on google earth

    software.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    19/32

    Connect the devices (GPS receiver and GSM device ifnecessary) using the serial communication port.

    Device address is input to the program which checks

    the device and initializes variables. Communication isready to begin.

    GPS receiver sends the data in NMEA 0183 formatwhich is taken by the program and processed in a

    buffer.

    Latitude, longitude and altitude are extracted fromthe buffer. Multi-threading is used for the web serveras implementing it in a normal program would renderthe server inactive when the processing is being done.

    Synchronization is maintained between the threads.A cyclic buffer is used to maintain the tracking

    information which is also used by the web server.

    The data is available in the web server and can beaccessed by anyone. It is also logged in the host

    system also and a kml file is created.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    20/32

    Data from gps is taken and putinto laptop using serial to usbCable.

    $GPRMC,023042,A,3907.3837,N,12102.4684,W,0.0,156.1,131102,15.3,E,A*36 $GPRMB,A,,,,,,,,,,,,A,A*0B

    $GPGGA,023042,3907.3837,N,12102.4684,W,1,04,2.3,507.3,M,-24.1,M,,*75$GPGSA,A,3,04,05,,,09,,,24,,,,,2.8,2.3,1.0*36$GPGSV,3,2,11,09,47,229,42,10,04,157,00,14,00,305,00,24,70,154,33*79$GPGLL,3907.3837,N,12102.4684,W,023042,A,A*5E $GPBOD,,T,,M,,*47$GPVTG,156.1,T,140.9,M,0.0,N,0.0,K*41 $PGRME,8.4,M,23.8,M,25.7,M*2B$PGRMZ,1735,f*34 $PGRMM,WGS 84*06 $HCHDG,,,,15.3,E*30

    $GPRTE,1,1,c,*37

    3907.3837,N,12102.4684,W,

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    21/32

    0

    1

    2

    3

    4

    5

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    22/32

    Http Server is being used.Data from buffer is formatted in KML format

    and dumped to server where it can be accessedby anyone.Both the extraction program and serverprogram are made so that the server remainsactive at all points in time.Threading also helps overlap I/O operationswith the processing of data and the servermanagement .

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    23/32

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    24/32

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    25/32

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    26/32

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    27/32

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    28/32

    The system can track and logdata at server and also post thedata to remote location where itcan be used for tracking andlogging.

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    29/32

    This can be used to track locations andmovement of military troops and military vehicles

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    30/32

    The system in miniaturized form can bemounted on UAVs to track their movement

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    31/32

    The system can be combined with gyros to work inan environment with no GPS signal.

    Gyro Accelerometer

    TrackingSystem

  • 7/29/2019 Dynamic Tracking of Object Through GPS

    32/32