Skip to content

Commit a263fe1

Browse files
committed
Modifying the exising DD YAMLs to also include the steps for WiFi-PAF feature
1 parent ccd8da9 commit a263fe1

File tree

7 files changed

+174
-0
lines changed

7 files changed

+174
-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

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

184+
- label: "Step 3c: TH is configured with the default channel to be Channel 6 in 2.4GHz. If TH has a 5GHz Wi-Fi radio, TH is configured with an additional channel list that includes Channel 44 and the operating channel Wi-Fi network the DUT is on if it is operating in non-ETSI regulatory domains and includes Channel 149 if it is operating in ETSI regulatory domains."
185+
PICS: MCORE.DD.DISCOVERY_PAF
186+
verification: |
187+
TH must start sending Wi-Fi PAF Publish Frames on the default channel and the channel list.
188+
2.4g - $sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=2437
189+
5g - FCC - $sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=5220
190+
5g ETSI - $sudo ./chip-all-clusters-app --wifi --wifipaf freq_list=5745
191+
disabled: true
192+
193+
- label:
194+
"Step 3d: DUT starts Wi-Fi PAF scan in its commissioning channel"
195+
PICS: MCORE.DD.DISCOVERY_PAF
196+
verification: |
197+
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
198+
199+
$ sudo ./chip-tool pairing wifipaf-wifi 1 n_m_2g nxp12345 20202021 3840
200+
disabled: true
201+
184202
- label: "Step 4a: DUT scans using Wi-Fi in background"
185203
PICS: MCORE.DD.DISCOVERY_SOFTAP
186204
verification: |

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

+37
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,43 @@ 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: "Step 2f: Using the DUT, parse the TH’s QR code and follow any steps needed for the Commissioner/Commissionee to complete the commissioning process using Wi-Fi PAF"
204+
PICS: MCORE.DD.DISCOVERY_PAF
205+
verification: |
206+
1. DUT parses QR code and DUT commissions TH to the Matter network
207+
208+
$ sudo ./chip-tool pairing code-wifi 1 n_m_2g nxp12345 MT:-24J0M3810KA0648G00
209+
disabled: true
210+
174211
- label:
175212
"Step 3a: Standard Commissioning Flow: Use a Commissionee with a QR
176213
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

+46
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,52 @@ 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 code that has the Custom Flow field set to 1 and supports Wi-Fi PAF for its Discovery Capability. "
174+
PICS: MCORE.DD.DISCOVERY_PAF
175+
verification: |
176+
User has a QR code to pass into DUT.
177+
# ./chip-all-clusters-app --wifi --wifipaf --custom-flow 1 --capabilities 8
178+
[1719393010.693198][1592:1592] CHIP:SVR: SetupQRCode: [MT:-24J0IJ910KA0648G00]
179+
[1719393010.693213][1592:1592] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
180+
[1719393010.693222][1592:1592] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0IJ910KA0648G00
181+
[1719393010.693246][1592:1592] CHIP:SVR: Manual pairing code: [749701123365521327694]
182+
disabled: true
183+
184+
- label:
185+
"Step 2f: Scan the QR code from the previous step using the DUT."
186+
PICS: MCORE.DD.SCAN_QR_CODE
187+
verification: |
188+
Verify the QR code has been scanned successfully.
189+
disabled: true
190+
191+
- label:
192+
"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 Commissionee device into commissioning mode and to complete the commissioning process using Wi-Fi PAF."
212+
PICS: MCORE.DD.DISCOVERY_PAF
213+
verification: |
214+
DUT commissions TH to the Matter network.
215+
$ sudo ./chip-tool pairing code-wifi 1 n_m_2g nxp12345 MT:-24J0IJ910KA0648G00
216+
disabled: true
217+
172218
- label:
173219
"Step 3a: User-Intent Commissioning Flow: Use a Commissionee with a QR
174220
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

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

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

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

215+
- label: "Step 4c: Using the QR code from Step 1, ensure the TH’s Discovery Capability bit string is NOT set to Wi-Fi PAF for discovery (i.e. set to OnNetwork discovery capability)"
216+
PICS: MCORE.DD.DISCOVERY_PAF
217+
verification: |
218+
User has a QR code generated to pass into DUT. Using the example provided above, the payload would be "MT:-24J029Q00KA0648G00".
219+
$ ./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
220+
[1657235470.970680][371041:371041] CHIP:DL: Device Configuration:
221+
[1657235470.970772][371041:371041] CHIP:DL: Serial Number: (not set)
222+
[1657235470.970811][371041:371041] CHIP:DL: Vendor Id: 65521 (0xFFF1)
223+
[1657235470.970845][371041:371041] CHIP:DL: Product Id: 32769 (0x8001)
224+
[1657235470.970892][371041:371041] CHIP:DL: Hardware Version: 0
225+
[1657235470.970929][371041:371041] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
226+
[1657235470.970984][371041:371041] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
227+
[1657235470.971031][371041:371041] CHIP:DL: Manufacturing Date: (not set)
228+
[1657235470.971095][371041:371041] CHIP:DL: Device Type: 65535 (0xFFFF)
229+
[1657235470.971147][371041:371041] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ====
230+
[1657235470.971199][371041:371041] CHIP:SVR: SetupQRCode: [MT:-24J029Q00KA0648G00]
231+
[1657235470.971258][371041:371041] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
232+
[1657235470.971293][371041:371041] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J029Q00KA0648G00"
233+
disabled: true
234+
235+
- label: "Step 4d: Scan/read the QR code of the TH device using the DUT"
236+
PICS: MCORE.DD.DISCOVERY_PAF
237+
verification: |
238+
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.
239+
disabled: true
240+
215241
- label:
216242
"Step 5a: Prefix: Using the QR code from Step 1, generate a new QR
217243
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
@@ -1092,6 +1092,7 @@ BIND.C=0
10921092

10931093
# Device Discovery
10941094
MCORE.DD.DISCOVERY_SOFTAP=0
1095+
MCORE.DD.DISCOVERY_PAF=0
10951096
MCORE.DD.CHIP_DEV=1
10961097
MCORE.DD.DEV_LOCK=1
10971098
MCORE.DD.DEV_BARRIER=1

0 commit comments

Comments
 (0)