espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
173 stars 29 forks source link

rcp crashed if too many devices or reports (TZ-1236) #459

Closed Kris151 closed 2 weeks ago

Kris151 commented 1 month ago

Answers checklist.

IDF version.

v5.3

esp-zigbee-lib version.

1.5.0

esp-zboss-lib version.

1.5.0

Espressif SoC revision.

rcp:c6 host:esp32

What is the expected behavior?

Works normally

What is the actual behavior?

W(81263) OPENTHREAD:[W] P-RadioSpinel-: radio tx timeout E(81263) OPENTHREAD:[C] P-RadioSpinel-: Failed to communicate with RCP - no response from RCP during initialization E(81263) OPENTHREAD:[C] P-RadioSpinel-: This is not a bug and typically due a config error (wrong URL parameters) or bad RCP image: E(81273) OPENTHREAD:[C] P-RadioSpinel-: - Make sure RCP is running the correct firmware E(81283) OPENTHREAD:[C] P-RadioSpinel-: - Double check the config parameters passed as RadioURL input E(81293) OPENTHREAD:[C] Platform------: HandleRcpTimeout() at radio_spinel.cpp:1899: RadioSpinelNoResponse

Steps to reproduce.

1.Flash gateway host to esp32 2.Flash ot_rcp to esp32c6 3.Follow the gateway setup

  1. Permit gateway join devices
  2. Let multiple end devices (more than 15) enter commissioning mode at the same time

More Information.

I am building a gateway, and I need to com 90 devices to 1 gateway. When I com devices at the same time, it is easy to trigger the issue and the gateway is crashed. But I can com them 1 by 1(permit join, com 1 device, end permit join). However, if I keep many devices on, and receive a lot reports, it will crashed sometimes. How can I improve the performance, it is really unstable right now.

xieqinan commented 3 weeks ago

@Kris151 ,

Could you please test again with the below configurations?

Kris151 commented 2 weeks ago

@xieqinan,

We did increase the buffer, but it doesn't help a lot. However, we change rcp to another co-processor and now the gateway works fine so I am closing the issue. Thanks.