Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
990 stars 228 forks source link

Sound only few sec, cut and restarts randomly #490

Closed ChristianTardif closed 2 years ago

ChristianTardif commented 2 years ago

Hello

First of all very good project.

I wired everything correctly and I'm able to have some sound from the VS1053B, but the sound is randomly stoping and restarting again. The longer sound I got is few sec no more than 5 sec.

Do you have an idea? Here are the debuging info: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8

D: Starting ESP32-radio running on CPU 1 at 240 MHz. Version Mon, 28 Jun 2021 12:40:00 GMT. Free memory 308000 D: Display type is DUMMYTFT D: Partition nvs found, 20480 bytes D: Read 46 keys from NVS D: pin_ir set to 35 D: pin_enc_clk set to 25 D: pin_enc_dt set to 26 D: pin_enc_sw set to 27 D: pin_tft_cs set to 15 D: pin_tft_dc set to 2 D: pin_tft_scl set to -1 D: pin_tft_sda set to -1 D: pin_tft_bl set to -1 D: pin_tft_blx set to -1 D: pin_sd_cs set to 22 D: pin_ch376_cs set to -1 D: pin_ch376_int set to -1 D: pin_vs_cs set to 5 D: pin_vs_dcs set to 16 D: pin_vs_dreq set to 4 D: pin_shutdown set to -1 D: pin_shutdownx set to -1 D: pin_spi_sck set to 18 D: pin_spi_miso set to 19 D: pin_spi_mosi set to 23 D: GPIO0 is HIGH D: GPIO2 is HIGH D: GPIO4 is HIGH D: GPIO5 is HIGH D: GPIO12 is HIGH D: GPIO13 is HIGH D: GPIO14 is HIGH D: GPIO15 is HIGH D: GPIO16 is HIGH D: GPIO17 is HIGH D: GPIO18 is HIGH D: GPIO19 is HIGH D: GPIO21 is HIGH D: GPIO22 is HIGH D: GPIO23 is HIGH D: GPIO25 is HIGH D: GPIO26 is HIGH D: GPIO27 is HIGH D: GPIO32 is HIGH D: GPIO33 is HIGH D: GPIO34 is LOW, probably no PULL-UP D: GPIO35 is LOW, probably no PULL-UP D: GPIO39 is LOW, probably no PULL-UP D: gpio_00 will execute uppreset = 1 D: gpio_12 will execute upvolume = 2 D: gpio_13 will execute downvolume = 2 D: Enable pin 35 for IR D: Start display D: Create list with acceptable WiFi networks D: Added CPLJC_5GHz to list of networks D: Added CPLJC to list of networks D: End adding networks D: Scan Networks D: Scan completed D: Number of available networks: 1 D: 1 - CPLJC Signal: -57 dBm, Encryption WPA2_PSK, Acceptable D: End of list D: Command: clk_dst with parameter 1 D: Command: clk_offset with parameter 1 D: Command: clk_server with parameter 2.ca.pool.ntp.org D: Command: gpio_00 with parameter uppreset = 1 D: Command: gpio_12 with parameter upvolume = 2 D: Command: gpio_13 with parameter downvolume = 2 D: Command: ir_40bf with parameter upvolume = 2 D: Command: ir_c03f with parameter downvolume = 2 D: Command: mqttbroker with parameter none D: Command: mqttpasswd with parameter *** D: Command: mqttport with parameter 1883 D: Command: mqttprefix with parameter none D: Command: mqttuser with parameter none D: Command: pin_enc_clk with parameter 25 D: Command: pin_enc_dt with parameter 26 D: Command: pin_enc_sw with parameter 27 D: Command: pin_ir with parameter 35 D: Command: pin_sd_cs with parameter 22 D: Command: pin_tft_cs with parameter 15 D: Command: pin_tft_dc with parameter 2 D: Command: pin_vs_cs with parameter 5 D: Command: pin_vs_dcs with parameter 16 D: Command: pin_vs_dreq with parameter 4 D: Command: preset with parameter 6 D: Command: preset_00 with parameter 109.206.96.34:8100 D: Command: preset_01 with parameter airspectrum.cdnstream1.com:8114/1648_128 D: Command: preset_02 with parameter us2.internet-radio.com:8050 D: Command: preset_03 with parameter airspectrum.cdnstream1.com:8000/1261_192 D: Command: preset_04 with parameter airspectrum.cdnstream1.com:8008/1604_128 D: Command: preset_05 with parameter us1.internet-radio.com:8105 D: Command: preset_06 with parameter icecast.omroep.nl:80/radio1-bb-mp3 D: Command: preset_07 with parameter 205.164.62.15:10032 D: Command: preset_08 with parameter skonto.ls.lv:8002/mp3 D: Command: preset_09 with parameter 94.23.66.155:8106 D: Command: preset_10 with parameter ihr/IHR_IEDM D: Command: preset_11 with parameter ihr/IHR_TRAN D: Command: preset_12 with parameter icy1.abacast.com/radiocanada-premierechaine-64.m3u D: Command: preset_13 with parameter icy1.abacast.com/radiocanada-espacemusique-128.m3u D: Command: preset_14 with parameter bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p D: Command: toneha with parameter 0 D: Command: tonehf with parameter 0 D: Command: tonela with parameter 0 D: Command: tonelf with parameter 0 D: Command: volume with parameter 72 D: Slow SPI, Testing VS1053 read/write registers... D: Fast SPI, Testing VS1053 read/write registers again... D: endFillByte is 0 D: Connect to WiFi D: Connected to CPLJC D: IP = 192.168.1.118 D: Start server for commands D: Network found. Starting mqtt and OTA D: MDNS responder started D: Rotary encoder is enabled D: STOP requested D: New preset/file requested (6/0) from icecast.omroep.nl:80/radio1-bb-mp3 D: New station request D: Connect to new host icecast.omroep.nl:80/radio1-bb-mp3 D: Connect to icecast.omroep.nl on port 80, extension /radio1-bb-mp3 D: Song stopped correctly after 0 msec D: Connected to server D: Command client available D: handlehttp started D: Get command is: status D: Switch to HEADER D: Headerline: Content-Type: audio/mpeg D: audio/mpeg seen. D: Headerline: icy-br:192 D: Headerline: ice-audio-info: samplerate=48000;channels=2;bitrate=192 D: Headerline: icy-br:192 D: Headerline: icy-genre:Talk D: Headerline: icy-metadata:1 D: Headerline: icy-name:NPO Radio1 D: Headerline: icy-pub:0 D: Headerline: icy-url:http://www.radio1.nl D: Headerline: Server: Icecast 2.4.0-kh15 D: Headerline: Cache-Control: no-cache, no-store D: Headerline: Expires: Mon, 26 Jul 1997 05:00:00 GMT D: Headerline: Connection: Close D: Headerline: Access-Control-Allow-Origin: * D: Headerline: Access-Control-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type, Icy-MetaData D: l-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type, Icy-MetaData seen. D: Headerline: Access-Control-Allow-Methods: GET, OPTIONS, SOURCE, PUT, HEAD, STATS D: Headerline: icy-metaint:16000 D: Switch to DATA, bitrate is 192, metaint is 16000 D: Duration mp3loop 83 D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: HTTP input shorter than expected D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: STOP requested D: Stopping client D: New preset/file requested (7/0) from 205.164.62.15:10032 D: New station request D: Connect to new host 205.164.62.15:10032 D: Connect to 205.164.62.15 on port 10032, extension / D: Song stopped correctly after 0 msec D: Connected to server D: Switch to HEADER D: Headerline: icy-br: 192 D: Headerline: icy-pub: 1 D: Headerline: icy-description: 1.FM - Radio Gaia D: Headerline: icy-url: http://1.fm D: Headerline: Instance-id: 6d528cced0ceab046d125831e4e4dbf6 D: Headerline: Cache-Control: no-cache D: Headerline: Server: AIS Streaming Server 8.6.5 D: Headerline: icy-genre: Chill D: Headerline: Expires: Mon, 26 Jul 1997 05:00:00 GMT D: Headerline: icy-metaint: 8192 D: Headerline: Pragma: no-cache D: Headerline: icy-name: 1.FM - Radio Gaia D: Headerline: Connection: close D: Headerline: Content-Type: audio/mpeg D: audio/mpeg seen. D: Switch to DATA, bitrate is 192, metaint is 8192 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: HTTP input shorter than expected D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started D: Get command is: status D: Send reply for status D: Command: status with parameter 0 D: Command client available D: handlehttp started

Thank you in advance

Edzelf commented 2 years ago

Do you mean that the radio switches to the next preset? And does that happen after the sound output stops? In that case it looks like the data stream has stopped for some reason. You may try to use a different WiFi network.

ChristianTardif commented 2 years ago

It is not always switching

And I’m very close to the router, which is a quality one and also have no problem with internet radio on my phone (passing from the router)

Did it may come frime settings that need to be optimized? What to optimize?

Thank you to help Christian

Téléchargez Outlook pour iOShttps://aka.ms/o0ukef


De : Ed Smallenburg @.> Envoyé : Friday, December 17, 2021 4:21:32 AM À : Edzelf/ESP32-Radio @.> Cc : ChristianTardif @.>; Author @.> Objet : Re: [Edzelf/ESP32-Radio] Sound only few sec, cut and restarts randomly (Issue #490)

Do you mean that the radio switches to the next preset? And does that happen after the sound output stops? In that case it looks like the data stream has stopped for some reason. You may try to use a different WiFi network.

— Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/490#issuecomment-996561493, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR5AONJAB7TGRS57I3GK7HDURL6JZANCNFSM5KH33KWA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

Edzelf commented 2 years ago

First try to connect to a different wifi network, to rule out ESP hardware or software errors.

ChristianTardif commented 2 years ago

Finally, it was the ESP32 board (Heltec wifi kit) that was the problem. I had an other board (firebeetle esp32) used for an other perpose that I tryed and it work like a charme.