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

LoRaWAN: support ABP activation #52

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

kuohsianglu
Copy link
Contributor

End device activation support for Activation By Personalization(ABP). Default ABP is disabled, set LoRaWAN data object pAbp to true to enable ABP and device address(pDevAddr), session keys for network(pNwkSKey) and application(pAppSKey).

Testing with Chirpstack network server for both OTAA and ABP can work fine.

@martinjaeger
Copy link
Contributor

Thanks for this nice addition.

I was wondering if we should compile in the ABP parts in the .c file conditionally depending on a new Kconfig option CONFIG_THINGSET_LORAWAN_ABP (disabled by default), as I guess most users will only need OTAA (that's at least what I've used in all projects in the past). This way we would save some memory if ABP is not needed. What do you think?

@kuohsianglu
Copy link
Contributor Author

Sure, let me refactoring and re-send PR for your review.

End device activation support for Activation By Personalization(ABP).
Default ABP is disabled, set LoRaWAN data object pAbp to true to enable
ABP and device address(pDevAddr), session keys for network(pNwkSKey) and
application(pAppSKey).
Copy link
Contributor

@martinjaeger martinjaeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update!

@martinjaeger martinjaeger merged commit 4913b0c into ThingSet:main Aug 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants