7 years, 3 months ago.

Configuring a LoRaWAN Sub-band for 915 MHz Hybrid Mode

Regarding: https://developer.mbed.org/teams/Semtech/code/LoRaWAN-NAMote72-Application-Demo/

How do I configure the channel mask to configure operation on the following sub-band?

Ch - Freq

8 - 903.9

9 - 904.1

10 - 904.3

11 - 904.5

12 - 904.7

13 - 904.9

14 - 905.1

15 - 905.3

I cannot find this in the code nor can I see any way to configure compiler options for the mbed compiler as I would in Keil uVision.

In config.h I see the following:

/*!

  • Configure End-Device to use 8-channels corresponding to Block A
  • Comment/Uncomment to disable/enable Hybrid mode
  • /
  1. define USE_BAND_915_HYBRID
  1. ifndef USE_BAND_915_HYBRID /*!
  • Configure End-Device to use 64-channels across to Block A thru Block H
  • /
  1. define USE_BAND_915

Does this mean that I can only use the first block of channels (CH 0 -7) Block A?

Thanks,

Frank

Question relating to:

1 Answer

5 years, 10 months ago.

Hi Frank

Did you ever get this answered? Struggling with the same problem. Thanks.

Never - Still searching and cannot find any sign of it in the code.

posted by FRANK COLUMBUS 03 Jul 2018

Hi Alan, I just solved it!

Look in at the following path: mac -> LoRaWAN-lib -> LoRaMac.cpp

Look at line 2885. Here is what I changed:

Giving you a few lines before and after, original line commented out with the modification added on the next line

  1. if defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID ) 125 kHz channels for( uint8_t i = 0; i < LORA_MAX_NB_CHANNELS - 8; i++ ) { Channels[i].Frequency = 902.3e6 + i * 200e3; modified by fcolumbu 07022018 for TTN standard Channels[i].Frequency = 903.9e6 + i * 200e3; Channels[i].DrRange.Value = ( DR_3 << 4 ) | DR_0; Channels[i].Band = 0;

Hope this works for you too.

posted by FRANK COLUMBUS 03 Jul 2018