gps-sdr-sim

所属分类:单片机开发
开发工具:Unix_Linux
文件大小:4211KB
下载次数:13
上传日期:2017-03-24 22:59:33
上 传 者AfE
说明:  GPS-SDR-SIM generates GPS baseband signal data streams, which can be converted to RF using software-defined radio (SDR) platforms, such as bladeRF, HackRF, and USRP.

文件列表:
LICENSE (1082, 2017-03-17)
Makefile (397, 2017-03-17)
bladerf.script (150, 2017-03-17)
brdc3540.14n (270728, 2017-03-17)
circle.csv (135000, 2017-03-17)
extclk (0, 2017-03-17)
extclk\extclk.GBL (13518, 2017-03-17)
extclk\extclk.GBS (459, 2017-03-17)
extclk\extclk.GML (209, 2017-03-17)
extclk\extclk.GTL (22056, 2017-03-17)
extclk\extclk.GTO (1925, 2017-03-17)
extclk\extclk.GTS (669, 2017-03-17)
extclk\extclk.TXT (244, 2017-03-17)
extclk\hackrf_gpssim.jpg (131141, 2017-03-17)
extclk\hackrf_tcxo.jpg (168104, 2017-03-17)
getopt.c (4241, 2017-03-17)
getopt.h (148, 2017-03-17)
gps-sdr-sim-uhd.py (3562, 2017-03-17)
gpssim.c (57618, 2017-03-17)
gpssim.h (5003, 2017-03-17)
player (0, 2017-03-17)
player\bladeplayer.c (7169, 2017-03-17)
player\hackplayer.c (5422, 2017-03-17)
rocket.csv (175545, 2017-03-17)
rtk (0, 2017-03-17)
rtk\base.csv (135000, 2017-03-17)
rtk\base.nav (8231, 2017-03-17)
rtk\base.obs (268485, 2017-03-17)
rtk\base.ubx (197732, 2017-03-17)
rtk\rover.csv (135000, 2017-03-17)
rtk\rover.nav (8231, 2017-03-17)
rtk\rover.obs (246091, 2017-03-17)
rtk\rover.ubx (180948, 2017-03-17)
rtk\rtklib (0, 2017-03-17)
rtk\rtklib\gndtrk.png (21124, 2017-03-17)
rtk\rtklib\option1.png (20522, 2017-03-17)
... ...

# GPS-SDR-SIM GPS-SDR-SIM generates GPS baseband signal data streams, which can be converted to RF using software-defined radio (SDR) platforms, such as [bladeRF](http://nuand.com/), [HackRF](https://github.com/mossmann/hackrf/wiki), and [USRP](http://www.ettus.com/). ### Windows build instructions 1. Start Visual Studio. 2. Create an empty project for a console application. 3. On the Solution Explorer at right, add "gpssim.c" and "getopt.c" to the Souce Files folder. 4. Select "Release" in Solution Configurations drop-down list. 5. Build the solution. ### Building with GCC ``` $ gcc gpssim.c -lm -O3 -o gps-sdr-sim ``` ### Generating the GPS signal file A user-defined trajectory can be specified in either a CSV file, which contains the Earth-centered Earth-fixed (ECEF) user positions, or an NMEA GGA stream. The sampling rate of the user motion has to be 10Hz. The user is also able to assign a static location directly through the command line. The user specifies the GPS satellite constellation through a GPS broadcast ephemeris file. The daily GPS broadcast ephemers file (brdc) is a merge of the individual site navigation files into one. The archive for the daily file is: [ftp://cddis.gsfc.nasa.gov/gnss/data/daily/](ftp://cddis.gsfc.nasa.gov/gnss/data/daily/) These files are then used to generate the simulated pseudorange and Doppler for the GPS satellites in view. This simulated range data is then used to generate the digitized I/Q samples for the GPS signal. The bladeRF command line interface requires I/Q pairs stored as signed 16-bit integers, while the hackrf_transfer and gps-sdr-sim-uhd.py support signed bytes. HackRF and bladeRF require 2.6 MHz sample rate, while the USRP2 requires 2.5 MHz (an even integral decimator of 100 MHz). The simulation start time can be specified if the corresponding set of ephemerides is available. Otherwise the first time of ephemeris in the RINEX navigation file is selected. The maximum simulation duration time is defined by USER_MOTION_SIZE to prevent the output file from getting too large. The output file size can be reduced by using "-b 1" option to store four 1-bit I/Q samples into a single byte. You can use [bladeplayer](https://github.com/osqzss/gps-sdr-sim/tree/master/player) for bladeRF to playback the compressed file. ``` Usage: gps-sdr-sim [options] Options: -e RINEX navigation file for GPS ephemerides (required) -u User motion file (dynamic mode) -g NMEA GGA stream (dynamic mode) -l Lat,Lon,Hgt (static mode) e.g. 30.286502,120.032669,100 -t Scenario start time YYYY/MM/DD,hh:mm:ss -T Overwrite TOC and TOE to scenario start time -d Duration [sec] (dynamic mode max: 300 static mode max: 8***00) -o I/Q sampling data file (default: gpssim.bin) -s Sampling frequency [Hz] (default: 2600000) -b I/Q data format [1/8/16] (default: 16) -i Disable ionospheric delay for spacecraft scenario -v Show details about simulated channels ``` The user motion can be specified in either dynamic or static mode: ``` > gps-sdr-sim -e brdc3540.14n -u circle.csv ``` ``` > gps-sdr-sim -e brdc3540.14n -g triumphv3.txt ``` ``` > gps-sdr-sim -e brdc3540.14n -l 30.286502,120.032669,100 ``` ### Transmitting the samples The TX port of a particular SDR platform is connected to the GPS receiver under test through a DC block and a fixed 50-60dB attenuator. The simulated GPS signal file, named "gpssim.bin", can be loaded into the bladeRF for playback as shown below: ``` set frequency 1575.42M set samplerate 2.6M set bandwidth 2.5M set txvga1 -25 cal lms cal dc tx tx config file=gpssim.bin format=bin tx start ``` You can also execute these commands via the `bladeRF-cli` script option as below: ``` > bladeRF-cli -s bladerf.script ``` For the HackRF: ``` > hackrf_transfer -t gpssim.bin -f 1575420000 -s 2600000 -a 1 -x 0 ``` For UHD supported devices (tested with USRP2 only): ``` > gps-sdr-sim-uhd.py -t gpssim.bin -s 2500000 -x 0 ``` ### License Copyright © 2015 Takuji Ebinuma Distributed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

近期下载者

相关文件


收藏者