cancel
Showing results for 
Search instead for 
Did you mean: 

How do i limit the channels that will be used in the STM32CubeExpansion_LRWAN_V1.2.1 End Node example

Peter Simpson
Associate II

I am using a B-L072Z-LRWAN1 and the STM32CubeExpansion_LRWAN_V1.2.1 End node example with an 8 channel lora gateway set to channels 1-8. The gateway is receiving some data from the End Node.

Appears the End Node may be transmitting on channels that the gateway is not receiving. Is it possible to limit the channels used by the End Node?

2 REPLIES 2
d.hinojosa.cordova
Associate II

Hi @Peter Simpson​ 

I limited the channels by modifying the RegionAU915.c file in the RegionAU915InitDefaults function. I guess you have to modify the one in your region. This Is not recommended but accelerates "join accept" .

            //SUB BAND 1 (channel 0-7)
            NvmCtx.ChannelsDefaultMask[0] = 0x00FF;
            NvmCtx.ChannelsDefaultMask[1] = 0x0000;
            NvmCtx.ChannelsDefaultMask[2] = 0x0000;
            NvmCtx.ChannelsDefaultMask[3] = 0x0000;
            NvmCtx.ChannelsDefaultMask[4] = 0x00FF;
            NvmCtx.ChannelsDefaultMask[5] = 0x0000;

I hope it serves you.

Peter Simpson
Associate II

Hi,

Thank you for taking the time to reply and for the information.

I have made the changes and will see how much data I am loosing

I am sending data every 15 seconds so I know which packets are not received

Thank You again

Regards