Matter door lock sample builds but can't commission

Hi, having some issues with the matter door lock sample for the nRF54L15DK on NCS 3.0.2. I'm getting strange failures on boot when running the default matter door lock sample that result in apple home commissioning failing to find the door lock.

Sample location: nrf/samples/matter/lock

Build command: west build -b nrf54l15dk/nrf54l15/cpuapp -d build_nrf54l15dk

It seems like theres a failure to init the door lock cluster with "RFID users: 86" even though i haven't touched anything by default and it seems like the source code should be initing this to 0. Afterwards it looks like theres failures to update advertised services which appears to prevent the apple home app from finding the devkit during commissioning with the QR code provided in the logs.

*** Booting My Application v3.0.2-89ba1294ac9b ***
*** Using nRF Connect SDK v3.0.2-89ba1294ac9b ***
*** Using Zephyr OS v4.0.99-f791c49f492c ***
I: 225 [DL]BLE address: EA:8C:9F:32:58:C4
I: No users indexes stored
I: No stored indexes for credential of type: 1
I: 239 [DL]CHIP task running
I: Init CHIP stack
I: 244 [DL]OpenThread started: OK
I: 248 [DL]Setting OpenThread device type to SLEEPY END DEVICE
I: 254 [DL]The device does not support hardware protection against write.
I: 260 [SVR]Subscription persistence not supported
I: 265 [SVR]Server initializing...
I: 268 [TS]Last Known Good Time: 2023-10-14T01:16:48
I: 273 [DMG]AccessControl: initializing
I: 276 [DMG]Examples::AccessControlDelegate::Init
I: 281 [DMG]AccessControl: setting
I: 284 [DMG]DefaultAclStorage: initializing
I: 288 [DMG]DefaultAclStorage: 0 entries loaded
E: 292 [IN]IPV6_PKTINFO failed: 109
I: 297 [ZCL]Using ZAP configuration...
I: 301 [DMG]AccessControlCluster: initializing
I: 305 [ZCL]Initiating Admin Commissioning cluster.
I: 310 [ZCL]Door Lock server initialized
I: 313 [ZCL]Door Lock cluster initialized at endpoint #1
I: 318 [ZCL]0xc8f0c ep 1 clus 0x0000_0101 attr 0x0000_0013 not supported
E: 325 [ZCL]Failed to set DoorLock number of RFID users: 86
I: 330 [DIS]Updating services using commissioning mode 0
E: 335 [DIS]Failed to remove advertised services: 3
E: 340 [DIS]Failed to finalize service update: 3
I: 344 [IN]CASE Server enabling CASE session setups
I: 349 [SVR]Joining Multicast groups
I: 352 [SVR]Server Listening...
I: 355 [DL]Device Configuration:
I: 358 [DL]  Serial Number: 11223344556677889900
I: 362 [DL]  Vendor Id: 65521 (0xFFF1)
I: 366 [DL]  Product Id: 32774 (0x8006)
I: 369 [DL]  Product Name: not-specified
I: 373 [DL]  Hardware Version: 0
I: 376 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 381 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 388 [DL]  Manufacturing Date: 2022-01-01
I: 392 [DL]  Device Type: 65535 (0xFFFF)
I: 395 [SVR]SetupQRCode: [MT:8IXS142C00KA0648G00]
I: 400 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 406 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A8IXS142C00KA0648G00
I: 415 [SVR]Manual pairing code: [34970112332]
E: 419 [DL]Long dispatch time: 177 ms, for event type 2

I also tried the above with an nRF52840DK and on NCS 2.9.0 to no avail. Is there some external dependency I'm missing? Like a specific version of gn? Please advise.

