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

CHIP Error 0x00000032: Timeout: 50 while reading or subscribe the custom attributes. #45

Open
NagendraMudadla opened this issue Jun 27, 2024 · 2 comments

Comments

@NagendraMudadla
Copy link

suspend fun readAttributes(deviceId: Long){
val devicePtr = chipClient.awaitGetConnectedDevicePointer(deviceId)
val attributePath = ChipAttributePath.newInstance(1L, 145L, 1L)
chipClient.readAttribute(devicePtr, attributePath)
chipClient.subscribeToAttribute(devicePtr, attributePath, 5, 5000,
object : ReportCallback {
override fun onError(
attributePath: ChipAttributePath?,
eventPath: ChipEventPath?,
e: java.lang.Exception?
) {
Log.d(TAG, "subscribeToAttribute : onError ${e}")
}

            override fun onReport(nodeState: NodeState?) {
                Log.d(TAG, "subscribeToAttribute : onReport ${nodeState}")
            }

        })
}

2024-06-27 18:07:33.906 10923-12245 DMG com.espressif.rainmaker D ReportDataMessage =
2024-06-27 18:07:33.906 10923-12245 DMG com.espressif.rainmaker D {
2024-06-27 18:07:33.906 10923-12245 DMG com.espressif.rainmaker D SubscriptionId = 0x8e60f627,
2024-06-27 18:07:33.906 10923-12245 DMG com.espressif.rainmaker D AttributeReportIBs =
2024-06-27 18:07:33.906 10923-12245 DMG com.espressif.rainmaker D [
2024-06-27 18:07:33.906 10923-12245 DMG com.espressif.rainmaker D AttributeReportIB =
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D {
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D AttributeDataIB =
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D {
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D DataVersion = 0x952c7094,
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D AttributePathIB =
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D {
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D Endpoint = 0x1,
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D Cluster = 0x91,
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D Attribute = 0x0000_0001,
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D }
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D Data = 1285.434204,
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D },
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D },
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D ],
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D InteractionModelRevision = 11
2024-06-27 18:07:33.907 10923-12245 DMG com.espressif.rainmaker D }
2024-06-27 18:07:33.909 10923-12245 ControllerCluster com.espressif.rainmaker D subscribeToAttribute : onReport

subscribeToAttribute : onError java.lang.IllegalStateException: ../../src/app/ReadClient.cpp:635: CHIP Error 0x00000032: Timeout: 50

@KhushbuShah25
Copy link
Contributor

Hi @NagendraMudadla ,

Can you give some more details ?

In above code, "145L" is used as a cluster ID.
Is this your custom cluster ?
If yes --> To add custom cluster support, need to build JNI libs and use those in app.

Here are the steps to add custom cluster support in Android app.
https://github.com/espressif/esp-rainmaker-android/blob/master/Matter_CustomCluster.md

@NagendraMudadla
Copy link
Author

Hi @NagendraMudadla ,

Can you give some more details ?

In above code, "145L" is used as a cluster ID. Is this your custom cluster ? If yes --> To add custom cluster support, need to build JNI libs and use those in app.

Here are the steps to add custom cluster support in Android app. https://github.com/espressif/esp-rainmaker-android/blob/master/Matter_CustomCluster.md

Can you share the latest libs and Jnilibs. The latest libs already 145L cluster is available and new clusters also available.

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

2 participants