Coder Social home page Coder Social logo

mictronics / pluto-gps-sim Goto Github PK

View Code? Open in Web Editor NEW
97.0 97.0 50.0 3.22 MB

PLUTO-GPS-SIM generates a GPS baseband signal IQ data stream, which is then transmitted by the software-defined radio (SDR) platform ADALM-Pluto.

License: MIT License

Makefile 0.43% C 90.16% C++ 9.41%
adalm-pluto gps sdr simulation simulator

pluto-gps-sim's People

Contributors

mictronics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pluto-gps-sim's Issues

PPS test

Hello,

I have done some "time" testing.

The test consists of compare the PPS (pulse per second) generate by a receiver with real Sats signal vs a PPS generated by a receiver with signal generated by Pluto simulator.
I measured the time between both PPS signals and the result is that PPS generated by Pluto is delayed about 10 microsec every second.
I try to explain me:
t0: both PPS pulses are at same time
t1 (1 second later from t0): Pluto PPS is delayed 10 microsec from real PPS
t2 (1 second later from t1): Pluto PPS is delayed 20 microsec from real PPS
t3 (1 second later from t2): Pluto PPS is delayed 30 microsec from real PPS
...
So, at 100 seconds from t0, Pluto PPS is delayed 1000 microsec from real PPS.

Do you know what could be the delay cause?
frames length?
time between messages?

Could you help me to fix it?
Thank you so much

20 sec. delay. Is it a bug?

Hi, i'm still playing with pluto-gps-sim.
I can see the time in GPS receiver is delayed respect to the PC's time which is running the code.
It is independent if i use "-T now" or "-t yy/mm/dd,hh:mm:ss" options, showed time in the receiver always is delayed around 20 sec.
Why is it?
How can I sincronize the received time in GPS with PC's time?

make all can't work

~$ git clone https://github.com/mictronics/pluto-gps-sim
Cloning into 'pluto-gps-sim'...
remote: Enumerating objects: 88, done.
remote: Total 88 (delta 0), reused 0 (delta 0), pack-reused 88
Unpacking objects: 100% (88/88), done.
~$ cd pluto-gps-sim/
~/pluto-gps-sim$ make all
cc -std=c11 -O2 -g -W -Wall -D_GNU_SOURCE -I/usr/local/include -c plutogpssim.c -o plutogpssim.o
plutogpssim.c:22:10: fatal error: curl/curl.h: Nincs ilyen fájl vagy könyvtár
#include <curl/curl.h>
^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10: plutogpssim.o] Error 1

what can be the problem?

run pluto gps as standalone

hi, one curious question,
how hard or even possible could be to run the pluto-gps-sim inside the pluto arm board?.

DC block and a fixed 50-60dB attenuator.

Screenshot from 2019-08-14 13-24-17
I think it creates the code and transmit it via Adalm-Pluto. The terminal is like in the picture. I cannot change my position in Google Maps, also in Apple Maps. I am not using any DC block and attenuator. I think the problem is this. Can you please give more information about how to do connections with these equipments. I mean I do not know how to connect DC block and the attenuator to Adalm-Pluto. Also, some guys are using gps receiver. I only use an antenna connected directly to the Adalm-Pluto. Should I use a GPS receiver, also?
It would be really appreciated if you reply. Thank you.
Best regards.
Akif

working on Raspberry Pi 3 /4?

Hi,
I have installed pluto-gps-sim in a laptop and works very fine.

Now I tried to run it on a Rasperry Pi 4 (and Pi 3 also) then apparently works but my ublox GPS receiver never fix (never gets a SAT in green), It seems like messages (or RF signal) are not continuous.
Any idea?
Thank you.

NASA discontinues anonymous FTP service.

The README.md suggests downloading the daily GPS ephemeris data from NASA's FTP server. This service is ending on October 31, 2020 as per their website. Please update the README to go suggest visiting the new HTTPS instead.

Error opening PLUTOSDR TX device: No such file or directory and segmentation error.

When launching pluto-gps-sim (compiled fine, as well as other dependencies), either with -N pluto.local (pinging the pluto is OK) or with -U usb:1.6.5 (from iio_info -s), I get the following error :

