-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Fabric-Sync] Implement pair-device command #36508
base: master
Are you sure you want to change the base?
Conversation
PR #36508: Size comparison from 1bdcb74 to 3888c77 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
"Failed to pair non-specified device (0x:" ChipLogFormatX64 ") with error: %" CHIP_ERROR_FORMAT, | ||
ChipLogValueX64(deviceId), err.Format()); | ||
} | ||
else |
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.
Wondering when this case will arise. i.e., commissioning completing successfully without the NodeId matching.
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 PairDeviceCommand registers itself as the delegate to the CommissioningWindowOpener through the PairingManager. In this example, multiple commissions are not supported, so this scenario is not expected to occur.
However, the PairDeviceCommand will receive all OnCommissioningComplete callbacks for all devices, as the API does not limit these callbacks to the registering node. This check serves as an additional safeguard against such cases.
@@ -197,6 +229,10 @@ static CHIP_ERROR AppPlatformHandler(int argc, char ** argv) | |||
{ | |||
return HandleAddDeviceCommand(argc, argv); | |||
} | |||
else if (strcmp(argv[0], "pair-device") == 0) |
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.
Generally speaking why are we adding a new command when you can already do pairing onnetwork ...
? Knowing the answer to this question would really help me review this PR faster as I will know what difference I am trying to look for.
If you added this information to the PR description that would be helpful to anyone else as well
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.
We don't have 'pairing onnetwork' command in fabric-sync since it is not inherited from chip-tool, basically we need to implement all commands we need to do fabric-sync.
This command allow to pair a simulated matter device started on the same machine, then we don't need to use a separate matter device to test fabric-sync, just like what we did in the cert test.
We don't have 'pairing onnetwork' command in fabric-sync since it is not inherited from chip-tool, basically we need to implement all commands we need to do fabric-sync.
This command allow to pair a simulated matter device started on the same machine, then we don't need to use a separate matter device to test fabric-sync, just like what we did in the cert test.