connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

[Pre-SVE] TC-SU 2.8 when OTA Provider commissioned first, does not let second commissioner commission to the DUT

Open HubertHugo opened this issue 2 years ago • 5 comments

SHA: 1e3f12041013dd71a53d035dbf2f6d142fc06c4e platform: Linux OTA Provider

When I commission DUT and OTA Provider, second commissioner isn't commissioning to DUT. OTA Provider doesn't change his CM value back to 0 after being commissioned.

ota_commissioned_but_cm_is_1_chip-tool.log

HubertHugo avatar Jun 21 '22 14:06 HubertHugo

Cert Blocker Review: @HubertHugo can you please outline the steps that failed here, it's hard/impossible to us to understand what's going on.

woody-apple avatar Jun 21 '22 17:06 woody-apple

@HubertHugo In particular, it looks like commissioning discovery found the wrong thing for that second chip-tool pairing command, but since that command said "find me anything on the network at all that advertises commissionable", and there are multiple commissionable advertisements shown by avahi-browse, that's somewhat expected.

It's possible that some of those commissionable advertisements are stale, because on the SHA you're on minimal mdns does not withdraw stale advertisements and they have nonzero TTLs, so get cached by DNS resolvers.

I strongly recommend pairing by discriminator (note that the discriminators for the devices involved are different) instead of issuing a "pair with whatever you find out there" command and hoping. That is, instead of pairing onnetwork use pairing onnetwork-long and provide the relevant discriminator.

bzbarsky-apple avatar Jun 21 '22 20:06 bzbarsky-apple

@woody-apple

  1. Commission DUT
  2. Commission OTA by pairing onnetwork
  3. Commission second commissioner to DUT by paring onnetwork

In third step it fails to commission second commissioner - looks like it is catching OTA instead, as it's cm value isn't changed back to 0 as it should when it's already commissioned:

= vethafd24aa IPv6 271923F83419E478                              _matterc._udp        local
   hostname = [38142831AA980000.local]
   address = [fe80::bc0a:22ff:fe64:8247]
   port = [5540]
   txt = ["PI=" "PH=33" "CM=1" "D=3840" "T=1" "SAI=300" "SII=5000" "VP=65521+32769"]

HubertHugo avatar Jun 23 '22 07:06 HubertHugo

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

stale[bot] avatar Dec 20 '22 18:12 stale[bot]

@HubertHugo Is this still a problem? Are you compiling with minimal mdns or platform mdns for the OTA Provider?

Is this reproducible with chip-tool as the commissioners? If so, the exact commands you are running for all the relevant apps would be pretty helpful in trying to reproduce this.

bzbarsky-apple avatar Dec 20 '22 18:12 bzbarsky-apple

Now it works as it should.

HubertHugo avatar Jan 02 '23 09:01 HubertHugo