osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.62k stars 762 forks source link

Problems getting devices to lock using Adalm-Pluto #225

Open toppharley opened 4 years ago

toppharley commented 4 years ago

Hi,

I'm having some trouble to get any tested device to lock on simulated location, using Adalm-Pluto:

Linux pluto 4.14.0-41915-gc2041af #279 SMP PREEMPT Mon Jan 14 13:13:47 CET 2019 armv7l GNU/Linux Machine model: Analog Devices PlutoSDR Rev.B (Z7010/AD9363)

1) File to be played:

pi@raspberrypi:~ $ ./gps-sdr-sim/gps-sdr-sim -e ./brdc.n -l 41.661636,-4.7446656,630 -t 2019/12/24,12:00:00 -o ./gpssim2.bin -s 10e6 -b 8 -v Using static location mode. 8.382e-09 -1.490e-08 -5.960e-08 1.192e-07 9.421e+04 -1.311e+05 -1.311e+05 8.520e+05 3.72529029846e-09 6.21724893790e-15 405504 2085 18 Start time = 2019/12/24,12:00:00 (2085:216000) Duration = 300.0 [sec] 02 221.6 30.5 22691094.9 3.7 05 304.7 66.5 20530759.3 2.2 06 185.6 9.3 24752200.0 6.5 07 53.0 46.3 21876248.5 2.8 09 79.7 11.2 24550751.8 5.9 13 274.8 39.4 21957357.0 3.0 15 274.5 7.6 24660240.1 5.2 28 141.6 15.4 23932301.2 5.8 30 103.4 75.9 20424508.4 2.1 Time into run = 30.0 02 221.4 30.3 22705012.0 3.7 05 304.5 66.8 20523720.9 2.2 06 185.5 9.1 24773209.5 6.6 07 52.9 46.1 21887898.0 2.8 09 79.9 11.1 24567389.4 5.9 13 275.0 39.6 21944882.8 3.0 15 274.6 7.8 24642381.9 5.2 28 141.4 15.6 23915663.7 5.7 30 102.4 75.9 20424895.2 2.1 Time into run = 60.0 02 221.3 30.1 22718988.0 3.7 05 304.3 67.0 20516768.1 2.2 06 185.5 8.9 24794211.0 6.6 07 52.8 45.9 21899612.3 2.8 09 80.0 10.9 24584032.7 5.9 13 275.2 39.7 21932449.8 2.9 15 274.8 7.9 24624533.9 5.1 28 141.3 15.8 23899048.3 5.7 30 101.4 75.8 20425381.8 2.1 Time into run = 63.8 ^C

2) Playing the file: pi@raspberrypi:~ $ ./gps-sdr-sim/player/plutoplayer -t ./gpssim2.bin

Transmit file size: 1.187 GB Acquiring IIO context Found (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)) Acquiring devices Context has 5 device(s). Acquiring TX device Initializing streaming channels Enabling IIO streaming channels Creating TX buffer Transmit starts... Done.

3) Taking a look ./retrogram-plutosdr --rate 5e6 --bw 3e6 --freq 1575.42e6 --step 0.01e6 --ref-lvl 0 --uri usb:1.7.5 ( no profile change)

4) Also, getting no locks either when using other software: pi@raspberrypi:~ $ pluto-gps-sim/pluto-gps-sim -e ./brdc.n -B 3.0 -A -30 -l 41.661636,-4.7446656,0 -U usb:1.7.5 -t 2019/12/24,12:00:00 -v Using static location mode. 8.382e-09 -1.490e-08 -5.960e-08 1.192e-07 9.421e+04 -1.311e+05 -1.311e+05 8.520e+05 3.72529029846e-09 6.21724893790e-15 405504 2085 18 Gain: -30.0dB RINEX date = 24-DEC-19 06:42 Start time = 2019/12/24,12:00:00 (2085:216000) PRN Az El Range Iono 02 221.6 30.5 22691415.0 3.7 05 304.7 66.5 20531337.2 2.2 06 185.6 9.3 24752301.5 6.5 07 53.0 46.3 21876703.7 2.8 09 79.7 11.2 24550874.3 5.9 13 274.8 39.4 21957756.8 3.0 15 274.5 7.6 24660323.6 5.2 28 141.6 15.4 23932468.9 5.8 30 103.4 75.9 20425119.5 2.1

I'm stumped,... any help would be greatly appreciated.

Cheers!

Mictronics commented 3 years ago

The file works. Your command line is wrong. You start the program with option ´-e rinex2.gz´ (the default) which is obviously outdated. Use ´-e brdc1320.21n.gz´ or any other file name in case of non-default Rinex files.

badrbouslikhin commented 2 years ago

The .grc file I posted is configured for a 4 MHz sample rate, and the xo_correction set to 40000000. That's all the help I can offer - I'm unsubscribing from this thread now.

Thanks for the grc file @jamesl-dm. It worked great for me. Although I am not able to sustain a fix for more than a few minutes (I can see both the smartphone and my nRF91 receiver) dropping fixes at the same time (usually around 4-5 mn). I tried to play with the ppm but I couldn't do better. Any tips?

deanZZZZZ commented 2 years ago

Can any additional version be made for the OSX (mac)? When compile the problem is with the processor thread ...

Biran1911 commented 2 years ago

1 image Code: https://github.com/Mictronics/multi-sdr-gps-sim Setup PlutoSdr (with OCXO) -> 10dB attenuator -> ublox M8T Commandline: gps-sim -g-80 -f -l -12.0,-16.0,400 -e rinex2.gz -snow -v --radio=plutosdr

Ephemeris and almanac for all satellites image

I am getting Curl Error: 7

any idea why? as far as i can tell i built the dependencies correctly...