home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / ham / aprs114.zip / README.GPS < prev    next >
Text File  |  1993-07-07  |  12KB  |  176 lines

  1.                     TNC INTERFACE TO GPS or LORAN-C
  2.  
  3.  
  4.      APRS is compatible with almost all naviagtion devices that have an NMEA-
  5. 0183 serial data output.  The only GPS that I have seen that does not have
  6. this national standard is the Rockwell engine and the SONY Pixis.  The
  7. problem is that many GPS or LORAN-C devices do not give the user the ability
  8. to modify the periodicity of the data reported via the interface.  In most
  9. devices all navigation data is continually updated about every second at 4800
  10. baud.  This is far too much data to transmit over a shared 1200 baud AX.25
  11. packet link.  Fortunately some devices do permit the operator to specify not
  12. only the reporting rate, but also what data formats are included in the
  13. reports.  I have seen some LORAN devices that have a separate "printer" port
  14. which can be configured by the user to output a report once every N minutes or
  15. even hours.  Unfortunately, most users manuals I have peruised in my local boat
  16. store do not make it immediately obvious what the user configuration options
  17. are.  Fortunately I found a GPS engine which was designed for the experimenter.
  18.  
  19.      The Magellian OEM 5000 circuit board is a GPS engine on a 3.5 by 7 inch
  20. circuit card that costs about $445 and produces RS-232 output in NMEA format
  21. and requires only a GPS antenna and 12 volts at 250 MA input.  Call Emiel Yakoub
  22. at Magellian 960 Overland Ct, San Dimas, CA 91733, phone 714 394-5000.  Since
  23. it is an OEM card, it has full user programmability.  It can be set to output
  24. any of the dozens of NMEA standard formats at any periodicity between 1 second
  25. up to 5 minutes.  My APRS software recognizes three of the NMEA-0183 formats:
  26.  
  27.      $GPGGA - for position and height  (no loran equivalent)  ] Use only one
  28.      $GPGLL - for position only        ($LCGLL for LORAN)     ] of these two
  29.      $GPVTG - for velocity and course  ($LCVTG for LORAN)
  30.  
  31.      An automatic vehicle tracking system can be assembled by simply
  32. connecting the RS-232 output from the GPS directly into the TNC and setting
  33. the periodicity to 1 minute or more.  The TNC must be placed in UNPROTO
  34. CONVERSE, and from then on, every minute a GPS position report will be
  35. transmitted.  The APRS software will decode the raw NMEA position reports
  36. above and plot the station on the map!
  37.  
  38. MAGELLIAN CARD OPTIONS:   Since this card was designed for the OEM market, for
  39. the individual purchaser it is a good idea to pay the additional $60 for their 
  40. development kit consisting of some excellent PC software, the technical manual,
  41. a wall power supply, RS-232 cable, Power switch, and short SMB to TNC adapter
  42. cable.  Then all you need is an antenna.  They sell a $130 external "egg"
  43. antenna with built-in LNA for operation through either 18 or 25 feet of cable. 
  44. This cable is terminated with a TNC connector, that is why the development kit
  45. includes the SMB/TNC pigtail.  OR you can purchase their $60 passive antenna
  46. which has its own 6 inch SMB pigtail for direct connection to the circuit board. 
  47. This antenna is a 1x1x3 inch weather proof antenna like you see on their
  48. handheld GPS units.  Using this antenna (or a 1.5 inch paperclip stuffed into
  49. the SMB antenna jack) obviates the need for the SMB/TNC pigtail ($25 separately)
  50. so that you might be able to do without the development kit if you really want
  51. to be cheap.  Since the circuit card has no display, it can actually be mounted
  52. in a weather proof container right at the antenna (or paperclip).  Only 12 volts
  53. and RS-232 need to come down inside your vehicle.  Yes their $60 passive antenna
  54. is quadrifilar helix antenna with true hemispherical coverage, but a 1.5 inch
  55. ground plane antenna is just as good as long as you are not interested in good
  56. 3D altitude fixes.  Overhead satellites are not used for 2D fixes, but are used
  57. for 3D fixes.  I leave my card on 2D all the time since 3D requires 4 vice 3
  58. satellites, and the 2D fix is not as good while running 3D.  Also, altitude is
  59. measured against DATUM which is not necessarily SeaLevel.  So unless you are
  60. carrying DATUM charts, (or flying) the altitude figure is of little value.
  61.  
  62. GPS ENGINE SET UP:  Follow all Magellian instructions for initializing your
  63. GPS engine using your PC and their NAV program.  After the system is running
  64. and producing fixes, send commands to turn off all outputs one at a time and
  65. change the periodicity for the position and velocity reports from once a
  66. second to a slower rate as shown below.  An alternate startup procedure is to
  67. simply apply power, attach an antenna, and wait an hour.  The GPS will
  68. automatically aquire satellites and be operational without any external
  69. initialization after being exposed to full sky.  (this precludes needing a
  70. laptop if you can spare the time).  Using this method, there will be no
  71. outputs until you send the GPS card the following commands to set up the
  72. reporting rates for position and velocity.  These commands may be sent from
  73. any dumb terminal as follows:
  74.  
  75. $PMGLI,00,B00,7,A  (for GGA GPS position only)       Where 6 = 30 Secs
  76. $PMGLI,00,B02,7,A  (for GLL LORAN position only)           7 = 1 Minute
  77. $PMGLI,00,EOO,7,A  (for course and speed with either)      8 = 2 Minutes
  78.                                                            9 = 5 minutes
  79.  
  80.      Each line must end with a carriage return-linefeed.  The GPS engine
  81. gives no responses to commands, other than doing what it is commanded.  You
  82. might try a value of 5 which is once every 10 seconds as a test to be sure
  83. the GPS card is recognizing your commands.
  84.  
  85. BATTERY BACKUP:  Be sure to add the battery back up supply so that the card
  86. can be turned off without having to re-initialize every time.  I use a simple
  87. 9 volt battery, diode isolated from the main supply rather than bothering
  88. with the special 3.6 volt lithium memory cell suggested.  The GPS card has a
  89. 12 volt input and a separate ON/OFF line.  With the diode isolation of the 9
  90. volt battery, the on/of line detects the loss of the 12 volt supply, and
  91. powers down the GPS engine.  Current drain drops to microamps, and the 9 volt
  92. supply through the regulator keeps all memory backed up.  An Alkaline battery
  93. lasts about 6 months with the GPS off 99% of the time; longer if the GPS is
  94. powered up longer.
  95.  
  96. TNC SETUP DETAILS:  Unfortunately the simple direct connection from the GPS card
  97. to the TNC is slightly more complicated if the Course and Speed format is also
  98. included.  This is because the course and speed report is in a different NMEA
  99. format line than the position fix and therefore generates two packets, one
  100. right after the other.  This is a problem if a digipeater path is used,
  101. because the digipeater will begin digipeating the first position fix packet
  102. and cover up the trailing velocity packet.  To solve this problem, since most
  103. applications require a digipeater path for longer ranges, the sending TNC
  104. needs to be instructed to send packets not on receipt of every carriage
  105. return, but on a timing function.  Set CPACTIME ON and change the SENDPACK
  106. character from $0D to anything else (say $01).  This way, both the position
  107. fix and velocity lines will be sent together in the same packet one second
  108. after the last character is received from the GPS.  This packet, containing
  109. two frames, will then be digipeated all together by the digipeater with no
  110. break in between.
  111.  
  112. LINEFEEDS and FLOW CONTROL:  Since the GPS is sending each line with a CR/LF
  113. on the end, your TNC will always end up placing the superfluous linefeed at
  114. the beginnning of the next packet.  To defeat linefeeds, set LFIGNORE on. 
  115. (for the non-standard Kantronics products, use Linefeed Supress, LFS ON)
  116. Similarly, your terminal program must send CR-LF on each command to the GPS
  117. card.  When you try to talk to your TNC with CR-LF, you will experience a
  118. lockup condition since the extra LF will look to the TNC like the beginning
  119. of a new command line and will hold off all TNC output.  To overcome  this
  120. problem, set FLOW OFF.  Here are the commands which must be changed from
  121. factory defaults for most TAPR-2 TNC's:
  122.  
  123.   ECHO OFF,  FLOW OFF,  LFIGNORE ON,  CPACTIME ON, SENDPAC $01
  124.  
  125.      And now for the last problem; keeping the TNC in converse mode.  TNC's
  126. always default to command mode when turned on.  Until the manufacturers put
  127. an UNSTART command in their TNC to cause it to power up in Unproto-Converse,
  128. you must either keep the TNC permanently turned on after setting converse
  129. mode, carry along a terminal to issue the CONV command, or try to make a
  130. firmware patch to the TNC code.  Transparent mode could be used, but the
  131. monitor function does not work in transparent mode and the TNC can not then
  132. be used for receiving APRS packets.  Fortunately, Howie Goldstein helped me
  133. make a modified ROM that will power up in UNPROTO converse.
  134.  
  135. DUMB TERMINAL SETUP:  So I can see the command that I am typing into the GPS
  136. card, I configure my terminal device as half duplex.  The GPS also needs the
  137. CR/LF sequence at the end of each command, so I set the terminal to translate
  138. CR to the CR/LF sequence.  In order to use the same terminal with the TNC,
  139. then, that is why I turn ECHO and FLOW off in the TNC.  My GPS/TNC box has
  140. one DB-9 serial connector and two switches to select whether the terminal is
  141. talking to the GPS or the TNC, and the second switch to enable the data
  142. output from the GPS to go into the TNC after all configuration is complete.
  143.  
  144. OPERATION:  With the special ROM, and after initialiation the other TNC
  145. parameters once, all future tracking evolutions are initiated by simly
  146. applying power to the GPS/TNC/Radio.  In over 6 months of daily operation, I
  147. have never had to re-initialize the GPS engine. (The seventh month the 9 volt
  148. battery died!).  Without the special ROM, every tracking evolution requires
  149. applying power, turning on a dumb terminal, and sending the TNC the CONVERSE
  150. command.  Then the terminal can be removed or turned off until the next
  151. activation.  If you do not have the UNSTART ROMS, be careful if you use a
  152. battery supply of C or D cells with spring loaded battery holder!  A bicycle
  153. equipped with this system reset the TNC after hitting the first bump, and
  154. there was never time to stop and reset the TNC until the race was over.  This
  155. shows the problem of the TNC not having a power up CONVERSE mode in it!
  156.  
  157. We have assembled a nmumber of these GPS/PACKET tracking devices.  In fact,
  158. the 7 inch by 3 inch Magellian card fits nicely against the inside cover of
  159. the MFJ 1270 or 1274 TNC.  The only evidence that the TNC is GPS equipped is
  160. the kludge on the backpanel to hold the GPS antenna connector and the
  161. presence of the two switches added to the front panel to select whether the
  162. external terminal device is talking to the GPS or TNC, and to enable or
  163. disable GPS packet reporting.  Other smaller packages have been made using
  164. the PACCOM and DRSI TNC's and the TTL only model of the Magellian GPS card
  165. which is only about 5 inches by 3 inches.  I shy away from this card for the
  166. casual experimenter because of the absence of any data or power supply
  167. buffering.  One wiring error or static charge and you have blown a $395 card! 
  168. The $445 model with onboard 12 volt regulators and RS-232 buffers is much
  169. more forgiving.
  170.  
  171. At your next club budget meeting, instead of throwing another $800 at the
  172. repeater monster, buy the components to build a GPS/TNC tracking device in to
  173. a cigar box size package.  Then at all future public service events, you have
  174. a package with whip antenna on top that can be duck-taped to the top of any
  175. vehicle for automatic vehicle tracking.  Let your imagination roam!
  176.