Campbell GPS16X-HVS Instruction Manual

Hide thumbs Also See for GPS16X-HVS:

Advertisement

GPS16X-HVS GPS Receiver
Revision: 8/12
C o p y r i g h t
©
2 0 0 3 - 2 0 1 2
C a m p b e l l
S c i e n t i f i c ,
I n c .

Advertisement

Table of Contents
loading

Summary of Contents for Campbell GPS16X-HVS

  • Page 1 GPS16X-HVS GPS Receiver Revision: 8/12 C o p y r i g h t © 2 0 0 3 - 2 0 1 2 C a m p b e l l S c i e n t i f i c ,...
  • Page 3 Campbell pricelist or product manual. Products not manufactured, but that are re-sold by Campbell, are warranted only to the limits extended by the original manufacturer. Batteries, fine-wire thermocouples, desiccant, and other consumables have no warranty.
  • Page 4 SCIENTIFIC, INC., phone (435) 227-9000. After an applications engineer determines the nature of the problem, an RMA number will be issued. Please write this number clearly on the outside of the shipping container. Campbell Scientific's shipping address is: CAMPBELL SCIENTIFIC, INC.
  • Page 5: Table Of Contents

    Example Program Using Serial Instruction........11 6. Troubleshooting............13 Testing and Evaluating Serial Communications ........13 NMEAStrings Variable Populated, but Clock Not Setting ....14 Appendices A. Changing GPS16X-HVS Settings......A-1 Computer Connections..............A-1 A.1.1 Using the A200 ................ A-1 A.1.1.1 Driver Installation ............A-1 A.1.1.2...
  • Page 6 Troubleshooting................B-9 C. Using an SDM-SIO4..........C-1 SDM-SIO4 Connections..............C-1 CR9000X Example Program ............C-1 Figures 1-1. The GPS16X-HVS terminates in pigtails for direct connection to our dataloggers................1 3-1. CR1000 to GPS16X-HVS connection..........5 A-1. A200 Sensor-to-PC Interface............A-2 Tables 1-1.
  • Page 7: Overview

    The pigtails connect directly to the control ports of our dataloggers. The GPS16X-HVS includes the GPS receiver and antenna in the same housing with one cable for the power supply and communications. The GPS antenna must have a clear view of the sky.
  • Page 8: Compatible Dataloggers

    B and C Our CR800, CR850, CR1000, and CR3000 dataloggers typically use the CRBasic GPS() instruction to read the GPS16X-HVS. To use the PPS functionality, some dataloggers need an updated clock chip. The clock chip is factory replaced (requires an RMA). Dataloggers with the following serial...
  • Page 9: Specifications

    GPS16X-HVS GPS Receiver Specifications Physical Size: 86 mm (3.39 in.) diameter, 42 mm (1.65 in.) high Weight: 181 g (6.4 oz.) without cable, 332 g (11.7 oz.) with 5 m cable Cable: PVC-jacketed, 5 m, foil-shielded, 8-conductor, 28 AWG Electrical Characteristics Input Voltage: 8.0 Vdc to 40 Vdc unregulated...
  • Page 10: Wiring

    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 A200 or SC110 cable is needed (see Appendix A).
  • Page 11: Cr1000 To Gps16X-Hvs Connection

    Ground Power Ground Yellow Ground or Control Port for Power Switch On/Off control White Control Port (Rx) Gray Control Port (Tx) Blue Ground or Control Port data (Tx) for datalogger-based configuration Shield Ground Shield FIGURE 3-1. CR1000 to GPS16X-HVS connection...
  • Page 12: 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.
  • Page 13: Gprmc Sentence (Position And Time)

    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...
  • Page 14: Crbasic Programming

    GPS16X-HVS GPS Receiver 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.
  • Page 15 GPS16X-HVS GPS Receiver The GPS() instruction has the following syntax: GPS(GPSArray,ComPort,TimeOffset,MaxTimeDiff,NMEAStrings) Description of the parameters follows: GPSArray The GPSArray parameter is the variable in which to store the information returned by the GPS. Fifteen values are returned. If this array is not dimensioned to 15, values will be stored to fill the array and no error will be returned.
  • Page 16: Example Program Using Gps() Instruction

    Example Program Using GPS() Instruction The following wiring and short program provide an example of using the GPS() instruction with the Garmin GPS16X-HVS. 'Program the GPS16-HVS to use 38.4 kbaud, no parity, 8 data bits, and 1 stop bit PipeLineMode...
  • Page 17: 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 at Campbell Scientific Factory Defaults Const GPSPort = Com4 'Com port where GPS is connected...
  • Page 18 GPS16X-HVS GPS Receiver Dim NBytesReturned As Long Dim SubStrings(16) As String * 32, rawdata As String * 500 Dim CalculatedChecksum As Long, ReportedChecksum As Long DataTable (gpsdata,True,-1) DataInterval (0,1,Sec,10) Sample (1,rmcid,String) Sample (1,rmcutc,String) Sample (1,rmcstatus,String) Sample (1,rmclatitude,String) Sample (1,rmcin_s_ind,String) Sample (1,rmclongitude,String)
  • Page 19: Troubleshooting

    Fix each subsystem before testing others. Testing and Evaluating Serial Communications Test the GPS16X-HVS for proper operation including the baud rate and output string. Use a computer, terminal emulator software, a serial port (RS-232), and...
  • Page 20: Nmeastrings Variable Populated, But Clock Not Setting

    Set up the software for the correct serial port, 38.4 kbps, 8 data bits, 1 stop bit and no parity. Flow control should be none. Using the SC110 cable, connect the GPS16X-HVS to the computer serial port. Power up the GPS16X-HVS. The GPS antenna should have a clear view of the sky. Don’t expect the GPS antenna to work indoors.
  • Page 21: Changing Gps16X-Hvs Settings

    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.
  • Page 22: Wiring

    One end of the A200 has a terminal block while the other end has a type B female USB port. The terminal block provides 12V, G, TX, and RX terminals for connecting the GPS16X-HVS (see FIGURE A-1 and TABLE A-1). A data cable, CSI part number 17648, ships with the A200. This cable has a USB type-A male connector that attaches to a PC’s USB port, and a type B...
  • Page 23: Powering The Sensor

    A.1.1.3 Powering the Sensor The A200 provides power to the GPS16X-HVS when it is connected to a PC’s USB port. An internal DC/DC converter boosts the 5 Vdc supply from the USB connection to a 12 Vdc output that is required to power the sensor.
  • Page 24 Appendix A. Changing GPS16X-HVS Settings...
  • Page 25: Cr23X Wiring And Programming

    When the PPS signal is used to trigger the read data function (P15), the program table execution interval does not matter. Otherwise the timing between the GPS16X-HVS output and the datalogger read must be considered. Generally the execution interval can not be less than 2 seconds when the PPS...
  • Page 26: Reading Gps Data

    Control ports. Two digit format AB. A is for handshaking and set to zero. B in this example is control port 5 (datalogger RCV). GPS16X-HVS communication cable: GPS transmit to control port 5 in this example Input location where first character to transmit is stored.
  • Page 27: Cr23X Example Of Instruction 15 (P15

    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...
  • Page 28: Program Discussion

    Appendix B. CR23X Wiring and Programming 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.
  • Page 29 Subroutine 98. Subroutine 98 is interrupt driven and triggered when a rising edge is detected on Control port 8. The GPS16X-HVS has a 1 PPS signal which is wired to control port 8. The transmit data line of serial port 1 on the GPS16X-HVS is wired to control port 5.
  • Page 30: Cr23X Example Program

    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...
  • Page 31 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 ]...
  • Page 32 Appendix B. CR23X Wiring and Programming ; 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...
  • Page 33: Troubleshooting

    2 cycles of NMEA output may help. Otherwise the SDM-SIO4 may be required or the datalogger program will need to be simplified. The datalogger will not pick up valid data until the GPS16X-HVS has a valid GPS fix, except during a GPS16X-HVS warm start where time can be read before position is known.
  • Page 34 Appendix B. CR23X Wiring and Programming B-10...
  • Page 35: Sdm-Sio4 Connections

    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 GPS16X- HVS to an SDM-SIO4. The SC110 consists of two cables. Use the cable that terminates in a 9-pin male connector (DTE).
  • Page 36: Filter

    Appendix C. Using an SDM-SIO4 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.
  • Page 38 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)

Table of Contents