Gateway frequencies

I have ABP devices and a gateway that can listen up to 16 channels. The gateway is using basic station protocol.

My question is, how do I properly set the 16 channels on the basic station gateway? I tried creating a gateway profile with the 16 frequencies. But it seems I still need to modify the chirpstack gateway bridge configuration file. So I added the frequencies under [backend.basic_station.concentrators.multi_sf]. But I can only add 10 frequencies because more than that, I’ll get the following error:

level=fatal msg=“setup backend error: new backend error: get router config error: get radio frequencies error: channel 923200000 does not fit in radio bandwidth”

I believe you would need to create two [[backend.basic_station.concentrators]] config sections (8 channels per SX130x concentrator).

So I did as you suggested. I did not get the previous error, so your suggestion works.

But, now my gateway is not connecting to Chirpstack server at all. I think it’s not happy with the configurations I gave. Here is what the LNS sent to configure the gateway:

{
  "msgtype": "router_config",
  "NetID": null,
  "JoinEui": null,
  "region": "AS923",
  "hwspec": "sx1301/2",
  "freq_range": [919000000, 924000000],
  "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],
    [-1, 0, 0],
    [-1, 0, 0],
    [-1, 0, 0],
    [-1, 0, 0],
    [-1, 0, 0],
    [-1, 0, 0],
    [-1, 0, 0],
    [-1, 0, 0]
  ],
  "sx1301_conf": [
    {
      "radio_0": { "enable": true, "freq": 920800000 },
      "radio_1": { "enable": true, "freq": 921800000 },
      "chan_FSK": { "enable": true },
      "chan_Lora_std": {
        "enable": true,
        "radio": 1,
        "if": -400000,
        "bandwidth": 125000,
        "spread_factor": 7
      },
      "chan_multiSF_0": { "enable": true, "radio": 0, "if": -400000 },
      "chan_multiSF_1": { "enable": true, "radio": 0, "if": -200000 },
      "chan_multiSF_2": { "enable": true, "radio": 0, "if": 0 },
      "chan_multiSF_3": { "enable": true, "radio": 0, "if": 200000 },
      "chan_multiSF_4": { "enable": true, "radio": 0, "if": 400000 },
      "chan_multiSF_5": { "enable": true, "radio": 1, "if": -400000 },
      "chan_multiSF_6": { "enable": true, "radio": 1, "if": -200000 },
      "chan_multiSF_7": { "enable": true, "radio": 1, "if": 0 }
    },
    {
      "radio_0": { "enable": true, "freq": 922200000 },
      "radio_1": { "enable": true, "freq": 923600000 },
      "chan_FSK": { "enable": true },
      "chan_Lora_std": {
        "enable": true,
        "radio": 1,
        "if": -400000,
        "bandwidth": 125000,
        "spread_factor": 7
      },
      "chan_multiSF_0": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_1": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_2": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_3": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_4": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_5": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_6": { "enable": false, "radio": 0, "if": 0 },
      "chan_multiSF_7": { "enable": false, "radio": 0, "if": 0 }
    }
  ]
}

And this is what I set in chirpstack-gateway-bridge:

[[backend.basic_station.concentrators]]
      [backend.basic_station.concentrators.multi_sf]
      frequencies = [
        923400000,
        923200000,
        923000000,
        922800000,
        922600000,
        922400000,
        922200000,
        922000000,
      ]

      [backend.basic_station.concentrators.lora_std]
      frequency=923200000
      bandwidth=125000
      spreading_factor=7

      [backend.basic_station.concentrators.fsk]
      frequency=921800000

    # 2nd set of frequencies
    [[backend.basic_station.concentrators]]
      frequencies = [
        921800000,
        921600000,
        921400000,
        921200000,
        921000000,
        920800000,
        920600000,
        920400000
      ]

      [backend.basic_station.concentrators.lora_std]
      frequency=921600000
      bandwidth=125000
      spreading_factor=7

      [backend.basic_station.concentrators.fsk]      
      frequency=921800000

By any chance, do I have to enable tx_enable for both of my radio? Because currently it is not enabled for my radio_1.

Another interesting thing to note was, among the errors I got from the gateway log was Region plan asks for hwspec=sx1301/2 which exceeds actual hardware: sx1301/1 . What does it means? Does it means my gateway does not actually support what I’m trying to configure?

By any chance, do I have to enable tx_enable for both of my radio? Because currently it is not enabled for my radio_1.

No, TX is (usually) through a single radio.

Another interesting thing to note was, among the errors I got from the gateway log was Region plan asks for hwspec=sx1301/2 which exceeds actual hardware: sx1301/1 . What does it means? Does it means my gateway does not actually support what I’m trying to configure?

It looks like only a single concentrator config is expected.

1 Like