background image

Appendix A.  CR23X/CR10X Programs 

A-8 

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 seconds should update 
every time the GPS data is updated.  

If the GPS time and position data are not shown in the input locations, check 
the communication cable wiring.  

If the Garmin16-HVS data is not correct every program table execution but 
correct sometimes, check the P15 time-out.  It may need a longer time-out.  
Also check the P15 maximum number of characters to receive, usually 100 is 
enough.  Check the P15 termination character; it should be set to 42 (*).  The 
termination character should also work if set to 13 or 10.  Also check the 
buffering and filter.  Buffering should be turned off.  On a CR23X, index 
parameter 2.  The CR10X does not buffer data.  

For P15 to properly read the $GPGGA string, P15 must be executing while the 
$GPGGA string starts and finishes.  The P15 time-out needs to be long enough 
to pick up the string.  The string is output once a second.  If P15 starts to 
execute while the Garmin16-HVS is sending the string, P15 must wait until the 
string is sent again plus the amount of time it takes to send the string.  It 
shouldn’t need more than 1.5 seconds.  P15 time-out is in units of 0.01 
seconds, 100 = 1 second.  A longer time-out will force the datalogger to wait 
until the time-out has expired or the termination character is received or the 
maximum number of characters are received.  If the data in input locations 
seem to move from the proper input location to another input location, P15 is 
stopping before the entire string has been read.  An example is latitude being 
displayed in the time field, then in the latitude field.  P15 works best when P15 
quits reading data because the termination character has been read.  Using the 
PPS to trigger subroutine 98 is the best way to start P15 just before the 
Garmin16-HVS sends the $GPGGA string.  If the PPS signal pulls C8 high 
while the datalogger is in the middle of executing an instruction, it may not be 
able to run subroutine 98 before the $GPGGA string has started, which will 
cause the datalogger to miss the data string.  Turning on the data buffering 
(CR23X only) may remedy the problem.  Lengthening the serial time-out to 
allow P15 to execute for 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 Garmin16-HVS has a valid 
GPS fix, except during a Garmin16-HVS warm start where time can be read 
before position is known.  Don’t spend a lot of time trouble shooting a 
phantom problem just because the GPS receiver does not have a valid GPS fix. 

Содержание GPS 16-HVS

Страница 1: ...Garmin 16 HVS GPS Receiver Revision 2 08 C o p y r i g h t 2 0 0 3 2 0 0 8 C a m p b e l l S c i e n t i f i c I n c...

Страница 2: ...ther warranties expressed or implied including warranties of merchantability or fitness for a particular purpose CAMPBELL SCIENTIFIC INC is not liable for special indirect incidental or consequential...

Страница 3: ...ush 5 4 1 4 SerialClose 6 4 2 Parsing and Data Storage Options 6 4 2 1 SplitStr 6 4 2 2 Converting Strings to Floating Point Numbers 6 5 Troubleshooting 8 5 1 GPS Setup and Function 8 A CR23X CR10X Pr...

Страница 4: ...art Number 17218 3 Tables 2 1 Wiring the RJ45 Connector with Flying Leads 2 2 2 Wiring without the RJ45 Connector Garmin Wiring 3 2 3 RJ45 to DB9 RS 232 Adapter 3 3 1 NEMA GPGGA String Definition 4 A...

Страница 5: ...ame housing with one cable for the power supply and communications The GPS antenna must have a clear view of the sky Generally the GPS antenna will not work indoors The Garmin16 HVS is a 12 channel GP...

Страница 6: ...iring 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 Y...

Страница 7: ...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...

Страница 8: ...nn nnn Longitude Degrees minutes thousandths of minutes 5 b E East or W West 6 t GPS Quality Indicator 0 No GPS 1 GPS 2 DGPS 7 uu Number of Satellites in Use 8 v v Horizontal Dilution of Precision HDO...

Страница 9: ...nging the GPS receiver setups including using higher baud rates which the CR1000 CR3000 CR800 and CR850 support 4 1 Read GPS Data 4 1 1 SerialOpen SerialOpen is used to open the appropriate serial por...

