Skip to content

Commit d5f3db3

Browse files
raju-applerestyled-io[bot]restyled-commits
authored
Modifying the existing DD YAMLs to also include the steps for WiFi-PAF… (project-chip#34651)
* Modifying the exising DD YAMLs to also include the steps for WiFi-PAF feature * Restyle Modifying the existing DD YAMLs to also include the steps for WiFi-PAF… (project-chip#34654) * Restyled by whitespace * Restyled by prettier-yaml --------- Co-authored-by: Restyled.io <commits@restyled.io> --------- Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 91d1a28 commit d5f3db3

7 files changed

+197
-0
lines changed

src/app/tests/suites/certification/PICS.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ PICS:
140140
- label: "Does the commissioner support Discovery Capability over SoftAP?"
141141
id: MCORE.DD.DISCOVERY_SOFTAP
142142

143+
- label: "Does the commissioner support Discovery Capability over Wifi-PAF?"
144+
id: MCORE.DD.DISCOVERY_PAF
145+
143146
- label: "Does the DUT support Standard Commissioning Flow?"
144147
id: MCORE.DD.STANDARD_COMM_FLOW
145148

src/app/tests/suites/certification/Test_TC_DD_2_2.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,29 @@ tests:
181181
SoftAP commissioning not currently supported on TH=all-clusters-app
182182
disabled: true
183183

184+
- label:
185+
"Step 3c: TH is configured with the default channel to be Channel 6 in
186+
2.4GHz. If TH has a 5GHz Wi-Fi radio, TH is configured with an
187+
additional channel list that includes Channel 44 and the operating
188+
channel Wi-Fi network the DUT is on if it is operating in non-ETSI
189+
regulatory domains and includes Channel 149 if it is operating in ETSI
190+
regulatory domains."
191+
PICS: MCORE.DD.DISCOVERY_PAF
192+
verification: |
193+
TH must start sending Wi-Fi PAF Publish Frames on the default channel and the channel list.
194+
2.4g - $sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=2437
195+
5g - FCC - $sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=5220
196+
5g ETSI - $sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=5745
197+
disabled: true
198+
199+
- label: "Step 3d: DUT starts Wi-Fi PAF scan in its commissioning channel"
200+
PICS: MCORE.DD.DISCOVERY_PAF
201+
verification: |
202+
DUT must find TH and provide onboarding data to for validation. Pass Criteria: DUT is able to report the Onboarding payload as set on TH
203+
204+
$ sudo ./chip-tool pairing wifipaf-wifi 1 n_m_2g nxp12345 20202021 3840
205+
disabled: true
206+
184207
- label: "Step 4a: DUT scans using Wi-Fi in background"
185208
PICS: MCORE.DD.DISCOVERY_SOFTAP
186209
verification: |

src/app/tests/suites/certification/Test_TC_DD_3_11.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,46 @@ tests:
171171
[1651105530.973215][27371:27371] CHIP:DIS: Updating services using commissioning mode 0
172172
disabled: true
173173

174+
- label: "Step 2d: Scan the QR code from the previous step using the DUT."
175+
PICS: MCORE.DD.DISCOVERY_PAF
176+
verification: |
177+
1. User has a QR code to pass into DUT
178+
179+
# ./chip-all-clusters-app --wifi --wifipaf --custom-flow 0 --capabilities 8
180+
[1719392550.248867][1563:1563] CHIP:SVR: SetupQRCode: [MT:-24J0M3810KA0648G00]
181+
[1719392550.248883][1563:1563] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
182+
[1719392550.248892][1563:1563] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0M3810KA0648G00
183+
[1719392550.248911][1563:1563] CHIP:SVR: Manual pairing code: [34970112332]
184+
disabled: true
185+
186+
- label: "Step 2e: Verify the QR code has been scanned successfully."
187+
PICS: MCORE.DD.SCAN_QR_CODE
188+
verification: |
189+
1. Verify the QR code has been scanned successfully.
190+
191+
$ sudo ./chip-tool payload parse-setup-payload MT:-24J0M3810KA0648G00
192+
[1719392883.120482][28468:28468] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_tool_kvs
193+
[1719392883.120687][28468:28468] CHIP:SPL: Parsing base38Representation: MT:-24J0M3810KA0648G00
194+
[1719392883.120839][28468:28468] CHIP:SPL: Version: 0
195+
[1719392883.120859][28468:28468] CHIP:SPL: VendorID: 65521
196+
[1719392883.120874][28468:28468] CHIP:SPL: ProductID: 32769
197+
[1719392883.120890][28468:28468] CHIP:SPL: Custom flow: 0 (STANDARD)
198+
[1719392883.120910][28468:28468] CHIP:SPL: Discovery Bitmask: 0x08 (Wi-Fi PAF)
199+
[1719392883.120928][28468:28468] CHIP:SPL: Long discriminator: 3840 (0xf00)
200+
[1719392883.120944][28468:28468] CHIP:SPL: Passcode: 20202021
201+
disabled: true
202+
203+
- label:
204+
"Step 2f: Using the DUT, parse the TH’s QR code and follow any steps
205+
needed for the Commissioner/Commissionee to complete the commissioning
206+
process using Wi-Fi PAF"
207+
PICS: MCORE.DD.DISCOVERY_PAF
208+
verification: |
209+
1. DUT parses QR code and DUT commissions TH to the Matter network
210+
211+
$ sudo ./chip-tool pairing code-wifi 1 n_m_2g nxp12345 MT:-24J0M3810KA0648G00
212+
disabled: true
213+
174214
- label:
175215
"Step 3a: Standard Commissioning Flow: Use a Commissionee with a QR
176216
code that has the Custom Flow field set to 0 and supports SoftAP for

src/app/tests/suites/certification/Test_TC_DD_3_12.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,54 @@ tests:
169169
[1657234324847] [31475:16824564] CHIP: [TOO] Device commissioning completed with success
170170
disabled: true
171171

172+
- label:
173+
"Step 2e: User-Intent Commissioning Flow: Use a Commissionee with a QR
174+
code that has the Custom Flow field set to 1 and supports Wi-Fi PAF
175+
for its Discovery Capability. "
176+
PICS: MCORE.DD.DISCOVERY_PAF
177+
verification: |
178+
User has a QR code to pass into DUT.
179+
# ./chip-all-clusters-app --wifi --wifipaf --custom-flow 1 --capabilities 8
180+
[1719393010.693198][1592:1592] CHIP:SVR: SetupQRCode: [MT:-24J0IJ910KA0648G00]
181+
[1719393010.693213][1592:1592] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
182+
[1719393010.693222][1592:1592] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0IJ910KA0648G00
183+
[1719393010.693246][1592:1592] CHIP:SVR: Manual pairing code: [749701123365521327694]
184+
disabled: true
185+
186+
- label: "Step 2f: Scan the QR code from the previous step using the DUT."
187+
PICS: MCORE.DD.SCAN_QR_CODE
188+
verification: |
189+
Verify the QR code has been scanned successfully.
190+
disabled: true
191+
192+
- label: "Step 2g: DUT parses QR code."
193+
PICS: MCORE.DD.DISCOVERY_PAF
194+
verification: |
195+
Verify DUT has parsed the QR code. Verify TH has not been commissioned to the Matter network.
196+
$ sudo ./chip-tool payload parse-setup-payload MT:-24J0IJ910KA0648G00
197+
[1719393067.811966][28514:28514] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_tool_kvs
198+
[1719393067.812195][28514:28514] CHIP:DL: writing settings to file (/tmp/chip_tool_kvs-PRUpuW)
199+
[1719393067.812351][28514:28514] CHIP:DL: renamed tmp file to file (/tmp/chip_tool_kvs)
200+
[1719393067.812455][28514:28514] CHIP:SPL: Parsing base38Representation: MT:-24J0IJ910KA0648G00
201+
[1719393067.812626][28514:28514] CHIP:SPL: Version: 0
202+
[1719393067.812647][28514:28514] CHIP:SPL: VendorID: 65521
203+
[1719393067.812664][28514:28514] CHIP:SPL: ProductID: 32769
204+
[1719393067.812679][28514:28514] CHIP:SPL: Custom flow: 1 (USER ACTION REQUIRED)
205+
[1719393067.812698][28514:28514] CHIP:SPL: Discovery Bitmask: 0x08 (Wi-Fi PAF)
206+
[1719393067.812714][28514:28514] CHIP:SPL: Long discriminator: 3840 (0xf00)
207+
[1719393067.812729][28514:28514] CHIP:SPL: Passcode: 20202021
208+
disabled: true
209+
210+
- label:
211+
"Step 2h: User should follow any TH-specific steps for putting the TH
212+
Commissionee device into commissioning mode and to complete the
213+
commissioning process using Wi-Fi PAF."
214+
PICS: MCORE.DD.DISCOVERY_PAF
215+
verification: |
216+
DUT commissions TH to the Matter network.
217+
$ sudo ./chip-tool pairing code-wifi 1 n_m_2g nxp12345 MT:-24J0IJ910KA0648G00
218+
disabled: true
219+
172220
- label:
173221
"Step 3a: User-Intent Commissioning Flow: Use a Commissionee with a QR
174222
code that has the Custom Flow field set to 1 and supports SoftAP for

src/app/tests/suites/certification/Test_TC_DD_3_13.yaml

+53
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,59 @@ tests:
182182
[1657235198856] [31506:16834043] CHIP: [TOO] Device commissioning completed with success
183183
disabled: true
184184

185+
- label:
186+
"Step 2e: Custom Commissioning Flow: Use a Commissionee with a QR code
187+
that has the Custom Flow field set to 2 and supports Wi-Fi PAF for its
188+
Discovery Capability. Commissionee is NOT in commissioning mode.
189+
Ensure the Version bit string follows the current Matter spec.
190+
documentation."
191+
PICS: MCORE.DD.DISCOVERY_PAF
192+
verification: |
193+
1. User has a QR code to pass into DUT.
194+
# ./chip-all-clusters-app --wifi --wifipaf --custom-flow 2 --capabilities 8
195+
[1719393349.405047][1623:1623] CHIP:SVR: SetupQRCode: [MT:-24J0EZA10KA0648G00]
196+
[1719393349.405062][1623:1623] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
197+
[1719393349.405071][1623:1623] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0EZA10KA0648G00
198+
[1719393349.405095][1623:1623] CHIP:SVR: Manual pairing code: [749701123365521327694]
199+
disabled: true
200+
201+
- label: "Step 2f: Scan the QR code from the previous step using the DUT."
202+
PICS: MCORE.DD.SCAN_QR_CODE
203+
verification: |
204+
1. Verify the QR code has been scanned successfully.
205+
disabled: true
206+
207+
- label: "Step 2g: DUT parses QR code."
208+
PICS: MCORE.DD.DISCOVERY_PAF
209+
verification: |
210+
1. Verify DUT has parsed the QR code. Verify TH has not been commissioned to the Matter network.
211+
$ sudo ./chip-tool payload parse-setup-payload MT:-24J0EZA10KA0648G00
212+
CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_tool_kvs
213+
CHIP:DL: writing settings to file (/tmp/chip_tool_kvs-UQIGvf)
214+
CHIP:DL: renamed tmp file to file (/tmp/chip_tool_kvs)
215+
CHIP:SPL: Parsing base38Representation: MT:-24J0EZA10KA0648G00
216+
CHIP:SPL: Version: 0
217+
CHIP:SPL: VendorID: 65521
218+
CHIP:SPL: ProductID: 32769
219+
CHIP:SPL: Custom flow: 2 (CUSTOM)
220+
CHIP:SPL: Discovery Bitmask: 0x08 (Wi-Fi PAF)
221+
CHIP:SPL: Long discriminator: 3840 (0xf00)
222+
CHIP:SPL: Passcode: 20202021
223+
224+
disabled: true
225+
226+
- label:
227+
"Step 2h: User should follow any TH-specific steps, unless the DUT has
228+
alternative means to guide the user to successful commissioning, for
229+
putting the TH Commissionee into commissioning mode, for triggering
230+
the DUT Commissioner for commissioning, and for completing the
231+
commissioning process using BLE."
232+
PICS: MCORE.DD.DISCOVERY_PAF
233+
verification: |
234+
1. DUT commissions TH to the Matter network.
235+
$ sudo ./chip-tool pairing code-wifi 1 n_m_2g nxp12345 MT:-24J0EZA10KA0648G00
236+
disabled: true
237+
185238
- label:
186239
"Step 3a: Custom Commissioning Flow: Use a Commissionee with a QR code
187240
that has the Custom Flow field set to 2 and supports SoftAP for its

src/app/tests/suites/certification/Test_TC_DD_3_14.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,35 @@ tests:
212212
Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:50: CHIP Error 0x0000002F: Invalid argument
213213
disabled: true
214214

215+
- label:
216+
"Step 4c: Using the QR code from Step 1, ensure the TH’s Discovery
217+
Capability bit string is NOT set to Wi-Fi PAF for discovery (i.e. set
218+
to OnNetwork discovery capability)"
219+
PICS: MCORE.DD.DISCOVERY_PAF
220+
verification: |
221+
User has a QR code generated to pass into DUT. Using the example provided above, the payload would be "MT:-24J029Q00KA0648G00".
222+
$ ./out/all-clusters-app/chip-all-clusters-app --version 0 --vendor-id 0xFFF1 --product-id 0x8001 --custom-flow 2 --capabilities 4 --discriminator 3840 --passcode 20202021
223+
[1657235470.970680][371041:371041] CHIP:DL: Device Configuration:
224+
[1657235470.970772][371041:371041] CHIP:DL: Serial Number: (not set)
225+
[1657235470.970811][371041:371041] CHIP:DL: Vendor Id: 65521 (0xFFF1)
226+
[1657235470.970845][371041:371041] CHIP:DL: Product Id: 32769 (0x8001)
227+
[1657235470.970892][371041:371041] CHIP:DL: Hardware Version: 0
228+
[1657235470.970929][371041:371041] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
229+
[1657235470.970984][371041:371041] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
230+
[1657235470.971031][371041:371041] CHIP:DL: Manufacturing Date: (not set)
231+
[1657235470.971095][371041:371041] CHIP:DL: Device Type: 65535 (0xFFFF)
232+
[1657235470.971147][371041:371041] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ====
233+
[1657235470.971199][371041:371041] CHIP:SVR: SetupQRCode: [MT:-24J029Q00KA0648G00]
234+
[1657235470.971258][371041:371041] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
235+
[1657235470.971293][371041:371041] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J029Q00KA0648G00"
236+
disabled: true
237+
238+
- label: "Step 4d: Scan/read the QR code of the TH device using the DUT"
239+
PICS: MCORE.DD.DISCOVERY_PAF
240+
verification: |
241+
If TH Commissionee’s Discovery Capabilities do not support Wi-Fi PAF, ensure that the DUT commissions the TH onto the Matter network over a capability that is NOT BLE. In this example, over OnNetwork.
242+
disabled: true
243+
215244
- label:
216245
"Step 5a: Prefix: Using the QR code from Step 1, generate a new QR
217246
code but substituting out the current Prefix with an invalid Prefix

src/app/tests/suites/certification/ci-pics-values

+1
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ BIND.C=0
10931093

10941094
# Device Discovery
10951095
MCORE.DD.DISCOVERY_SOFTAP=0
1096+
MCORE.DD.DISCOVERY_PAF=0
10961097
MCORE.DD.CHIP_DEV=1
10971098
MCORE.DD.DEV_LOCK=1
10981099
MCORE.DD.DEV_BARRIER=1

0 commit comments

Comments
 (0)