Contact Us
Log In
Contact Us
Log In
Go to main website
App Develop

App Development Platform

App development platform provides multiple development methods such as no-code or IoT App SDK development to maximize the monetization of IoT apps.

TuyaOS Pro-Code Development

Last Updated on : 2021-09-07 09:25:46download

TuyaOS, a lightweight IoT operating system, is built for IoT devices and capable of interconnection, secure transmission, component building, and quick development. TuyaOS can be deployed to IoT devices across various fields, such as electrical and lighting products, home appliances, security cameras, control panels, gateways, sensors, as well as industrial and agricultural devices.

TuyaOS pro-code solution allows you to develop IoT-enabled products in different approaches, including no-code, MCU SDK, module SDK, and Link SDK. You can choose any one of the development methods that best suit your product features and development capabilities to connect your product to the Tuya IoT Cloud.

Development method

TuyaOS pro-code solution provides the following development methods.

Development method Applicable to Description
No-code Products whose features can be standardized, such as electrical and lighting products, and sensors. Tuya provides an easy-to-use graphic interface that lets you develop fully functional firmware for your smart products without writing a line of code.
MCU SDK Products using MCUs. The MCU SDK encapsulates code for device-to-cloud communication, OTA updates, and data parsing. You can port the SDK to your MCU for interface adaptation and call interfaces to implement the required functionality.
Module SDK Space-constrained products that can be implemented through secondary development on the module. The module SDK encapsulates interface functions that are implemented in the hardware abstraction layer (HAL), system layer, network layer, and OTA updates. You can directly call these interfaces to write application code without taking care of the logic behind it.
Gateway SDK Gateway devices that can connect sub-devices to the cloud, supporting protocols including Sub-G, Modbus, CAN bus, RS-485, Bluetooth Low Energy, and Zigbee. Tuya provides MCU SDK, gateway networking SDK, and gateway extension SDK to address your different needs for developing smart gateways.
IPC SDK IP camera products. The chip-platform-based IPC SDK encapsulates the code for features including audio and video, P2P, device control, and OTA updates. You can integrate the SDK into your current devices and call interfaces to write application code without taking care of the logic behind it.
QR SDK Products with screens. The SDK is built on top of your chip platform and toolchain and includes a dynamic-link library(.so) or static library (.a). You can integrate the SDK into your current devices and call interfaces to write application code. This way, your devices can be paired with a mobile app and connected to the Tuya IoT Cloud.
Link SDK Any devices that support the TCP/IP protocol stack. Link SDK provides core capabilities such as device connection, upstream and downstream communication, and OTA updates, which are independent of platforms and operating systems. You can connect devices to the Tuya IoT Cloud through interface adaptation.

Development process

TuyaOS Pro-Code Development

Step 1: Create a product

This section briefly describes how to create a smart product on the Tuya IoT Platform. For more information, see Create Products.

  1. Log in to the Tuya IoT Platform.

  2. Select a solution and protocol. In the following example, we select Wi-Fi and Bluetooth as the protocol.

    • Solution: Select No-Code Development for the no-code development method and Custom Solution for other development methods.
    • Protocol: It determines the communication protocol and network module selection.

    TuyaOS Pro-Code Development

  3. See Standard Functions and Custom Functions and select functions for your product.

    A data point (DP) is an abstract representation of a product function. Tuya provides all products with standard DPs. You can select DPs based on your requirement.

    TuyaOS Pro-Code Development

  4. See Design App UI and configure a control panel.

    In the mobile app, the user interface to control a smart device is called a panel. Tuya provides up to 100 types of free all-in-one panels, which allow you to edit UI components to build a personalized panel. Tuya also provides customization services to help you build a custom panel as per your requests.

  5. Download development documents.

    The Tuya IoT Platform recommends modules to you based on your product and protocol. You can place an order for the modules online. For more information about the module specification, see Network Modules.

    TuyaOS Pro-Code Development

Step 2: Write code

After a product is created, you can purchase a sample module and development board, download the SDK, and start embedded programming and debugging.

TuyaOS Pro-Code Development

The SDK includes several demos for your reference. The documentation of each development method and IoT projects in the Project Hub will help in your development.

TuyaOS Pro-Code Development

Step 3: Flash firmware and authorize chip

Flash the device with the firmware and Tuya’s license to connect the device to the Tuya IoT Cloud.

Tuya provides two options for flashing to meet different requirements of development methods.

  • Flashing by Tuya

    For the no-code and MCU SDK development methods, you will get modules that are flashed with firmware and license by Tuya. This way, you can use the module directly.

  • Flashing on your side

    For other development methods, you need to flash the firmware and license and verify the code by yourself. The flashing methods vary depending on the chip platform. For more information, see the documentation in the Flash And Authorize catalog.

Step 4: Test functions

You can check the log query on the Tuya IoT Platform for troubleshooting. For more information, see Log query.

Step 5: OTA updates

The Tuya IoT Platform provides multiple update methods. You can upload required firmware updates and complete the deployment settings. Then, an OTA update will be deployed to your users. For more information, see Update Firmware.

This section contains the following topics to help you quickly understand related concepts and how-to guides: