===== GPS ===== For a clean reception of a GPS signal, it is advised to have a view as wide as possible of the open sky. Chose a roof-top or a wide field with no obstruction. Then you can start with the reception of a 60-second piece of data: Before doing so, test this given setup with a much shorter sequence, 2 seconds, as described below. Once everything is working all right, use the longer sequence. ==== Hardware-setup ==== The setup of the hardware for the GPS-acquisition can be seen in Figure cap:GPS-setup. If you extend the cable of the GPS-antenna, the received signal may be too weak!
en:research:sr:manuel:gps-setup||GPS-setupcap:GPS-setup
==== Software-setup ==== First you have to re-program the FPGA, so that the correct code is loaded in the ICS-card. Refer to Section sec:FPGA on how to do this. For a first test, it is advised to use only a short testing sequence, see the paragraph below. This short sequence can be used to test whether enough satellites are visible. Once the FPGA is repgrammed do the following: cd $SRADIO/Test/GPS make rf_tail [ wait for the message "*** Acquisition done ***" ] ../../Tools/Dbg/dbg 2 0 > ../../Matlab/GPS/gps_yymmdd_hhmm.dat Where //yymmdd_hhmm// stands for the current date and time. This is just a convenient way to remember when the samples were collected. Be aware that each second of measurement takes about 25MBytes. So 60 seconds of measurement take 1.5GByte! Then you can check which satellites are visible from the antenna location using using the program in //\$SRADIO/Matlab/GPS///: matlab -nojvm -nosplash [ wait for Matlab to start up ] acquisition( 'gps_yymmdd_hhmm.dat', 100000 ); this should show you a plot with a noise-floor around 10000 and a number of points sticking distinctively out to 14000-20000. Then chose the highest point and run the following command: acquisition_scan( 'gps_yymmdd_hhmm.dat', 100000, #sat# ); where //sat// corresponds to the highest peak seen in the previous plot. === Short testing sequence === Before getting a 60-second piece of data, it is adviseable to test it on a short sequence to see whether enough satellites are visible or if there is a problem with the setup. In the file //$SRADIO/Test/GPS/test_gps.c// adjust the //buffer_len//: // Now buffer_len is in seconds of recording swr_sdb_set_config_int( gps, "buffer_len", #2# ); Now the radio will only record 2 seconds of data which will be much shorter to write to the disk using the above-mentioned method.