This document explains how developers can load and use the Skill-Command module within the multimodal interaction suite to control devices.
1. Development preparation
Note: First, follow the SDK installation guide to create your application and integrate the SDK.
1.1. Create and configure a multimodal application
Follow the application configuration guide to configure your application. Details for configuring the command module are provided below.
- Command module application configuration



1.2. Device-side SDK development and integration
Before enabling the command module, you must complete SDK integration on your device. Different hardware models require different SDK integration methods.
2. Implement device control using the official Device-side C SDK (supports RTOS/Linux)
See the Device-side C SDK.
2.1. Load the module
To enable the command module, you must first add its component library to your build configuration. The component library is located in the SDK package at qwen_sdk/libs/. Its name starts with libc_mmi_cmd_, such as libc_mmi_cmd_volume.a for volume control.
The following example loads the precompiled library for the ESP32 platform:
2.2. Include header files
After loading the component library, you must include the corresponding command module header in your source code, located in the SDK package at qwen_sdk/include/c_mmi_cmd/. For example, include c_mmi_cmd_volume.h for volume control; the callback type c_mmi_cmd_event_callback is defined in c_mmi_cmd.h.
2.3. Register event callbacks
Each command module provides its own registration function c_mmi_cmd_<module>_register. The callback type is uniformly c_mmi_cmd_event_callback, defined in c_mmi_cmd.h:
c_mmi_cmd_volume_register, c_mmi_cmd_brightness_register, c_mmi_cmd_device_register, c_mmi_cmd_screen_register, c_mmi_cmd_multimedia_register, c_mmi_cmd_application_register, c_mmi_cmd_camera_register, c_mmi_cmd_recording_register, c_mmi_cmd_music_register, c_mmi_cmd_telephone_register, and more.
The following is the sample code for the volume settings component:
2.4. Implement command response functions
Event types and parameters for command responses are documented in the corresponding module header (for example, c_mmi_cmd_volume.h).
The following describes the volume control component:
- Scenario 1: Increase volume slightly
- Scenario 2: Decrease call volume by 10
- Scenario 3: You can decrease, increase, or set the call volume to 10.
3. Implement device control using the official Android or iOS SDK
In the Android and iOS SDKs, the server directly sends instructions to the client. The client parses instruction names from payload.output.extra_info.commands and executes the corresponding actions. For a list of system commands and their descriptions, see application configuration.
Example server instruction format:
- Android
- iOS