ملخص المحتوى في الصفحة رقم 1
Garmin 16-HVS GPS Receiver
Revision: 1/07
Copy right © 2003-2007
Campb ell Scientific, In c.
ملخص المحتوى في الصفحة رقم 2
WARRANTY AND ASSISTANCE This equipment is warranted by CAMPBELL SCIENTIFIC (CANADA) CORP. (“CSC”) to be free from defects in materials and workmanship under normal use and service for twelve (12) months from date of shipment unless specified otherwise. ***** Batteries are not warranted. ***** CSC's obligation under this warranty is limited to repairing or replacing (at CSC's option) defective products. The customer shall assume all costs of removing, reinstalling, and shipping defective
ملخص المحتوى في الصفحة رقم 3
Garmin 16-HVS GPS Receiver Table of Contents PDF viewers note: These page numbers refer to the printed version of this document. Use the Adobe Acrobat® bookmarks tab for links to specific sections. 1. Overview.......................................................................1 2. Wiring............................................................................1 3. GPS Data ......................................................................4 4. CRBasic Programming............
ملخص المحتوى في الصفحة رقم 4
Garmin 16-HVS GPS Receiver Table of Contents Figures 1. Garmin 16-HVS GPS Receiver, Part Number 17215 ................................ 1 2. RJ45 with Flying Leads, Part Number 17217............................................ 2 3. CR1000 to GPS16-HVS Using the 17217 Adapter ................................... 2 4. RJ45 to DB9 Serial Adapter, Part Number 17218 ..................................... 3 Tables 2-1. Wiring the RJ45 Connector with Flying Leads ................................
ملخص المحتوى في الصفحة رقم 5
Garmin 16-HVS GPS Receiver FIGURE 1. Garmin 16-HVS GPS Receiver, Part Number 17215 1. Overview The Garmin16-HVS is a complete GPS receiver manufactured by Garmin International, Inc. The Garmin16-HVS has been configured by Campbell Scientific, Inc. (CSI) to work with CSI dataloggers. The CR1000, CR3000, CR800, and CR850 dataloggers use serial input instructions and string handling functions to read, parse and store GPS data. The CR10X, CR23X, and other dataloggers that support P15 or
ملخص المحتوى في الصفحة رقم 6
Garmin 16-HVS GPS Receiver If the Garmin16-HVS is to be connected to a computer for setups, an RJ45 to DB9 adapter is needed. TABLE 2-1. Wiring the RJ45 Connector with Flying Leads GPS-Garmin16-HVS Datalogger Connection Function Blue 12 volts Power Orange Ground Power Ground Black Ground Remote on/off Green Data in RS232 TX out of GPS Yellow None 1 Pulse Per Second FIGURE 2. RJ45 with Flying Leads, Part Number 17217 FIGURE 3. CR1000 to GPS16-HVS Using the 17218 Adapter 2
ملخص المحتوى في الصفحة رقم 7
Garmin 16-HVS GPS Receiver TABLE 2-2. Wiring without the RJ45 Connector (Garmin Wiring) GPS-Garmin16-HVS Pin Color Function 1 Red Power in, 6.0 to 40 volts DC 2 Black Power ground 3 Yellow Remote power on/off switch, ground for on, float for off 4 Blue Port 1 Data in, RS232 or TTL levels OK 5 White Port 1 Data out, RS232 Levels 6 Gray PPS 7 Green Port 2 Data in, RS232 or TTL levels, DGPS input 8 Violet Port 2, Data out, RS232, reserved for future use TABLE 2-3. RJ45 to DB9 RS-232 A
ملخص المحتوى في الصفحة رقم 8
Garmin 16-HVS GPS Receiver 3. GPS Data The Garmin16-HVS has several data formats available. The Garmin16-HVS is configured to output the NEMA $GPGGA time and position string. It is possible to configure the Garmin16-HVS to output other NEMA strings including the $GPVTG track made good and ground speed string. See Appendix D for details. Sample NEMA $GPGGA data string: $GPGGA,hhmmss,llll.lll,a,nnnnn.nnn,b,t,uu,v.v,w.w,M,x.x,M,y.y,zzzz*hh TABLE 3-1. NEMA $GPGGA String Defini
ملخص المحتوى في الصفحة رقم 9
Garmin 16-HVS GPS Receiver Warm Start One satellite in use, time from GPS Real Time Clock (not GPS), no position: $GPGGA,183806.0,,,,,0,01,,,,,,,*7D Valid GPS Fix Three satellites acquired, time and position valid: $GPGGA,005322.0,4147.603,N,11150.978,W,1,03,11.9,00016,M,- 016,M,,*6E If the almanac and ephemeris data are not stored in the non-volatile data, GPS acquisition time is less than 5 minutes. If only the ephemeris data are unknown, acquisition time is less than 45 seconds. If
ملخص المحتوى في الصفحة رقم 10
Garmin 16-HVS GPS Receiver 4.1.4 SerialClose The SerialClose instruction is used to close the serial port. Once closed, the SerialOpen command must be used before more data can be read. 4.2 Parsing and Data Storage Options The CR1000, CR3000, CR800, and CR850 can store data as a string or as a number. Every time the datalogger stores a string, the size of the string determines the number of bytes used. If the string was declared to be 101 bytes long, every time the string is written
ملخص المحتوى في الصفحة رقم 11
Garmin 16-HVS GPS Receiver alias ParseStr(11) = ALTUNIT alias ParseStr(12) = GIODAL alias ParseStr(13) = GEOUNIT alias ParseStr(14) = AGE alias ParseStr(15) = DIFFREF alias ParseStr(16) = ASTERISK alias ParseStr(17) = CHCKSUM alias ParseStr(18) = CRLF ' Store the ParseStrd elements of the $GPGGA string as ' short strings. DataTable(Parsed,1,-1) Datainterval (0,1,sec,10) Sample(1,GPGGA,STRING) Sample(1,TIME,STRING) Sample(1,LAT,STRING) Sample(1,HEMINS,STRING) Sample(1,LONGI,
ملخص المحتوى في الصفحة رقم 12
Garmin 16-HVS GPS Receiver 5. Troubleshooting Testing and evaluation of serial communications is best done by reducing the whole system to small manageable systems. Usually some portions of the whole system are working. The first steps involve finding what is working. During this process you may find parts of the system that are not working or mistakes that can be easily corrected. Fix each subsystem before testing others. 5.1 GPS Setup and Function Test the Garmin16-HVS for prop
ملخص المحتوى في الصفحة رقم 13
Appendix A. CR23X/CR10X Programs A.1 Programming Program instruction 15 (P15) is used to read the NEMA $GPGGA string of time and position data. Each iteration of P15 can either read the numeric fields or read everything. When reading the numeric fields, such as time, latitude, longitude and elevation, P15 requires non-numeric delimiters between data points. The only available format of GPS data with delimiters is the NMEA 0183 format. Program instruction 15 (P15) reads serial data a
ملخص المحتوى في الصفحة رقم 14
Appendix A. CR23X/CR10X Programs P15 parameters 4, 5, and 10 are somewhat variable. When using a CR23X, parameter 4 can be set to 05, 06 or 07 depending on what control ports are used. A CR10X can use control ports 1 through 6. Wiring of the communication cable depends on the selection for parameter 4. With a CR23X the GPS transmit wire is connected to the control port selected in parameter 4. With a CR10X, the GPS transmit wire is connected to the control port 1 higher then the con
ملخص المحتوى في الصفحة رقم 15
Appendix A. CR23X/CR10X Programs A.1.3 Filters Filters can be used to make sure P15 reads the correct data string. Filters also ensure P15 starts to read the string at the beginning of the string. To use a filter, follow P15 with instruction P63 (extended parameters). P63 is used to define the filter. Enter the desired filter in P63. TABLE A-2. Filter ASCII Equivalent Character 36 $ 71 G 80 P 71 G 71 G 65 A A.1.4 Managing the Data Several of the data values in the $GPGGA s
ملخص المحتوى في الصفحة رقم 16
Appendix A. CR23X/CR10X Programs GPS fix. A better approach is to overwrite the GPS quality location with zero before executing P15. Use P30 to overwrite one input location. If the GPS time is used to set the datalogger clock, the GPS time must be parsed into three input locations: Hour, Minutes, Seconds. P114 is used to set the datalogger clock to match values in input locations. Some time will have passed between the GPS fix and when the program table reaches the P114 instruction.
ملخص المحتوى في الصفحة رقم 17
Appendix A. CR23X/CR10X Programs Additional input locations used in the example program are: 18) Orig_TM, Copy of original time 19) Int1, Place holder for math 20) Hours, formatted hours 21) Minutes, formatted minutes 22) Seconds, formatted seconds 23) remainder, place holder for math Before writing any datalogger code, it’s best to enter all the input locations needed. In Edlog, open the input location editor (F5) and enter names for the input locations listed above. When an input lo
ملخص المحتوى في الصفحة رقم 18
Appendix A. CR23X/CR10X Programs ; Test for valid GPS fix and string read 4: If (X<=>F) (P89) 1: 6 X Loc [ Quality ] 2: 3 >= 3: 1 F 4: 30 Then Do ; Make a copy of time 5: Z=X (P31) 1: 1 X Loc [ Raw_Time ] 2: 18 Z Loc [ Orig_TM ] ; Add 0.45 to time stamp to eliminate complications with ; floating point math, P44, and P45 6: Z=X+F (P34) 1: 18 X Loc [ Orig_TM ] 2: 0.45 F 3: 18 Z Loc [ Orig_TM ] ; Move minutes and seconds right of decimal 7: Z=X*F (P
ملخص المحتوى في الصفحة رقم 19
Appendix A. CR23X/CR10X Programs ; Move decimal left 2 places 13: Z=X*F (P37) 1: 19 X Loc [ Int1 ] 2: 100 F 3: 19 Z Loc [ Int1 ] ; Pluck of seconds 14: Z=INT(X) (P45) 1: 19 X Loc [ Int1 ] 2: 22 Z Loc [ Seconds ] ; Write data to final storage every time there is ; a valid read of GPS data 15: Do (P86) 1: 10 Set Output Flag High (Flag 0) 16: Set Active Storage Area (P80)^18796 1: 1 Final Storage Area 1 2: 101 Array ID ; Write datalogger based
ملخص المحتوى في الصفحة رقم 20
Appendix A. CR23X/CR10X Programs 25: End (P95) 26: End (P95) End Program This is a blank page. A.1.6 Troubleshooting The first step is to verify that it really does not work. With the Garmin16-HVS running and the datalogger program running, look at the input location for GPS Quality Number. This location will show a one when the Garmin16-HVS output is picked up by the datalogger. The input location for parsed time and position are good locations to check. The location for secon