Features Introduction

Prerequisites

Applicable Scope

This extension is applicable to devices in the category of laser sweeping robots using P2P transmission protocol and only supports projects created using the sweeping robot mini-program template.

Applicable Scenarios

  • The sweeping robot device used in business has supported P2P data transmission, and you need to debug the map with real device data on the IDE.
  • There is no real device that supports P2P data transmission or you are using a virtual device, but you also wish to preview/debug the map on the IDE.

Features

  • Connect to the P2P channel of real devices to obtain sweeping robot map data in real-time and display it on the IDE.
  • Support injecting custom mock map data into the IDE for debugging.

Usage Process

Installation

  1. In Tuya MiniApp Tools, open Device Tools, authorize login, and select a sweeping robot device from the device list. Click to enter the device page.
  1. On the device page, click "Extension Management" in the upper right corner to enter the extension market.
  1. In the extension market, find "Robot Vacuum Debugger" and click install.

Usage

  1. After successful installation, an entry for "Robot Vacuum Debugger" will appear in the top navigation bar on the device page.
  1. Click "Robot Vacuum Debugger" to enter the Robot Vacuum Debugger page.

Connect P2P

If your sweeping robot device has supported P2P transmission of map data, you can choose the Connect P2P mode and click the Connect P2P button below. The map data on the sweeping robot will be transmitted to the IDE in real-time and presented on the mini-program.

Export Data

You can click the Export button on the right to export all received map data during the P2P connection cycle to your local for easy issue retrospect and debugging.

Mock

If your sweeping robot device does not support P2P data transmission yet, or you are using a virtual device for development and debugging, you can choose the Mock mode.

We have provided a set of default mock data for you to use, and you can also customize and input map and path data conforming to the Tuya sweeping robot protocol. Click the Push Mock Data button below to push the data to the IDE for display.

Notes

  1. The map function on the IDE is only for debugging and reference during the development stage. It does not represent the actual effect on the real device, and the final verification and testing must be conducted on the real device.
  2. Please ensure that your sweeping robot device supports P2P data transmission, or you have prepared mock data that conforms to the Tuya sweeping robot protocol.

Version Log

v0.4.0

Release Date: 2024-11-06

  • Add simulation part of the App method

v0.3.0

Release Date: 2024-11-05

  • Support data copying and one-click data loading
  • Category verification is required. Only the robot vacuum category is supported.

v0.2.3

Release Date: 2024-10-22

  • Resolved the issue of certain map/path file names not displaying on the IDE.

v0.2.2

Release Date: 2024-09-23

  • Plugin renamed to Robot Vacuum Debugger

v0.2.1

Release Date: 2024-09-20

  • Replaced the MOCK default data with a more standard map data
  • Clear data cache when disconnecting P2P connection

v0.2.0

Release Date: 2024-09-19

  • Support for Mock mode added

v0.1.0

Release Date: 2024-09-12

  • Added export feature
  • De-duplication processing for list data
  • Added a limit for the maximum number of displayable items (2000 items)

v0.0.2

Release Date: 2024-09-10

Initial version release

  • Support connection to real device P2P channel to obtain sweeping robot map data in real-time and display on the IDE