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

Configure NetID for OTAA and ABP generated DevAddr #105

Closed
pdubois22 opened this issue Feb 5, 2019 · 2 comments
Closed

Configure NetID for OTAA and ABP generated DevAddr #105

pdubois22 opened this issue Feb 5, 2019 · 2 comments
Assignees
Labels
c/network server This is related to the Network Server compat/api This could affect API compatibility in progress We're working on it ui/cli This is related to ttn-lw-cli
Milestone

Comments

@pdubois22
Copy link
Contributor

Summary:
I haven't seen a way to configure the NetID on the NS. I may have missed something stupid

Why do we need this?
Unless I missed something, by default the NetId is zero. Devices are registered in the 0x00/0x01 address range. We need a way to configure the NetId to set a LoRaWAN NetId. Ideally, it should be configurable.

What is already there? What do you see now?
I haven't seen anything

What is missing? What do you want to see?
configure the netid as an env variable or in the config file.

How do you propose to implement this?
use standard config

Environment:
lorawan-stack on a linux server

What can you do yourself and what do you need help with?

@johanstokking
Copy link
Member

johanstokking commented Feb 5, 2019

@pdubois22 thanks for reporting. This is already prepared in NS but not yet exposed through config. That's easy to fix.

For ABP, there's another concern, namely that you may want to use a different NetID for that. In fact, LoRa Alliance issues a separate, smaller NetID to contributor and sponsor members that is intended for ABP.

Now, in my personal opinion, ABP should not be used, except for rare circumstances. We may want to account for the above though by having separate NetIDs for OTAA and ABP.

Finally, for ABP, the cli currently generates a DevAddr with NetID 0. If we support NetIDs for ABP, then we need an rpc for the cli to let NS generate a DevAddr.

@johanstokking johanstokking added c/network server This is related to the Network Server ui/cli This is related to ttn-lw-cli compat/api This could affect API compatibility labels Feb 5, 2019
@johanstokking johanstokking added this to the February 2019 milestone Feb 5, 2019
@johanstokking johanstokking changed the title configure NetID on ns Configure NetID for OTAA and ABP generated DevAddr Feb 5, 2019
@rvolosatovs
Copy link
Contributor

rvolosatovs commented Feb 5, 2019

I'll implement it in Network Server as part of #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/network server This is related to the Network Server compat/api This could affect API compatibility in progress We're working on it ui/cli This is related to ttn-lw-cli
Projects
None yet
Development

No branches or pull requests

4 participants