Last Updated on : 2024-11-20 08:51:46download
The basic function of a gateway is to convert the communication protocols to achieve communication between devices with different protocols. Cloud connection capability and protocol type are two basic attributes of the gateway. For example, Zigbee gateways and Bluetooth gateways are widely used in the Internet of Things (IoT). Zigbee and Bluetooth are not capable of connecting to the cloud, so a gateway is required to convert the protocols. And then, the device can be connected to the cloud.
Tuya custom gateway development solution helps you from development to mass production of smart gateway products. The downstream protocol type of the gateway developed by this solution is fully defined and developed by you. Therefore, the developed gateway can only connect to your self-developed sub-devices and cannot integrate with the sub-devices in the Tuya ecosystem. Custom development solutions are divided into two types, gateway MCU and SDK connection.
Note: The Zigbee gateway does not support the gateway MCU solution.
When you develop a product in the Developer Platform, in Step 3 Hardware Develop, you can choose either Cloud Connection Mode or Gateway Protocol Connection Mode.
According to the connection mode you choose, the solution options are shown in the following table:
Cloud connection | Gateway protocol connection | Applicable solution |
---|---|---|
Tuya standard module + MCU | Not manage Tuya device | Gateway MCU solution |
Connect with gateway SDK | Not manage Tuya device | Networking SDK solution |
Connect with gateway SDK | Tuya module of gateway protocol | Extension SDK solution |
Tuya provides a Wi-Fi module that is programmed with standard gateway firmware. This module outputs gateway capabilities through the Tuya Gateway MCU Access Communication Protocol. You need to develop the master control MCU program according to the serial port protocol. For rapid development, Tuya also provides mcu_sdk, so you can quickly complete the integration development of the serial port protocol.
The upstream cloud connection capability of the gateway is provided by the Tuya standard gateway Wi-Fi module, and the downstream protocol type of the gateway is implemented by your MCU.
Tuya provides tuya_link_gw_sdk based on the standard Linux system. You can integrate it into the device software to complete the gateway development.
tuya_link_gw_sdk runs on your cloud connection chip to implement the upstream cloud connection capability of the gateway. You can implement the downstream protocol type of the gateway.
tuya_link_gw_sdk encapsulates the general interface of Tuya’s standard gateway. The specific functions must be developed by yourself.
The downstream protocol type of the gateway developed by this solution is fully defined and developed by you. Therefore, the developed gateway can only connect to your self-developed sub-devices and cannot integrate with the sub-devices in the Tuya ecosystem.
Tuya provides standard Linux-based tuya_zigbee_gw_ext_sdk and Zigbee modules. You can integrate them into the device to complete the gateway development.
Compared with the networking SDK integration solution of the gateway, in this solution, Tuya provides a Zigbee module that is programmed with Tuya gateway firmware. The module acts as a Zigbee network coordinator and can directly connect to Zigbee sub-devices in the Tuya ecosystem. Also, you can develop and connect self-developed devices of Zigbee and other protocols. This solution is more powerful and flexible.
Besides the functions of the gateway networking SDK, the extended functions are as follows:
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback