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.
On esp32, On-Network commissioning fails, using both python controller and chip-tool
Steps to reproduce :
Set Rendezvous mode to BLE/On-Network
Set full commissioning mode = 1
Set SSID and password
Build all-clusters-app and flashed the code.
Failed log on the device side
E (24238) chip[DL]: Long dispatch time: 220 ms, for event type 32782
I (123018) chip[EM]: Received message of type 0x20 with vendorId 0x0000 and protocolId 0x0000 on exchange 1573
V (123018) chip[EM]: ec id: 1573, Delegate: 0x0x0
E (123028) chip[EM]: OnMessageReceived failed, err = Error CHIP:0x0000002F
I (127918) chip[EM]: Received message of type 0x20 with vendorId 0x0000 and protocolId 0x0000 on exchange 1573
V (127928) chip[EM]: ec id: 1573, Delegate: 0x0x0
E (127938) chip[EM]: OnMessageReceived failed, err = Error CHIP:0x0000002F
I (128228) chip[EM]: Received message of type 0x20 with vendorId 0x0000 and protocolId 0x0000 on exchange 1573
V (128228) chip[EM]: ec id: 1573, Delegate: 0x0x0
E (128248) chip[EM]: OnMessageReceived failed, err = Error CHIP:0x0000002F
I (128438) chip[EM]: Received message of type 0x20 with vendorId 0x0000 and protocolId 0x0000 on exchange 1573
V (128438) chip[EM]: ec id: 1573, Delegate: 0x0x0
E (128448) chip[EM]: OnMessageReceived failed, err = Error CHIP:0x0000002F
Failed log on python controller
chip-device-ctrl > connect -ip 192.168.28.42 20202021 12344321
Device is assigned with nodeid = 12344321
[1631114178.090247][158535:158543] CHIP:EM: Failed to Send CHIP MsgId:00000000 sendCount: 3 max retries: 3
Failed to establish secure session to device: 50
[1631114202.387127][158535:158543] CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33
Failed to establish secure session to device: 50
CHIP Error 0x00000032: Timeout
The PASE session is the point of failure.
Necessary handlers for PASE sessions don't get register with commissioning mode as On-Network
Problem
On-Network