[collected] A2DP BlueTooth Support.

I love the idea to finally turn my volumio installation into a working bluetooth receiver.
Considering this link: github.com/BaReinhard/Super-Sim … er-Install
does it somehow work with allo boss dac? :question:

Anyone else run into this issue? I am getting it as well, the device isn’t discoverable after numerous reboots. (tried mobile and an Echo).

I noticed the bluetooth service wasn’t running, so i manually started it… no luck. When I check bluetoothctl I am getting “no default controller available”. Per the GitHub issues I confirmed the device timeout for discovery is commented out.

Any ideas? Appreciate it!

:edit:

Getting closer - installed the bluetooth modules… can pair, but not connect.

[CHG] Device F0:27:2D:XX:XX:XX Connected: yes
[CHG] Device F0:27:2D:XX:XX:XX Connected: no

:edit2:

Still getting closer - reinstalled the PulseAudio package and ensured devices were trusted via bluetoothctl and it now connects… now I just need to get it to output the stream to Volumio, still going out the Echo.

Hello,

@xynie and @onelasttry84: did you manage to make it work? I’m interested in a solution with RPI3 and Allo Boss. Are you close now? :wink:

What Raspbian are you using? Jessie/Stretch, Lite/Desktop? The latest Raspbian (stretch) uses bluez-alsa and removes pulseaudio, to have it working with stretch there are going to be some configuration changes needed. I am currently working on getting a fix made for Stretch, but it will be a little while before its completed. I first need to make the changes manually to see what ends up working, then it will be easy to create a script to do so.

Sorry im a few months late here, been MIA pretty much everywhere for this repo. The issue here is likely due to the installation requiring the ‘pi’ user. I want to move from this requirement and allow for any username. I believe it is mostly there aside from a couple lines.

I am unaware of much of the inner workings of Volumio as i’ve never used it but, for the sspari installation it will require Raspbian Jessie Lite (for the time being) I will be working today on getting this updated to work with Stretch. In the coming weeks I will be trying to create scripts to use as plugins for other platforms such as Volumio, Snapcast, etc… so anyone looking to help speed the process feel free to reach out and create an issue on the Repo: github.com/BaReinhard/Super-Sim … er-Install

Update:

Wanted to add that I have issued a fix for Volumio users as there were issues with the current install for bluetooth. You can find the new changes in the README and how to benefit from them.

@bareinhard
For information, there’s a discussion going on here, with some comments: github.com/volumio/Volumio2/issues/795

Wanted to provide an update on bluetooth support for Volumio, it is unofficial as well as not completely integrated with Volumio, meaning that you may need to configure what pulseaudio input sink goes to what output sink. If you have any issues with that feel free to open an issue on my github repo:
github.com/bareinhard/super-sim … er-install

Install Process

[code]# enable ssh through volumio.local/dev

ssh to volumio

git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
cd super-simple-raspberry-pi-audio-receiver-install
git checkout volumio-fix
sudo ./install.sh

Choose Bluetooth Option, #4

Wait for it to complete, and enjoy[/code]

Alright, another update for volumio users, I have created a (very ugly,ugly) volumio plugin. However, it does install everything correctly. At least it did for my installation, so I could use some help testing things out. All you have to do is upload a plugin with this .zip file: github.com/BaReinhard/Super-Sim … etooth.zip
.

There is no configuration, or enabling/disabling, so those buttons don’t work in the Volumio UI, but after installation it should work correctly.

You will still need to reboot after the installation of the plugin, hopefully in the coming weeks Ill be able to do some more poking around the API and get things working better.

I have tried the plugin.
I am using Volumio on a RPI with HiFiberry Dac +.
It sort of works. I can connect to the bluetooth device and try to play, but I’m not getting any audio.

I’m not familiar with Pulseaudio and sinks so have no idea what to do to get audio to pass.

Just to give an update.
using a fresh volumio install, when I load the plugin it goes into a loop with the following error…

Setting up dhcpcd5 (6.7.1-1+rpi5) …

