pdf-icon

Product Guide

Real-Time AI Voice Assistant

Offline Voice Recognition

Zigbee

Thread

Module Gateway H2

IoT Tools

IoT Cloud

Ethernet Camera

LoRa & LoRaWAN

Module LoRa868 v1.2

Module LoRa868/433 v1.1

Develop Tools

Unit ASR Custom Firmware Generation and Flashing

Based on the actual command words and diverse language requirements used by the user, the Unit ASR offline speech recognition module can flexibly and efficiently adjust command words and responses with the help of the Smart Pi online platform, and regenerate the adapted firmware.

1. Preparations

  1. Account Registration: Visit Smart Pi Platform to complete account registration and login, then open the product management page.

  2. Download the product configuration template file (.json)

Language Support
The current version does not support mixed languages. Only one language can be used at a time. To configure different languages, download the relevant version of the configuration template file or regenerate it via the platform.
  1. Hardware products used:

  1. Software tools used:

2. Configuration Template

  1. Click Import Product, then import the previously downloaded product configuration template file (.json).
  1. Click View Details, and select the template for inheritance. This will generate a new version based on the factory firmware template for modification.
  1. Click the Edit button to enter the firmware configuration interface. Scroll to the Custom Command Words option, select an existing command word, and copy it to create a new command.
  1. Fill in the trigger command and response command according to the actual language type. Note that mixing Chinese and English is not allowed; configurations must be based on the language enabled. Once done, click the arrow button to configure the detailed parameters for the current command.
  1. Use parameter configuration to enable the Unit ASR to respond with the data content via UART after the command is triggered. To ensure compatibility with the M5Unit-ASR Arduino library, modify according to the original format. The format rule is AA 55 ID 55 AA, where the command code ID should not repeat with other commands.
  1. After completing the above configurations, a new command Just has been added. Next, click the Configuration Check option in the menu to check for errors. Once confirmed to be correct, click Publish Version to package the firmware.
  1. Wait for the firmware generation to complete, then click download.

3. Firmware Flashing

  1. Open the previously downloaded Unit ASR firmware flashing tool, ensure the module model is configured correctly, and click Update to start the tool.
  1. Import the unzipped firmware file (.bin)
  1. The Unit ASR communication interface is also the flashing interface. The program uses UART for downloading. This tutorial uses the ESP32 Downloader for operation, with the following pinout:
  1. First, connect the ESP32 Downloader to the computer. Once the flashing tool detects the corresponding port, select the port to activate downloading. Then connect the Unit ASR and begin downloading the program.
  1. The program download is complete.

4. Command Testing

  1. Power on the Unit ASR.
  2. Use the Hi M Five command to wake it up, with a response of I'm here.
  3. Use the Just command, with a response of Do it.
On This Page