INSTRUCTION MANUAL GPS16X-HVS GPS Receiver March 2014 Copyright © 2008 - 2014 Campbell Scientific Inc.
Table of Contents PDF viewers: These page numbers refer to the printed version of this document. Use the PDF reader bookmarks tab for links to specific sections. 1. Overview ...................................................................... 3 2. Wiring .......................................................................... 3 3. GPS Data ..................................................................... 7 4. CRBasic Programming ............................................... 8 4.1 Read GPS Data ..
GPS16X-HVS GPS Receiver Figures Figure 0—1 GPS16X-HVS GPS Receiver ........................................................................................................... 3 Figure 2—1 RJ45 with Flying Leads, Part Number L17217 .............................................................................. 4 Figure 2—2 CR1000 to GPS16X-HVS Using the L17218 Adapter .................................................................. 4 Figure 2—3 RJ45 to DB9 Serial Adapter, Part Number L17218 ...............
GPS16X-HVS GPS Receiver GPS16X-HVS GPS Receiver Figure 0—1 GPS16X-HVS GPS Receiver 1. Overview The GPS16X-HVS is a complete GPS receiver manufactured by Garmin International, Inc. The GPS16X-HVS has been configured by Campbell Scientific (Canada) Corp. (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.
GPS16X-HVS GPS Receiver If the GPS16X-HVS is to be connected to a computer for setups, an RJ45 to DB9 adapter is needed. TABLE 2-1.
GPS16X-HVS GPS Receiver TABLE 2-2. Wiring without the RJ45 Connector (Garmin Wiring) GPS16X-HVS Pin Color 1 Red 2 Black 3 Yellow 4 5 6 7 8 Blue White Gray Green Violet Function Power in, 6.0 to 40 volts DC Power ground Remote power on/off switch, ground for on, float for off Port 1 Data in, RS232 or TTL levels OK Port 1 Data out, RS232 Levels PPS Port 2 Data in, RS232 or TTL levels, DGPS input Port 2, Data out, RS232, reserved for future use TABLE 2-3.
GPS16X-HVS GPS Receiver Figure 2—4 GPS16X-HVS Receiver Mounting Kit, Part Number C1737 6
GPS16X-HVS GPS Receiver 3. GPS Data The GPS16X-HVS has several data formats available. The GPS16X-HVS is configured to output the NMEA $GPGGA time and position string. It is possible to configure the GPS16X-HVS to output other NMEA strings including the $GPVTG track made good and ground speed string. Sample NMEA $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. NMEA $GPGGA String Definition Field 0 1 2 3 4 5 6 Description $GPGGA hhmmss 1111.
GPS16X-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.
GPS16X-HVS GPS Receiver Example: Public GPSdata as string * 101 Example: SerialIn (GPSData,com1,20,13,100) 4.1.3 SerialFlush The SerialFlush instruction is used to clear all data from the buffer associated with the serial port. 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.
GPS16X-HVS GPS Receiver Alias ParseStr(7) = GPS_Quality Alias ParseStr(8) = Num_Satellites Alias ParseStr(9) = HDOP Alias ParseStr(10) = Altitude Alias ParseStr(11) = Altitude_units Alias ParseStr(12) = Geoidal_Sep Alias ParseStr(13) = Geoidal_units Alias ParseStr(14) = DGPS_Age Alias ParseStr(15) = Diff_Ref_ID Alias ParseStr(16) = Asterisk Alias ParseStr(17) = Check_Sum Alias ParseStr(18) = CRLF ' Store the ParseStrd elements of the $GPGGA string as ' short strings.
GPS16X-HVS GPS Receiver EndProg 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.
GPS16X-HVS GPS Receiver Appendix A. CR23X Programs A.1 Programming Program instruction 15 (P15) is used to read the NMEA $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.
GPS16X-HVS GPS Receiver 6 7 0 42 8 9 10 11 12 100 80 1 1 0 Note: nothing is actually transmitted Number of consecutive input locations to send Termination character, 42 is ASCII equivalent of the asterisk Maximum number of characters to receive. Delay in mS. How long to wait for $GPGGA string Starting input location for time and position data Multiplier, always 1. Offset, always 0. P15 parameters 4, 5, and 10 are somewhat variable.
GPS16X-HVS GPS Receiver TABLE A-2. Filter ASCII Equivalent 36 71 80 71 71 65 Character $ G P G G A A.1.4 Managing the Data Several of the data values in the $GPGGA string are too large to view or write to final storage. Some simple math is used to parse the data. The UTC time is in the format hhmmss where hh is the hours, mm is the minutes and ss is the seconds. Six digits are too many to view with the datalogger display and some software. Add 0.3 to the raw time field.
GPS16X-HVS GPS Receiver 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. Adjustments can be made by adding a second or two. Be careful about setting seconds to a number greater than 59. You can also correct the UTC time to local time. Table based dataloggers require year, day, hour, minute, and seconds to use P114. Only hour, minutes, and seconds are available from the $GPGGA string.
GPS16X-HVS GPS Receiver 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 location is needed, use the input location pick list (F6).
GPS16X-HVS GPS Receiver 1: 2: 3: 4: 6 3 1 30 X Loc [ Quality ] >= F 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 (P37) 1: 18 X Loc [ Orig_TM ] 2: .
GPS16X-HVS GPS Receiver 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 time stamp 17: Real Time (P77) ^27570 1: 0011 Hour/Minute,Seconds (midnight = 0000) ; Write GPS based time stamp 18: Sample (P70) ^6080 1: 3 Reps
GPS16X-HVS GPS Receiver 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 GPS16X-HVS running and the datalogger program running, look at the input location for GPS Quality Number. This location will show a one when the GPS16X-HVS output is picked up by the datalogger. The input location for parsed time and position are good locations to check. The location for seconds should update every time the GPS data is updated.
GPS16X-HVS GPS Receiver Appendix B. Specifications B.1 Replacement Parts CSC part number GPS16X-HVS C1737 L17217 L17218 Description GPS receiver w/antenna, 15 ft cable GPS16X-HVS mount GPS16X-HVS RJ45 interface cable w/pigtails, 8 inch GPS16X-HVS RJ45 to DB9 RS232 adapter w/8 inch power leads B.2 Specifications Physical Color: Black with white logos Size: 3.58” (91.0 mm) diameter, 1.65” (42 mm) high Weight: 6.1 oz. (174 g) without cable, 11.5 oz.
GPS16X-HVS GPS Receiver Accuracy: Position: Velocity: GPS Standard Positioning Service (SPS) Less than 15 meters, 95% typical (100 meters with Selective Availability on) 0.1 knot RMS steady state DGPS (USCG/RTCM) Position: 3-5 meters, 95% typical Velocity: 0.1 knot RMS steady state DGPS (WAAS) Position: Velocity: PPS Time: Dynamics: Less than 3 meters, 95% typical 0.
GPS16X-HVS GPS Receiver Environmental Characteristics Temperature: 22 -30°C to +80°C operational, -40°C to +80°C storage
GPS16X-HVS GPS Receiver Appendix C. GPS16X-HVS Setups As configured by Campbell Scientific, the GPS16X-HVS will output the NMEA 0183 $GPGGA data string once a second, the PPS signal is enabled with a duration of 100 milliseconds and the baud rate is set to 4800 baud. Special software (SNRSRCFG.EXE) is available from Garmin International for system setup. The GPS16X-HVS user manual available from Garmin International provides technical details beyond the scope of the Campbell Scientific user manual.
GPS16X-HVS GPS Receiver TABLE D-1.
GPS16X-HVS GPS Receiver 5. $PGRMO,,G will cause the COM 1 port to change to GARMIN data Transfer format for the duration of the power cycle. The GARMIN mode is required for GPS 16/17 series product software updates. TABLE D-3.
GPS16X-HVS GPS Receiver be transmitted, null if not an RTCM DGPS fix) This is a blank page.
Campbell Scientific (Canada) Corp. | 14532 131 Avenue NW | Edmonton AB T5L 4X4 | 780.454.2505 | www.campbellsci.