danak6jq / Seeed-LoRa-E5

LoRaWAN end node built from scratch using CubeMX for WLE5x in the LoRa-E5
Other
46 stars 10 forks source link

Enhancement: add scheme for run-time configuration of US sub-bands #2

Closed danak6jq closed 2 years ago

danak6jq commented 2 years ago

The ST port of Semtech reference port offers a HYBRID_ENABLED scheme to select a subset of US915 channels. Production motes really require the ability to configure the channel map in the field, need an API for this

danak6jq commented 2 years ago

After looking into this, I'm not so sure sub-band support is that critical for OTAA devices. Adding a couple of lines of code to the join callback in lora_app.c will re-try until a GW is found; the GW will then send down the channel mask to use:

`static void OnJoinRequest(LmHandlerJoinParams_t joinParams) { / USER CODE BEGIN OnJoinRequest_1 */

if (joinParams->Status == LORAMAC_HANDLER_ERROR) {
    LmHandlerJoin(ActivationType);
}

/ USER CODE END OnJoinRequest_1 / }`