How can use CHIP tool to commission device by QR code or manual pairing code?

 

        This is my basic information:

        1. SDK version: V2.8.0

        2. Project: Matter Light Bulb

        3. Board: 52840DK

        This is my question:

        I can use this command to commission bulb pass:

        $ ./chip-tool pairing ble-thread <node_id> hex:<operational_dataset> <pin_code> <discriminator>

        But when I use below command instead, bulb has no response:

        $ ./chip-tool pairing code <node_id> <qrcode_payload-or-manual_code>

Parents
  • This is bulb log:

    [2025-09-16 17:43:10.453]
    uart:~$ *** Booting My Application v2.8.0-a2386bfc8401 ***[2025-09-16 17:43:10.453]
    *** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***[2025-09-16 17:43:10.469]
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***[2025-09-16 17:43:10.469]
    I: 39 [DL]BLE address: D4:E5:33:F7:53:6D[2025-09-16 17:43:10.469]
    I: 49 [DL]CHIP task running[2025-09-16 17:43:10.484]
    I: Init CHIP stack[2025-09-16 17:43:10.484]
    I: 55 [DL]OpenThread started: OK[2025-09-16 17:43:10.484]
    I: 58 [DL]Setting OpenThread device type to ROUTER[2025-09-16 17:43:10.500]
    D: Registered new test event: 0xffffffff00000000[2025-09-16 17:43:10.500]
    D: Registered new test event: 0xffffffff10000000[2025-09-16 17:43:10.500]
    I: 72 [SVR]Subscription persistence not supported[2025-09-16 17:43:10.516]
    I: 77 [SVR]Server initializing...[2025-09-16 17:43:10.516]
    I: 80 [TS]Last Known Good Time: 2023-10-14T01:16:48[2025-09-16 17:43:10.516]
    I: 85 [DMG]AccessControl: initializing[2025-09-16 17:43:10.516]
    I: 89 [DMG]Examples::AccessControlDelegate::Init[2025-09-16 17:43:10.531]
    I: 93 [DMG]AccessControl: setting[2025-09-16 17:43:10.531]
    I: 96 [DMG]DefaultAclStorage: initializing[2025-09-16 17:43:10.531]
    I: 100 [DMG]DefaultAclStorage: 0 entries loaded[2025-09-16 17:43:10.531]
    D: 104 [IN]UDP::Init bind&listen port=5540[2025-09-16 17:43:10.547]
    E: 108 [IN]IPV6_PKTINFO failed: 109[2025-09-16 17:43:10.547]
    D: 112 [IN]UDP::Init bound to port=5540[2025-09-16 17:43:10.547]
    D: 115 [IN]BLEBase::Init - setting/overriding transport[2025-09-16 17:43:10.547]
    D: 120 [IN]TransportMgr initialized[2025-09-16 17:43:10.547]
    D: 127 [DL]Using Thread extended MAC for hostname.[2025-09-16 17:43:10.563]
    I: 133 [ZCL]Using ZAP configuration...[2025-09-16 17:43:10.563]
    I: 139 [DMG]AccessControlCluster: initializing[2025-09-16 17:43:10.578]
    D: 143 [DL]Boot reason: 1[2025-09-16 17:43:10.578]
    I: 146 [ZCL]Initiating Admin Commissioning cluster.[2025-09-16 17:43:10.578]
    I: 151 [ZCL]Endpoint 1 On/off already set to new value[2025-09-16 17:43:10.594]
    I: 156 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254[2025-09-16 17:43:10.594]
    D: 163 [IN]SecureSession[0x200036a0]: Allocated Type:1 LSID:43633[2025-09-16 17:43:10.594]
    D: 169 [DL]CHIPoBLE advertising set to on[2025-09-16 17:43:10.609]
    I: 172 [DIS]Updating services using commissioning mode 1[2025-09-16 17:43:10.609]
    E: 178 [DIS]Failed to remove advertised services: 3[2025-09-16 17:43:10.609]
    D: 182 [DL]Using Thread extended MAC for hostname.[2025-09-16 17:43:10.625]
    I: 187 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1 cp=0[2025-09-16 17:43:10.625]
    E: 196 [DIS]Failed to advertise commissionable node: 3[2025-09-16 17:43:10.641]
    E: 201 [DIS]Failed to finalize service update: 3[2025-09-16 17:43:10.641]
    I: 206 [DIS]Updating services using commissioning mode 1[2025-09-16 17:43:10.641]
    E: 211 [DIS]Failed to remove advertised services: 3[2025-09-16 17:43:10.641]
    D: 215 [DL]Using Thread extended MAC for hostname.[2025-09-16 17:43:10.656]
    I: 220 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1 cp=0[2025-09-16 17:43:10.656]
    E: 229 [DIS]Failed to advertise commissionable node: 3[2025-09-16 17:43:10.672]
    E: 234 [DIS]Failed to finalize service update: 3[2025-09-16 17:43:10.672]
    I: 239 [IN]CASE Server enabling CASE session setups[2025-09-16 17:43:10.672]
    D: 244 [IN]SecureSession[0x20003770]: Allocated Type:2 LSID:43634[2025-09-16 17:43:10.688]
    I: 250 [SVR]Joining Multicast groups[2025-09-16 17:43:10.688]
    I: 253 [SVR]Server Listening...[2025-09-16 17:43:10.688]
    I: 256 [DL]Device Configuration:[2025-09-16 17:43:10.688]
    I: 259 [DL]  Serial Number: 11223344556677889900[2025-09-16 17:43:10.703]
    I: 264 [DL]  Vendor Id: 65521 (0xFFF1)[2025-09-16 17:43:10.703]
    I: 267 [DL]  Product Id: 32773 (0x8005)[2025-09-16 17:43:10.703]
    I: 271 [DL]  Product Name: not-specified[2025-09-16 17:43:10.703]
    I: 274 [DL]  Hardware Version: 0[2025-09-16 17:43:10.703]
    I: 277 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021[2025-09-16 17:43:10.719]
    I: 283 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)[2025-09-16 17:43:10.719]
    I: 289 [DL]  Manufacturing Date: 2022-01-01[2025-09-16 17:43:10.719]
    I: 293 [DL]  Device Type: 65535 (0xFFFF)[2025-09-16 17:43:10.734]
    I: 297 [SVR]SetupQRCode: [MT:6FCJ142C00KA0648G00][2025-09-16 17:43:10.734]
    I: 302 [SVR]Copy/paste the below URL in a browser to see the QR Code:[2025-09-16 17:43:10.734]
    I: 308 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00[2025-09-16 17:43:10.750]
    I: 317 [SVR]Manual pairing code: [34970112332][2025-09-16 17:43:10.750]
    E: 321 [DL]Long dispatch time: 269 ms, for event type 2[2025-09-16 17:43:10.766]
    I: 326 [ZCL]Cluster OnOff: attribute OnOff set to 0[2025-09-16 17:43:10.766]
    I: 331 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254[2025-09-16 17:43:10.766]
    I: 339 [DL]CHIPoBLE advertising started[2025-09-16 17:43:10.781]
    I: 343 [DL]NFC Tag emulation started[2025-09-16 17:43:10.781]
    I: 30342 [DL]CHIPoBLE advertising mode changed to slow[2025-09-16 17:43:40.766]
    I: 30349 [DL]CHIPoBLE advertising started[2025-09-16 17:43:40.781]

