Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Thread Border Router Management Cluster support in app. #244

Open
KhushbuShah25 opened this issue Feb 21, 2025 · 0 comments
Open

Need Thread Border Router Management Cluster support in app. #244

KhushbuShah25 opened this issue Feb 21, 2025 · 0 comments

Comments

@KhushbuShah25
Copy link

Issue : Thread Border Router Management Cluster read attribute or invoke command not working with chip libraries.

Background :
I have taken reference from this app and added matter support in an android app.
But to support some custom clusters, I needed to compile connectedhomeip repo and generate chip libraries.

Taken connectedhomeip repo on commit id : 3c6bed3bb28f66cc2e1ebbe3561fa0838f6b7c51
Made changes for custom clusters. Build CHIP libraries for all 4 target_cpu types.
./scripts/build/build_examples.py
--target android-arm-chip-tool
--target android-arm64-chip-tool
--target android-x86-chip-tool
--target android-x64-chip-tool
build

Replace libCHIPController.so files in jnilibs folder (Note : jnilibs available in this project before matter demo sdk was introduced)
Build and run app with the CHIP libraries which has custom cluster support. This is working fine.

Current scenario :
Now, I want Thread Border router management cluster in app. With above libraries read attribute or invoke command is not working.
This cluster was added in this PR and the commit id which I have taken earlier was older than this, so I need to upgrade CHIP libraries.

Taken latest release of v1.4.0.0
Build CHIP libraries for all 4 target_cpu types.
Replace libCHIPController.so files in jnilibs folder.
Build and run app with the latest CHIP libraries.

But seems it has breaking changes. Not able to create session with matter device and fetch matter device info.
Facing multiple errors

methodId is null : getSkipAttestationCertificateValidation, ()Z
java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: no non-static method "Lchip/devicecontroller/ChipDeviceControllerException;.<init>(JLjava/lang/String;)V"

Here are my queries :

  1. How to get new standard clusters support in app ? Is there anyway to get it without updating chip libraries ?
    With older chip libraries which are working, I tried to read attributes value for new Thread Border router management cluster but it is not working.
  2. To upgrade CHIP libraries in android app, what steps need to be done ? I mean after following all steps of custom cluster support and generating libraries, I am replacing libCHIPController.so files. Is this enough or do I need to update any other files ?
    Found this documentation for custom cluster , but didn't find any documentation or steps for Android app to replace CHIP libraries to support custom cluster in app etc.
  3. Also tried to read attribute with "Matter Android Demo SDK", but didn't get success. Is there any plan to update "Matter Android Demo SDK" with new version ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant