chirpstack / chirpstack-gateway-os

OpenWrt based gateway images including ChirpStack components.
https://www.chirpstack.io
130 stars 56 forks source link

enabled_uplink_channels generated under wrong section in network server toml #26

Closed KaDw closed 4 years ago

KaDw commented 4 years ago

Hi,

There is a bug in gateway-config. For RAK831 and RAK2245 shields on US915 band network-server enabled_uplink_channels is generated under [network_server.band], not under [network_server.network_settings]. The effect is that enabled_uplink_channels is not took into considerations and gateway transmits on all channels even if I specify channels in Gateway-Profile.

Now:

[general]
log_level=4

[postgresql]
dsn="postgres://chirpstack_ns:chirpstack_ns@localhost/chirpstack_ns?sslmode=disable"

[network_server]
net_id="000000"

  [network_server.band]
  name="US_902_928"
  enabled_uplink_channels=[48, 49, 50, 51, 52, 53, 54, 55]

Should be

[general]
log_level=4

[postgresql]
dsn="postgres://chirpstack_ns:chirpstack_ns@localhost/chirpstack_ns?sslmode=disable"

[network_server]
net_id="000000"

  [network_server.band]
  name="US_902_928"
  # ADD THIS LINE
  [network_server.network_settings]
  enabled_uplink_channels=[48, 49, 50, 51, 52, 53, 54, 55]
brocaar commented 4 years ago

Good spot, thanks :+1: