connectedhomeip: After device reboot, chip-device-ctrl can't communicate with the device

Problem

sequence

Using the chip-device-ctrl, after successful pairing we can control a Matter object but if the object reboot we can’t communicate with him anymore.

Steps to reproduce:

  1. Use chip-device-ctrl to pair the device and control the on/off cluster:
ble-scan
connect -ble 3842 20202021 1
close-ble
resolve 1
zcl OnOff Off 1 1 1
zcl OnOff On 1 1 1
  1. Reboot the device
  2. In the same chip-device-ctrl window, try again to control the on/off cluster of the device
zcl OnOff Off 1 1 1
zcl OnOff On 1 1 1
  1. The packet is dropped in the device side and there are timeouts in chip-device-ctrl

chip-device-ctrl logs:

chip-device-ctrl > zcl OnOff Off 1 1 1
[1639486338.282969][86381:86387] CHIP:IN: Prepared encrypted message 0x1714a18 to 0x0000000000000001 (1)  of type 0x8 and protocolId (0, 1) on exchange 7266i with MessageCounter:3.
[1639486338.283038][86381:86387] CHIP:IN: Sending encrypted msg 0x1714a18 with MessageCounter:3 to 0x0000000000000001 (1) at monotonic time: 18517277 msec
[1639486343.250253][86381:86387] CHIP:IN: Sending encrypted msg 0x1714a18 with MessageCounter:3 to 0x0000000000000001 (1) at monotonic time: 18522245 msec
[1639486343.252646][86381:86387] CHIP:DL: Avahi resolve found
[1639486343.252733][86381:86387] CHIP:DIS: Node ID resolved for 0x0000000000000001
[1639486343.252758][86381:86387] CHIP:DIS:     Addr 0: [192.168.1.41]:5540
[1639486343.252776][86381:86387] CHIP:CTL: OperationalDiscoveryComplete for device ID 0x0000000000000001
Commissioning complete
[1639486343.252937][86381:86387] CHIP:CTL: Address resolved for node: 0x0000000000000001
Node address has been updated
[1639486343.504758][86381:86387] CHIP:IN: Sending encrypted msg 0x1714a18 with MessageCounter:3 to 0x0000000000000001 (1) at monotonic time: 18522499 msec
[1639486343.761600][86381:86387] CHIP:IN: Sending encrypted msg 0x1714a18 with MessageCounter:3 to 0x0000000000000001 (1) at monotonic time: 18522756 msec
[1639486344.017509][86381:86387] CHIP:EM: Failed to Send CHIP MessageCounter:3 on exchange 7266i sendCount: 3 max retries: 3
[1639486350.285598][86381:86387] CHIP:DMG: Time out! failed to receive invoke command response from Exchange: 7266i
An exception occurred during process ZCL command:
Chip Stack Error 50
chip-device-ctrl >

esp32 logs:

E (12378) chip[IN]: Data received on an unknown connection (2). Dropping it!!
E (17348) chip[IN]: Data received on an unknown connection (2). Dropping it!!
E (17598) chip[IN]: Data received on an unknown connection (2). Dropping it!!
E (17858) chip[IN]: Data received on an unknown connection (2). Dropping it!!

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 22 (15 by maintainers)

Most upvoted comments

@plan44 the mechanism is not in place yet, but should be for v1, we hope.