|
| 1 | +# Copyright (c) 2021 Project CHIP Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: 7.3.11. [TC-DD-3.11] Commissioning Flow - QR Code [DUT - Commissioner] |
| 16 | + |
| 17 | +config: |
| 18 | + nodeId: 0x12344321 |
| 19 | + cluster: "Basic" |
| 20 | + endpoint: 0 |
| 21 | + |
| 22 | +tests: |
| 23 | + - label: |
| 24 | + "Version: Use a QR code from a commissionee that has their QR code |
| 25 | + Version bit string set to 000" |
| 26 | + verification: |
| 27 | + "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 |
| 28 | + -cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-25 23:28:06 matter-te-6 |
| 29 | + chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-25 |
| 30 | + 23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode: |
| 31 | + [MT:-24J042C00KA0648G00]" |
| 32 | + disabled: true |
| 33 | + |
| 34 | + - label: |
| 35 | + "Scan the QR code from the previous step using the DUT. Follow any |
| 36 | + manufacturer-specific steps needed for the Commissioner/Commissionee |
| 37 | + to complete the commissioning process." |
| 38 | + verification: |
| 39 | + "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool |
| 40 | + pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1645836234938] |
| 41 | + [9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0 |
| 42 | + Cluster=0x0000_0030 Command=0x0000_0005 [1645836234938] |
| 43 | + [9239:26087760] CHIP: [CTL] Received CommissioningComplete response |
| 44 | + [1645836234938] [9239:26087760] CHIP: [CTL] Rendezvous cleanup |
| 45 | + [1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning |
| 46 | + completed with success Device TH: |
| 47 | + ./out/all-clusters-app/chip-all-clusters-app ... |
| 48 | + [1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for |
| 49 | + MessageCounter:9602810 on exchange: 9753r |
| 50 | + [1645836235.102654][8174:8174] CHIP:IN: Prepared secure message |
| 51 | + 0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId |
| 52 | + (0, 1) on exchange 9753r with MessageCounter:12855769. |
| 53 | + [1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg |
| 54 | + 0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1) |
| 55 | + at monotonic time: 25637371 msec [1645836235.102836][8174:8174] |
| 56 | + CHIP:DMG: ICR moving to [CommandSen] [1645836235.102863][8174:8174] |
| 57 | + CHIP:DMG: ICR moving to [AwaitingDe] [1645836235.102906][8174:8174] |
| 58 | + CHIP:DL: HandlePlatformSpecificBLEEvent 32784 |
| 59 | + [1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed |
| 60 | + successfully" |
| 61 | + disabled: true |
| 62 | + |
| 63 | + - label: |
| 64 | + "If (PICS_DT_THREAD), Standard Commissioning Flow: Use a QR code from |
| 65 | + a commissionee that has their Custom Flow bit set to 0 and supports |
| 66 | + BLE for its Discovery Capability." |
| 67 | + verification: |
| 68 | + "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 |
| 69 | + -cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-25 23:28:06 matter-te-6 |
| 70 | + chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-25 |
| 71 | + 23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode: |
| 72 | + [MT:-24J042C00KA0648G00]" |
| 73 | + disabled: true |
| 74 | + |
| 75 | + - label: |
| 76 | + "If (PICS_DT_THREAD), Scan the QR code from the previous step using |
| 77 | + the DUT. Follow any steps needed for the Commissioner/Commissionee to |
| 78 | + complete the commissioning process using BLE" |
| 79 | + verification: |
| 80 | + "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool |
| 81 | + pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1645836234938] |
| 82 | + [9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0 |
| 83 | + Cluster=0x0000_0030 Command=0x0000_0005 [1645836234938] |
| 84 | + [9239:26087760] CHIP: [CTL] Received CommissioningComplete response |
| 85 | + [1645836234938] [9239:26087760] CHIP: [CTL] Rendezvous cleanup |
| 86 | + [1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning |
| 87 | + completed with success Device TH: |
| 88 | + ./out/all-clusters-app/chip-all-clusters-app ... |
| 89 | + [1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for |
| 90 | + MessageCounter:9602810 on exchange: 9753r |
| 91 | + [1645836235.102654][8174:8174] CHIP:IN: Prepared secure message |
| 92 | + 0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId |
| 93 | + (0, 1) on exchange 9753r with MessageCounter:12855769. |
| 94 | + [1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg |
| 95 | + 0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1) |
| 96 | + at monotonic time: 25637371 msec [1645836235.102836][8174:8174] |
| 97 | + CHIP:DMG: ICR moving to [CommandSen] [1645836235.102863][8174:8174] |
| 98 | + CHIP:DMG: ICR moving to [AwaitingDe] [1645836235.102906][8174:8174] |
| 99 | + CHIP:DL: HandlePlatformSpecificBLEEvent 32784 |
| 100 | + [1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed |
| 101 | + successfully" |
| 102 | + disabled: true |
| 103 | + |
| 104 | + - label: |
| 105 | + "Standard Commissioning Flow: Use a QR code from a commissionee that |
| 106 | + has their Custom Flow bit set to 0 and supports IP Network for its |
| 107 | + Discovery Capability." |
| 108 | + verification: |
| 109 | + "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 |
| 110 | + -cf 0 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:07:29 matter-te-6 |
| 111 | + chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-26 |
| 112 | + 03:07:29 matter-te-6 chip.SPL[22108] INFO SetupQRCode: |
| 113 | + [MT:-24J0AFN00KA0648G00]" |
| 114 | + disabled: true |
| 115 | + |
| 116 | + - label: |
| 117 | + "Scan the QR code from the previous step using the DUT. Follow any |
| 118 | + steps needed for the Commissioner/Commissionee to complete the |
| 119 | + commissioning process using IP Network" |
| 120 | + verification: |
| 121 | + "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool |
| 122 | + pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1646261423084] |
| 123 | + [53218:29382487] CHIP: [CTL] Received CommissioningComplete response |
| 124 | + [1646261423084] [53218:29382487] CHIP: [CTL] Rendezvous cleanup |
| 125 | + [1646261423084] [53218:29382487] CHIP: [TOO] Device commissioning |
| 126 | + completed with success Device TH: |
| 127 | + ./out/all-clusters-app/chip-all-clusters-app ... |
| 128 | + [1646261423.249620][28366:28366] CHIP:DMG: ICR moving to [AwaitingDe] |
| 129 | + [1646261423.249687][28366:28366] CHIP:DL: |
| 130 | + HandlePlatformSpecificBLEEvent 32784 [1646261423.249738][28366:28366] |
| 131 | + CHIP:SVR: Commissioning completed successfully" |
| 132 | + disabled: true |
| 133 | + |
| 134 | + - label: |
| 135 | + "User-Intent Commissioning Flow: Use a QR code from a commissionee |
| 136 | + that has their Custom Flow bit set to 1 and supports BLE for its |
| 137 | + Discovery Capability. Place the commissionee into commissioning mode |
| 138 | + according to the devices specified instructions in its pairing hint." |
| 139 | + verification: |
| 140 | + "BLOCKED chip-all-clusters-app does not currently support User-Intent |
| 141 | + commissioning flow chip-device-ctrl > setup-payload generate -vr 0 -vi |
| 142 | + 65521 -pi 32769 -cf 1 -dc 2 -dv 3840 -ps 20202021 2022-02-26 03:17:50 |
| 143 | + matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] |
| 144 | + 2022-02-26 03:17:50 matter-te-6 chip.SPL[22108] INFO SetupQRCode: |
| 145 | + [MT:-24J00ID00KA0648G00]" |
| 146 | + disabled: true |
| 147 | + |
| 148 | + - label: |
| 149 | + "Scan the QR code from the previous step using the DUT. Follow any |
| 150 | + steps needed for the Commissioner/Commissionee to complete the |
| 151 | + commissioning process using BLE" |
| 152 | + verification: |
| 153 | + "BLOCKED chip-all-clusters-app does not currently support User-Intent |
| 154 | + commissioning flow" |
| 155 | + disabled: true |
| 156 | + |
| 157 | + - label: |
| 158 | + "User-Intent Commissioning Flow: Use a QR code from a commissionee |
| 159 | + that has their Custom Flow bit set to 1 and supports IP Network for |
| 160 | + its Discovery Capability. Place the commissionee into Commissioning |
| 161 | + Mode according to the devices specified instructions in its pairing |
| 162 | + hint." |
| 163 | + verification: |
| 164 | + "BLOCKED chip-all-clusters-app does not currently support User-Intent |
| 165 | + commissioning flow" |
| 166 | + disabled: true |
| 167 | + |
| 168 | + - label: |
| 169 | + "Scan the QR code from the previous step using the DUT. Follow any |
| 170 | + manufacturer-specific steps needed for the Commissioner/Commissionee |
| 171 | + to complete the commissioning process using IP Network" |
| 172 | + verification: |
| 173 | + "BLOCKED chip-all-clusters-app does not currently support User-Intent |
| 174 | + commissioning flow chip-device-ctrl > setup-payload generate -vr 0 -vi |
| 175 | + 65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:19:10 |
| 176 | + matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] |
| 177 | + 2022-02-26 03:19:10 matter-te-6 chip.SPL[22108] INFO SetupQRCode: |
| 178 | + [MT:-24J06VO00KA0648G00]" |
| 179 | + disabled: true |
| 180 | + |
| 181 | + - label: |
| 182 | + "If (PICS_DT_THREAD), Custom Commissioning Flow: Use a QR code from a |
| 183 | + commissionee that has their Custom Flow bit set to 2 and supports BLE |
| 184 | + for its Discovery Capability. Place the commissionee into |
| 185 | + commissioning mode according to the devices specified instructions in |
| 186 | + the given URL." |
| 187 | + verification: |
| 188 | + "BLOCKED chip-all-clusters-app does not currently support Custom |
| 189 | + Commissioning Flow chip-device-ctrl > setup-payload generate -vr 0 -vi |
| 190 | + 65521 -pi 32769 -cf 2 -dc 2 -dv 3840 -ps 20202021 2022-02-26 03:20:27 |
| 191 | + matter-te-6 chip.SPL[22108] INFO Manual pairing code: |
| 192 | + [749701123365521327694] 2022-02-26 03:20:27 matter-te-6 |
| 193 | + chip.SPL[22108] INFO SetupQRCode: [MT:-24J0YXE00KA0648G00]" |
| 194 | + disabled: true |
| 195 | + |
| 196 | + - label: |
| 197 | + "If (PICS_DT_THREAD), Scan the QR code from the previous step using |
| 198 | + the DUT. Follow any manufacturer-specific steps needed for the |
| 199 | + Commissioner/Commissionee to complete the commissioning process using |
| 200 | + BLE" |
| 201 | + verification: |
| 202 | + "BLOCKED chip-all-clusters-app does not currently support Custom |
| 203 | + Commissioning Flow" |
| 204 | + disabled: true |
| 205 | + |
| 206 | + - label: |
| 207 | + "If (PICS_DT_THREAD), Custom Commissioning Flow: Use a QR code from a |
| 208 | + commissionee that has their Custom Flow bit set to 2 and supports IP |
| 209 | + Network for its Discovery Capability. Place the commissionee into |
| 210 | + commissioning mode according to the devices specified instructions in |
| 211 | + the given URL." |
| 212 | + verification: |
| 213 | + "BLOCKED chip-all-clusters-app does not currently support Custom |
| 214 | + Commissioning Flow chip-device-ctrl > setup-payload generate -vr 0 -vi |
| 215 | + 65521 -pi 32769 -cf 2 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:22:27 |
| 216 | + matter-te-6 chip.SPL[22108] INFO Manual pairing code: |
| 217 | + [749701123365521327694] 2022-02-26 03:22:27 matter-te-6 |
| 218 | + chip.SPL[22108] INFO SetupQRCode: [MT:-24J029Q00KA0648G00]" |
| 219 | + disabled: true |
| 220 | + |
| 221 | + - label: |
| 222 | + "If (PICS_DT_THREAD), Scan the QR code from the previous step using |
| 223 | + the DUT. Follow any manufacturer-specific steps needed for the |
| 224 | + Commissioner/Commissionee to complete the commissioning process using |
| 225 | + IP Network" |
| 226 | + verification: |
| 227 | + "BLOCKED chip-all-clusters-app does not currently support Custom |
| 228 | + Commissioning Flow" |
| 229 | + disabled: true |
0 commit comments