There is a Bluetooth 4.2 dual-mode controller inside the ESP32 chip, which can use UART(H4) as HCI IO.
| HOST | RX | TX | CTS | RTS |
|---|---|---|---|---|
| ESP32 | TX | RX | RTS | CTS |
| Pin | 5 | 18 | 19 | 23 |
- HCI UART protocol:
H4 - HCI UART baudrate:
921600 bps
git clone --recursive https://github.com/redchenjs/uart_hci_bluetooth_module_esp32.git
git pull
git submodule update --init --recursive
./esp-idf/install.sh
export IDF_PATH=$PWD/esp-idf
source ./esp-idf/export.sh
idf.py flash monitor
btattach -B /dev/ttyX -P h4 -S 921600