Announcement

Collapse
No announcement yet.

ANNOUNCE: Squeezelite-ESP32 (dedicated thread)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Originally posted by mboxler
    Just hooked up an I2C display and got the same results. This command must be used for something else. Sorry
    Scanning is exactly what it says. If connections are done correctly and configuration alings, then the scan should report something back.

    edit: actually, commands in the "advanced" menu aren't regression tested. I currently don't have a device to test so I cannot confirm if it's still working or not right now, but I'll try to set one up later today.
    Last edited by sle118; 2020-11-22, 16:38.
    LMS 7.9 - 1xRadio, 1xBoom, 5xDuet,3xTouch, 1 SB2. Sony PlayStation, Emby, Chromecast v1 and v2 and...
    6xSqueezeAmp, several other ESP32-Wrover boards with jumper wires flying around, some with ethernet!

    Comment


    • Originally posted by sle118
      I have installed rev 529 and it has been stable for me. The main difference, however, seems to be the hardware platform; you are running on the ESP32-A1S build and I'm running the I2S 4Mb build on a DAC that does not have i2c. I also noticed that you are sharing the i2c bus between the amp board and the display and I am wondering if this could be a source of conflict, as I do believe our core assumes a separation between i2c for amp and display (I'd have to check that).

      Could you please try to deactivate your display and see if this helps? Something else you could try is attaching your display's sda/scl to different GPIOs.

      I think it's time I order one of these boards so I can include them in my tests going forward.

      Thank you
      I do not have a display configured or attached to either of my A1S boards, did trial one briefly on a SqueezeAMP a short while back. I am using GPIO21 for a rotary encoder on one A1S but not on the one i was using last night and this morning, all that's configured GPIO wise is the buttons as per the example on the readme.
      I'll remove the buttons config and test again with a minimum default install.

      I'm happy to help and test, I'm learning and beginning to understand it all a bit more which is good, I got the A1S board(s) because they are ridiculously cheap and I thought they would be easier to play around with for learning and adding/testing I/O options (have to take the SqueezeAMP out of its case).
      I felt bad about highlighting these issues because I know you are putting a lot of hard work into improving the software and to be honest the thanks go out to the SqueezeESP32 team it's an incredible solution you've all managed to create.

      I also have a confession to make, I think some of my Bluetooth issues have been because I have left squeezelite turned off on the Audio+LMS page, partly due to my mis-understanding the "toggle to activate changes" and partly because I've also found/realised I've been suffering from browser page refresh issues. Testing with the console connected often showed clicks were acted on but the browser showed nothing.
      When I went back to 142 after testing today, I couldn't get Bluetooth to connect to either headphones or speaker, browser showed squeezelite as on and everything was configured ok but no connection and what puzzled me was no console output regarding BT. I force refreshed the web page and it reloaded back to wifi page, clicked on Audio+LMS page and squeezelite was off, turned it on and BT connected to my speaker, but not my Bose headphones - which must now also be considered a suspect in my issues with BT, the speaker has been far more reliable, I've been using it on version 142 for hours each day without any major issues - it's superb, a mini marvel, if only I could find a box/case to fit the oddly sized A1S into.

      I've created a GitHub account and have just transferred all the console captures over from my Windows machine to my Mac and will sit here this evening adding the issues, as I've already said, I'm happy on 142, the 526/529 testing was just to try and help you guys with some feedback.

      Kev
      Last edited by KeBul; 2020-11-30, 19:55.

      Comment


      • Originally posted by KeBul
        I've created a GitHub account and have just transferred all the console captures over from my Windows machine to my Mac and will sit here this evening adding the issues, as I've already said, I'm happy on 142, the 526/529 testing was just to try and help you guys with some feedback.
        Kev
        Your feedback is precious; it is hard if not impossible to test on a wide set of scenarios that cover real world usage patterns. Thank you for creating a GitHub account! It is challenging to try and keep track of issues in a forum because of the linearity of threads. Having a dedicated GitHub issue will allow a better/easier understanding and cause analysis.

        To be honest, streaming to Bluetooth external device was something I integrated early on (with the help of Philippe to get syncing, smootheness, and stability) because I didn't have an i2s DAC when Philippe and I launched ourselves into a crazy project. Note that I deliberately separated BT output configuration from squeezelite configuration. This means Bluetooth command line will now show -o "BT" or something along these lines, and BT configuration itself will appear below in a separate config. The benefit is that BT external configuration isn't lost when switching output to i2s.
        LMS 7.9 - 1xRadio, 1xBoom, 5xDuet,3xTouch, 1 SB2. Sony PlayStation, Emby, Chromecast v1 and v2 and...
        6xSqueezeAmp, several other ESP32-Wrover boards with jumper wires flying around, some with ethernet!

        Comment


        • Originally posted by sle118
          it is hard if not impossible to test on a wide set of scenarios that cover real world usage patterns.
          You are not kidding, this has taken me several hours for at least 3 days, it can be so time consuming and my use case is very limited, I used to be a development test engineer for dealing telephone systems, obviously far more complex but we had hundreds of test scripts to check every functionality, each new release would take weeks and then months of running the scripts plus adhoc "play" time where we would try and break the system... fun times.

          I've logged the 3 main problems I've seen, If there's anything else I can do to help then let me know, only too happy to assist and learn further.

          Kev

          Comment


          • small suggestion for improvement:
            The link of the LMS-Plugin (...repo.xml) in the first post ist broken. I found the korrekt link in the Readme... so no problem for me, but maybe for new people, who only read the first post...
            Can you edit the first post? Thanks and Greetings.

            Comment


            • Understanding SqueezeESP32 Plugin and equalizer

              I've run into more problems with the Equalizer,

              Initially one player wasn't reacting to changed equaliser settings with this message logged in LMS:

              [20-11-23 16:58:50.1248] Slim::Web::JSONRPC::requestMethod (455) Request failed with error: Bad dispatch!
              [20-11-23 16:58:54.1886] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Plugins::SqueezeESP32::Plugin::setEQ]: [Can't locate object method "send_equalizer" via package "Slim::Player::SqueezePlay" at /usr/local/slimserver/Cache/InstalledPlugins/Plugins/SqueezeESP32/Plugin.pm line 98

              I've tried my previous trick of deleting the plugin squeezeesp32.prefs bit that made no difference, I then deleted all LMS settings, plugins and cache and set up LMS again from scratch.

              Erased and re-flashed an A1S with 526 using I2S and wired headphones, so was effectively working from scratch from both LMS and a player point of view.

              Now changing the equalizer settings did alter the sound of the music but despite saving, the settings were always back to 0 when you went back into the player squeezeesp32 settings in LMS. Adjusting the settings again caused really bad distortion on the sound and that's where I'm stuck...

              I've deleted squeezeesp32.prefs again, and erased and reflashed the A1S, re-connected it to wifi and made no other changes... and I'm still getting the really bad distortion.

              So what's saved where? Why are the bad settings persisting? and what's the best way to get everything reset back.

              Thanks in advance

              Kev

              Comment


              • Originally posted by MumPf
                small suggestion for improvement:
                The link of the LMS-Plugin (...repo.xml) in the first post ist broken. I found the korrekt link in the Readme... so no problem for me, but maybe for new people, who only read the first post...
                Can you edit the first post? Thanks and Greetings.
                Done, thanks!
                LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                Comment


                • Originally posted by KeBul
                  I've run into more problems with the Equalizer,

                  Initially one player wasn't reacting to changed equaliser settings with this message logged in LMS:

                  [20-11-23 16:58:50.1248] Slim::Web::JSONRPC::requestMethod (455) Request failed with error: Bad dispatch!
                  [20-11-23 16:58:54.1886] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Plugins::SqueezeESP32::Plugin::setEQ]: [Can't locate object method "send_equalizer" via package "Slim::Player::SqueezePlay" at /usr/local/slimserver/Cache/InstalledPlugins/Plugins/SqueezeESP32/Plugin.pm line 98

                  I've tried my previous trick of deleting the plugin squeezeesp32.prefs bit that made no difference, I then deleted all LMS settings, plugins and cache and set up LMS again from scratch.

                  Erased and re-flashed an A1S with 526 using I2S and wired headphones, so was effectively working from scratch from both LMS and a player point of view.

                  Now changing the equalizer settings did alter the sound of the music but despite saving, the settings were always back to 0 when you went back into the player squeezeesp32 settings in LMS. Adjusting the settings again caused really bad distortion on the sound and that's where I'm stuck...

                  I've deleted squeezeesp32.prefs again, and erased and reflashed the A1S, re-connected it to wifi and made no other changes... and I'm still getting the really bad distortion.

                  So what's saved where? Why are the bad settings persisting? and what's the best way to get everything reset back.

                  Thanks in advance

                  Kev
                  I will look at that tomorrow, there seems to be something problematic with just the plugin side of things, but it also might be due to the swaps betwee, 142 and newer (I need to verify) as I had to introduce two player types (with or without display) and there is no good backward compatibility. And old firmware sends a mode 100 and the new plugin then thinks it has display and is messed up with that.
                  LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                  Comment


                  • Originally posted by philippe_44
                    I will look at that tomorrow, there seems to be something problematic with just the plugin side of things, but it also might be due to the swaps betwee, 142 and newer (I need to verify) as I had to introduce two player types (with or without display) and there is no good backward compatibility. And old firmware sends a mode 100 and the new plugin then thinks it has display and is messed up with that.
                    OK thanks.

                    In this case though, I had cleared LMS cache, settings and plugins from LMS (Remove cache and preferences in pCP) and then set LMS up again, squeeze network login, music and playlist locations etc added all my plugins and configured up all my players, erased the A1S flash and loaded 526 from scratch, so unless I've missed something stored somewhere in LMS that player had not been on that system as 142.

                    This morning I cleared the squeezeesp32.pref file again, erased the A1S and re-flashed 526, and now the sound is back to normal and equalizer changes are working and remaining stored... pretty sure that was the first thing I tried yesterday and it didn't sort it, go figure.

                    Kev

                    Comment


                    • Originally posted by sle118
                      Scanning is exactly what it says. If connections are done correctly and configuration alings, then the scan should report something back.

                      edit: actually, commands in the "advanced" menu aren't regression tested. I currently don't have a device to test so I cannot confirm if it's still working or not right now, but I'll try to set one up later today.
                      Thank you for looking into this!

                      Mike

                      Comment


                      • St7789

                        So I got myself one of these ST7789 displays and hooked it up. The Album Art looks very nice!
                        Now I have 2 questions:
                        1) Can I get the VU-Meter to show with the same height as the Analog-VU meter (or better still with configurable height)? If I switch to VU-Meter it uses the entire screen under the title display and I lose the album art.
                        2) I forgot how to configure the MusicInfoSCR plugin to not show the note symbol and still show the anlaog VU-meter: when I switch to MusicInfoSCR the analog VU-meter vanishes. What am I missing?
                        Click image for larger version

