RAKWireless / RAK811_BreakBoard

RAKwireless,RAK811,BreakBoard,GPS tracker,Low power,Open source
5 stars 4 forks source link

Wrong bandwidth choices for LoRa (not LoRaWAN) #16

Open Kongduino opened 3 years ago

Kongduino commented 3 years ago

sx1276.c states:

if( bandwidth > 2 ) {
  // Fatal error: When using LoRa modem only bandwidths 125, 250 and 500 kHz are supported
  while( 1 );
}

which is incorrect: {125, 250, 500} is the allowed subset for LoRaWAN. However for LoRa, the full range is allowed: {7.8, 10.4, 15.6, 20.8, 31.2, 41.7, 62.5, 125, 250, 500}.

at+set_config=lorap2p: should accept the full range of bandwidths.