| # 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.4. [TC-CNET-4.4] [Wi-Fi] Verification for ScanNetworks command |
| [DUT-Server] |
| |
| PICS: |
| - CNET.S.F00 |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic Information" |
| endpoint: 0 |
| |
| tests: |
| - label: "Commission TH and DUT over BLE to setup the Wi-Fi" |
| verification: | |
| |
| disabled: true |
| |
| - label: |
| "The cluster Identifier 49 (0x0031) in present in the ServerList |
| attribute" |
| verification: | |
| ./chip-tool descriptor read server-list 1 0 |
| |
| Verify tthe "descriptor" on the TH(Chip-tool) Log: |
| |
| [1653474860.462391][29901:29906] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1237231415 |
| [1653474860.462487][29901:29906] CHIP:TOO: server list: 25 entries |
| [1653474860.462524][29901:29906] CHIP:TOO: [1]: 3 |
| [1653474860.462549][29901:29906] CHIP:TOO: [2]: 4 |
| [1653474860.462574][29901:29906] CHIP:TOO: [3]: 29 |
| [1653474860.462598][29901:29906] CHIP:TOO: [4]: 30 |
| [1653474860.462622][29901:29906] CHIP:TOO: [5]: 31 |
| [1653474860.462646][29901:29906] CHIP:TOO: [6]: 40 |
| [1653474860.462670][29901:29906] CHIP:TOO: [7]: 42 |
| [1653474860.462693][29901:29906] CHIP:TOO: [8]: 43 |
| [1653474860.462717][29901:29906] CHIP:TOO: [9]: 44 |
| [1653474860.462741][29901:29906] CHIP:TOO: [10]: 45 |
| [1653474860.462765][29901:29906] CHIP:TOO: [11]: 46 |
| [1653474860.462788][29901:29906] CHIP:TOO: [12]: 48 |
| [1653474860.462812][29901:29906] CHIP:TOO: [13]: 49 |
| [1653474860.462836][29901:29906] CHIP:TOO: [14]: 50 |
| [1653474860.462859][29901:29906] CHIP:TOO: [15]: 51 |
| [1653474860.462883][29901:29906] CHIP:TOO: [16]: 52 |
| [1653474860.462906][29901:29906] CHIP:TOO: [17]: 53 |
| [1653474860.462930][29901:29906] CHIP:TOO: [18]: 54 |
| [1653474860.462954][29901:29906] CHIP:TOO: [19]: 55 |
| [1653474860.462977][29901:29906] CHIP:TOO: [20]: 60 |
| [1653474860.463001][29901:29906] CHIP:TOO: [21]: 62 |
| [1653474860.463024][29901:29906] CHIP:TOO: [22]: 63 |
| [1653474860.463048][29901:29906] CHIP:TOO: [23]: 64 |
| [1653474860.463071][29901:29906] CHIP:TOO: [24]: 65 |
| [1653474860.463095][29901:29906] CHIP:TOO: [25]: 1029 |
| [1653474860.463296][29901:29906] CHIP:EM: Sending Standalone Ack for MessageCounter:10703464 on exchange 2435i |
| disabled: true |
| |
| - label: "The FeatureMap attribute value is 1" |
| verification: | |
| ./chip-tool networkcommissioning read feature-map 1 0 |
| |
| Verify the "feature-map" on the TH(Chip-tool) Log: |
| |
| [1653474932.055513][29920:29925] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 1600858167 |
| [1653474932.055578][29920:29925] CHIP:TOO: FeatureMap: 1 |
| [1653474932.055675][29920:29925] CHIP:EM: Sending Standalone Ack for MessageCounter:1494059 on exchange 5482i |
| disabled: true |
| |
| - label: |
| "TH sends ScanNetworks command to the DUT with the SSID field set |
| to null and Breadcrumb field set to 1" |
| PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx |
| verification: | |
| ./chip-tool networkcommissioning scan-networks 1 0 --Ssid null --Breadcrumb 1 |
| |
| Verify "WiFiScanResults entries and its arguments" on the TH(Chip-tool) 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: |
| "TH reads Breadcumb attribute from the General Commissioning Cluster" |
| verification: | |
| ./chip-tool generalcommissioning read breadcrumb 1 0 |
| |
| Verify "Breadcrumb: 1" on the TH(Chip-tool) Log: |
| |
| [1657190614.753193][5241:5246] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2805642039 |
| [1657190614.753305][5241:5246] CHIP:TOO: Breadcrumb: 1 |
| disabled: true |
| |
| - label: |
| "TH sends ScanNetworks Command to the DUT with SSID field set to |
| PIXIT.CNET.WIFI_ 1ST_ACCESSPOINT _SSID and Breadcrumb field set to 2" |
| PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx |
| verification: | |
| Below is an example: |
| ./chip-tool networkcommissioning scan-networks 1 0 --Ssid hex:47524C50726976617465 --Breadcrumb 2 |
| |
| Verify "ScanNetworksResponse and its arguments" on the TH(Chip-tool) Log: |
| |
| [1653475824.575642][30076:30081] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 |
| [1653475824.575807][30076:30081] CHIP:TOO: ScanNetworksResponse: { |
| [1653475824.575888][30076:30081] CHIP:TOO: networkingStatus: 0 |
| [1653475824.575966][30076:30081] CHIP:TOO: wiFiScanResults: 1 entries |
| [1653475824.576108][30076:30081] CHIP:TOO: [1]: { |
| [1653475824.576168][30076:30081] CHIP:TOO: Security: 8 |
| [1653475824.576227][30076:30081] CHIP:TOO: Ssid: 47524C50726976617465 |
| [1653475824.576283][30076:30081] CHIP:TOO: Bssid: E01CFCE4B236 |
| [1653475824.576339][30076:30081] CHIP:TOO: Channel: 11 |
| [1653475824.576392][30076:30081] CHIP:TOO: WiFiBand: 0 |
| [1653475824.576445][30076:30081] CHIP:TOO: Rssi: -9 |
| [1653475824.576500][30076:30081] CHIP:TOO: } |
| [1653475824.576560][30076:30081] CHIP:TOO: } |
| [1653475824.576668][30076:30081] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1653475824.576777][30076:30081] CHIP:EM: Sending Standalone Ack for MessageCounter:251134 on exchange 38023i |
| disabled: true |
| |
| - label: |
| "TH reads Breadcumb attribute from the General Commissioning Cluster" |
| verification: | |
| ./chip-tool generalcommissioning read breadcrumb 1 0 |
| |
| Verify "Breadcrumb: 2" on the TH(Chip-tool) Log: |
| |
| [1657197542.352377][5661:5666] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2805642042 |
| [1657197542.352450][5661:5666] CHIP:TOO: Breadcrumb: 2 |
| disabled: true |