Reply
  • This is bulb log:

    [2025-09-16 17:43:10.453]
    uart:~$ *** Booting My Application v2.8.0-a2386bfc8401 ***[2025-09-16 17:43:10.453]
    *** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***[2025-09-16 17:43:10.469]
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***[2025-09-16 17:43:10.469]
    I: 39 [DL]BLE address: D4:E5:33:F7:53:6D[2025-09-16 17:43:10.469]
    I: 49 [DL]CHIP task running[2025-09-16 17:43:10.484]
    I: Init CHIP stack[2025-09-16 17:43:10.484]
    I: 55 [DL]OpenThread started: OK[2025-09-16 17:43:10.484]
    I: 58 [DL]Setting OpenThread device type to ROUTER[2025-09-16 17:43:10.500]
    D: Registered new test event: 0xffffffff00000000[2025-09-16 17:43:10.500]
    D: Registered new test event: 0xffffffff10000000[2025-09-16 17:43:10.500]
    I: 72 [SVR]Subscription persistence not supported[2025-09-16 17:43:10.516]
    I: 77 [SVR]Server initializing...[2025-09-16 17:43:10.516]
    I: 80 [TS]Last Known Good Time: 2023-10-14T01:16:48[2025-09-16 17:43:10.516]
    I: 85 [DMG]AccessControl: initializing[2025-09-16 17:43:10.516]
    I: 89 [DMG]Examples::AccessControlDelegate::Init[2025-09-16 17:43:10.531]
    I: 93 [DMG]AccessControl: setting[2025-09-16 17:43:10.531]
    I: 96 [DMG]DefaultAclStorage: initializing[2025-09-16 17:43:10.531]
    I: 100 [DMG]DefaultAclStorage: 0 entries loaded[2025-09-16 17:43:10.531]
    D: 104 [IN]UDP::Init bind&listen port=5540[2025-09-16 17:43:10.547]
    E: 108 [IN]IPV6_PKTINFO failed: 109[2025-09-16 17:43:10.547]
    D: 112 [IN]UDP::Init bound to port=5540[2025-09-16 17:43:10.547]
    D: 115 [IN]BLEBase::Init - setting/overriding transport[2025-09-16 17:43:10.547]
    D: 120 [IN]TransportMgr initialized[2025-09-16 17:43:10.547]
    D: 127 [DL]Using Thread extended MAC for hostname.[2025-09-16 17:43:10.563]
    I: 133 [ZCL]Using ZAP configuration...[2025-09-16 17:43:10.563]
    I: 139 [DMG]AccessControlCluster: initializing[2025-09-16 17:43:10.578]
    D: 143 [DL]Boot reason: 1[2025-09-16 17:43:10.578]
    I: 146 [ZCL]Initiating Admin Commissioning cluster.[2025-09-16 17:43:10.578]
    I: 151 [ZCL]Endpoint 1 On/off already set to new value[2025-09-16 17:43:10.594]
    I: 156 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254[2025-09-16 17:43:10.594]
    D: 163 [IN]SecureSession[0x200036a0]: Allocated Type:1 LSID:43633[2025-09-16 17:43:10.594]
    D: 169 [DL]CHIPoBLE advertising set to on[2025-09-16 17:43:10.609]
    I: 172 [DIS]Updating services using commissioning mode 1[2025-09-16 17:43:10.609]
    E: 178 [DIS]Failed to remove advertised services: 3[2025-09-16 17:43:10.609]
    D: 182 [DL]Using Thread extended MAC for hostname.[2025-09-16 17:43:10.625]
    I: 187 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1 cp=0[2025-09-16 17:43:10.625]
    E: 196 [DIS]Failed to advertise commissionable node: 3[2025-09-16 17:43:10.641]
    E: 201 [DIS]Failed to finalize service update: 3[2025-09-16 17:43:10.641]
    I: 206 [DIS]Updating services using commissioning mode 1[2025-09-16 17:43:10.641]
    E: 211 [DIS]Failed to remove advertised services: 3[2025-09-16 17:43:10.641]
    D: 215 [DL]Using Thread extended MAC for hostname.[2025-09-16 17:43:10.656]
    I: 220 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1 cp=0[2025-09-16 17:43:10.656]
    E: 229 [DIS]Failed to advertise commissionable node: 3[2025-09-16 17:43:10.672]
    E: 234 [DIS]Failed to finalize service update: 3[2025-09-16 17:43:10.672]
    I: 239 [IN]CASE Server enabling CASE session setups[2025-09-16 17:43:10.672]
    D: 244 [IN]SecureSession[0x20003770]: Allocated Type:2 LSID:43634[2025-09-16 17:43:10.688]
    I: 250 [SVR]Joining Multicast groups[2025-09-16 17:43:10.688]
    I: 253 [SVR]Server Listening...[2025-09-16 17:43:10.688]
    I: 256 [DL]Device Configuration:[2025-09-16 17:43:10.688]
    I: 259 [DL]  Serial Number: 11223344556677889900[2025-09-16 17:43:10.703]
    I: 264 [DL]  Vendor Id: 65521 (0xFFF1)[2025-09-16 17:43:10.703]
    I: 267 [DL]  Product Id: 32773 (0x8005)[2025-09-16 17:43:10.703]
    I: 271 [DL]  Product Name: not-specified[2025-09-16 17:43:10.703]
    I: 274 [DL]  Hardware Version: 0[2025-09-16 17:43:10.703]
    I: 277 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021[2025-09-16 17:43:10.719]
    I: 283 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)[2025-09-16 17:43:10.719]
    I: 289 [DL]  Manufacturing Date: 2022-01-01[2025-09-16 17:43:10.719]
    I: 293 [DL]  Device Type: 65535 (0xFFFF)[2025-09-16 17:43:10.734]
    I: 297 [SVR]SetupQRCode: [MT:6FCJ142C00KA0648G00][2025-09-16 17:43:10.734]
    I: 302 [SVR]Copy/paste the below URL in a browser to see the QR Code:[2025-09-16 17:43:10.734]
    I: 308 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00[2025-09-16 17:43:10.750]
    I: 317 [SVR]Manual pairing code: [34970112332][2025-09-16 17:43:10.750]
    E: 321 [DL]Long dispatch time: 269 ms, for event type 2[2025-09-16 17:43:10.766]
    I: 326 [ZCL]Cluster OnOff: attribute OnOff set to 0[2025-09-16 17:43:10.766]
    I: 331 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254[2025-09-16 17:43:10.766]
    I: 339 [DL]CHIPoBLE advertising started[2025-09-16 17:43:10.781]
    I: 343 [DL]NFC Tag emulation started[2025-09-16 17:43:10.781]
    I: 30342 [DL]CHIPoBLE advertising mode changed to slow[2025-09-16 17:43:40.766]
    I: 30349 [DL]CHIPoBLE advertising started[2025-09-16 17:43:40.781]

Children
No Data
Related