espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
178 stars 31 forks source link

Zigbee Gateway or Zigbee Host? (TZ-791) #320

Closed vritzka closed 7 months ago

vritzka commented 7 months ago

Question

Hi, you provide 2 examples:

Zigbee Gateway and Zigbee Host.

I am trying to understand the differences.

Gateway example seems to be better because it allows automatic firmware updates on the ESP32-H2.

But host example has the on/off example running which makes it easier to use.

Which different usage scenarios are those 2 example meant for?

Thank you

Additional context.

No response

xieqinan commented 7 months ago

Hello @vritzka ,

Both the Gateway + RCP and Host + NCP can implement the complete Zigbee stack. As we know, the Zigbee stack includes the following layers. The Gateway + RCP splits the stack into the MAC + PHY layers, while the Host + NCP splits the stack into the APS + NWK layers. Therefore, users can choose the example based on different scenarios.

image

Gateway example seems to be better because it allows automatic firmware updates on the ESP32-H2.

But host example has the on/off example running which makes it easier to use.

These differences only exist in the application layer and depend on the user's implementation. In other words, both automatic firmware updates and on/off operations can be implemented in either the Gateway or Host examples.