project-chip / certification-tool

A test harness and tooling designed to simplify development, testing, and certification for devices, guided by the Connectivity Standards Alliance.
https://csa-iot.org/
Apache License 2.0
28 stars 15 forks source link

[Bug] TestHarness on Linux: CHIP: BLE: No adaptor #158

Open jscarey1 opened 6 months ago

jscarey1 commented 6 months ago

Describe the bug

Attempting to use chip-tool packaged in TH. chip-tool fails to begin commissioning due to No Adapter Available

Steps to reproduce the behavior

No response

Expected behavior

No response

Log files

[1706218624.215723][3475:3477] CHIP:CTL: Setting wifi credentials from parameters [1706218624.215755][3475:3477] CHIP:CTL: Setting attestation nonce to random value [1706218624.215768][3475:3477] CHIP:CTL: Setting CSR nonce to random value [1706218624.215777][3475:3477] CHIP:CTL: Checking ICD registration parameters [1706218624.215786][3475:3477] CHIP:CTL: Commission called for node ID 0x0000000000000001 [1706218624.215799][3475:3477] CHIP:DIS: Closing all BLE connections [1706218624.215825][3475:3477] CHIP:TOO: Pairing Failure: src/platform/Linux/BLEManagerImpl.cpp:664: CHIP Error 0x00000003: Incorrect state [1706218624.215837][3475:3477] CHIP:TOO: Run command failure: src/platform/Linux/BLEManagerImpl.cpp:664: CHIP Error 0x00000003: Incorrect state [1706218624.215851][3475:3477] CHIP:BLE: No adapter available for new connection establishment

PICS file

No response

Screenshots

No response

Environment

TH = v2.10-beta2+spring2024

Additional Information

No response

ccruzagralopes commented 6 months ago

Hi @jscarey1, I believe that the error was actually caused by an Incorrect state. Was the device being commissioned in commissioning mode at the time?

jscarey1 commented 6 months ago

Hello Carlina, Yes the DUT was advertising for Matter over BLE.

On a side note, I am attempting to build Test Harness on a Linux PC (Ubuntu 22.04 LTS) so that I can use the python environment for testing. The environment I am looking to use is outlined in the Matter_TH_User_Guide.adoc section 8.5. On a raspberry pi I can build this with no issue and create custom python scripts that will test all of our implementations. I was hoping, however, to accomplish this without the need to rely on a raspberry pi.

Even better, is there a way to build just the python environment for automated python testing on a Linux system. We are looking to run nightly automated tests that are kicked off by a Jenkins pipeline. Each Cluster, Attribute, Command would be tested in this scenario.

On Mon, Jan 29, 2024 at 2:39 PM Carolina Lopes @.***> wrote:

Hi @jscarey1 https://url.avanan.click/v2/___https://github.com/jscarey1___.YXAzOmJpZ2Fzc2ZhbnM6YTpnOjVhNDNjMzg5MmRhMDZiZTVkYWMzZmVjYzI0OGEyOGE3OjY6NmI1MjowOWY5NGU1NDkwN2EyOGM3MDZiYzYyMTc1NWYwYjQxMjI2YThlZWYwZTRkZWUxNzY4NTcwMTg4ZWJmMWZiMmFmOmg6VA , I believe that the error was actually caused by an Incorrect state. Was the device being commissioned in commissioning mode at the time?

— Reply to this email directly, view it on GitHub https://url.avanan.click/v2/___https://github.com/project-chip/certification-tool/issues/158%23issuecomment-1915428697___.YXAzOmJpZ2Fzc2ZhbnM6YTpnOjVhNDNjMzg5MmRhMDZiZTVkYWMzZmVjYzI0OGEyOGE3OjY6MTQ4NTpkMjJhODgxZTY4NWFiYmE1MTNmNDU1MTQ3ZWQxZmMwMDM1MDQwYWM2YzY5NmQwNDA0M2RkMmFmNmQ5MGM1YjIxOmg6VA, or unsubscribe https://url.avanan.click/v2/___https://github.com/notifications/unsubscribe-auth/ARW7BSWBRHS6KGSVEDZHV33YQ73EHAVCNFSM6AAAAABCMLUDTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJVGQZDQNRZG4___.YXAzOmJpZ2Fzc2ZhbnM6YTpnOjVhNDNjMzg5MmRhMDZiZTVkYWMzZmVjYzI0OGEyOGE3OjY6ZjBjZDo3NWMwMjBmMWM1NDEzYjZjNTNjOTI4ZmQ0NmUwZmU5ODZhZWNmMmRjZDY2MzUwMmEwNmUxMDFhNmFlMGI0NTAwOmg6VA . You are receiving this because you were mentioned.Message ID: @.***>

ccruzagralopes commented 6 months ago

I believe you can achieve that using the SDK repository directly. That's where they python test scripts are hosted and you can run them directly in there, without TH. Maybe @cecille can help you with the setup?

jscarey1 commented 6 months ago

@cecille Is this something you could assist with?

jscarey1 commented 5 months ago

Still waiting for someone to help with this. I cannot find any guides to perform these actions.

ccruzagralopes commented 5 months ago

Maybe you can open an issue in the SDK repository or transfer this one over there. There could be more people over there that has the knowledge you need.

jscarey1 commented 5 months ago

#31927