Hello, I used The Things Network for my tests for a long time, and now I’m using the AWS V3 stack, everything works fine but I can’t see the GPS coordinates of my gateway in my json,
this is what i get.
{“end_device_ids”:{“device_id”:“nodootaa”,“application_ids”:{“application_id”:“nodo23”},“dev_eui”:“00BB93B09A0151D3”,“join_eui”:“70B3D57ED003A573”,“dev_addr”:“01A521C8”},“correlation_ids”:[“as:up:01EW1SXBQT9YSRG9S8Z1TBKJHX”,“gs:conn:01EW1PM7SFT283WQ24B1HNN5Q3”,“gs:up:host:01EW1PM7SVDBFVKN35KNN8HH1H”,“gs:uplink:01EW1SXBENVVEQF45FJW04WNQN”,“ns:uplink:01EW1SXBEQDRQ3MMHVN9SDDX8M”,“rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01EW1SXBEQ8YKTCD8005F0KBJ7”],“received_at”:“2021-01-15T01:17:47.132796035Z”,“uplink_message”:{“session_key_id”:“AXcDcMP3dMJh65kUAV337Q==”,“f_port”:2,“f_cnt”:5,“frm_payload”:“AAECAw==”,“decoded_payload”:{“message”:"\u0000\u0001\u0002\u0003"},“rx_metadata”:[{“gateway_ids”:{“gateway_id”:“dragino”,“eui”:“A84041FFFF1EAC10”},“time”:“2021-01-15T01:18:10.355847Z”,“timestamp”:3447265900,“rssi”:-58,“channel_rssi”:-58,“snr”:12,“uplink_token”:“ChUKEwoHZHJhZ2lubxIIqEBB//8erBAQ7LTk6wwaDAi62oOABhCN3ZaPAyDg67yIqmQ=”,“channel_index”:4}],“settings”:{“data_rate”:{“lora”:{“bandwidth”:125000,“spreading_factor”:10}},“coding_rate”:“4/5”,“frequency”:“904700000”,“timestamp”:3447265900,“time”:“2021-01-15T01:18:10.355847Z”},“received_at”:“2021-01-15T01:17:46.839371771Z”,“confirmed”:true}}
The question is, does the stack v3 include the gateway’s coordinates in the final node’s json? Because the gateway is sending them.
Yes, it is possible to include gateway location metadata in uplink messages.
First, make sure that the location of your gateway is public. You can do this from the Location tab, or via the CLI. In the same tab you can set the GPS coordinates of your gateway.
Make sure to click “Save Changes” after changing your settings from the Console. You will also need to reconnect your gateway for them to take effect.
Note that, for security reasons, the location of gateways connecting with the UDP packet forwarder is not updated automatically from status messages.
Thank you very much for your answer, it was a great help, although it seemed stupid and something left the answer, I did not know that I had to restart the gateway, it is already working, thanks.
I’m still new to LoRa and TTN. I also want to get the GPS location data in the uplink message.
I have set the coordinates of my gateway in the console and restarted it, as you stated.
At this time the uplink message is not showing the GPS information:
‘’’
{“end_device_ids”:{“device_id”:“8tp000ca”,“application_ids”:{“application_id”:“ela-sensor-test”},“dev_eui”:“70B3D5C76FEFF0CA”,“join_eui”:“70B3D57ED003CD8B”,“dev_addr”:“260B46B2”},“correlation_ids”:[“as:up:01EY5J4AQ4ZR5R4GHKPD1NN60J”,“gs:conn:01EY3E00J5AYFBY2256H4TV11C”,“gs:up:host:01EY3E00JF79B0P2HQTSST0DGE”,“gs:uplink:01EY5J4AGP0B6360DCF4KEP972”,“ns:uplink:01EY5J4AGQYZCMM5538D90MJ5Z”,“rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01EY5J4AGQPYA7W9YCG4QXBV3S”,“rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01EY5J4AQ492TJHC3YDBRQT4SP”],“received_at”:“2021-02-10T08:50:08.229217106Z”,“uplink_message”:{“session_key_id”:“AXeCDK9kZA/cwjHvClYRXg==”,“f_port”:3,“f_cnt”:128,“frm_payload”:“AQUBAThUUDAwMENBDZkAAIABAgg0”,“rx_metadata”:[{“gateway_ids”:{“gateway_id”:“eui-dca632fffe366b9f”,“eui”:“DCA632FFFE366B9F”},“timestamp”:1072017900,“rssi”:-59,“channel_rssi”:-59,“snr”:11.5,“uplink_token”:“CiIKIAoUZXVpLWRjYTYzMmZmZmUzNjZiOWYSCNymMv/+NmufEOzjlv8DGgsIwLyOgQYQ1//UCiDgg/zJme8P”,“channel_index”:7}],“settings”:{“data_rate”:{“lora”:{“bandwidth”:125000,“spreading_factor”:7}},“data_rate_index”:5,“coding_rate”:“4/5”,“frequency”:“867900000”,“timestamp”:1072017900},“received_at”:“2021-02-10T08:50:08.023486225Z”,“consumed_airtime”:“0.077056s”}}
‘’’
Am I missing something? Does the node need to JOIN again?