⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gps vehicle tracker.htm

📁 DSP开发的一个例子
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0056)http://www.maxim-ic.com/appnotes.cfm/appnote_number/1790 -->
<HTML><HEAD><TITLE>GPS Vehicle Tracker</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META 
content="iButton, GPS, GSM, DS1990, DS1990A, tracking, global positioning satellite, cellphone, telecommunications, GPS 35, Garmin, Siemens, TC35 GSM" 
name=keywords>
<META 
content="This application note describes a simple way to track the location of a vehicle and identify whether it has an authorized driver based on iButtons, in conjunction with GPS and GSM technology." 
name=description><LINK href="GPS Vehicle Tracker.files/styles.css" type=text/css 
rel=stylesheet>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"><!-- BEGIN: SITE HEADER -->
<STYLE>.header_nav_cell {
	BORDER-BOTTOM: #909090 1px solid; BACKGROUND-COLOR: #aaaaaa
}
A.header_nav {
	FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: Arial; TEXT-DECORATION: none
}
A.header_nav:link {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.header_nav:visited {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.header_nav:active {
	COLOR: #a04040; TEXT-DECORATION: none
}
A.header_nav:hover {
	COLOR: #ffffff; TEXT-DECORATION: underline
}
A.footer_nav {
	FONT-SIZE: 8pt; COLOR: #6060a0; FONT-FAMILY: Verdana; TEXT-DECORATION: none
}
A.footer_nav:link {
	COLOR: #6060a0; TEXT-DECORATION: none
}
A.footer_nav:visited {
	COLOR: #6060a0; TEXT-DECORATION: none
}
A.footer_nav:active {
	COLOR: #a04040; TEXT-DECORATION: none
}
A.footer_nav:hover {
	COLOR: #6060a0; TEXT-DECORATION: underline
}
A.credits_nav {
	FONT-SIZE: 7pt; COLOR: #6060a0; FONT-FAMILY: Verdana; TEXT-DECORATION: none
}
A.credits_nav:link {
	COLOR: #6060a0; TEXT-DECORATION: none
}
A.credits_nav:visited {
	COLOR: #6060a0; TEXT-DECORATION: none
}
A.credits_nav:active {
	COLOR: #a04040; TEXT-DECORATION: none
}
A.credits_nav:hover {
	COLOR: #6060a0; TEXT-DECORATION: underline
}
.credits {
	FONT-SIZE: 7pt; COLOR: #808080; FONT-FAMILY: Verdana
}
</STYLE>

<TABLE class=nav_bg cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD><IMG height=6 src="GPS Vehicle Tracker.files/clear.gif" width=1><BR><!-- SITE CONTROL -->
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR vAlign=top><!-- LOGO CELL -->
          <TD width=340>&nbsp;<A href="http://www.maxim-ic.com/"><IMG 
            height=23 src="GPS Vehicle Tracker.files/dm_logo_a001.gif" width=240 
            border=0></A></TD><!-- SPACER CELL -->
          <TD><A name=top></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD><!-- SEARCH FORMS CELL -->
          <TD align=right>
            <TABLE cellSpacing=0 cellPadding=1 border=0>
              <TBODY>
              <TR><!-- SITE SEARCH FORM -->
                <FORM action=/search4.cgi method=get>
                <TD><INPUT maxLength=255 size=12 name=q> <INPUT type=hidden 
                  value=Maxim name=site> <INPUT type=hidden value=Maxim 
                  name=client> <INPUT type=hidden value=xml_no_dtd name=output> 
                  <INPUT type=hidden value=20 name=num> <INPUT type=hidden 
                  value=utf8 name=oe> <INPUT type=hidden value=lang_en name=lr> 
                  <INPUT type=hidden value=http://www.maxim-ic.com/search3.cgi 
                  name=proxystylesheet> <INPUT type=hidden value=i name=as_dt> 
                  <INPUT type=hidden value=0 name=proxyreload> </TD>
                <TD><INPUT type=image height=17 width=44 
                  src="GPS Vehicle Tracker.files/search_site_btn.gif" 
                  value=submit border=0 name=image></TD></FORM>
                <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD><!-- PART SEARCH FORM -->
                <FORM name=part_search 
                action=http://www.maxim-ic.com/quick_view2.cfm?go=part_number_search 
                method=post>
                <TD><INPUT style="WIDTH: 70pt" size=8 name=part_number></TD>
                <TD><INPUT type=image height=17 width=44 
                  src="GPS Vehicle Tracker.files/search_part_btn.gif" 
                  value=submit border=0 name=image></TD></FORM>
                <TD>&nbsp;&nbsp;</TD></TR></TBODY></TABLE></TD>
          <TD>&nbsp;&nbsp;</TD></TR></TBODY></TABLE><IMG height=5 
      src="GPS Vehicle Tracker.files/clear.gif" width=1><BR><!-- BEGIN: MAIN NAVBAR -->
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR vAlign=top>
          <TD class=nav_bg>
            <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR align=middle>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/">HOME</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/products.cfm">PRODUCTS</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/solutions">SOLUTIONS</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/design">DESIGN</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/appnotes10.cfm/filter/category">APPNOTES</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/support">SUPPORT</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/sales">BUY</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/company">COMPANY</A></TD>
                <TD class=header_nav_cell width="11%"><A class=header_nav 
                  href="http://www.maxim-ic.com/memcenter">MEMBERS</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-- END: MAIN NAVBAR -->
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR vAlign=top>
          <TD class=nav_bg><IMG height=3 
            src="GPS Vehicle Tracker.files/clear.gif" 
      width=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-- END: SITE HEADER -->
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
  <TBODY>
  <TR>
    <TD width="5%" bgColor=#e0e0e0>&nbsp;</TD>
    <TD bgColor=#ffffff>&nbsp;</TD>
    <TD vAlign=top>
      <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD id=te5 vAlign=top><A 
            href="http://www.maxim-ic.com/appnotes10.cfm/ln/en">App Notes</A> 
            &gt; <NOBR><A 
            href="http://www.maxim-ic.com/appnotes10.cfm/ac_pk/1/ln/en">1-WIRE?DEVICES</A> 
            </NOBR>&nbsp; <NOBR><A 
            href="http://www.maxim-ic.com/appnotes10.cfm/ac_pk/38/ln/en">WIRELESS, 
            RF, AND CABLE</A> </NOBR>&nbsp; </TD>
          <TD id=te5 vAlign=top align=right><NOBR>APP 1790: Dec 02, 2002&nbsp; 
            </NOBR></TD></TR>
        <TR>
          <TD id=te5 vAlign=top colSpan=2>Keywords: iButton, GPS, GSM, DS1990, 
            DS1990A, tracking, global positioning satellite, cellphone, 
            telecommunications, GPS 35, Garmin, Siemens, TC35 GSM</TD></TR>
        <TR>
          <TD id=te5 vAlign=top>&nbsp;</TD>
          <TD id=te5 vAlign=top align=right><A 
            href="http://pdfserv.maxim-ic.com/en/an/AN1790.pdf"><IMG height=16 
            alt="Download, PDF Format" 
            src="GPS Vehicle Tracker.files/acrobat-icon.gif" width=20 
            align=absMiddle border=0> Download, PDF Format</A> (197K) 
        </TD></TR></TBODY></TABLE>
      <P align=center><FONT color=#003399 size=+2><B>GPS Vehicle 
      Tracker</B></FONT></P>
      <TABLE cellSpacing=1 cellPadding=2 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="10%">&nbsp;</TD>
          <TD align=left><I>This application note describes a simple way to 
            track the location of a vehicle and identify whether it has an 
            authorized driver based on 1-Wire&reg; technology. This has many uses 
            such as finding stolen vehicles, creating automatic vehicle logs, 
            and managing a fleet of trucks and buses. An example of how to do 
            this is described. It uses a Garmin GPS 35 GPS receiver, a Siemens 
            TC35 GSM module, a DS1990A <U>i</U>Button&reg;, a Parallax Basic Stamp 
            (BS2P) microcontroller, and, of course, sample source code.</I></TD>
          <TD width="10%">&nbsp;</TD></TR></TBODY></TABLE>
      <P>
      <P>This article describes a simple way to track the location of a vehicle 
      and identify whether it has an authorized driver. This has many uses such 
      as finding stolen vehicles, creating automatic vehicle logs, and managing 
      a fleet of trucks and buses. </P>
      <P>Coordinates, in degrees latitude and longitude, are transferred via a 
      standard mobile telephone "text" message, which can then be used to 
      determine the exact location of the vehicle.</P>
      <P>The code for this project is available for download: </P>
      <UL>
        <LI><A 
        href="http://pdfserv.maxim-ic.com/arpdf/software/EPD-v2-01-3E.bsp">EPD-v2-01-3E.BSP</A>: 
        Main program for the Basic Stamp. 
        <LI><A 
        href="http://pdfserv.maxim-ic.com/arpdf/software/1WIRE-ID.bsp">1WIRE-ID.BSP</A>: 
        A program to 'read' the serial number of the DS1990A iButton. </LI></UL>
      <P><FONT face="Arial, Helvetica, sans-serif"><B><FONT 
      size=+1>Ingredients</FONT></B></FONT></P>
      <P>The project uses the following building blocks:</P>
      <P>1. <B>GPS receiver</B> (Garmin GPS 35). This provides information about 
      the location of the vehicle.</P>
      <P>2. <B>GSM module</B> (Siemens TC35). The GSM module is used to send SMS 
      (text messages) to a pre-programmed mobile number. </P>
      <P>3.<B> iButton</B> (DS1990A). The iButton identifies authorized 
      drivers.</P>
      <P>4. <B>Parallax Basic Stamp</B> (BS2P) in conjunction with a BASIC STAMP 
      "Board of Education" development board. (<A 
      href="http://www.parallaxinc.com/">http://www.parallaxinc.com/</A>)</P>
      <P>5. <B>Software</B>: </P>
      <UL>
        <LI>EPD-v2-01-3E.BSP: Main program for the Basic Stamp. 
        <LI>1WIRE-ID.BSP: A program to 'read' the serial number of the DS1990A 
        iButton. </LI></UL>
      <P><FONT face="Arial, Helvetica, sans-serif"><B><FONT size=+1>Block 
      Diagram</FONT></B></FONT></P>
      <P align=center><IMG height=252 
      src="GPS Vehicle Tracker.files/DI200Fig01.gif" width=458></P>
      <P><FONT face="Arial, Helvetica, sans-serif"><I>Figure 1. Block 
      diagram</I></FONT></P>
      <P>The GPS receiver provides information in 'NMEA' format. The latitude 
      and longitude can be extracted from the '$GPRMC' sentence (in form of "ABC 
      degrees North", "DEF degrees West"). </P>
      <P>The GSM module is used to send SMS messages (text messages) to a 
      pre-programmed mobile phone.</P>
      <P>The DS1990A iButton (also known as "serial number iButton") is used as 
      a means of identification or "Key." It contains a unique factory 
      programmed 6-byte ID with 2 bytes of CRC (error correction). The key codes 
      are read-only. The system will accept two iButton keys, allowing a spare 
      key, or second driver. More key codes can be easily added.</P>
      <P><FONT face="Arial, Helvetica, sans-serif"><B><FONT 
      size=+1>Operation</FONT></B></FONT></P>
      <P>On start-up, the BASIC STAMP continuously scans for two things: </P>
      <UL>
        <LI>an iButton to be momentarily connected to the input 
        <LI>the ignition being active </LI></UL>
      <P>Normal operation would be for an 'authorized' iButton to be connected 
      to the port and then the car is started within 25 seconds.</P>
      <P>Intrusion is detected by the following conditions:</P>
      <UL>
        <LI>If the ignition is detected to be active without a valid iButton 
        within 25 seconds of starting the car. 
        <LI>If no iButton is connected within 25 seconds of starting the car, 
        this will also be an intrusion state. </LI></UL>
      <P>Upon establishing that an intrusion has occurred, the BASIC STAMP looks 
      for the information from the GPS receiver. It waits for the string 
      '$GPRMC' to appear on the serial output of the GPS receiver.</P>
      <UL>
        <LI>It then sends an SMS message to a pre-programmed mobile number with 
        the coordinates extracted from the 'GPRMC' sentence received from the 
        GPS. 
        <LI>This process is repeated every two minutes to keep the owner 
        informed of the car's location. </LI></UL>
      <P><FONT face="Arial, Helvetica, sans-serif"><B><FONT size=+1>Putting It 
      All Together</FONT></B></FONT></P>
      <P>The core of this project is the BASIC STAMP. It interfaces to the GPS 
      receiver, the GSM modem, the iButton and the ignition connection from the 
      vehicle. </P>
      <P>In this project the Ignition line is used to detect if the car has been 
      started. Other indicators can be used (e.g., ultrasonic transducer or 
      other forms of intrusion detectors).</P>
      <UL>
        <LI>The GPS receiver's output is connected to P0 of the basic stamp. 
<BR>
        <LI>The GSM module's receiver input is connected to 'Sout' or Pin 1 of 
        the Basic Stamp. <BR>
        <LI>P1 of the basic stamp is connected to the ignition connection. A 
        high state indicates that the ignition is on and vice versa. <BR>
        <LI>P15 is used for the interface to the iButton. </LI></UL>
      <P>Note that the BS2P in the BASIC STAMP range will support the 1-wire 
      interface for the iButtons, previous variants will not support the 
      interface.</P>
      <P><FONT face="Arial, Helvetica, sans-serif"><B><FONT size=+1>Entering 
      Your Mobile Number</FONT></B></FONT></P>
      <P>To program a mobile phone number in the code, enter it in the line 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -