sonocotta / esp32-audio-dock

Audio docks for ESP32 mini (ESP32, ESP32C3, ESP32S2 and ESP8266 mini modules from Wemos)
https://sonocotta.github.io/esp32-audio-dock/
Apache License 2.0
77 stars 8 forks source link

Loosing connection #4

Closed agdamsbo closed 6 months ago

agdamsbo commented 8 months ago

Hi. I have purchased your Louder ESP board on tindie. I find that the connection is often lost to my LMS server during playback. Do you have any suggestions for improving? I haven't been able to find alternative mini ESP32 board with external antenna.

I run squeezelite-esp32 on the unit, its build into an old speaker with wooden cabinet. Stream is from the Music Assistant (LMS functinality) for Home Assistant.

anabolyc commented 8 months ago

Hey @agdamsbo

Most probably this relates to connectivity quality. Sometimes you can improve by taking the device closer to the WiFi router/repeater or changing your wifi channel. An alternative way is to use Ethernet instead. It is a plug-and-play solution, but you need to have an ethernet wire around.

If you suspect a specific ESP32 module to be defective, you can run some Arduino samples with a wifi scan and compare it to a known good module.

agdamsbo commented 8 months ago

Hi. Thanks. The speaker sits next to my router, forgot to mention. Will try an other board. And might consider adding an external antenna like here

anabolyc commented 8 months ago

@agdamsbo I'm working on next-generation louder esp now. Please subscribe to my campaign to do not miss when it will be out.

agdamsbo commented 8 months ago

Yes, I have seen that, but I have also recently bought 3 esp louder boards, And I don't want them to be wasted. Also have the Espargus Hifi medialink and it seems to work great.

Just had a look at my router, and the board is reported as having an excellent connection.

anabolyc commented 8 months ago

@agdamsbo I absolutely want you to keep using Louder-ESPs, it is just for some modules it is really hard to understand why the have connection issues sometimes. RSSI is not always a good indication, WiFi may fail under load specifically, when you're trying to push some data through it. And sometimes it is a bit magical, might work better when placed further away. I hope you have a change to compare with alternative eps32 modules to figure out what may be a reason for that at least.

agdamsbo commented 8 months ago

Just tried with direct bluetooth connection. Also similar issues with stream interruptions. Will try a different module when I get the chance. Hopefully soon. Also, I will be trying out Snapcast, which I believe is being ported to support the DAC used. As I understand, snapcast may be a better protocol than slimproto.

anabolyc commented 8 months ago

Please keep me posted. Also interested if snapcast would work better