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.39k stars 1.98k forks source link

[1.2] CASE failed to match destination ID with local fabrics #33725

Open lxj199722 opened 4 months ago

lxj199722 commented 4 months ago

Reproduction steps

I have an iPhone(ios17.5.1), two HomePod mini(17.5 21L569) and four matter smart plugs.

  1. In the Home app, I have set up two Apple Homes. Each Apple Home has a HomePod mini.
  2. In my first Apple Home, one matter plug work very fine.
  3. In my second Apple Home, the three matter plugs goes offline immediately after commissioning complete.
  4. I checked the three problem matter plugs logs and found CASE failed to match destination ID with local fabrics.
  5. The issue persists even after unbinding and reconfiguring the device.
[2024-05-23 05:48:10] chip[EM] >>> [E:35695r S:0 M:220740978] (U) Msg RX from 0:1139634FA1130871 [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
[2024-05-23 05:48:14] chip[EM] Handling via exchange: 35695r, Delegate: 0x10012e58
[2024-05-23 05:48:14] chip[IN] CASE Server received Sigma1 message . Starting handshake. EC 0x10013978
[2024-05-23 05:48:14] chip[EM] <<< [E:35695r S:0 M:256654565 (Ack:220740978)] (U) Msg TX to 0:0000000000000000 [0000] [UDP:[FE80::8FF:4A7E:4AC3:C614%r00]:49199] --- Type 0000:10 (SecureChannel:StandaloneAck)
[2024-05-23 05:48:14] chip[EM] Flushed pending ack for MessageCounter:220740978 on exchange 35695r
[2024-05-23 05:48:14] chip[SC] Received Sigma1 msg
[2024-05-23 05:48:14] chip[SC] Found MRP parameters in the message
[2024-05-23 05:48:14] chip[SC] Peer assigned session key ID 48353
[2024-05-23 05:48:14] chip[SC] CASE failed to match destination ID with local fabrics
[2024-05-23 05:48:14] chip[SC] 0x39, 0x18, 0xa8, 0x83, 0x74, 0x26, 0x2f, 0xfe, 
[2024-05-23 05:48:14] chip[SC] 0x69, 0x89, 0x85, 0x18, 0x41, 0x70, 0xb7, 0xbe, 
[2024-05-23 05:48:14] chip[SC] 0x49, 0x08, 0xd9, 0xb1, 0xc6, 0x50, 0xf4, 0xcc, 
[2024-05-23 05:48:14] chip[SC] 0x1c, 0x0d, 0xcb, 0xb5, 0xce, 0x7f, 0xa6, 0x20, 
[2024-05-23 05:48:14] chip[SC] Sending status report. Protocol code 1, exchange 35695
[2024-05-23 05:48:14] chip[EM] <<< [E:35695r S:0 M:256654566 (Ack:220740978)] (U) Msg TX to 0:0000000000000000 [0000] [UDP:[FE80::8FF:4A7E:4AC3:C614%r00]:49199] --- Type 0000:40 (SecureChannel:StatusReport)
[2024-05-23 05:48:14] chip[IN] CASE Session establishment failed: 10
[2024-05-23 05:48:14] chip[IN] SecureSession[0x10012160]: Released - Type:2 LSID:28208
[2024-05-23 05:48:14] chip[IN] SecureSession[0x10012160]: Allocated Type:2 LSID:28209
[2024-05-23 05:48:14] chip[SC] Allocated SecureSession (0x10012160) - waiting for Sigma1 msg
[2024-05-23 05:48:14] chip[EM] OnMessageReceived failed, err = 10
[2024-05-23 05:48:14] chip[DL] Long dispatch time: 378 ms, for event type 3
[2024-05-23 05:48:14] chip[EM] >>> [E:35695r S:0 M:220740979 (Ack:256654566)] (U) Msg RX from 0:1139634FA1130871 [0000] --- Type 0000:10 (SecureChannel:StandaloneAck)
[2024-05-23 05:48:14] chip[EM] Found matching exchange: 35695r, Delegate: 0x0
[2024-05-23 05:48:14] chip[EM] Rxd Ack; Removing MessageCounter:256654566 from Retrans Table on exchange 35695r

Bug prevalence

every time

GitHub hash of the SDK that was being used

0ff709f25f6a7af68314c1b0a147a76c30c234f6

Platform

ameba, darwin

Platform Version(s)

1.2.0.1

Type

Platform Issue

Anything else?

The home network topology is as follows: b428e62abe6c10be7ed22bc5e42b4498

bzbarsky-apple commented 4 months ago

@lxj199722 Please see https://github.com/project-chip/connectedhomeip/issues/33724#issuecomment-2148218336 -- the same thing applies here.