Struggling to get a RHF0M301 connected on TTN

Hi everyone, I feel that Im close but I just cant figure it out. Using a Rpi 3b+ and the RHF0M301 from SEEEDstudio. Awful instruction on how to get it set up to Loriot, so i figured id try TTN.

I used the ic880a gateway instructions: GitHub - ttn-zh/ic880a-gateway at spi

My status log:

image

This is my global_conf.json :

{
    "SX1301_conf": {
        "lorawan_public": true,
        "clksrc": 1, 
        "radio_0": {
            "enable": true,
            "type": "SX1257",
            "freq": 904300000,
            "rssi_offset": -166.0,
            "tx_enable": true
            "tx_freq_min": 923000000,
            "tx_freq_max": 928000000 
 },
        "radio_1": {
            "enable": true,
            "type": "SX1257",
            "freq": 905000000,
            "rssi_offset": -166.0,
            "tx_enable": false
        },
        "chan_multiSF_0": {
            /* Lora MAC channel, 125kHz, all SF, 903.9 MHz */ 
            "enable": true,
            "radio": 0,
            "if": -400000
        },
        "chan_multiSF_1": {
            /* Lora MAC channel, 125kHz, all SF, 904.1 MHz */
            "enable": true,
            "radio": 0,
            "if": -200000
        },
        "chan_multiSF_2": {
            /* Lora MAC channel, 125kHz, all SF, 904.3 MHz */
            "enable": true,
            "radio": 0,
            "if": 0
        },
        "chan_multiSF_3": {
            /* Lora MAC channel, 125kHz, all SF, 904.5 MHz */
            "enable": true,
            "radio": 0,
            "if": 200000 
        },
        "chan_multiSF_4": {
            /* Lora MAC channel, 125kHz, all SF, 904.7 MHz */
            "enable": true,
            "radio": 1,
            "if": -300000
        },
        "chan_multiSF_5": {
            /* Lora MAC channel, 125kHz, all SF, 904.9 MHz */
            "enable": true,
            "radio": 1,
            "if": -100000 
        },
        "chan_multiSF_6": {
            /* Lora MAC channel, 125kHz, all SF, 905.1 MHz */
            "enable": true,
            "radio": 1,
            "if": 100000
        },
        "chan_multiSF_7": {
            /* Lora MAC channel, 125kHz, all SF, 905.3 MHz */
            "enable": true,
            "radio": 1,
            "if": 300000
        },
        "chan_Lora_std": {
            /* Lora MAC channel, 250kHz, SF8, 904.6 MHz */
            "enable": true,
            "radio": 0,
            "if": 300000,
            "bandwidth": 500000,
            "spread_factor": 8 
        },
        "chan_FSK": {
            /* FSK 50kbps channel, 868.8 MHz */
            "enable": false,
        },
        "tx_lut_0": {
            /* TX gain table, index 0 */
            "pa_gain": 0,
            "mix_gain": 8,
            "rf_power": -6,
            "dig_gain": 0
        },
        "tx_lut_1": {
            /* TX gain table, index 1 */
            "pa_gain": 0,
            "mix_gain": 10,
            "rf_power": -3,
            "dig_gain": 0
        },
        "tx_lut_2": {
            /* TX gain table, index 2 */
            "pa_gain": 0,
            "mix_gain": 12,
            "rf_power": 0,
            "dig_gain": 0
        },
        "tx_lut_3": {
            /* TX gain table, index 3 */
            "pa_gain": 1,
            "mix_gain": 8,
            "rf_power": 3,
            "dig_gain": 0
        },
        "tx_lut_4": {
            /* TX gain table, index 4 */
            "pa_gain": 1,
            "mix_gain": 10,
            "rf_power": 6,
            "dig_gain": 0
        },
        "tx_lut_5": {
            /* TX gain table, index 5 */
            "pa_gain": 1,
            "mix_gain": 12,
            "rf_power": 10,
            "dig_gain": 0
        },
        "tx_lut_6": {
            /* TX gain table, index 6 */
            "pa_gain": 1,
            "mix_gain": 13,
            "rf_power": 11,
            "dig_gain": 0
        },
        "tx_lut_7": {
            /* TX gain table, index 7 */
            "pa_gain": 2,
            "mix_gain": 9,
            "rf_power": 12,
            "dig_gain": 0
        },
        "tx_lut_8": {
            /* TX gain table, index 8 */
            "pa_gain": 1,
            "mix_gain": 15,
            "rf_power": 13,
            "dig_gain": 0
        },
        "tx_lut_9": {
            /* TX gain table, index 9 */
            "pa_gain": 2,
            "mix_gain": 10,
            "rf_power": 14,
            "dig_gain": 0
        },
        "tx_lut_10": {
            /* TX gain table, index 10 */
            "pa_gain": 2,
            "mix_gain": 11,
            "rf_power": 16,
            "dig_gain": 0
        },
        "tx_lut_11": {
            /* TX gain table, index 11 */
            "pa_gain": 3,
            "mix_gain": 9,
            "rf_power": 20,
            "dig_gain": 0
        },
        "tx_lut_12": {
            /* TX gain table, index 12 */
            "pa_gain": 3,
            "mix_gain": 10,
            "rf_power": 23,
            "dig_gain": 0
        },
        "tx_lut_13": {
            /* TX gain table, index 13 */
            "pa_gain": 3,
            "mix_gain": 11,
            "rf_power": 25,
            "dig_gain": 0
        },
        "tx_lut_14": {
            /* TX gain table, index 14 */
            "pa_gain": 3,
            "mix_gain": 12,
            "rf_power": 26,
            "dig_gain": 0
        },
        "tx_lut_15": {
            /* TX gain table, index 15 */
            "pa_gain": 3,
            "mix_gain": 14,
            "rf_power": 27,
            "dig_gain": 0
        }
    },

    "gateway_conf": {
        "gateway_ID":"B827EBFFFE8384F5", 
        "servers":
        [ { "server_address": "us-west.thethings.network",
            "serv_port_up": 1700,
            "serv_port_down": 1700, 
            "serv_enabled": true}] 
    }
}

