GPS16X-HVS GPS Receiver Revision: 7/10 C o p y r i g h t © 2 0 0 3 - 2 0 1 0 C a m p b e l l S c i e n t i f i c , I n c .
Warranty and Assistance The GPS16X-HVS GPS RECEIVER is warranted by Campbell Scientific, Inc. 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 have no warranty. Campbell Scientific, Inc.'s obligation under this warranty is limited to repairing or replacing (at Campbell Scientific, Inc.'s option) defective products.
GPS16X-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. Specifications ..............................................................2 2.1 Replacement Parts ....................................................................................2 2.2 Specifications........................
GPS16X-HVS GPS Receiver Table of Content B.2.5 Program Discussion....................................................................... 4 B.2.5.1 CR23X Example Program ................................................... 6 B.3 Troubleshooting ...................................................................................... 9 C. Using an SDM-SIO4 .................................................C-1 C.1 SDM-SIO4 Connections ..................................................................... C-1 C.
GPS16X-HVS GPS Receiver FIGURE 1. The GPS16X-HVS terminates in pigtails for direct connection to our dataloggers. 1. Overview The GPS16X-HVS is a complete GPS receiver manufactured by Garmin International, Inc. Campbell Scientific configures the GPS16X-HVS to work with our dataloggers and modifies its cable so that the cable terminates in pigtails. The pigtails connect directly to the control ports of all dataloggers.
GPS16X-HVS GPS Receiver 2. Specifications 2.1 Replacement Parts CSI part number 17212 Description GPS16X-HVS magnetic mount 2.2 Specifications Physical Color: Black with white logos Size: 3.39” (86 mm) diameter, 1.65” (42 mm) high Weight: 6.4 oz. (181 g) without cable, 11.7 oz. (332 g) with 5 meter cable Cable: Black PVC-jacketed, 5 meter, foil-shielded, 8-conductor, 28 AWG Electrical Characteristics Input Voltage: 8.
GPS16X-HVS GPS Receiver DGPS (USCG/RTCM) Position: 3-5 meters, 95% typical Velocity: 0.1 knot RMS steady state DGPS (WAAS) Position: Less than 3 meters Velocity: 0.1 knot RMS steady state PPS Time: ±1 microsecond at rising edge of PPS pulse (subject to Selective Availability) Dynamics: 999 knots velocity (limited above 60,000 feet, 6g dynamics) Interfaces True RS-232 output, asynchronous serial input compatible with RS-232 or TTL voltage levels, RS-232 polarity.
GPS16X-HVS GPS Receiver 3. Wiring The GPS16X-HVS connects directly to a CR800, CR850, CR1000, or CR3000 datalogger (see Figure 2 and Table 3-1). Refer to Appendix B.1 if connecting the receiver to a CR23X. Our CR5000 and CR9000X connect to the receiver via the SC110 and an SDM-SIO4 (see Appendix C). If the GPS16X-HVS is to be connected to a computer to change the default settings, an SC110 cable is needed (see Appendix A). TABLE 3-1.
GPS16X-HVS GPS Receiver 4. GPS Data The GPS16X-HVS has several data formats available. The GPS16X-HVS is configured to output the NMEA $GPGGA and $GPRMC 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. See Appendix A for details. 4.1 $GPGGA Sentence (Position and Time) 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 4-1.
GPS16X-HVS GPS Receiver Sample $GPGGA output strings: Cold Start No satellites acquired, Real Time Clock and Almanac invalid: $GPGGA,,,,,,0,00,,,,,,,*66 Warm Start No satellites acquired, time from Real Time Clock, almanac valid: $GPGGA,235032.0,,,,,0,00,,,,,,,*7D 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.
GPS16X-HVS GPS Receiver 5. CRBasic Programming This section describes programming a CR800, CR850, CR1000, or CR3000. See Appendix B and C for programming other dataloggers. CRBasic is used to write programs for the CR1000, CR3000, CR800, and CR850 dataloggers. These dataloggers use several instructions to read GPS output, which is asynchronous serial data. As shipped from Campbell Scientific, the GPS receiver will output data once a second, 38400 baud, 8 data bits, no parity, and 1 stop bit.
GPS16X-HVS GPS Receiver Array(7) = Magnetic variation (positive = East, negative = West) Array(8) = Fix Quality (0 = invalid, 1 = GPS, 2 = differential GPS, 6 = estimated) Array(9) = Number of Satellites Array(10) = Altitude, meters Array(11) = Pulse per second (PPS) length, microseconds Array(12) = Seconds since last GPRMC sentence Array(13) = GPS Ready, 10 = ready Array(14) = Maximum clock change, milliseconds (10 msec resolution) Array(15) = Clock change count ComPort The ComPort parameter is the contr
GPS16X-HVS GPS Receiver PipeLineMode Const LOCAL_TIME_OFFSET = -6 'Local time offset relative to UTC time Dim nmea_sentence(2) As String * 90 Public gps_data(15) Alias gps_data(1) = latitude_a Alias gps_data(2) = latitude_b Alias gps_data(3) = longitude_a Alias gps_data(4) = longitude_b Alias gps_data(5) = speed Alias gps_data(6) = course Alias gps_data(7) = magnetic_variation Alias gps_data(8) = fix_quality 'Degrees latitude (+ = East; - = West) 'Minutes latitude 'Degress longitude (+ = East; - = West)
GPS16X-HVS GPS Receiver 5.3 Example Program Using Serial Instruction Serial programming allows the retrieval of all values of GPRMC and GPGGA values. The GPS instruction is a subset of the values that are available.
GPS16X-HVS GPS Receiver Sample (1,ggalongitude,String) Sample (1,ggae_w_ind,String) Sample (1,ggapositionfix,String) Sample (1,gganumsatellites,String) Sample (1,ggahdop,String) Sample (1,ggaaltitude,String) Sample (1,ggaaltutudeunits,String) Sample (1,ggageoidsep,String) Sample (1,ggageoidunits,String) Sample (1,ggachecksum,String) EndTable 'Main Program BeginProg Scan (1,Sec,0,0) SerialOpen (Com4,38400,0,0,500) SerialInBlock (Com4,rawdata,500) 'parse rmc data rmcid=Mid (rawdata,1,6) rmcutc=Mid (rawdata,8
GPS16X-HVS GPS Receiver 6. 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. 6.
Appendix A. Changing GPS16X-HVS Settings As configured by Campbell Scientific, the GPS16X-HVS will output the NMEA 0183 $GPGGA and $GPRMC data strings once a second, the PPS signal is enabled with a duration of 80 milliseconds and the baud rate is set to 38,400 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.
Appendix A. Changing GPS16X-HVS Settings TABLE A-1. SC110’s DCE Cable Wiring Wire Color of SC110’s DCE Cable Wire Color of GPS16X-HVS Power Supply Brown Blue N/A White White N/A Yellow Shield N/A N/A Red +12 V N/A Black Ground N/A Yellow Ground A.2 NMEA Commands for System Setup Received NMEA strings are commands to the GPS16X-HVS which change some operating parameter. Null fields in the configuration sentence indicate no change.
Appendix A. Changing GPS16X-HVS Settings TABLE A-3. PGRMO Output Sentence Enable/Disable $PGRMO,1,2,*hhCRLF 1 Target Sentence description (e.g., GPVTG) 2 Target Sentence Mode, where: 0 = disable specified sentence 1 = enable specified sentence 2 = disable all output sentence (except PSLIB) 3 = enable all output sentences (except GPALM) 4 = restore factory default output sentences PGRMO Notes: 1.
Appendix A. Changing GPS16X-HVS Settings In Table A-4 default Output indicates NMEA sentences that are GPS16X-HVS defaults. CSI turns off all output except the GPGGA sentence. The time required to output a NMEA sentence can be determined by multiplying the maximum number of characters by 10 then dividing the result by the baud rate. Selected sentences will be transmitted at a periodic rate based on the selected baud rate and the selected output sentences. The sentences will be output contiguously.
Appendix B. CR23X Wiring and Programming B.1 CR23X Connections Reconfigure the receiver for 1200 baud using Garmin configuration software available on Garmin’s website. Refer to Table B-1 to connect the GPS16XHVS directly to a CR23X datalogger. TABLE B-1.
Appendix B. CR23X Wiring and Programming B.2.2 Reading GPS Data Table B-2 is a sample CR23X P15 instruction for reading NMEA $GPGGA data string. The second parameter has two dashes indicating data buffering has been turned off. The CR10X does not have the data buffering option. TABLE B-2. P15 for NMEA $GPGGA Data String Parameter Data Description 1 1 Repetitions 2 66 -- Configuration code for RS232 ASCII data at 38400 baud with data buffering turned off. The -- indicates data buffering turned off.
Appendix B. CR23X Wiring and Programming B.2.2.1 CR23X Example of Instruction 15 (P15) Port Serial I/O (P15) 1: 1 Reps 2: 66 -RS-232 ASCII (decimal delimiter), 38400 Baud 3: 1 Delay (units = 0.01 sec) 4: 5 Control Ports 5: 1 Output Loc [ Bulk ] 6: 0 No. of Locs to Send 7: 42 Termination Character 8: 100 Maximum Characters 9: 80 Time Out Delay (units = 0.01 sec) 10: 1 Loc [ Raw_time1 ] 11: 1 Mult 12: 0 Offset NOTE Communication cable wiring for: CR23X/Example B.2.2.1 — PPS to C8, GPS transmit to C5. B.2.
Appendix B. CR23X Wiring and Programming integer portion (hours/minutes) to a new input location, then use P44 to write the fractional portion to another input location (seconds) and multiply that location by 100. The last step is to use P45 again to take the integer portion of the input location for seconds. The result is hour/minutes in one input location and seconds in another. The latitude and longitude can be parsed with the P15 instruction when decimal delimiter is on.
Appendix B. CR23X Wiring and Programming The GPS16X-HVS needs to be reconfigured using the Garmin configuration software from the Garmin website for 1200 baud, 8 data bits, 1 stop bit and no parity (see Appendix A). The GPGGA string should be output. The 1 pulse per second signal should be output with a pulse duration of 80 milliseconds. The code required to read the GPS information and store it to final storage is in Subroutine 98.
Appendix B. CR23X Wiring and Programming B.2.5.1 CR23X Example Program ;{CR23X} ; *Table 1 Program 01: 60 Execution Interval (seconds) ; Instruction to eliminate warning about unused subroutine, not needed 1: If Flag/Port (P91) 1: 11 Do if Flag 1 is High 2: 98 Call Subroutine 98 *Table 2 Program 02: 0.
Appendix B. CR23X Wiring and Programming ; 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: .
Appendix B.
Appendix B. CR23X Wiring and Programming B.3 Troubleshooting The first step is to verify the GPS16X outputs with a terminal program (see Section 6.1). The second 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.
Appendix B.
Appendix C. Using an SDM-SIO4 C.1 SDM-SIO4 Connections An SDM-SIO4 should be used if measuring the GPS16X-HVS with a CR5000 or CR9000X datalogger. An SC110 cable is required to connect the GPS16XHVS to an SDM-SIO4. The SC110 consists of two cables. Use the cable that terminates in a 9-pin male connector (DTE). The stripped and tinned leads of that cable attach to the GPS16X-HVS (see Table C-1). TABLE C-1.
Appendix C. Using an SDM-SIO4 Const ElevenGGAValues=11 '.. Const UnityMultiplier=1.0 Const NoOffset=0.0 '.. Const Sio4Address0=0 Const Port2=2 '.. 'SDM-Sio4 command codes: Const UnusedParameter = 0000 Const PollForData0001 = 0001 Const SendDataToLgr = 0004 Const Sio4COMSetUpCmd = 2049 Const StartRxFilter = 2054 Const Port2ComCode = 9147 '9=NoHandshaking; 1=1StopBitNoParity; 4=8DataBits; 7=19200Baud Const RxFilt9001 = 9001 'Command parameter for user defined fltst #1. Dim DataPoll,NotUsed '..
Appendix C. Using an SDM-SIO4 Delay(10,mSec) SDMSIO4(RawGGAData(),OneRep,Sio4Address0,Port2,SendDataToLgr,UnusedParameter,UnusedParameter,Ele venGGAValues,UnityMultiplier,NoOffset) Delay(10,mSec) CallTable(GPSData) EndIf '..
Appendix C.
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com • info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za • cleroux@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA) PO Box 444 Thuringowa Central QLD 4812 AUSTRALIA www.campbellsci.com.au • info@campbellsci.com.au Campbell Scientific do Brazil Ltda.