Much appreciated! I'm baffled at the state of documentation and software for Bluetooth support on Linux... everything I find is outdated or abandoned. I had this working fairly well in Buster, but in Bookworm it's being very temperamental and I'm sure I'm doing something that's no longer supported.
In general, I'm following a setup based on this: https://prog.world/raspberry-pi-pan/
/etc/systemd/network/pan0.netdev:/etc/systemd/network/pan0.network:/etc/systemd/system/bt-agent.service:/etc/systemd/system/bt-network.service:I've tried working with the /etc/bluetooth/main.conf file with all the combinations of these items, including omitting them as per default:It seems that modifying those only makes things worse - especially the class attribute. When the Pi does show up on other devices, it shows up as headphones or an audio device in most cases... the Class doesn't seem to help resolve that part.
To activate the BT interface, I'm calling these os calls:
In general, I'm following a setup based on this: https://prog.world/raspberry-pi-pan/
/etc/systemd/network/pan0.netdev:
Code:
[NetDev]Name=pan0Kind=bridge
Code:
[Match]Name=pan0[Network]Address=10.10.10.10/24DHCPServer=yes
Code:
[Unit]Description=Bluetooth Auth Agent[Service]ExecStart=/usr/bin/bt-agent -c NoInputNoOutputType=simple[Install]WantedBy=multi-user.target
Code:
[Unit]Description=Bluetooth NEP PANAfter=pan0.network[Service]ExecStart=/usr/bin/bt-network -s nap pan0Type=simple[Install]WantedBy=multi-user.target
Code:
DiscoverableTimeout = 0AutoConnectTimeout = 0Name = xyzClass = 0x020300 (and others)
To activate the BT interface, I'm calling these os calls:
Code:
sudo systemctl enable systemd-networkdsudo systemctl start systemd-networkdsudo systemctl enable bt-agentsudo systemctl start bt-agentsudo systemctl enable bt-networksudo systemctl start bt-networksudo bt-adapter --set Powered 1sudo bt-adapter --set DiscoverableTimeout 0sudo bt-adapter --set Discoverable 1sudo ifconfig pan0 10.10.10.10 netmask 255.255.255.0
Statistics: Posted by MadCow42 — Mon Jan 29, 2024 5:27 pm