project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.55k stars 2.04k forks source link

[1.0] [TC-OPCREDS-3.2] Fail to verify the value of NOC and ICAC are same in step 22 and 4 #23144

Open mideayanghui opened 2 years ago

mideayanghui commented 2 years ago

Reproduction steps

Prerequisite:
1. There are two TH, one is TH1, another is TH2.
2. One DUT.
Step:
1.Use TH1 to commission DUT:
  $ ./chip-tool pairing ble-wifi 0x2 wifi 12345678 20202021 3840 --trace_decode 1 > th-1.log
  After finished commission, use follow command to open commissioning window:
  $ ./chip-tool  pairing open-commissioning-window 2 1 400 2000 3840
  Save the Manual pairing code: [35170644493]
2. Use TH2 to commission DUT:
  $ ./chip-tool pairing code 3 35170644493  --trace_decode 1  > th-2.log
3. We found that :The DUT is commissioned successfully and can be controlled onoff. But there are no messages about 'InvokeRequestMessage ', So we can't get Verify the NOC and ICAC value during commissioning
 in TH2 Log.
The TH2 log is as below
[1665561605.746139][17384:17389] CHIP:CTL: Sending root certificate to the device
[1665561605.746210][17384:17389] CHIP:DMG: ICR moving to [AddingComm]
[1665561605.746237][17384:17389] CHIP:DMG: ICR moving to [AddedComma]
[1665561605.746630][17384:17389] CHIP:IN: Prepared secure message 0xffffa4012538 to 0xFFFFFFFB00000000 (0)  of type 0x8 and protocolId (0, 1) on exchange 28398i with MessageCounter:174566278.
[1665561605.746670][17384:17389] CHIP:IN: Sending encrypted msg 0xffffa4012538 with MessageCounter:174566278 to 0xFFFFFFFB00000000 (0) at monotonic time: 0000000000FAD1A1 msec
[1665561605.747022][17384:17389] CHIP:DMG: ICR moving to [CommandSen]
[1665561605.747059][17384:17389] CHIP:CTL: Sent root certificate to the device
[1665561605.747416][17384:17389] CHIP:DMG: ICR moving to [AwaitingDe]
[1665561605.747454][17384:17389] CHIP:EM: Sending Standalone Ack for MessageCounter:111034323 on exchange 28397i
[1665561605.747652][17384:17389] CHIP:DMG: >> to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 174566279 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 28685 / Exchange = 28397]
[1665561605.747684][17384:17389] CHIP:DMG: Header Flags =
[1665561605.747703][17384:17389] CHIP:DMG: {
[1665561605.747732][17384:17389] CHIP:DMG:     Exchange (0x03) =
[1665561605.747750][17384:17389] CHIP:DMG:     {
[1665561605.747766][17384:17389] CHIP:DMG:         Initiator = true
[1665561605.747785][17384:17389] CHIP:DMG:         AckMsg = 111034323
[1665561605.747803][17384:17389] CHIP:DMG:     }
[1665561605.747827][17384:17389] CHIP:DMG: }
[1665561605.747844][17384:17389] CHIP:DMG:  
[1665561605.747901][17384:17389] CHIP:DMG: Error: ../../examples/common/tracing/decoder/secure_channel/Decoder.cpp:159: CHIP Error 0x00000003: Incorrect state
0 0xffffb6fdc12a, tag[Anonymous]: 0xffffffff, type: Signed Fixed Point (0x00), value: 13
0 0xffffb6fdc130, tag[Common Profile (4 Bytes)]: 0x0::0x0::0x67ab8600, type: Data (0x10), length: 10, value: 0xffffb6fdc130

[1665561605.747971][17384:17389] CHIP:IN: Prepared secure message 0xffffb6fdd978 to 0xFFFFFFFB00000000 (0)  of type 0x10 and protocolId (0, 0) on exchange 28397i with MessageCounter:174566279.
[1665561605.748004][17384:17389] CHIP:IN: Sending encrypted msg 0xffffb6fdd978 with MessageCounter:174566279 to 0xFFFFFFFB00000000 (0) at monotonic time: 0000000000FAD1A3 msec
[1665561605.748228][17384:17389] CHIP:EM: Flushed pending ack for MessageCounter:111034323 on exchange 28397i
[1665561605.853785][17384:17389] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:111034324 on exchange 28398i
[1665561605.853887][17384:17389] CHIP:EM: Found matching exchange: 28398i, Delegate: 0xffffa4009668
[1665561605.853967][17384:17389] CHIP:EM: Rxd Ack; Removing MessageCounter:174566278 from Retrans Table on exchange 28398i
[1665561605.854025][17384:17389] CHIP:EM: Removed CHIP MessageCounter:174566278 from RetransTable on exchange 28398i
[1665561607.147099][17384:17389] CHIP:DMG: << from UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 111034324 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 57570 / Exchange = 28398]
[1665561607.147245][17384:17389] CHIP:DMG: Header Flags =
[1665561607.147302][17384:17389] CHIP:DMG: {
[1665561607.147388][17384:17389] CHIP:DMG:     Exchange (0x02) =
[1665561607.147443][17384:17389] CHIP:DMG:     {
[1665561607.147586][17384:17389] CHIP:DMG:         AckMsg = 174566278
[1665561607.147641][17384:17389] CHIP:DMG:     }
[1665561607.147713][17384:17389] CHIP:DMG: }
[1665561607.147767][17384:17389] CHIP:DMG:  
[1665561607.147833][17384:17389] CHIP:DMG: Encrypted Payload (67 bytes) =
[1665561607.147886][17384:17389] CHIP:DMG: {
[1665561607.147937][17384:17389] CHIP:DMG:     data = 00e2e000d53f9e06eac0864022a557a198ed1a6f44d08876df9944fae2e63c088973ff8681dc7b72c28b9ba4ca3e918ad1226eff6431e1eb68c422f1235f8f4eabf6bb
[1665561607.147989][17384:17389] CHIP:DMG:     buffer_ptr = 281473433465296
[1665561607.148039][17384:17389] CHIP:DMG: }
[1665561607.148088][17384:17389] CHIP:DMG:  
[1665561607.148176][17384:17389] CHIP:DMG: Additional Fields =
[1665561607.148231][17384:17389] CHIP:DMG: {
[1665561607.148288][17384:17389] CHIP:DMG:     peer_address = UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540
[1665561607.148342][17384:17389] CHIP:DMG: }
[1665561607.148392][17384:17389] CHIP:DMG:  
[1665561607.149112][17384:17389] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:111034325 on exchange 28398i
[1665561607.149199][17384:17389] CHIP:EM: Found matching exchange: 28398i, Delegate: 0xffffa4009668
[1665561607.149262][17384:17389] CHIP:EM: CHIP MessageCounter:174566278 not in RetransTable on exchange 28398i
[1665561607.149347][17384:17389] CHIP:DMG: ICR moving to [ResponseRe]
[1665561607.149453][17384:17389] CHIP:DMG: InvokeResponseMessage =
[1665561607.149512][17384:17389] CHIP:DMG: {
[1665561607.149570][17384:17389] CHIP:DMG:  suppressResponse = false, 
[1665561607.149621][17384:17389] CHIP:DMG:  InvokeResponseIBs =
[1665561607.149689][17384:17389] CHIP:DMG:  [
[1665561607.149742][17384:17389] CHIP:DMG:      InvokeResponseIB =
[1665561607.149810][17384:17389] CHIP:DMG:      {
[1665561607.149863][17384:17389] CHIP:DMG:          CommandStatusIB =
[1665561607.149920][17384:17389] CHIP:DMG:          {
[1665561607.149973][17384:17389] CHIP:DMG:              CommandPathIB =
[1665561607.150028][17384:17389] CHIP:DMG:              {
[1665561607.150086][17384:17389] CHIP:DMG:                  EndpointId = 0x0,
[1665561607.150144][17384:17389] CHIP:DMG:                  ClusterId = 0x3e,
[1665561607.150200][17384:17389] CHIP:DMG:                  CommandId = 0xb,
[1665561607.150251][17384:17389] CHIP:DMG:              },
[1665561607.150316][17384:17389] CHIP:DMG:              
[1665561607.150370][17384:17389] CHIP:DMG:              StatusIB =
[1665561607.150426][17384:17389] CHIP:DMG:              {
[1665561607.150484][17384:17389] CHIP:DMG:                  status = 0x00 (SUCCESS),
[1665561607.150536][17384:17389] CHIP:DMG:              },
[1665561607.150592][17384:17389] CHIP:DMG:              
[1665561607.150644][17384:17389] CHIP:DMG:          },
[1665561607.150707][17384:17389] CHIP:DMG:          
[1665561607.150758][17384:17389] CHIP:DMG:      },
[1665561607.150821][17384:17389] CHIP:DMG:      
[1665561607.150873][17384:17389] CHIP:DMG:  ],
[1665561607.150938][17384:17389] CHIP:DMG:  
[1665561607.150993][17384:17389] CHIP:DMG:  InteractionModelRevision = 1
[1665561607.151042][17384:17389] CHIP:DMG: },
[1665561607.151174][17384:17389] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003E Command=0x0000_000B Status=0x0
[1665561607.151236][17384:17389] CHIP:CTL: Device confirmed that it has received the root certificate
[1665561607.151298][17384:17389] CHIP:CTL: Successfully finished commissioning step 'SendTrustedRootCert'
[1665561607.151350][17384:17389] CHIP:CTL: Commissioning stage next step: 'SendTrustedRootCert' -> 'SendNOC'
[1665561607.151409][17384:17389] CHIP:CTL: Performing next commissioning step 'SendNOC'
[1665561607.151545][17384:17389] CHIP:DMG: ICR moving to [AddingComm]
[1665561607.151626][17384:17389] CHIP:DMG: ICR moving to [AddedComma]
[1665561607.152553][17384:17389] CHIP:IN: Prepared secure message 0xffffa4010928 to 0xFFFFFFFB00000000 (0)  of type 0x8 and protocolId (0, 1) on exchange 28399i with MessageCounter:174566280.
[1665561607.152648][17384:17389] CHIP:IN: Sending encrypted msg 0xffffa4010928 with MessageCounter:174566280 to 0xFFFFFFFB00000000 (0) at monotonic time: 0000000000FAD71F msec
[1665561607.153532][17384:17389] CHIP:DMG: ICR moving to [CommandSen]
[1665561607.153632][17384:17389] CHIP:CTL: Sent operational certificate to the device
[1665561607.153734][17384:17389] CHIP:DMG: ICR moving to [AwaitingDe]
[1665561607.153803][17384:17389] CHIP:EM: Sending Standalone Ack for MessageCounter:111034325 on exchange 28398i
[1665561607.154281][17384:17389] CHIP:DMG: >> to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 174566281 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 28685 / Exchange = 28398]
[1665561607.154368][17384:17389] CHIP:DMG: Header Flags =
[1665561607.154424][17384:17389] CHIP:DMG: {
[1665561607.154507][17384:17389] CHIP:DMG:     Exchange (0x03) =
[1665561607.154563][17384:17389] CHIP:DMG:     {
[1665561607.154611][17384:17389] CHIP:DMG:         Initiator = true
[1665561607.154667][17384:17389] CHIP:DMG:         AckMsg = 111034325
[1665561607.154719][17384:17389] CHIP:DMG:     }
[1665561607.154788][17384:17389] CHIP:DMG: }
[1665561607.154841][17384:17389] CHIP:DMG:  
[1665561607.155065][17384:17389] CHIP:DMG: Error: ../../examples/common/tracing/decoder/secure_channel/Decoder.cpp:159: CHIP Error 0x00000003: Incorrect state
0 0xffffb6fdc12a, tag[Anonymous]: 0xffffffff, type: Signed Fixed Point (0x00), value: 13
0 0xffffb6fdc130, tag[Common Profile (4 Bytes)]: 0x0::0x0::0x67ab8800, type: Data (0x10), length: 10, value: 0xffffb6fdc130

0 0xffffb6fdc149, tag[Fully Qualified (6 Bytes)]: 0x6610::0x9a93::0x247, type: Signed Fixed Point (0x00), value: 5183062527335706245
[1665561607.155244][17384:17389] CHIP:IN: Prepared secure message 0xffffb6fdd978 to 0xFFFFFFFB00000000 (0)  of type 0x10 and protocolId (0, 0) on exchange 28398i with MessageCounter:174566281.
[1665561607.155327][17384:17389] CHIP:IN: Sending encrypted msg 0xffffb6fdd978 with MessageCounter:174566281 to 0xFFFFFFFB00000000 (0) at monotonic time: 0000000000FAD722 msec
[1665561607.155785][17384:17389] CHIP:EM: Flushed pending ack for MessageCounter:111034325 on exchange 28398i
[1665561607.299788][17384:17389] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:111034326 on exchange 28399i
[1665561607.300010][17384:17389] CHIP:EM: Found matching exchange: 28399i, Delegate: 0xffffa403c3b8
[1665561607.300098][17384:17389] CHIP:EM: Rxd Ack; Removing MessageCounter:174566280 from Retrans Table on exchange 28399i
[1665561607.300157][17384:17389] CHIP:EM: Removed CHIP MessageCounter:174566280 from RetransTable on exchange 28399i
[1665561610.346265][17384:17389] CHIP:DMG: << from UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 111034326 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 57570 / Exchange = 28399]
[1665561610.346419][17384:17389] CHIP:DMG: Header Flags =
[1665561610.346477][17384:17389] CHIP:DMG: {
[1665561610.346564][17384:17389] CHIP:DMG:     Exchange (0x02) =
[1665561610.346619][17384:17389] CHIP:DMG:     {
[1665561610.346677][17384:17389] CHIP:DMG:         AckMsg = 174566280
[1665561610.346730][17384:17389] CHIP:DMG:     }
[1665561610.346800][17384:17389] CHIP:DMG: }
[1665561610.346853][17384:17389] CHIP:DMG:  
[1665561610.346918][17384:17389] CHIP:DMG: Encrypted Payload (70 bytes) =
[1665561610.346971][17384:17389] CHIP:DMG: {
[1665561610.347023][17384:17389] CHIP:DMG:     data = 00e2e000d73f9e06a861669d082c12ea9d7b11da9ded5c69d7f68e340c1a2aae5e1674d356087f4fa30913e57743b173073519593a70619d2b427ade773d1b822b1a03cb3a70
[1665561610.347075][17384:17389] CHIP:DMG:     buffer_ptr = 281473433274544
[1665561610.347125][17384:17389] CHIP:DMG: }
[1665561610.347174][17384:17389] CHIP:DMG:  
[1665561610.347262][17384:17389] CHIP:DMG: Additional Fields =
[1665561610.347317][17384:17389] CHIP:DMG: {
[1665561610.347375][17384:17389] CHIP:DMG:     peer_address = UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540
[1665561610.347431][17384:17389] CHIP:DMG: }
[1665561610.347482][17384:17389] CHIP:DMG:  
[1665561610.348123][17384:17389] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:111034327 on exchange 28399i
[1665561610.348278][17384:17389] CHIP:EM: Found matching exchange: 28399i, Delegate: 0xffffa403c3b8
[1665561610.348341][17384:17389] CHIP:EM: CHIP MessageCounter:174566280 not in RetransTable on exchange 28399i
[1665561610.348427][17384:17389] CHIP:DMG: ICR moving to [ResponseRe]
[1665561610.348532][17384:17389] CHIP:DMG: InvokeResponseMessage =
[1665561610.348592][17384:17389] CHIP:DMG: {
[1665561610.348650][17384:17389] CHIP:DMG:  suppressResponse = false, 
[1665561610.348776][17384:17389] CHIP:DMG:  InvokeResponseIBs =
[1665561610.348866][17384:17389] CHIP:DMG:  [
[1665561610.348920][17384:17389] CHIP:DMG:      InvokeResponseIB =
[1665561610.348989][17384:17389] CHIP:DMG:      {
[1665561610.349042][17384:17389] CHIP:DMG:          CommandDataIB =
[1665561610.349098][17384:17389] CHIP:DMG:          {
[1665561610.349151][17384:17389] CHIP:DMG:              CommandPathIB =
[1665561610.349209][17384:17389] CHIP:DMG:              {
[1665561610.349268][17384:17389] CHIP:DMG:                  EndpointId = 0x0,
[1665561610.349325][17384:17389] CHIP:DMG:                  ClusterId = 0x3e,
[1665561610.349381][17384:17389] CHIP:DMG:                  CommandId = 0x8,
[1665561610.349432][17384:17389] CHIP:DMG:              },
[1665561610.349492][17384:17389] CHIP:DMG:              
[1665561610.349546][17384:17389] CHIP:DMG:              CommandFields = 
[1665561610.349601][17384:17389] CHIP:DMG:              {
[1665561610.349661][17384:17389] CHIP:DMG:                  0x0 = 0, 
[1665561610.349719][17384:17389] CHIP:DMG:                  0x1 = 2, 
[1665561610.349775][17384:17389] CHIP:DMG:              },
[1665561610.349826][17384:17389] CHIP:DMG:          },
[1665561610.349890][17384:17389] CHIP:DMG:          
[1665561610.349941][17384:17389] CHIP:DMG:      },
[1665561610.350006][17384:17389] CHIP:DMG:      
[1665561610.350056][17384:17389] CHIP:DMG:  ],
[1665561610.350123][17384:17389] CHIP:DMG:  
[1665561610.350177][17384:17389] CHIP:DMG:  InteractionModelRevision = 1
[1665561610.350227][17384:17389] CHIP:DMG: },
[1665561610.350365][17384:17389] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008
[1665561610.350447][17384:17389] CHIP:CTL: Device returned status 0 on receiving the NOC
[1665561610.350502][17384:17389] CHIP:CTL: Operational credentials provisioned on device 0xffffa400b9b0
[1665561610.350552][17384:17389] CHIP:TOO: Secure Pairing Success
[1665561610.350599][17384:17389] CHIP:TOO: CASE establishment successful
[1665561610.350657][17384:17389] CHIP:CTL: Successfully finished commissioning step 'SendNOC'
[1665561610.350712][17384:17389] CHIP:CTL: Commissioning stage next step: 'SendNOC' -> 'FindOperational'
[1665561610.350773][17384:17389] CHIP:CTL: Performing next commissioning step 'FindOperational'
[1665561610.350826][17384:17389] CHIP:CSM: FindOrEstablishSession: PeerId = [1:0000000000000003]
[1665561610.350879][17384:17389] CHIP:CSM: FindOrEstablishSession: No existing OperationalSessionSetup instance found
[1665561610.350947][17384:17389] CHIP:CTL: OperationalSessionSetup[1:0000000000000003]: State change 1 --> 2
[1665561610.351010][17384:17389] CHIP:DIS: Resolving AA32FAFC936BEE87:0000000000000003 ...
[1665561610.353255][17384:17389] CHIP:DMG: ICR moving to [AwaitingDe]
[1665561610.353377][17384:17389] CHIP:EM: Sending Standalone Ack for MessageCounter:111034327 on exchange 28399i
[1665561610.354106][17384:17389] CHIP:IN: Prepared secure message 0xffffb6fdd978 to 0xFFFFFFFB00000000 (0)  of type 0x10 and protocolId (0, 0) on exchange 28399i with MessageCounter:174566282.
[1665561610.354204][17384:17389] CHIP:IN: Sending encrypted msg 0xffffb6fdd978 with MessageCounter:174566282 to 0xFFFFFFFB00000000 (0) at monotonic time: 0000000000FAE3A1 msec
[1665561610.354803][17384:17389] CHIP:EM: Flushed pending ack for MessageCounter:111034327 on exchange 28399i
[1665561610.355280][17384:17389] CHIP:DL: Avahi resolve found
[1665561610.355399][17384:17389] CHIP:DIS: Node ID resolved for AA32FAFC936BEE87:0000000000000003
[1665561610.355459][17384:17389] CHIP:DIS:  Hostname: AC93C4C15CAE
[1665561610.355517][17384:17389] CHIP:DIS:  IP Address #1: fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae
[1665561610.355567][17384:17389] CHIP:DIS:  Port: 5540
[1665561610.355701][17384:17389] CHIP:DIS:  Mrp Interval idle: 5000 ms
[1665561610.355753][17384:17389] CHIP:DIS:  Mrp Interval active: 300 ms
[1665561610.355800][17384:17389] CHIP:DIS:  TCP Supported: 1
[1665561610.357580][17384:17389] CHIP:DIS: Lookup clearing interface for non LL address
[1665561610.357665][17384:17389] CHIP:DIS: UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540: new best score: 6
[1665561610.357719][17384:17389] CHIP:DIS: Checking node lookup status after 7 ms
[1665561610.357769][17384:17389] CHIP:DIS: Keeping DNSSD lookup active
[1665561610.551079][17384:17389] CHIP:DIS: Checking node lookup status after 200 ms
[1665561610.551206][17384:17389] CHIP:DIS: OperationalSessionSetup[1:0000000000000003]: Updating device address to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae]:5540 while in state 2
[1665561610.551261][17384:17389] CHIP:CTL: OperationalSessionSetup[1:0000000000000003]: State change 2 --> 3
[1665561610.551461][17384:17389] CHIP:IN: SecureSession[0xffffa400ff70]: Allocated Type:2 LSID:57571
[1665561610.551547][17384:17389] CHIP:SC: Initiating session on local FabricIndex 1 from 0x000000000001B669 -> 0x0000000000000003
[1665561610.553210][17384:17389] CHIP:SC: Including MRP parameters
[1665561610.554012][17384:17389] CHIP:DMG: >> to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 187492484 | [Secure Channel  (0) / Certificate Authenticated Session Establishment Sigma '1' (0x30) / Session = 0 / Exchange = 28400]
[1665561610.554108][17384:17389] CHIP:DMG: Header Flags =
[1665561610.554164][17384:17389] CHIP:DMG: {
[1665561610.554235][17384:17389] CHIP:DMG:     Message (0x04) =
[1665561610.554290][17384:17389] CHIP:DMG:     {
[1665561610.554347][17384:17389] CHIP:DMG:         SourceNodeId = FC1E90BCCFA36223
[1665561610.554400][17384:17389] CHIP:DMG:     }
[1665561610.554473][17384:17389] CHIP:DMG:     Exchange (0x05) =
[1665561610.554527][17384:17389] CHIP:DMG:     {
[1665561610.554575][17384:17389] CHIP:DMG:         Initiator = true
[1665561610.554626][17384:17389] CHIP:DMG:         NeedsAck = true
[1665561610.554677][17384:17389] CHIP:DMG:     }
[1665561610.554745][17384:17389] CHIP:DMG: }
[1665561610.554798][17384:17389] CHIP:DMG:  
[1665561610.554864][17384:17389] CHIP:DMG: Encrypted Payload (155 bytes) =
[1665561610.554918][17384:17389] CHIP:DMG: {
[1665561610.554969][17384:17389] CHIP:DMG:     data = 153001207a9e5388e802db31a7541a9881c637f248f2214a968e9e3acf529c455f7b83b52502e3e030032027dbc6afaf59172722afc208a89c8456b8de941d2117d3017682e818ee4c3f0f30044104b3b502fb78b183a8bb760f5506c6eb5703b9ed8884e28d53d06aaa59e7c10a40c67cea59ba0c469dd3f99f095d290392de36a4509d6fbb1605915b766e3fd44b35052501881325022c011818
[1665561610.555021][17384:17389] CHIP:DMG:     buffer_ptr = 281473433274544
[1665561610.555072][17384:17389] CHIP:DMG: }
[1665561610.555121][17384:17389] CHIP:DMG:  
[1665561610.555228][17384:17389] CHIP:DMG: Error: ../../src/lib/core/CHIPTLVReader.cpp:543: CHIP Error 0x00000026: Wrong TLV type
0 0xffffb6fdc4ea, tag[Anonymous]: 0xffffffff, type: Signed Fixed Point (0x00), value: 13
0 0xffffb6fdc4f0, tag[Common Profile (4 Bytes)]: 0x0::0x0::0x67ab8a00, type: Data (0x10), length: 10, value: 0xffffb6fdc4f0

[1665561610.555345][17384:17389] CHIP:IN: Prepared unauthenticated message 0xffffa4012508 to 0x0000000000000000 (0)  of type 0x30 and protocolId (0, 0) on exchange 28400i with MessageCounter:187492484.
[1665561610.555430][17384:17389] CHIP:IN: Sending unauthenticated msg 0xffffa4012508 with MessageCounter:187492484 to 0x0000000000000000 at monotonic time: 0000000000FAE46A msec
[1665561610.555929][17384:17389] CHIP:SC: Sent Sigma1 msg
[1665561610.556000][17384:17389] CHIP:CTL: OperationalSessionSetup[1:0000000000000003]: State change 3 --> 4
[1665561610.640336][17384:17389] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:137549918 on exchange 28400i
[1665561610.640432][17384:17389] CHIP:EM: Found matching exchange: 28400i, Delegate: 0xffffa400d668
[1665561610.640501][17384:17389] CHIP:EM: Rxd Ack; Removing MessageCounter:187492484 from Retrans Table on exchange 28400i
[1665561610.640619][17384:17389] CHIP:EM: Removed CHIP MessageCounter:187492484 from RetransTable on exchange 28400i
[1665561612.513928][17384:17389] CHIP:DMG: << from UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 137549918 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 0 / Exchange = 28400]
[1665561612.514260][17384:17389] CHIP:DMG: Header Flags =
[1665561612.514324][17384:17389] CHIP:DMG: {
[1665561612.514400][17384:17389] CHIP:DMG:     Message (0x01) =
[1665561612.514457][17384:17389] CHIP:DMG:     {
[1665561612.514515][17384:17389] CHIP:DMG:         DestinationNodeId = FC1E90BCCFA36223
[1665561612.514568][17384:17389] CHIP:DMG:     }
[1665561612.514640][17384:17389] CHIP:DMG:     Exchange (0x02) =
[1665561612.514694][17384:17389] CHIP:DMG:     {
[1665561612.514751][17384:17389] CHIP:DMG:         AckMsg = 187492484
[1665561612.514803][17384:17389] CHIP:DMG:     }
[1665561612.514873][17384:17389] CHIP:DMG: }
[1665561612.514927][17384:17389] CHIP:DMG:  
[1665561612.515000][17384:17389] CHIP:DMG: Encrypted Payload (732 bytes) =
[1665561612.515054][17384:17389] CHIP:DMG: {
[1665561612.515107][17384:17389] CHIP:DMG:     data = 010000005fd832082362a3cfbc901efc0631f06e000084e82c0b153001203ada8346f0ab8acecd88bc8cccbd6b5422a04deec89e2f295816bdd25a3d423e25020b7030034104d0f057f2ca714f11d947a87fc596b4ca1322c8c2c17eb5da61bac62285931b0df130742bf44f80c7cedd8cffabc17a526dd53c9eb1df281b9a88481519578f0531044602a783dfc5a84221b898eb1d4ce0708f3adb2009fb783212924afe71df265eb3d67ef0b65b83685238f4495d1515fa678104c94a397006e20829e20943b2122f9da7ce96c10cc09a5d45aa8a80de61f6ff72db66a5a6cef032f909d9c9bfdae8e996cea5c6e3ef1ee39c25477bf627ddd6118c7981300e0313ab9ea1d8dc2df930f8fcd1113bd1eaadd297759e4a19a3fc7b1ce253e68870fc664f265358dd9ebbe063c2c68d76f95b7f6ae89b9b577c898ce3c25a3ccd1f8f9b45b512569964e0e208246f3ec98a6a5051ed71afa167b5736551a7e80562f0f68f70613ae41fbca9f3e0cc428472fbfe943d15704b018071bba3cb08d73524d19092db3793d83f34fc1a30badb2e2538fe311375566457704ffbafa3b6e51e2ba4ae7d54c885cdecfe8a2bdc24b865ff081642a41c9c8446c6306ccbdcb0c318a2cc9800d1aff8516d0bfe718d5d97e62b708c898e47f9a3a1556be13d24aca4a7b6a47797db58ab3f8e395ae0a73d9cf8bd6c41e95990dc7f75e5add89247fdceccdc498daaa1d17a7a25990572eec6e4c830a4cd2949e47123c83410542fdc944bbbdc34407476e6652feeb3cd00457e60d5f6579889d999060ceb8127bbacd287a847717b69737a81baa9ec44b9ba49834b3dd71ea5cc4bd4ce3f4e894da712352b0d90e35da7e07ecd7b47fce41cfaa44f048c4242e1c1b0390ba9eb317a2beda0c1bceba24467fce1e5d177abc507c306f0fb52f124e49e4cf443fd09dcca7bd32f023df345b881c26757628e1f11f55328fe6e2538b01cf96279c2bd64c717aa53cdddf6808ab058261a35052501881325022c011818
[1665561612.515161][17384:17389] CHIP:DMG:     buffer_ptr = 281473433457232
[1665561612.515211][17384:17389] CHIP:DMG: }
[1665561612.515260][17384:17389] CHIP:DMG:  
[1665561612.515350][17384:17389] CHIP:DMG: Additional Fields =
[1665561612.515407][17384:17389] CHIP:DMG: {
[1665561612.515464][17384:17389] CHIP:DMG:     peer_address = UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540
[1665561612.515520][17384:17389] CHIP:DMG: }
[1665561612.515570][17384:17389] CHIP:DMG:  
[1665561612.516357][17384:17389] CHIP:EM: Received message of type 0x31 with protocolId (0, 0) and MessageCounter:137549919 on exchange 28400i
[1665561612.516435][17384:17389] CHIP:EM: Found matching exchange: 28400i, Delegate: 0xffffa400d668
[1665561612.516496][17384:17389] CHIP:EM: CHIP MessageCounter:187492484 not in RetransTable on exchange 28400i
[1665561612.516589][17384:17389] CHIP:SC: Received Sigma2 msg
[1665561612.516667][17384:17389] CHIP:SC: Peer assigned session session ID 28683
[1665561612.526733][17384:17389] CHIP:SC: Found MRP parameters in the message
[1665561612.526875][17384:17389] CHIP:SC: Sending Sigma3
[1665561612.527619][17384:17389] CHIP:EM: Piggybacking Ack for MessageCounter:137549919 on exchange: 28400i
[1665561612.527970][17384:17389] CHIP:IN: Prepared unauthenticated message 0xffffa403ea28 to 0x0000000000000000 (0)  of type 0x32 and protocolId (0, 0) on exchange 28400i with MessageCounter:187492485.
[1665561612.528009][17384:17389] CHIP:IN: Sending unauthenticated msg 0xffffa403ea28 with MessageCounter:187492485 to 0x0000000000000000 at monotonic time: 0000000000FAEC1F msec
[1665561612.528420][17384:17389] CHIP:SC: Sent Sigma3 msg
[1665561612.677238][17384:17389] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:137549920 on exchange 28400i
[1665561612.677332][17384:17389] CHIP:EM: Found matching exchange: 28400i, Delegate: 0xffffa400d668
[1665561612.677411][17384:17389] CHIP:EM: Rxd Ack; Removing MessageCounter:187492485 from Retrans Table on exchange 28400i
[1665561612.677469][17384:17389] CHIP:EM: Removed CHIP MessageCounter:187492485 from RetransTable on exchange 28400i
[1665561616.577075][17384:17389] CHIP:DMG: << from UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 137549920 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 0 / Exchange = 28400]
[1665561616.577233][17384:17389] CHIP:DMG: Header Flags =
[1665561616.577290][17384:17389] CHIP:DMG: {
[1665561616.577365][17384:17389] CHIP:DMG:     Message (0x01) =
[1665561616.577420][17384:17389] CHIP:DMG:     {
[1665561616.577479][17384:17389] CHIP:DMG:         DestinationNodeId = FC1E90BCCFA36223
[1665561616.577532][17384:17389] CHIP:DMG:     }
[1665561616.577606][17384:17389] CHIP:DMG:     Exchange (0x02) =
[1665561616.577660][17384:17389] CHIP:DMG:     {
[1665561616.577717][17384:17389] CHIP:DMG:         AckMsg = 187492485
[1665561616.577770][17384:17389] CHIP:DMG:     }
[1665561616.577841][17384:17389] CHIP:DMG: }
[1665561616.577895][17384:17389] CHIP:DMG:  
[1665561616.577961][17384:17389] CHIP:DMG: Encrypted Payload (34 bytes) =
[1665561616.578014][17384:17389] CHIP:DMG: {
[1665561616.578066][17384:17389] CHIP:DMG:     data = 0100000061d832082362a3cfbc901efc0640f06e000085e82c0b0000000000000000
[1665561616.578119][17384:17389] CHIP:DMG:     buffer_ptr = 281473433355360
[1665561616.578169][17384:17389] CHIP:DMG: }
[1665561616.578219][17384:17389] CHIP:DMG:  
[1665561616.578308][17384:17389] CHIP:DMG: Additional Fields =
[1665561616.578366][17384:17389] CHIP:DMG: {
[1665561616.578425][17384:17389] CHIP:DMG:     peer_address = UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540
[1665561616.578480][17384:17389] CHIP:DMG: }
[1665561616.578530][17384:17389] CHIP:DMG:  
[1665561616.579121][17384:17389] CHIP:EM: Received message of type 0x40 with protocolId (0, 0) and MessageCounter:137549921 on exchange 28400i
[1665561616.579195][17384:17389] CHIP:EM: Found matching exchange: 28400i, Delegate: 0xffffa400d668
[1665561616.579256][17384:17389] CHIP:EM: CHIP MessageCounter:187492485 not in RetransTable on exchange 28400i
[1665561616.579351][17384:17389] CHIP:SC: Success status report received. Session was established
[1665561616.585606][17384:17389] CHIP:SC: SecureSession[0xffffa400ff70]: Moving from state 'kEstablishing' --> 'kActive'
[1665561616.585714][17384:17389] CHIP:IN: SecureSession[0xffffa400ff70]: Activated - Type:2 LSID:57571
[1665561616.585769][17384:17389] CHIP:IN: New secure session activated for device <0000000000000003, 1>, LSID:57571 PSID:28683!
[1665561616.585831][17384:17389] CHIP:CTL: OperationalSessionSetup[1:0000000000000003]: State change 4 --> 5
[1665561616.585955][17384:17389] CHIP:CTL: Successfully finished commissioning step 'FindOperational'
[1665561616.586016][17384:17389] CHIP:CTL: Commissioning stage next step: 'FindOperational' -> 'SendComplete'
[1665561616.586078][17384:17389] CHIP:CTL: Performing next commissioning step 'SendComplete'
[1665561616.586206][17384:17389] CHIP:DMG: ICR moving to [AddingComm]
[1665561616.586275][17384:17389] CHIP:DMG: ICR moving to [AddedComma]
[1665561616.587044][17384:17389] CHIP:IN: Prepared secure message 0xffffa4008b68 to 0x0000000000000003 (1)  of type 0x8 and protocolId (0, 1) on exchange 28401i with MessageCounter:151075039.
[1665561616.587143][17384:17389] CHIP:IN: Sending encrypted msg 0xffffa4008b68 with MessageCounter:151075039 to 0x0000000000000003 (1) at monotonic time: 0000000000FAFBFA msec
[1665561616.587800][17384:17389] CHIP:DMG: ICR moving to [CommandSen]
[1665561616.587987][17384:17389] CHIP:EM: Sending Standalone Ack for MessageCounter:137549921 on exchange 28400i
[1665561616.588503][17384:17389] CHIP:DMG: >> to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 187492486 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 0 / Exchange = 28400]
[1665561616.588592][17384:17389] CHIP:DMG: Header Flags =
[1665561616.588647][17384:17389] CHIP:DMG: {
[1665561616.588764][17384:17389] CHIP:DMG:     Message (0x04) =
[1665561616.588832][17384:17389] CHIP:DMG:     {
[1665561616.588891][17384:17389] CHIP:DMG:         SourceNodeId = FC1E90BCCFA36223
[1665561616.588944][17384:17389] CHIP:DMG:     }
[1665561616.589018][17384:17389] CHIP:DMG:     Exchange (0x03) =
[1665561616.589072][17384:17389] CHIP:DMG:     {
[1665561616.589120][17384:17389] CHIP:DMG:         Initiator = true
[1665561616.589176][17384:17389] CHIP:DMG:         AckMsg = 137549921
[1665561616.589229][17384:17389] CHIP:DMG:     }
[1665561616.589298][17384:17389] CHIP:DMG: }
[1665561616.589352][17384:17389] CHIP:DMG:  
[1665561616.589462][17384:17389] CHIP:DMG: Error: ../../examples/common/tracing/decoder/secure_channel/Decoder.cpp:159: CHIP Error 0x00000003: Incorrect state
0 0xffffb6fdc11a, tag[Anonymous]: 0xffffffff, type: Signed Fixed Point (0x00), value: 11
0 0xffffb6fdc120, tag[Common Profile (4 Bytes)]: 0x0::0x0::0x138df00, type: Data (0x10), length: 9, value: 0xffffb6fdc120

