mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.3k stars 574 forks source link

[Problem]: TuneBlade can only detect Shairport when downstairs #1653

Closed Miniontoby closed 1 year ago

Miniontoby commented 1 year ago

What happened?

So yesterday I set this thing up and it worked fine with TuneBlad But today when I wanted to play some music, TuneBlade wasn't able to find my raspberry pi.

Then I went downstairs because I wanted to show my dad something and whilst I was waiting downstairs I tried looking again and then TuneBlade found my raspberry pi.

Then I went back upstairs and TuneBlade not found it again.

I also tried updating to AirPlay 2 to check if that would fix the problem, but it didn't.

Btw, when I add it manually it works, but I don't want to do that, cause then it gets stuck at "buffering" and will cause problems in the future with the setup of my home's router

Relevant log output

Not relevant and didn't have anything useful

Configuration Information.

>> Display Config Start.

From "uname -a":
 Linux kodipi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

From /etc/os-release:
 Raspbian GNU/Linux 10 (buster)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi 4 Model B Rev 1.2

Shairport Sync Version String:
 4.1.1-5-g69d3b02a-AirPlay2-OpenSSL-Avahi-ALSA-soxr-metadata-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
 alsa : 
 {
   output_device = "hw:Headphones";
   mixer_control_name = "Headphone";
 };

>> Display Config End.
>> Goodbye!

How did you install Shairport Sync?

Built from source

Check previous issues

mikebrady commented 1 year ago

Thanks. Let me suggest you check that Wi-Fi Power Management is off. There might be other hints on the troubleshooting page.

Miniontoby commented 1 year ago

I did put power management to off

mikebrady commented 1 year ago

Thanks. Then it sounds perhaps a bit like a networking issue. You can use a tool like avahi-browse to check that Shairport Sync is advertising to the network using Bonjour/Zeroconf. Then, at the phone end, if it was an iPhone you could use a tool like Discovery from TildeSoft to see if the advertisement can be seen. Maybe there’s something similar for Android.

Miniontoby commented 1 year ago

I am using Windows with TuneBlade to send to shairport-sync! I don't have iPhone or any Apple related thing. I just found this software when looking for Wireless Audio Streaming servers. But I will check avahi-browse and those things

But as I told you:

I went downstairs and I looking again and then TuneBlade found my raspberry pi.

Then I went back upstairs and TuneBlade not found it again.

Miniontoby commented 1 year ago

avahi-browse says:

pi@kodipi:~/shairport-sync $ avahi-browse -a
+  wlan0 IPv6 FD94269AF068@Creative Inspire 5.1 AirTunes Remote Audio local
+  wlan0 IPv4 FD94269AF068@Creative Inspire 5.1 AirTunes Remote Audio local
+   eth0 IPv4 FD94269AF068@Creative Inspire 5.1 AirTunes Remote Audio local
+  wlan0 IPv6 Creative Inspire 5.1            _airplay._tcp        local
+  wlan0 IPv4 Creative Inspire 5.1            _airplay._tcp        local
+   eth0 IPv4 Creative Inspire 5.1             _airplay._tcp        local
+  wlan0 IPv6 KODIPI                                        _device-info._tcp    local
+  wlan0 IPv4 KODIPI                                        _device-info._tcp    local
+  wlan0 IPv6 KODIPI                                        Microsoft Windows Network local
+  wlan0 IPv4 KODIPI                                        Microsoft Windows Network local
+  wlan0 IPv4 Magic 2 LAN 1-1                               _dvl-deviceapi._tcp  local
+  wlan0 IPv4 iTunes_Ctrl_EAE41C4123AE47E2                  iTunes Remote Control local
+  wlan0 IPv4 Magic 2 WiFi 2-1                              _dvl-deviceapi._tcp  local
+  wlan0 IPv4 Magic 2 LAN 1-1                               Web Site             local
+   eth0 IPv4 KODIPI                                        _device-info._tcp    local
+   eth0 IPv4 KODIPI                                        Microsoft Windows Network local
+  wlan0 IPv4 Magic 2 LAN 1-1                               _dvl-plcnetapi._tcp  local
+  wlan0 IPv6 Magic 2 WiFi 2-1                              Secure Web Site      local
+  wlan0 IPv6 Magic 2 WiFi 2-1                              Web Site             local
+  wlan0 IPv4 Magic 2 WiFi 2-1                              _dvl-plcnetapi._tcp  local
+  wlan0 IPv4 Magic 2 WiFi 2-1                              Web Site             local
+  wlan0 IPv4 Magic 2 WiFi 2-1                              Secure Web Site      local

Got SIGINT, quitting.
mikebrady commented 1 year ago

Yeah so it looks as it Shairport Sync is being advertised alright — the first six lines. The question then is whether it’s being seen all the time at the TuneBlade end. I have used TuneBlade extensively in the past for testing — it’s a good product.

Miniontoby commented 1 year ago

Yeah so it looks as it Shairport Sync is being advertised alright — the first six lines. The question then is whether it’s being seen all the time at the TuneBlade end. I have used TuneBlade extensively in the past for testing — it’s a good product.

I have now turned off the ipv6 and at first it didn't work, but then after some time it seemed to work, but now I am at school, so I cannot test it. I will be testing it at like 15:30 UTC+1 and will comment again.

Btw if I add it manually it also worked, but after 10 minutes it stopped working. So yeah I hope the auto detect will continue working.

Miniontoby commented 1 year ago

So update: It didn't detect it today!

Miniontoby commented 1 year ago

Does anyone have an idea how to fix it? I would really like to just be able to use a ready-to-use software to remotely play audio instead of writing my own python server-client thingy alternative.

Also dns-sd.exe cannot find anything

PS C:\Users\Miniontoby> dns-sd -B _raop._tcp
Browsing for _raop._tcp
PS C:\Users\Miniontoby> dns-sd -B _airplay._tcp
Browsing for _airplay._tcp
PS C:\Users\Miniontoby> 
github-actions[bot] commented 1 year ago

This issue has been inactive for 45 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.