Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of LmHandler #236

Open
niondir opened this issue Jan 11, 2022 · 0 comments
Open

Usage of LmHandler #236

niondir opened this issue Jan 11, 2022 · 0 comments

Comments

@niondir
Copy link

niondir commented Jan 11, 2022

I'm just curious if there is a specific reason why the LmHandler APIs are not used or if there are any plans to integrate it?

I'm using the generic-node as a template and going to use LmhpRemoteMcastSetup.c from the LmHandler directory for better Multicast support.
I notices that there is a full Middleware stack implemented that mirrors some of the LoRaMac APIs like Join, Send Message, etc.
e.g LoRaMacProcess is wrapped in LmHandlerProcess.

The freertos_lorawan wrapper used by the generic node ignores the LmHandler API.

Update:
Once we use the LmHandler package, one must implement the FreeRTOS handler as a Middleware to allow the Mac Hooks to be set to the LmHandler functions. The LmHandler will forward the calls to middlewares and runs in the FreeRTOS task, so it should be no problem (as far as I see yet) to just use the LmHandler API for the callbacks.

xLoRaMacPrimitives.MacMcpsConfirm = prvMcpsConfirm;
xLoRaMacPrimitives.MacMcpsIndication = prvMcpsIndication;
xLoRaMacPrimitives.MacMlmeConfirm = prvMlmeConfirm;
xLoRaMacPrimitives.MacMlmeIndication = prvMlmeIndication;

Or we use OnTxData and OnRxData of the LmHandler package.

@niondir niondir changed the title Usage of LmHandlerSend Usage of LmHandler Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant