# GPS fake out project

**URL:** <https://discourse.myriadrf.org/t/gps-fake-out-project/709>\
**Category:** SDR Satcom\
**Created:** [9 February 2017 02:18 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709 "2017-02-09T02:18:23Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![osqzss](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/osqzss/32/4567_2.png) [@osqzss](https://discourse.myriadrf.org/u/osqzss)\
**Post date:** [4 March 2018 07:44 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/22 "2018-03-04T07:44:37Z")

</div>

@ogun,

You can’t use any _active_ GPS antenna for TX. It has an LNA inside for signal reception and doesn’t pass signals in the opposite direction. You need a _passive_ antenna, and I recommend TS.07.0113 GNSS monopole terminal antenna from taoglas.

> **[TS.07.0113 GPS/GLONASS/GALILEO/BeiDou Terminal Antenna Hinged SMA(M) - Taoglas](https://www.taoglas.com/product/ts-07-0113-gpsglonass-beidou-antenna-hinged-sma-male-2/)**
>
> Passive GPS/GLONASS/GALILEO/BeiDou Monopole Terminal Antenna Gain BeiDou 4.05dBi / GPS-GALILEO 4.04dBi / GLONASS 3.98dBi (30\*30cm metal Ground Plane edge) Efficiency BeiDou 73.2% / GPS-GALILEO 72.35% / GLONASS 70.81%(30\*30cm metal Ground Plane edge)...

You can also make a simple dipole antenna by yourself.

> **[M4 GPS Antenna Options | AutoQuad](http://autoquad.org/wiki/wiki/m4-microcontroller/m4-gps-antenna-options/#DIY-Dipole-GPS-Antenna)**
>
> AutoQuad

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [22 August 2018 05:45 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/23 "2018-08-22T05:45:23Z")

</div>

Hello,  
I have been trying to do the same thing but unable to get a position fix (coincidentally I am also using the same app on my Android phone). As soon as I turn ON the limesdr-mini a lot of satellites show-up but “in use” value fluctuates between 0 and 5 (being 0 most of the time even though the number of satellites is pretty high (~20 and signal strengths are between 30 and 40).  
May I ask you to please advise on what might be going wrong.  
Thank you for your help in advance,

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [22 August 2018 12:43 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/24 "2018-08-22T12:43:35Z")

</div>

Trying gps simulation with the Mini is on my short list.

Are you following the wiki instructions (as a point of reference) - [https://wiki.myriadrf.org/GPS\_Simulation](https://wiki.myriadrf.org/GPS_Simulation) ?  
There is an error in one pic for the frequency should be 1575.42MHz - not the 1545.42 pictured.

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [22 August 2018 12:56 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/25 "2018-08-22T12:56:13Z")

</div>

I think I am following the instructions correctly but probably something is still wrong.  
Yes, I corrected the frequency.  
Look forward to the results of your tests with the Mini.

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [22 August 2018 13:25 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/26 "2018-08-22T13:25:53Z")

</div>

See note about antenna below - looks like the osmocom sink should be set for BAND2 using 1.5GHz output.

Also helps to switch off “High Accuracy” in Android - that uses wifi and cell in addition to gps for location - change it to GPS only in location settings.

Other than that - ensure the right antenna\*\* – found this interesting read while searching for that: [https://medium.com/home-wireless/testing-antennas-with-the-limesdr-mini-98b59b99c8b9](https://medium.com/home-wireless/testing-antennas-with-the-limesdr-mini-98b59b99c8b9) - and that the gps-sim parameters match the grc sketch, that is -s 10e6 10MHz sample rate, you can actually switch to the default 2.6e6 for smaller rf dat files but they must match, and the size -b 8 for char in the sketch.

And are you using a static location (-l lat long) or a motion file (-u) ? Best to get static location working first.

\*\* I have not dug into the Mini antenna but according to this [https://wiki.myriadrf.org/LimeSDR-Mini\_v1.1\_hardware\_description#RF\_Frequency\_Range](https://wiki.myriadrf.org/LimeSDR-Mini_v1.1_hardware_description#RF_Frequency_Range) “Use TX1\_2 RF output for 10MHz - 2GHz frequency range” - so the fellow at [medium.com](http://medium.com) is correct - we should be using BAND2 for 1.5Ghz output.

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [23 August 2018 02:46 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/27 "2018-08-23T02:46:44Z")

</div>

Good news - I was able to reproduce what I think you were seeing, a setup that worked solid with the non-mini was losing sync a lot with the mini - could actually get a fix and see 7 sats or so in use then they would all drop out. That was with the osmocom, SoapySDR/UHD sink.

Switching to the gr-limesdr sink in gnuradio companion seems to work better - I’m currently at SEG tower with 10 sats in use and 1m accuracy and is stable.

Instructions at [https://wiki.myriadrf.org/Gr-limesdr\_Plugin\_for\_GNURadio](https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio). Will update the wiki shortly with details but here’s a screenshot of a working configuration in grc for the mini, using 2.6Msps

[![](http://swigerco.com/LimeSDRMini_gps-sdr-sim.jpg) ](http://swigerco.com/LimeSDRMini_gps-sdr-sim.jpg)

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [23 August 2018 04:29 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/28 "2018-08-23T04:29:00Z")

</div>

Thanks a lot for the super quick updates!  
Actually I have been trying with the gr-limesdr sink all through although with a 10M sample rate.  
As per your detailed guidelines, I changed the “high accuracy” settings in Android.

Does the change from 10Msps to 2.6Msps work (in your case) because of some issue in the USB interface?  
The sudden drop in the satellites seen also matches with the abrupt disappearance of the signal when seen on a spectrum analyzer.  
Also, sometimes the satellites “in-use” change very quickly which does not look normal .

Anyways, looking forward to your design details so that I can also get my first position fix.  
Thanks again,

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [23 August 2018 12:28 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/29 "2018-08-23T12:28:30Z")

</div>

Well you have more instrumentation on the issue than I have 🙂  
Tried same setup again with a Galaxy S4 (gps only) got got the drop outs too.  
A Lenova TAB 2 is what works stably with the same app, so looks that was not the solution. Get no difference with 10 or 2.6Msps.

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [23 August 2018 15:19 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/30 "2018-08-23T15:19:14Z")

</div>

No amount of instrumentation can replace the grey matter at your end 🙂  
May I ask what do you feel could be the issue?

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [30 August 2018 12:00 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/31 "2018-08-30T12:00:05Z")

</div>

Hi, may I ask if you could hint on the issue here.

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [30 August 2018 23:06 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/32 "2018-08-30T23:06:24Z")

</div>

Would if I had any idea but no clue.

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [10 September 2018 23:42 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/33 "2018-09-10T23:42:59Z")

</div>

Hi - finally got around to working with the LimeSDR-Mini and the gps-sdr-sim project and finally had some luck.

Created an rf data file with this, using 5Msps, 8bit char samples -  
`$ ./gps-sdr-sim -l 22.542883,114.062996,45 -e brdc2500.18n -s 5000000 -b 8 -o seg_r5_b8.s8 -d 1200`

you may not want duration of 20 minutes though. Using the attach grc graph and I got it to work with:

- Qstars BT-818XT bluetooth gps
- Lenova TAB 2 A-10 running GPS Test+
- OnePlus 5T running GPS Test+
- Samsung GS4 running GPS Test+

and google maps of course. Turn off fine location in settings, set for gps only, put in airplane mode and restart and run the sketch first thing before it gets any other satellite reading.

Cannot upload the grc so posted it here: [http://swigerco.com/GPS\_Test\_LimeSDR\_Mini.grc](http://swigerco.com/GPS_Test_LimeSDR_Mini.grc)

Would like to hear if anyone else has good luck with that.

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [11 September 2018 00:21 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/34 "2018-09-11T00:21:26Z")

</div>

Config while it’s working:

> # LimeUtil --info  
> Version information:  
> Library version: v18.03.0-ga71714c0  
> Build timestamp: 2018-09-08  
> Interface version: v2018.3.0  
> Binary interface: 18.03-1

 ![gps_spectrum_Mini](https://yyz2.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/e/e58e38d5a3fb65606ef982594635c1a24f166758.jpg)

Using 8 bit interleaved char from gps-sdr-sim so it’s scalled down by 1/256 or 0.0039 , running full deplex to see the output is nicely not-overdriven.

---

<div class="post-metadata">

**Author:** ![cswiger](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/cswiger/32/197_2.png) [@cswiger](https://discourse.myriadrf.org/u/cswiger)\
**Post date:** [11 September 2018 00:41 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/35 "2018-09-11T00:41:17Z")

</div>

Just upgraded to the latest and everyone seems happy with that too:

```
Version information:
  Library version:	v18.06.1-gef262563
  Build timestamp:	2018-09-10
  Interface version:	v2018.6.0
  Binary interface:	18.06-1
```

---

<div class="post-metadata">

**Author:** ![Bourascom](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Bourascom](https://discourse.myriadrf.org/u/Bourascom)\
**Post date:** [28 September 2018 08:48 UTC](https://discourse.myriadrf.org/t/gps-fake-out-project/709/36 "2018-09-28T08:48:50Z")

</div>

Working nicely on my LimeSDR-mini too, Many Thanks for you !!

[Previous page](https://discourse.myriadrf.org/t/gps-fake-out-project/709.md?page=1)
