I have bought a brand new bladerfx40.
I want to try GPS spoofing, but failed on WIndows 8.1 and ubuntu 16.04.
the main test code is from:
github.com/osqzss/gps-sdr-sim
and the version the latest (current time).
before test, I use a GPS attenna fixed into TX port of bladeRF.
On Windows: (win8.1 64 bits)
1. Build gps-sdr-sim with Visual Studio Community 2013.
2. gps_sdr_sim -e brdc1640.16n -l 30.286502,120.032669,100 -b 16 -d 60
where the brdc1640.16n is downloaded from ftp://cddis.gsfc.nasa.gov/gnss/data/daily
3.modify bladerf.script as following:
set frequency 1575.42M ---> set frequency tx 1575.42M
4. bladeRF-cli -s bladerf.script
the result is following:
Code: Select all
Set TX frequency: 1575420000Hz
Setting RX sample rate - req: 2600000 0/1Hz, actual: 2600000 0/1Hz
Setting TX sample rate - req: 2600000 0/1Hz, actual: 2600000 0/1Hz
Set RX bandwidth - req: 2500000 Hz actual: 2500000 Hz
Set TX bandwidth - req: 2500000 Hz actual: 2500000 Hz
TXVGA1 Gain: -25 dB
LPF tuning module: 25
TX LPF I filter: 35
TX LPF Q filter: 35
RX LPF I filter: 30
RX LPF Q filter: 33
RX VGA2 DC reference module: 27
RX VGA2 stage 1, I channel: 37
RX VGA2 stage 1, Q channel: 45
RX VGA2 stage 2, I channel: 27
RX VGA2 stage 2, Q channel: 35
TX DC I: Value = 64, Error = 0.406
TX DC Q: Value = 272, Error = 0.415
the yellow and green bar are correct signal and are useful to fix the GPS position.
I also do above under ubuntu 16.04 64 bits. summarized as following;
use apt install gnuradio.
use apt install bladerf and bladerf-dev
compile the source code above. (github.com/osqzss/gps-sdr-sim)
the result is same as under windows....as:
TX DC I: Value = 64, Error = 0.406
TX DC Q: Value = 272, Error = 0.415
the Error value above maybe different every time I try.....
I tested above with firmware 1.9.0 as well as 1.8.0. USB2.0 and USB3.0 both tested.
Code: Select all
bladeRF> version
bladeRF-cli version: 1.3.1
libbladeRF version: 1.5.1
Firmware version: 1.8.0
FPGA version: 0.5.0
bladeRF> print
RX Bandwidth: 2500000 Hz
TX Bandwidth: 2500000 Hz
RX Frequency: 2484000000 Hz
TX Frequency: 1575420000 Hz
GPIO: 0x000000af
LMS Enable: Enabled
LMS RX Enable: Enabled
LMS TX Enable: Enabled
TX Band: High Band (1.5GHz - 3.8GHz)
RX Band: High Band (1.5GHz - 3.8GHz)
RX Source: LMS6002D
Loopback mode: none
RX mux: BASEBAND_LMS - Baseband samples from LMS6002D
RXLNA Gain: 6 dB
RXVGA1 Gain: 30 dB
RXVGA2 Gain: 3 dB
TXVGA1 Gain: -25 dB
TXVGA2 Gain: 0 dB
Sampling: Internal
RX sample rate: 2600000 0/1
TX sample rate: 2600000 0/1
Current VCTCXO trim: 0x8e08
Stored VCTCXO trim: 0x8e08
VCTCXO tamer mode: Disabled
Expansion GPIO register: 0xffffffff
Expansion GPIO direction register: 0x00000000
bladeRF> info
Serial #: 9-------------------------------------------
VCTCXO DAC calibration: 0x8e08
FPGA size: 40 KLE
FPGA loaded: yes
USB bus: 0
USB address: 1
USB speed: Hi-Speed
Backend: Cypress driver
Instance: 0