pdf-icon

Product Guide

Industrial Control

IoT Measuring Instruments

Air Quality

PowerHub

Module13.2 PPS

Input Device

Ethernet Camera

Module ASR — Custom Firmware Generation and Flashing

Based on the actual command words and multi-language requirements used by the customer, the Module ASR offline speech recognition module can flexibly and efficiently adjust command words and response phrases via the SmartPi online platform, and regenerate matching firmware.

1. Preparation

  1. Account registration: Visit the SmartPi platform to register and log in, then open the Product Management page.

  2. Download the product configuration template (.json): The links below include both Chinese and English versions of the configuration template. Choose the template that matches the language you will use; you can further customize the firmware based on the template.

Language support
The current version does not support mixing languages — only one language can be used at a time. If you need different languages, download the corresponding configuration template for each language or regenerate via the platform.
  1. Hardware:
  • Module ASR only needs to be connected to a computer via a USB Type-C data cable for flashing.
  1. Software tools used:

2. Configuration Template

  1. Click Import Product and import the product configuration template (.json) downloaded in the previous step. This tutorial uses the English template as an example.
  1. Click View Details, select the template and click Inherit. This will create a new version based on the factory firmware template for editing.
  1. Click the Edit button to enter the firmware configuration page. Scroll to the Command Words Customization option and click + Add to create a new command.
  1. Fill in the trigger phrase and the reply phrase according to the language you will use. Do not mix languages; configure according to the language you enable. When finished, click the arrow button (>>) and then click + Add Control to configure detailed parameters for the current command.
Wake-word settings
By default the template uses several phrases from the normal command list as no-wake-word triggers (e.g. "Hi M Five", "Hi ASR") for wake interactions. This option conflicts with the custom wake word section; if both are enabled, only the custom wake word will be triggered. To avoid conflicts, simply select commands from the command list as no-wake-word triggers and do not set a separate custom wake word.
Note
If you want other trigger types (for example, UART input, GPIO input, etc.), change the trigger type in the Command Words section shown above.
  1. Configure the UART response payload that the Module ASR will send when a voice command is triggered. To be compatible with the M5Unit-ASR Arduino library, follow the existing format. The format rule is AA 55 ID 55 AA, where the command ID must be unique and must not conflict with other commands.
  1. After completing the configuration above you have added the new command Add. Next, click the Configuration Check option in the menu to validate for errors. If everything is correct, click Publish Version to package the firmware.
  1. The version publishing process takes a few minutes. Once the firmware is generated, click Download Firmware. The firmware archive is named jx_firm.tar.gz.

3. Flashing the Firmware

  1. Open the Module ASR flashing tool (.exe) downloaded in previous steps. Ensure the product model is set to CI1302, then click Update to start the tool.
  1. Import the extracted firmware file (.bin).
  1. Flashing procedure

The Module ASR flashing port is a USB Type-C connector — connect the module to your computer using this port.

Once the flashing tool detects the correct COM port, check the port to activate download mode, then press the Debug Rst button to start downloading the program.

  1. Program download complete.
Note
After flashing completes, please uncheck the port option in the flashing tool; otherwise the software will continuously attempt to re-flash the firmware.

4. Command Test

Power the Module ASR module and use the wake phrase Hi M Five. If it responds with I'm here, the firmware flashing was successful.

On This Page