Hi Guy’s.
I have built a tiny music player & internet radio for my caravan.
Hardware is
Raspberry Pi Zero W
Hifi Berry Dac Zero
Guittarreria.com case
128Gb USB pen holding my complete music Lib (converted to MP3)
Software is volumio-2.118-2017-03-07-pi
It all works well connected from the DAC to the Aux In on the Caravan Radio.
I also have a Studio Series Bluetooth speaker and I’d like to stream to it.
Using phweyland’s excellent instructions @ volumio-bluez-alsa-a2dp-bluetooth-support-t6130.html I have got Bluetooth working.
It took me a few goes so here are my notes on the steps I took
The Pi was connected by USB to my Mac
Everything was then done in Terminal
ssh volumio@volumio.local
password volumio
Generate locale
sudo nano /etc/locale.gen
Uncomment this line -
en_en_GB.UTF-8 UTF-8 - by deleting the
Comment this line - en_US.UTF-8 UTF-8 by adding # to make it
en_US.UTF-8 UTF-8
Ctrl+X, Y and Enter to save
generate the locales
sudo locale-gen
I don’t know if generating locales is necessary, but it stopped the persistant
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
I was getting.
Re Booted the Pi Zero
I tnen followed phweyland’s post
I could only get it to work by doing each install, make & bulid etc. as a seperate step
eg
sudo apt-get install bluez
sudo apt-get install pi-bluetooth
sudo apt-get install bluez-tools
sudo apt-get install libbluetooth-dev
I was confuded by this
Update file /etc/bluetooth/main.conf
[General]
Class = 0x20041C
In the end plumped for doing it this way
General]
Class = 0x20041C
Default adaper name
%h - substituted for hostname
%d - substituted for adapter id
Defaults to ‘BlueZ’
#Name = %h-%d
Default device class. Only the major and minor device class bits are
considered. Defaults to ‘0x000000’.
#Class = 0x000100
How long to stay in discoverable mode before going back to non-discoverable
The value is in seconds. Default is 180, i.e. 3 minutes.
0 = disable timer, i.e. stay discoverable forever
#DiscoverableTimeout = 0
How long to stay in pairable mode before going back to non-discoverable
The value is in seconds. Default is 0.
Should I have updated this line?
#Class = 0x000100
and do I unstatement it?
Anyway
It all worked a treat and I weas able to pair my iPad to the Pi Zero & stream music through Volumio.
Unfortunately getting the Studio Series Speaker working on Bluetooth is being a pain
The speaker is paired & trusted, but it’s not connected!
Running
$ systemctl | grep blue gives the following output
volumio@volumio:~$ systemctl | grep blue
sys-subsystem-bluetooth-devices-hci0.device loaded active plugged /sys/subsystem/bluetooth/devices/hci0
● bluealsa.service loaded failed failed BluezAlsa proxy
bluetooth.service loaded active running Bluetooth service
bluetooth.target loaded active active Bluetooth
I suspect the problem might be with the speaker, but in truth I don’t even know if this set up is capable of streaming from the Pi to a paired device?
Any suggestions or thoughts would be much appreciated.
Volumio is fantastic.
Many thanks