Docs

Solution Overview

Last Updated on : 2020-10-07 11:22:38download

Advantages

  • Quick development capability

    After the device is connected to the Internet, third-party client-terminal (app) developers of hardware manufacturers or device purchasers can use the Open API or SDK provided by Cloud Development Platform to quickly develop native applications (Android/iOS) and web applications, such as WeChat mini programs, SaaS backends, and cloud platforms.

  • Convenient device linkage

    All IoT devices connected to Tuya Cloud can be controlled by the cloud through authorized API calls. Developers can develop the devices groups’ internal business logic by calling APIs. Device status monitoring is opened in the form of message queues to enable third-party developers to monitor device status and to achieve the interconnect between different devices.

  • Powerful cross-platform capabilities

    Tuya AI+IoT Development Platform has achieved the cross-chip platform and cross-communication platform capabilities. Tuya Smart supports up to seven mainstream communication protocols, including Wi-Fi, BLE, BLE Mesh, Zigbee, NB-IoT, GPRS, and Sub-G. Among them, Tuya Smart also supports both 2.4G and 5G dual-band Wi-Fi connection technology.

  • Different connection mode

    Cloud Development Platform provides devices of different categories and of various communication standards to support manufacturers’ application in home, business, and all other scenarios. Cloud Development Platform with the help of Tuya’s IoT services, provides multiple connection modes based on user needs.

    • Simple mode (implicit authorization)

    Tuya Cloud provides a connection method based on the OAuth 2.0 protocol. Developers can apply for cloud API on the Tuya AI+IoT Development Platform, and then follow the Tuya OpenAPI interface guidelines to call Tuya OpenAPI. By doing so, the authorized developer can obtain user and device data, and control the device.

    Note: For example, developers on the platform can authorize their Tuya Smart app user accounts on the IoT Console (or create OEM applications and products), and collect user and their device data through the platform account.

    • Authorization code mode (explicit authorization)

    After the cloud API key is deployed on the Cloud Development Platform, developers can call the Tuya open interfaces based on the Tuya OpenAPI interface guideline and collect authorized resource data.

    Note: The authorization code method is mainly used in cloud integration cases where OEM applications are not created on the Tuya AI+IoT Development Platform.

  • Multi-dimensional data association method

    Cloud Development Platform also supports multi-dimensional data association methods.

    • Scan Tuya Smart app to authorize association

    Download, install, and register on the Tuya Smart app. Then, bind the device and scan the code to grant authorization to the developer. The developer will obtain the operation permission of the device under his or her account.

    • Application association

    The device, bounded with a user, belongs to the application created by the developer in Tuya Cloud, and the developer has the operating permission of such devices. For example, if devices are paired through Tuya OEM app or the app developed based on the Tuya App SDK, developers can manage such devices through API.

    • Product association

    The product belongs to the developer’s Tuya Cloud IoT account, and the developer has the operating permission of such devices. For example, create a product on the Tuya AI+IoT Development Platform (IoT Console) and purchase the corresponding module to generate it. After the network is configured for such devices, the specific device list can be queried based on the product ID through the API. Then, data subscription monitoring or API control can be carried out.

    • Association through mini program SDK

    The device configures the network through WeChat mini program SDK. The mini program SDK is associated with the developer’s cloud applications, and the developer has the operating permission of such devices. For example, create a mini program SDK on the Tuya AI+IoT Development Platform, associate cloud applications in Cloud Development, and finally, use its devices whose network has been configured.

    • Association through authorization code mode

    The user grants the corresponding device permission to the third-party developer through the authorization code mode. The developer indirectly obtains the operating permission of these devices. For example, if a third-party platform user has an account in the Tuya Cloud system (assuming an account has been registered in the Tuya public version app), you can grant the device permission in the Tuya Cloud system to the third-party application platform. Then, the third-party application platform has the user’s relevant permissions and can control and manage the devices.

Types of solutions

Solution Overview

Solution 1: OEM app and simple mode

Solution Flow Chart

Solution Overview

Features

  • Based on the Tuya OEM app, Tuya Cloud can be connected on-demand. Commands can be sent to devices through Tuya Cloud.
  • The device and the app are connected to Tuya Cloud at the same time, and all requests of the device and the app are sent to Tuya Cloud.
  • The customer has ownership over the user group and the device data. The customer can manage user data and device info based on Tuya OpenAPI, execute commands such as timing setting, scene-setting, and obtain analysis data.

Services provided by Tuya

  • Public version OEM app or custom app development plan.
  • Provide product category-based standard command sets, which can control different models of devices in the same category on the Tuya AI+IoT Development Platform.
  • Provide standard OpenAPI to manage user and device data, and provide a message queue for customers to collect real-time device data.

Strengths

  • With low cost and fast development, the solution can quickly be deployed to support the connection of multi-category devices under the Tuya solution.
  • To fully take advantage of all the functions of the Tuya AI+IoT Development Platform.
  • Quickly bring products to the market.
  • Data can be collected from the Tuya AI+IoT Development Platform for analysis and complex scene development as needed.

Solution 2: full SDK connection and simple mode

Solution Flow Chart

Solution Overview

Services provided by Tuya

  • Provide full spectrum app SDK.
  • Provide OpenAPI to complete other functions such as user connection, device discovery, and device control.
  • Provide category-based standard command sets, which can control the devices in the Tuya AI+IoT Development Platform by category or model.
  • Provide a message queue for customers to obtain real-time device data.

Features

  • Develop an app based on Tuya SDK.
  • It has an independent account system, and the account system data is stored in a private cloud.
  • Make full use of all the functions of the Tuya AI+IoT Development Platform.
  • Data can be collected from the Tuya AI+IoT Development Platform for data analysis as needed.

Solution 3: lightweight SDK connection and simple mode

Solution Flow Chart

Solution Overview

Services provided by Tuya

  • Provide lite version app SDK.
  • Provide OpenAPI to complete other functions such as user connection, device discovery, and device control.
  • Provide category-based standard command sets, which can control different models of devices in the same category on the Tuya AI+IoT Development Platform.
  • Provide a message queue for customers to obtain real-time device data.

Features

  • Based on Tuya Lite SDK and user-developed apps, this solution has the least dependency on SDK.
  • It has an independent account system, and the account system data is stored in a private cloud.
  • Data can be collected from the Tuya AI+IoT Development Platform for data analysis as needed.
  • DO NOT support real-time device status change push to the app. Real-time push depends on the capabilities of the partner’s cloud.
  • You need to develop your own device control panel or use DeepLink technology.

Strengths

  • Self-developed apps by users, with low dependence on external apps.

Weaknesses

  • App development workload is heavy.
  • Device status changes cannot be pushed to the app in real-time, and users need to provide their own message notification capabilities.
  • The control link is too long, and the control experience is lower than that of Solution 1 and Solution 2.
Click for services and help