| # Copyright (c) 2021 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default |
| |
| name: |
| 12.4.18. [TC-CNET-4.20] [Wi-Fi] Verification for commands check [DUT-Client] |
| |
| PICS: |
| - CNET.C.F00 |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: "DUT sends the ScanNetwork command to the TH" |
| PICS: CNET.C.C00.Tx |
| verification: | |
| ./chip-tool networkcommissioning scan-networks 1 0 --Ssid null --Breadcrumb 1 |
| |
| Verify ScanNetworksResponse status on the TH/All-cluster-app Log: |
| |
| [1653475026.012811][29937:29942] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 |
| [1653475026.012942][29937:29942] CHIP:TOO: ScanNetworksResponse: { |
| [1653475026.012983][29937:29942] CHIP:TOO: networkingStatus: 0 |
| [1653475026.013075][29937:29942] CHIP:TOO: wiFiScanResults: 15 entries |
| [1653475026.013143][29937:29942] CHIP:TOO: [1]: { |
| [1653475026.013169][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.013195][29937:29942] CHIP:TOO: Ssid: 47524C507269766174655F455854 |
| [1653475026.013219][29937:29942] CHIP:TOO: Bssid: E01CFCE4B236 |
| [1653475026.013242][29937:29942] CHIP:TOO: Channel: 11 |
| [1653475026.013264][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.013286][29937:29942] CHIP:TOO: Rssi: -9 |
| [1653475026.013310][29937:29942] CHIP:TOO: } |
| [1653475026.013344][29937:29942] CHIP:TOO: [2]: { |
| [1653475026.013368][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.013390][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.013414][29937:29942] CHIP:TOO: Bssid: C006C3F95EEB |
| [1653475026.013436][29937:29942] CHIP:TOO: Channel: 153 |
| [1653475026.013458][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.013479][29937:29942] CHIP:TOO: Rssi: -52 |
| [1653475026.013500][29937:29942] CHIP:TOO: } |
| [1653475026.013531][29937:29942] CHIP:TOO: [3]: { |
| [1653475026.013556][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.013578][29937:29942] CHIP:TOO: Ssid: |
| [1653475026.013599][29937:29942] CHIP:TOO: Bssid: C606C3F95EEB |
| [1653475026.013621][29937:29942] CHIP:TOO: Channel: 153 |
| [1653475026.013642][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.013663][29937:29942] CHIP:TOO: Rssi: -52 |
| [1653475026.013684][29937:29942] CHIP:TOO: } |
| [1653475026.013715][29937:29942] CHIP:TOO: [4]: { |
| [1653475026.013738][29937:29942] CHIP:TOO: Security: 12 |
| [1653475026.013762][29937:29942] CHIP:TOO: Ssid: 7A69676265652D7468726561642D3547487A |
| [1653475026.013784][29937:29942] CHIP:TOO: Bssid: 6C198FC83ABE |
| [1653475026.013806][29937:29942] CHIP:TOO: Channel: 44 |
| [1653475026.013827][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.013848][29937:29942] CHIP:TOO: Rssi: -55 |
| [1653475026.013869][29937:29942] CHIP:TOO: } |
| [1653475026.013900][29937:29942] CHIP:TOO: [5]: { |
| [1653475026.013923][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.013945][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.013967][29937:29942] CHIP:TOO: Bssid: C006C3F95F31 |
| [1653475026.013988][29937:29942] CHIP:TOO: Channel: 48 |
| [1653475026.014029][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.014051][29937:29942] CHIP:TOO: Rssi: -65 |
| [1653475026.014073][29937:29942] CHIP:TOO: } |
| [1653475026.014106][29937:29942] CHIP:TOO: [6]: { |
| [1653475026.014129][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.014151][29937:29942] CHIP:TOO: Ssid: |
| [1653475026.014172][29937:29942] CHIP:TOO: Bssid: C606C3F95F31 |
| [1653475026.014194][29937:29942] CHIP:TOO: Channel: 48 |
| [1653475026.014215][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.014236][29937:29942] CHIP:TOO: Rssi: -65 |
| [1653475026.014257][29937:29942] CHIP:TOO: } |
| [1653475026.014288][29937:29942] CHIP:TOO: [7]: { |
| [1653475026.014311][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.014335][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.014357][29937:29942] CHIP:TOO: Bssid: C006C3F95ECF |
| [1653475026.014379][29937:29942] CHIP:TOO: Channel: 153 |
| [1653475026.014400][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.014421][29937:29942] CHIP:TOO: Rssi: -68 |
| [1653475026.014442][29937:29942] CHIP:TOO: } |
| [1653475026.014473][29937:29942] CHIP:TOO: [8]: { |
| [1653475026.014496][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.014518][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.014540][29937:29942] CHIP:TOO: Bssid: 1027F5374EC7 |
| [1653475026.014561][29937:29942] CHIP:TOO: Channel: 153 |
| [1653475026.014582][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.014603][29937:29942] CHIP:TOO: Rssi: -73 |
| [1653475026.014624][29937:29942] CHIP:TOO: } |
| [1653475026.014654][29937:29942] CHIP:TOO: [9]: { |
| [1653475026.014677][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.014698][29937:29942] CHIP:TOO: Ssid: |
| [1653475026.014720][29937:29942] CHIP:TOO: Bssid: 1627F5374EC7 |
| [1653475026.014741][29937:29942] CHIP:TOO: Channel: 153 |
| [1653475026.014762][29937:29942] CHIP:TOO: WiFiBand: 2 |
| [1653475026.014783][29937:29942] CHIP:TOO: Rssi: -72 |
| [1653475026.014804][29937:29942] CHIP:TOO: } |
| [1653475026.014834][29937:29942] CHIP:TOO: [10]: { |
| [1653475026.014858][29937:29942] CHIP:TOO: Security: 12 |
| [1653475026.014880][29937:29942] CHIP:TOO: Ssid: 4368697031 |
| [1653475026.014902][29937:29942] CHIP:TOO: Bssid: 0C0E764EF1C8 |
| [1653475026.014923][29937:29942] CHIP:TOO: Channel: 11 |
| [1653475026.014944][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.014965][29937:29942] CHIP:TOO: Rssi: -38 |
| [1653475026.014986][29937:29942] CHIP:TOO: } |
| [1653475026.015017][29937:29942] CHIP:TOO: [11]: { |
| [1653475026.015039][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.015061][29937:29942] CHIP:TOO: Ssid: 4368697073657475703442 |
| [1653475026.015083][29937:29942] CHIP:TOO: Bssid: E01CFCEA2A46 |
| [1653475026.015105][29937:29942] CHIP:TOO: Channel: 11 |
| [1653475026.015126][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.015147][29937:29942] CHIP:TOO: Rssi: -34 |
| [1653475026.015168][29937:29942] CHIP:TOO: } |
| [1653475026.015198][29937:29942] CHIP:TOO: [12]: { |
| [1653475026.015221][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.015244][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.015266][29937:29942] CHIP:TOO: Bssid: 6032B197B89E |
| [1653475026.015288][29937:29942] CHIP:TOO: Channel: 11 |
| [1653475026.015309][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.015330][29937:29942] CHIP:TOO: Rssi: -37 |
| [1653475026.015351][29937:29942] CHIP:TOO: } |
| [1653475026.015381][29937:29942] CHIP:TOO: [13]: { |
| [1653475026.015404][29937:29942] CHIP:TOO: Security: 12 |
| [1653475026.015427][29937:29942] CHIP:TOO: Ssid: 7A69676265652D746872656164 |
| [1653475026.015449][29937:29942] CHIP:TOO: Bssid: 6C198FC83ABC |
| [1653475026.015470][29937:29942] CHIP:TOO: Channel: 2 |
| [1653475026.015491][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.015512][29937:29942] CHIP:TOO: Rssi: -40 |
| [1653475026.015533][29937:29942] CHIP:TOO: } |
| [1653475026.015563][29937:29942] CHIP:TOO: [14]: { |
| [1653475026.015587][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.015609][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.015631][29937:29942] CHIP:TOO: Bssid: 1027F5374EC6 |
| [1653475026.015652][29937:29942] CHIP:TOO: Channel: 6 |
| [1653475026.015673][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.015694][29937:29942] CHIP:TOO: Rssi: -53 |
| [1653475026.015714][29937:29942] CHIP:TOO: } |
| [1653475026.015745][29937:29942] CHIP:TOO: [15]: { |
| [1653475026.015768][29937:29942] CHIP:TOO: Security: 8 |
| [1653475026.015789][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475026.015811][29937:29942] CHIP:TOO: Bssid: C006C3F95ECE |
| [1653475026.015832][29937:29942] CHIP:TOO: Channel: 6 |
| [1653475026.015853][29937:29942] CHIP:TOO: WiFiBand: 0 |
| [1653475026.015874][29937:29942] CHIP:TOO: Rssi: -50 |
| [1653475026.015896][29937:29942] CHIP:TOO: } |
| [1653475026.015920][29937:29942] CHIP:TOO: } |
| [1653475026.016050][29937:29942] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1653475026.016114][29937:29942] CHIP:EM: Sending Standalone Ack for MessageCounter:14684023 on exchange 35456i |
| disabled: true |
| |
| - label: "DUT sends the ArmFailSafe command to the TH" |
| verification: | |
| ./chip-tool generalcommissioning arm-fail-safe 60 0 1 0 |
| |
| Verify ArmFailSafeResponse on the TH/All-cluster-app Log: |
| |
| [1650371269.889246][42481:42486] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 |
| [1650371269.889331][42481:42486] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 |
| [1650371269.889471][42481:42486] CHIP:TOO: ArmFailSafeResponse: { |
| [1650371269.889556][42481:42486] CHIP:TOO: errorCode: 0 |
| [1650371269.889607][42481:42486] CHIP:TOO: debugText: |
| [1650371269.889657][42481:42486] CHIP:TOO: } |
| [1650371269.889733][42481:42486] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1650371269.889821][42481:42486] CHIP:EM: Sending Standalone Ack for MessageCounter:2428907 on exchange 60841i |
| disabled: true |
| |
| - label: "DUT sends the AddOrUpdateWiFiNetwork command to the TH" |
| PICS: CNET.C.C03.Tx |
| verification: | |
| ./chip-tool networkcommissioning add-or-update-wi-fi-network-network hex:<your network id in hex> 1 0 |
| |
| Below is an example: |
| |
| ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 |
| |
| Verify NetworkConfigResponse and its arguments on the TH/All-cluster-app Log: |
| |
| [1650371276.622265][42488:42493] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 |
| [1650371276.622332][42488:42493] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 |
| [1650371276.622445][42488:42493] CHIP:TOO: NetworkConfigResponse: { |
| [1650371276.622515][42488:42493] CHIP:TOO: networkingStatus: 0 |
| [1650371276.622557][42488:42493] CHIP:TOO: networkIndex: 0 |
| [1650371276.622595][42488:42493] CHIP:TOO: } |
| [1650371276.622655][42488:42493] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1650371276.622728][42488:42493] CHIP:EM: Sending Standalone Ack for MessageCounter:9593846 on exchange 33754i |
| disabled: true |
| |
| - label: "DUT sends the ConnectNetwork command to the TH" |
| PICS: CNET.C.C06.Tx |
| verification: | |
| ./chip-tool networkcommissioning connect-network hex:<your network id in hex> 1 0 |
| |
| Below is an example: |
| |
| ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 |
| |
| Verify ConnectNetworkResponse and its arguments on the TH/All-cluster-app Log: |
| |
| [1650376217.124606][42876:42881] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 |
| [1650376217.124707][42876:42881] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 |
| [1650376217.124870][42876:42881] CHIP:TOO: ConnectNetworkResponse: { |
| [1650376217.124968][42876:42881] CHIP:TOO: networkingStatus: 0 |
| [1650376217.125030][42876:42881] CHIP:TOO: errorValue: null |
| [1650376217.125087][42876:42881] CHIP:TOO: } |
| [1650376217.125179][42876:42881] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1650376217.125282][42876:42881] CHIP:EM: Sending Standalone Ack for MessageCounter:7901929 on exchange 1050i |
| disabled: true |
| |
| - label: "DUT sends the ReorderNetwork command to the TH" |
| PICS: CNET.C.C08.Tx |
| verification: | |
| ./chip-tool networkcommissioning reorder-network hex:<your network id in hex> 1 0 |
| |
| Below is an example: |
| |
| ./chip-tool networkcommissioning reorder-network hex:47524C50726976617465 3 1 0 |
| |
| Verify NetworkConfigResponse and its arguments on the TH/All-cluster-app Log: |
| |
| [1650381494.820649][44087:44092] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 |
| [1650381494.820749][44087:44092] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 |
| [1650381494.820860][44087:44092] CHIP:TOO: NetworkConfigResponse: { |
| [1650381494.820940][44087:44092] CHIP:TOO: networkingStatus: 0 |
| [1650381494.820979][44087:44092] CHIP:TOO: networkIndex: 3 |
| [1650381494.821016][44087:44092] CHIP:TOO: } |
| [1650381494.821087][44087:44092] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1650381494.821174][44087:44092] CHIP:EM: Sending Standalone Ack for MessageCounter:5656346 on exchange 4849i |
| disabled: true |
| |
| - label: "DUT sends the RemoveNetwork command to the TH" |
| PICS: CNET.C.C04.Tx |
| verification: | |
| ./chip-tool networkcommissioning remove-network hex:<your network id in hex> 1 0 |
| |
| Below is an example: |
| |
| ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 |
| |
| Verify NetworkConfigResponse and its arguments on the TH/All-cluster-app Log: |
| |
| [1650373300.704806][42697:42702] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 |
| [1650373300.704864][42697:42702] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 |
| [1650373300.704957][42697:42702] CHIP:TOO: NetworkConfigResponse: { |
| [1650373300.705012][42697:42702] CHIP:TOO: networkingStatus: 0 |
| [1650373300.705044][42697:42702] CHIP:TOO: networkIndex: 0 |
| [1650373300.705073][42697:42702] CHIP:TOO: } |
| [1650373300.705120][42697:42702] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1650373300.705181][42697:42702] CHIP:EM: Sending Standalone Ack for MessageCounter:9924068 on exchange 3557i |
| disabled: true |