Matter_Template BLE Bonding and whitelisting Concept

Hi,
  I am Currently working on MATTER samples in nRF_Connect_SDK v2.1.0 VS code.
I have tested with Matter_Template samples
I am Trying to Pair the matter_template sample to the android phone. but device get rejects the pairing

[11:18:19:057] I: nRF5 802154 radio initialized␍␊
[11:18:19:162] <0x1b>[m␍␊
[11:18:19:162] ␍␊
[11:18:19:163] <0x1b>[1;32muart:~$ <0x1b>[mI: 4 Sectors of 4096 bytes␍␊
[11:18:19:167] I: alloc wra: 0, fe8␍␊
[11:18:19:169] I: data wra: 0, 0␍␊
[11:18:19:173] *** Booting Zephyr OS build v3.1.99-ncs1  ***␍␊
[11:18:19:177] I: Init CHIP stack␍␊
[11:18:19:280] I: SoftDevice Controller build revision: ␍␊
[11:18:19:284] I: f2 e7 5f 6f 23 a2 f3 e8 |.._o#...␍␊
[11:18:19:287] I: 10 2f c3 35 9e d7 1d fe |./.5....␍␊
[11:18:19:290] I: 8f 80 42 f9             |..B.    ␍␊
[11:18:19:300] I: 246 [DL]OpenThread started: OK␍␊
[11:18:19:303] I: 249 [DL]Setting OpenThread device type to MINIMAL END DEVICE␍␊
[11:18:19:309] I: 255 [SVR]Server initializing...␍␊
[11:18:19:312] D: 258 [FP]Initializing FabricTable from persistent storage␍␊
[11:18:19:317] I: 263 [TS]Last Known Good Time: [unknown]␍␊
[11:18:19:321] I: 267 [TS]Setting Last Known Good Time to firmware build time 2022-10-17T11:14:34␍␊
[11:18:19:333] I: 279 [DMG]AccessControl: initializing␍␊
[11:18:19:336] I: 282 [DMG]Examples::AccessControlDelegate::Init␍␊
[11:18:19:340] I: 287 [DMG]AccessControl: setting␍␊
[11:18:19:343] I: 290 [DMG]DefaultAclStorage: initializing␍␊
[11:18:19:347] I: 294 [DMG]DefaultAclStorage: 0 entries loaded␍␊
[11:18:19:352] D: 298 [IN]UDP::Init bind&listen port=5540␍␊
[11:18:19:355] E: 302 [IN]SO_REUSEPORT failed: 109␍␊
[11:18:19:359] D: 305 [IN]UDP::Init bound to port=5540␍␊
[11:18:19:362] D: 308 [IN]BLEBase::Init - setting/overriding transport␍␊
[11:18:19:367] D: 313 [IN]TransportMgr initialized␍␊
[11:18:19:378] D: 324 [DL]Using Thread extended MAC for hostname.␍␊
[11:18:19:387] I: 333 [ZCL]Using ZAP configuration...␍␊
[11:18:19:391] D: 337 [DMG]Failed to read stored attribute (0, 0x0000_0028, 0x0000_0005: a0␍␊
[11:18:19:398] D: 344 [DMG]Failed to read stored attribute (0, 0x0000_0028, 0x0000_0010: a0␍␊
[11:18:19:406] I: 352 [DMG]AccessControlCluster: initializing␍␊
[11:18:19:410] D: 356 [DMG]Endpoint 0, Cluster 0x0000_0030 update version to 4182aa45␍␊
[11:18:19:416] D: 362 [DL]Boot reason: 1␍␊
[11:18:19:418] D: 364 [ZCL]GeneralDiagnostics: OnDeviceReboot␍␊
[11:18:19:422] D: 369 [DMG]Endpoint 0, Cluster 0x0000_0033 update version to 4435bec9␍␊
[11:18:19:429] D: 375 [EVL]LogEvent event number: 0x0000000000000000 priority: 2, endpoint id:  0x0 cluster id: 0x0000_0033 event id: 0x3 Sys timestamp: 0x0000000000000177␍␊
[11:18:19:443] I: 389 [ZCL]Initiating Admin Commissioning cluster.␍␊
[11:18:19:449] D: 395 [IN]SecureSession[0x200034f0]: Allocated Type:1 LSID:65040␍␊
[11:18:19:454] D: 400 [SC]Assigned local session key ID 65040␍␊
[11:18:19:458] D: 404 [SC]Waiting for PBKDF param request␍␊
[11:18:19:462] D: 408 [DL]CHIPoBLE advertising set to on␍␊
[11:18:19:466] I: 412 [DIS]Updating services using commissioning mode 1␍␊
[11:18:19:471] D: 417 [DL]Using Thread extended MAC for hostname.␍␊
[11:18:19:476] D: 422 [DL]Using Thread extended MAC for hostname.␍␊
[11:18:19:480] I: 426 [DIS]Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1␍␊
[11:18:19:489] E: 435 [DIS]Failed to advertise commissionable node: 3␍␊
[11:18:19:494] E: 440 [DIS]Failed to finalize service update: 1c␍␊
[11:18:19:498] I: 445 [DIS]Updating services using commissioning mode 1␍␊
[11:18:19:503] D: 450 [DL]Using Thread extended MAC for hostname.␍␊
[11:18:19:508] D: 454 [DL]Using Thread extended MAC for hostname.␍␊
[11:18:19:513] I: 459 [DIS]Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1␍␊
[11:18:19:522] E: 468 [DIS]Failed to advertise commissionable node: 3␍␊
[11:18:19:527] E: 473 [DIS]Failed to finalize service update: 1c␍␊
[11:18:19:531] I: 477 [DIS]Delaying proxy of operational discovery: missing delegate␍␊
[11:18:19:537] I: 483 [IN]CASE Server enabling CASE session setups␍␊
[11:18:19:542] D: 488 [IN]SecureSession[0x200035a8]: Allocated Type:2 LSID:65041␍␊
[11:18:19:548] D: 494 [SC]Allocated SecureSession (0x200035a8) - waiting for Sigma1 msg␍␊
[11:18:19:554] I: 500 [SVR]Joining Multicast groups␍␊
[11:18:19:557] D: 504 [ZCL]Emitting StartUp event␍␊
[11:18:19:561] D: 507 [EVL]LogEvent event number: 0x0000000000000001 priority: 2, endpoint id:  0x0 cluster id: 0x0000_0028 event id: 0x0 Sys timestamp: 0x00000000000001FB␍␊
[11:18:19:574] I: 521 [SVR]Server Listening...␍␊
[11:18:19:577] I: 523 [DL]Device Configuration:␍␊
[11:18:19:580] I: 526 [DL]  Serial Number: 11223344556677889900␍␊
[11:18:19:585] I: 531 [DL]  Vendor Id: 65521 (0xFFF1)␍␊
[11:18:19:588] I: 534 [DL]  Product Id: 32768 (0x8000)␍␊
[11:18:19:592] I: 538 [DL]  Hardware Version: 0␍␊
[11:18:19:595] I: 541 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021␍␊
[11:18:19:600] I: 546 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)␍␊
[11:18:19:607] I: 553 [DL]  Manufacturing Date: (not set)␍␊
[11:18:19:611] I: 557 [DL]  Device Type: 65535 (0xFFFF)␍␊
[11:18:19:615] I: 561 [SVR]SetupQRCode: [MT:Y.K9042C00KA0648G00]␍␊
[11:18:19:619] I: 565 [SVR]Copy/paste the below URL in a browser to see the QR Code:␍␊
[11:18:19:625] I: 571 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AY.K9042C00KA0648G00␍␊
[11:18:19:634] I: 580 [SVR]Manual pairing code: [34970112332]␍␊
[11:18:19:639] I: 585 [DL]CHIP task running␍␊
[11:18:19:643] I: 589 [DL]CHIPoBLE advertising started␍␊
[11:18:49:648] I: 30593 [DL]CHIPoBLE advertising mode changed to slow␍␊
[11:20:57:242] I: 158183 [DL]BLE connection established (ConnId: 0x00)␍␊
[11:20:57:250] I: 158187 [DL]Current number of connections: 1/1␍␊
[11:20:57:252] I: 158192 [DL]CHIPoBLE advertising stopped␍␊
[11:21:00:626] I: 161567 [DL]BLE GAP connection terminated (reason 0x13)␍␊
[11:21:00:631] I: 161572 [DL]Current number of connections: 0/1␍␊
[11:21:00:638] I: 161577 [DL]CHIPoBLE advertising started␍␊
[11:21:30:641] I: 191581 [DL]CHIPoBLE advertising mode changed to slow␍␊

I am trying to connect with pair the device to the mobile and every time i need to do whitelist advertising to the paired devices

Parents Reply
  • Hi,

    From the logs we do see: "[11:21:00:626] I: 161567 [DL]BLE GAP connection terminated (reason 0x13)", which indicates that it is a mobile phone which disconnects immediately.

    I have some more questions for you

    1. Can you explain what you mean when you say "pairing"? 
    2. Which apps are you using for the procedure?
    3. Can you link to the guides you've been following? 
    Kind regards,
    Andreas
Children
No Data
Related