Last Updated on : 2024-11-20 02:13:27download
This topic describes how to troubleshoot problems that might occur when you develop with the Tuya Developer Platform or debug embedded software.
You can consider the virtual device as a prototype you have designed for a real device. If you do not have a real device at hand, you can use the Smart Life app to test or demonstrate product features on the virtual device. The following steps show how to use it for debugging:
The virtual device only serves as an emulator to help you test or demonstrate how product features or control panels work, which cannot thoroughly verify the device’s functionality. It is recommended you use the virtual device for debugging control panels only.
If you get errors or exceptions when debugging, you can search the device logs on the platform to troubleshoot problems. The following steps show how to get device logs:
Log in to the Tuya Developer Platform.
Click Product > Device Logs in the left navigation pane.
Enter the device ID and search.
You can only search logs of paired devices under the currently logged-in account by device IDs. The free edition allows you to search logs for the last 7 days.
Standard function: the common functions of a product.
Custom function: the user-defined function if standard functions cannot meet your needs.
Cloud function: supports cloud-based schedule and navigation link setting.
To reach a global audience, you can customize multilingual UI text that appeals to a target market, including product name, data point, device panel, network connection guides, device message notification, and firmware upgrade. For more information, see Configure Multilingual UI.
You can set rules to trigger an automated push notification. For example, set a threshold for a function. If the preset value is reached, the user will receive an alert from the mobile phone. For more information, see Configure Push Notification.
You can edit the pairing guide as needed on the platform. A QR code will be generated accordingly, which can be put on your user manual. For more information, see Configure Pairing Information.
You can set toggles for your products to enable shortcuts for quick device control. For more information, see Enable Toggle.
You can specify functions that can be used to set up automation. For example, a function is set as a trigger or a task. For more information, see Configure Scene Linkage.
Tuya provides the Cloud Test app and use cases. For more information, see Test Services.
The log records how the module runs. With it, you can learn how the module works and identify problems. Logging an exception and analyzing it is the common practice to troubleshoot problems.
After the module is powered on, you can start printing logs that are denoted with Log_TXD
usually. The pin used for log printing depends on your module models. Configure the GPIO for log printing as follows:
Baud: 115200 or 74880.
Data bit: bit 8.
Stop bit: bit 1.
No check bit and flow control.
The firmware determines how the log printing is configured. If you have any problems, submit a service ticket.
0x22
to report data in a synchronous manner.Service and support is designed to help you quickly get the information or knowledge you are looking for and troubleshoot problems that occur when you develop with Tuya’s solutions. You can track the progress of your submitted ticket and provide your feedback here.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback