RAK 2245 +Rpi 4B Gateway always shows disconnected

I’m new to this, so please be nice. I’m connecting my first gateway to TTN. Configured it on V3 console. Followed the directions carefully, but still shows disconnected status. Nothing in Live Data box.

Overview - Uptown Vancouver Gateway - The Things Stack

Connection troubleshooting I’ve done:

  • Does the Gateway EUI in the console match with the EUI of the gateway? - Yes
  • Does the Frequency Plan selected match with the configuration in the gateway? - Yes, set US_902_928 on Gateway and US_902_928_FSB_2 in TTN.
  • Did you select Require authenticated connection in gateway settings? - No
  • Do you see any warnings/errors in the Gateway live data section? - No

I set up an end device and it appears to be working on TTN, but I don’t think it’s connecting to my gateway. I’m not really sure how to tell though. Any troubleshooting tips would be appreciated.

Application data - Adafruit RFM95 on TTS - The Things Stack

They match but is it correct…double check you have used correct code as EUI and that is typed correctly. Which s/w are you using on the gw? What set up guide did you follow if any? What do the gw logs show? Is concentrator started? Is it connecting to (the right) TTN server, etc. You can tell if your gw is assisting capture and forward messages from your node if you click on an uplink in the device console view it will show all the GW’s that handle the message…

Key question, did you use the RAK Pi image straight from the RAK website? If so, which one (dates etc).

Plus the logs from the Pi too.

Yes, I used the RAK2245 Pi Hat Quick Start Guide. The only difference was the “I’m using the legacy packet forwarder” check box which seems to no longer be available.

I installed RAK7243_on_Raspbian_OS_V4.2.5_20200909 (dated 02-02-2021) straight from the RAK website to the SD card.

I’ve confirmed that the Gateway EUI in the console exactly matches with the EUI of the gateway.

RAK Config Channel plan configuration is set for TTN (US_902_928)

Here’s what I find in the logs. Everything seems ok to me, but the gateway still shows “disconnected”.

Feb 07 20:36:28 rak-gateway ttn-gateway[579]: JSON up: {"stat":{"time":"2022-02-07 20:35:28 GMT","rxnb":1,"rxok":0,
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: [up] PUSH_ACK received in 13 ms
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: [down] PULL_ACK received in 15 ms
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: [down] PULL_ACK received in 13 ms
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: [down] PULL_ACK received in 12 ms
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: Disabling GPS mode for concentrator's counter...
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: host/sx1301 time offset=(1644265495s:922964µs) - drift=759µs
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: INFO: Enabling GPS mode for concentrator's counter.
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: ##### 2022-02-07 20:35:58 GMT #####
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: ### [UPSTREAM] ###
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # RF packets received by concentrator: 0
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # RF packets forwarded: 0 (0 bytes)
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # PUSH_DATA datagrams sent: 1 (113 bytes)
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # PUSH_DATA acknowledged: 100.00%
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: ### [DOWNSTREAM] ###
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # PULL_DATA sent: 3 (100.00% acknowledged)
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # RF packets sent to concentrator: 0 (0 bytes)
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # TX errors: 0
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # BEACON queued: 0
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # BEACON sent so far: 0
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # BEACON rejected: 0
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: ### [JIT] ###
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # SX1301 time (PPS): 662804107
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: ### [GPS] ###
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # Valid time reference (age: 0 sec)
Feb 07 20:36:28 rak-gateway ttn-gateway[579]: # no valid GPS coordinates available yet

Well its a start but need the start up logs - need to 1) check if conc starting and 2) if connected to the right NS. Some RAK images were/are broken/not updated IIRC

So no messages received or forwarded so need to (1)!

I restarted the gateway and packet forwarder and below is the journalctl output. I don’t see any obvious problems other than GPS data not found. Shouldn’t the gateway show “connected” even when there are no active end devices?

Feb 07 23:14:27 rak-gateway systemd[1]: ttn-gateway.service: Succeeded.
Feb 07 23:14:27 rak-gateway systemd[1]: Stopped The Things Network Gateway.
Feb 07 23:14:27 rak-gateway systemd[1]: Started The Things Network Gateway.
Feb 07 23:14:36 rak-gateway sudo[809]: pam_unix(sudo:session): session closed for user root
Feb 07 23:15:01 rak-gateway CRON[886]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 07 23:15:01 rak-gateway CRON[890]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Feb 07 23:15:01 rak-gateway CRON[886]: pam_unix(cron:session): session closed for user root
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: *** Beacon Packet Forwarder for Lora Gateway ***
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: Version: 4.0.1
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: *** Lora concentrator HAL library version info ***
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: Version: 5.0.1;
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: ***
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Little endian host
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: found global configuration file global_conf.json, parsing it
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 pa
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: lorawan_public 1, clksrc 1
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: no configuration for LBT
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: antenna_gain 0 dBi
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Configuring TX LUT with 16 indexes
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: radio 0 enabled (type SX1257), center frequency 904300000, RSSI offset -166.0000
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: radio 1 enabled (type SX1257), center frequency 905000000, RSSI offset -166.0000
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 0>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 1>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 2>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 3>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 4>  radio 1, IF -300000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 5>  radio 1, IF -100000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 6>  radio 1, IF 100000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora multi-SF channel 7>  radio 1, IF 300000 Hz, 125 kHz bw, SF 7 to 12
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Lora std channel> radio 0, IF 300000 Hz, 500000 Hz bw, SF 8
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: FSK channel 8 disabled
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway 
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: gateway MAC address is configured to 0000000000000000
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: server hostname or IP address is configured to "router.us.thethings.network"
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: upstream port is configured to "1700"
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: downstream port is configured to "1700"
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: downstream keep-alive interval is configured to 10 seconds
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: statistics display interval is configured to 30 seconds
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: upstream PUSH_DATA time-out is configured to 100 ms
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: packets received with a valid CRC will be forwarded
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: packets received with a CRC error will NOT be forwarded
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: packets received with no CRC will NOT be forwarded
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: GPS serial port path is configured to "/dev/ttyAMA0"
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Reference latitude is configured to 10.000000 deg
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Reference longitude is configured to 20.000000 deg
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Reference altitude is configured to -1 meters
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: fake GPS is disabled
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Auto-quit after 20 non-acknowledged PULL_DATA
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: found local configuration file local_conf.json, parsing it
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: redefined parameters will overwrite global parameters
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: local_conf.json does not contain a JSON object named SX1301_conf
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway p
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: gateway MAC address is configured to DCA632FFFEF9914C
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: packets received with a valid CRC will be forwarded
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: packets received with a CRC error will NOT be forwarded
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: packets received with no CRC will NOT be forwarded
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [main] TTY port /dev/ttyAMA0 open for GPS synchronization
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [main] concentrator started, packet can now be received
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Disabling GPS mode for concentrator's counter...
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: host/sx1301 time offset=(1644275668s:643024µs) - drift=-1021023024µs
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: Enabling GPS mode for concentrator's counter.
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: WARNING: [gps] GPS out of sync, keeping previous time reference
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [modify_os_time] local_time=1644275671, gps_time=1644275670
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [modify_os_time] The difference between the system time(1644275671) and the GPS 
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [down] PULL_ACK received in 99 ms
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [down] PULL_ACK received in 11 ms
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: INFO: [down] PULL_ACK received in 24 ms
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: ##### 2022-02-07 23:15:01 GMT #####
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: ### [UPSTREAM] ###
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # RF packets received by concentrator: 1
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # RF packets forwarded: 0 (0 bytes)
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # PUSH_DATA datagrams sent: 0 (0 bytes)
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # PUSH_DATA acknowledged: 0.00%
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: ### [DOWNSTREAM] ###
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # PULL_DATA sent: 3 (100.00% acknowledged)
Feb 07 23:15:01 rak-gateway ttn-gateway[851]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)type or paste code here

As suspected its an old RAK image that is pointing to what would have been the old V2 NS.

Change settings to reflect the V3 nam1 instance and you should see progress :slight_smile:

Thanks!

hye, im also new to this… i would like to know how to change the setting for RAK image to the one you said as the new image, do i have to burn the software back in my sd card? or have other way for it

Rewrite server setting from

router.us.thethings.network

To

nam1.cloud.thethings.network

And if still on Port 1700 you should be good to try… there may be other issues IIRC, but didn’t use so cant be sure…use forum search? Obviously if you want to migrated to BasicStation it’s a heavier lift with new image… I know Jac favours Balena for such builds…again forum search plus YT vids & things seminars/webinars…e.g. last summers TTSA…

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.