Sylphase SDGPS
The software-defined GPS(/GNSS) toolkit
Getting started with the GNSS simulator

Simulator front panel Simulator front panel (off-axis)

Congratulations on your purchase of a Sylphase GNSS simulator!

Kit contents


Included in the kit are the following:

  • 1x Sylphase GNSS simulator
    • Inside top drawer on right: Empty for storage
    • Inside middle drawer on right: USB A to SATA cable
    • Inside bottom drawer on right: (2) SMA to SMA cables and (2) BNC to BNC cables
  • 1x IEC power cable

Mechanical information


The simulator is housed in a 4U rackmount server case. Its dimensions are approximately 20.8" x 19.0" x 7.0" and its weight is approximately 50 lbs.

Connectors


Simulator front panel

The front panel has the following labelled ports:

  • Ch A - RF - SMA - Channel A RF output/input
    • Internally limited to 0 dBm to avoid damage to simulator or external equipment.
  • Ch A - DC bias - BNC - DC bias input/output for Ch A - RF
    • Maximum voltage: 12 V
    • Maximum current: 100 mA
  • Ch B - * - (see Ch A - *)
  • PPS in - PPS (Pulse-Per-Second) input
    • Maximum voltage: 3.3V into 50 ohm
  • PPS out - PPS (Pulse-Per-Second) output
    • Output voltage: 3.3V open-circuit; 1.65V into 50 ohm
  • 10 MHz in - Frequency reference input
    • Maximum power: 8 dBm
  • 10 MHz out - Frequency reference output
    • Output power: 8 dBm
  • GPSDO antenna - Antenna input for internal GPSDO receiver
    • 3.3V DC bias, 100 mA maximum current

The rear panel has standard PC connections, including but not limited to:

  • 1x IEC AC power connector
  • 1x gigabit Ethernet port
  • 2x USB-A ports
  • 1x USB-C port supporting Thunderbolt for connection to an internal monitor or docking station
    • Tested for compatibility with Lenovo ThinkVision P32p-20 monitor
  • 1x HDMI port

Getting started


  1. Remove the simulator from its packaging.
  2. Connect power using the provided IEC cable; the simulator should automatically power on.
  3. Connect a monitor, mouse, and keyboard by either:
    • Connecting a monitor with Thunderbolt docking support (e.g. Lenovo ThinkVision P32p-20) and attached mouse/keyboard to one of the rear USB-C connectors.
    • Connecting a monitor to the rear HDMI port and a mouse/keyboard to two of the rear USB ports.
  4. You should see a Ubuntu login screen. The username is ubuntu and the default password is ubuntu.
  5. Once logged in, open a terminal and run screen -x sdgps. You should see a view like the following:

  6. The above view indicates that the simulator has successfully started up and is running in its default configuration, which is declared in ~/sdgps/run_sdgps.sh.
  7. Interrupt the simulation by pressing Ctrl-C. The screen should look like this:

  8. The simulator is now ready to be used. Copy run_sdgps.sh to a new file and modify it to create a custom scenario. See below for examples.

Example scenarios


Static L1+E1+L2C+E5b simulation (without ionospheric model)


The following command will start a static scenario with L1, E1, L2C, and E5b signals being generated:

build/main \
generate-simple-trajectory --rate inf \
--position-ecef '[740883, -5497747, 3136908]' \
--start-time 1298764809 \
! simulate-raw sylphase-simulator: --cn0 40 \
--start-stream-time 0 \
! sylphase-simulator --antenna-lna-gain 25

The above command starts the simulation at GNSS timestamp 1298764809, which can be translated into a human-readable date with the convert-time utility, like so:

sdgps convert-time --gnss-time 1298764809

GNSS time = 1298764809.000000000000000000
Gregorian time = 2021-03-03T00:00:09.000000000000000000 GPS
Unix time/UTC = 1614729591.000000000000000000
UTC (ISO 8601) = 2021-03-02T23:59:51.000000000000000000Z

