Welcome to AI Voice Interaction Module repository
For Jetson
Jetson nano serial communication
Note: The voice interaction module needs to be burned with factory firmware. If the voice chip has not been flashed with firmware after receiving it, it does not need to be burned
1. Experimental preparation
- Jetson nano
- Voice interaction module
- Type-C
2. Wiring diagram
- Use type-c wiring to connect to the motherboard

- Slide the module to the right, use the serial port of the stc firmware,

- Input in the terminal, the ttyUSB0 device appears, indicating that it is recognized normally (normally it is ttyUSB0, it may also be other device numbers)
xxxxxxxxxxls /dev/ttyUSB*

3.Achievement effect
- You can select the broadcast content by modifying the code in the program as shown below


- The broadcast content can be viewed according to the Command Word Broadcast Word Protocol List V3_EN file provided in the attachment.
The first and second bytes AA FF represent the frame header of the protocol, the third byte FF represents the broadcast function, and the fourth is the ID of the broadcast content. Here you can see "I am ready" is 67 in hexadecimal, so the program sends 0x67 to register 0x03 to broadcast the corresponding content. The fifth byte is the end frame.

- Enter the following command in the terminal to run the program. When you hear I am ready, it means the program is running
xxxxxxxxxxpython3 uart_test.py

- After I say the wake-up word to wake up, I say "Close light" and the debugging assistant will reply to receive 10

- At this time, you can open the attached Command Word Broadcast Word Protocol List V3_EN file to view the "Turn off the light" protocol

The first and second bytes AA FF represent the frame header of the protocol, the third byte represents the ID of the ten function words of the chip, and the fourth is the command word ID. Here you can see "Close light" is hexadecimal 0A, decimal 10. The fifth byte is the end frame.
- Say other command words, the serial port debugging assistant will also print the corresponding command word ID, you can try it yourself