Max2Play Home › Forums › Max2Play as Squeezebox (Player / Server) › Bluetooth and OpenHab notifications doesn't play any sound
Tagged: Binding, bluetooth, Issue, OpenHAB, Squeezebox
- This topic has 37 replies, 3 voices, and was last updated 5 years, 6 months ago by Heiner premium.
-
24. Oktober 2018 at 22:42 #40285
I have a Raspberry Pi 3B+ running an instance of Max2Play with Squeezebox and 2 SqueezeLite players (which are synchronised).
Playing MP3 files and audio streams work perfectly, as well as controlling Squeezebox using the OpenHab binding (where OpenHAB is run off another Raspberry Pi)
The issue arises when I try to send a notification from OpenHab to Squeezebox, or when I try to connect a device through Bluetooth. The web interface will show that a notification or Bluetooth input is playing, however I won’t be able to hear anything.
The OpenHAB notifications work when not played through Squeezebox, so it isn’t an issue with my MP3 files or TTS service. When playing the MP3 files straight through Squeezebox, they work perfectly.Another issue (which is negligible and not that important) is that using the OpenHAB Squeezebox binding won’t show a list of favourites when it is shown as a selection box in the sitemap file.
Thanks for the help
25. Oktober 2018 at 13:26 #41443Hi Josh,
With openHAB, make sure the command you are sending is executed exactly like the URL you are given in API-examples.
With Bluetooth, please explain your procedure. Did you pair the device already successfully? Have you installed the Squeezebox solution in the Bluetooth plugin and the separate player for individual bluetooth playback inactive?
30. Oktober 2018 at 20:14 #41769Hi Heiner, thanks for the reply.
openHAB
I am using the exact commands as specified.
I don’t think it is a command problem as
a) The issue still happens when I select squeezebox as the default SoundSink on the PaperUI GUI
b) All the other features of the binding work, such as the streaming URL and volumesBluetooth
The device is paired successfully using Max2Play and the „Bluetooth-Streaming in Squeezebox Server“ package is installed and set to start automatically.
When I connect a device using Bluetooth, as I mentioned previously, the interface shows that a Bluetooth input is playing. It will not, however, actually play any sound.30. Oktober 2018 at 20:27 #41770I have another update:
I’ve tried rebooting everything and this time the Bluetooth problem is worse.When I try to play some music through Bluetooth, what is currently playing will pause momentarily but then resume, ignoring the Bluetooth input.
The same thing happens when I stop playing music through Bluetooth.Thanks
30. Oktober 2018 at 20:33 #41771If there is nothing currently playing when something is played through Bluetooth, the item that was played last is repeated.
In my case, this was an audio stream from an internet radio source which I had played earlier.Thanks for all the help with this issue
5. November 2018 at 15:31 #41827Hi Josh,
You can check the bluetooth stream in your Squeezebox Server webinterface. Select it and and then play and stop it to get to another stream. Does this work?
6. November 2018 at 0:42 #41842Hi Heiner,
The Bluetooth feature still doesn’t work, even if I select it manually from favourites.Although it will still switch to Bluetooth if my phone starts sending data, the audio source will only last 1 second or so with no noise and will then end (stopping or returning to something).
I know that my phone can send data as using AirPlay works.
Thanks
12. November 2018 at 11:58 #41929Hi Josh,
AirPlay and Bluetooth have no correlation, they both use very different technologies.
With Bluetooth there can be many factors that can cause issues. You can try using another BT device to try to recreate the issue.
You should also try reinstalling the Bluetooth plugin in Max2Play.
14. November 2018 at 18:00 #42038Please try also removing any other devices with bluetooth and other wireless connections as this is often the reason for a faulty connection with BT.
18. November 2018 at 21:30 #42106Hi Heiner,
Thanks for your response.
I’ve tried removing all other Bluetooth devices and resetting the Bluetooth device, but this still doesn’t work.
I’ve also tried using other Bluetooth devices but that doesn’t work.Also, did you get anywhere with the OpenHab issue?
Thanks
19. November 2018 at 17:34 #42129Hi Josh,
RPi prioritizes Bluetooth the least of all protocols. So if you have other stuff running on the Pi, the Bluetooth can get the small end.
If possible, you can try deactivating built-in BT and connecting a dongle to make sure the BT isn’t faulty.Regarding openHAB, could you specify what exactly the issue is? I’m not sure we are the right ressource, perhaps try posting on the openHAB forums?
24. November 2018 at 22:39 #42222Hi Heiner,
Unfortunately I do not own a Bluetooth dongle. Is there any other way I can fix this without buying one?
Would it be useful to look at logs? If so, how would I find them?The issue regarding OpenHAB is that no sound will come through Squeezebox (a similar issue to the Bluetooth issue, where sound is not played/received). Should I post this on the other forum as well?
Thanks
27. November 2018 at 11:54 #42292Hi Josh,
Yes, try deactivating WiFi and running on ethernet if you are not already. Both share the same module for comms and BT is more accessible when running via ethernet.
28. November 2018 at 22:18 #42376Hi,
I found an old Bluetooth dongle and connected it, however it didn’t make a difference.
It is too impractical to get a wired Ethernet connection from my router to my Pi.I tested the Bluetooth connection by streaming directly to Max2Play – this works absolutely fine, so I don’t think it is a problem with the connection.
The problem only arises from the Bluetooth receiver to Squeezebox – this is also why I believe that the OpenHAB problem is involved with this. I don’t think that the Max2Play input to Squeezebox works.
Also, I originally purchased a one month license as I thought that this would be a simple process, and it exipires tomorrow. Is there any way to extend it for a discounted price because of these issues or is the only solution to buy another license?
Thanks,
Josh29. November 2018 at 16:35 #42418Hi Josh,
We’ll test these two features on a device here and let you know whether we can recreate the issue. Could point out any specialties about your setup? By no audio through openhab you mean by creating an applet in openhab for playback, it doesn’t respond to the commands you enter?
Regarding the license, send us a mail with a reference to this thread and I’ll create another 1-month license for you.
edit: we already added a possible fix in the newest beta of openhab, try deinstalling and reinstalling in beta.- This reply was modified 5 years, 11 months ago by Heiner.
29. November 2018 at 18:51 #42427Hi Heiner,
Thanks for the response, I filled in the contact form on the website.
In terms of OpenHAB, are you referring to the plugin or the whole build? Thanks1. Dezember 2018 at 1:17 #42463Hi,
I believe I have the latest version of the OpenHAB squeezebox plugin (2.3.0)I have tested both using commands in a rules file to play sounds and text to speech through the Squeezebox plugin and setting the Squeezebox server as an audio sink for everything. None of these work.
My setup is that I have two Raspberry Pi 3 B+ connected through WiFi.
One of them runs OpenHAB, and the one next to it runs Max2Play.
The Max2Play Pi has a squeezebox server and another squeezelite instance. The squeezebox server is played through the on-board stereo jack and the squeezelite instance is played through a USB sound card. These both go to amplifiers/to the auxiliary input in a sound system which is permanently on.It is set for both squeezebox instances to synchronise so only the volume/power/mute can be changed independently.
Thanks, Josh
4. Dezember 2018 at 16:03 #42535Hi Josh,
The Squeezebox Server itself should not be able to have an audio output.
Did you try cop-pasting the commands from our API-Examples plugin? Also, did you get any feedback from the openHAB community yet?
4. Dezember 2018 at 23:09 #42565Now there is just the Bluetooth issue – do you have any suggestions on fixes for this? Thanks
4. Dezember 2018 at 23:12 #42566I am now not being able to connect with Bluetooth at all with my phone.
I get this error with trying to connect on Max2Play:
Device D0:D2:B0:63:75:86 Joshua Heng’s iPhone
trust D0:D2:B0:63:75:86
Changing D0:D2:B0:63:75:86 trust succeeded
pair D0:D2:B0:63:75:86
Attempting to pair with D0:D2:B0:63:75:86
Failed to pair: org.bluez.Error.AlreadyExists
connect D0:D2:B0:63:75:86
Attempting to connect to D0:D2:B0:63:75:86
Failed to connect: org.bluez.Error.Failed
quit
Waiting to connect to bluetoothd…..And on my phone it just says unable to connect
Thanks, Josh
7. Dezember 2018 at 12:26 #42593Do you other devices paired with BT? If so, remove them from Max2Play. You can also try reinstalling BT altogether on the Pi.
9. Dezember 2018 at 14:58 #42619Hi Heiner,
I have already tried those fixes and it doesn’t work.Again, I think that is rather a problem of the Bluetooth output going into Squeezebox rather than Bluetooth itself, as sometimes I can play audio through Bluetooth directly to the sound card.
Thanks,
Josh13. Dezember 2018 at 22:25 #42753Hi Heiner,
Sorry to bother you again (and to bump this thread), but is this getting anywhere?Thanks,
Josh14. Dezember 2018 at 12:33 #42765Hi Josh,
If you play audio directly, make sure the two methods aren’t interfering with each other. You should really only choose one of the two solutions. Please paste the debug info from your LMS when the channel is active.
14. Dezember 2018 at 19:24 #42768Hi Heiner,
I think you interpreted my statement incorrectly.
I directly streamed Bluetooth to the sound card as a test to see if it would work, and it did.
I now have it disabled as I would like it to play through Squeezebox, however that doesn’t seem to work.Where do I find the debug information?
Thanks again,
Josh17. Dezember 2018 at 15:28 #42780Which one? You can find a detailed log for LMS in the WMS web interface, there’s also one in our web interface in debug info window of each plugin, including BT and LMS.
I would recommend burning a fresh image and setting up the BT channel for LMS with a new install to rule out any possible inconsistencies in your setup.
17. Dezember 2018 at 19:32 #42787Hi Heiner,
Thanks for the reply.I’ve tried connecting my phone with Bluetooth again, however this time it won’t even connect.
Max2Play Bluetooth Error
If you connected Bluetooth Speakers, make sure to set the soundcard of your audioplayers to bluetooth as audio output! You need to restart your Audioplayer if the Bluetooth Device changed.
If you connected a Smartphone to stream to Squeezebox Server, NO further setting to your soundcard is needed (do NOT set your soundcard to bluealsa)!
Device D0:D2:B0:63:75:86 Joshua Heng’s iPhone
trust D0:D2:B0:63:75:86
Changing D0:D2:B0:63:75:86 trust succeeded
pair D0:D2:B0:63:75:86
Attempting to pair with D0:D2:B0:63:75:86
Failed to pair: org.bluez.Error.AlreadyExists
connect D0:D2:B0:63:75:86
Attempting to connect to D0:D2:B0:63:75:86
Failed to connect: org.bluez.Error.Failed
quit
Waiting to connect to bluetoothd…Max2Play Bluetooth Debug
#### Bluetooth Installation ######## Bluetooth Dongle ####
hci0: Type: Primary Bus: UART
BD Address: B8:27:EB:92:68:C6 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:13301325 acl:23620 sco:0 events:438 errors:0
TX bytes:11612 acl:352 sco:0 commands:117 errors:0#### DEVICE Joshua Heng’s iPhone ####
#### BLUEALSA RUNNING ####
1#### BLUETOOTH SQUEEZEBOX SERVER AUTOSTART ####
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Running – Start Stream on Squeezebox Server
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Logfile was modified.
Reading last 10 lines of /var/log/daemon.log
Off – Stop Stream on Squeezebox Server (Restore Stream before Bluetooth)LMS Debug Information
[18-12-09 09:26:50.4372] Plugins::ShairTunes2W::Plugin::handleSocketConnect (500) New connection from: 192.168.1.142
[18-12-09 09:26:50.4440] Plugins::ShairTunes2W::Plugin::conn_handle_request (807) DACP-ID: 888D63465D3216CB, Active Remote: 3687874810
[18-12-09 09:26:50.5702] Plugins::ShairTunes2W::Plugin::conn_handle_request (807) DACP-ID: 888D63465D3216CB, Active Remote: 3687874810
[18-12-09 09:26:50.6374] Plugins::ShairTunes2W::Plugin::conn_handle_request (807) DACP-ID: 888D63465D3216CB, Active Remote: 3687874810
[18-12-09 09:26:50.7036] Plugins::ShairTunes2W::Plugin::conn_handle_request (879) decode command: $VAR1 = ‚host‘;
$VAR2 = ‚192.168.1.142‘;
$VAR3 = ’socket‘;
$VAR4 = 46619;
$VAR5 = ‚fmtp‘;
$VAR6 = ’96 352 0 16 40 10 14 2 255 0 0 44100′;
$VAR7 = ‚cport‘;
$VAR8 = ‚63698‘;
$VAR9 = ‚tport‘;
$VAR10 = ‚62282‘;
$VAR11 = ‚latencies‘;
$VAR12 = ‚1000:2000‘;
$VAR13 = ‚codec‘;
$VAR14 = ‚wav‘;
$VAR15 = ‚iv‘;
$VAR16 = ‚da936815cbbdd42a425e588d356a0a9c‘;
$VAR17 = ‚key‘;
$VAR18 = ‚f455f62726ca8778c122012cdd60589d‘;
[18-12-09 09:26:50.7245] Plugins::ShairTunes2W::Plugin::conn_handle_request (897) Helper output: shairport_helper: VERSION: 0.103.3
[18-12-09 09:26:50.7253] Plugins::ShairTunes2W::Plugin::conn_handle_request (908) launched decoder: Proc::Background=HASH(0x6a9d328) on ports: 34432/53575/33949/56037, http port: 36829
[18-12-09 09:26:50.7378] Plugins::ShairTunes2W::Plugin::conn_handle_request (939) Playing url: airplay://192.168.1.151:56037/14931_stream.wav
[18-12-09 09:26:50.7708] Plugins::ShairTunes2W::Plugin::conn_handle_request (1021) sending-> vol: 88
[18-12-09 09:26:50.7842] Plugins::ShairTunes2W::Plugin::conn_handle_request (1021) sending-> vol: 88
[18-12-09 09:26:50.8487] Plugins::ShairTunes2W::Plugin::conn_handle_request (957) Flush up to 21354, 81508338
[18-12-09 09:26:50.8502] Plugins::ShairTunes2W::Plugin::handleHelperOut (593) From helper: flushed 21354
[18-12-09 09:26:51.7617] Plugins::ShairTunes2W::Plugin::handleCoverConnect (540) New cover proxy connection from 192.168.1.150
[18-12-09 09:26:51.7637] Plugins::ShairTunes2W::Plugin::handleCoverRequest (549) Image proxy request: GET /6093a31f18c6bcd89981ab1c236a81f2/cover.jpeg HTTP/1.1
[18-12-09 09:26:51.7650] Plugins::ShairTunes2W::Plugin::handleCoverRequest (549) Image proxy request: Accept-Encoding: gzip
[18-12-09 09:26:51.7663] Plugins::ShairTunes2W::Plugin::handleCoverRequest (549) Image proxy request: User-Agent: Jetty/9.3.21.v20170918
[18-12-09 09:26:51.7675] Plugins::ShairTunes2W::Plugin::handleCoverRequest (549) Image proxy request: Host: 192.168.1.151:36829
[18-12-09 09:26:51.7685] Plugins::ShairTunes2W::Plugin::handleCoverRequest (549) Image proxy request:
[18-12-09 09:26:51.7993] Plugins::ShairTunes2W::Plugin::handleCoverRequest (577) Coverart sent 79575 over 79575
[18-12-09 09:26:52.6100] Plugins::ShairTunes2W::Plugin::handleHelperOut (593) From helper: play
[18-12-09 09:26:52.8280] Plugins::ShairTunes2W::Plugin::conn_handle_request (807) DACP-ID: 888D63465D3216CB, Active Remote: 3687874810
[18-12-09 09:26:52.8532] Plugins::ShairTunes2W::Plugin::mDNSlistener (1135) Found remote: 888D63465D3216CB, 192.168.1.142:55417
[18-12-09 09:28:00.7548] Plugins::ShairTunes2W::Plugin::handleSocketRead (625) Closed: IO::Socket::INET=GLOB(0x6b180c8)
[18-12-15 06:41:01.5634] Slim::Player::Song::open (472) Warning: stream failed to open [https://radio.stereoscenic.com/ama-s].
[18-12-16 22:54:55.7362] Slim::Utils::Scanner::Remote::__ANON__ (193) Error: Can’t connect to remote server to retrieve playlist for, http://192.168.1.150:8080/audio/f23d32a0-139c-4522-9150-31b7329f2ddc.mp3: 404 Not Found.
[18-12-16 22:55:16.5627] Slim::Utils::Scanner::Remote::__ANON__ (193) Error: Can’t connect to remote server to retrieve playlist for, http://192.168.1.150:8080/audio/fb89efab-710b-4393-8d66-4a1ad44601da.mp3: 404 Not Found.- This reply was modified 5 years, 10 months ago by JoshHeng.
18. Dezember 2018 at 16:23 #42825Hi Josh,
Did you do a fresh install? If so, did you install the Bluetooth immediately? Did you also install the openHAB server this time?
-
You must be logged in to reply to this topic.