And my start.sh:

#! /bin/bash

# Reset iC880a PIN

SX1301_RESET_BCM_PIN=7
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/export 
echo "out" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/direction 
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value 
sleep 0.1  
echo "1"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value 
sleep 0.1  
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/unexport 

# Test the connection, wait if needed.
while [[ $(ping -c1 google.com 2>&1 | grep " 0% packet loss") == "" ]]; do
  echo "[TTN Gateway]: Waiting for internet connection..."
  sleep 30
  done

# If there's a remote config, try to update it
if [ -d ../gateway-remote-config ]; then
    # First pull from the repo
    pushd ../gateway-remote-config/
    git pull
    git reset --hard
    popd

    # And then try to refresh the gateway EUI and re-link local_conf.json

    # Same network interface name detection as on install.sh
    # Get first non-loopback network device that is currently connected
    GATEWAY_EUI_NIC=$(ip -oneline link show up 2>&1 | grep -v LOOPBACK | sed -E 's/^[0-9]+: ([0-9a-z]+): .*/\1/' | head -1)
    if [[ -z $GATEWAY_EUI_NIC ]]; then
      echo "ERROR: No network interface found. Cannot set gateway ID."
      exit 1
    fi

    # Then get EUI based on the MAC address of that device
    GATEWAY_EUI=$(cat /sys/class/net/$GATEWAY_EUI_NIC/address | awk -F\: '{print $1$2$3"FFFE"$4$5$6}')
    GATEWAY_EUI=${GATEWAY_EUI^^} # toupper

    echo "[TTN Gateway]: Use Gateway EUI $GATEWAY_EUI based on $GATEWAY_EUI_NIC"
    INSTALL_DIR="/opt/ttn-gateway"
    LOCAL_CONFIG_FILE=$INSTALL_DIR/bin/local_conf.json

    if [ -e $LOCAL_CONFIG_FILE ]; then rm $LOCAL_CONFIG_FILE; fi;
    ln -s $INSTALL_DIR/gateway-remote-config/$GATEWAY_EUI.json $LOCAL_CONFIG_FILE

fi

# Fire up the forwarder.
./poly_pkt_fwd

Does anyone have any thoughts ?

Appreciate any help!

Your problem at this point is with the gateway

Try to get the full log from journalctl if you are running it as a daemon, or simply go to the directory where the global_config.json resides and run the packet forwarder by full path name so that it outputs to your terminal.

There will be some error message that hints what is wrong and why it does not stay running.

  1. Please do not post ascii as screen shots.
  2. Please format your post properly. Makes it a lot more readable.
  3. As suggested by @cslorabox take a look at the log. I think you will find the software won’t start properly because it can’t initialize the concentrator and the likely cause is that the board is not properly reset due to misconfigered pin setting.

My apologies. Im using SSH and dont know how to copy paste from putty for my logs

Use the left mouse button to select text in putty, that automatically copies it to the paste buffer so after selecting in putty use paste in a [ code ] block on the forum.

It’s text like in MS Word or NotePad++ or any other text based app.

Drag across it with the mouse button down and try a Ctrl-C …

You guys are great. Thank you.
Assumed I had to ctrl c. How do I run the packet forwarder from that location as suggested ? Just cd till I’m in the bin folder ?

You need to be in the folder where the global_conf.json is - sometimes that’s the same as the executable, sometimes it isn’t

Then give the /absolute/path/name/of/the/packet/forwarder/exectuable

Often however what you actually want to run is a script that toggle the reset gpio and then runs the packet forwarder. Or run a reset script before the packet forwarder.

I also suspect you’re working with a relatively old version which won’t reliably send downlinks from ttn V3 when busy unless you find the setting to tell the network that packet forwarder doesn’t have a jit queue and needs to hold onto packets longer in the network - so you might want to grab something newer once you get it to work at all.

Thanks. I ran the log and the global_conf.json was off. Ive edited it and the service is now running (big win) but im still not seeing it as a connected gateway.


@ttn-gateway:/opt/ttn-gateway/bin $ 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 Wed 2021-02-10 19:16:40 EST; 1min 34s ago
 Main PID: 22548 (start.sh)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/ttn-gateway.service
           ├─22548 /bin/bash /opt/ttn-gateway/bin/start.sh
           └─22586 ./poly_pkt_fwd

Feb 10 19:16:40 ttn-gateway systemd[1]: Started The Things Network Gateway.
Feb 10 19:16:40 ttn-gateway ttn-gateway[22548]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin
Feb 10 19:16:41 ttn-gateway ttn-gateway[22548]: Already up-to-date.
Feb 10 19:16:41 ttn-gateway ttn-gateway[22548]: HEAD is now at fe81511 Merge pull request #1559 from janleroux/master
Feb 10 19:16:41 ttn-gateway ttn-gateway[22548]: /opt/ttn-gateway/bin
Feb 10 19:16:41 ttn-gateway ttn-gateway[22548]: [TTN Gateway]: Use Gateway EUI B827EBFFFE8384F5 based on eth0
Feb 10 19:16:41 ttn-gateway ttn-gateway[22548]: ln: failed to create symbolic link '/opt/ttn-gateway/bin/local_conf.json': File exists

Would be nice to see more, can you do something like

sudo grep ttn /var/log/syslog

there should be a more formal way to do it with journalctl, but, systemd…

I honestly appreciate the patience with someone so new to linux.


Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: HEAD is now at fe81511 Merge pull request #1559 from janleroux/master
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: /opt/ttn-gateway/bin
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: [TTN Gateway]: Use Gateway EUI B827EBFFFE8384F5 based on eth0
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: ln: failed to create symbolic link '/opt/ttn-gateway/bin/local_conf.json': File exists
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: *** Poly Packet Forwarder for Lora Gateway ***
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: Version: 2.1.0
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: *** Lora concentrator HAL library version info ***
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: Version: 3.1.0; Options: native;
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: ***
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Little endian host
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: found global configuration file global_conf.json, parsing it
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: lorawan_public 1, clksrc 1
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Configuring TX LUT with 16 indexes
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: gateway MAC address is configured to AA555A0000000000
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Found 2 servers in array.
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Found 5 system calls in array.
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: System command 0: "df -m"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: System command 1: "free -h"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: System command 2: "uptime"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: System command 3: "who -a"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: System command 4: "uname -a"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: monitor hostname or IP address is configured to "127.0.0.1"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: monitor port is configured to "2008"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: ghost hostname or IP address is configured to "127.0.0.1"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: ghost port is configured to "1918"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: downstream keep-alive interval is configured to 10 seconds
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: statistics display interval is configured to 30 seconds
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: upstream PUSH_DATA time-out is configured to 100 ms
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: packets received with a valid CRC will be forwarded
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: packets received with a CRC error will NOT be forwarded
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: packets received with no CRC will NOT be forwarded
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: GPS serial port path is configured to "/dev/ttyAMA0"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: SSH path is configured to "/usr/bin/ssh"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: SSH port is configured to 22
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: HTTP port is configured to 80
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: NGROK path is configured to "/usr/bin/ngrok"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Reference latitude is configured to 10.000000 deg
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Reference longitude is configured to 20.000000 deg
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Reference altitude is configured to -1 meters
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: GPS is enabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Using fake GPS coordinates instead of real.
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: antenna_gain 0 dBi
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Upstream data is enabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Downstream data is enabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Ghoststream data is disabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Radiostream data is enabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Statusstream data is enabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Beacon is disabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Monitor is disabled
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Platform configured to "IMST + Rpi"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Contact email configured to "operator@gateway.tst"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Description configured to "Update me"
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: Successfully contacted server 127.0.0.1
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: ERROR: [up] getaddrinfo on address iot.semtech.com (PORT 1680) returned Name or service not known
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: INFO: [main] Starting the concentrator
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: ERROR: Version of calibration firmware not expected, actual:0 expected:2
Feb 10 10:35:01 ttn-gateway ttn-gateway[11730]: ERROR: [main] failed to start the concentrator
Feb 10 10:35:01 ttn-gateway systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE
Feb 10 10:35:01 ttn-gateway systemd[1]: ttn-gateway.service: Unit entered failed state.
Feb 10 10:35:01 ttn-gateway systemd[1]: ttn-gateway.service: Failed with result 'exit-code'.
Feb 10 10:35:06 ttn-gateway systemd[1]: ttn-gateway.service: Service hold-off time over, scheduling restart.
Feb 10 10:35:06 ttn-gateway systemd[1]: Stopped The Things Network Gateway.
Feb 10 10:35:06 ttn-gateway systemd[1]: Started The Things Network Gateway.
Feb 10 10:35:07 ttn-gateway kernel: [ 1249.652919] Voltage normalised (0x00000000)

