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.43k stars 1.99k forks source link

[Android] Fail to commission due to PASESession timed out #33147

Open franmontiel opened 5 months ago

franmontiel commented 5 months ago

Reproduction steps

In Android, when commissioning Matter devices we are facing a recurrent issue that make the commissioning to fail due to a timeout when sending PBKDF param request.

When calling chipDeviceController.establishPaseConnection method we see the following error happening randomly (but quite frequently).

Sent PBKDF param request
Retransmitting MessageCounter:147474955 on exchange 11302i Send Cnt 1
Retransmitting MessageCounter:147474955 on exchange 11302i Send Cnt 2
Retransmitting MessageCounter:147474955 on exchange 11302i Send Cnt 3
Retransmitting MessageCounter:147474955 on exchange 11302i Send Cnt 4
Failed to Send CHIP MessageCounter:147474955 on exchange 11302i sendCount: 4 max retries: 4
PASESession timed out while waiting for a response from the peer. Expected message type was 33

This is happening in all Android versions we tested and with different builds of the CHIP library (v1.2.0.1, and multiple builds taking current HEAD at the moment on main branch).

Platform

android, core (please add to version below)

Platform Version(s)

No response

Type

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

No response

Anything else?

No response

law-ko commented 3 months ago

We are facing this issue as well. Following Google's sample app for Matter