Parents Reply Children
  • Hi Amanda, I realized I wasn't getting the advertising started log on the default nRF54L15DK lock build for some reason and had to manually enter "matter ble adv start" to initiate advertising. Still having trouble commissioning but I may have an issue with my commissioning environment, currently looking into it:

    I: Factory reset has been triggered. Release button within 3000ms to cancel.
    I: Factory reset has been canceled
    I: BLE advertising is already enabled and active
    I: Factory reset has been triggered. Release button within 3000ms to cancel.
    I: 20239 [TS]Pending Last Known Good Time: 2023-10-14T01:16:48
    I: 20244 [TS]Previous Last Known Good Time: 2023-10-14T01:16:48
    I: 20250 [TS]Reverted Last Known Good Time to previous value
    I: 20256 [DL]Performing factory reset
    *** Booting My Application v3.0.2-89ba1294ac9b ***
    *** Using nRF Connect SDK v3.0.2-89ba1294ac9b ***
    *** Using Zephyr OS v4.0.99-f791c49f492c ***
    I: 22494 [DL]BLE address: F2:97:92:42:F6:4C
    I: No users indexes stored
    I: No stored indexes for credential of type: 1
    D: Cannot load RequirePINforRemoteOperation
    D: Registered new test event: 0xffffffff32774000
    I: 22517 [DL]CHIP task running
    I: Init CHIP stack
    I: 22522 [DL]OpenThread started: OK
    I: 22525 [DL]Setting OpenThread device type to SLEEPY END DEVICE
    I: 22531 [DL]The device does not support hardware protection against write.
    D: Registered new test event: 0xffffffff00000000
    D: Registered new test event: 0xffffffff10000000
    I: 22547 [SVR]Subscription persistence not supported
    I: 22551 [SVR]Server initializing...
    I: 22555 [TS]Last Known Good Time: [unknown]
    I: 22559 [TS]Setting Last Known Good Time to firmware build time 2023-10-14T01:16:48
    I: 22567 [DMG]AccessControl: initializing
    I: 22571 [DMG]Examples::AccessControlDelegate::Init
    I: 22576 [DMG]AccessControl: setting
    I: 22579 [DMG]DefaultAclStorage: initializing
    I: 22583 [DMG]DefaultAclStorage: 0 entries loaded
    D: 22587 [IN]UDP::Init bind&listen port=5540
    E: 22592 [IN]IPV6_PKTINFO failed: 109
    D: 22595 [IN]UDP::Init bound to port=5540
    D: 22599 [IN]BLEBase::Init - setting/overriding transport
    D: 22604 [IN]TransportMgr initialized
    D: 22610 [DL]Using Thread extended MAC for hostname.
    I: 22616 [ZCL]Using ZAP configuration...
    I: 22620 [DMG]AccessControlCluster: initializing
    D: 22624 [DL]Boot reason: 6
    I: 22627 [ZCL]Initiating Admin Commissioning cluster.
    I: 22632 [ZCL]Door Lock server initialized
    I: 22635 [ZCL]Door Lock cluster initialized at endpoint #1
    I: 22641 [ZCL]0xc9ddf ep 1 clus 0x0000_0101 attr 0x0000_0013 not supported
    E: 22647 [ZCL]Failed to set DoorLock number of RFID users: 86
    I: 22653 [DIS]Updating services using commissioning mode 0
    E: 22658 [DIS]Failed to remove advertised services: 3
    E: 22663 [DIS]Failed to finalize service update: 3
    I: 22667 [IN]CASE Server enabling CASE session setups
    D: 22672 [IN]SecureSession[0x20005270]: Allocated Type:2 LSID:23380
    I: 22678 [SVR]Joining Multicast groups
    I: 22682 [SVR]Server Listening...
    I: 22685 [DL]Device Configuration:
    I: 22688 [DL]  Serial Number: 11223344556677889900
    I: 22693 [DL]  Vendor Id: 65521 (0xFFF1)
    I: 22696 [DL]  Product Id: 32774 (0x8006)
    I: 22700 [DL]  Product Name: not-specified
    I: 22704 [DL]  Hardware Version: 0
    I: 22707 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
    I: 22712 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
    I: 22719 [DL]  Manufacturing Date: 2022-01-01
    I: 22723 [DL]  Device Type: 65535 (0xFFFF)
    I: 22727 [SVR]SetupQRCode: [MT:8IXS142C00KA0648G00]
    I: 22732 [SVR]Copy/paste the below URL in a browser to see the QR Code:
    I: 22738 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A8IXS142C00KA0648G00
    I: 22747 [SVR]Manual pairing code: [34970112332]
    E: 22751 [DL]Long dispatch time: 231 ms, for event type 2
    
    uart:~$ matter ble adv start
    Starting BLE advertising
    D: 28360 [DL]CHIPoBLE advertising set to on
    I: 28366 [DL]CHIPoBLE advertising started
    I: 28370 [DL]NFC Tag emulation started
    Done

Related