sipeed / LicheeRV-Nano-Build

LicheeRV-Nano-Build
99 stars 37 forks source link

Bluetooth HCI can't be found. #43

Open zhoujustin opened 2 months ago

zhoujustin commented 2 months ago

We can't find the bluetooth device, and there havn't more details about the bluetooth.

xieliwei commented 2 months ago

You need to solder the four 0201 resistors to connect the BT HCI interface to UART1 as per the instruction here: https://wiki.sipeed.com/hardware/en/lichee/RV_Nano/2_unbox.html#LicheeRV-Nano-Package-Introduction

After that, you can follow standard methods to attach to /dev/ttyS1 using hciattach and configure BT/BLE. The important parameter that took me some digging to find is the baud rate is 1500000.

Example: # hciattach -s 1500000 /dev/ttyS1 any 1500000 Device setup complete # hciconfig hci0 up # hciconfig set name MY_BT_DEV # hciconfig hci0 down # hciconfig hci0 up # bluetoothctl power on Changing power on succeeded # bluetoothctl pairable on Changing pairable on succeeded # bluetoothctl discoverable on Changing discoverable on succeeded [CHG] Controller XX:XX:XX:XX:XX:XX Discoverable: yes