Any way to edit the TTNv3 gateway global_conf.json?

Hi,

Is it possible in any way to change the global_conf.json that TTN v3 submits to the gateway over LNS?

It appears to be too generally defined, and there’s nothing hardware specific in the gateway registration on TTN v3.

Thanks in advance!

Background for asking:
I have been struggling a lot with getting the Basic Station to work on a MultiTech Conduit AEP mPower/mLinux 5.3.0

According to MultiTech the clksrc MUST be set to 0 on these, however, global_conf.json insists on trying to set it to 1 (which appears to be default for other modules). I suspect this is the reason my basic station refuses to start its concentrator module. In the local station.conf file these HW specific settings can be set correctly, but that doesn’t help any bit when the global settings have preference. It seems people are aware of the issue, however, it doesn’t appear to have been any mitigation to it. Ref: Basic Station Integration: router_config should not include hardware-specific configuration · Issue #2130 · TheThingsNetwork/lorawan-stack · GitHub

For now I’m therefore forced to continue using the packet forwarder mode which, as far as I’ve understood, is outdated in many ways, also security wise.

Here’s a printout from the station log:

2021-02-24 13:18:04.107 [TCE:VERB] Connected to MUXS.

2021-02-24 13:18:04.107 [AIO:XDEB] [3|WS] > {"msgtype":"version","station":"2.0.5(mlinux/std)","firmware":null,"package":null,"model":"mlinux","protocol":2,"features":"rmtsh prod"}

2021-02-24 13:18:04.157 [AIO:XDEB] [3|WS] < {"msgtype":"router_config","NetID":null,"JoinEui":null,"region":"EU863","hwspec":"sx1301/1","freq_range":[863000000,870000000],"DRs":[[12,125,0],[11,125,0],[10,125,0],[9,125,0],[8,125,0],[7,125,0],[7,250,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],"sx1301_conf":[{"lorawan_public":true,"clksrc":1,"antenna_gain":0,"radio_0":{"enable":true,"freq":867500000,"rssi_offset":-166,"tx_enable":true},"radio_1":{"enable":true,"freq":86850

2021-02-24 13:18:04.157 [AIO:XDEB] [3|WS] . 0000,"rssi_offset":-166,"tx_enable":false},"chan_multiSF_0":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_1":{"enable":true,"radio":1,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":1,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_4":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_5":{"enable":true,"radio":0,"if":0},"chan_multiSF_6":{"enable":true,"radio":0,"if":200000},"chan_multiSF_7":{"enable":true,"radio":

2021-02-24 13:18:04.157 [AIO:XDEB] [3|WS] . 0,"if":400000},"chan_Lora_std":{"enable":true,"radio":1,"if":-200000,"bandwidth":250000,"spread_factor":7},"chan_FSK":{"enable":true,"radio":1,"if":300000,"bandwidth":125000,"datarate":50000}}],"nocca":false,"nodc":false,"nodwell":false,"MuxTime":1614172684.1785798}

2021-02-24 13:18:04.158 [S2E:WARN] Feature not supported in production level code (router_config) - ignored: nocca

2021-02-24 13:18:04.158 [S2E:WARN] Feature not supported in production level code (router_config) - ignored: nodc

2021-02-24 13:18:04.158 [S2E:WARN] Feature not supported in production level code (router_config) - ignored: nodwell

2021-02-24 13:18:04.179 [RAL:WARN] Ignoring unsupported/unknown field: antenna_gain

2021-02-24 13:18:04.179 [RAL:INFO] Lora gateway library version: Version: 5.0.1-mts-5;

2021-02-24 13:18:04.227 [RAL:VERB] Connecting to device: /dev/spidev0.0

2021-02-24 13:18:04.227 [RAL:DEBU] SX130x txlut table (0 entries)

2021-02-24 13:18:04.227 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867.5MHz rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0

2021-02-24 13:18:04.227 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868.5MHz rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0

2021-02-24 13:18:04.227 [RAL:VERB] SX1301 ifchain 0: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.227 [RAL:VERB] SX1301 ifchain 1: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.227 [RAL:VERB] SX1301 ifchain 2: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.227 [RAL:VERB] SX1301 ifchain 3: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX1301 ifchain 4: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX1301 ifchain 5: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX1301 ifchain 6: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX1301 ifchain 7: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX1301 ifchain 8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX1301 ifchain 9: enable=1 rf_chain=1 freq=300000 bandwidth=3 datarate=50000 sync_word=0/0

2021-02-24 13:18:04.228 [RAL:VERB] SX130x LBT not enabled

2021-02-24 13:18:04.228 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)

2021-02-24 13:18:04.237 [RAL:ERRO] Concentrator start failed: lgw_start

2021-02-24 13:18:04.237 [RAL:ERRO] ral_config failed with status 0x08

2021-02-24 13:18:04.237 [any:ERRO] Closing connection to muxs - error in s2e_onMsg

2021-02-24 13:18:04.237 [AIO:DEBU] [3] ws_close reason=1000

2021-02-24 13:18:04.239 [AIO:XDEB] [3] ws_closing_w state=5

2021-02-24 13:18:04.239 [AIO:DEBU] Echoing close - reason=1000

2021-02-24 13:18:04.287 [AIO:DEBU] [3|WS] Server sent close: reason=1000

2021-02-24 13:18:04.287 [AIO:DEBU] [3] WS connection shutdown...

2021-02-24 13:18:04.288 [TCE:VERB] Connection to MUXS closed in state -1

2021-02-24 13:18:04.288 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

I think that is a file you will find on your gateway somewhere.

The LNS protocol will only pass a subset of the config for the channels.

edit:

I think this is a support question for Multitech

@cjhdev thanks for your reply. You’re right that file can be found on the conduit, but it doesn’t matter because it is being sent from the LNS server every time it is contacted. So as long as TTN has these hardware specific settings included in the file, there’s no way (that I know of at least) I can override it. Global configurations apparently has preference over the local ones, which should rather be the other way around.

So as of now, I don’t see how MultiTech could support anything in this regard. The configurations sent down from the TTN server needs to be changed.

Here the conf settings are discussed by MultiTech under “SX1301_conf”: MultiTech Developer Resources » Conduit AEP: Convert to Basic Packet Forwarder