Commissioning Matter accessory failed

Hi

I am studying Matter, my setup is

chip-toolchip-tool-android_armv7l.apk v2.1.0

OTBR: raspberry pi 3b + RCP( PCA10059 )

board: nRF52840-DK(PCA10056)

sample: ncs/v2.0.0/nrf/sample/matter/template

I had set the chip-tool and OTBR into the same WIFI, then I followed steps to commissioning nRF52840, it was always failed,

chip-tool informed the commissioning progress with scanning for BLE device xxxx, connecting to MatterTemplate, pairing, then pairing failed.

log from nRF52840 side: 

uart:~$ matter device factoryreset
Performing factory reset ...
uart:~$ I: 71230 [DL]Performing factory reset
I: 71269 [DL]Erasing Thread persistent info...
I: nRF5 802154 radio initialized
I: 4 Sectors of 4096 bytes
I: alloc wra: 0, 718
I: data wra: 0, 528
*** Booting Zephyr OS build v3.0.99-ncs1  ***
I: Init CHIP stack
I: Swap type: none
D: 128 [DL]Boot reason: 6


uart:~$ I: 234 [DL]BLE address: F5:84:DF:2E:F6:71
I: SoftDevice Controller build revision:
I: 33 78 2a 18 20 f5 61 61 |3x*. .aa
I: a6 8b 77 60 62 83 39 2a |..w`b.9*
I: 7c f1 14 e4             ||...
I: 259 [DL]OpenThread started: OK
I: 262 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 268 [SVR]Server initializing...
D: 273 [DIS]Init fabric pairing table with server storage
I: 278 [DMG]AccessControl: initializing
I: 282 [DMG]Examples::AccessControlDelegate::Init
I: 286 [DMG]AccessControl: setting
I: 289 [DMG]DefaultAclStorage: initializing
I: 293 [DMG]DefaultAclStorage: 0 entries loaded
I: 298 [ZCL]Using ZAP configuration...
I: 302 [DMG]AccessControlCluster: initializing
I: 306 [ZCL]Initiating Admin Commissioning cluster.
D: 311 [DMG]Endpoint 0, Cluster 0x0000_0030 update version to e27dbb6e
I: 317 [ZCL]OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table.
D: 325 [DIS]Add fabric pairing table delegate
E: 330 [ZCL]DeviceInfoProvider is not registered
E: 334 [ZCL]Trying to write invalid Calendar Type
E: 338 [ZCL]Failed to write calendar type with error: 0x87
D: 344 [IN]UDP::Init bind&listen port=5540
E: 348 [IN]SO_REUSEPORT failed: 109
D: 351 [IN]UDP::Init bound to port=5540
D: 355 [IN]BLEBase::Init - setting/overriding transport
D: 360 [IN]TransportMgr initialized
D: 372 [DIS]Add fabric pairing table delegate
D: 376 [DL]Using Thread extended MAC for hostname.
D: 387 [SC]Assigned local session key ID 59281
D: 391 [SC]Waiting for PBKDF param request
D: 395 [DL]CHIPoBLE advertising set to on
I: 399 [DIS]Updating services using commissioning mode 1
D: 404 [DL]Using Thread extended MAC for hostname.
D: 409 [DL]Using Thread extended MAC for hostname.
I: 414 [DIS]Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15
E: 423 [DIS]Failed to advertise commissionable node: Error CHIP:0x00000003
D: 429 [DIS]Scheduling discovery timeout in 900s
E: 434 [DIS]Failed to finalize service update: Error CHIP:0x0000001C
I: 440 [DIS]Updating services using commissioning mode 1
D: 445 [DL]Using Thread extended MAC for hostname.
D: 450 [DL]Using Thread extended MAC for hostname.
I: 455 [DIS]Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15
E: 464 [DIS]Failed to advertise commissionable node: Error CHIP:0x00000003
D: 470 [DIS]Scheduling discovery timeout in 900s
E: 475 [DIS]Failed to finalize service update: Error CHIP:0x0000001C
I: 481 [DIS]Delaying proxy of operational discovery: missing delegate
I: 487 [IN]CASE Server enabling CASE session setups
I: 492 [SVR]Joining Multicast groups
D: 495 [ZCL]Emitting StartUp event
D: 498 [EVL]LogEvent event number: 0x0000000000000000 priority: 2, endpoint id:  0x0 cluster id: 0x0000_0028 event id: 0x0 Sys timestamp: 0x00000000000001F2
D: 512 [ZCL]GeneralDiagnosticsDelegate: OnDeviceRebooted
D: 518 [DMG]Endpoint 0, Cluster 0x0000_0033 update version to 74edc326
D: 524 [EVL]LogEvent event number: 0x0000000000000001 priority: 2, endpoint id:  0x0 cluster id: 0x0000_0033 event id: 0x3 Sys timestamp: 0x000000000000020C
I: 538 [SVR]Server Listening...
I: 541 [DL]Device Configuration:
I: 544 [DL]  Serial Number: TEST_SN
I: 547 [DL]  Vendor Id: 65521 (0xFFF1)
I: 551 [DL]  Product Id: 32768 (0x8000)
I: 555 [DL]  Hardware Version: 0
I: 558 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 563 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 570 [DL]  Manufacturing Date: (not set)
I: 574 [DL]  Device Type: 65535 (0xFFFF)
I: 578 [SVR]SetupQRCode: [MT:Y.K9042C00KA0648G00]
I: 583 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 589 [SVR]https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AY.K9042C00KA0648G00
I: 597 [SVR]Manual pairing code: [34970112332]
I: 603 [DL]CHIP task running
I: 608 [DL]CHIPoBLE advertising started
I: 4823 [DL]BLE connection established (ConnId: 0x00)
I: 4828 [DL]Current number of connections: 1/1
I: 4832 [DL]CHIPoBLE advertising stopped
D: 6164 [DL]Write request received for CHIPoBLE RX (ConnId 0x00)
I: 6170 [BLE]local and remote recv window sizes = 5
I: 6175 [BLE]selected BTP version 4
I: 6178 [BLE]using BTP fragment sizes rx 244 / tx 244.
E: 21183 [BLE]receive handshake timed out, closing ep 0x20009ac8
D: 21189 [IN]Clearing BLE pending packets.
I: 21193 [BLE]Releasing end point's BLE connection back to application.
I: 21199 [DL]Closing BLE GATT connection (ConnId 00)
E: not connected!
D: 21210 [DL]ConnId: 0x00, New CCCD value: 0x0000
I: 21254 [DL]BLE GAP connection terminated (reason 0x16)
I: 21259 [DL]Current number of connections: 0/1
I: 21265 [DL]CHIPoBLE advertising started

Could you give some comments?

And by the way, the URL for generating QRcode, as shown, is invalid.

Thank you!

Related