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.18k stars 1.9k forks source link

[1.3] After Commissioning complete, CASE Session establishment failed: 54 #33724

Open lxj199722 opened 1 month ago

lxj199722 commented 1 month 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, matter plugs work very fine.
  3. In my second Apple Home, the matter plug goes offline immediately after commissioning complete.
  4. I checked the problem matter plug logs and found CASE Session establishment failed: 54 error.
  5. The issue persists even after unbinding and reconfiguring the device.
[0603_15:29:59_777]#chip[EM] >>> [E:32547r S:0 M:231276562] (U) Msg RX from 0:8ABDD2C7C7BF1C4B [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
[0603_15:29:59_781]#chip[IN] CASE Server received Sigma1 message . Starting handshake. EC 0x10024198
[0603_15:29:59_809]#chip[EM] <<< [E:32547r S:0 M:235350705 (Ack:231276562)] (U) Msg TX to 0:0000000000000000 [0000] [UDP:[FE80::8C4:550A:CBA5:726C%r00]:55577] --- Type 0000:10 (SecureChannel:StandaloneAck)
[0603_15:29:59_810]#chip[SC] Received Sigma1 msg
[0603_15:29:59_811]#chip[SC] CASE matched destination ID: fabricIndex 1, NodeID 0x000000003B45C780
[0603_15:30:00_385]#chip[EM] <<< [E:32547r S:0 M:235350706 (Ack:231276562)] (U) Msg TX to 0:0000000000000000 [0000] [UDP:[FE80::8C4:550A:CBA5:726C%r00]:55577] --- Type 0000:31 (SecureChannel:CASE_Sigma2)
[0603_15:30:00_386]#chip[SC] Sent Sigma2 msg
[0603_15:30:00_405]#chip[DL] Long dispatch time: 624 ms, for event type 3
[0603_15:30:00_761]#chip[EM] Retransmitting MessageCounter:235350706 on exchange 32547r Send Cnt 1
[0603_15:30:00_970]#chip[EM] >>> [E:32547r S:0 M:231276563 (Ack:235350706)] (U) Msg RX from 0:8ABDD2C7C7BF1C4B [0000] --- Type 0000:40 (SecureChannel:StatusReport)
[0603_15:30:00_971]#chip[SC] Received error (protocol code 2) during pairing process: 54
[0603_15:30:00_978]#chip[IN] CASE Session establishment failed: 54
[0603_15:30:01_010]#chip[EM] <<< [E:32547r S:0 M:235350707 (Ack:231276563)] (U) Msg TX to 0:0000000000000000 [0000] [UDP:[FE80::8C4:550A:CBA5:726C%r00]:55577] --- Type 0000:10 (SecureChannel:StandaloneAck)
[0603_15:30:01_069]#chip[EM] >>> [E:32547r S:0 M:231276564 (Ack:235350706)] (U) Msg RX from 0:8ABDD2C7C7BF1C4B [0000] --- Type 0000:10 (SecureChannel:StandaloneAck)

Bug prevalence

every time

GitHub hash of the SDK that was being used

70d9a61475d31686f0fde8e7b56f352a0f59b299

Platform

ameba, darwin

Platform Version(s)

1.3,

Type

Platform Issue

Anything else?

CASE-54-origin-demo-light.log

bzbarsky-apple commented 1 month ago

0x54 is "CHIP_ERROR_INVALID_CASE_PARAMETER", which is the catch-all "something in CASE failed" error.

Please file a feedback assistant ticket per the instructions below, ideally include the corresponding server logs alongside the client logs, and put the ticket ID in this issue. I'll get someone to look at it.

Feedback assistant ticket: