-
Notifications
You must be signed in to change notification settings - Fork 389
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
Check that Vendor Profile ID for a vendor is unique #405
Comments
@KrishnaIyer I add a unique |
@Jaime-Trinidad: Thanks. I also think we need validation to make sure that the values are unique for future profiles. |
@KrishnaIyer yes, the question |
It should be unique within each vendor. |
I'll add validity checks in CI. |
Any updates here? |
We have two options here:
Technically, we can also do both. We can define generic profile IDs that can be reused, and we can use them for the primary key of the device repository. References #527 (comment) @adriansmares thoughts? |
I think we should indeed go with a mixed approach - make this profile ID part of the vendor's index file, requiring it to reference the region+profile and codec if available. If available, the firmware / hardware versions may be added as well, in order to allow mapping back (vendor ID, vendor profile ID) to (band ID, brand ID, model ID, HW version, SW version). |
Are there any changes with respect with the current specification or vendor usage here ? Do we know if people reusing the vendor profile ID in the wild already ? |
No changes to the specification. The main gap is that As for usage of this ID in the wild, I haven't seen it yet. |
Summary
Check that
VendorProfileID
for profiles of a vendor is unique. Refs; TheThingsNetwork/lorawan-stack#5323Why do we need this?
To make sure that we can query LoRaWAN device profiles with the (
VendorID
,VendorProfileID
) tuple.What is already there? What do you see now?
Currently, most device profiles don't have the
VendorProfileID
defined. For the few ones that are defined, the values are basically copy-pasted into multiple profiles.What is missing? What do you want to see?
If
VendorProfileID
is defined, it must be a unique value for each profile of a given vendor.How do you propose to implement this?
I guess you'd need to ask users. @Jaime-Trinidad: Let's do this as an example for
The Things Products
andThe Things Industries
devices.Can you do this yourself and submit a Pull Request?
Can test.
The text was updated successfully, but these errors were encountered: