IFREEQ Docs
  • Introduction
  • Update Log
  • General Knowledge
    • About IoT
    • Electricity
      • Plug & socket types around the world
        • Power plug & outlet Types A & B
        • Power plug & outlet Type C
        • Power plug & outlet Type D
        • Power plug & outlet Type E
        • Power plug & outlet Type F (Schuko)
        • Power plug & outlet Type G
        • Power plug & outlet Type H
        • Power plug & outlet Type I
        • Power plug & outlet Type J
        • Power plug & outlet Type K
        • Power plug & outlet Type L
        • Power plug & outlet Type M
        • Power plug & outlet Type N
        • Power plug & outlet Type O
      • Full list: Plug, socket & voltage by country
      • Map showing the spread of the different plug types worldwide
      • Useful information for travellers
      • History of domestic electricity
        • Why isn’t there a universal standard electric plug?
        • Why isn’t there a standard voltage around the world?
      • Three-phase electric power (industrial applications only)
    • Certifications
    • Home Automation Brand
    • Home Automation Catalog
    • Industry Term
    • Network Term
    • The Third-party Control
      • AliGenie
      • Amazon Alexa
        • FAQs About Amazon Alexa
      • DuerOS
        • FAQs About DuerOS
      • Google Assistant
        • FAQs About Google Assistant
      • Home Assistant
        • FAQs About Home Assistant
      • HomeKit
        • FAQs About Homekit
      • IFTTT
      • Xiao AI
      • Yandex Alice
        • FAQs About Yandex Alice
  • Developer
    • Introduction
      • What is Tuya Smart?
      • What does Tuya do?
      • Tuya Smart Cloud Platform Overview
      • Advantages
      • Terms
      • Limits
    • Quick Start
    • Configure in Platform
      • Create Products
      • Function Definition
        • Overview
        • Standard Functions
        • Custom Functions
        • Cloud Functions
      • Design App UI
      • Configure Hardware
      • Cloud Configuration
        • Introduction
        • Upgrade Firmwares
        • Set up Multilingual UI
        • Manage Alarms
        • Configure Network for Devices
        • Enable Toggles on App
        • Automate the Smart Devices
      • Mass Production
    • Device Development
      • Access Mode MCU
        • MCU Access Guide
        • Wi-Fi General Solution
          • Wi-Fi Module MCU Development Overview
          • Hardware Design Reference Wi-Fi
          • Software Reference Wi-Fi
            • Tuya Cloud Universal Serial Port Access Protocol
            • Overview of migrating Tuya's MCU SDK
        • Wi-Fi Power Off Fast Connect Device Solution
          • Overview
        • Zigbee General Solution
          • Overview
          • Software development
            • Tuya Zigbee module UART communication protocol
          • Hardware Design
        • BLE General Solution
          • BLE Module MCU Development Overview
          • BLE Hardware Design
        • NB-IoT General Solution
          • NB-IoT Development Guide
          • Introduction to NB Module - NM1
      • Access Mode SoC
        • SoC Development Overview
        • Lighting
          • Guidance
          • Design
          • Test
        • Electrician
          • Guidance
          • Design
          • Test
      • Access Mode Link
        • Wi-Fi Chip SDK
          • Tuya Wi-Fi SDK Reference
          • Development Environment Setup When Using Tuya Wi-Fi SDK
        • BLE Chip SDK
          • TUYA BLE SDK User Guide
        • Zigbee Chip SDK
          • TUYA Zigbee SDK Document
      • Cloud Mode
        • Wi-Fi&BT Dual Mode Module
        • Wi-Fi Module
        • Bluetooth Module
        • Zigbee Module
        • Sub-G Module
      • Tuya Development Boards
      • Access Mode Simmulator
        • Module Debugging Assistant Instruction
      • Embedded License
        • Embedded open source license
    • Smart Product Solution
      • Gateway
        • MCU Access
        • Link SDK Access
        • PCB Details
      • HouseHold
        • Cleaner Robot
        • Air Conditioner
      • IPC
      • Lock
        • BLE Lock
        • Wi-Fi Lock
        • Zigbee Lock
      • Remote Control
      • Voice Product
        • Domestic Voice Speaker Solution
        • Domestic Voice Infrared SoC Solution
        • Overseas Voice Solution
        • Design Reference Materials - Alexa Module
        • Design Reference Materials - Domestic Voice Module
    • Firmware
      • S8E
  • FAQs
    • Device Development
      • Cloud Module
        • Wi-Fi Module
        • Zigbee Module
        • BLE Module
        • GPRS Module
        • NB-IoT Module
        • Dual-mode Module
        • Other Module Issues
      • Access Mode SoC
      • MCU Access Mode
        • Wi-Fi General Solution
        • Zigbee General Solution
        • BLE General Solution
          • BLE Single-point Solution
          • BLE Mesh General Solution
          • Other Issues of BLE Solution
        • NB-IoT General Solution
        • Other Issues of MCU Access Mode
      • Module SDK Development
        • BLE Chip SDK(single point)
        • Linux General SDK
        • NB-IoT Chip SDK
        • Wi-Fi Chip SDK
        • Others about Module SDK
      • Other Issues of Device Development
    • Smart Product Solution
      • Electrical
        • Outlet
        • Scenario Switch
        • Switch
      • Lighting
        • Wi-Fi Lighting
        • Zigbee Lighting
        • Bluetooth Lighting
        • Other Issues of Lighting
      • Lock
        • BLE Lock
        • NB-IoT Lock
        • Wi-Fi Lock
        • Zigbee Lock
        • Other Issues of Lock
      • Sensor
      • Gateway
        • BLE Gateway
        • Wireless Gateway
        • Zigbee Gateway
        • Other Issues of Gateway
      • IPC
      • Infrared Products
        • Infrared remote control
        • Infrared Capability Introduction
        • Infrared Code Library
      • Sweeper
      • Household Appliances
      • Pet Supplier
      • BLE Mesh Typical Solution
        • BLE Mesh Lighting Solution
        • BLE Mesh Electrical Solution
        • BLE Mesh Sensor Solution
        • BLE Mesh General Solution
    • Products
      • Electric
        • Smart Switch
        • Smart Plug
        • Curtain Controller
      • Lighting
      • Security
        • E202/203 Smart Lock
    • More
  • Links
    • ifreeq.cn
    • ifreeq.com
    • AIoT Expo
    • Official Store
Powered by GitBook
On this page
  • Solution Overview
  • Select Solutions
  • IoT Platform Operation
  • step1: Create new product
  • step2: Function Definition
  • step3: App UI Design
  • step4: Hardware Debugging
  • Develop Debugging
  • Hardware Debugging
  • Software Debugging
  • Function joint tuning

Was this helpful?

  1. Developer
  2. Device Development
  3. Access Mode MCU

MCU Access Guide

PreviousAccess Mode MCUNextWi-Fi General Solution

Last updated 4 years ago

Was this helpful?

This article mainly explains the development process of Tuya MCU Solutions, which is suitable for embedded development engineers and individual developers to get started quickly and understand the access to Tuya platform.

Solution Overview

MCU Solutions is the most common way to connect to Tuya IoT Platform, mainly used for intelligentization of products with MCU master. Compared with Tuya SoC Solutions for Lighting products, Small and Large Home Appliances are usually more complex in function, and they all have MCUs to simply be connected to the Tuya Modules. Developers can only focus the development of the product's own functions, the Network part can use the public version solution including Tuya MCU SDK, public version of App and public version panel. This will greatly reduce development time and costs.

Select Solutions

Before we start, we should understand skills and different types of Tuya MCU Solutions to choose the most suitable one. The services provided by Tuya cover Hardware access, Cloud services, and App software development.

The MCU Solutions is shown below:

Embedded engineers should focus on Hardware Access in solution selection. We will only briefly introduce Cloud and App solutions here.

  • App Solutions: Common App Solutions includes public version App or OEM App.

    Public version App can download directly. According to demand, Tuya provides 2 versions of Apps: Tuya Smart (Tuya Logo) and Smart Life (Neutral Logo), which can be downloaded directly from major application stores.

  • Hardware Access Solutions:

    We should mainly focus on different communication method and modules. At present, Tuya support types include: Wi-Fi, BLE, Zigbee, NB-IoT, GPRS, etc. Before docking, first select the module communication method according to actual needs. For the selection of specific module models, the IoT Platform will recommend common modules after the product is created.

IoT Platform Operation

After choosing solution, we need to create a product on the Tuya IoT Platform and download the MCU Development Kit. IoT Platform is a one-stop development platform for IoT provided by Tuya. From product creation to finished product mass production, all steps can be completed online.

There are 4 steps for IoT Platform operation:

step1: Create new product

Pay attention to the choice of development scheme, all of MCU Solutions are Custom scheme .Net Pairing Mode will determine the protocol and module recommendation.

step2: Function Definition

We abstract the functions of the product into DataPoints(DP, Function Points).Tuya IoT Platform Provides different standard DPs in different products. Developers can choose their own DPs according to there own requirement.

step3: App UI Design

The control interface often called the Panel here. Tuya freely provides almost 100 different kinds of public version panel for customers to choose.

If you have custom requirement, we also provide OEM App service.

step4: Hardware Debugging

According to choice of product and communication protocol, IoT Platform will recommend common module. You can also buy it online. Users can change module according to their actual situation.

The following figure shows the materials contained in an MCU development package:

1.MCU SDK: Provide library file for connecting MCU to Module, convenient for developers to quickly connect MCU to Tuya Cloud.

2.JSON Debug file: For Tuya Cloud Serial Port Helper.

3.Serial Port Communication Protocol: Protocol automatically generated according to the product function selected by the users.

4.README.txt: Develop resource pack instruction.

5.Tuya Cloud Serial Port Helper: Serial communication tools provide by Tuya.

Develop Debugging

After platform operation, we have bought the module sample and downloaded the MCU development package. For different communication protocols, we provide corresponding development instructions in Developer Community.

You can find develop guide in the link above, so we just mainly introduce tools and resource used during development below.

Hardware Debugging

After getting Module, we can build Module minimum system and connect it to Tuya host software to check the communication protocol and experience steps of configuring the network.

You can find HDK in the links below:

Software Debugging

If it's enough MCU hardware resources for development, we recommend you just migrate MCU SDK and finish the part of serial communication function to save your time.

The SDK package has the following requirements on MCU hardware resources:

  • Flash memory: 4 KB

  • RAM: tens of bytes (depending on the DP data length), or 260 KB or higher if the OTA upgrade function is required

  • The number of nested functions is 9.

You can find common resource in link below:

Function joint tuning

During function joint tuning, we often need to check background data to determine the problem in IoT Platform - device

The introduction of the device background can refer to:

Tuya provides online support services. If the problem cannot be solved, you can directly ask questions online. The professional and technical team will answer your questions.

The introduction of the support center can refer to:

If customers wants to own their own App, Tuya also provide OEM App service. You can experience it simply online.For details: .

Cloud services Solutions: It only cost once connecting to Tuya Cloud by using Tuya Module, customers don't need to bear the cost of maintenance operations. For Cloud docking demand,Tuya also provide Cloud-to-Cloud docking service,for details you can check:

You can check details here: .

If standard DPs can not satisfy your requirement, you can also create your own custom DPs. For detail,you can check here:.

You can check details here: .

You can check details here: .

Modules' datasheets can check here: .

Wi-Fi: .

Zigbee:

BLE:

NB-IoT:

Hardware resources: .

Helper resources: .

PCB resources: .

Overview of migrating Tuya MCU SDK:

.

.

OEM App Build Instruction
Solutions Introduction
Standard Functions
Custom Functions
App UI Design
Hardware Debugging
Module
Wi-Fi Module MCU Development Overview
Zigbee Module MCU Development Overview
BLE Module MCU Development Overview
NB-IoT Module MCU Devlopment Overview
Module
Module Debugging Assistant Instruction
常用模组封装库
Overview of migrating Tuya's MCU SDK
Operations Guide
Tutorial for Tuya Support Center