MKRWAN Library Device Activation Call Flow

Using the MKRWAN Library, is it possible to have a device activation call flow similar to the MCCI LMIC library?

For example, the “EV_TXCOMPLETE” report event in MCCI LMIC, where the data prepared via LMIC_setTxData() has been sent, and the receive window for downstream data is complete.

Is it possible to create this functionality with the MKRWAN library?

Yes / No / Maybe. The architecture of an independent module vs LMIC on the same MCU is rather different.

The MKR WAN send is a blocking call.

You can wait 5 seconds and then check for any Rx.

Or note the time, do what you want to do, and as long as >5s has passed, then check for any Rx.

What are you trying to achieve?

I want to make sure the data has been sent and received before sending another packet.

That’s not really how LoRaWAN works on two levels:

  1. We don’t / can’t / shouldn’t send uplinks back to back due to the law & FUP
  2. There is no delivery guarantee - too many links in the chain

Sorry, I’m just getting into this so my knowledge may be dodgy in places still. If I wanted to create a CLASS B device, would I just select this in the Things Network Application Setup, or would I have to code this manually?

These are the things I’m having a bit of difficulty understanding at the moment.

My reply still stands although you now seem to be asking a different question.

For Class B, the Murata module on the MKR WAN will do it but the Arduino library that interfaces too it will need some additions.