Name:	2020-11-30 00.29.08.jpeg
Views:	1
Size:	165.3 KB
ID:	1570473

                        edit:
                        and another question:
                        3) Does the backlight pin configured in display_config do anything?
                        Last edited by ElFishi; 2020-11-29, 23:56.

                        Comment


                        • I have to say, the album art feature is a bit of hit and miss for me at the moment.
                          Quite frequently the cover simply does not show while the rest of the display looks as expected.
                          I can't quite pin it down but playing in sync with another player seems to make it less likely that the cover gets shown.

                          I can always make the cover show by toggling twice the activate box on the ESP32 Settings page in LMS.

                          In addition all my players run fw: I2S-4MFlash.529.master-cmake and show
                          Code:
                          W (448306) bt_app_source: media state : 0
                          W (451316) bt_app_source: a2dp status: 0 = APP_AV_STATE_IDLE
                          W (451316) bt_app_source: media state : 0
                          W (454376) bt_app_source: a2dp status: 0 = APP_AV_STATE_IDLE
                          W (454376) bt_app_source: media state : 0
                          W (457346) bt_app_source: a2dp status: 0 = APP_AV_STATE_IDLE
                          every few seconds. It doesn't make a difference if I set enable_airplay / enable_bt_sink to 0 or 1.

                          Comment


                          • jinxed

                            something is jinxed today.
                            all of a sudden my rotary does nothing but
                            Code:
                            [00:03:38.959888] cli_send_cmd:254 cannot send CLI b4:e6:2d:df:3e:6d button voldown
                            
                            [00:03:39.151983] cli_send_cmd:254 cannot send CLI b4:e6:2d:df:3e:6d button voldown
                            
                            [00:03:40.672242] cli_send_cmd:254 cannot send CLI b4:e6:2d:df:3e:6d button volup
                            fw: I2S-4MFlash.529.master-cmake, config attached.
                            Logitech Media Server Version: 8.0.1 - 1606385654 @ Thu Nov 26 11:59:44 CET 2020

                            I already restarted LMS, but nothing changes???

                            Update: restarted everything pCP and all players - back to normal. No clue what happened.
                            Attached Files
                            Last edited by ElFishi; 2020-11-30, 18:14. Reason: update

                            Comment


                            • Originally posted by ElFishi
                              something is jinxed today.
                              all of a sudden my rotary does nothing but
                              Code:
                              [00:03:38.959888] cli_send_cmd:254 cannot send CLI b4:e6:2d:df:3e:6d button voldown
                              
                              [00:03:39.151983] cli_send_cmd:254 cannot send CLI b4:e6:2d:df:3e:6d button voldown
                              
                              [00:03:40.672242] cli_send_cmd:254 cannot send CLI b4:e6:2d:df:3e:6d button volup
                              fw: I2S-4MFlash.529.master-cmake, config attached.
                              Logitech Media Server Version: 8.0.1 - 1606385654 @ Thu Nov 26 11:59:44 CET 2020

                              I already restarted LMS, but nothing changes???

                              Update: restarted everything pCP and all players - back to normal. No clue what happened.
                              There is something with the number of CLI sockets opened that causes LMS to reject connections. I'm trying to see where it comes from but I've been unsuccessful so far. Do you have some of my bridges running as well?
                              LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                              Comment


                              • Originally posted by ElFishi
                                So I got myself one of these ST7789 displays and hooked it up. The Album Art looks very nice!
                                Now I have 2 questions:
                                1) Can I get the VU-Meter to show with the same height as the Analog-VU meter (or better still with configurable height)? If I switch to VU-Meter it uses the entire screen under the title display and I lose the album art.
                                2) I forgot how to configure the MusicInfoSCR plugin to not show the note symbol and still show the anlaog VU-meter: when I switch to MusicInfoSCR the analog VU-meter vanishes. What am I missing?
                                3) Does the backlight pin configured in display_config do anything?
                                1)Sorry, I'm not following
                                2)MusicSCR settings is in the Player's settings
                                3)It is used for brightness as well
                                LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