Bluetooth Network Access Point (BTNAP)

Bluetooth Network Access Point for Raspberry Pi.

Installation

Dependencies

sudo apt install pulseaudio pulseaudio-module-zeroconf alsa-utils avahi-daemon pulseaudio-module-bluetooth

Server installation

git clone https://github.com/bablokb/pi-btnap.git
./pi-btnap/tools/install-btnap server

Examples

Bluetooth startup configuration

vi /etc/systemd/system/bluetooth.target.wants/bluetooth.service
    ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap

Edit bluetooth device name

vi /etc/bluetooth/main.conf

Edit btnap configuration

vi /etc/btnap.conf
    ADD_IF="lo"
Remove IP from gateway

Enable required services

systemctl enable bluetooth
systemctl enable btnap
systemctl enable dnsmasq
reboot

Pair device

bluetoothctl
agent on
scan on
pair aa:bb:cc:dd:ee:ff
trust aa:bb:cc:dd:ee:ff
quit

Remove paired device

bluetoothctl
untrust aa:bb:cc:dd:ee:ff
remove aa:bb:cc:dd:ee:ff

Install bluetooth Raspberry Pi 3

Show device

hciconfig -a

Install bluetooth manager

apt install blueman

Install bluetooth drivers

apt install bluetooth

Start bluetooth service

systemctl enable bluetooth
systemctl start bluetooth

URL List