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

[ Android App] Cluster Interaction Tool commands and Sensor Cluster commands fails or app crashes (exits). #15637

Closed
shivani-tipnis opened this issue Feb 28, 2022 · 2 comments · Fixed by #15919

Comments

@shivani-tipnis
Copy link

shivani-tipnis commented Feb 28, 2022

Problem
Following commands fail or app crashes (exits) -

Cluster Interaction Tool commands -

  • Color Control (Write Attribute) [ app crashes and exits ]
  • Level Control (Read and Write Attribute) [ app crashes and exits ]
  • OTA provider/OTA requestor [ app crashes and exits ]

Sensor Clusters commands -

  • Read Pressure : returns fail

Expected behavior

  • Cluster Interaction Tool commands and Sensor Cluster commands should pass. app should not crash and exit out.

Actual behavior

  • Cluster Interaction Tool commands and Sensor Cluster commands fails or app crashes (exits).

Steps to reproduce

  • Compile and flash app onto device
  • Commission device using Android chip tool app using Commission with Wifi
  • Run command (for eg. Read/Write Level Control commands)
  • Run Cluster Interaction Tool Commands (mentioned above which are failing)

System configuration

  • CHIP commit id: 4668421
  • App: all_clusters_app
  • Device: esp32devkit-c
  • Android App: App built on the above mentioned CHIP commit id.

Device (esp32-devkitc) Logs:

android_app_device_esp32devkitc_logs.pdf

@dhrishi
Copy link
Contributor

dhrishi commented Mar 1, 2022

@andy31415 Can you please assign to someone appropriate?

@Litome
Copy link
Contributor

Litome commented Mar 7, 2022

I think I had the same issue.
In the log I could see this:
2022-03-03 16:05:14.326 16902-17436/com.google.chip.chiptool E/CTL: Error resolving node id: /Users/<username>/Repositories/References/ConnectedHomeIP/src/platform/android/DnssdImpl.cpp:259: CHIP Error 0x000000A6: Unknown resource ID
I tracked it down to l.226 in file /Users//Repositories/References/ConnectedHomeIP/src/platform/android/DnssdImpl.cpp:
VerifyOrReturn(address != nullptr && port != 0, dispatch(CHIP_ERROR_UNKNOWN_RESOURCE_ID));
Commenting out this check solved the issue and allowed me to commission a Matter device and successfully use onoff and temperaturemeasurement cluster_name calls from the Android app built from master at commit 235a4ac.

Litome pushed a commit to Litome/connectedhomeip that referenced this issue Mar 7, 2022
Litome pushed a commit to Litome/connectedhomeip that referenced this issue Mar 8, 2022
Litome pushed a commit to Litome/connectedhomeip that referenced this issue Mar 9, 2022
Litome pushed a commit to Litome/connectedhomeip that referenced this issue Mar 9, 2022
Litome pushed a commit to Litome/connectedhomeip that referenced this issue Mar 11, 2022
bzbarsky-apple pushed a commit that referenced this issue Mar 18, 2022
…. (#15919)

* [Android] Fix CHIPTool cluster cmds fail or app crashes (Issue #15637).

* [Android] Fix expression in verification instead of commenting out the verification.

* Restyled by clang-format

* [Android] Fix merge issue and revert un-necessary changes to verification expression

Co-authored-by: Lisandre Taylor <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
ArekBalysNordic pushed a commit to ArekBalysNordic/connectedhomeip that referenced this issue Mar 18, 2022
…t-chip#15637). (project-chip#15919)

* [Android] Fix CHIPTool cluster cmds fail or app crashes (Issue project-chip#15637).

* [Android] Fix expression in verification instead of commenting out the verification.

* Restyled by clang-format

* [Android] Fix merge issue and revert un-necessary changes to verification expression

Co-authored-by: Lisandre Taylor <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
andrei-menzopol pushed a commit to andrei-menzopol/connectedhomeip that referenced this issue Apr 14, 2022
…t-chip#15637). (project-chip#15919)

* [Android] Fix CHIPTool cluster cmds fail or app crashes (Issue project-chip#15637).

* [Android] Fix expression in verification instead of commenting out the verification.

* Restyled by clang-format

* [Android] Fix merge issue and revert un-necessary changes to verification expression

Co-authored-by: Lisandre Taylor <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
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

Successfully merging a pull request may close this issue.

3 participants