English
English
简体中文
Contact Us
Register
Log In
Language
English
English
简体中文
Contact Us
Log In
Register
Go to main website
App Develop

App Development

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

TuyaOS Development

Last Updated on : 2021-10-26 01:56:40download

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.
Wi-Fi SoC Development The function is relatively simple, you can use the Wi-Fi module The group directly carries out SDK secondary development products. Tuya provides an SDK adapted to the Wi-Fi protocol. The SDK encapsulates the HAL hardware layer, system layer, network layer, OTA and other interface functions. You only need to call the relevant interface functions for application code development without worrying about complex functional logic. You can quickly complete product intelligence.
Bluetooth SoC Development The function is relatively simple, you can use the Bluetooth module to directly perform the SDK secondary Products developed. Tuya provides an SDK adapted to the Bluetooth protocol. The SDK encapsulates interface functions such as the Bluetooth protocol stack, application callbacks, application functions, etc. You only need to call the relevant interface functions for application code development, and you can quickly complete it without worrying about complex functional logic. Intelligent products.
Bluetooth Mesh SoC Development The function is relatively simple, you can use the Bluetooth Mesh module The group directly carries out SDK secondary development products. Tuya provides an SDK adapted to the Bluetooth Mesh protocol. The SDK encapsulates the Bluetooth Mesh protocol stack, application callbacks, application functions and other interface functions. You only need to call the relevant interface functions for application code development, without worrying about complex functional logic. Quickly complete product intelligence.
Zigbee SoC Development The function is relatively simple, you can use the Zigbee module to directly perform the SDK secondary Products developed. Tuya provides an SDK adapted to the Zigbee protocol. The SDK encapsulates interface functions such as the Zigbee protocol stack, application callbacks, application functions, etc. You only need to call the relevant interface functions for application code development without worrying about complex functional logic, and you can quickly complete Intelligent products.
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 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 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 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 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 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 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.