[1665561616.589586][17384:17389] CHIP:IN: Prepared unauthenticated message 0xffffb6fdd968 to 0x0000000000000000 (0)  of type 0x10 and protocolId (0, 0) on exchange 28400i with MessageCounter:187492486.
[1665561616.589670][17384:17389] CHIP:IN: Sending unauthenticated msg 0xffffb6fdd968 with MessageCounter:187492486 to 0x0000000000000000 at monotonic time: 0000000000FAFBFC msec
[1665561616.590165][17384:17389] CHIP:EM: Flushed pending ack for MessageCounter:137549921 on exchange 28400i
[1665561616.952936][17384:17389] CHIP:EM: Retransmitting MessageCounter:151075039 on exchange 28401i Send Cnt 1
[1665561616.953098][17384:17389] CHIP:IN: Sending encrypted msg 0xffffa4008b68 with MessageCounter:151075039 to 0x0000000000000003 (1) at monotonic time: 0000000000FAFD68 msec
[1665561616.953723][17384:17389] CHIP:CSM: UpdatePeerAddress: No existing OperationalSessionSetup instance found
[1665561616.953802][17384:17389] CHIP:CTL: OperationalSessionSetup[1:0000000000000003]: State change 1 --> 2
[1665561616.953868][17384:17389] CHIP:DIS: Resolving AA32FAFC936BEE87:0000000000000003 ...
[1665561616.957814][17384:17389] CHIP:DL: Avahi resolve found
[1665561616.957974][17384:17389] CHIP:DIS: Node ID resolved for AA32FAFC936BEE87:0000000000000003
[1665561616.958036][17384:17389] CHIP:DIS:  Hostname: AC93C4C15CAE
[1665561616.958095][17384:17389] CHIP:DIS:  IP Address #1: fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae
[1665561616.958144][17384:17389] CHIP:DIS:  Port: 5540
[1665561616.958193][17384:17389] CHIP:DIS:  Mrp Interval idle: 5000 ms
[1665561616.958240][17384:17389] CHIP:DIS:  Mrp Interval active: 300 ms
[1665561616.958287][17384:17389] CHIP:DIS:  TCP Supported: 1
[1665561616.959811][17384:17389] CHIP:DIS: Lookup clearing interface for non LL address
[1665561616.959878][17384:17389] CHIP:DIS: UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%wlan0]:5540: new best score: 6
[1665561616.959932][17384:17389] CHIP:DIS: Checking node lookup status after 6 ms
[1665561616.959984][17384:17389] CHIP:DIS: Keeping DNSSD lookup active
[1665561617.152342][17384:17389] CHIP:DMG: << from UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 183576057 | [Interaction Model  (1) / InvokeCommandResponse (0x09) / Session = 57571 / Exchange = 28401]
[1665561617.152488][17384:17389] CHIP:DMG: Header Flags =
[1665561617.152549][17384:17389] CHIP:DMG: {
[1665561617.152635][17384:17389] CHIP:DMG:     Exchange (0x06) =
[1665561617.152690][17384:17389] CHIP:DMG:     {
[1665561617.152838][17384:17389] CHIP:DMG:         AckMsg = 151075039
[1665561617.152892][17384:17389] CHIP:DMG:         NeedsAck = true
[1665561617.152943][17384:17389] CHIP:DMG:     }
[1665561617.153015][17384:17389] CHIP:DMG: }
[1665561617.153147][17384:17389] CHIP:DMG:  
[1665561617.153218][17384:17389] CHIP:DMG: Encrypted Payload (70 bytes) =
[1665561617.153270][17384:17389] CHIP:DMG: {
[1665561617.153323][17384:17389] CHIP:DMG:     data = 00e3e000f925f10a1abcd2b3fbce4a0dffa7f35f3a50d4d77defbe83d9f1ede26ab600b1889f8013e61c6992a7017c1a0c334833ec6d65dc0eb7f1d037cd085ec69bd5e528ec
[1665561617.153375][17384:17389] CHIP:DMG:     buffer_ptr = 281473433486320
[1665561617.153425][17384:17389] CHIP:DMG: }
[1665561617.153474][17384:17389] CHIP:DMG:  
[1665561617.153613][17384:17389] CHIP:DMG:  
[1665561617.153696][17384:17389] CHIP:DMG: Additional Fields =
[1665561617.153754][17384:17389] CHIP:DMG: {
[1665561617.153813][17384:17389] CHIP:DMG:     peer_address = UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540
[1665561617.153869][17384:17389] CHIP:DMG: }
[1665561617.153919][17384:17389] CHIP:DMG:  
[1665561617.153983][17384:17389] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:183576057 on exchange 28401i
[1665561617.154043][17384:17389] CHIP:EM: Found matching exchange: 28401i, Delegate: 0xffffa4009668
[1665561617.154126][17384:17389] CHIP:EM: Rxd Ack; Removing MessageCounter:151075039 from Retrans Table on exchange 28401i
[1665561617.154184][17384:17389] CHIP:EM: Removed CHIP MessageCounter:151075039 from RetransTable on exchange 28401i
[1665561617.154260][17384:17389] CHIP:DMG: ICR moving to [ResponseRe]
[1665561617.154354][17384:17389] CHIP:DMG: InvokeResponseMessage =
[1665561617.154413][17384:17389] CHIP:DMG: {
[1665561617.154471][17384:17389] CHIP:DMG:  suppressResponse = false, 
[1665561617.154522][17384:17389] CHIP:DMG:  InvokeResponseIBs =
[1665561617.154591][17384:17389] CHIP:DMG:  [
[1665561617.154644][17384:17389] CHIP:DMG:      InvokeResponseIB =
[1665561617.154714][17384:17389] CHIP:DMG:      {
[1665561617.154768][17384:17389] CHIP:DMG:          CommandDataIB =
[1665561617.154825][17384:17389] CHIP:DMG:          {
[1665561617.154878][17384:17389] CHIP:DMG:              CommandPathIB =
[1665561617.154934][17384:17389] CHIP:DMG:              {
[1665561617.154992][17384:17389] CHIP:DMG:                  EndpointId = 0x0,
[1665561617.155050][17384:17389] CHIP:DMG:                  ClusterId = 0x30,
[1665561617.155105][17384:17389] CHIP:DMG:                  CommandId = 0x5,
[1665561617.155156][17384:17389] CHIP:DMG:              },
[1665561617.155215][17384:17389] CHIP:DMG:              
[1665561617.155269][17384:17389] CHIP:DMG:              CommandFields = 
[1665561617.155325][17384:17389] CHIP:DMG:              {
[1665561617.155385][17384:17389] CHIP:DMG:                  0x0 = 0, 
[1665561617.155446][17384:17389] CHIP:DMG:                  0x1 = "" (0 chars), 
[1665561617.155502][17384:17389] CHIP:DMG:              },
[1665561617.155553][17384:17389] CHIP:DMG:          },
[1665561617.155616][17384:17389] CHIP:DMG:          
[1665561617.155668][17384:17389] CHIP:DMG:      },
[1665561617.155733][17384:17389] CHIP:DMG:      
[1665561617.155784][17384:17389] CHIP:DMG:  ],
[1665561617.155851][17384:17389] CHIP:DMG:  
[1665561617.155905][17384:17389] CHIP:DMG:  InteractionModelRevision = 1
[1665561617.155955][17384:17389] CHIP:DMG: },
[1665561617.156094][17384:17389] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005
[1665561617.156172][17384:17389] CHIP:CTL: Received CommissioningComplete response, errorCode=0
[1665561617.156239][17384:17389] CHIP:CTL: Successfully finished commissioning step 'SendComplete'
[1665561617.156291][17384:17389] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup'
[1665561617.156352][17384:17389] CHIP:CTL: Performing next commissioning step 'Cleanup'
[1665561617.156467][17384:17389] CHIP:CTL: Successfully finished commissioning step 'Cleanup'
[1665561617.156535][17384:17389] CHIP:TOO: Device commissioning completed with success
[1665561617.156681][17384:17389] CHIP:DMG: ICR moving to [AwaitingDe]
[1665561617.156803][17384:17389] CHIP:EM: Sending Standalone Ack for MessageCounter:183576057 on exchange 28401i
[1665561617.157240][17384:17389] CHIP:IN: Prepared secure message 0xffffb6fdd978 to 0x0000000000000003 (1)  of type 0x10 and protocolId (0, 0) on exchange 28401i with MessageCounter:151075040.
[1665561617.157392][17384:17389] CHIP:IN: Sending encrypted msg 0xffffb6fdd978 with MessageCounter:151075040 to 0x0000000000000003 (1) at monotonic time: 0000000000FAFE34 msec
[1665561617.158011][17384:17389] CHIP:DMG: >> to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 151075040 | [Secure Channel  (0) / Standalone Ack (0x10) / Session = 28683 / Exchange = 28401]
[1665561617.158102][17384:17389] CHIP:DMG: Header Flags =
[1665561617.158158][17384:17389] CHIP:DMG: {
[1665561617.158241][17384:17389] CHIP:DMG:     Exchange (0x03) =
[1665561617.158296][17384:17389] CHIP:DMG:     {
[1665561617.158344][17384:17389] CHIP:DMG:         Initiator = true
[1665561617.158400][17384:17389] CHIP:DMG:         AckMsg = 183576057
[1665561617.158452][17384:17389] CHIP:DMG:     }
[1665561617.158522][17384:17389] CHIP:DMG: }
[1665561617.158575][17384:17389] CHIP:DMG:  
[1665561617.158640][17384:17389] CHIP:DMG: Encrypted Payload (34 bytes) =
[1665561617.158693][17384:17389] CHIP:DMG: {
[1665561617.158744][17384:17389] CHIP:DMG:     data = 000b7000e038010938ef0fe3ab8a500625dd4ae4e9bc408a59c1771cbca2ca24597c
[1665561617.158796][17384:17389] CHIP:DMG:     buffer_ptr = 281473433425456
[1665561617.158846][17384:17389] CHIP:DMG: }
[1665561617.158895][17384:17389] CHIP:DMG:  
[1665561617.159159][17384:17389] CHIP:EM: Flushed pending ack for MessageCounter:183576057 on exchange 28401i
[1665561617.159580][17384:17384] CHIP:CTL: Shutting down the commissioner
[1665561617.159659][17384:17384] CHIP:CTL: Stopping commissioning discovery over DNS-SD
[1665561617.159714][17384:17384] CHIP:CTL: Shutting down the controller
[1665561617.159770][17384:17384] CHIP:DIS: OperationalSessionSetup[1:0000000000000003]: Cancelling incomplete address resolution as device is being deleted.
[1665561617.159860][17384:17384] CHIP:IN: Expiring all sessions for fabric 0x1!!
[1665561617.159917][17384:17384] CHIP:IN: SecureSession[0xffffa400ff70]: MarkForEviction Type:2 LSID:57571
[1665561617.159970][17384:17384] CHIP:SC: SecureSession[0xffffa400ff70]: Moving from state 'kActive' --> 'kPendingEviction'
[1665561617.160022][17384:17384] CHIP:IN: SecureSession[0xffffa400ff70]: Released - Type:2 LSID:57571
[1665561617.160079][17384:17384] CHIP:FP: Forgetting fabric 0x1
[1665561617.160148][17384:17384] CHIP:TS: Pending Last Known Good Time: 2022-09-26T18:46:11
[1665561617.160429][17384:17384] CHIP:TS: Previous Last Known Good Time: 2022-09-26T18:46:11
[1665561617.160489][17384:17384] CHIP:TS: Reverted Last Known Good Time to previous value
[1665561617.160573][17384:17384] CHIP:CTL: Shutting down the commissioner
[1665561617.160630][17384:17384] CHIP:CTL: Stopping commissioning discovery over DNS-SD
[1665561617.160680][17384:17384] CHIP:CTL: Shutting down the controller
[1665561617.160777][17384:17384] CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack
[1665561617.162683][17384:17384] CHIP:DMG: IM WH moving to [Uninitialized]
[1665561617.162770][17384:17384] CHIP:DMG: IM WH moving to [Uninitialized]
[1665561617.162822][17384:17384] CHIP:DMG: IM WH moving to [Uninitialized]
[1665561617.162870][17384:17384] CHIP:DMG: IM WH moving to [Uninitialized]
[1665561617.162924][17384:17384] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet
[1665561617.163083][17384:17384] CHIP:BLE: BleConnectionDelegate::CancelConnection is not implemented.
[1665561617.163511][17384:17384] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-oa3grm)
[1665561617.164411][17384:17384] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1665561617.164476][17384:17384] CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0)
[1665561617.164500][17384:17384] CHIP:DL: Inet Layer shutdown
[1665561617.164520][17384:17384] CHIP:DL: BLE shutdown
[1665561617.164540][17384:17384] CHIP:DL: System Layer shutdown
[1665561617.164622][17384:17384] CHIP:IN: SecureSession[0xaaab12defa30]: MarkForEviction Type:1 LSID:57570
[1665561617.164646][17384:17384] CHIP:SC: SecureSession[0xaaab12defa30]: Moving from state 'kActive' --> 'kPendingEviction'
[1665561617.164697][17384:17384] CHIP:IN: SecureSession[0xaaab12defa30]: Released - Type:1 LSID:57570

