I'm trying to build a Bluetooth Streamer on the base of an Onion Omega2+. I want it to behave like a bluetooth speaker but the audio instead gets streamed via RTP to the network. I was already able to play an audiofile via pulseaudio to the network so that part is working. What I can't get to run for 3 weeks now is to get Bluez and Pulseaudio to work together. There are two major Problems:
- Bluetooth does not appear in Pulseaudio as a Source.
- When connecting a device (PC,Android Phone) to the device it will connect and then immediately disconnect again. Using Btmon I see that the Audio Sink Profile never gets advertised so there is no common service which is most likely the reason why they disconnect.
I'm running the most current OpenWRT Build. I installed following packages:
If anybody has an idea what are typical pitfalls i would be grateful!
I figured it finally out. A few things were necessary:
Since Pulseaudio runs in system mode it runs as user "pulse".
This user needed access to the audio group as well as root.
Here my group config.
The next step was to add following modules to /etc/pulse/system.pa:
load-module module-bluetooth-policy a2dp_source=true
load-module module-native-protocol-unix auth-group=pulse-access
Last but not least I added some entries to dbus as explained in this link:
Now I can finally start writing the actual application. Hope it helps the next person.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.