Raspberry Pi 3 Module running Raspbian Lite aka Debian GNU/Linux 13 (trixie)
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"sudo xargs apt install -y < ./manual-packages.txt
# we mostly need dbus and cairo
sudo apt install -y python3-cairo python3-dbus libdbus-1-dev libcairo2-devsudo systemctl enable bluetooth
sudo systemctl start bluetooth
sudo systemctl status bluetooth # check that it is running sudo bluetoothctlpower on
agent on
default-agent
discoverable on
pairable on
scan on
showsudo nano /etc/bluetooth/main.confadd these settings under general
[General]
Name = raspberrypi
Class = 0x000100
DiscoverableTimeout = 0
PairableTimeout = 0
AutoEnable=truesudo systemctl restart bluetoothGet the BD Address you need
hciconfigUpdate this address field in ble_server.py
Verify that Discoverable says yes
bluetoothctl showpython3 -m venv --system-site-packages ./venv
source ./venv/bin/activate
pip install bluezero sudo ./venv/bin/python3 ble_server.py