After you connect a physical device using the app, you can debug it from both the app and the console. This lets you manage your device and verify data communication between the device, the cloud, and the app.
Prerequisites
- You have a Tmall Genie speaker that is connected to the network using the Tmall Genie app.
- Log in to the Tmall Genie app with your Taobao account and attach the device.
Step 1: Provision the device
- Press the reset button on the development board to restart the device and exit factory test mode.
- (Optional) Enter the AT+MESHRST command to clear provisioning records and re-enter the provisioning state.
Skip this step for first-time provisioning. The device enters the provisioning state by default.
# OK +MESHEVT:0x04 - Use the Tmall Genie speaker or the Tmall Genie app to discover and provision the device.
After the device is connected to the network, its status is displayed as Online on the product's Device Debugging page.
To check the current provisioning status, enter the AT+MESHINF? command. The command returns the following log content.
# +MESHINF:1 // 0 indicates not provisioned, 1 indicates provisioned OK
Step 2: Debug the device
Although you can control the physical device from the app, this topic focuses on debugging the device from the console. The following steps describe the procedure.
- On the product's Device Debugging page, click Debug in the Actions column.
- From the Select a device to debug drop-down list, select the device that is bound in the Tmall Genie app.
After you select the device, the page displays the device's Product Id, Device Name, and Device ID.
- (Optional) Select a speaker for debugging.
If you have multiple speakers bound in your Tmall Genie app, select a specific speaker for debugging.
- Debug the Bluetooth device.
You can debug Bluetooth devices using the Thing Specification Language model or by sending instructions.
- Thing Specification Language model
On the Thing Specification Language model tab, select a debugging function for the device and click Send Instruction.
For example, the following figure shows how to send an instruction to turn off the light using the Thing Specification Language model. The operational logs are displayed in the log area on the right.
- Instruction
On the Instruction tab, enter the Opcode and Parameters for the instruction that you want to test, and click Send Instruction.
For example, the following figure shows how to send an instruction to switch the light scene mode to night light mode using an Instruction. The operational logs are displayed in the log area on the right.
- Thing Specification Language model
- Debug the device using voice commands.
- Select the Tmall Genie Voice Debugging tab.
- In the Conversation Flow area, enter a dialog corpus.
- Standard Corpus
On the Standard Corpus tab, you can click a standard corpus that is provided by the platform. For more information about the standard corpus, see Configure interactive voice response.

- Generalized Corpus
On the Generalized Corpus tab, enter a generalized test corpus and click Send Test.

- Standard Corpus
- Manage your device.
You can also manage your physical devices and device users from the Operation Center on the project homepage in the console. For more information, see Overview of the Operation Center.