# (V2 stack) Everything is OK except fake GPS

**URL:** <https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578>\
**Category:** Raspberry Pi Gateways\
**Created:** [February 20, 2021, 1:24pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578 "2021-02-20T13:24:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![haowong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/haowong/32/36740_2.png) [@haowong](https://www.thethingsnetwork.org/forum/u/haowong)\
**Post date:** [February 20, 2021, 1:24pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/1 "2021-02-20T13:24:25Z")

</div>

## ![QQ截图20210220212213](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/a/c/ac7d29d6a2c8b525c48aae5c44c6fe677500d620.png)

## ![QQ截图20210220212252](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/0/d/0d5332e45c7a157fb118ffc7dd5a48f993bc9d48.png)

![QQ截图20210220212219](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/1/f1ac94b998803f16f595e62c921922b9e7ddf01a.jpeg)

---

<div class="post-metadata">

**Author:** ![haowong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/haowong/32/36740_2.png) [@haowong](https://www.thethingsnetwork.org/forum/u/haowong)\
**Post date:** [February 20, 2021, 1:26pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/2 "2021-02-20T13:26:34Z")

</div>

I can’t see the fake GPS option used in sx1302 on any TTN related page. Here is my example global.config :

```cpp
    "gateway_conf": { //gateway parameters；所有prase的参数都存为全局变量
        "gateway_ID": "0016c001ff10d3f6", //raspberrypi1
        /* change with default server address/ports */
        //"server_address": "47.110.36.225", //private chirpstack server
        "server_address": "localhost", //Utility: Downlink server
        "serv_port_up": 1700,
        "serv_port_down": 1700,
        /* adjust the following parameters for your network */
        "keepalive_interval": 10,
        "stat_interval": 30,
        "push_timeout_ms": 100,
        /* forward only valid packets */
        "forward_crc_valid": true,
        "forward_crc_error": false,
        "forward_crc_disabled": false,
        /* GPS configuration */
        //"gps_tty_path": "/dev/ttyS0",
        /* GPS reference coordinates */
        "ref_latitude": 31.268575,
        "ref_longitude": 120.746857,
        "ref_altitude": 100,
        "fake_gps": true,
        /* Beaconing parameters */
        "beacon_period": 0,
        "beacon_freq_hz": 869525000,
        "beacon_datarate": 9,
        "beacon_bw_hz": 125000,
        "beacon_power": 14,
        "beacon_infodesc": 0
    },

```

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [February 20, 2021, 1:57pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/3 "2021-02-20T13:57:56Z")

</div>

You need to set

> “gps”: true,

Also keep in mind not all software versions support fake gps.

---

<div class="post-metadata">

**Author:** ![haowong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/haowong/32/36740_2.png) [@haowong](https://www.thethingsnetwork.org/forum/u/haowong)\
**Post date:** [February 20, 2021, 2:06pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/4 "2021-02-20T14:06:44Z")

</div>

When I added this line, nothing changed.

The above settings can receive GPS position information in chirpstack, so I think it may be the problem of TTN.

Of course, it’s just speculation

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [February 20, 2021, 2:41pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/5 "2021-02-20T14:41:26Z")

</div>

TTN v2 does not process any GPS info, fake or real.

---

<div class="post-metadata">

**Author:** ![haowong](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/haowong/32/36740_2.png) [@haowong](https://www.thethingsnetwork.org/forum/u/haowong)\
**Post date:** [February 20, 2021, 3:09pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/6 "2021-02-20T15:09:56Z")

</div>

Does that mean that you can only manually fill in the fixed GPS address in the gateway web interface?

What about v3, I haven’t tried it yet. 😃

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [February 20, 2021, 5:09pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/7 "2021-02-20T17:09:31Z")

</div>

> [@haowong](#):
>
> Does that mean that you can only manually fill in the fixed GPS address in the gateway web interface?

No, you can either fill it in manually. Or not fill it in. The choice is yours, the question is, do you feel lucky?

---

<div class="post-metadata">

**Author:** ![BK-Vest](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bk-vest/32/35697_2.png) [@BK-Vest](https://www.thethingsnetwork.org/forum/u/BK-Vest)\
**Post date:** [February 28, 2021, 11:54am UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/8 "2021-02-28T11:54:33Z")

</div>

I thing this is not right!

In V2 I could read the GPS-Information from GWs!

E\_T

eui-0000024b08030412: object

id: “eui-0000024b08030412”

description: “Gateway in room TZR, 503”

owner: “physec”

owners: array[1]

location: object

latitude: 51.54691838

longitude: 7.06865532

altitude: 0

country\_code: “de”

attributes: object

frequency\_plan: “EU\_863\_870”

last\_seen: “2021-02-28T12:22:50Z”

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [February 28, 2021, 12:21pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/9 "2021-02-28T12:21:37Z")

</div>

There is a difference between being able to get the gateway to show the GPS data in it’s log, it including it in the status information to the network server and the network server actually doing something with it.

AFAIK, the network server doesn’t process any GPS data.

So, you can either fill it in, or not. The choice is yours.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [February 28, 2021, 12:57pm UTC](https://www.thethingsnetwork.org/forum/t/v2-stack-everything-is-ok-except-fake-gps/44578/10 "2021-02-28T12:57:05Z")

</div>

2 posts were merged into an existing topic: [TTS GPS and Basicstation](https://www.thethingsnetwork.org/t/tts-gps-and-basicstation/42345/16)
