Hello everyone!
I’ve always used the whole system with EU868 with no problems.
Now, I’m going move the whole project also on US915 and I’m not able to configure the system, since I receive only very few packets or none.
I’m aware that there are 64 + 8 channels for Uplink and 8 channels for Downlink (uplinkCh % 8)
Firstly, on End-Device side (firmware):
I use I-CUBE-LRWAN and I noted that for US915 the max number of channels set is 72. As I use RAK7243 as gateway which supports 8 channels, I think I have to reduce the number of channels in the End-Device (am I right??).
So I took a look at the channel configuration C code:
// Channels
// 125 kHz channels
for( uint8_t i = 0; i < US915_MAX_NB_CHANNELS - 8; i++ )
{
NvmCtx.Channels[i].Frequency = 902300000 + i * 200000;
NvmCtx.Channels[i].DrRange.Value = ( DR_3 << 4 ) | DR_0;
NvmCtx.Channels[i].Band = 0;
}
// 500 kHz channels
for( uint8_t i = US915_MAX_NB_CHANNELS - 8; i < US915_MAX_NB_CHANNELS; i++ )
{
NvmCtx.Channels[i].Frequency = 903000000 + ( i - ( US915_MAX_NB_CHANNELS - 8 ) ) * 1600000;
NvmCtx.Channels[i].DrRange.Value = ( DR_4 << 4 ) | DR_4;
NvmCtx.Channels[i].Band = 0;
}
As you can see, If I want to use the first 8 channels (0 - 7) I need to set define US915_MAX_NB_CHANNELS to 16, because in this way, the code configures the first 8 (125 kHz) channels and the 8 (500 kHz) ones. Is it the right procedure??
Secondly, on Gateway side:
in the /etc/chirpstack-network-server/chirpstack-network-server.toml I edited:
# LoRaWAN regional band configuration.
#
# Note that you might want to consult the LoRaWAN Regional Parameters
# specification for valid values that apply to your region.
# See: https://www.lora-alliance.org/lorawan-for-developers
[network_server.band]
name="US_902_928"
# LoRaWAN network related settings.
[network_server.network_settings]
enabled_uplink_channels=[0,1,2,3,4,5,6,7]
# Disable ADR
#
# When set, this globally disables ADR.
disable_adr=true
and in the web GUI of ChirpStack Application Server I set:
- In gateway profile: enabled channels 0, 1, 2, 3, 4, 5, 6, 7
- In device profile (JOIN APB): rx delay 0, rx data-rate offset 0, rx2 data-rate 0, rx2 channel frequencies 0, factory-preset frequencies 902300000, 902500000, 902700000, 902900000, 903100000, 903300000, 903500000, 903700000 (which are the first 8 channels (125 kHz) configured on the device firmware.
With this configuration, I’m not able to receive any message.
Please help me understanding where I’m wrong and sorry if I made some obvious mistakes or misunderstanding.
Thank you all.