How can I limit the channels the board B-L072Z use for transmision?
Hello everybody.
I am using B-L072Z-LRWAN1 to create a LoraWAN node class C. I am using the software STM32CubeExpansion_LRWAN_V1.3.1 . The compiler is Eclipse with the plugin SW4STM32. the version of eclipse is 4.14.0
the LoRaWAN region I am using is US915. the project I am testing is "End_Node"
I am able to get and receive data from the board. The
Since I know the channels I want to use (The channels configure in the Gateway), I want to limit the channels in the End_Node. In this case, allow the board to use only 6 through 23. In the file RegionsUS915.c, in the line 523, is the setting of the default mask. If I set these values:
NvmCtx.ChannelsDefaultMask[0] = 0x0000;
NvmCtx.ChannelsDefaultMask[1] = 0x00FF;
NvmCtx.ChannelsDefaultMask[2] = 0x0000;
NvmCtx.ChannelsDefaultMask[3] = 0x0000;
NvmCtx.ChannelsDefaultMask[4] = 0x00FF;
NvmCtx.ChannelsDefaultMask[5] = 0x0000;
I can seee the board only perform a join request in the desire range. But after the join, to send data, 90% of the time use channels between 8 and 15, wich one are not availables. actually, if I leave the original values (0xFFFF), 90% of the time use channles of the second group.
In the program I am printing the value of NvmCtx.ChannelsDefaultMask[0] , and after the Join, change from 0000 to 0xFF00. I have been checking the flow of the software, And I dont see where is the problem. is possible to achieve that goal? I mean, allow the board to use only channel 6 through 23?
Thanks for the help in this issue.