'Using static location mode.
Gain: -30.0dB
RINEX date = 20200630 13:02:
Start time = 2020/06/30,12:00:00 (2112:216000)
PRN Az El Range Iono
10 131.7 35.4 22497854.6 2.4
Error opening PLUTOSDR TX device: No such file or directory'

Output of iio_info -s :
Library version: 0.21 (git tag: 565bf68) Compiled with backends: local xml ip usb serial Available contexts: 0: ... [local:] 1: 0456:b673 (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)), serial=1044735411960006f2ff340008241XXXXX [usb:1.6.5]

When I do a iio_info -n pluto.local, I can grab all the information about the pluto :
Library version: 0.21 (git tag: 565bf68) Compiled with backends: local xml ip usb IIO context created with network backend. Backend version: 0.18 (git tag: v0.18 ) Backend description string: 192.168.2.1 Linux (none) 4.14.0-42540-g387d584 #301 SMP PREEMPT Wed Jul 3 15:06:53 CEST 2019 armv7l IIO context has 9 attributes: hw_model: Analog Devices PlutoSDR Rev.B (Z7010-AD9364) hw_model_variant: 0 hw_serial: 1044735411960006f2ff34000824XXXXXX fw_version: v0.31 ad9361-phy,xo_correction: 40000000 ad9361-phy,model: ad9364 local,kernel: 4.14.0-42540-g387d584 ip,ip-addr: 192.168.2.1 uri: ip:pluto.local IIO context has 5 devices: (...) iio:device3: cf-ad9361-dds-core-lpc (buffer capable) 6 channels found: voltage0: (output, index: 0, format: le:S16/16>>0) 4 channel-specific attributes found: attr 0: calibphase value: 0.000000 attr 1: calibscale value: 1.000000 attr 2: sampling_frequency value: 2083998 attr 3: sampling_frequency_available value: 2083998 260499 voltage1: (output, index: 1, format: le:S16/16>>0) 4 channel-specific attributes found: attr 0: calibphase value: 0.000000 attr 1: calibscale value: 1.000000 attr 2: sampling_frequency value: 2083998 attr 3: sampling_frequency_available value: 2083998 260499 altvoltage3: TX1_Q_F2 (output) 5 channel-specific attributes found: attr 0: frequency value: 403443 attr 1: phase value: 0 attr 2: raw value: 1 attr 3: sampling_frequency value: 2083998 attr 4: scale value: 0.000000 (...)
Line 1662, the code seems to look for the string "cf-ad9361-dds-core-lpc", which exists in the iio_info output, so I don't get it, if anyone has encountered that or has an idea ;-)

GPS-signal just getting jammed, no new location

I just tried to generate a Spoofing signal via
./pluto-gps-sim -e brdc3250.19n -l 39.028225,125.751300,100 -U usb:1.4.5
The GPS-Connection of my mobile phone just drops but i don't get a new location.
What did I do wrong?

No fix location

Dear Mictronics,
I did many tests with your pluto-gps-sim software but it can't fix the location.

I'm using pluto-gps-sim in a Ubuntu PC, a Pluto SDR and a uBlox M8-T GPS receiver.

The uBlox receives the simulated signals but it can't fix the location.

I know that a strong signal received can be a problem, so i tried from -80 to -150dBm at the uBlox receiver input ( 70dB attenuator plus the pluto-sdr-sim Att.)
I also tried with bandwith from 2 to 5MHz, but the results are always the same: No fix location.

Attached you can find an analyzer and ublox-center images.
As you can see in the images, it is not much time with 12 satellites in green, then they go to blue. And this situation repeats all over again.

Could you help me?
I will be very grateful with any idea.

Analyzer
Sats

Unable to find host: Name or service not known

hello,
my pluto device is connected with an usb to ethernet adapter to my network and the command iio_info -u ip:172.31.110.221 answer correctly with all the device information(also the -n option).
but the command ./pluto-gps-sim -e brdc3540.14n -u ip:172.31.110.221 doesn't. it says:
ERROR: Unable to find host: Name or service not known
Failed creating IIO context: No such file or directory

what I'm doing wrong?.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.