Static L1+E1+L2C+E5b simulation (with ionospheric model)


The following commands will start a static scenario with L1, E1, L2C, and E5b signals being generated with a sample Klobuchar ionospheric model:

cat > tmp.iono <<'EOF'
{
"a": [4.65661287307739e-09, 1.49011611938477e-08, -5.96046447753906e-08, -5.96046447753906e-08],
"b": [79872, 65536, -65536, -393216]
}
EOF
build/main \
generate-simple-trajectory --rate inf \
--position-ecef '[740883, -5497747, 3136908]' \
--start-time 1298764809 \
! simulate-raw sylphase-simulator: --cn0 40 \
--start-stream-time 0 \
--physical-ionospheric-model static-gps:--filename=tmp.iono \
! sylphase-simulator --antenna-lna-gain 25

Static L1+E1+L2C+E5b simulation (with simulation time aligned to real time)


The following command will start a static scenario with L1, E1, L2C, and E5b signals being generated, with simulated GNSS time being aligned to within ±1 ms of real time (as obtained from the host computer's clock):

mkdir -p simlog && LOGPREFIX=simlog/$(date +%s) && mkdir "$LOGPREFIX" && \
build/main \
    generate-simple-trajectory --rate inf --position-ecef '[-3884259, 4607249, 2082592]' \
    ! shift-gnss-time --start-now-coordinated-via "$LOGPREFIX"/start_gps_time \
    ! simulate-raw sylphase-simulator: --cn0 40 --start-stream-time 0 \
    ! sylphase-simulator --antenna-lna-gain 25 --start-tx-coordinated-via "$LOGPREFIX"/start_gps_time

Signal power control


The recommended way to adjust the output signal power is by using the sylphase-simulator --antenna-lna-gain option. The above examples set --antenna-lna-gain 25, which makes the simulator output a factory-calibrated signal power that emulates an antenna with a total gain of 25 dB. However, this calibration was done assuming 15 dB of loss between the simulator's front panel "Ch A/B - RF" port and the GNSS receiver.

To make the --antenna-lna-gain option work as intended, compute the total loss of any splitters in the signal path between the simulator's front panel connection and the DUT. Then, add (15 dB) - LOSS of extra attenuation so that the total loss is now 15 dB.

In general, if you increase the --antenna-lna-gain option's value by X, the simulator's output power will increase by X dB.

User-calibrated output signal


To precisely set the output signal power level, obtain a spectrum analyzer and use a 2-way power divider so that the spectrum analyzer is receiving an RF signal identical to the DUT. Make sure to have a DC block installed between the spectrum analyzer and the GNSS receiver; GNSS receivers supply a DC bias, and some spectrum analyzers will be damaged by a DC bias.

L1 spectrum L2 spectrum

You will see a spectrum similar to the above in the L1 and L2 bands. The trapezoidal raised areas are the simulator's output power. The simulator outputs wideband noise that simulates the thermal noise floor after it's been amplified by the (emulated) antenna's LNA.

The noise floor should be measured in the flat region, avoiding any noticeable bumps near the GNSS carrier frequencies. Both of the above spectrums have their span set so that the center of the spectrum corresponds to the L1 and L2 GPS carrier frequency (1.57542 GHz and 1.22760 GHz, respectively). If you look closely, a slight bump is visible at each carrier frequency, corresponding to the central hump of the BPSK spectrum.

Assuming the noise temperature of the antenna is 300 K, the thermal noise floor of the received signal is -173.8 dBm/Hz. If the antenna LNA has a gain of 25 dB, the noise floor of the simulated signal should be:

(thermal noise floor) + (LNA gain)
= (-173.8 dBm/Hz) + (25 dB)
= -148.8 dBm/Hz

When the signal is measured with a spectrum analyzer with an RBW (resolution bandwidth) setting of 10 kHz, the measured noise floor of the simulated signal should be:

(signal noise floor) + 10 log10(RBW in Hz)
= (-148.8 dBm/Hz) + 10 log10(10 kHz)
= -108.8 dBm

The above spectrums show the noise floors being within 0.4 dB of the desired signal level. This means that the behavior of the DUT receiver with regard to internally generated noise sources (e.g. spurs) is now realistic, assuming that the true antenna LNA gain is 25 dB.

If the measured noise floor is not at the desired power level, then the --antenna-lna-gain option can be incrementally adjusted to correct it.

Updating software


There are two methods of updating the simulator's software:

  1. Download just the new binary tarball - fast, but incomplete
  2. Reflash the entire system SSD - slow, but complete

Download just the new binary tarball - fast, but incomplete


If the installed system is functioning, it's possible to download and extract the just the new SDGPS binary and associated files, resulting in the creation of a new subdirectory in the home folder that contains the new version. This is much faster than reflashing the entire SSD, but is not guaranteed to resolve issues involving the base system image. Try this option first, and if issues remain, try the "Reflash the entire system SSD" procedure.

  1. Download the "Simulator binary tar" for the desired SDGPS version from the SDGPS documentation page.
  2. Transfer the "Simulator binary tar" to the simulator home directory ~/ e.g. scp sdgps_simulator_v0.45.1_17585aea.tar.bz2 ubuntu@sylphase-simulator-SNXXX:~/
  3. On the simulator, run the following, replacing version, and hash with that of the specific desired version:
    $ cd
    $ tar -xvf sdgps_simulator_v0.45.1_17585aea.tar.bz2
    $ ln -sfvT sdgps_v0.45.1_17585aea sdgps
    $ sync && sudo reboot -f
    

Here is a sample console log of the above commands being executed:

ubuntu@simulator-unset:~$ cd
ubuntu@simulator-unset:~$ tar -xvf sdgps_simulator_v0.45.1_17585aea.tar.bz2
sdgps_v0.45.1_17585aea/
sdgps_v0.45.1_17585aea/run_sdgps.sh
[... abbreviated ...]
ubuntu@simulator-unset:~$ ln -sfvT sdgps_v0.45.1_17585aea sdgps
'sdgps' -> 'sdgps_v0.45.1_17585aea'
ubuntu@simulator-unset:~$ sync && sudo reboot -f
Rebooting.

After the reboot completes, the simulator should automatically begin operating within the sdgps screen session, as per usual.

Reflash the entire system SSD - slow, but complete (Gen 2)


Reflashing the entire system SSD restores the simulator to the state it would be at when shipped. All files and configuration (e.g. modified run_sdgps.sh startup scripts) on the simulator disk will be lost; copy any important files off of the simulator before proceeding!

  1. Power down the simulator.
  2. Download the "Simulator SSD image" for the desired SDGPS version from the SDGPS documentation page.
  3. Decompress the .img.gz file into a .img file.
    • On Windows: Use 7-Zip
    • On Linux: Run e.g. gunzip sdgps_simulator_v0.45.1_17585aea.img.gz
  4. Remove the 1TB SATA SSD from the bottom right of the simulator's front panel:

    Location of SSD Removing SSD
  5. Connect the SSD to your computer using the provided cable in the drawer.

    Included SATA to USB cable
  6. Write the .img file to the 1TB SATA SSD.
    • On Windows: Use Win32DiskImager
    • On Linux: Run e.g. replace usb-SABRENT_SSHD_ABCDEFA74774-0\\:0 with actual device ID

      sudo dd if=INPUT_FILE of=/dev/disk/by-id/usb-SABRENT_SSHD_ABCDEFA74774-0\:0 conv=nocreat bs=1M status=progress && sync
      
  7. Disconnect the 1TB SATA SSD and reinstall it in the simulator

Note: After reflashing the system you will need to allow the device to completely boot, then power cycle it in order for the hostname to be properly assigned. This process is required each time the entire SSD is reflashed. It is not required if you are only deploying the tarball.