project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.3k stars 1.95k forks source link

[Matter1.2 TH] Failed to do ble-thread commissioning with chip-all-cluster-app #31202

Open lion6420 opened 8 months ago

lion6420 commented 8 months ago

Reproduction steps

We are doing the Matter certification test (TC-CNET-4.21) using TH Fall2023 image We have 2 raspberry-pi, one for controller (chip-tool), another for ble-thread device and thread border router (chip-all-cluster-app) Here is our topology: Raspberry-pi A (chip-tool) ---- (ble-thread) ---- Raspberry-pi B with Nordic USBDongle (device)

We always get the pairing failure when trying to ble-thread commission to each other. Here is our step:

Step1: Enable the OTBR on raspberry-pi B

ubuntu@ubuntu:~$ ./chip-certification-tool/scripts/OTBR/otbr_start.sh

Step2: Start the chip-all-cluster-app using the following command on raspberry-pi B

ubuntu@ubuntu:~$ ./apps/chip-all-cluster-app --thread

Step3: Start ble-thread commissioning using the following command on raspberry-pi A

ubuntu@ubuntu:~/apps$ ./chip-tool pairing ble-thread 1 hex:0e08000000000001000035060004001fffe00708fd803b410da1d8fe041057d4bd02fc6c1e441f0f573aefa4c1b70c0402a0f7f8000300001901025b3502085b35dead5b35beef030435623335051000112233445566778899aabbccddeeff 20202021 3840

And we got the error. chip-tool

[1696912690.636814][2196:2198] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007
[1696912690.636898][2196:2198] CHIP:CTL: Received ConnectNetwork response, networkingStatus=12
[1696912690.636985][2196:2198] CHIP:CTL: Error on commissioning step 'ThreadNetworkEnable': 'src/controller/CHIPDeviceController.cpp:2301: CHIP Error 0x000000AC: Internal error'
[1696912690.637037][2196:2198] CHIP:CTL: Failed to perform commissioning step 25
[1696912690.637098][2196:2198] CHIP:CTL: Going from commissioning step 'ThreadNetworkEnable' with lastErr = 'src/controller/CHIPDeviceController.cpp:2301: CHIP Error 0x000000AC: Internal error' -> 'Cleanup'
[1696912690.637169][2196:2198] CHIP:CTL: Performing next commissioning step 'Cleanup' with completion status = 'src/controller/CHIPDeviceController.cpp:2301: CHIP Error 0x000000AC: Internal error'
[1696912690.637227][2196:2198] CHIP:CTL: Successfully finished commissioning step 'Cleanup'

chip-all-cluster-app

[1703831216.885126][81577:81577] CHIP:DMG: AccessControl: checking f=1 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0031 e=0 p=a
[1703831216.885173][81577:81577] CHIP:DMG: AccessControl: implicit admin (PASE)
[1703831216.885219][81577:81577] CHIP:DMG: Received command for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0006
[1703831216.888354][81577:81577] CHIP:DL: openthread: _SetThreadEnabled calling Reset failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name io.openthread.BorderRouter.wpan0 was not provided by any .service files
[1703831216.888462][81577:81577] CHIP:DMG: Command handler moving to [ Preparing]
[1703831216.888517][81577:81577] CHIP:DMG: Command handler moving to [AddingComm]
[1703831216.888567][81577:81577] CHIP:DMG: Command handler moving to [AddedComma]

Here is the full log chip-all-cluster-app_log.txt chip-tool_log.txt

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

TH Fall2023 Sha: 3f84bff5

Platform

raspi

Platform Version(s)

No response

Anything else?

No response

cjandhyala commented 7 months ago

if you are using all-cluster-app on Raspi for thread provisioning, QA never tested that combination and I don't think it is supported. if you are trying to bring-up a thread device, pls bring it up on nordic/si-labs or any other thread platform that's available in the Matter SDK.