TuyaOS Development Tutorial - Embedded Development Kit

0. Preface

​ The advent of the intelligent age has made the relationship between things and people, and the relationship between things and things closer. However, the complexity of the IoT industry, the lengthy access links, the scale of equipment, and the huge amount of data have all become difficulties in the development of the IoT. To this end, Tuya has launched a series of development kits for the IoT field, lowering the technical threshold for developers to enter the IoT field. The development kit mainly includes TuyaOS operating system , TuyaOS EasyGO development package and Tuya Wind IDE integrated development environment .

1. TuyaOS

1.1. Introduction

​ TuyaOS is a distributed cross-platform operating system for full connection and all scenarios. The TuyaOS operating system is designed based on RTOS, Linux, Non-OS and other kernels, and is applied in the IoT field. Developers only need to focus on their own business innovation and development, and one-time development, multi-device deployment, global availability, and security compliance.

1.2. Core competitiveness

  • ​Cross- platform: meet the development needs of developers for different chip platforms, systems, and connection protocols.
  • ​Low- code: Provides rich business subsystems for rapid development of different types of products.
  • ​Multi- scenario: Meet the full-scenario product development needs in the IoT field.
  • ​High tailorability: adopts layered and pluggable component design, and supports on-demand tailoring.
  • ​Interconnection : self-developed efficient soft bus and physical model, supporting the interconnection and intercommunication of devices with different communication protocols.
  • ​Security compliance: Provides multi-level full-link security capabilities to meet global compliance requirements.
  • ​Ecological diversity: Support multiple third-party ecological interconnection: Amazon, Google, Apple, Matter, etc.
  • ​Technological innovation: Provide a variety of Tuya self-developed technologies: Tuya FFC, Tuya Galaxy Link, Tuya IHU, Tuya U-RTC, Tuya Flash Provisioning.

1.3. System framework

​ The overall architecture of TuyaOS is designed with layered and pluggable components, which can be tailored freely according to chip resources and application scenarios to generate a development framework that meets the requirements. Based on the rich development components of TuyaOS, developers can be liberated from the fragmented development experience of different chip platforms, systems, connection protocols and application software.

image1.png

Figure 1 TuyaOS system frame diagram

​ The entire system framework is divided into five layers from bottom to top:

  • **Kernel Layer ( TKL ): **Designed and defined using the principle of minimum interface dependency, and exported in the form of TuyaOS API, providing a stable, reliable, and undifferentiated operating environment for upper-layer software.

  • **Abstraction Layer ( TAL ): **Unified abstraction of system services, connection protocols, multimedia and security capabilities, providing simple and standard service invocation methods.

  • **Libraries Layer: **Provide middleware software that has nothing to do with specific business implementation.

  • **Services:** provides services for application development in the form of business subsystems for specific development scenarios.

  • **Application:**Developers implement corresponding application functions according to application scenarios.

2. TuyaOS EasyGo

2.1. Introduction

​ TuyaOS EasyGo is a collective name for a series of development materials generated based on the capabilities of TuyaOS. TuyaOS EasyGo is aimed at all developers and can help developers quickly develop IoT products.

2.2. Composition

EasyGo Composition.png

Figure 2 TuyaOS EasyGo system composition diagram
  • **Development framework: **Consists of type development kit and development platform.

    • **Type development kit:** is a series of development kits that meet high, medium and low resource requirements generated by TuyaOS business subsystems and underlying capabilities for specific application scenarios.

    • **Development platform: **Consists of the specific implementation and management tools of TuyaOS API on a certain chip platform, providing an undifferentiated operating environment for different types of development kits, and providing developers with a unified development experience.

    Tuya development framework.png

    Figure 3 The development framework provided by EasyGo

    Tuya EasyGo provides a type of development kit for various business scenarios and a development platform covering a variety of chips. Developers can choose the appropriate framework according to their own needs.

  • **Product development kit: **Based on a specific development framework, low-code product development materials are provided for a certain vertical product field, enabling developers to quickly develop application products in this field.

2.3. Management process

​ TuyaOS EasyGo is developed and maintained by Tuya's internal engineers. The main process is divided into three parts: development, management, and release.

image-20220726173641449.png

Figure 4 EasyGo development management process
  • **Development: **Different product development kits and development frameworks will be developed and iterated by different professional R&D teams.
  • **Management:**Each proposed version needs to go through strict tests and generate a detailed test report.
  • **Release:**The tested version will not be released until it has been reviewed by multiple parties.

​Through a rigorous development process and rigorous project implementation, Tuya has guaranteed every link in an all-round way. Tuya works with original chip manufacturers and smart device manufacturers to jointly build a developer ecosystem.

2.4. Data application

​ Developers can contact Tuya BD personnel to go through the internal application process, and after the approval, the developer will be granted permission to obtain development materials in Tuya Wind IDE.

image-20220726175920774.png

Figure 5 Data application flow chart

3. Yours Wind IDE

3.1. Introduction

​ Tuya Wind IDE is a one-stop integrated development environment for developers based on TuyaOS EasyGo.

  • All the materials of TuyaOS EasyGo will be published on Tuya Wind IDE. Based on Tuya Wind IDE, Tuya can manage, distribute and update these development materials in a unified way.
  • Developers can log in to Tuya Wind IDE through the Tuya IoT account to obtain the corresponding development package and carry out product development.
  • Tuya Wind IDE is released as a plug-in for Visual Studio Code and supports both Chinese and English.
  • Tuya Wind IDE aims to provide developers with a consistent development experience under different hosts and different development tools.

3.2. Use process

image-20220729163215194.png

Figure 6 The development flow chart based on Tuya Wind IDE

​ The development process based on Tuya Wind IDE is mainly divided into the following steps:

  1. Install Tuya Wind IDE
  2. Login to Tuya Wind IDE
  3. Download the development framework
  4. Create application project
  5. Write and debug product features
  6. Test and release products

Guess you like

Origin blog.csdn.net/sandwich_iot/article/details/126935461