Home
        pc - based gps tracking with immobilization capability through sms
         Contents
1.           High suw nato  solactwe      chip ananas  Araia n quad tatpack package    MAXIM Maxim integrated Products 1    4  2  o  4  2  4     o  o  9  4  2  2  2  4      H  H  4  o  o  o  4  4                        101    MAX220 MAX249        5V Powered  Multichannel RS 232    Drivers Receivers   ABSOLUTE MAXIMUM RATINGS   MAX220 222 232A 233A 242 243   Supply Voltage                                  02      48   20 Pin Plastic DIP  derate     OOmWFC above  70  C   440mW  Input Voltages 1G Pin Narrow SO           8 70m WFC above  70                           De BAG i ta  Voc  DIY  16 Pin Wide SO  derate 9 52m WC above s70C       763TW  Fin  Except MAX220  2 2    230V 18 Pin Wide SO             952m WFC above  70           762       Fin  MAXZ20                          20 Pin Wide SO  derate 10 00m W  C above   TOPC     B00rmW  Tour           MARZO  Noo 1 1  1                         20 Fin SSOP  derme B OUmWFPC shove  70C          64OmW  Tour        220                   Race nied ee             HIN 1 amp  Pin               derate 10 00mWFC above 4 70  C     200mW   ae 19 Pin CERDIP  derste 10 53mWPC above 470C     542mW  Tour                    TEES WENT SG Operating Temperature    ga  Aout    4 AN           0 3V  MAX  AC         C                Driver Reoeiver            Short Circuiled to GND    Continuous MAX  AE        E                to 4 85 C   Cortiruous Power Dissipation  TA     70  C                MA2     BEC to 4125 C  16 Fin Plestic                  10 53m WAC
2.    small form factor  25 4   25 4   3 mm AN       High sensitivity   159dBm  Searching up to 32 Channel of satellites      Fast Position Fix O    Low power con   umtion N      KTCM m ready   Built in WAAS EGNOS MSAS Degg  Support NMEAD183 V 3 01 d  Real time navigation for locat abel services    For Car Mavigation  fine Navigation  Fleet Management  AVL and  Location Based            rvi      Pilot  Personal Navigation or touring  ices systems and Mapping devices application    119    M 89 HOLUX    2 Technical Description  2 1 Block Diagram       ANTENNA        EXTERNAL  LNA       120    Antenna power supply input  3V   Antenna power supply  2 8V   RTC and backup SRAM power  2 6   3 6 VDC   Reset  active low lg MA    a          General purpose WO                 i  i    4     8  E                  13   E  15  E   18   19   20   24   El  25   26       28       2 3Specification    echnoigzY       GPS chipset  NGA Oraid 1 025MHZ chip ate    NG    Rec eft e    _  Without 21d 3 0 M 2D RMS    DGPS WAAS  EGNOS  MSAS  RTCM  25 M      Velocity  Without aid 0 1 M sec  0 1 microsecond  Sync GPS time      Hot start  sec average     HOLUX             121    HOLUX         57600 bps  default 4800      Data bit 8 Stop bit 1  1Hz defzult   ENERO    m    MM    CMOS 2 8 V Level    406 to 857            Temperature     40  to 1257     T    Operating Humid    Storage    5  to 95 No condensing         2125 4   25 4   3 mm        122    M 89 HOLUX  GPS Module senes THE TEO HAMT EX GPS     4 User In
3.   1  Device mounted on      FR4 printed circuit board  lead length 10 mm        97    Philips Semiconductors Product specification  High speed diodes 184148  1N4448    ELECTRICAL CHARACTERISTICS  T  2 25  C unless otherwise specified         eT  lg   80 mA        100 ax                Reus  thermal resistance from junction to te point   lead length 10 mm          KW     Raja  thermal resistance from junction to ambient   lead length 10 mm  note 1   350   KW    Note   1  Device mounted on a printed circuit board without metallization pad        98    3 Terminal Regulators   Output Current up to 100 mA   No External Components   Internal Thermal Overload Protection  Internal Short Circuit Current Limiting  Direct Replacements for Fairchild            00  Series    description    This senes of fixed voltage integrated circuit    voltage regulators is designed for a wide range of    applications  These applications include on card  regulation for elimination of noise and distribution  problems associated with single point regulation   In addition  they can be used with power pass  elements to make high cument voltage regulators   One of these regulators can deliver up to 100 mA  of output curent  The internal limiting and  thermal shutdowm features of these regulators  make them essentially immune to overload  When  used as a replacement for a zener dinde resistor  combination  an effective improvement in output  impedance can be abtained  together with lower  bias current    The
4.  45  8   m     Temperature Coefficient  T           s    mewmesey                    25       RMS Output Noise  Natea              poo      Vou    Mote 1  Low duty cycle pulse tested with Kelvin connections   Note 2  The dropout voltage Is defined as V   Vour  which      measured when Vout 6              100mV   Note 3  Bandwidth of 10 Hz to 10 kHz   Mote 4  Gus 15 measured      the natural convection at Ta   25  C on a low effective thermal conductivity test board of   JEDEC 51 3 thermal measurement standard  The case polnt of Bye Is on the center of the exposed pad        114       N  A   K Semiconductor 5 TC90 1 4    NPN Silicon Transistor       Description    General purpose application  e Switching application  Features    e Excellent h   linearity   hee Ic 0 1 mA    hre   1  22 mA    0 95           e Complementary pair with STAS015N    Ordering Information  Type NO  Marking Package Code  STC9014N STC9014 TO 92N  Outline Dimensions unit   mm    PIN Connections  1  Emitter   2  Base   3  Collector       115       STC9014N    Absolute Maximum Ratings  Ta 25 C                       Y     calectoremitter vots   v             __   Emitter base voltage       Ve   5   V                       39          alear poner isn               59             Electrical Char acteristics           _ Characteristic           Test Condition       Typ    Mas    Unit    Collector emitter breakdown voltage   BVao   Ie 1mA  0   so           Collector cut off current Vea 80V  1  0           so   m
5.  5V to 3 3V Linear Regulator       Low Voltage Microcontroller            etc  Power Supply     Linear Regulator for LAN Card and CD ROM    Pin Configurations   TOP VIEW        RT9163 OOce  507 223    112    RT9163 BichiTek       VIN GNO your GNO VIN VOUT        TAB     TAB   RT9163 OOCGL RT9163 OOCGT RT9163 0 0CGF  SOT 223 SOT 223 SOT 223  Typical Application Circuit    Ener    Apifer          Vaer       Functional Pin Description   _Pin Name   Pin Function          113                   879163    Absolute Maximum Ratings               Power Dissipation  Pp          25  C  TO mnm MM izmW         enne nnnm DETUN  EDEN s TAT       2   enm   AT Ty  a Package Thermal Resistance  Note 4   TOAZ  8j  MM ied ZW  SOIT 88            SOIT  RB     emm MM  TE EN  SOT 223       nmm MM MM IB ZW  TALI doa MM 18 NI                  M         TIEL  thy enn BE       a Operating Junction Temperature Range      4   to 125  C  a Storage Temperature Range                                             ___ ___                                 C to 15070    Electrical Characteristics    Vins SV  Tam 25  C  unless otherwise specified         mes Tesiconatons   Wn          wax                3300   335    von  Tse  saan  v    RTe162 50    Vwa   4900   5000      100      RTB183 33  My   SY   15V         STERBEN      RT8162 80   wewn        150                       c en e  x    Dropout Voltage  Note2                           t3   t4   v     Curentmt tm      90          ma      Quiescent Curent  e    S    
6.  GSM  module to send GPS coordinates  Codes for PIC are written in Basic using Proton   AT commands are for codes used in the GSM module while NMEA command  format are used for the GPS control  Power supply is the source of the power for  the hardware components  This can be coming from the car   s battery or from the    cigarette lighter of the car     Computer Server     GSM COMPUTER  MODULE    TX RX       Figure 3 2 PC Server  The computer server which is shown in Figure 3 2 allows the GPS tracker  unit to communicate to each other  The server sends commands to the tracker  unit attached to the vehicle but it can only receive reply from the GPS tracker    unit if the code sent by the server is correct  In the computer server part  the    20    software used is written in Visual Basic  NET that can compare the received  coordinates sent by the device to locate the vehicle s exact location  The  software provides a graphical view of a map of the National Capital Region   NCR   After locating the exact location  the computer now sends the request  from the sender of the commands by sending the exact location of the vehicle     Immobilization of the car is also through the PC server to the GPS tracker unit     Data Gathering   The proponents gathered data on how to interface the microcontroller to  GPS and GSM modules  Knowing how to interface both of these modules can  eliminate the possibility of having a larger circuitry  Using the data acquired from  IEEE journals  the pro
7.  Rows with standard voltage device data only are shaded for Improved readability       Data in              column ls at 5V  25  C  unless otherwise stated  These parameters are for design guidance  only ard are not tested     Note 1  This is the limit to which Vo can be lowered without losing RAM data    2  The supply current 15 mainly a function of the operating voltage and frequency  Other factors  such as NO  pin ioading  switching rate  oeclllator type  intemal code execution pattem and temperature  also have an  Impact on ihe current consumption    The test conditions for all loo measurements in active nperatian made are   OSC1   extemal square wave  from rail io ralt       VO pins t stated  pulled to Voor  MCLR           WOT enabiedidisabled      specified    3  The power dawrn curent      Sleep made does nat depend on the osclilator type  2ower dowrn current is  measured with the part In Sleep mode  with all AO pins In high impedance state and bed ip Voo and Ves     amp  For RC ose configuration  cement through REXT      nG Included  The curent through ihe resistor can ne  estimated by the formula ir   Vopi2RexT  mA  with            kt    5  Timeri cecillator  when enabled  adds approximately 20 uA to the specification  This value is from  characterization and is for design guidance only  This Is not tested     amp  The A current is the addtional current consumed when this peripheral is enabled  This current should be  added to the base Ino or lp measurement     7  Wh
8.  SerialPort  With SMSPort    PortName   usbport    BaudRate   115200    Parity   Parity None    DataBits   8    StopBits   StopBits One    Handshake   Handshake None    DtrEnable   False    RtsEnable   False    NewLine   vbCrLf  End With  SMSPort Open    SMSPort WriteLine  AT CMGF 1    Threading  Thread Sleep 100   SMSPort WriteLine  AT CMGS      amp  gps mobile no  amp         SMSPort WriteLine command  amp  Chr 26    Threading Thread Sleep 100   SMSPort Close      80    MainStatusLabel Text    Command Message Sent      If MainSwitch Then  Timer AutomaticMode Start    End If  End Sub    Private Sub clear messages      For index As Integer   0 To 4  message index    String Empty  mobile no index    String Empty   Next    End Sub  End Class    8l    APPENDIX D    SERVER SOFTWARE SCREENSHOTS    Server waiting for request        82    GPS Request        83    APPENDIX E    PROTOTYPE PICTURES    Front View        84    Top View        85    APPENDIX F  SYSTEM REQUIREMENTS    System Requirements    OS   Windows XP or Windows Vista   Processor     1 0 GHz or faster  XP  or 2 0 GHz or faster  Vista   Memory   1 0 GB RAM  XP  or 2 GB RAM  Vista    Hard Drive     20MB free space   Microsoft  Net Framework 3 or higher   Mysql version 6 0 or higher   Usb 2 0 port    Globe Tattoo GSM    86    APPENDIX G  USER S MANUAL AND INSTALLATION GUIDE    Part Names  System front    Serial       Relay Status Indicator  Message Reading       Fuse holder    ON OFF Switch    DC IN connector    Relay co
9.  StopBits   StopBits One   Handshake   Handshake None   DtrEnable   True   RtsEnable   True   NewLine   vbCrLf   End With    For index As Integer   0 To 4  SMSPort Open    SMSPort WriteLine  AT CMGF  1       should delay  Threading  Thread Sleep 100   SMSPort WriteLine  AT CMGR    amp  messagectr      should delay  Threading  Thread Sleep 100   portdata   SMSPort ReadExisting    startCMGR   portdata LastIndexOf   CMGR     If startCMGR  gt  0 Then   THERE IS A MESSAGE ON THE SELECTED SLOT  portdata   portdata Remove 0  startCMGR   19   mobile no messagectr    portdata Remove portdata IndexOf            message messagectr     portdata Substring portdata  LastIndexOf         3   message messagectr     message messagectr  Remove message messagectr  LastIndexOf  OK     Else     THERE are no message  End If    SMSPort Close     messagectr   messagectr   1   If messagectr   5 Then  messagectr   0   End If    74    Next    End Sub    Private Sub delete sms     Dim messagectr As Integer   0   Dim SMSPort As New SerialPort   With SMSPort   PortName   usbport   BaudRate   115200   Parity   Parity None   DataBits   8   StopBits   StopBits One   Handshake   Handshake None   DtrEnable   True   RtsEnable   True   NewLine   vbCrLf   End With    For index As Integer   0 To 4  SMSPort Open    SMSPort WriteLine  AT CMGF  1    Threading  Thread Sleep 100   SMSPort WriteLine  AT CMGD    amp  messagectr   Threading Thread Sleep 100   SMSPort Close    messagectr   messagectr   1  If messagectr   5 
10.  To compute for    the value of base resistor  the formula is    39    Rb    Vin   Vbe    Ib   Where    Rb     Base resistor   Vin     Voltage input   Vbe   forward voltage from base to emitter    Ib     Base current    The output voltage of port RD4 is 4 3V and the maximum forward voltage  for silicon transistor is 0 85V and base current is 4mA that comes from port RD4     substituting the values in the formula shows that     Rb    Vin   Vbe    Ib    Rb    4 3V   0 85    4mA    Rb   862 5 ohms    Since there is no 862 5 ohm resistor in the market  the proponents    considered the highest next value which is 870 ohms     40    b3    Co         OO    MCLR     RAO    Figure 3 11 Pull   Up Resistor in PIC16F877A       PIC16F877A uses pull up resistor connected to MCLR to avoid the  microcontroller from resetting  Since MCLR pin of PIC16F877A is inverted   hanging the pin without connection or simply making the input signal to 0 will  put the microcontroller to unable state  This resistor pulls up the MCLR pin to  almost ground level  Base from the datasheet of the microcontroller  the value of  pull up resistor must be less than 40k ohms  The voltage source 5V comes from  the output voltage of the 7805 regulator and the output current is 6mA   Computing for the value of pull up resistor is given by Ohms Law    R V I   Where    R     Resistor value  V     Voltage source    I   Current passing to device         5V   6mA    4     R   833 33 ohms  Since there is no 833 33 ohm resist
11.  WAFBLOOC series is characterized for  operation over the virtual junction temperature  range of      to 125  C     18100 SERIES  POSITIVE VOLTAGE REGULATORS               JANUARY 7976     REVIEED JULY 190       D PACKAGE   TOP VIEW     OUTPUT      INPUT  COMMON      COMMON  COMMON       COMMON           NG    NG   Na intemal connection    LP PACKAGE   TOP VIEW     INPUT   COMMON   OUTPUT  TO ZZBAA    PK PACKAGE   TOP VIEW     INPUT    COMMON    QUTPUT    AVAILABLE OPTIONS  PACKAGED DEVICES          PLASTIC CYLINDRICAL         iLF  IPE     OUTPUT VOLTAGE TOLERANCE    pATSLIZACD   pATBLIEACD  D and LP packages are avaliable taped and reeled  Add fw sufrir A to the device type leg  WATSLOSACOR   The PK package Iz only awallabie  taped and reeled      WATELOZACPHR   Chip forms are tested at Ta   25  C        99    78L00 SERIES  SITIVE VOLTAGE REGULATORS    ENVENU     JANUARY 1978   REVISED JULY 1909    electrical characteristics at specified virtual junction temperature  Vj   3 V  10   40 mA  unless  otherwise noted     Vs ATE V to 20 V  io 1 mA tn AD mA ETE  OC    1297C    lg 21 mAto 7D mA MG    1259  bd  Vj 24 75 Vio 20 V  Wo EV tn 20 V    Ripple rejection Vie  amp  V In 2D V  T   120 Hz          1 mAto 100       voltage reguistion  Ip   1 mAto 40 mA  Dua naise        0               xw                           om LLL LL    KG  MECEL E  Bim current change           1    ip  1 mAin dL mA       T Pulza teztr techniques maintain Tyas close bo      a5 possible  Thermal effects mu
12.  above 470  C   842mW Storage Temperature            C to BOC  18 Pin                             11 1 imWPC above 70C    889mW Lead Temperature  soldering  10x  TERA MOM    d ty    Note 1  Input voltage measured with Tour in high impedance state  SHON o Voc   W   Note 2  For the MAX220  V  and V  can have a maximum magnitude of TV  but their absolute disierence cannot exceed 13V     Simas beyond thare 1200 unda    Absoluto              Ratings    may      pormanan  damage    ity dace      aro sios mings      an iueiai  qperatbn of                 2 ihoso or ary dha conditions beyond hose indaatad    ite               salwe 2 ite secficgis is nd imped  Exmsum       4240             rating odine for                  may           down rhabity    ELECTRICAL CHARACTERISTICS  MAX220 222 232A 233A 242 243   Vec   45V 210   C1 C4   0 1uF  MAX220  C1   0 047uF  C2 C4   0 334  Ta Tyan to Tax  unless otherwise noted      Quaput Voltage Swing Altraramitter outputs loaded with    GNO      28    V    hd Logie resid Lon CO     IT GG  AN  Tm rires capt        DG PINE   MAXZD Ver  SN  aes    except MARZO             operahan   E        SHDN   OV        222 742  shutdown         20  Von   55V  SHON   OV  Vout   216V  MAX222042       001 10   E men l                3      18 pw    Panata NY aaa   om mr 14        oy _ _           s  ra  R  232 RECEIVERS  SS      esum      1   aa LESLIE  aa                                        _    SV  scare aa    2 241  83 212 Input Hysteresis Al exoept MAX2
13.  avadable in fixed output  voltage of 3 3V  35   and 5 0V  The     9163 provides  excellent regulation over line  load  and temperature  variations     The other features include low dropout performance at a  maximum of 1 4V at 500mA  fast transient response   intemal current limiting  and thermal shutdown protection  of the output devices  The RT9163 is a three terminal  regulator available in surface mount SOT 89  SOT 223   and TO 252 packages     Ordering Information  RT9163 00    Lose Type   ZL   TO 92  L Type    X  SOT 89   XL   SOT 89  L Type   L TO 252   G   SOT 223  Type   GL   SOT 223  Type tl   GT   SOT 223                 GF   SOT 223  Type IV     Operating Temperature Range    P   Pb Free with Commercial Standard  G   Green  Halogen Free with Commer     cia  Standard        Note    RichTek Pb free and Green products are     gt ROHS compilant and compatible with the current require   ments of IPCIJEDEC J STD 020     Sultable for use in SnPb or Pb free soldering processes      100          tin  Sn  plating     Marking Information    For marking information  contact our sales representative  directly or through a Rich Tek distributor located in your  area  otherwise visit our website for detail     Features      Low Dropout  Maximum 1 4V at 500mA      Fast Transient Response   e   2  Total Output Regulation       0 4  Line Regulation   e 0 4  Load Regulation     TO 92  SOT 89  SOT 223  and TO 252 Packages    RoHS Compliant and 100  Lead  Pb  Free    Applications     
14.  average for the server response time is 4 seconds  The time taken for  these tests are dependent on the delay of the system in reading the SMS and the    delay caused by the network     Requesting correct format for turning on the engine is the same as the    conditions in requesting the exact location and in turning off the engine     Partial correct format is also the same for the correct format  Requesting    incorrect format to the server will not trigger the server to request to the GPS    tracker unit    55    Chapter 5    CONCLUSION AND RECOMMENDATION    This chapter contains the overall conclusion regarding the design  This chapter  also includes the recommendation for the design to improve its function     reliability  and accuracy     Conclusion   The design  after several testing  has conformed to the stated objectives  that include the reliability  accuracy of the GPS module and security by means of  immobilization of the vehicle  The general objective is also met by the design   The design can track vehicle using GPS module by sending a SMS message to  the GSM module  The immobilization of the vehicle is also met by cutting of the  electrical power to the engine by interfacing the design to the ignition wire  The  database made for the design is almost complete for NCR regions  The design is  also tested in different scenarios  still it performs its task  Accuracy of the design  in tracking is almost the same as the output of Google Earth which is taken from  th
15.  btnSwitch Click ByVal sender As System Object  ByVal e As  System EventArgs  Handles btnSwitch Click  If MainSwitch Then  btnSwitch Text    ON   ManualModeToolStripMenuItem Click sender  e   MainSwitch   False  Else  btnSwitch Text    OFF   AutomaticModeToolStripMenuItem Click sender       MainSwitch   True  End If  End Sub    Private Sub Timer  Initial Tick ByVal sender As System Object  ByVal e As  System EventArgs  Handles Timer Initial Tick  init mes    Timer Initial Stop      74    MainStatusLabel Text    Initializing     Done     End Sub    Private Sub ExitToolStripMenuItem Click ByVal sender As System Object   ByVal    As System EventArgs  Handles ExitToolStripMenuItem Click  Me Close    End Sub    Private Sub ManualModeToolStripMenulItem Click ByVal sender As  System Object  ByVal e As System EventArgs  Handles  ManualModeToolStripMenuItem Click   MainSwitch   False  ManualModeToolStripMenuItem Checked   True  AutomaticModeToolStripMenuItem Checked   False  Label2 Enabled   True   Label3 Enabled   True   txtGPSE Enabled   True   txtGPSN Enabled   True   btnUp Enabled   True   btnDown Enabled   True   btnLeft Enabled   True   btnRight Enabled   True   btnLocate Enabled   True   Timer AutomaticMode Stop    MainStatusLabel Text    System is off     End Sub    Private Sub AutomaticModeToolStripMenuItem Click ByVal sender As  System Object  ByVal e As System EventArgs  Handles  AutomaticModeToolStripMenuItem Click   MainStatusLabel Text    Starting automatic mode       Ma
16.  cellular phone carried by the owner when the  connected alarm security device is triggered  AT commands are used to control  the built in modem in a cellular phone  AT is the abbreviation of attention  AT  commands are instructions used to control a modem  Every command line starts    with    AT     a good reason why modem commands are called AT commands     13    Some of the AT commands used are  ATD  to dial   ATA  answer    AT CMGS  send message   AT CMSS  send message from storage  and  AT CMGR  read SMS messages   There are very large numbers of AT  commands but the designers chose to use a few commands and these are   AT CMGR for checking and reading the message and AT CMGD to delete the  message  With these commands  the designers will know the location of the  vehicle being tracked  As for this design project  it aims to interface a GSM  module in the car system  The GSM module will send a SMS message that  contains information about the present location of the car  Table 2 2 below    shows a typical AT commands that are supported by some of the known GSM    modem manufacturers                       AT COMMAND DESCRIPTION SYNTAX  Most common AT  commands is used to  AT check if the GSM modem AT  CR    is communicating with  the PC   AT command is used to   AT CMGS    Receivers  AT CMGS send a message  number     lt CR gt  Message   lt Ctrl Z gt   AT command is used to   AT CMGL  ALL    lt CR gt   AT CMGL read messages  Note  Shows all  messages   AT command is used t
17.  f   A SMS starting with  lt ONENG gt  format is used to turn on the relay board    g   A SMS starting with  lt OFFENG gt  format is used to turn off the relay board    h   A Visual Basic NET program installed in the computer is used to compare  the received coordinates  get its exact locations and send message to the  one requesting via SMS    i   Coordinates  longitudinal and latitudinal  are the output signal coming  from the GPS module that will be sent by the GSM module to the  computer    j  The input to be fed to the device in the vehicle is a SMS message    following a code depending on the request to be done     k   NCR map is attached in the software for viewing the vehicle s location        The engine cannot be started when the relay is open  not energized     The design s delimitations are the things or conditions that it cannot perform   or function  Delimitations of the design are as follows    a   The computer cannot display the exact location of the vehicle outside the  NCR map    b   The target vehicle to be tracked when positioned in dead spot of the GPS  satellites is impossible to locate   Example of dead spots are tunnels   basement parking  and underwater    C   The displayed map in the computer for tracking will not be in real time    d   GSM module can only accommodate 160 characters  it will only receive  the message if the number goes beyond  but it cannot decode the data  sent     e   One out of two SMS sent simultaneously will be processed     Defi
18.  on the  database    Exit Sub   Else  MainStatusLabel Text    Location Found     myData Read    LocationToolTip ToolTipTitle            amp  myData 0  ToString  amp     E     amp   myData 1  ToString  xloc   myData 2   yloc   myData 3   nameloc   myData 4   myConn Close    draw point xloc  yloc  nameloc   End If  End Sub    Private Sub draw  point ByVal x As Integer  ByVal y As Integer  ByVal desc As  String   Dim coor As New Point x  y     Dim mappage As Integer   1  Dim mapx  mapy As Integer    mapx   Math Truncate x   785   mapy   Math Truncate y   526     If  mapx   0 And mapy   0  Then  PictureBox1 Image    Global GPS Tracking and Security My Resources  1  ElseIf             0 And            1  Then  PictureBox1 Image    Global GPS Tracking and Security My Resources  2  ElseIf             0 And mapy   2  Then  PictureBox1 Image    Global GPS Tracking and Security My Resources  3  ElseIf             0 And            3  Then    78    PictureBox1 Image    Global GPS Tracking and Security My Resources  4  ElseIf             0 And            4  Then  PictureBox1 Image    Global GPS Tracking and Security My Resources  5  ElseIf             0 And mapy   5  Then  PictureBox1 Image    Global GPS Tracking and Security My Resources  6    End If   convert x and y back to minimal values    x   x    mapx   785   y   y    mapy   526     coor   New Point x  y     If x   0 And y   0 Then  MessageBox Show  Your vehicle is at     desc      But it is outside the  map area     Information   
19.  the current  location of the device  they issue the AT  WGPSPOS command to get the data in  NMEA standard format  This is an example of a circuit interface of microcontroller    to the GPS module        Figure 2 2 RS 232 Driver Circuit  In Figure 2 2  the circuit includes a serial port female to be connected to  any serial port device and to interface it to the UART of microcontroller  you  need to put a MAX232 IC which is a Multichannel Driver Buffer  In this way     interfacing PIC or any MCU to the serial port is possible     17    In the GPS data formatted and transmitted phase  the NMEA formatted  data is then parsed and convert to designed format  The format includes the  device ID  session ID  time in UTC format  flags  latitude  longitude  speed  date   and reserved  Rsv  fields  Each line ended with the symbol     represents one  sample of data from a GPS Tracking module in one session or fleet  Samples are  bundled together  ended with the character  n  and transmitted to the Goo     Server     Once the GPS Tracking Module is connected to GPRS networks  it  transmits position information to Goo Tracking Server which is a commodity  personal computer running a Linux operating system with an open source  software such as Apache web server  PHP  and MySQL program  The server has  three functions to receive the information  to store information in a database   and to display the information  The receiving function opens a non blocking  socket to receive data from multi
20.  voltage to function  It is  connected to the input pin of the 7805 voltage regulator to lower it to 5VDC   Capacitors from the MAX232 connected from C1      C2      V  and V  are  specified by the manufacturer together with their values  0 1uF  because the  capacitors are impossible to be solved due to incomplete circuit presentation  from the datasheet  GPS module uses RT9163 as a voltage source because it    needs 3 6VDC of voltage source     A high speed diode  1N4148  is connected forward biased from the output  of the RT9163 voltage regulator to the real time clock and SRAM backup pin of  the GPS module  A LED with 33 ohms resistor is connected in GPIO pin of GPS  module to indicate that the module is updating its location  The antenna of the  GPS is connected to the RF  IN and ground of the module  The transmitter pin of  the GPS module is connected to TTL CMOS input of the MAX232  T2IN   The  output of the level converter  T2OUT  is then again set as input in RS 232 input  pin  R1IN  and then converted it to TTL CMOS level  R1OUT   This is done to  convert the voltage level of the GPS module from TTL CMOS level to RS 232 and  then to RS 232 to TTL CMOS  The output pin of the MAX232  R1OUT  can now    be connected to UART pin of the microcontroller which is port RC7  MCLR pin of    34    the PIC16F877A is connected to 5VDC together with a 840 resistor to disable the  pin because it is an active low pin  Vss of the microcontroller is connected to  ground and Vdd is conn
21. 0 00  TOTAL  PHP 9 713 00             60       APPENDIX B  PIC PROGRAM  Device 16F877A  Declare XTAL 4  DECLARE WATCHDOG   OFF  DECLARE FSR CONTEXT  SAVE   ON    ALL DIGITAL TRUE    REMARKS ON   Declare   LCD DTPIN PORTC 0  Declare   LCD            PORTD 0  Declare   LCD ENPIN PORTD 1  Declare LCD LINES 2    Declare LCD INTERFACE 4    HSERIAL BAUD   4800  HSERIAL RCSTA   9610010000  HSERIAL TXSTA   9000100100    HSERIAL CLEAR   On    DECLARE SERIAL DATA 8    Symbol T9600   84 NO LIST    Symbol T4800   188 NO LIST    61    dim ctr as byte  alertCtr as byte  UTC as byte   dim latWhole as word latDec as word latN as float  dim latI as byte   dim longWhole as word longDec as word longN as float  dim longI as byte   dim pfi as byte   dim RQCtr as byte   dim myMsg 80  as byte   dim mCtr as byte   dim idx as byte   dim mMode as byte    dim eStat as byte    TRISA  FF  TRISB  7F  TRISC  80    TRISD  A8    PORTB 7 0  PORTD 2 0    eStat EREAD 0    62    if eStat 1 then    PORTD 4 1  else  PORTD 4 0  endif  cls  Print At 1 1  INITIALIZING   Print At 2 1  DEVICE        delayms 8000    PROG_MAIN   cls  Print at 1 1   GPS Initializing   pfi  0   while pfi  0   HSerIn  Wait   GPGGA    UTC  Wait       DEC4 latWhole  DEC5 latDec     latI  Wait       DEC5 longWhole  DEC5 longDec  longI Wait      pfi     wend    cls  Print at 1 1   GPS  Init OK     delayms 2000    while 1  gosub smsRead    wend    smsRead   for mCtr 1 to 3  for ctr 0 to 79    myMsg ctr  32    next ctr  cls    Print at 1 1  READI
22. 15   2006    Monahan  Torin  2007   War Rooms  of the Street  Surveillance Practices in  Transportation Control Centers   Global Positioning Systems  Inertial Navigation  and Integration   Mohinder S  Grewal  Lawrence R  Weill  and Argus P  Andrews    Embedded Systems Dictionary  by Jack Ganssle and Mike Barr   IEEE Transactions on Consumer Electronics  Vol  50  No 4 November 2004    A  J  Kloneck   Simultaneous sending and receiving system      APPENDIX A    LIST OF MATERIALS                                                          Quantity Component Name Price per piece Total   1 SMS module PHP 4 500 00 PHP 4 500 00   1 HOLUX GR 89 GPS module PHP 4 500 00 PHP 4 500 00   1 MAX232 IC PHP 50 00 PHP 50 00   1 PIC16F877A PHP 175 00 PHP 175 00   8 0 1 uF Ceramic Capacitor PHP 2 00 PHP 16 00   3 35V   22uF Electrolytic PHP 5 00 PHP 15 00  Capacitor   2 78L05 Voltage Regulator PHP 15 00 PHP 30 00   3 LED PHP 2 50 PHP 7 50   1 16V     47uF Electrolytic PHP 5 00 PHP 5 00  Capacitor   4 2 pin female connector PHP 5 00 PHP 20 00   1 8 pin female connector PHP 22 00 PHP 22 00   2 YaW 1k Resistor PHP 1 00 PHP 1 00   1 40 pin IC socket PHP 15 00 PHP 15 00   1 4Mhz Crystal Oscillator PHP 20 00 PHP 20 00   2 33pF Ceramic Capacitor PHP 2 00 PHP 4 00   1 16V     470uF Electrolytic PHP 5 00 PHP 5 00       Capacitor             59                            14W 22k Resistor PHP 1 00 PHP 1 00  172W 2 7K Resistor PHP 1 50 PHP 1 50  Black Casing PHP 175 00 PHP 175 00  Relay Board PHP 150 00 PHP 15
23. 2VDC 30A  Normally open SPST relay  870 ohm resistor  PNP transistor  LED    and a diode  The resistor connected in series with the base of the    26    transistor that limits the current passing from the microcontroller to  the transistor  A led is connected to the coil of the relay to indicate  if the contacts of the relay are open or close  The diode is used as  a protection diode to the circuit  It blocks current coming from the  coil of the relay when the coil de energized when power supply is  turned off  This protects other components from sudden burst of  current  Transistor is used as a switch in the relay board  It is  configured as a common emitter configuration  In this way  it can  have high current output to provide the coil in energizing   d  Testing   Testing of the circuit can be done part by part or as a whole   GPS module and GSM module can be tested first in a personal  computer using hyperterminal  Testing the whole system can be  done after all major components are tested to be working correctly  and have been transferred to PCB    C  Integration of Hardware and Software  After the software and hardware are tested  integration    comes next to test the system as a whole     27    D  Design Testing  This is the last method to be followed  Required output of  the system must be obtained to validate the system s performance   Output of the system is analyzed to verify its reliability and  accuracy  Verification of the systems output can be checked using  Go
24. 43 Voc         no hysteresis in shd         hpu            LLL S  gt     TILICMOS        Volage Low 02     04           Output Voltage High 25 Ngg 02      Soong          GND  TTLCMOS ut Shart Circut Current      Sining Vour   Voc a    1 4    2 MAXIM       102     5V Powered  Multichannel RS 232  Drivers Receivers    ELECTRICAL CHARACTERISTICS  MAX220 222 232A 233A 242 243  continued    Voc   45V 210   C1 C4   Q tuF  MAX220  C1   0 047 uF    2        0 320                to Taga unless otherwise noted      E    SHON   Voc ar EN   Voc  SHIN   OV Jor       222    We Vout 5 Vor    Tinga Tesi Lo                  PG         N Input Threshold High 20 14            5  m                   Output Leakage Current         6             22                     MAX222 242                     fincludas cherge purme start up    FON Goos ce  Fee             Transmitter   ta   Propagation    MAX222 232 4 233A 242 243 5       Delay Dference  Normal Operation       U                _    Fiecewver   to   Propagation       2221232   233  02421043           incl Bid aS UI  OU    Note 3  MAX243   2       is guaranteed to      low when Raw is  gt  OV or is floating     Operating Supply Voltage a OY 55  Cz          05 2         Supply Current  SHON           MAX222 232 2332421243 5    eens    wa  MAAZA AAN ANAIA 15   Tase   0 9  aii  Ta   A Cio orc 2 55                      e            22242 hal  a    SHON Threshold Low       222 242 0    700 NECI NG    SHON Threshold High MAX222 242 20 14    pF F  Rm
25. 6F877A Microcontroller  voltage  regulator  78L05  RT9163   Level Converter  MAX232  and a relay   The supply voltage of the circuit is 12V which is fed to the voltage  regulator to regulate the output to 5V for the microcontroller and    the level converter  Another voltage regulator  RT9163  which    29    voltage output is 3 3V is used for the supply of the GPS module   The module needs 3 3V of supply voltage to operate  A LED is  connected to the GPIO pin of the GPS module to indicate if the  module had acquired a signal to the satellites  A blinking LED  means the module is updating its location while a steady LED  means its not updating  High Speed diode is connected forward  biased to the GPS pin 21  Real Time Clock and backup SRAM   A  Level Converter  MAX232  is used to convert voltage signal   TTL CMOS to RS 232  from the GPS module to be read by the    microcontroller s UART pin     Microcontroller uses 4Mhz of crystal oscillator for clock  Clock  is needed for the execution of programs in the microcontroller  A  crystal oscillator is precise compared to RC oscillator resonator  2  parallel 33pF capacitor connected to the crystal oscillator to limit its  frequency to 4MHz  The receiver pin of port c is connected to RS   232 output of the MAX 232 and the transmitter pin of the GPS  module is connected to the transmitter input of the MAX 232 level  converter  The GSM module is directly connected to RD7 and RD6  pin of Port D of the PIC  Relay board is composed of a 1
26. EPROM is 1 and for engine  off  request the value of the EEPROM changes to 0  Rebooting the system will  not affect the current state of the relay board not unless a SMS code for engine  off or engine on is sent     KEYWORDS   Short Message Service  Global Positioning System  EEPROM   Server  NCR     viii    Chapter 1    DESIGN BACKGROUND AND INTRODUCTION    This chapter contains the background of the design project  its basic    components  the history of the topic and its different features     Background   Nowadays  technology is now offering the widest and powerful tools to  track or to locate a person  vehicle  roads and even the directions when  navigating the sea with the use of Global Positioning System  GPS  but this  doesn t come with cheaper price  With the use of the free service of the 26 GPS  satellites made by the US Air Force  a device with GPS capability can track  anyone  anywhere with the use of the technology  Gadgets like cell phones   PDA s and computers are now capable of acquiring access to the 26 satellites of  the US Air Force but acquiring those gadgets would cost a lot  Tracking the  vehicle is not just the concern of the owner but also its security  The proponents  design a device that can track a vehicle with a device attached to it in which  tracking is done by sending a SMS message to the device and verifies the code  by the microcontroller to validate and perform its requested operation  The    device can also control the vehicles engine to tu
27. MessageBoxButtons OK   MessageBoxIcon Information   Else  LocationToolTip Show   Your vehicle is at     desc  PictureBox1  coor   LocationToolTip Show   Your vehicle is at     desc  PictureBox1  coor   End If  End Sub    Private Sub btnLocate Click ByVal sender As System Object  ByVal e As  System EventArgs  Handles btnLocate Click  locate Val txtGPSN Text   Val txtGPSE Text    End Sub    Private Sub Timer SendingMes Tick ByVal sender As System Object  ByVal e  As System EventArgs  Handles Timer SendingMes Tick  Timer SendingMes Stop    MainStatusLabel Text    Sending Location to     default mobile no  Dim SMSPort As New SerialPort  With SMSPort   PortName   usbport   BaudRate   115200   Parity   Parity None   DataBits   8   StopBits   StopBits One    19     Handshake   Handshake None    DtrEnable   False    RtsEnable   False    NewLine   vbCrLf  End With  SMSPort Open    SMSPort WriteLine  AT4  CMGF  1    Threading Thread Sleep 100   SMSPort WriteLine  AT CMGS      amp  default mobile no  amp           SMSPort WriteLine  Your vehicle is at    amp  nameloc  amp       amp  Chr 26      Threading Thread Sleep 100   SMSPort Close    MainStatusLabel Text    Message sent      If MainSwitch Then  Timer AutomaticMode Start    End If    End Sub    Private Sub Timer SendingCommand Tick ByVal sender As System Object     ByVal e As System EventArgs  Handles Timer SendingCommand Tick  Timer SendingCommand Stop    MainStatusLabel Text    Sending commands to device        Dim SMSPort As New
28. NG MSG   DEC mCtr    msgGR    PORTD 2 1   SEROUT PORTD 6  T9600   AT CMGR   DEC mCtr 13   SERIN PORTD 7     T9600 3000 msgOE   Wait 34  Wait 34  Wait 34  Wait   lt GPSREQ gt        64    cls   Print at 1 1  GPS REQ MSG   DEC mCtr  delayms 2000   mMode 1   gosub WriteData   gosub smsSend    goto delSMS    msgOE   SEROUT PORTD 6  T9600   AT CMGR   DEC mCtr 13   SERIN PORTD 7   T9600 3000 msgNE  Wait 34  Wait 34  Wait 34  Wait     ONENG       cls  Print at 1 1  ON REQ MSG   DEC mCtr  eStat 1  EWRITE 0  eStat   PORTD 4 1  delayms 2000  mMode 2    gosub WriteData    65    gosub smsSend    goto delSMS    msgNE   SEROUT PORTD 6  T9600   AT CMGR   DEC mCtr 13   SERIN PORTD 7   T9600 3000 msgTO  Wait 34  Wait 34  Wait 34  Wait   lt OFFENG gt      cls  Print at 1 1  OFF REQ MSG   DEC mCtr  eStat 0  EWRITE 0  eStat   PORTD 4 0  delayms 2000  mMode 3  gosub WriteData  gosub smsSend    goto delSMS    msgTO   cls  Print at 1 1  NO REQ MSG at     Print at 2 1  MSG   DEC mCtr    66    delayms 3000    PORTD 2 0    delSMS     SEROUT PORTD 6  T9600   AT CMGD   DEC mCtr 13     delayms 3000  next mCtr    return    smsSend   RQCtr 1  PORTB 7 1  delayms 3000    PORTB 7 0    startSending   cls  Print at 1 1   SENDING ALERT     DEC RQCtr    SEROUT PORTD 6   T9600    AT CMGS   34  09052777430  34 13     67    delayms 1000  if mMode 1 then  SEROUT PORTD 6   T9600    GPS              DEC4 latN      longl        DEC4    longN     elseif mMode 2 then    SEROUT PORTD 6   T9600    Engine ON    else    SEROU
29. PC   BASED GPS TRACKING WITH  IMMOBILIZATION CAPABILITY  THROUGH SMS    By    Aldous C  Eugenio  Kelvin Kristian M  Manalo  Jessiedaniel B  Maribojoc   Albert Joseph A  Pasion  John Paolo V  Ranara    A Design Report Submitted to the School of Electrical Engineering   Electronics Engineering  and Computer Engineering in fulfilment of  the Requirements for the Degree    Bachelor of Science in Computer Engineering    Mapua Institute of Technology  February 2010    APPROVAL SHEET    Mapua Institute of Technology  School of EECE    This Is to certify that we have supervised the preparation of and read the design  report prepared by Aldous C  Eugenio  Kelvin Kristian M  Manalo   Jessiedaniel B  Maribojoc  Albert Joseph A  Pasion  and John Paolo V   Ranara entitied PC     Based GPS tracking with Immobilization Capability  through SMS and that the said report has been submitted for final examination  by the Oral Examination Committee        2           hfe         Aida M  Alfaro Jocelyn F  Villaverde  Reader Design Adviser    As members of the Oral Examination Committee  we certify that we have  examined this design report  presented before the committee on December 10   2009  and hereby recommended that it be accepted as fulfillment of the design  requirement for the degree in Bachelor of Science in Computer  Engineering              Criseld4 B Loyola                        Panel Member Panel Member       This design report is hereby approved and accepted by the School of Electrica
30. PS GSM Tracker Unit   PC Server   Design Procedure Flow Chart  GPS GSM tracking unit Flow Chart  GPS GSM   PC Server Flow Chart  Complete Circuit Diagram   4MHz Crystal Oscillator Circuit  Limiting Resistor for LED  RED   Limiting Resistor for LED  GREEN   Transistor Base Resistor   Pull  Up Resistor in PIC16F877A  PIC16F877A PCB Layout   GPS Module PCB Layout   SPDT Relay Board PCB Layout    vil    ABSTRACT    GPS tracking in a vehicle with immobilization capability through SMS is a  server based device attached to the vehicle ignition wire  The device can support  tracking and immobilization to the vehicle when a SMS code is received by the  server  For tracking  the server sends a command to the device to request for  the GPS coordinates and sends it back to the server via SMS  The SMS is parsed  to get the X and Y coordinates and compared it to the database  After  comparison  the server sends the exact location of the vehicle to the one  requesting  In case the location is outside NCR  the server will send a message  to the on requesting that the vehicle is out of coverage  For immobilization  the  program uses a SMS code to turn on and off the relay board which is connected  to the ignition wire  The request code changes the value of the EEPROM to save  its last state to avoid reset on the relay board  When the system boots up  the  first thing that the PIC will do is to check for the value of EEPROM  For engine on  request  the relay is turned on and the value of the E
31. S module  Goo   Tracking firmware  Goo Tracking server  The GPS module that the designers  used in their system is based on 8 bit AVR RISC microcontroller which is low  power MCU with 32k ROM and 2k RAM and has several peripherals such as  UART  SPI  I2C to connect GPS GPRS module  MMC module and GPIO control    module     The GPS module has two functions  the GPS locates the device position  and the GPRS transmits the device location to the server  The I2C interface is  connected to GPIO Control module which an I O interface to control external  device such as car alarm or Electronic Control Unit  ECU  for vehicle    immobilization     The Goo Tracking firmware is the firmware that performs three phases   the initialization  the GPS position reading  and the GPS data formatted and  transmitted to Goo Tracking server via GPRS networks  The initialization phase  prepares the module for reading and transmitting location information  It is  composed of three functions  The first function is to initialize parameters on AVR    microprocessor for UART  SPI  GPIO and timer for GPS reading  The second    16    function is to initialize GPRS GPS module to set up parameters to warm up GPS  engine  to make a connection to a GPRS network and to connect to the server  via TCP IP socket  The third function is to initialize MMC module into SPI mode  for data read write  In the GPS position reading phase  the MCU sends a series  of AT commands to GPRS GPS module via the UART port  To acquire
32. T PORTD 6   T9600    Engine OFF      endif  delayms 1000  SEROUT PORTD 6   T9600   26     delayms 10000       if RQCtr gt 1 then    goto smsOut   else    i RQCtr RQCtr 1    goto startSending    68     endif    smsOut     delayms 1000    return    WriteData     HSerIn  Wait   GPGGA    UTC  Wait       DEC4 latWhole  DEC5    latDec  latI  Wait       DEC5 longWhole  DEC5 longDec  longI Wait       pfi     cls    Print at 1 1  latI      DEC4 latWhole     DEC4 latDec    Print at 2 1  longI        DEC5 longWhole      DEC4 longDec    latN latWhole  100    latN latN   latDec 10000    latN latN  60    69    latWhole latWhole 100  latN latWhole latN  longN longwhole  100  longN longN   longDec 10000  longN longN  60  longWhole longWhole 100    longN longWhole longN    cls  Print at 1 1  latI      DEC4 latN    Print at 2 1  longI        DEC4 longN    Return    End    70    APPENDIX C    SERVER SOURCE CODE    Imports System IO Ports  Imports MySgql Data MySqlClient      MESSAGE DELETING  Public Class Main  Dim mobile no 4  As String  Dim message 4  As String  Dim messagelocation As Integer  Dim default mobile no As String    09062884499   Dim gps mobile no As String    09396592140   Dim nameloc As String       Dim command As String  Dim MainSwitch As Boolean   False  Dim usbport As String    COM3   Private Sub Main Load ByVal sender As System Object  ByVal e As  System EventArgs  Handles MyBase Load  MainStatusLabel Text    Initializing       Timer Initial Start      End Sub    Private Sub
33. Then   messagectr   0  End If  Next    End Sub  Private Sub Timer_AutomaticMode_Tick ByVal sender As System Object  ByVal  e As System EventArgs  Handles Timer_AutomaticMode  Tick  Timer AutomaticMode Stop    clear  messages      MainStatusLabel Text    Reading SMS         Timer ReadMes Start      75    End Sub    Private Sub Timer ReadMes Tick ByVal sender As System Object  ByVal e As  System EventArgs  Handles Timer ReadMes Tick  Timer ReadMes Stop    init mes    MainStatusLabel Text    Reading SMS     Done     read sms    delete sms    MainStatusLabel Text    Checking SMS          CHECK FOR TRIGERRING MESSAGE  For index As Integer   0 To 4    If message index    String Empty Then    ElseIf message index  StartsWith      GPS     Then   This is a gps request   Send a appropriate sms signal to the device  default mobile no   mobile no index   command     lt GPSREQ gt    Timer SendingCommand Start    Exit Sub   ElseIf message index  StartsWith     ON      Then   This is a engine off request     Send a appropriate sms signal to the device  default mobile no   mobile no index   command     lt ONENG gt    Timer SendingCommand Start    Exit Sub   ElseIf message index  StartsWith     OFF     Then   This is a engine off request     Send a appropriate sms signal to the device  default mobile no   mobile no index   command     lt OFFENG gt    Timer SendingCommand Start    Exit Sub   ElseIf message index  StartsWith  GPS    Then     Locate this location   This is a reply message  send 
34. a      Emitter cut off current                         100   na                              uo        Collector emitter saturation voltage 1  100mA  1  10          or oz   v    tse ie             wemium     ue ass   v    paco     sc  opm   pee  worm        w        hy rank       100  300  C   200   600  D   400   1000        116    RALT R n MICROPROCESSOR CRYSTAL UNITS         FEATURES SERIES A  B  C    EXCELLENT CLOCK SIGNAL GENERATOR FOR CPU s HC 49 U  HC 51 U  AND UM 1    WIDE FREQUENCY RANGE        INDUSTRY STANDARD PACKAGES    SPECIFICATIONS     20   C TO  70     STANDARD  OPERATING TEMPERATURE RANGE  40   C TO  85     EXTENDED    STORAGE TEMPERATURE RANGE     C TO  126  C             LOAD CAPACITANCE 10 TO 32 pF OR SERIES    So CO AN NN  ELIT  pem     5 D 0  5      5  25 PPM MAXIMUM 75 cm DROP TEST IN 3 AXES ONTO A HARD  a nnn      FREQUENCY RANGE AND MODE OF OSCILLATION BY HOLDER TYPE     FUND  aon  507  con  SOT                  wmcxroamen   weecruer aaa         Toso he                 Sunn ue  GE                  ure  ESTE        TO SE M            PART NUMBERING SYSTEM       117       THE PRO NAME IN GPS    Shae      KH    Website  www gzxintucom    1  Introduction  1 1 General introduction       89      an ultra ministure 25 4   25 4   3 mm GPS engine board designed by low   139dBm and fast                                      navigation application  The stable  performance of    89 15 your best choice to be embedded in your portable device    1 2 Key Features Ny 
35. a  Mazza   6    12     Transition Slew Rate Voc            425  C        measured fron 43V t5 3 30  to V cr JV te 22          22222            42242 13 35  Lyra Pla an              5     9    TLL to RS 222  Normal Operation    er v         222 22242224 242 242 15 35  EN ee 5       MAZZA ON TAN      0  1  eren ay    amid   nn 98 3    RS 22 to TLL  Normal Operati  AE t  002272777722275        08    1     us                  __  Ub                       n    ng  ns          MAXIM 3    103     5V Powered  Multichannel RS 232  Drivers Receivers         i  AEN TD AN  VOLTAGE DOUBLER    Ch            y  CL VOLTAGE VENTER    6tcXVMW Occ X VIN       Figure    MAXP2OM AX  IIMA VA Pin Configuarton and Typical Opening Ciwut    ce uy mu    2 VIERE               PI MIMBERS IN TYPICAL OPERATING CIRCUIT ARE FOR            FACKAGES ONLY       Figure    MAX222IM AI  4  Pin Confgumtons and Typical Opersting               MAXIM         104          MICROCHIP    PIC16F87XA  Data Sheet    28 40 44 Pin Enhanced Flash  Microcontrollers       2003 Microchip Technology Inc  02395825    105    PIC16F87XA       Pin Diagram    PDIP  40 pin     PIC16F87A7 874A               Yr  RA NAN                              a  a       a          pg         QFP                               PIC16F877A  PIC16F874A                          o    _ Aae GAATOCHWCTOUT    RASA INDE aa       RADIAN DRESS WEP        106    PIC16F87XA       17 0 ELECTRICAL CHARACTERISTICS    Absolute Maximum Ratings T  Ambient temperature unde
36. age source    VI     Voltage load usually given in the LED datasheet   I   Current from source     R     limiting resistor    The power source of GPS LED is 3 3V and the forward current for  standard red LED is 40mA based from its datasheet  Substituting to the equation  will result to  R    3 3V   2V    40mA    R   32 5 ohms    Since the 32 5 ohms value for resistor is not available in the market  the    proponents used the nearest higher value which is 33 ohms           430 LED    a    GND    Figure 3 9 Limiting Resistor for LED  GREEN   Figure 3 9 uses the same formula in Figure 3 8 to compute for the  value of limiting resistor from port RD2  The voltage source comes from the port    pin RD2 of the microcontroller which is 4 3V  Maximum Voltage load for standard    38    green LED is 2 6V  The output current for RD2 is 4mA as shown in the  datasheet  Substituting the value          5                R    4 3V     2 61    4mA  R   425 ohms  Since there is no 425 ohms value for resistor in the market  the    proponents used 430 ohm resistor     3T1  870    C9014    GND    Figure 3 10 Transistor Base Resistor    The transistor base is connected in series with a resistor to limit the  current that will pass the base of the transistor when power is supplied  When  the current passes through the base of the transistor and if exceeds the  maximum allowable current for the transistor  the transistor will be damaged  that s why a resistor is connected to the base of the transistor 
37. atellite based Dispatch System  This technology implemented introduced the  Automatic Vehicle Location and Dispatch Systems or AVLDS  This new satellite   based AVLDS comprises different features  like the interactive voice responses   IVR   and computerized dispatch system  CDS  which are not included in the  proponents  design  since the objective is to track and disable the vehicle s  engine when it is carnapped from the owner  Another is the differential global  positioning system  DGPS  which is a wireless data communications  WDC    According to the article written by Ziqi Liao  an author of a book published in  IEEE Transactions on Engineering Management   GPS dispatch systems will play  an increasingly important role in the further improvement of their operations and    services  The findings of this study should have practical implications to the    development of sophisticated public transport system  Future studies can be  conducted to explore the implementation of on board vehicle navigation systems    in different environments      Another idea came from the design of A  Alheraish  named  Design and  Implementation of Home automation System  The design used GSM cellular  communication network and integrated it to a microcontroller and a GSM module  for wide range of applications  The microcontroller acted like a brain in of the  system  It is used to communicate with the modules when there is a need to  access in sending or receiving data  GSM module acted as an 
38. ch is equivalent to a 0 0001 decimal in the GPS    coordinates     50       Testing of GSM module    Another major part of the system is the GSM module  This module can  also be tested in a PC using serial port and a Hyperterminal 7 0  Vista Version    First way to test GSM module is to use a hyperterminal and use AT commands if  it is supported  If the said module is supported by a certain command  it will  output an  OK  to a certain AT command sent to the module  Table below shows    an example of AT command testing                       AT Command Reply of the hyper terminal  AT OK  AT CMGS   OK  AT CMGF   OK  AT CMGD   OK  AT CMGR   OK                Table 4 2 AT commands reply table    The given AT commands in Table 4 2 are the basic commands that are  needed to send  receive  and delete messages  The reply    OK    of the computer  only means that the computer is communicating to the GSM module  The    proponents used AT CMGS    09272872312    CR   hello  lt ctri  Z gt   for testing    51    the module in sending a SMS message  The recipient 09272872312 received the  text message  hello  after commanding the GSM module in the hyperterminal   The command  AT  with a reply of  OK  means that the PC and the GSM module  are communicating to each other  AT  CMGF is a command that sets the GSM  module reading format  AT CMGR is an AT command that shows the message in  a specified index  The proponents tested the GSM module by typing in the  hyperterminal AT CMGR 0 and reply 
39. dating its location  A 2 row Serial LCD is used to show the output of    44    the GPS module  The default or raw data that a GPS module receives are  continuous streams of data    GPGGA  161229 487 3723 2475 N 12158 3416 W 1 0 9 0 M    0000 18  which  includes different information  altitude  velocity  position  time  number of  satellites used  etc   in 1 stream of lines starting with a     sign  The only data  that the proponents need is the longitudinal and latitudinal coordinates in a   GPGGA format which is the number that is before the letter    N    or  S  and after   W  or    F     A routine in the PIC program that parses the streams of data is needed  to extract the needed information regarding the GPS location  After extracting  the required information  it is now converted to decimal degrees value of  longitudinal and latitudinal format  The converted values can now be used as the  GPS position of the module and can be verified using Google Earth or Google    Maps  Below is a table that shows the testing of the GPS module in different          locations   Vehicle Exact Coordinates GPS Server Server  Location Received response   response result  N and E time time location  Mapua Institute of Mapua    Techonlogy  Manila Institute of  Point 1   Near 14 5907   121 9779   62 seconds   3 seconds Technoloy        IEEE  Muralla Street   Manila City   Mapua Institute of Mapua    Techonlogy  Manila Institute of  Point 1   Near 14 5907   121 9779   42 seconds   4 seconds Tec
40. ds   near SM Sta  Quezon City Mesa   Manila  City   Aurora Boulevard Aurora  near SM City Boulevard  Centerpoint  14 6065   121 0198   53 seconds   3 seconds   near SM Sta  Quezon City Mesa   Manila  City   Aurora Boulevard Aurora  near SM City Boulevard  Centerpoint  14 6065   121 0195   55 seconds   4 seconds   near SM Sta  Quezon City Mesa   Manila  City   Santolan Road EDSA near  corner EDSA  San   14 6108   121 0547   89 seconds   5 seconds   Camp Krame   Juan Metro Manila San Juan  Metro Manila  Santolan Road EDSA near  corner EDSA  San   14 611   121 0557   45 seconds   4 seconds   Camp Krame   Juan Metro Manila San Juan  Metro Manila  Santolan Road EDSA near  corner EDSA  San   14 6111   121 0556   69 seconds   3 seconds   Camp Krame   Juan Metro Manila San Juan  Metro Manila  Santolan Road EDSA near  corner EDSA  San   14 6109   121 0556   57 seconds   3 seconds   Camp Krame   Juan Metro Manila San Juan  Metro Manila  Santolan Road EDSA near  corner EDSA  San   14 6108   121 0556   34 seconds   3 seconds   Camp Krame   Juan Metro Manila San Juan  Metro Manila  E Rodriguez E  Rodriguez  Avenue corner Avenue cor  Katipunan Avenue    14 6145   121 0708   35 seconds   3 seconds Katipunan  Pasig City Near Petron   Pasig City   E Rodriguez E  Rodriguez       48                                           Avenue corner Avenue cor  Katipunan Avenue    14 6145   121 0714   45 seconds   3 seconds Katipunan  Pasig City Near Petron   Pasig City   E Rodriguez E  Rodriguez  Avenue c
41. dustrial   Continued     Standard Operating Conditions  unless otherwise stated   Operating temperature  40       TAS 65  C for Industrial  DC CHARACTERISTICS  40     5 TAs  125  C for extended    Operating voltage Voo range as described in DC specification     40     9  85      lot   1 6 mA           4 5      40     10  85                 ICH    3 0 mA  Voo   4 5V   40  C 9  85  C    Capacitive          2  05  2 pin        All VO pins and OSC2  RC mode   CB SCL  SDA  2   mode     Using EECON to read wrtte     Waan   min  operating voltage  Using EECON to read wrrte            min  operating voltage         These parameters are Characterized but not tested      Data in    Typ    column is at SV  25  C unless otherwise stated  These parameters are for design guidance  only and are not tested    Note 1  in RC oscikator configuration  the OSC 1 CLKI pin is a Schmitt Trigger input  It is not recommended that the   PIC16F57XA      driven with extemal clock in RC mode    2 The leakage current on the MCLR pin is strongly dependent on the applied voltage level  The specified levels  represent normal operating conditions  Higher leakage current may be measured at different input voltages    3  Negative current     defined as current sourced by tne pin     111    RT9163    500mA Low Dropout Positive Voltage Regulator    General Description    The RT8183 is a positive low dropout regulator designed  for applications requiring low dropout performance at full  rated current  The device is
42. e Design  Scope and Delimitation    Definition of Terms    Chapter 2  REVIEW OF RELATED LITERATURE AND STUDIES    Chapter 3  DESIGN PROCEDURES    Block Diagram  Data Gathering  Design Procedure  System Flowchart  Circuit Diagram  PCB Layout    Chapter 4  TESTING  PRESENTATION AND INTERPRETATION OF DATA  Testing the Whole System    Testing of GSM Module  Testing Engine Off On Request    vi    vii    viii    m    NGABA YY WU       Chapter 5  CONCLUSION AND RECOMMENDATION    Conclusion  Recommendation    BIBLIOGRAPHY    APPENDICES    Appendix A  List of Materials   Appendix B  PIC Program   Appendix C  Server Source Code   Appendix D  Server Software Screenshots  Appendix E  Prototype Pictures   Appendix F  System Requirements  Appendix G  User s Manual and Installation  Appendix H  Datasheets    1N4001 General Purpose Rectifiers   1N4148 High Speed diodes   Maxim Max220 Max 249   Microchip PIC87XA   RT9163 Low Dropout Positive Voltage Regulator  STC9014N NPN Silicon Transistor  Microprocessor Crystal Units   M 89 GPS Module    56    56  57    58    Table 2 1   Table 4 1   Table 4 2   Table 4 3     LIST OF TABLES    AT Commands   System Testing   AT Commands reply Table  Engine Off On Testing    vi    Figure 2 1   Figure 2 2   Figure 3 1   Figure 3 2   Figure 3 3   Figure 3 4   Figure 3 5   Figure 3 6   Figure 3 7   Figure 3 8   Figure 3 9     Figure 3 10   Figure 3 11   Figure 3 12   Figure 3 13   Figure 3 14     LIST OF FIGURES    GSM Module Circuit   RS 232 Driver Circuit   G
43. e satellite which is very accurate  Overall the functionality of the design can  greatly contribute to resolving problems on carnapping in the country  Sooner or  later  the design will be introduced to the market as a reliable product for    tracking and security purpose for automotives     56    Recommendations   The proponents recommend to individuals interested to the design to  greatly improve the tracking functionality as well as the security functions   Tracking of the vehicle as recommended by the proponents must be broader  than NCR to increase the reliability of the system within Luzon  In this way   outside the NCR will not be considered to be a dead spot by the computer  server  For better and faster way to track the vehicle  the proponents also  recommend that the tracking must be done in real time  Furthermore  they  encourage that all interested researchers should find a way to minimize the  overlapping of messages when simultaneous testing is done  The proponents  also recommend that the interface between the design and the car must be done  using the ECU of the car  But this method is much complicated  costly  and affect        dangerous   that   might the   cars   performance     57    BIBLIOGRAPHY     Marine Differential GPS   Satellite Navigation  Trinity House   IEEE Transactions on Consumer Electronics  Vol  50  No 4 November 2004   A Beginner s Guide to GNSS in Europe  by IFATCA     GPS Overview from the NAVSTAR Joint Program Office  Retrieved December 
44. ected to 5V  A 4MHz crystal oscillator is used to  PIC16F877A as clock input for instruction cycle  The 2 33pF capacitors are  connected parallel to the oscillator to trim the oscillating frequency down to  4MHz  GSM module is directly connected to port RD7 and RD6 without any  interface  The relay board is connected to RD4  A LED in series with 430 ohms    resistor connected to RD2 indicates the reading of the GSM module     The relay board circuit is controlled by the microcontroller because it is  connected to RD4 of the microcontroller  Whenever RD4 is in low state  emitter  of the transistor connected in ground is open and the supply voltage of the relay  is 12V thus  making it in open state  Whenever RD4 is high  emitter is close thus   voltage supply of the relay changes to 12V 0V allowing the coil of the relay to  energize  A wire connected in output pin of the relay cuts the connection of the  ignition wire  The diode acts a protection to components that may be damaged  when the coil de energized when supply is cut off  The PNP transistor is used as   a switch that also has a high current gain due to its common emitter    configuration  LED indicates the status of the relay      35       GND GND    Figure 3 7 4 Mhz Crystal Oscillator Circuit   Figure 3 7 shows the 4Mhz crystal oscillator connected to the  microcontroller  The crystal oscillator needs 2 parallel capacitors to trim the clock  resonance to desired clock frequency  Without oscillator capacitors  the cloc
45. ehicle  tracking system to perform vehicle immobility  The applied technology in the  design is based on the current and existing technology and still evolving  depending on its application  Car owners can use the design that travels within  the vicinity of National Capital Region  NCR   Car owners can not only track their  cars but they can also immobilize them  The design can give ideas to other  designers to improve and use the GPS tracking and immobility to its maximum  potential    The impact of this design will open the local community in developing  more reliable tracking and security system for their vehicles  The design can  lighten up the work of the authorities that are searching for stolen vehicles    equipped with the tracking device  Globally  the design will contribute to    maximize the use of GPS and enhance existing design to perform more  accurately    Scope and Delimitation   The design can only perform those that are listed below and the components  that are presented in the design  Scopes of the design are as follows    a   The design uses a GPS module in the device    b   A GSM module is used for both the device and to the computer terminal    C   A SIM card is used for both of the GSM modules    d   Request codes through SMS messages that are recognized by the  microcontrollers are pre defined by the programmers in who it will validate  and decide on what operation to be done    e   A SMS starting with    GPSREQ   format is used for vehicle tracking   
46. em and temperature  also have an  Impact on the curant consumption   The test conditions Tor   Ipo measurements In active operation                 OSC1   extera Square ware  fan rali n rail  all NG pins tri eaied  pulled ip Vou                      WOT enabiedidisabled as                  3  The power down current In Sleep mode does noi depend on the oscillator type  Power down current 15  measured with the part in Sieep mode  with      VO ping In high impedance state and tied to Voo and Ves   4  For RC oec configuration  currant through          is not Included  The current through the resistor can be  estimated by the formuta Ir   Voo 2Rext  mA  wiih Rex in       5  Timer  oscillator  when enabled  adds approximately 20 pA to the specification  This value le trom  characterization and     for design guidance only  This is not tested    amp  The A cuirent is the additional curent consumed when thls peripheral Ig enabled  This current should be  added to ihe base        of      measurement   7T  When BOR 15 enabled  the device will operate comectly unti the Vaca voltage trip point Is reached           109    PIC16F87XA       17 2 DC Characteristics  PIC16F873A 874A 876A 877A  Industrial  Extended   PIC16LF873A 874A 876A 877A  Industrial     Standard Operating Conditions  uniess otherwise stated    Operating temperature  40  C  lt  TAS 485 C    or Industria   DC CHARACTERISTICS  407    lt  TA s  125  C for extended   Operating voltage Voo range as described in DC specificatio
47. en BOR     enabled  the device wil operate correctly until the Veor voltage trip point le reached        108    PIC16F87XA       17 1 OC Characteristics    PICIGFB73A 8T4A BTGA 8T7A    Industrial  Extended                                                       Industrial   Continued     PICIGLFBT3AIBTAAIB7EATETTA Standard Operating Conditions  unless otherwise stated    Industrial  Operating temperature  40 C x Tas 485  C for Industrial    Standard Operating Conditions  unless otherwise stated            in Operating temperature      4D C  lt       lt   85  C for Industrial  i  AD C   TA x  125 C for extended    Param   Characteristic     Supply Current 2   16LFETXA 20 m    XT  RC gsc configurations   Foec   4 MHz  Yoo   3                      mA      RC psc configurations   Poet   4 MHz  VoD   5 5V    TOLFaTRA 35 pA     osc configuration   Pomc   32 kHz  VDD   3 DV            dl          16F87XA  T HS oec configuration   sss  0015 Algor    Brown out uA   BOR enabled  VDD   5 0V   eee lin d NI    Legend  Rows with standard voltage device data only are shaded for Improved readability   t Data in              column is at Sv  25      unless otherwise stated  These parameters are for design guidance  only and are not tested   Mots 1  This is the mit to which Voo can be lowered without losing RAM data   2  The supply cument is mainly a function of the operating voltage and frequency  Other factors  such as NO  pin baging  ewliching rate  oscHator type  Internal code execution patt
48. haracteristics    Figure 1  Forward Current Derating Curve      20 40 9 00 100 120       00 190  AMBIENT TEMPERATURE    C     Figure 3  Non Repetitive Surge Current    to  E     C                    5         o  w  8  3  E  i          4 8 510 20 40 60 100  KUNBER OF CYCLES AT 6092    REVERSE CURRENT  p AI             08    FORWARD VOLTAGE  Vj          20 ag 60 80 190 120  RATED PEAK REVERSE VOLTAGE           95    sapay esodung pauan     700tNI   LOOPNL    DATA SHEET    1N4148  1N4448  High speed diodes       Product specification 2002 Jan 23  Supersedes data of 1999 May 25    P S PHILIPS    Philips Semiconductors Product specification       ee       High speed diodes 1N4148  1N4448  FEATURES DESCRIPTION     Hermetically sealed leaded glass        1N4148 and 1N4448 are high speed switching diodes fabricated    planar  SOD27  DO 35  package technology  and encapsulated in hermetically sealed leaded glass 50027      High switching speed  max 4ns  00 35  packages      General application     Continuous reverse voltage   max  75 V      Repetitive peak reverse voltage                  100 V                    3            Repetitive peak forward current                    450          The doves are type branded  APPLICATIONS      Fig 1 Simplified outline  50027  DO 35  and symbol     High speed switching          LIMITING VALUES  in accordance with the Absolute Maximum Rating System  IEC 60134       Pie  total power dissipation   Tans   25  C  note 1       juncontemperatsre       
49. hnoloy                          IEEE  Muralla Street   Manila City   Mapua Institute of Mapua       45          Techonlogy  Manila    Institute of                                              Point 2  Open 14 5905   121 9783   38 seconds   5 seconds Technoloy   Parking Near Muralla Street  Basketball Court    Manila City   Mapua Institute of Mapua  Techonlogy  Manila Institute of  Point 2  Open 14 5904   121 9784   54 seconds   3 seconds Technoloy   Parking Near Muralla Street  Basketball Court    Manila City   Mapua Institute of Mapua  Techonlogy  Manila Institute of  Point 3  Along 14 5909   121 9785   80 seconds   3 seconds Technoloy   Muralla Street  Muralla Street   Manila City   Mapua Institute of Muralla Street  Techonlogy  Manila Intramuros  Point 3  Along 14 591   121 9784   56 seconds   4 seconds   near Mapua  Muralla Street  Institute of  Technology   Manila City   Jollibee along Marcos  Marcos Highway  Highway near  Antipolo City 14 6216   121 1084   45 seconds   3 seconds Sta  Lucia   Marikina  City   Jollibee along Marcos  Marcos Highway  Highway near  Antipolo City 14 6215   121 1084   85 seconds   3 seconds Sta  Lucia   Marikina  City   Jollibee along Marcos  Marcos Highway  Highway near  Antipolo City 14 6215   121 1084   40 seconds   3 seconds Sta  Lucia   Marikina  City   Jollibee along Marcos  Marcos Highway  Highway near  Antipolo City 14 6216   121 1083   47 seconds   4 seconds Sta  Lucia   Marikina  City   Jollibee along Marcos  Marcos Highway  Highway 
50. inSwitch   True  ManualModeToolStripMenuItem Checked   False  AutomaticModeToolStripMenuItem Checked   True  Label2 Enabled   False   Label3 Enabled   False   txtGPSE Enabled   False   txtGPSN Enabled   False   btnUp Enabled   False    72    btnDown Enabled   False   btnLeft Enabled   False   btnRight Enabled   False   btnLocate Enabled   False   Timer AutomaticMode Start    End Sub    Private Sub AddCoordinatesToolStripMenuItem Click ByVal sender As  System Object  ByVal e As System EventArgs  Handles  AddCoordinatesToolStripMenuItem Click   Coordinates Management ShowDialog    Coordinates Management Dispose    End Sub    Private Sub init mes    Dim SMSPort As New SerialPort  Dim portdata As String  Dim msgctr As Integer   0  Dim startCMGR As Integer  With SMSPort   PortName   usbport   BaudRate   115200   Parity   Parity None   DataBits   8   StopBits   StopBits One   Handshake   Handshake None   DtrEnable   False   RtsEnable   False   NewLine   vbCrLf  End With  SMSPort Open    SMSPort WriteLine  AT CMGF  1    Threading  Thread Sleep 100   SMSPort WriteLine  AT CMGR    amp  msgctr   Threading  Thread Sleep 100   portdata   SMSPort ReadExisting  startCMGR   portdata LastIndexOf   CMGR       SMSPort Close    msgctr   msgctr   1  End Sub    Private Sub read_sms    Dim startCMGR As Integer  Dim messagectr As Integer   0    73    Dim portdata As String   Dim SMSPort As New SerialPort   With SMSPort   PortName   usbport   BaudRate   115200   Parity   Parity None   DataBits   8  
51. interface between    the microcontroller and the GSM network    Nowadays  the mode of transmitting data by cellular networks is the GSM  or the Global system for mobile communication  One option in the GSM network  for transmitting data is the SMS or the Short Message Service  The designers  chose the SMS as a mode of transmitting the data  The designer also used a  microcontroller that acted as an interface between the GSM module and the  Personal Computer and GPS module and the automobile  The controller takes the  data from the GPS module and translates it to AT commands or the Attention  commands so the module can understand it  GSM module takes the AT  commands from the microcontroller  Figure below shows a GSM module circuit     The module is composed of a SIM card holder  which holds the SIM to be used in    12    the module  GSM transmitter receiver which transmits and receives the SMS  message and a GSM module that is connected to a microcontroller  GSM module  can be easily connected to any ports of a microcontroller and doesn t need any    interface circuit for it to function normally     va  JOO RET AW DTR    1 GNO CLE ENG Mi SA 488       a TAO    SIM Card    EMI RET ATS   s nus Seen        z    Transmitter     Receiver    GSM Module  OSM Module Connector       Figure 2 1 GSM Module Circuit    SMS Security System is a design made by some Mapuans where a  controller is used to control a cellular phone attached to a receiver box so that it  can send a message to the
52. itch that  connects the battery to the ignition system and other electrical devices     Source  Michael Bowler   The Great Book of Automobiles      13   Relay   is a simple electromechanical switch made up of an electromagnet  and a set of contacts     Source  I  Sinclair  J  Dunton   Practical Electronics Handbook 6  Edition     14   UART   also known as Universal Asynchronous Receiver Transmitter  is a  piece of computer hardware that translates data between parallel and serial  forms  UARTs are commonly used in conjunction with other communication  standards such as EIA RS 232  Source  Dario J  Toncich   Data Communication    and Networking application for Manufacturing Industries      15   Serial Port   is a serial communication physical interface through which    information transfers in or out one bit at a time     Source  I  Sinclair  J  Dunton   Practical Electronics Handbook 6  Edition     10    Chapter 2    REVIEW OF RELATED LITERATURE AND RELATED STUDIES    The main concept of this design was established with the help of some  existing designs  studies  and principles while conducting this design  This  organized and synthesized collection of citations of related studies and principles    helps in achieving the design objectives     Part of this idea came from the three companies in Singapore  namely  Comfort Transportation Pte Ltd   with its subsidiary Yellow Top Cab  Trans Island  Bus Services  and CityCab Pte Ltd  that implemented their taxi dispatching using  s
53. k  frequency can be higher than 4 Mhz  Load capacitance is usually given in the  datasheet of the crystal oscillator  The circuit only needs 4 Mhz of clock  frequency for the operation of the microcontroller that s why the proponents  need to compute for the oscillator capacitors  The formula for the capacitors is    C1 C2  2 X Cload     Cparasitic     Cinput     Where   C1  amp  C2   are the parallel capacitors in the oscillator   Cload     is the capacitance load given by the crystal manufacturer     Cparasitic     is the Capacitance parasitic  usually 5pF for computation     36    Cinput     is the Capacitance input     The crystal oscillator datasheet requires 19pF of capacitance load and a  5pf capacitance parasitic  Since there is no capacitance input  the value for it is  0  Substituting the values to the formula given above indicates that    C1   C2    2 X 19pF     5pf   0   C1   C2   38pF   5pF    C1   C2   33 pF    33           at    LED  GND    Figure 3 8 Limiting Resistor for LED  RED     Limiting resistor for LED is very important when using an LED in a circuit   This resistor limits the current that will flow from the power source to the LED   Connecting LED directly to power source may destroy the LED for it will exceed  its peak current especially for high voltage source  For Standard Red LED  the  maximum value of the Voltage Load is 2V  Computing for the required limiting  resistor for Standard Green LED is            6        1    37    Where    Vs     Volt
54. l  Engineering  Electronics Engineering  and Computer Engineering as fulfillment of  the design requirement for the degree in Bachelor of Science in Computer  Engineering     Dr  Felicito S  Caluyo  Dean  School of EECE    24 3 als    li    ACKNOWLEDGEMENT    First of all  we would like to thank God for giving us the strength to  pursue this paper  not only for complying with the requirements but doing this  for ourselves to be knowledgeable enough before we graduate   For the wisdom  and knowledge that God has given to us  we offer this paper for His greatness  and we believe that He is the best engineer in the world  We would also like to    acknowledge the support and assistant of our adviser Engr  Jocelyn     We also thank for the support of our family and friends for giving us  financial and moral support  without them  this paper would be impossible to  finish  We would also like to acknowledge the people who helped us especially in  installing our prototype in the car  Lastly  for our course facilitator Engr  Noel B   Linsangan  we thank him for teaching us on how to be responsible and for  sharing with us valuable inputs about our paper and for giving us the chance to    learn a part of his expertise     ill    TABLE OF CONTENTS    TITLE PAGE   APPROVAL SHEET   ACKNOWLEDGEMENT   TABLE OF CONTENTS   LIST OF TABLES   LIST OF FIGURES   ABSTRACT   Chapter 1  DESIGN BACKGROUND AND INTRODUCTION  Background  Statement of the Problem  Objectives  Significance and Impact of th
55. l components and sre recorrenended for appli    3 State Driver and Receiver Outputs  catons where printed circuit board space is critical   Open Line Detection  MAX243     Applications     Ordering Information    Portable Camputers PART TEMP RANGE                             220                        t 6Plastic DIP               220  5   FG to  r 16 Narrow SO    6tcXVMW 0Occ XVIW    Inter  ace Translation MAKZ20C WE         1700  16 Wide SO  Battery Powered   5 232 Systems MAX2200 0        to   TOC Dice   Multidrop RS 232 Networks MAX220EPE APC to  85     16 Plastic DIP    MAX220ESE APC to  85     16 Nerrow SO  MAX220E WE  40     to 485  C 16 Wide SO  MAX220E JE APC to 4 85 C 16 CERDIP    MAX220MJE SC to 4126C 16               information continued at end of data sheet    Contact factory for dice specia mor s    Selection Table       Nomina SHDN Ax  ot Cap  Valus  amp Throo  Activoim Dala Rate    gg    MAX241 and recuvors active in shuldown  Aio    50      dyan wth shutdown   Stancard  5   UN or batary sunp  es   sane ncr as VACI    Ingay daraga   Higher Sow tain           caps   No          cunc   No aaral cans  5         11       Heese Sidi    Na anara caps   Shutdown  troo stato  Compionants EM PC sonal port  Reptaces 1488 unc 1485   Standard  5   NA or bakary supp  as    ango pacage solution      IBM PC sara port               High saw nale                  wo      modos  High        nate        cups  tos shutdown Todos  High              int            nine operating   
56. level to the MELA pin rather than  pulling this pin directly to Ves   3  PORTO and PORTE are not Implemented on PICTSFETSA S76A devices      NOTICE  Stresses above those listed under    Absolute Maximum Ratings  may cause permanent damage to the   device  This Is a stress rating only and functional operation of the device at those or any other conditions above those       Indicated    ee Ba Is not Impiled  Exposure to maximum rating conditions for    107    PIC16F87XA       171 DC Characteristics      PICTGFB73A 8TAAI B7GAIBTTA  Industrial  Extended                                                       Industrial     PICTELFB73A BTAAI87EAJBTT A Standard Operating Conditions juniess otherwise stated    Indus brat  Operaing temperature  AIC   TA s  65  for Industrial    i Standard Operating Conditions  unisas otherwise stated   iret Operating temperature    40  C   TA     85 C for Industrial  mms 5 ANG  lt  TA x  125 C for extended    Param Charactarlatic     Supply Voltage    18LFE7XA   20 55   V  AI configurations   DC to 10 MHz   16FETXA   40      configurations  VBOR JE enabled  Fax   14 MHZ    0002 RAM Data Retention  voltage      DOD3 Von Start Voltage to Ves all      14 5    Power on  ensure Internal Power on Reset  POR   for details  Reset signal   1 Yoo Rise Rate to ensure Wine   See Section 14 5  Powar on  Internal Power on Reset Reset  POR   for detaile  signal   pons  vecon    Brown out Resat 3 65 435   v   BODEN bit in configuration word  voltage enabled    Lagend 
57. mitted by the satellites   Source  GPS Overview from the NAVSTAR Joint Program Office  Retrieved  December 15  2006   7   ITS   Intelligent Transport System  are those utilizing synergistic  technologies and systems engineering concepts used to develop and improve  transportation systems of all kinds    Sources  Monahan  Torin  2007   War Rooms  of the Street  Surveillance    Practices in Transportation Control Centers    8   Radio Navigation   relies on radio frequency sources with known locations   Sources  Global Positioning Systems  Inertial Navigation  and Integration    Mohinder S  Grewal  Lawrence R  Weill  and Argus P  Andrews    9   Microcontroller   is a small computer on a single integrated circuit  consisting of a relatively simple CPU combined with support functions such as a  crystal oscillator  timers  watchdog  serial and analog I O etc     Source   Jack Ganssle and Mike Barr   Embedded Systems Dictionary      10   SMS   Short Message Service  is a communication service standardized in  the GSM mobile communication system  using standardized communications  protocols and allowing the interchange of short text messages between mobile  telephone devices   Source  IEEE Transactions on Consumer Electronics  Vol  50  No 4 November  2004   11   Transceiver   is a device that can transmit and receive analog or digital  signals    Source  A  J  Kloneck   Simultaneous sending and receiving system     12   Ignition key   is the key used in a motor vehicle to turn the sw
58. n    with Schmitt Trigger buffer  MCLR  OSC1     RC mode   OSC1  In XT and LP modes   OSC1  In HS mode   Ports        and RC4   wiih Schmitt Trigger buffer  wth SMBus i   For Voo   4 5 to 5 5V    4 5V  lt  VDD  lt  5 5V  For entire Voo range    with Schmitt Trigger buffer    OSC1  In XT and LP modes   OSC1  in HS mode   OSC1  in RC mode   Ports RC3 and RCS   with Schmitt Trigger buffer  wth SMBus 14 For Voo   4 5 to 5 5V    D044A 5 5  PORTS Weak Pull up Current pA  Vno   SV  VPN   Vss    40  C TO   65 C    input Leakage Currant     4  D060 H   pA  Vss  lt  VPN s Voo   pin at high Inpedance  0061 MCLR  RAA TOCKI 35 pA  Vss  lt  VP N           0063 05C1 15 pA  Vss   VPN  lt  VDO  XT  HS  and LP osc configuration    These parameters are characterized but not tested     Data       Typ  column is at SV  25  C unless otherwise stated  These parameters are for design guidance  only and are not tested   Note 1  In RC oscillator contguration  the OSC 1 CLKI pin 5 a Schmitt Trigger Input     is not recommended that the  PIC16F57XA be driven with external clock      RC mode   2  The leakage current on the MCLR pin is strongly dependent on the applied voltage level  The specified levels  represent normal operating conditions  Higher leakage current may be measured at different Input voltages   3  Negative current is defined as current sourced dy the pin        110    PIC16F87XA       17 2 DC Characteristics  PIC16F873A 874A 876A 877A  Industrial  Extended   PIC16LF873A 874A 876A 877A  In
59. n on the vehicle  It is only capable to track the exact  location of the vehicle by sending its exact location on the GPS receiver and  through the owner    In this scenario  the proponents introduced a way to track the vehicle on  its current location using a SMS triggered GPS tracking device that can track and  immobilize the vehicle where ever the owner s location is by sending a SMS  message to the device attached to the car  Immobilizing the car is by cutting off  engine power with a SMS code decoded by the microcontroller to instruct the    relay connected to the ignition wire to open     Objectives of this Design    The general objective of the design is to design a tracking and security  system to be implemented on a vehicle with the use of a computer and GSM  module that supports GPS for locating the target through SMS message and    implementing security by cutting the power source of the car using relay     The following are the specific objectives of the design     a   To interface the device using ignition wire     b   To immobilize the vehicle by automatically disabling the car s engine  through SMS    C   To locate the vehicle travelling within NCR region remotely using a cellular  phone    d   To create a database for tracking using mySQL containing locations in    NCR region     Significance and Impact of the Design   Most of the existing vehicle tracking devices in the market does not  support immobilization  This design is intended to improve the existing v
60. near  Antipolo City 14 6215   121 1084   54 seconds   5 seconds Sta  Lucia       46           Marikina                                           City   Ayala Boulevard Ayala  corner San Boulevard  Marcelino  Manila   14 5889   120 9846   30 seconds   5 seconds corner San  City Marcelino  near SM City  Manila   Manila City   Ayala Boulevard Ayala  corner San Boulevard  Marcelino  Manila   14 5889   120 9847   67 seconds   5 seconds corner San  City Marcelino  near SM City  Manila   Manila City   Ayala Boulevard Ayala  corner San Boulevard  Marcelino  Manila   14 5889   120 9847   55 seconds   3 seconds corner San  City Marcelino  near SM City  Manila   Manila City   Ayala Boulevard Ayala  corner San Boulevard  Marcelino  Manila   14 5888   120 9847   48 seconds   3 seconds corner San  City Marcelino  near SM City  Manila   Manila City   Ayala Boulevard Ayala  corner San Boulevard  Marcelino  Manila   14 5889   120 9846   50 seconds   4 seconds corner San  City Marcelino  near SM City  Manila   Manila City   Aurora Boulevard Aurora  near SM City Boulevard  Centerpoint  14 6064   121 0195   94 seconds   4 seconds   near SM Sta  Quezon City Mesa   Manila  City   Aurora Boulevard Aurora  near SM City Boulevard       47                                                          Centerpoint  14 6064   121 0195   56 seconds   3 seconds   near SM Sta  Quezon City Mesa   Manila  City   Aurora Boulevard Aurora  near SM City Boulevard  Centerpoint  14 6064   121 0197   67 seconds   3 secon
61. nition of Terms    1   Differential GPS  DGPS    is a technique for reducing the error in GPS   derived positions by using additional data from a reference GPS     Source   Marine Differential GPS   Satellite Navigation  Trinity House     2   DTMF   Dual Tone Multi Frequency  signalling is used for telecommunication  signalling over analog telephone lines in the voice frequency band between  telephone handsets and other communications devices and the switching center   Source  IEEE Transactions on Consumer Electronics  Vol  50  No 4 November    2004    3   GNSS   Global Navigation Satellite Systems  is the standard generic term for  satellite navigation systems that provide autonomous geo spatial positioning with  global coverage    Source   A Beginner s Guide to GNSS in Europe  by IFATCA     4   GPS   Global Positioning System  GPS  is part of a satellite based navigation  system developed by the United States Department of Defense under its  NAVSTAR satellite program    Source  GPS Overview from the NAVSTAR Joint Program Office  Retrieved    December 15  2006    5   GPS orbit   fully operational GPS includes 24 or more  28 in March 2006   active satellites approximately uniformly dispersed around circular orbits with  four or more satellites each    Source  GPS Overview from the NAVSTAR Joint Program Office  Retrieved    December 15  2006    6   GPS signals   each GPS satellite carries a cesium and or rubidium atomic  clock to provide timing information for the signal trans
62. nnector    87    System wiring       Negative     power  Positive     power terminal  Relay terminal   Relay terminal    Installation   1  Find a secured place in the vehicle where the device can be mounted    2  Located the device wiring as shown above    3  Connect the Positive     terminal to the vehicle s positive power supply  that is directly connected to the vehicle s battery    4  Connect the Negative     terminal to any part of vehicle s body   Example   bolts  screws  etc     5  Cut off the ignition wire of the vehicle that is coming to the ignition  switch    6  Connect the other end of the ignition wire to a single relay terminal and    connect the other end to the remaining relay terminal     Caution  Ask for a help to an authorize auto electrician for locating the wire  needed to be cut off  Incorrect wiring connection could damage the vehicle  electrical operation     88    System Antenna       Note  System antenna must be connected outside the vehicles body and must  always be facing towards the sky     Getting Started   1  Turn on the system switch    2  The relay status indicator will tell where the system is at ON or OFF  state    3  Wait for about 1 2 minutes for GPS initialization    4  When the device is ready the reading message indicator will lit up  every 3 5 seconds    5  The system is now ready for any operation    89    Software Installation    System Requirements    OS  Windows XP or Windows Vista   Processor     1 0 GHz or faster  XP  or 2 0 GHz 
63. o   AT CMGD  ALL    lt CR gt              14                   AT CMGD delete messages  Note  Delete all  messages    AT command is used to   AT CGMI know the modems AT CGMI lt CR gt    manufacturer    AT command is used to   AT CGMM know the modems AT CGMM lt CR gt    model              Table 2 1 AT Commands  Table 2 1 only shows some of the AT commands that are available on  most of the modems available in the market  AT commands of GSM modems  vary depending on the manufacturer but there are still AT commands that are    common to every manufacturer     Another prototype named SMS Commander Car Alarm System  made by  Kroby  was a good example to base our design project  It used a PIC32  microcontroller installed in the car system  It has a control on off function via  SMS  where one can query the alarm system   s on off status anytime  The  position of the car can be known by simply texting the car using a coded  message  and then the coordinates of its present location will be sent to the  owner s cellular phone  The car movement can be followed on line using GPRS  and a compatible software  The group s design can be based on how the SMS    Commander enables text messages to be read and analyzed by the car  Other    15       commands such as stop or lock can be easily done by the car if they will be able  to make the car understand SMS messages    The system in the article entitled  Real Time Tracking Management  System using GPS  GPRS and Google earth is composed of a GP
64. of  OK  is received  This means that  there  is no message saved located in index 0 of the sim card inbox  AT CMGD is a  command that deletes a message depending on the specified index in the sim  card  AT CMGD 0 deletes a message in index 0 of the sim card  The testing    shown above is also used in testing GLOBE Tattoo for using it as a GSM module     Testing Engine Off On Request    The system is also tested using the Engine Off On capability  For safety  purposes  the test is done in a stationary vehicle in which the vehicle is turned  on  The proponents decided to perform this kind of test to prevent accident   Even if the vehicle is stationary  the immobilization is still applicable  Below is a  table that shows the time it takes for the server to send a confirmation message    to the requesting party when Off On engine is requested     52                         Request   Vehicle Exact GPS Server SMS message  Code Location response response sent as  time time confirmation   lt OFFENG gt  Mapua  Institute of 62 seconds 4 seconds Your vehicle is  Techonlogy  now  Manila Point 1 immobilized     Near IEEE    lt ONENG gt  Mapua  Institute of 79 seconds 5 seconds Your vehicle is  Techonlogy  back to normal   Manila Point 1    Near IEEE    lt OFFENG gt  Mapua  Institute of 54 seconds 3 seconds Your vehicle is  Techonlogy  now  Manila Point 2 immobilized    Open Parking  Near Basketball  Court     lt OFFENG gt    E Rodriguez  Avenue corner   40 seconds 5 seconds Your vehicle i
65. ogle Earth to verify the x and y coordinates received by GPS  module  Steps after data analysis are done if bugs or errors    occurred during the testing     28    System Flowchart        De energize Relay   Open                 Start      v             Read EEPROM                   Re energi     Close     ze Relay                       Initialize  GPS           v       Set message  Counter to 1       v          Read Message at    message counter N 22              f message start with   lt GPSREQ gt           Send coordinates to  Server             If message start with     lt ONENG gt     Yes          Re energize Relay   Close           v  Send confirmation  to Server  Engine  On                 Y                 If message start with     lt OFFENG gt     Yes  v           De energize Relay   Open           v  Send confirmation  to Server  Engine    Off                 Figure 3 4 GPS GSM tracking unit flow chart          Increment  Message counter  by 1                 Is message  counter   4                 Delete Messages             di End  ED    29    Figure 3 4 shows the system flowchart of the GPS tracker unit attached to  the vehicle  The system starts with reading the EEPROM status  a value of 1 to  EEPROM of the microcontroller will close  re energized  the relay and a value of  0 will open  de energized   The value of the EEPROM will only change by valid  Off and On engine request  Value of 1 for ONENG  0 for OFFENG   After reading  the EEPROM  the system initialize
66. or a vehicle engine off function   A reply message indicating the vehicle s engine off confirmation will  be reply to the requestor    Engine ON  Send a message to the server staring with  lt ONENG gt  to request  for a vehicle engine on function   A reply message indicating the vehicle s engine on confirmation will  be reply to the requestor     Note  Command messages can be only send if the program is on  Otherwise it  will not trigger any action     92    APPENDIX H  DATASHEETS    93    Ex  FAIRCHILD    ZmMICONUX  2C T    1N4001   1N4007  General Purpose Rectifiers    Features    Low forward voltage drop     High surge current capability     Absolute Maximum Ratings         25  C unless otherwise noted    bw MU are       mbol Parameter Units  ar  4001   4002   4003   4004   4006   4006   4007       Vas           Repetitive Reverse Voltage   50   100   200   400   600           1000  V      levy   Average Rectiied Forward Curent  N5           length       75     Kala  8 3ms   Sige Hali Sine Wave    Fr  RatneforFusng        _   c3                1     T   Operating            Tampere                          These ratings are limiting values above which the serviceability of any semiconductor device may by impaired     Thermal Characteristics    Reverse Current   Rated V      c                                    2009 Fanchic Sanmonductor Corporation Www                     oom    184001  14007 Few CZ      94    siapa esodang paus       00tNI   LOOPNE    Typical Performance C
67. or faster  Vista   Memory   1 0 GB RAM  XP  or 2 GB RAM  Vista    Hard Drive     20MB free space   Microsoft  Net Framework 3 or higher   Mysql version 6 0 or higher   Usb 2 0 port   Globe Tattoo GSM    Preparing your computer    1  Insert your Globe Tattoo GSM to any available USB port    2  Extract the file GPS zip to C   of the computer that will be used as a  server    3  Run windows command prompt and input  mysql    u root    p  C  GPS gpsdata sql and press enter    4  Input a password if applicable      Open the location C  GPS GPSstart exe   6  The GPS locator program will now run             90    Getting Started  User Interface    ON OFF Button       Map display    Status indicator  1  Click the On OFF button   2  The status indicator will display whether the system is on or off   3  Once the system is on  the system will continuously read message from  the SIM inside the Globe Tattoo GSM     Note  It is normal that map display is empty upon running the program for the  first time  Map will be display if the system recognizes the coordinate being read   Note  The servers texting number will be same as the SIM card number inserting  into the Globe Tattoo GSM     9     System Functions  GPS Request    Send a message to the server starting with  lt GPSREQ gt  to request  for the vehicle location   A reply message indicating the vehicle s exact location will be reply  to the requestor    Engine OFF  Send a message to the server starting with  lt OFFENG gt  to request  f
68. or in the market  the proponents used    840 ohm resistor     PCB Layout        Figure 3 12 PIC16F877A PCB Layout    42    GPS Module        Figure 3 13 GPS Module PCB Layout    Relay Board        Figure 3 14 SPDT Relay Board PCB Layout    43    Chapter 4    TESTING  PRESENTATION AND INTERPRETATION OF DATA    This chapter shows how the design is tested  presented  and interpreted the  gathered data from the prototype  This chapter also includes the validity and the    reliability of the designed prototype     Testing the Whole System    Testing the GPS module is the part of the system to be tested first   Reliability and accuracy of the module depends on the brand of the module   Holux M 89 warm start at the average of 33 seconds and an average of 36  seconds cold start with less than 1 sec reacquisition time  Accuracy of the  module is a     2 meters  Testing the module is required to verify if the module  can access at least 3 satellites  Failure to access at least 3 satellites will make the  module to standby  An initial testing for the GPS module is done through a PC  connected via serial port  Hyperterminal 7 0  Windows Vista Version  is used to  see the information gathered by the GPS module  Once powered up and  connected to the serial port  continuous receiving of streams of data is acquired  by the module  Acquisition of the X and Y coordinates of the module starts when  the LED in the GPS module starts to blink  Blinking of the LED indicates that the    module is up
69. orner 110 Avenue cor  Katipunan Avenue    14 6146   121 0714 seconds 4 seconds Katipunan  Pasig City Near Petron   Pasig City   E Rodriguez E  Rodriguez  Avenue corner Avenue cor  Katipunan Avenue    14 6146   121 0716   68 seconds   4 seconds Katipunan  Pasig City Near Petron   Pasig City   E Rodriguez E  Rodriguez  Avenue corner Avenue cor  Katipunan Avenue    14 6146   121 0714   51 seconds   3 seconds Katipunan  Pasig City Near Petron   Pasig City   Marcos Highway E  Rodriguez  corner Sumulong Avenue cor  Highway  Antipolo   14 6253   121 1255   34 seconds   3 seconds Katipunan  City Near Petron   Pasig City   Marcos Highway  corner Sumulong   14 6255   121 1256   71 seconds   4 seconds   Out of Map  Highway  Antipolo Coverage  City  Marcos Highway   14 6255   121 1255   58 seconds   3 seconds   Out of Map  corner Sumulong Coverage  Highway  Antipolo  City  Marcos Highway  corner Sumulong   14 6254   121 1257   62 seconds   4 seconds   Out of Map  Highway  Antipolo Coverage  City  Marcos Highway  corner Sumulong   14 6251   121 127   51 seconds   3 seconds   Out of Map  Highway  Antipolo Coverage  City  Peace Village  14 6151   121 1915   62 seconds   3 seconds Out of Map  Antipolo City Coverage  Peace Village  14 6151   121 1915   53 seconds   5 seconds Out of Map  Antipolo City Coverage                      49                            Peace Village  14 615   121 1915   74 seconds   5 seconds   Out of Map  Antipolo City Coverage  Peace Village  14 6153   121 1913   66 
70. ple GPS Tracking Modules simultaneously  The  storing function  formats the receiving data into our database that is designed to  provide real time query response for real time tracks and to provide search query    response for the post analysis of vehicle tracks     18    Chapter 3    DESIGN PROCEDURES    This chapter contains the design procedures in making the system  block    diagram  and schematic design  It shows how the system works and how each    parts of the system is connected to the other parts     Block Diagram     GPS MODULE  TX RX  GSM MODULE  TX RX       MICROCONTROLLER        POWER  SUPPLY    Figure 3 1 GPS GSM Tracker Unit    Figure 3 1 shows the hardware block diagram of the system  The    hardware part is mainly the parts that are interconnected to each other by    interfacing the PIC to GPS module using Level Converter  Major hardware    components are the PIC microcontroller  GPS module  GSM module  relay and a    personal computer  GPS module is connected to the microcontroller via MAX232    19    while GSM module is directly connected to PIC  These are the parts attached to  the vehicle  Each of this part is designed to perform specific task especially for  the microcontroller to get the GPS coordinates received by the GPS module  The  software includes are the programs stored in the microcontroller and the  software in the computer  The codes in the microcontroller are lines of codes  that perform parsing of the received SMS message and commanding the
71. ponents learned that GPS is interfaced to the  microcontroller by means of a level converter  MAX232   The idea of interfacing  the modules to the microcontroller using a multichannel RS 232 driver buffer to  adjust the voltage level of UART pins of the microcontroller came from the IEEE  Journal entitled  Real time Tracking Management System using GPS  GPRS and  Google Earth   Microcontroller UART s doesn t recognize 2 8V as a logic high  compared to other TTL pins of the microcontroller  It is because the UART pins  of the microcontroller use Schmitt trigger  The proponents also gathered data in  programming and configuring the GSM modules and the GPS module  The GPS  module can be configured directly to the computer by a software that supports    NMEA data protocol  Acquisition of location can be directly acquired only if there    21    are a minimum of 3 open satellites for the module to use  Less than 3 satellites    open for the module will result with no output  The outputs of the GPS modules    are the longitudinal and latitudinal coordinates of the module which cannot be    directly used to software to show its location  The proponents need to convert    the raw data gathered to exactly locate the target using a map that contains the    location together with a direction          Design Procedure  Data    Gatherin     Gathering  Data Analysis  Related  Literature    Programming              Software    Circuit design           Software and Hardware  Integration    De
72. r  Likewise SMS starts with   lt OFFENG gt  but will send a SMS to GPS tracker unit with  lt OFFENG gt   SMS  containing GPS  is a SMS coming from the GPS tracker unit with GPS  coordinates  The message will be parsed and extract the longitudinal and  latitudinal coordinates  It will then be compared to the database stored in the  server  Depending on the result of comparison  a match result in the database  will show the exact location of the vehicle and then sends the exact location to  the one requesting  non matching result will display to the server  The GPS  location is out of range or currently not available on the database   After  verifying the SMS message  the mCtr will increase by 1 until it reaches mCtr   4   when mCtr   4  the system starts to delete the messages stored in the inbox    then reads messages again starting from mCtr   0     32    Circuit Diagram                             GHD     JN PPS    GM     Lvl 208 E  POE y       X             WENT fe  VB E  VOCRFO     V ANT N a  90 Lu Iu  r  GND    4    TO GPS ANTENNA  N  LT   LED    GND   o  5         A  GND        T  Meg  Lu  ak TO CAR IGNITION SWITCH  L a 1  HE  o        uo    GND GND GND          Figure 3 6 Complete Circuit Diagram    33    Figure 3 6 shows the schematic diagram of the whole system  It is mainly  composed of PIC16F877A  GPS module  GSM module  MAX232 and relay board   GPS module  PIC16F877A and MAX232 are supplied by 5VDC using a 7805  voltage regulator  The circuit needs 12VDC of supply
73. r bias    sss  A ABC  NP PR                                      MC MERE  Voltage on any pin with respect to Vas  except Voo  MCLR  and            03V to  VDO   D 3V   Voltage on Voo with respect ip                    _                                                                              Ded       Voltage on MCLR with respect to Vas  Hota 2  ca D ID 14M  Voltage on RA with respect Ip VE    mtis GN           power desipaton          Maximum curent cut VER                                                                      Bd      Inputciamp curent  Ik  VI    0 0r VI         X20 mA  Output damp current        Vo    D 0r Vo VIS  e t m  i20mA  Maximum output current sunk by any WO pln    tis       Maximum output cument sourced by any WO                   Maximum current sunk by PORTA  PORTE and PORTE  combined   Note 3                                              2        Maximum current sourced by PORTA  PORTE and PORTE  combined   Note 3                                                    Maximum current sunk by PORTE and PORTD  combined   Note 3                                                                 Maximum current sourced by PORTE and PORTD  combined   Note 3     200 mA  Nota 1  Power dissipation    calculated as follows  Pals   VOO        EIOH    X    Vno   WOH  x        EjVai x loc   2  Voltage spikes below Was at the MCLR pin  inducing currents greater than 80 mA  may cause latrh up   Thus  a serie resistor of 50 1000  should be used when appiying a  Iow  
74. rn off or on     The design is intended to be used as a tracking system to vehicle carrying  the device  It is designed to track the vehicle with the use of a cell phone and a  PC and to secure the vehicle if it is tracked by sending a message to disable the  engine  The car can be turned on again when a requested engine on is received  by the device  The design is mainly composed of a GPS module  GSM module   PC  relay and microcontroller  GPS module is used as a receiver to access the  GPS satellite and transmit the information gathered  Microcontroller is used to  verify the sent message received by the GSM module and parse it to check the  kind of operation to be done    The feature of this design is tracking of vehicles from a cell phone to  computer by sending a SMS message to the computer and then to car and when  it is received and verified by the tracker unit  the GSM module will send the  location of the vehicle by its longitudinal and latitudinal position by SMS to the  computer  The computer will compare the coordinates received and display the  exact location of the vehicle through a map  The computer now sends a message  to the sender s cell phone on the exact location of the car  When engine off is  requested  the relay will automatically open to cut the electricity supply to the    car  Engine on request will automatically close the relay     Statement of the Problem   Vehicle tracking using modern devices available in the market doesn t  include immobilizatio
75. roller  contains codes written in basic and Visual Basic NET for the server   The proponents used EEPROM of the PIC to save the status of the  relay board  The status of the EEPROM will only change if   lt ONENG gt          lt OFFENG gt  are sent for request     Testing   Testing of the software is done after the hardware part is  finished  Testing of the software in the microcontroller is done by  sending a SMS message request code in the GSM module  Software  testing in the computer server is done by sending a SMS  coordinates to the GSM module to verify its output by using Google    Earth     24    B  Hardware  a  Data Gathering  This is the process of acquiring information about the  hardware components to be used  Information includes hardware  specifications  interfaces  configuration  and needed power supply   b  Review of Related Literature  Reviewing related literature will form a foundation for the  proponents in designing the circuit diagram  The proponents can  gather information on the interfaces of the hardware components   programming language applicable  problems encountered in  designing the circuit diagram and the expected output from each of  the components in the diagram  A review on the AT commands is  also done   c  Circuit Design  After performing the procedures before circuit designing  the  proponents have already gathered vital information regarding the  design of the circuit diagram  The schematic diagram is composed  of GPS module  GSM module  PIC1
76. s  Katipunan now  Avenue  Pasig immobilized   City   lt ONENG gt  E Rodriguez  Avenue corner   58 seconds 4 seconds Your vehicle is       Katipunan    Avenue  Pasig             back to normal        53                         City   lt OFFENG gt    E Rodriguez Your vehicle is  Avenue corner   110 seconds 5 seconds now  Katipunan immobilized   Avenue  Pasig  City   lt OFFENG gt    Jollibee along Your vehicle is  Marcos 85 seconds 3 seconds now  Highway  immobilized   Antipolo City   lt ONENG gt    Jollibee along  Marcos 40 seconds 3 seconds Your vehicle is  Highway  back to normal   Antipolo City   lt OFFENG gt    Jollibee along Your vehicle is  Marcos 47 seconds 3 seconds now  Highway  immobilized   Antipolo City                   Table 4 3 Engine Off On Testing    Table 4 3 shows the testing in Engine Off On request  The tests are done  together with the GPS request code  Parts of the GPS test are done with Engine  Off On request  The proponents first tested the GPS request code and after  recording the data  some places are also tested for Engine Off On request  The  GPS response time is the time taken by the GPS tracker unit to reply to the  server while server response time is the time taken by the server to send the    confirmation message to the requesting party  Adding both of the response time    54       is the time taken by the whole system to relay the confirmation message to the  requesting party  The average time for the GPS response time is 64 seconds  while the
77. s the GPS module  If the GPS is initialized  it  will set mCtr for reading the message from the SIM inbox  Reading of SMS  message starts from mCtr   1 and parse the message for possible request code   A SMS starting with  lt GPSREQ gt  allows the GSM module to send a SMS message  to the server containing the GPS coordinates  SMS starting with  lt ONENG gt   activates the relay by supplying the coil of the relay  SMS starting with   lt OFFENG gt  de energized the coil of the relay disconnecting the contacts of the  relay to the coil thus  making the relay in open state  A SMS that doesn   t start  with any pre defined codes by the system will be deleted  After verifying SMS  message  mCtr will increase by one and check it again for possible request code  until it reaches to mCtr   3  Reaching mCtr   4 will delete the messages in the  inbox then go back to mCtr   1  If the GPS module is not initialized or the switch    is turned off  the flow of the system will end     30    Start        Initialize port  connection       ul       Set message  counter to 1       v       Read Message at  message counter                           f message starts  with  lt GPSREQ gt     f message starts  with  lt ONENG gt        f message starts  with  lt OFFENG gt        f message starts  with Engine On    f message starts  with Engine Off       f message starts  with GPS              Send  lt GPSREQ gt   command to GPS                Send  lt ONENG gt   command to GPS          Send  lt OFFENG g
78. seconds   4 seconds   Out of Map  Antipolo City Coverage  Peace Village  14 6153   121 1915   42 seconds   5 seconds   Out of Map  Antipolo City Coverage             Table 4 1 System Testing   Table 4 1 shows different location acquired by the GPS  The tests are  performed in different locations with the server located at Antipolo  Rizal  Each of  the location is tested five times and gathered its GPS coordinates together with  the server response time to the request and GPS response time  GPS response  time corresponds to the time taken for the GPS device to reply to the server  while the server response time is the time taken for the server to reply to the  requesting party  In different locations  there are different GPS and server  response time  It depends on where the location of the vehicle is  open or closed  area   GPS response time takes longer when the vehicle is in a closed area and  faster when it is in an open area  The average time it takes to reply to the  servers is 57 4seconds  The server response time takes longer when the network  is having traffic but in normal operation  the server response time takes only  about 4 2 seconds  Adding both responses time will give the total time it takes to  receive the tracking request from the time a request is sent  Tests done in  locations listed above are tested in one spot  The table shows that there is a  difference between the coordinates that are tested in same location  This is due  to the GPS accuracy     2m whi
79. si be taken          account separately All characteristics are  measured wih a 0 334 F                  across    Input and    0 1 27 capacitor across the output        electrical characteristics at specified virtual junction temperature  Vj   10 V  Ir    40 mA  unless  otherwise noted     LATELESC                        v E ELE  OG       ee meee e         v                       vonage regulator M            EO TITA UR RE NE NON NUN  Sen  pem LL   vol reg    lation PET                   50              mem EN  Meavexv Tew ize  PEIETTIT 9 3    T Pulsetesting techniques maintain Ty as close In Ta as possible  Thermal effects must be taken          account separatety All characteristics ane  measured           0 334 F capacitor across fhe input and    0 1 8 capacitor across the output        100         AVLAX LA     5V Powered  Multichannel RS 232  Drivers Receivers    General Description Features  The MAX220 MAX249 family of line drivers receivers is Superior to Bipolar  intended for sl EIA TIA 232     and V 28 V 24 communica  from Si Power  tions interfaces  particularly spplicafions where  amp 12V ia         HEY and          y    not avadable i   ive Mode i     These parts are especially useful in battery powered sys  e       m    tems  since their low power shutdown mode reduces  gt  2  power dissipation to less than S5uW  The MAX225    Meet All EIA TIA 232E and V 28 Specifications    MAX233  MAX235  and MAX24S MAX246 MAX247 use   Multiple Drivers and Receivers  no externa
80. sign  Testing    Figure 3 3 Design Procedure Flow Chart    Hardware    22    Figure 3 3 shows the graphical view of the design procedure used by the  proponents  In order to systematically create the proposed topic  the proponents  designed a procedure to follow  The procedure is divided into two parts  the  hardware  and the software    A  Software   a  Data Gathering  The software part starts from the gathering of required data  including the hardware specifications of the modules to be used for  programming purpose  In this way  the proponents can decide on  what programming language is best to use in developing the  software part   b  Data Analysis  Data analysis is done to evaluate and verify the hardware  specifications to identify and finalize the programming language to  use  This is also done when testing the finished prototype   Gathered data are analyzed and verified if the output of the system  is correct   c  Simulation  Simulation of algorithms or routines in the software is done  especially in the microcontroller programming which uses routines    like decoding SMS message and conversion of the GPS received    23    coordinates to decimal degrees  This will reduce errors       programming the hardware components     Programming   Programming of the whole system is done after the  simulation of routines or algorithms are verified and tested to be  correct  Programming of the whole system includes the  programming part in the server and microcontroller  Microcont
81. t   command to GPS                   Send confirmation  message to user   Engine on              Send confirmation  message to user   Engine off                 Get the  coordinates and  search in the  database                    Increment  Message counter  by 1             NGA              Is message  counter   6             Delete  Messages                Are the coordinates  available in the database           Send location  to user    Locate the  coordinates                      Send notification  to user  Location  was out of  coverage                   Is the system  Ready      B   NG il    End    Figure 3 5 GPS GSM     PC server flow chart    31    Figure 3 5 is the PC server flow chart of the system  The software in the  server starts with initializing the port of the GSM module which is connected to  USB port  After initializing  the software will check if the on button is pressed or  not  Pressing the ON button will start the program to read and delete messages  and setting mCtr to 0  Starting from mCtr   O which is the index of the message  in the SIM inbox   checks for possible request code  A SMS starting with    GPSREQ   commands the server to send a SMS message to the GPS tracker  unit containing    GPSREQ    and saves the mobile number of the one  requesting  SMS starting with  lt ONENG gt  will also send a SMS message to GPS  tracker unit containing     lt ONENG gt  and will also send a SMS message to GPS  tracker unit then save the mobile number of the sende
82. terface    wing NMEA protocol or MTE extension protocol  UART port is capable of 4800 to  115200 baud rate     4 1 Protocol     89 is default to support standard NMEA 0183 protocol  In addition  a sene  MTE  extensions           messages  have been developed that can be usei    extended capabilities common to many applications  N    411 NMEA Protocol  M 89 is capable of supporting following NIMFA        mm                  DOP and active satellite    GNSS Satellites im view    pr Recommended minimum specific GNS5 data  PN   Course Over Ground and Ground Speed   om              123    M 89 HOLUX  GPS Module senes THLTEDEAME NOE  41 2 MTE NMEA Packet Format    pos   em  os       e       Maximum packet length is restricted to 255 bytes    The star symbol is used to mark    the end of Data Field       124    
83. to proper requesting number    76    messagelocation   index  Timer Locate Start    Timer SendingMes Start    Exit Sub   End If    Next  MainStatusLabel Text    No Command Request found      If MainSwitch Then  Timer AutomaticMode Start    End If  End Sub    Private Sub Timer Locate Tick ByVal sender As System Object  ByVal e As  System EventArgs  Handles Timer Locate Tick  Timer  Locate Stop    MainStatusLabel Text    GPS Coordinate found      locating     Dim gpsN As Double  Dim gpsE As Double  gpsN   Val message messagelocation  Substring 8  7    gpsE   Val message messagelocation  Substring 20  8    locate gpsN  gpsE    End Sub    Private Sub locate ByVal gpsN As Double  ByVal gpsE As Double    Dim myConn As New MySgqlConnection   Dim myCommand As New MySqlCommand   Dim myData As MySqlDataReader   Dim xloc As Integer   Dim yloc As Integer   myCommand Connection   myConn   myConn ConnectionString    server localhost  user id root   password  dan  database  gps     Try  myConn Open     Catch ex As MySqlException  MessageBox Show  Error in opening database     End Try    myCommand CommandText    select   from mapindex where gpsn    amp   gpsN  amp    and gpse    amp  gpsE    77    myData   myCommand ExecuteReader  If myData HasRows   False Then   myConn Close     MessageBox Show  The GPS location is out of range or currently not  available on the database     GPS Error   MessageBoxButtons OK   MessageBoxIcon Error    nameloc    Your vehicle location is out of coverage or not
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
AEG KS8100001M  Rencontre avec Thomas SCOTTO le 23-01  instrucciones hidrolimpiadora 701 200 0.qxp  Samsung PN51F4500BFXZA User's Manual  Untitled - Caldera  GRIPONE PRO 2  Trust 19175  Hoefer SQ33 Sequencer  Manual de instalación, funcionamiento y      Copyright © All rights reserved. 
   Failed to retrieve file