Tuya MCU Simulation and Debug Assistant Instructions

Tuya MCU Simulation and Debug Assistant Instructions

Tool Introduction

Tuya MCU Simulation and Debug Assistant simulates MCU data transmission and is connected with the developer’s Wi-Fi module by USB to TTL tool; it has the following uses: 1、 It is used with networking modules, validating whether the Wi-Fi module works. 2、 It can debug app panel displays before the MCU development is complete. 3、 When MCU developers don’t know how to transmit data to/from modules, they can reference the data from the simulation assistant.

Operating Environment

This software should be used in a Windows system installed with Microsoft .NET Framework 4.0. If it is not installed on your computer, you can visit http://pan.baidu.com/s/1nvLAmdr to download and install.

Hardware Connection

The Wi-Fi module uses a power supply of 3.3V and 400mA; its EN pin is connected with a VCC pin; TX and RX of the USB to TTL tool are connected with RX and TXD of the Wi-Fi module.


1. Import the function debug file

Load schema files. Schema files must be .json files that conform to Tuya Cloud DP commands (these files are packed and downloaded from Tuya Developer Platform)

2. Set an operating mode for the module

This mode should be the same as the mode set for the MCU. If the Module Operation Mode is Module Self-process, GPIO configuration should be the same as the GPIO configuration of the MCU

3. Select a network configuration

Select corresponding network configurations based on requirements. For the different network configurations, see Tuya Serial Port Communication Protocol.

4. Set serial ports

Open a serial port and select the required serial port numbers. By default, the baud rate is 9600Bp/s, while some products like robotic sweeper are 115200 Bp/s.

5. Start debug

Click the “Start” button to simulate.

6.Data debug

DP data debug:

After starting the debug successfully, the software reports the DP status. Transmission rules can be set in Settings to meet different requirements.

Open the weather function:

(1) “all” lists all currently supported weather information; you can select as needed (2) “selected” displays currently selected data; double click to deselect (3) Then click “Open Weather Function”, and weather data will display (when the module is powered on first or once every 30min).

Stop heartbeat:

Click “Stop Heartbeat”. The MCU sends notifications to Wi-Fi modules to stop sending heartbeat package. To recover heartbeat sending, you can power on the module again or reset the model (reset, AP mode, or EZ mode).

Streaming service:

Usage scenarios: display motion map of robotic sweeper

(1) Enable the streaming service function (2) Enter ID and enable data transmission of the streaming service (3) Import a map file in .txt format and click “Streaming Data Transmission” (4) Stop streaming data transmission to view the map on the app (Note: To upload a new map, enable the streaming service function again)

7. Interactive display of serial port data

When the software receives the data, it automatically parses it and displays the corresponding results based on schema files. After pressing “Save”, the software will automatically save the debug information to logs.txt files in the software file location.

400 Call