Official setup to show Gateway on map?

Hi there;

I’m scratching my head to have my GW appears on TTN map, some are, other not and config looks the same.

my GWs are RPI3 + Ic880A they do not have any GPS, they are running poly_pkt_fwd fine.
Packet are seen on TTN and I can see GW alive and trafic on TTN console also (on GW section of course)

So of course I tried to add in local_config.json

"gps": true,

but this does not change anything, and the GW are not displayed

here is the local config of shown GW

{
        "gateway_conf": {
                "gateway_ID": "0002b827Eb80b7b7",
                "servers": [ { "server_address": "router.eu.thethings.network", "serv_port_up": 1700, "serv_port_down": 1700, "serv_enabled": true } ],
                "contact_email": "blabla@ch2i.eu",
                 "stat_interval": 3600,
                "keepalive_interval": 60,
                "description": "ch2i-gw02-ic880a"
        }
}

for this working GW the global_conf.json has theese values

       /* GPS configuration */
        "gps_tty_path": "/dev/ttyAMA0",
        "gps": true,
        "fake_gps": true,
        "ref_latitude": 10,
        "ref_longitude": 20,
        "ref_altitude": -1,

This GW is shown on map with the location I setup in the console, so does not use default lat (10) and long(20) of this file, so this is okay.

The GW that is not shown (and others it’s not the only one) have exactly the same configuration of (triple checked) global_conf.json

So now here the local_conf.json of my not shown GW which I added gps to true just in case

{
        "gateway_conf": {
                "gateway_ID": "0004B827EB9C6093",
                "servers": [ { "server_address": "router.eu.thethings.network", "serv_port_up": 1700, "serv_port_down": 1700, "serv_enabled": true } ],
                "contact_email": "blabla@ch2i.eu",
                "stat_interval":300,
                "keepalive_interval":60,
                "gps": true,
                "description": "ch2i-gw04-ic880a"
        }
}

I just need to place my GW from GW TTN console, so I don’t bother with the GPS config, so any procedure on what to put in this local_conf.json (for gps and fake_gps parameters) and/or any information of what is done on server side to show GW will be highly appreciated because I’m close to make some gateway flying over the window which will not solve TTN mapping for sure :joy:

Mine was about a week to get on the map … but now they are there :slight_smile:

Just a quick check: In the TTN Console, under the privacy settings for the gateway, make sure “Make location public” is checked. I’m not sure if the other privacy options need to be checked but this one is required for sure.

Thanks, I forgot to mention, but of course public is enabled

May be this is it, that’s why I asked the correct configuration to be sure and avoid 8 days test and wait crossing fingers :wink:

1 Like

I was in the same situation … wanted to se my GW … BUT was not showing … but then some day (around one week later) it was showing :smile:

even more important is that your gateway shows up on TTNmapper Map

1 Like

Mine is not showing in TTN Mapper?

Strange, mine always show up immediately. Some even don’t want to go away. I accidentally setup up a misconfigured GW last week, pulled it offline immediately and configured it properly, and now I have two gateways showing :roll_eyes: .

It needs to be mapped first by a node running TTN mapper code. Read the FAQ on the site :wink: .

I think assumption are not the best way to go on this issue. May be would be best to have an official answer from TTN guys

  • What is the condition to show GW on map ?
  • What is the condition to remove GW from map ?
  • What is the priority to “TTN Console Config” or “fake_gps” coord ?

May be I’m stupid but since GW are configured on TTN Console and are flagged with “connected or not” why the MAP is not reflecting them?

Anyway while writing just checked something and decided to take a look and guess what ?
I found my 2 GW at lat=10 and long=20 as other 31 gateways
image
image

Seems that is you use gps ans fake_gps it will set the GW whatever TTN console config and may be TTN console setup GW are never shown on map?

So return of my initial question what to do to setup GW only on TTN console and forget any gps like config in json config files?

2 Likes

So I reconfigured my GW shown in Tchad, Africa with correct location (copy paste of location declared in TTN Console)

                "gps": true,
                "fake_gps": true,
                "ref_latitude": 46.65769374,
                "ref_longitude": 0.36482225,
                "ref_altitude": 100,
                "description": "ch2i-gw04-ic880a"

Restarted packet forwarder wait a couple of minute and GW is shown !!!

2 Likes

Why do you have Fake_gps true?

Because there is no GPS on GW so it’s used to send latitude and longitude of the json file instead of the real coming from a GPS.

1 Like

The description in this github issue might help?

@Batilan’s reference says you should not do that, also repeated on the forum:

@Batilan, thanks very good information

I agree guys, but setting this on local config was not working (gw was not shown on location defined in console)

{
  "gps": false,
  "fake_gps": false,
  "description": "ch2i-gw04-ic880a"
}

But may be it’s due to old config that already setup the GW on the map on lat=10, long=20 so the GW was at the wrong place and the only way I had to place the GW at the correct location was to override these config in with local config changes (and fake_gps of course).
May be all is working fine on new gateways (I’ll check on next one) but when the gw has sent fake_gps one time, you’re stuck until we find a way to remove gw from map. At least it seems to work like that

Did you (also) configure a location in TTN Console, using the “edit location” link? (That’s the preferred way unless the gateway has a GPS.)

yes that is what I’m trying to do from beginning, remove all GPS from GW forwarder side and setup location ONLY from TTN console :wink:

1 Like

I’m responding to an old topic trying to accomplish the same thing. I have created a new gateway device without entering lat/long, and have connected an rpi-based gateway with GPS enabled. The GPS information appears to be collecting correctly, and I can see the gateway’s GPS-derived lat/long in the metadata sent to the application, so everything appears to be working as expected, with the single exception of the gateway location as shown @ https://console.thethingsnetwork.org/gateways There, my gateway is showing no location information (lat/long == 0/0). This doesn’t feel like a huge issue, but it’d be nice for the device to show up correctly on the map. Am I missing a step here?

I also have a Raspberry Pi RAK831 gateway and my gateway also refuses to show on the TTN map. My setup uses the GPS on the RAK supplied interface card. The GPS is working because I see the messages arriving from /dev/ttyS0. It reports the correct coordinates and shows 5-6 satellites. I also see the correct latitude and longitude and altitude are presented as metadata to my application, so I am confident the coordinates are being received by TTN. The syslog confirms valid time reference and GPS coordinates. Settings are all public in the console. I did have my location set statically in my local_conf before I enabled GPS about a week ago. The GPS has been running for about a week, but my gateway still has not reappeared on the map. I have tried placing it manually on the map, and removing it again - but have had no success getting GPS to place it.

Am I missing something?

1 Like

Is the metadata in the application always the same? Or does it change a bit? (In my experience the coordinates of a gateway with GPS drift a bit)

What are your configuration parameters in both global and local configuration regarding GPS? (All of them)