-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Include VID/PID in ECM commissioning Setup Payload #11894
Include VID/PID in ECM commissioning Setup Payload #11894
Conversation
@msandstedt, @jelderton, @andy31415 any review feedback? |
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.
This change pushes into the core communication primitives a lot of policy/choices that should be the responsibility the of client/administrator.
Changes requested:
- Move generation of setup payload from passcode/vid/pid to the client (e.g. chip-tool as an example), since there should be one way to do it from passcode/discriminator/vid/pid in the SDK, not one for initial commissioning examples and one for commissioning window opening/
- Do not force the reading of the VID/PID every time from basic info cluster, but rather let the caller application determine if it's needed (since many/most will actually already know VID/PID at time of openign a window). You can take the code and move it to chip tool command of open commissioning Window, to show how an application could do it if it needed.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@tcarmelveilleux @pan-apple what are the next steps here? This is part of the spec that we should implement in the SDK. |
c574fb9
to
fccb851
Compare
1964680
to
c98a87c
Compare
The latest change makes the reading of VID/PID optional. This would let applications control if they don't need the API to read VID/PID (e.g. if it's already known). This PR is needed for TE7.5, and there's not enough time to implement the suggested changes. |
PR #11894: Size comparison from 46fbb06 to c98a87c Increases above 0.2%:
Increases (2 builds for linux)
Decreases (2 builds for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Review comments seem addressed, and it's been a couple days.
Fast tracking, given this has been been in review for a while and comments seem addressed |
Problem
Change overview
Include VID and PID in the generated Setup Payload when commissioning window is opened using ECM mode.
Testing
Tested using all-cluster-app and chip-tool
chip-tool payload parse-setup-payload
command. Check that VID and PID are part of the code.