Lorawan/band: data-rate not found

Hi,

So I have followed the steps mentioned for the getting started on an Ubuntu machine in the lora server documentation.

The setup went smoothly but now after adding my first gateway/device to lora server, the lora-app-server is showing a constant error in the logs complaining it can’t figure out the data-rate for the band. The log for lora-app-server is as follows:

Oct 14 13:28:48 Loraserver loraserver[16049]: time=“2019-10-14T13:28:48Z” level=info msg=“gateway/mqtt: uplink frame received”

Oct 14 13:28:49 Loraserver loraserver[16049]: time=“2019-10-14T13:28:49Z” level=error msg=“processing uplink frame error” data_base64=“QBG7UACAoQEIFNdRPWgoQvcyGua02a2hXA==” error=“get data-rate index error: lorawan/band: data-rate not found”

Oct 14 13:29:08 Loraserver loraserver[16049]: time=“2019-10-14T13:29:08Z” level=info msg=“gateway/mqtt: gateway stats packet received” gateway_id=60c5a8fffe71a9b0

Oct 14 13:29:08 Loraserver loraserver[16049]: time=“2019-10-14T13:29:08Z” level=info msg=“gateway updated” gateway_id=60c5a8fffe71a9b0

Oct 14 13:29:08 Loraserver loraserver[16049]: time=“2019-10-14T13:29:08Z” level=info msg=“metrics saved” aggregation=“[MINUTE HOUR DAY MONTH]” name=“gw:60c5a8fffe71a9b0”

For reference, here are my specs:

Machine OS: Ubuntu 18.04 (Virtual machine setup on Azure Cloud)
Lora Gateway: RAK7249
Packet Forwarder: Semtech UDP GWMP Protocol
Server UP & DOWN port: 1700

Here are the gateway logs:

Mon Oct 14 11:49:57 2019 daemon.info md[14492]: mdInit Done.
Mon Oct 14 11:49:57 2019 daemon.info mqttEv[14492]: mqttEvInit Done.
Mon Oct 14 11:49:57 2019 daemon.info unknown[14492]: gwManagerInit: Init gateway Manager
Mon Oct 14 11:49:57 2019 daemon.info bufrd[14492]: bufrdInit Done.
Mon Oct 14 11:49:57 2019 daemon.info bufrd[14492]: ENTER bufrdCreate `gwbridge-rd’
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: MQTT Init Start
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: Mqtt - Client ID gwbridge-60c5a8fffe71a9b0
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: Mqtt - Retain 0
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: Mqtt - Clean Session 1
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: Mqtt - Qos 1
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: Mqtt - keepalive 10
Mon Oct 14 11:49:57 2019 daemon.info mqttEv[14492]: mqttEvRegister : Register mosquitto event [gwBridgeS Mqtt Client]
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: MQTT Init Done
Mon Oct 14 11:49:57 2019 daemon.info evloop[14492]: ENTER evloopRun
Mon Oct 14 11:49:57 2019 daemon.info gwBridge[14492]: mosqConnectCB: Mqtt Connect Success …
Mon Oct 14 11:50:06 2019 user.notice lora_pkt_fwd[14454]: INFO: [main] concentrator started, packet can now be received
Mon Oct 14 12:05:09 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:10:42 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:12:25 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:20:54 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:21:29 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:23:09 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:26:54 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:28:21 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:32:07 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:32:28 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop it
Mon Oct 14 12:42:18 2019 user.warn lora_pkt_fwd[14454]: [up] Receive Downlink Packet! Drop

Here is a screenshot from the gateway packet logger which clearly mentions the data-rate was set to SF12BW125:

Is this the correct data-rate for AU915 system?

Yeah, that’s a valid AU 915-928 data rate. Are you sure you’re setting loraserver to that band?

How can I check the band? Here is the abstract from /etc/loraserver/loraserver.toml dealing with the band:

#Network identifier (NetID, 3 bytes) encoded as HEX (e.g. 010203)
net_id=“000000”

#LoRaWAN regional band configuration.

[network_server.band]
name=“US_902_928”

# LoRaWAN network related settings.
[network_server.network_settings]
# Enable only a given sub-set of channels
#
# Use this when ony a sub-set of the by default enabled channels are being
# used. For example when only using the first 8 channels of the US band.
# Note: when left blank, all channels will be enabled.
enabled_uplink_channels=[0, 1, 2, 3, 4, 5, 6, 7]


# Class B settings
[network_server.network_settings.class_b]
# Ping-slot data-rate.
ping_slot_dr=0

# Ping-slot frequency (Hz)
#
# Set this to 0 to use the default frequency plan for the configured region
# (which could be frequency hopping).
ping_slot_frequency=0

There’s your problem. Change it to AU_915_928 and rerun loraserver.

2 Likes

Thank you! I copied over the settings from a sample in-between fixing other issues and forgot to update this setting. Changing it worked!