How To Add A Gateway Into Tuya App
The basic office of a gateway is to catechumen the communication protocols to attain advice between devices with dissimilar protocols. Cloud connection capability and protocol type are two bones attributes of the gateway. For case, 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, then a gateway is required to convert the protocols. And and then, the device can be connected to the deject.
Introduction to solutions
Tuya custom gateway evolution solution helps you from development to mass production of smart gateway products. The downstream protocol blazon of the gateway adult by this solution is fully defined and developed by you. Therefore, the adult gateway tin 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 ii types, gateway MCU and SDK connectedness.
- Gateway MCU: A Tuya module communicates with your MCU through serial ports. The Tuya module provides capabilities of deject connection and sub-device direction. The development of gateway services and protocol types is implemented by your MCU.
Note: The Zigbee gateway does not support the gateway MCU solution.
- SDK connection: You can develop a smart gateway by embedding Tuya'due south lightweight gateway SDK in the device.
Pick of solutions
When you develop a product in the IoT Platform, in Footstep iii Hardware Develop, you can choose either Cloud Connection Way or Gateway Protocol Connection Style.
According to the connection mode you cull, the solution options are shown in the following table:
Cloud connectedness | Gateway protocol connectedness | 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 |
Gateway MCU solution
Overview
-
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 evolution, Tuya too provides mcu_sdk, so you tin can quickly complete the integration development of the serial port protocol.
-
The upstream deject 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.
Features
- Add sub-devices gear up for pairing, and batch adding is supported.
- Remove the connected sub-devices.
- Manage the heartbeat of sub-devices.
- Integrate the grouping and scenario control functions.
- Remote update (Wi-Fi modules, gateway MCU, and sub-devices).
Networking SDK solution
Overview
-
Tuya provides tuya_link_gw_sdk based on the standard Linux system. You can integrate it into the device software to consummate the gateway evolution.
-
tuya_link_gw_sdk runs on your cloud connection chip to implement the upstream cloud connexion adequacy of the gateway. Yous 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 exist developed by yourself.
-
The downstream protocol type of the gateway developed by this solution is fully divers and developed past you. Therefore, the adult gateway can but connect to your self-developed sub-devices and cannot integrate with the sub-devices in the Tuya ecosystem.
Features
- Reliable and like shooting fish in a barrel-to-use Tuya standard information point protocol (DP protocol) to develop various logic functions of the device.
- Tuya cloud connectedness is secured by a 1-key-per-device authentication machinery.
- The well-established gateway, sub-device firmware management, and remote upgrade (OTA) services facilitate the later maintenance of device software.
- Timing execution capabilities of devices that are disconnected from the cloud.
- Safe and reliable device LAN control.
- Local scenario linkage and execution capabilities of the gateway.
- Online condition management of the sub-devices.
- Gateway log direction facilitates afterwards-sales troubleshooting.
Extension SDK solution
Overview
-
Tuya provides standard Linux-based tuya_zigbee_gw_ext_sdk and Zigbee modules. You lot 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 tin directly connect to Zigbee sub-devices in the Tuya ecosystem. As well, you can develop and connect self-developed devices of Zigbee and other protocols. This solution is more powerful and flexible.
Features
Likewise the functions of the gateway networking SDK, the extended functions are equally follows:
- There are a large number of Zigbee sub-devices on the market, and Tuya Zigbee gateway cannot be compatible with Zigbee sub-devices of all manufacturers. Extended functions allow you to integrate third-party Zigbee sub-devices that are not uniform with the Tuya ecosystem.
- Extended functions allow y'all to develop multi-protocol convergence gateways, such equally Zigbee + 443, Zigbee + Z-Wave, and other multi-protocol combinations, and connect non-Zigbee protocol sub-devices to Tuya Cloud.
- Extended functions let you to develop multi-functional gateways to connect to peripherals such as night lights, siren alarms, and accomplish multiple smart scenarios with sensors.
Reference
- SDK GitHub Repository
How To Add A Gateway Into Tuya App,
Source: https://developer.tuya.com/en/docs/iot/gateway-development-solution-overview?id=K9du8z95q5t0n
Posted by: sanderslawen1948.blogspot.com
0 Response to "How To Add A Gateway Into Tuya App"
Post a Comment