Configuration file ‘/etc/dhcpcd.conf’
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** dhcpcd.conf (Y/I/N/O/D/Z) [default=N] ?
Installing new version of config file /etc/init.d/dhcpcd …
chown: cannot access ‘/etc/dhcpcd.conf’: No such file or directory
dpkg: error processing package dhcpcd5 (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) …
Errors were encountered while processing:
dhcpcd5

I stopped the install and ran a dpkg --configure -a to fix it then re ran the plugin install again and it successfully completed.
I have a HiFiberry DAC + on the rpi but I left volumio set to the audio jack just in case it was that. I’ve got speakers connected to both the Jack and the DAC+ in case one is working and not the other.

After a reboot I can connect to bluetooth and send audio, but I’m not getting anything out of either the jack or the dac+

Any ideas?

Here is the output of pactl list sinks
volumio@proplay-xlr:~$ pactl list sinks
Sink #0
State: SUSPENDED
Name: alsa_output.0.analog-stereo
Description: bcm2835 ALSA Analog Stereo
Driver: module-alsa-sink.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 1
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.0.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = “16”
device.api = “alsa”
device.class = “sound”
alsa.class = “generic”
alsa.subclass = “generic-mix”
alsa.name = “bcm2835 ALSA”
alsa.id = “bcm2835 ALSA”
alsa.subdevice = “0”
alsa.subdevice_name = “subdevice #0
alsa.device = “0”
alsa.card = “0”
alsa.card_name = “bcm2835 ALSA”
alsa.long_card_name = “bcm2835 ALSA”
alsa.driver_name = “snd_bcm2835”
device.string = “hw:0”
device.buffering.buffer_size = “131072”
device.buffering.fragment_size = “131072”
device.access_mode = “mmap+timer”
device.profile.name = “analog-stereo”
device.profile.description = “Analog Stereo”
device.description = “bcm2835 ALSA Analog Stereo”
alsa.mixer_name = “Broadcom Mixer”
device.icon_name = “audio-card-analog”
Formats:
pcm

Sink #1
State: SUSPENDED
Name: alsa_output.1.analog-stereo
Description: snd_rpi_hifiberry_dacplus Analog Stereo
Driver: module-alsa-sink.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 2
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.1.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = “16”
device.api = “alsa”
device.class = “sound”
alsa.class = “generic”
alsa.subclass = “generic-mix”
alsa.name = “”
alsa.id = “HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0”
alsa.subdevice = “0”
alsa.subdevice_name = “subdevice #0
alsa.device = “0”
alsa.card = “1”
alsa.card_name = “snd_rpi_hifiberry_dacplus”
alsa.long_card_name = “snd_rpi_hifiberry_dacplus”
alsa.driver_name = “snd_soc_hifiberry_dacplus”
device.string = “hw:1”
device.buffering.buffer_size = “352800”
device.buffering.fragment_size = “176400”
device.access_mode = “mmap+timer”
device.profile.name = “analog-stereo”
device.profile.description = “Analog Stereo”
device.description = “snd_rpi_hifiberry_dacplus Analog Stereo”
device.icon_name = “audio-card-analog”
Formats:
pcm

Perfect idea for Volumio on Raspberry PI. Going to try the plugin. Thanks.

Edit:
I have installed it manually, but have to comment line

apt-get upgrade -y &> /dev/null

Installation competed successfully, I was able to connect from android phone but no audio.
I am having cheap USB sound card in Raspberry PI.

volumio@volumio:~$ sudo pactl list sinks
[sudo] password for volumio:
Sink #0
State: SUSPENDED
Name: alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device.analog-stereo
Description: CM108 Audio Controller Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 1
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65687 / 100% / 0.06 dB
Monitor Source: alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = “16”
device.api = “alsa”
device.class = “sound”
alsa.class = “generic”
alsa.subclass = “generic-mix”
alsa.name = “USB Audio”
alsa.id = “USB Audio”
alsa.subdevice = “0”
alsa.subdevice_name = “subdevice #0
alsa.device = “0”
alsa.card = “5”
alsa.card_name = “USB PnP Sound Device”
alsa.long_card_name = “C-Media Electronics Inc. USB PnP Sound Device at usb-3f980000.usb-1.3, full spe”
alsa.driver_name = “snd_usb_audio”
device.bus_path = “platform-3f980000.usb-usb-0:1.3:1.0”
sysfs.path = “/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/sound/card5”
udev.id = “usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device”
device.bus = “usb”
device.vendor.id = “0d8c”
device.vendor.name = “C-Media Electronics, Inc.”
device.product.id = “013c”
device.product.name = “CM108 Audio Controller”
device.serial = “C-Media_Electronics_Inc._USB_PnP_Sound_Device”
device.string = “front:5”
device.buffering.buffer_size = “17640”
device.buffering.fragment_size = “1764”
device.access_mode = “mmap”
device.profile.name = “analog-stereo”
device.profile.description = “Analog Stereo”
device.description = “CM108 Audio Controller Analog Stereo”
alsa.mixer_name = “USB Mixer”
alsa.components = “USB0d8c:013c”
module-udev-detect.discovered = “1”
device.icon_name = “audio-card-usb”
Ports:
analog-output-speaker: Speakers (priority: 10000)
Active Port: analog-output-speaker
Formats:
pcm

Sink #1
State: RUNNING
Name: alsa_output.platform-soc_audio.analog-stereo
Description: bcm2835 ALSA Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 3
Mute: no
Volume: front-left: 26090 / 40% / -24.00 dB, front-right: 26090 / 40% / -24.00 dB
balance 0.00
Base Volume: 56210 / 86% / -4.00 dB
Monitor Source: alsa_output.platform-soc_audio.analog-stereo.monitor
Latency: 93105 usec, configured 100000 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = “16”
device.api = “alsa”
device.class = “sound”
alsa.class = “generic”
alsa.subclass = “generic-mix”
alsa.name = “bcm2835 ALSA”
alsa.id = “bcm2835 ALSA”
alsa.subdevice = “0”
alsa.subdevice_name = “subdevice #0
alsa.device = “0”
alsa.card = “0”
alsa.card_name = “bcm2835 ALSA”
alsa.long_card_name = “bcm2835 ALSA”
alsa.driver_name = “snd_bcm2835”
device.bus_path = “platform-soc:audio”
sysfs.path = “/devices/platform/soc/soc:audio/sound/card0”
device.string = “hw:0”
device.buffering.buffer_size = “17640”
device.buffering.fragment_size = “1760”
device.access_mode = “mmap”
device.profile.name = “analog-stereo”
device.profile.description = “Analog Stereo”
device.description = “bcm2835 ALSA Analog Stereo”
alsa.mixer_name = “Broadcom Mixer”
module-udev-detect.discovered = “1”
device.icon_name = “audio-card”
Ports:
analog-output: Analog Output (priority: 9900)
Active Port: analog-output
Formats:
pcm

volumio@volumio:~$ sudo pactl list sink-inputs
Sink Input #0
Driver: module-loopback.c
Owner Module: 17
Client: n/a
Sink: 1
Sample Specification: s16le 2ch 43236Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = ““s16le”” format.rate = “44100” format.channels = “2” format.channel_map = ““front-left,front-right””
Corked: no
Mute: no
Volume: front-left: 26090 / 40% / -24.00 dB, front-right: 26090 / 40% / -24.00 dB
balance 0.00
Buffer Latency: 198353 usec
Sink Latency: 96573 usec
Resample method: speex-fixed-1
Properties:
media.role = “abstract”
module-stream-restore.id = “sink-input-by-media-role:abstract”
media.name = “Loopback from Galaxy S5 mini”
media.icon_name = “audio-card-bluetooth”

I had the same, no sound with the plugin.

But with the script it works perfectly fine. Some latency, but I guess this is not possible to avoid due to the software architecture.

Thanks for the work. A fixed plug in will be usefull for many people for sure.