ttn-zh / ic880a-gateway

Reference setup for iC880a gateways running The Things Network
GNU General Public License v3.0
455 stars 210 forks source link

disconnected status #82

Closed hmars-t closed 3 years ago

hmars-t commented 3 years ago

I followed your tutorial, registered the gateway with TheThingsNetwork and get the following status message. Unfortunately, it is not shown as online in the console. Do you have any ideas what happened?

sudo systemctl status ttn-gateway.service

ttn-gateway.service - The Things Network Gateway Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2021-05-31 09:17:52 BST; 9min ago Main PID: 377 (start.sh) Tasks: 4 (limit: 2062) CGroup: /system.slice/ttn-gateway.service ├─377 /bin/bash /opt/ttn-gateway/bin/start.sh └─598 ./poly_pkt_fwd May 31 09:25:21 ttn-gateway ttn-gateway[377]: # PULL_DATA sent: 3 (100.00% acknowledged) May 31 09:25:21 ttn-gateway ttn-gateway[377]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) May 31 09:25:21 ttn-gateway ttn-gateway[377]: # RF packets sent to concentrator: 0 (0 bytes) May 31 09:25:21 ttn-gateway ttn-gateway[377]: # TX errors: 0 May 31 09:25:21 ttn-gateway ttn-gateway[377]: ### [GPS] ### May 31 09:25:21 ttn-gateway ttn-gateway[377]: # Invalid gps time reference (age: 1622449506 sec) May 31 09:25:21 ttn-gateway ttn-gateway[377]: # Manual GPS coordinates: latitude 52.60319, longitude 13.42170, altitude 47 m May 31 09:25:21 ttn-gateway ttn-gateway[377]: ##### END ##### May 31 09:25:21 ttn-gateway ttn-gateway[377]: INFO: [up] PUSH_ACK for server router.eu.thethings.network received in 49 ms May 31 09:25:21 ttn-gateway ttn-gateway[377]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 82 ms

hmars-t commented 3 years ago

Okay, I found my error now. The problem seems to lie in an outdated server configuration. Here my solution:

  1. Go to cd /opt/ttn-gateway/bin and open the file local_conf.json for example with sudo nano local_conf.json
  2. My old configuration looks like this:

{ "gateway_conf": { "gateway_ID": "B827EBFFFE121AA3", "servers": [ { "server_address": "router.us.thethings.network", "serv_port_up": 1700, "serv_port_down": 1700, "serv_enabled": true }$ "ref_latitude": 52.603191, "ref_longitude": 13.421700, "ref_altitude": 47, "contact_email": "hm.signer@gmail.com", "description": "ttn-ic880a" } }

  1. Now change server_adress to the new one. In my case it was server_address: eu1.cloud.thethings.network