Bluetooth for Squeezeplug & Squeezelite


35 posts   Page 2 of 2   1, 2
by castalla » Mon Feb 04, 2013 10:53 pm
Finally got this working by inserting sleep commands - see viewtopic.php?p=278487#p278487
Posts: 479
Joined: Thu Jul 19, 2012 3:46 pm
by mba » Sat Feb 09, 2013 11:41 am
Ok, that sounds great.
Does it autopair again or are you still struggling with that part? What about kernel oops' when turning off the BT speaker? Can you turn it on and off lets say 10 times and it keeps coming online?
AMOTE - a LIRC client for Android. Build your own Android-based universal remote. Get it on Google Play! Visit www.datscharf.dk/amote
Posts: 109
Joined: Fri Jun 08, 2012 7:05 pm
Location: Denmark
by castalla » Sat Feb 09, 2013 5:08 pm
No problems with on/off - no crashes.

The cheap bt speaker just won't autopair - I have to bluez-test-audio connect <address> every time. The logitech speaker autopairs.

I can't figure out where to put the script to run when the Pi boots - doesn't work calling it in rc.local
Posts: 479
Joined: Thu Jul 19, 2012 3:46 pm
by castalla » Sat Feb 09, 2013 9:57 pm
Damn and blast!

It's all fallen apart again - switch off and bam! network error after about 15 seconds .... ggggrrrrrrrrrrrr!!!

Back to a simple cable, I think!
Posts: 479
Joined: Thu Jul 19, 2012 3:46 pm
by drgeoff » Sat Feb 09, 2013 9:59 pm
castalla wrote:Damn and blast!

It's all fallen apart again - switch off and bam! network error after about 15 seconds .... ggggrrrrrrrrrrrr!!!

Back to a simple cable, I think!

Temper, temper!
Posts: 2862
Joined: Wed Jan 25, 2012 6:39 pm
by castalla » Sun Feb 10, 2013 12:12 am
There's something rotten in the state of bluetooth.

Conceptronic dongle + cheap bt speaker - connects but won't autopair - allows on/off
Conceptronic dongle + logitech speaker - refuses to pair with Authorization Failure

Cheap dongle + cheap speaker - connects, won't autopair - network crash when off
Cheap dongle + logitech speaker - connects, autopairs - crash when off

Same outcome on Pi and Cubieboard .... ?????? :shock: :shock: :shock:
Posts: 479
Joined: Thu Jul 19, 2012 3:46 pm
by castalla » Sat Feb 16, 2013 5:20 pm
FINALLY ..... after weeks of googling, posting questions on numerous forums, helpful replies from many users, I now have a solution to my bluetooth problems.

I used a second dongle (Conceptronic - Broadcomm) which resolutely refused to pair with my Logitech speaker - always reported Authorization Failed on any pairing attempt (even though a slew of files were created in /var/lib/bluetooth for the adapter).

I must have tried every possible tip & configuration I came across on the interweb without success, UNTIL I came across this post from a Gentoo forum: http://forums.gentoo.org/viewtopic-p-72 ... d1#7238936

Solution! BT speaker now connects and disconnects without problem and without the network crash I experienced with the Topdigi adapter I tried when I first embarked on this odyssey!.

Maybe this might help any others struggling with bluetooth audio.

edit: thank goodness an overzealous mod didn't delete the post because it was a recent reply to an old thread!!!
Posts: 479
Joined: Thu Jul 19, 2012 3:46 pm
by patrocks » Thu Jul 17, 2014 8:55 pm
Hello,
I am struggling to get squeezelite to work with my Bluetooth speaker and I would really welcome some help. I think the Bluetooth is working ok. I can hear sound from it with these commands
aplay -D SonyBT /home/pi/chimes.wav
mpg123 –a SonyBT test.mp3
Where SonyBT is the name I have given the Bluetooth speaker.

I am running Squeezeplug on a Raspberry Pi. This has LMS running on it and I have an instance of Squeezelite running outputting via the HDMI (TV). This works.

I am starting a second instance of Squeezelite with this command
squeezelite -m ab:cd:2f:12:34:66 -n BT1 -o SonyBT -r 44100 –z
The second player (BT1) appears on LMS and I can select it and start a track playing but there isn’t any sound.

Can anyone see where I am going wrong?

Further info.
aplay –L lists SonyBT
squeezelite –l also lists SonyBT
After starting the second instance of Squeezelite I can no longer use the aplay command, I get the following error message.
Playing WAVE '/home/pi/chimes.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:1059: Broken configuration for this PCM: no configurations available

Thanks
Pat.
Posts: 4
Joined: Thu Apr 11, 2013 3:36 pm
by castalla » Fri Jul 25, 2014 11:35 am
patrocks wrote:Hello,
I am struggling to get squeezelite to work with my Bluetooth speaker and I would really welcome some help. I think the Bluetooth is working ok. I can hear sound from it with these commands
aplay -D SonyBT /home/pi/chimes.wav
mpg123 –a SonyBT test.mp3
Where SonyBT is the name I have given the Bluetooth speaker.

I am running Squeezeplug on a Raspberry Pi. This has LMS running on it and I have an instance of Squeezelite running outputting via the HDMI (TV). This works.

I am starting a second instance of Squeezelite with this command
squeezelite -m ab:cd:2f:12:34:66 -n BT1 -o SonyBT -r 44100 –z
The second player (BT1) appears on LMS and I can select it and start a track playing but there isn’t any sound.

Can anyone see where I am going wrong?

Further info.
aplay –L lists SonyBT
squeezelite –l also lists SonyBT
After starting the second instance of Squeezelite I can no longer use the aplay command, I get the following error message.
Playing WAVE '/home/pi/chimes.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:1059: Broken configuration for this PCM: no configurations available

Thanks
Pat.


Have you declared the SonyBT in asound.conf ?

Also, try with just one squeezelite instance - disable or end the TV output.
Posts: 479
Joined: Thu Jul 19, 2012 3:46 pm
by Gerrelt » Fri Jul 25, 2014 12:05 pm
[quote="patrocks"
squeezelite –l also lists SonyBT
[/quote]

Please, post the complete output of the squeezelite -l command.

Also: is the mac address you are using for the bluetooth speaker different from the mac address used for the first instance of squeezelite?
my Raspberry Pi page: http://raspberry.gerrelt.nl
User avatar
Posts: 225
Joined: Sat Nov 10, 2012 9:01 am