Quick Start

Hardware preparation

  • A Windows computer, recommended for the Win10 system.

  • a set EC800MCNLE EVB(Including antenna, Type-C data cable, etc).

  • A Nano SIM card.

  • A speaker with a power of 2-5W.

环境搭建

  • Download and install EC800M series module driver: QuecPython_USB_Driver_Win10_ASR.
  • Download and install VSCode.
  • Download and unzip QPYCom
  • Download Firmware
    • [EC800MCNLE](../../media/solutions/xiaozhi AI/EC800MCNLER01A03M08_OCPU_QPY_TEST0707A.zip)
  • Download Source code

Hardware connection

Connect the hardware according to the following diagram:

  1. Connect the WiF antenna to the antenna socket marked with the word WiFi in the picture.
  2. Connect the antenna to the antenna socket marked with LTE.
  3. Insert the available Nano SIM card at the position shown in the diagram.
  4. Connect the speaker to the pin headers marked with SPK+ and SPK- in the figure.
  5. Connect the battery at the position shown in the diagram.
  6. Connect the development board to the computer using a Type-C data cable.

Equipment development

Power on

After completing the hardware connection work, if a COM port containing the words "Quectel USB" appears in the port list of the computer device manager, it indicates that the computer has successfully booted up.

comport.png

Burn firmware package

Refer to this chapter Burn the corresponding firmware package to the development board.

Script import and execution

  1. Refer to this chapter Import all files from the 'code' folder in the source code directory into the module file system, as shown in the following figure:
  1. Refer to this chapter Execute the main program file ai_main.py.
  2. Refer to this chapter Stop the program from running.

Debugging

Program startup

After executing the _main. py script, the program starts running.

Activate Xiaozhi AI

As shown in the following picture, it is in a state ready to be awakened. A red light will flash on the development board, and you need to use the voice Xiaozhi, Xiaozhi to wake up Xiaozhi AI for a voice conversation.

![image-20250714112945440](....\media\solutions\xiaozhi AI\1.png)

After waking up, data related to connecting to the server or a prompt indicating connection failure will appear. When a connection failure occurs, please check if the network is normal.

![image-20250714112945440](....\media\solutions\xiaozhi AI\2.png)

When the system has not engaged in a conversation for a long time or has not received any commands, it will automatically enter a sleep state and wait for the next wake-up.

![image-20250714112945440](....\media\solutions\xiaozhi AI\3.png)