Troubleshooting, 1 testing and evaluating serial communications, Testing and evaluating serial communications – Campbell Scientific GPS16X-HVS GPS Receiver User Manual

Page 19

Advertising
background image

GPS16X-HVS GPS Receiver

GGAstring = rawdata
EndIf
EndIf

'parse rmc data
SplitStr (SubStrings(),RMCstring,",",16,5)
rmcid = SubStrings(1)
rmcutc = SubStrings(2)
rmcstatus = SubStrings(3)
rmclatitude = SubStrings(4)
rmcin_s_ind =SubStrings(5)
rmclongitude=SubStrings(6)
rmce_w_indicator=SubStrings(7)
rmcspeed=SubStrings(8)
rmccourse=SubStrings(9)
rmcutcdate=SubStrings(10)
rmcmagvariation=SubStrings(11)
rmcmage_w =Left(SubStrings(12),1)
rmcchecksum=Right(RMCstring,2)

'parse gga data
SplitStr (SubStrings(),GGAstring,",",16,5)
ggaid=SubStrings(1)
ggautc=SubStrings(2)
ggailatitude=SubStrings(3)
ggan_s_ind=SubStrings(4)
ggalongitude=SubStrings(5)
ggae_w_ind=SubStrings(6)
ggapositionfix=SubStrings(7)
gganumsatellites=SubStrings(8)
ggahdop=SubStrings(9)
ggaaltitude=SubStrings(10)
ggaaltutudeunits=SubStrings(11)
ggageoidsep=SubStrings(12)
ggageoidunits=Left(SubStrings(13),1)
ggachecksum=Right(GGAstring,2)

CallTable gpsdata
NextScan
EndProg

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.1 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

a 9-pin to pigtail cable (SC110/sockets). The computer and serial port can be

13

Advertising