Bug prevalence

always

GitHub hash of the SDK that was being used

26a054c31144478e3c27391c06b0dc3230bb0882

Platform

ameba

Platform Version(s)

Realtek 8720CMF

Type

Common Cluster Logic

Anything else?

No response

andy31415 commented 2 years ago

@mideayanghui - could you attach the log instead of pasting? it is very long. For pasting, please do a human-curated paste.

andy31415 commented 2 years ago

The description of So we can't get Verify the NOC and ICAC value during commissioning does not seem to match with the title of `Decoder.cpp: incorrect state'.

bzbarsky-apple commented 2 years ago

But there are no messages about 'InvokeRequestMessage '

Those would be coming from the DUT, not the TH, so why would you expect to see them in the TH log?

The Decoder.cpp bit seems like a bug in the trace decoder or in the messages it's decoding; more details on what the actual bytes look like would be needed to tell for sure.

@mideayanghui What exactly is this issue about? Please clearly describe:

  1. What you expected to happen.
  2. What happened differently from the expectation.
liuck8 commented 2 years ago

@andy31415 @bzbarsky-apple 【Problem】 The issue is about the TC-OPCREDS-3.2 in Matter 1.0 Formal test. Step4 and Step23 fail.

The detail of the test case is as below. Matter-1.0-test-case-TC-OPCREDS-3.2.xlsx

【Expected Outcome】 Step 4, "Verify the NOC and ICAC value during commissioning in TH2 Log" [1658819526.011801][8379:8385] CHIP:DMG: InvokeRequestMessage = [1658819526.011835][8379:8385] CHIP:DMG: { [1658819526.011869][8379:8385] CHIP:DMG: suppressResponse = false, [1658819526.011907][8379:8385] CHIP:DMG: timedRequest = false, [1658819526.011943][8379:8385] CHIP:DMG: InvokeRequests = [1658819526.011990][8379:8385] CHIP:DMG: [ [1658819526.012025][8379:8385] CHIP:DMG: CommandDataIB = [1658819526.012065][8379:8385] CHIP:DMG: { [1658819526.012102][8379:8385] CHIP:DMG: CommandPathIB = [1658819526.012148][8379:8385] CHIP:DMG: { [1658819526.012195][8379:8385] CHIP:DMG: EndpointId = 0x0, [1658819526.012245][8379:8385] CHIP:DMG: ClusterId = 0x3e, [1658819526.012298][8379:8385] CHIP:DMG: CommandId = 0x6, [1658819526.012340][8379:8385] CHIP:DMG: },

【Actual Outcome】 In the TH2's log, the Complete log is in this link. th-2.log

Step 4, There's no Noc Info. So we can't Verify the value of NOC and ICAC are same in step 22 and 4 are same.****

[1665561607.151350][17384:17389] CHIP:CTL: Commissioning stage next step: 'SendTrustedRootCert' -> 'SendNOC' [1665561607.151409][17384:17389] CHIP:CTL: Performing next commissioning step 'SendNOC' [1665561607.151545][17384:17389] CHIP:DMG: ICR moving to [AddingComm] [1665561607.151626][17384:17389] CHIP:DMG: ICR moving to [AddedComma] [1665561607.152553][17384:17389] CHIP:IN: Prepared secure message 0xffffa4010928 to 0xFFFFFFFB00000000 (0) of type 0x8 and protocolId (0, 1) on exchange 28399i with MessageCounter:174566280. [1665561607.152648][17384:17389] CHIP:IN: Sending encrypted msg 0xffffa4010928 with MessageCounter:174566280 to 0xFFFFFFFB00000000 (0) at monotonic time: 0000000000FAD71F msec [1665561607.153532][17384:17389] CHIP:DMG: ICR moving to [CommandSen] [1665561607.153632][17384:17389] CHIP:CTL: Sent operational certificate to the device [1665561607.153734][17384:17389] CHIP:DMG: ICR moving to [AwaitingDe] [1665561607.153803][17384:17389] CHIP:EM: Sending Standalone Ack for MessageCounter:111034325 on exchange 28398i [1665561607.154281][17384:17389] CHIP:DMG: >> to UDP:[fd5b:35de:ad5b:beef:ae93:c4ff:fec1:5cae%eth0]:5540 | 174566281 | [Secure Channel (0) / Standalone Ack (0x10) / Session = 28685 / Exchange = 28398] [1665561607.154368][17384:17389] CHIP:DMG: Header Flags = [1665561607.154424][17384:17389] CHIP:DMG: { [1665561607.154507][17384:17389] CHIP:DMG: Exchange (0x03) = [1665561607.154563][17384:17389] CHIP:DMG: { [1665561607.154611][17384:17389] CHIP:DMG: Initiator = true [1665561607.154667][17384:17389] CHIP:DMG: AckMsg = 111034325 [1665561607.154719][17384:17389] CHIP:DMG: } [1665561607.154788][17384:17389] CHIP:DMG: } [1665561607.154841][17384:17389] CHIP:DMG:
[1665561607.155065][17384:17389] CHIP:DMG: Error: ../../examples/common/tracing/decoder/secure_channel/Decoder.cpp:159: CHIP Error 0x00000003: Incorrect state 0 0xffffb6fdc12a, tag[Anonymous]: 0xffffffff, type: Signed Fixed Point (0x00), value: 13 0 0xffffb6fdc130, tag[Common Profile (4 Bytes)]: 0x0::0x0::0x67ab8800, type: Data (0x10), length: 10, value: 0xffffb6fdc130

【Reproduction steps】 Prerequisite:

  1. There are two TH, one is TH1, another is TH2.

  2. One DUT. Step: 1.Use TH1 to commission DUT: $ ./chip-tool pairing ble-wifi 0x2 wifi 12345678 20202021 3840 --trace_decode 1 > th-1.log th-1.log After finished commission, use follow command to open commissioning window: $ ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 Save the Manual pairing code: [35170644493]

  3. Use TH2 to commission DUT: $ ./chip-tool pairing code 3 35170644493 --trace_decode 1 > th-2.log

  4. DUT Log dut.log

liuck8 commented 2 years ago

if I try the follow command to pair TH2 into another Fabric and test again, Step4 of the test case also fail.

1: .Use TH1 to commission DUT: $ ./chip-tool pairing ble-wifi 0x2 wifi 12345678 20202021 3840 --trace_decode 1 > th-1.log th-1.log th-1-window.log

2:After finished commission, use follow command to open commissioning window: $ ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 Save the Manual pairing code: [35170644493] th-2.log

3: Use TH2 to commission DUT: $ ./chip-tool pairing code 3 35170644493 --commissioner-name beta --trace_decode 1 > th-2.log th-2.log

Attach DUT's Log: dev.log

Can you give me some suggestion?

step0035 commented 2 years ago

@bzbarsky-apple @andy31415 I happened to face this same issue, it happens intermittently. NoCValue and ICACValue is expected to be logged out correctly with trace_decoder enabled, but sometimes the chiptool decoder is getting errors like incorrect state / wrong TLV type.

Commissioning is still successful in the above logs so this suggests that the messages being transported is correct, and the problem might lie within the decoder.

liuck8 commented 2 years ago

@andy31415 @bzbarsky-apple @step0035 Hello, I have another method to validate NOC in Step 23, Can you help me double check? NOC Chain Verify Method-V1.1.pdf

liuck8 commented 2 years ago

@andy31415 @bzbarsky-apple @step0035 @mideayanghui I fix a bug on Chip-Tool in the trace decoder or in the messages it's decoding. I upload a patch based on commit 87bee4de25 , I test and pass the test case, Can you help me do a double check?

0001-TraceDecoder-fix-a-bug-in-the-trace-decoder-or-in-th.zip

bzbarsky-apple commented 2 years ago

@liuck8 Please create a pull request with that change? Then the folks who know the trace decoder code will see it....

liuck8 commented 2 years ago

@bzbarsky-apple Thanks, I have created a pull request as this link.

Beside, I upload the chip-tool based on Raspberry-Pi 4, It's can run in TH2.5. chip-tool.tar.gz

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.