You probably need to get the reset GPIO correctly matched in the hardware and software.

Or else your SPI connections have issues.

Do you know how to trouble shoot that ?

I wiped my board and followed everything as per this video. And still no luck connecting the gateway:

https://www.youtube.com/watch?v=VFklGUGuw6I&feature=youtu.be

First figure out which pi gpio your concentrator’s reset pin is wired to.

Then make sure there’s a script that’s manipulating that, either a reset.sh type script run before starting the packet forwarder, or a start.sh type script that does the reset and then runs the packet forwarder executable.

If it still doesn’t work, then look at the various standalone test programs in the lora gatway hal and packet forewarder build directories and try those.

If it still doesn’t work get a scope or cheapie USB-based logic analyzer on the SPI lines

Thank you.

I think its pin 14:

Pin Definition Type Description
1 VCC5V Power (VCC) +5V Input
2 VCC5V Power (VCC) +5V Input
3 GND Power (GND) Ground
4 GND Power (GND) Ground
5 NC No connection
6 NC No connection
7 NC No connection
8 SX1301_GPIO4 Input/Output GPIO4 from SX1301
9 SX1301_GPIO2 Input/Output GPIO2 from SX1302
10 SX1301_GPIO3 Input/Output GPIO3 from SX1303
11 SX1301_GPIO0 Input/Output GPIO0 from SX1304
12 SX1301_GPIO1 Input/Output GPIO1 from SX1305
13 NC No connection
14 Reset Input Reset signal input to reset SX1301

That’s the pin on the concentrator, you have to figure out which pi pin it is connected to, which pi gpio that is, and then follow the debugging suggestions of the previous post

Thank you, I will troubleshoot.

One other question. Ive changed my global_conf.json files where it was specified, but in the log im still get 868 frequencies. Could that be my problem as well ?



Feb 10 10:34:38 ttn-gateway ttn-gateway[11538]: [TTN Gateway]: Use Gateway EUI B827EBFFFE8384F5 based on eth0
Feb 10 10:34:38 ttn-gateway ttn-gateway[11538]: ln: failed to create symbolic link '/opt/ttn-gateway/bin/local_conf.json': File exists
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: *** Poly Packet Forwarder for Lora Gateway ***
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: Version: 2.1.0
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: *** Lora concentrator HAL library version info ***
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: Version: 3.1.0; Options: native;
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: ***
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Little endian host
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: found global configuration file global_conf.json, parsing it
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: lorawan_public 1, clksrc 1
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Configuring TX LUT with 16 indexes
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: gateway MAC address is configured to AA555A0000000000
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Found 2 servers in array.
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681"
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680"
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: Found 5 system calls in array.
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: System command 0: "df -m"
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: System command 1: "free -h"
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: System command 2: "uptime"
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: System command 3: "who -a"
Feb 10 10:34:39 ttn-gateway ttn-gateway[11538]: INFO: System command 4: "uname -a"

You probably have multiple configuration files.

The packet forwarder isn’t very smart, it uses whatever file is located in the directory it is run from (not the directory where it is located itself) and not any fixed location.

My own are patched to look in /etc/

I got Seeedstudio gateway connected to TTN by changing reset pin, should be SX1301_RESET_BCM_PIN=22 as suggested at Home · ttn-zh/ic880a-gateway Wiki · GitHub