espressif / esp-matter

Espressif's SDK for Matter
Apache License 2.0
645 stars 150 forks source link

Matter-Zigbee Bridge implementation using ESP Zigbee Gateway devkit(ESP32S3 + ESP32H2) (CON-1273) #1024

Closed Shivi-6 closed 1 month ago

Shivi-6 commented 1 month ago

Describe the question/query that you have Using USB-to-C cable to connect ESP32H2, flashed ot_rcp example from esp-idf/examples/openthread Removed cable from ESP32H2 and connected to ESP32S3, flashed Zigbee_bridge example from esp-matter/examples

On monitoring while connected to ESP32S3 usb port using idf.py -p /dev/ttyACM0 monitor, I am getting the error E (1552) ZB_ESP_PLATFORM: esp_zb_platform_config(55): host mode uart not supported

I am a total newbie to this so I don't know if I am doing this right. Please let me know what is the issue and how can I resolve this and what are the next steps to configure this devkit as a zigbee bridge.

DejinChen commented 1 month ago

Could you check the host_connection_mode in app_zboos.h? It should be ZB_HOST_CONNECTION_MODE_NONE in the latest esp-matter example. You can follow the README in zigbee_bridge to test.

Shivi-6 commented 1 month ago

Hi @DejinChen , I checked app_zboss.h. host_connection_mode is set to ZB_HOST_CONNECTION_MODE_NONE.

I am following the README only for the steps. I did not change any configurations but the error is still there.

DejinChen commented 1 month ago

Hi @Shivi-6 Are your idf on master branch? If so, may checkout idf release/v5.3 or other branch before.

Shivi-6 commented 1 month ago

@DejinChen Thanks for your response. with v5.3, the error is now resolved.

See log : I(7837) OPENTHREAD:[I] P-SpinelDrive-: co-processor reset: RESET_POWER_ON E(7837) OPENTHREAD:[C] P-SpinelDrive-: Software reset co-processor successfully W OPENTHREAD:n[W] P-RadioSpinel-: Error processing result: NotImplemented W(7857) OPENTHREAD:[W] P-RadioSpinel-: Error waiting response: NotImplemented I (7857) ZB_ESP_SPINEL: Radio spinel workflow register successfully I (7877) esp_zboss: status: -1 I (7877) esp_zboss: Zigbee stack initialized W(7887) OPENTHREAD:[W] P-RadioSpinel-: Error processing result: NotImplemented W(7887) OPENTHREAD:[W] P-RadioSpinel-: Error waiting response: NotImplemented I (7907) esp_zboss: status: 0 I (7907) esp_zboss: Start network formation I (7907) esp_zboss: Formed network successfully I (7907) esp_zboss: ieee extended address: 74:4d:bd:ff:fe:61:7c:3d, PAN ID: 0xbb0d) I (8087) wifi:idx:0 (ifx:0, 9c:a2:f4:5c:a3:e7), tid:0, ssn:14, winSize:64 I (8497) esp_zboss: status: 0 I (8497) esp_zboss: Network steering started

Now I am not sure what the next step is.. In Readme, it directly talks about post commissioning but how do I commission the bridge?

DejinChen commented 1 month ago

Follwing commissioning with chip-tool, or you can commission it with Apple Home or other matter ecosystem.

Shivi-6 commented 1 month ago

Thanks to your help, I was able to realize matter bridge.