Страница 10: ...n to parse the GPGGA string into an array of strings Declare an array of 18 strings of 15 characters Example ParseStr 18 as string 15 The SplitStr instruction uses the result string search string filt...

Страница 11: ...MIEW STRING Sample 1 QUAL STRING Sample 1 NUMSATS STRING Sample 1 HDP STRING Sample 1 ALTDE STRING Sample 1 ALTUNIT STRING Sample 1 GIODAL STRING Sample 1 GEOUNIT STRING Sample 1 AGE STRING Sample 1 D...

Страница 12: ...ial port can be the same as used to communicate with the datalogger Terminal emulation software is pretty common Hyperterm is supplied as part of Windows and works Procomm is another communication sof...

Страница 13: ...read must be considered Generally the execution interval can not be less than 2 seconds when the PPS signal is not used A 1 2 Reading GPS Data Table A 1 is a sample CR23X P15 instruction for reading...

Страница 14: ...as been read P15 parameter 10 is the first input location you wish to store GPS data in Fifteen sequential input locations will be used to store time and position Example A 1 Program Instruction 15 P1...

Страница 15: ...e parsed with the P15 instruction when decimal delimiter is on If P15 parameter 2 is 6x where the x selects the baud rate every non numeric value and decimal point will act as a delimiter The Degrees...

Страница 16: ...put 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 Subroutine 98 is interrupt driven and triggered when a risi...

Страница 17: ...bout 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 0000 Execution Interval seconds Table 3 Subroutines 1 Beginning of Subroutin...

Страница 18: ...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 0001 F 3 19 Z Loc Int1 Pluck off hours 8 Z INT X P45 1 19 X Loc Int1 2 20 Z Loc Hours Subtract...

Страница 19: ...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 2 20 Loc Hours Set resolution to high for latitude and Longitude 19 R...

Страница 20: ...must wait until the string is sent again plus the amount of time it takes to send the string It shouldn t need more than 1 5 seconds P15 time out is in units of 0 01 seconds 100 1 second A longer tim...

Страница 21: ...d13 Age of differential GPS data GGA Field14 Differential reference station 2 SIO4 programming fltst 1 t GPGGA xFt Dt Dt b1t Dt Dt b1t Ft Ft Ft FX _ Const OneRep 1 Const NoValues 0 Const OneValue 1 Co...

Страница 22: ...Sio4COMSetUpCmd Port2ComCode UnusedParameter NoValues U nityMultiplier NoOffset Delay 100 mSec Start GGA data filter on SDM Sio4 port SIO4 NotUsed OneRep Sio4Address0 Port2 StartRxFilter RxFilt9001 U...

Страница 23: ...l Characteristics Input Voltage 6 0 Vdc to 40 Vdc unregulated Current 65 mA 12 Vdc GPS Receiver Sensitivity 165 dbW minimum GPS Performance Receiver WAAS Enabled 12 parallel channel GPS receiver conti...

Страница 24: ...L GPGSA GPGSV GPRMC GPVTG Garmin proprietary sentences PGRMB PGRME PGRMF PGRMM PGRMT PGRMV NMEA 0183 Output Position velocity and time Receiver and satellite status Differential Reference Station ID a...

Страница 25: ...output Data off DGPS Mode WAAS only Differential mode Automatic Earth Datum Index NGS 84 Selected Sentences GPGGA Common changes would be baud rate and selected sentences The CR1000 CR3000 CR800 CR850...

Страница 26: ...effect on the next power cycle or an external reset event TABLE D 2 PGRMO Output Sentence Enable Disable PGRMO 1 2 hhCRLF 1 Target Sentence description e g GPVTG 2 Target Sentence Mode where 0 disabl...

Страница 27: ...egardless of the baud rate the sentences are reference to the PPS signal immediately preceding the GPRMC sentence or whichever sentence is output first TABLE D 4 GPGGA Global Positioning System Fix Da...

Страница 28: ...Appendix D Garmin16 HVS Setups D 4 This is a blank page...

Страница 29: ...This is a blank page...

Страница 30: ...L www campbellsci com br suporte campbellsci com br Campbell Scientific Canada Corp CSC 11564 149th Street NW Edmonton Alberta T5M 1W7 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Sci...

Отзывы: