Skip to content

Change region during runtime #1410

@Jakub-Nagy

Description

@Jakub-Nagy

I have an application which requires that the LoRaMAC region be changed during runtime. I had this tested with simpler libraries, so it is possible an it runs from the network side.

I have been struggling to make this work from the firmware side though. After being joined to the network, I try these steps:

  1. LmHandlerStop()
  2. Flush backup memory (if I don't do this it get recovered during LmHandlerConfigure)
  3. LmHandlerSetActiveRegion(region)
  4. LmHandlerJoin(ACTIVATION_TYPE_OTAA, true)
  5. while(LmHandlerIsBusy()) LmHandlerProcess()

This would even work, but sometimes the process just breaks or halts either during the rejoin, or the transmission. In general, it seems that it is very difficult to change the state machine to a new region during runtime. Is there any common implementation for this? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions