Skip to content

Contributed by 爱笑, organized by Ai-Thinker

Technical Q&A — Ai-WB2 Module SPP Connection with Phone, AT Command Failure Issue

Many developers encountered a situation where, after flashing firmware build 1923 onto the WB2 module and following the old examples on the official website, the AT commands were not recognized. This article demonstrates the new AT commands instead. To make development easier for the WB2 series, this example uses the AT firmware developed by Ai-Thinker to achieve Bluetooth-to-UART transparent transmission. The baud rate is 115200. 1. Preparation

2. Usage Steps

  1. Flash the firmware correctly and verify the power-on information

  1. Configure the Bluetooth settings Enter the following AT commands
Click to expand full code
c
AT+BLENAME=aithinker_XiaoZe           //设置蓝牙名称,这里我使用aithinker_XiaoZe
AT+BLESERUUID=ffe405d2af9fa98fe54a7dfe4353aa66 //设置UUID
AT+BLETXUUID                          //查询TX特征的UUD
AT+BLEMODE=0                          //设置蓝牙工作模式为从机模式

Note the following information

  1. Open nRF Connect on the phone and connect to the Bluetooth device

  1. Data transfer (1) The phone sends data to the module, and the module prints the received data through the serial port

Data printed by the serial port

(2) The module sends data to the phone First configure it using the phone

Send data from the serial port

The phone receives the data

If you have any questions, feel free to leave a comment~~

Released under the MIT License. Build Time 2026-09-11 14:52:23