Open fostergorman opened 7 months ago
As an update to this, I found something that is off. During operational discovery, the name used for lookup within Matter is not the name that is publishing the operational discovery seen in avahi.
Matter lookup: 66D5DE6615F10EFA-0000000000000045
Name from avahi: 063787A15C2B0395-0000000000000045
I would imagine that if Matter is doing a lookup on the wrong name, it will never find it, so this seems to be the crux of the issue. I did verify that the IPv6 address Matter is using is the correct one of the device on the Thread network.
@fostergorman The log above shows the operational discovery succeeding just fine:
[1714999515.446262][6179:6181] CHIP:DIS: OperationalSessionSetup[1:0000000000000045]: Updating device address to UDP:[fd11:22::d012:4589:e76d:1f9e]:5540 while in state 2
[1714999515.446317][6179:6181] CHIP:DIS: OperationalSessionSetup[1:0000000000000045]: State change 2 --> 3
[1714999515.446930][6179:6181] CHIP:IN: SecureSession[0xffff8001a8f0]: Allocated Type:2 LSID:57955
[1714999515.447048][6179:6181] CHIP:SC: Initiating session on local FabricIndex 1 from 0x000000000001B669 -> 0x0000000000000045
[1714999515.449066][6179:6181] CHIP:EM: <<< [E:60042i S:0 M:121203353] (U) Msg TX to 0:0000000000000000 [0000] [UDP:[fd11:22::d012:4589:e76d:1f9e]:5540] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
[1714999515.449546][6179:6181] CHIP:SC: Sent Sigma1 msg
But then we never get a response or an ack for that message:
[1714999519.723194][6179:6181] CHIP:EM: Retransmitting MessageCounter:121203353 on exchange 60042i Send Cnt 1
[1714999523.843283][6179:6181] CHIP:EM: Retransmitting MessageCounter:121203353 on exchange 60042i Send Cnt 2
[1714999529.976450][6179:6181] CHIP:EM: Retransmitting MessageCounter:121203353 on exchange 60042i Send Cnt 3
[1714999541.061654][6179:6181] CHIP:EM: Retransmitting MessageCounter:121203353 on exchange 60042i Send Cnt 4
[1714999557.370905][6179:6181] CHIP:EM: Failed to Send CHIP MessageCounter:121203353 on exchange 60042i sendCount: 4 max retries: 4
[1714999563.960047][6179:6181] CHIP:SC: CASESession timed out while waiting for a response from the peer. Current state was 1
So:
Thank you for your response.
Well, clearly the Matter device doing the commissioning never got the response to Sigma1. So you should figure out where that response packet is being dropped in your specific network setup. Is it being sent by the Thread end device? If not, start there. If it is, then what happened to it?
(And please fix the PR summary, since operational discovery worked just fine.)
Reproduction steps
Hello, I am working on a PoC for a Matter hub and we want to have the hub also be a Thread Border Router. I have been working with this for a couple weeks now and have managed to get to operational discovery. Matter is able to connect to the device, but never receives an ack from the Thread devices.
This issue does not appear at all with WiFi devices.
Setup:
Raspberry Pi 4b with Ubuntu Server 23.10. OTBR running in docker container Commissioning with Matter (chip-tool)
chip-tool command executed:
chip-tool pairing code-thread 69 hex:0e08000000000001000035060004001fffe00708fd38de8fb4627cf00c0402a0f7f8051000112233445566778899aabbccddeeff030e4f70656e54687265616444656d6f0410445f2b5ca6f2a93a55ce570a70efeecb000300000f0208111111112222222201021234 05576556571 --paa-trust-store-path /opt/matter/certs
Debugging:
Currently able to get to the point where the Thread device is commissioned on the Thread network using Matter's chip-tool. Can confirm this by checking the child table within OTBR:
ot-ctl child table
.I have verified that there are no errors on the OTBR side. The packets are received and sent just fine.
I see the operational discovery packets using
avahi-browse -a
.chip-tool outputs an error,
Timeout waiting for mDNS resolution
, while on the FindOperational step:TLDR: Matter fails operational discovery of Thread devices even though operational discovery,
_matter._tcp
, is shown through avahi.Bug prevalence
Commissioning any Thread device
GitHub hash of the SDK that was being used
f52860e4d44a2653d167aa04552414e4c9015718
Platform
raspi
Platform Version(s)
1.2
Anything else?
No response