My Pi is 2B Rev1.1
I connected HC-08 Bluetooth module on pin8,10.
I use Raspberry Pi OS.
In
/boot/configuration.txt
enable_uart=1
In
/boot/cmdline.txt
console=tty1 root=PATUUID=e77fdc5c-02 rootfstype=ext4 fsck.repair=yes root wait quiet splash Plymouth.ignore-serial-serialconsoles
I upgraded the Pi with the command
sudo apt update &&sudo apt upgrade
I installed bluez with the command
sudo apt install bluetooth pi-bluetooth bluez blueman
I checked bluetooth status with the command
sudo systemctl status bluetooth.service
. It showsActive:Inactive(dead)
.Then I try to use
sudo modprobe btusb
to get the service up. It showsActive:active(running)
I use command
bluetoothctl
. There is no device found.After further research. I found the following command
sudo systemctl status hciuart.service
. It showsActive:active(dead)
.And
raspberrypi systemd[1]:condition
check resulted in configureBluetooth Modems connected by UART being skipped
After further research, I tried to use the command
sudo systemctl hciattach /dev/serial0 bcm43xx 115200
. It showsbcm43xx_init Initialization timeout
I tried different parameters and still failed to get this done successfully.
So far I am focusing on the error message from hciuart.service
. I am trying to figure out what caused the skip.
I am new to the kernel thing. Any help is appreciated.
HC-08
module will not be recognised by the RPi as a Bluetooth device and doesn't use the Bluetooth software stack used by the on-board Bluetooth on later RPi models. TheHC-0*
Bluetooth UART Communication Modules work as bridges between the serial communication on the pins of the RPi to Bluetooth over the air. You need a serial library to read/write to the HC-08 device. For example PySerial in Python.