Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth HCI can't be found. #43

Open
zhoujustin opened this issue Aug 20, 2024 · 1 comment
Open

Bluetooth HCI can't be found. #43

zhoujustin opened this issue Aug 20, 2024 · 1 comment

Comments

@zhoujustin
Copy link

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

@xieliwei
Copy link

xieliwei commented Aug 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants