As I spent few hours trying to make my RPis connectable via Bluetooth network from Linux machine, I am posting summary what IMHO needs to be done.
I wanted to update thread viewtopic.php?p=2198716&hilit=bluetooth+pan+network but thread is locked now.![Sad :(]()
What is needed more than in viewtopic.php?p=2198716&hilit=bluetooth+pan+network ( IMHO) :
- make /etc/systemd/system/bt-network.service start after bluetooth.service [1]
- pair and trust bluetooth devices when bt-network.service is running
What is not needed from viewtopic.php?p=2198716&hilit=bluetooth+pan+network:
- modifications of /etc/bluetooth/main.conf
- modifications of bluetooth.service ( --noplugin= ... )
- running bt-agent.service ( I am pairing Bluetooth devices manually)
To sum up, steps to have working Bluetooth PAN are, on server (PAN master):
Add /etc/systemd/network/pan0.netdev [2]
Add /etc/systemd/network/pan0.network [3]
Add /etc/systemd/system/bt-network.service [1]
Run bluetoothctl on both devices and pair and trust each device
On client machine:And it should be working ![Wink ;)]()
Let me know if I missed something, or if sth is not clear.
[1] /etc/systemd/system/bt-network.service[2] /etc/systemd/network/pan0.netdev:[3] /etc/systemd/network/pan0.network :
I wanted to update thread viewtopic.php?p=2198716&hilit=bluetooth+pan+network but thread is locked now.

What is needed more than in viewtopic.php?p=2198716&hilit=bluetooth+pan+network ( IMHO) :
- make /etc/systemd/system/bt-network.service start after bluetooth.service [1]
- pair and trust bluetooth devices when bt-network.service is running
What is not needed from viewtopic.php?p=2198716&hilit=bluetooth+pan+network:
- modifications of /etc/bluetooth/main.conf
- modifications of bluetooth.service ( --noplugin= ... )
- running bt-agent.service ( I am pairing Bluetooth devices manually)
To sum up, steps to have working Bluetooth PAN are, on server (PAN master):
Add /etc/systemd/network/pan0.netdev [2]
Add /etc/systemd/network/pan0.network [3]
Add /etc/systemd/system/bt-network.service [1]
Code:
systemctl daemon-reloadsystemctl enable systemd-networkdsystemctl start systemd-networkdsystemctl enable bluetooth.servicesystemctl start bluetooth.servicesystemctl enable bt-networksystemctl start bt-network
On client machine:
Code:
bt-network -c MA:ST:ER:MA:CA:DR nap ip addr add SE.RV.ER.11/24 dev bnep0

Let me know if I missed something, or if sth is not clear.
[1] /etc/systemd/system/bt-network.service
Code:
[Unit]Description=Bluetooth NEP PANAfter=pan0.networkAfter=bluetoothRequires=bluetooth[Service]ExecStart=/usr/bin/bt-network -s nap pan0Type=simple[Install]WantedBy=multi-user.target
Code:
[NetDev]Name=pan0Kind=bridge
Code:
[Match]Name=pan0[Network]Address=SE.RV.ER.1/24 # This will be server/GW IP#DHCPServer=yes
Statistics: Posted by matkor — Mon Jan 06, 2025 8:51 pm — Replies 0 — Views 0