Hi,
I am trying to get a bluetooth file server working in a container on ResinOS 2.15. I have a bluetooth dongle connected to my Raspberry Pi 2, which is working fine with the host OS. I am able to successfully run hcitool scan, detect my Laptop and pair with it using bluetoothctl.
Now what I would like to do is run obexpushd as a bluetooth file server in a container.
So on the hostOS I edited /etc/systemd/system/dbus-org.bluez.service
to run
ExecStart=/usr/libexec/bluetooth/bluetoothd --compat
And in the container I installed bluez and obexpushd. The container runs with --net=host and in privileged mode. I am able to see the hci0 interface when running hciconfig. However, running obexpushd results in the following error:
obexpushd -B -n
obexpushd 0.11.2 Copyright © 2006-2010 Hendrik Sattler
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Listening on bluetooth/[00:00:00:00:00:00]:9
SDP session setup failed, disabling bluetooth
net_init() failed
If I run sdptool browse local in the container the following error occurs:
sdptool browse local
Failed to connect to SDP server on FF:FF:FF:00:00:00: No such file or directory
On the host OS sdptool browse local runs fine.
Any ideas on what I am missing / doing wrong?
Thanks,
Clemens