Tuya Cloud Simulation Assistant Instructions

Tuya Cloud Simulation Assistant Instructions

Tool Introduction

Tuya Cloud Simulation Assistant simulates the data transmission of Wi-Fi modules and is connected with the developer’s MCU by USB to TTL tool to validate that MCU data transmission follows Tuya’s communication protocol and module workflow.

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.

Instructions

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.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.

4. Start debug

Start debugIf the following errors occur, please correct them as prompted to proceed with debugging. If not, please go to the next step of the debugging

5. Data debug

DP data debug:

After starting debug successfully, the software will issue commands related to the schema. Transmission rules can be set in “Settings” to meet different requirements.

MCU upgrading debug:

(1)Select "Upgrade Firmware” (2) Fill in the version number (3)Select the firmware .bin file to be upgraded (4)Start upgrading

6. 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

Consult

400-881-8611