Closed Survensa closed 2 years ago
@Survensa trying to figure out if this is a mandatory requirement or not. At a first glance, supporting a single network (e.g. a single wifi network) sounds workable. Are there spec entries that mandate multiple network support? Could you reference the spec parts that describe minimum requirements here?
This is a intended behavior to simplify the platform driver for now. From the Spec, the minimal value of MaxNetworks can be 1, so it is spec compliance if support only one network.
Problem
The Networks attribute has 1 entry and user tries to add more entries with AddOrUpdateWiFi command, the DUT responds with NetworkingStatus as '2' (BoundsExceeded) in NetworkResponse. Due to which the Networks attribute holds only 1 entry.
In this case, Reorder Network command is send by setting NetworkIndex value as Eg:3. As Networks attribute has only 1 entry it's not possiable to set the NetworkID to the NetworkIndex 3. but still the DUT responded with NetworkIndex '3' and NetworkingStatus '0' (Success) in NetworkResponse.
Questions:
Actual behavior:
./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0
to add WiFinet_idx1./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C507269766174655F455854 matter123 1 0
to add WiFinet_idx2./chip-tool networkcommissioning add-or-update-wi-fi-network hex:7369766172616D2773206950686F6E65 maskmask 1 0
to add WiFinet_idx3./chip-tool networkcommissioning reorder-network hex:47524C50726976617465 3 1 0
to reorder the Network.cmd
./chip-tool networkcommissioning read networks 1 0
to list add three network added.Output log.
/chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C507269766174655F455854 matter123 1 0
[1650381481.251038][44074:44079] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 [1650381481.251102][44074:44079] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 [1650381481.251189][44074:44079] CHIP:TOO: NetworkConfigResponse: { [1650381481.251250][44074:44079] CHIP:TOO: networkingStatus: 2 [1650381481.251289][44074:44079] CHIP:TOO: } [1650381481.251342][44074:44079] CHIP:DMG: ICR moving to [AwaitingDe] [1650381481.251412][44074:44079] CHIP:EM: Sending Standalone Ack for MessageCounter:11373968 on exchange 55916i
./chip-tool networkcommissioning add-or-update-wi-fi-network hex:7369766172616D2773206950686F6E65 maskmask 1 0 [1650381487.889851][44081:44086] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 [1650381487.889909][44081:44086] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 [1650381487.889987][44081:44086] CHIP:TOO: NetworkConfigResponse: { [1650381487.890043][44081:44086] CHIP:TOO: networkingStatus: 2 [1650381487.890079][44081:44086] CHIP:TOO: } [1650381487.890127][44081:44086] CHIP:DMG: ICR moving to [AwaitingDe] [1650381487.890188][44081:44086] CHIP:EM: Sending Standalone Ack for MessageCounter:3375326 on exchange 62297i
./chip-tool networkcommissioning reorder-network hex:47524C50726976617465 3 1 0 [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
./chip-tool networkcommissioning read networks 1 0 [1650381501.447787][44093:44098] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3182776035 [1650381501.447899][44093:44098] CHIP:TOO: Networks: 1 entries
[1650381501.448003][44093:44098] CHIP:TOO: NetworkID: 47524C50726976617465 [1650381501.448037][44093:44098] CHIP:TOO: Connected: FALSE [1650381501.448071][44093:44098] CHIP:TOO: } [1650381501.448221][44093:44098] CHIP:EM: Sending Standalone Ack for MessageCounter:10492805 on exchange 43057i