-
Notifications
You must be signed in to change notification settings - Fork 309
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
Implement QR Code Parser Service #5134
Conversation
96106bc
to
744d675
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed API only for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DCS section LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only looked at api
. Not much to add on top of @johanstokking's comments at this point.
33e0f66
to
e7979ef
Compare
@johanstokking Regarding the comment on EndDeviceTemplate. Step 1 of the new onboarding flow says; #4847 (comment) (line numbers are mine)
So the QR Code is scanned and we only need the EUIs, CAC and the Vendor/Profile IDs. We then use this data in separate RPCs. Theoretically, if we have the AppIDs and the above Vendor/Profile IDs, we can dial the Device Repository and get the End Device Template but this will be done further in the end device creation flow when the user chooses the region/firmware etc (Step 2 of onboarding flow). a. So do we really need to use End Device Templates here? Because, if the QR Code does not have Vendor ID and Model ID, in that case wouldn't return a mostly empty End Device (Template) with just the EUIs and CAC? The way I understood the issue, we only need to parse the QR Code and return the data in a generic format and let the |
There may be other QR codes in the future with additional fields. Also, as we don't have a formal serial number field currently, we probably want to put it in an attribute. End device templates are really designed for this.
See TR005 1.0 spec:
So the TR005 parser should verify it, and after that, it's not of any use anymore.
Yes. So the response would be a |
e7979ef
to
abfb3b7
Compare
abfb3b7
to
c0806b7
Compare
d7eedfb
to
bb942c4
Compare
f06edc0
to
295c928
Compare
Summary
Implement QR Code Parser Service. Closes #4845 .
Changes
qrcode
andqrcodegenerator
package.EntityOnboardingData
message withEndDeviceOnboardingData
as the first type.QRCodeParser
service an implement the server.Testing
Unit tested.
Regressions
I don't expect any.
Notes for Reviewers
qrcode
package intoqrcodegenerator
, so that components don't call the functions separately but dial QRG instead.Checklist
README.md
for the chosen target branch.CHANGELOG.md
.CONTRIBUTING.md
, there are no fixup commits left.