Edzelf / ESP32-Radio

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

Hanging on starting #483

Closed ilioSS53 closed 2 years ago

ilioSS53 commented 2 years ago

Hi Ed, At the moment I started to build a new radio with the naked ninja pcb. Programming with performio succeded. Lots of errors but the code is uploaded. The startup is stopped at starting... Only the display is connected. Do I need to remove the not used rotary encoder, sdcard etc.lines? It is not possible to reach the page 192.168.4.1 or ESP32Radio? Also my old ssid was loaded?? This is an old problem which can be solved by entrring the new ssid via the webpage correct? Like to hear. Kind regards ilioSS

Edzelf commented 2 years ago

You should be able to start the webinterface on 192.168.4.1 without any connection. Please take a look at the version 2 version. It is more up-to-date.

ilioSS53 commented 2 years ago

Hallo Ed,

Thanks for the swift reaction. Today I downloaded the version2 in performio compile it without any errors and uploaded it to the esp32 on the naked ninja pcb With a display. The same problem occurred. Hanging on Starting… The serial monitor mentioned the leeuwarderweg ssid loaded. But this is an old ssid while I,am moved to another home address and have now a complete different ssid and passw. On a Ziggo router. Is the old ssid stored in the nvs ? You mentioned that I can connect to the esp32 with 192.168.4.1 this will not work for me? I changed my ssid in the pref. file If it is so that the nvs has the old ssid and only can be changed by the webinterface howe to proceed any help is more than welcome. Kind regards. ilioSS

Van: Ed Smallenburg @.> Verzonden: maandag 25 oktober 2021 23:24 Aan: Edzelf/ESP32-Radio @.> CC: ilioSS53 @.>; Author @.> Onderwerp: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

You should be able to start the webinterface on 192.168.4.1 without any connection. Please take a look at the version 2 version. It is more up-to-date.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-951343988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L44H5GPLTGWGCKZDE3TUIXDIZANCNFSM5GWHDECA. 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.

ilioSS53 commented 2 years ago

Hallo Ed, Here my serial monitor list… Executing task in folder ESP32Radio-V2-main: C:\Users\Theo.platformio\penv\Scripts\platformio.exe device monitor <

--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time --- More details at http://bit.ly/pio-monitor-filters --- forcing DTR inactive --- forcing RTS inactive

Please build project in debug configuration to get more details about an exception. See https://docs.platformio.org/page/projectconf/build_configurations.html

--- Miniterm on COM4 115200,8,N,1 --- --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- D: Scan completed D: Number of available networks: 3 D: 1 - Ziggo26858A3 Signal: -69 dBm, Encryption WPA2_PSK, D: 2 - Ziggo Signal: -92 dBm, Encryption ????, D: 3 - Ziggo7116264 Signal: -93 dBm, Encryption WPA2_PSK, D: End of list D: Command: clk_dst with parameter 1 D: Command: clk_offset with parameter 1 D: Command: clk_server with parameter pool.ntp.org D: Command: gpio_13 with parameter upvolume = 2 D: Command: gpio_14 with parameter downvolume = 2 D: Command: gpio_17 with parameter uppreset = 1 D: Command: gpio_32 with parameter downpreset = 1 D: Command: gpio_33 with parameter preset = 7 D: Command: ir_629d with parameter preset = 7 D: Command: ir_a25d with parameter downpreset = 1 D: Command: ir_a857 with parameter upvolume = 2 D: Command: ir_e01f with parameter downvolume = 2 D: Command: ir_e21d with parameter uppreset = 1 D: Command: mqttbroker with parameter none D: Command: mqttpasswd with parameter none D: Command: mqttport with parameter 1883 D: Command: mqtttpreset 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 21 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 7 D: Command: preset_00 with parameter 109.206.96.34:8100 D: Command: preset_01 with parameter icecast.omroep.nl:80/radio1-bb-mp3 D: Command: preset_02 with parameter icecast.omroep.nl/radio2-bb-mp3 D: Command: preset_03 with parameter icecast.omroep.nl/3fm-bb-mp3 D: Command: preset_04 with parameter icecast.omroep.nl/radio4-bb-mp3 D: Command: preset_05 with parameter icecast.omroep.nl/radio5-bb-mp3 D: Command: preset_06 with parameter icecast.omroep.nl/radio6-bb-mp3 D: Command: preset_07 with parameter 19093.live.streamtheworld.com:3690/CLASSICFM_SC D: Command: preset_08 with parameter 19993.live.streamtheworld.com:80/SKYRADIO_SC D: Command: preset_09 with parameter stream.sublimefm.nl/SublimeFM_aac D: Command: toneha with parameter 8 D: Command: tonehf with parameter 8 D: Command: tonela with parameter 8 D: Command: tonelf with parameter 8 D: Command: volume with parameter 0 D: Command: wifi_00 with parameter Leeuwarderweg29wifi/12345abcdef D: Command: wifi_01 with parameter Leeuwarderweg29/465857f17c67 D: Connect to WiFi D: WiFi Failed! Trying to setup AP with name ESP32Radio and password ESP32Radio. D: IP = 192.168.4.1 D: Start server for commands D: Rotary encoder is enabled D: STOP requested D: Starting I2S playtask.. D: Output to internal DAC D: Playtask stop song

Hope it gives some information. Ziggo26858A3 is my present ssid leeuwarderweg the old one

Van: Ed Smallenburg @.> Verzonden: maandag 25 oktober 2021 23:24 Aan: Edzelf/ESP32-Radio @.> CC: ilioSS53 @.>; Author @.> Onderwerp: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

You should be able to start the webinterface on 192.168.4.1 without any connection. Please take a look at the version 2 version. It is more up-to-date.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-951343988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L44H5GPLTGWGCKZDE3TUIXDIZANCNFSM5GWHDECA. 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.

ilioSS53 commented 2 years ago

Hallo Ed,

After a couple of hours I succeeded to have the both (2pcs) esp32 running as it is mend. To be able to start from scratch with a nvs cleared memory I uploaded the bootloader and the asp32-wroom software with the upload tool.(leeuwarderweg was a pain in the a....) Why the old ssid remains giving problems. Hanging on starting... Not possible to enter the esp by 192.168.4.1 I programmed the esp32 with the old school Arduino ide ??? Performio I will make some tests up till now it looks not so reliable. Must check. I will let you know. Kind regards ilioSS

Edzelf commented 2 years ago

Are you sure your PC has connected to the ESP32 accesspoint before trying to connect on 192.168.4.1? Do you see the accesspoint in the WiFi list on your PC.

ilioSS53 commented 2 years ago

Ed, Fing didn,t give the ip adres. Both 192.168.4.1 or ESP32Radio not working. So via the webpage it was not possible to enter the preferences. Accespoint i did not see. Halfway i saw the esp_1047DB in the wifi stations on my pc? It looks like some sort of the changes will be effective after a new start. For me it is strainge that you mentioned 192.168.4.1 must work without any connection. After all it works, still not exactly pinpointed where was the error.Difficult.

Regards ilioSS

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: Ed Smallenburg @.> Sent: Wednesday, October 27, 2021 11:13:02 PM To: Edzelf/ESP32-Radio @.> Cc: ilioSS53 @.>; Author @.> Subject: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

Are you sure your PC has connected to the ESP32 accesspoint before trying to connect on 192.168.4.1? Do you see the accesspoint in the WiFi list on your PC.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-953316278, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L45MPV3YVJWZOEW4KQDUJB2O5ANCNFSM5GWHDECA. 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.

Edzelf commented 2 years ago

In the logging you should see the name and password of the accesspoint. Connect to it first.

ilioSS53 commented 2 years ago

Hi Ed,

Here the log file.

Executing task: C:\Users\Theo.platformio\penv\Scripts\platformio.exe device monitor <

--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time --- More details at http://bit.ly/pio-monitor-filters --- forcing DTR inactive --- forcing RTS inactive

Please build project in debug configuration to get more details about an exception. See https://docs.platformio.org/page/projectconf/build_configurations.html

--- Miniterm on COM4 115200,8,N,1 --- --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter. OK

ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (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:8896 load:0x40080400,len:5828 entry 0x400806ac

D: Starting ESP32-radio running on CPU 1 at 240 MHz. Version Tue, 06 Oct 2021 14:35:00 GMT. Free memory 284188 D: Display type is BLUETFT D: SPIFFS is okay, space 1378241, used 0 D: Found partition 'nvs ' at offset 0x009000 with size 20480 D: Found partition 'otadata ' at offset 0x00E000 with size 8192 D: Found partition 'spiffs ' at offset 0x290000 with size 1507328 D: Read 0 keys from NVS D: pin_ir set to -1 D: pin_enc_clk set to -1 D: pin_enc_dt set to -1 D: pin_enc_sw set to -1 D: pin_tft_cs set to -1 D: pin_tft_dc set to -1 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_vs_cs set to -1 D: pin_vs_dcs set to -1 D: pin_vs_dreq set to -1 D: pin_shutdown set to -1 D: pin_shutdownx set to -1 D: pin_i2s_bck set to -1 D: pin_i2s_lck set to -1 D: pin_i2s_din 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 LOW, probably no PULL-UP 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: 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: Create list with acceptable WiFi networks D: End adding networks D: Scan Networks D: Scan completed D: Number of available networks: 3 D: 1 - Ziggo26858A3 Signal: -64 dBm, Encryption WPA2_PSK, D: 2 - Ziggo Signal: -89 dBm, Encryption ????, D: 3 - Ziggo7116264 Signal: -91 dBm, Encryption WPA2_PSK, D: End of list D: Connect to WiFi D: WiFi Failed! Trying to setup AP with name ESP32Radio and password ESP32Radio. D: IP = 192.168.4.1 D: Start server for commands D: Rotary encoder is disabled (-1/-1/-1) D: Starting I2S playtask.. D: Output to internal DAC

No succes so far. Still the same ""sorry"" in the left upper corner. No ask for passwd. The situation; ESP32 bootloaded ESP32 fitted on the pcb naked ninja Display remains blank ( on old school it function)

So I have two (2) esp32 one with the old school Arduino ide works the second fresh from the bootloader on platformio stuck at "sorry". Enclosed the log file after the bootloading.

Edzelf commented 2 years ago

See: D: SPIFFS is okay, space 1378241, used 0 So there are no files in SPIFFS. Upload data directory to SPIFFS. You should see something like: D: SPIFFS is okay, space 1378241, used 28614

ilioSS53 commented 2 years ago

Helo Ed,

Sorry for the inconvienence. To come back again. It looks like a sequence issue. Arduino is no problem.

Now I focus on platformio and version 2 I bootloaded again this means start with empty ESP32. I downloaded the v2 . Unzip in Arduino project folder. Start platformio. Imported a Arduino project doit esp32 def kit v1. Looks ok. So where must I enter my ssid etc. Three files 1) espradio init.ino 2) example config text 3) default ptefs.txt

A spiffs folder not found??? SPIFFS wil retrieve the files from the data folder ?????

In this situation the after start-up the network http://192.168.4.1 the webpage complained about that the wrong prefs where loaded.

The correct sequence must be ssid to enter in one of the files Which ?

Like to hear. Greetz Theo

Van: Ed Smallenburg @.> Verzonden: donderdag 28 oktober 2021 14:38 Aan: Edzelf/ESP32-Radio @.> CC: ilioSS53 @.>; Author @.> Onderwerp: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

See: D: SPIFFS is okay, space 1378241, used 0 So there are no files in SPIFFS. Upload data directory to SPIFFS. You should see something like: D: SPIFFS is okay, space 1378241, used 28614

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-953803797, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L453OE7UPW27HIVKGW3UJFG3HANCNFSM5GWHDECA. 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.

Edzelf commented 2 years ago

No need to change any file. Just be sure you SPIFFS is filled with the files in the data directory. Bel anders even 0416-272633

Edzelf commented 2 years ago

I added firmware and upload instructions to the document. See chapter 6.

ilioSS53 commented 2 years ago

Hi Ed ,

Thanks for the replay. I will read the documentation. Very old internet radio you make there?

Yes RTFM. After this hopefully it is working for me. Thanks for your support.

Regards, Theo

Van: Ed Smallenburg @.> Verzonden: donderdag 28 oktober 2021 19:34 Aan: Edzelf/ESP32-Radio @.> CC: ilioSS53 @.>; Author @.> Onderwerp: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

I added firmware and upload instructions to the document. See chapter 6.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-954056010, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L47MG4K57YFKJZHY7BTUJGJRLANCNFSM5GWHDECA. 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.

ilioSS53 commented 2 years ago

Hello Ed,

Smashing. If I follow the instructions it is working direct with a charm. Til I was using your instruction I was uploaded the script via the build button √ (vinkje) and the right arrow upload → that was my mistake. All and all I,am very glad it is working. Appreciate your support very much.

Keep up the nice work.

Kind regards, Theo

Note: I follow the development this V2

Van: Ed Smallenburg @.> Verzonden: donderdag 28 oktober 2021 19:34 Aan: Edzelf/ESP32-Radio @.> CC: ilioSS53 @.>; Author @.> Onderwerp: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

I added firmware and upload instructions to the document. See chapter 6.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-954056010, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L47MG4K57YFKJZHY7BTUJGJRLANCNFSM5GWHDECA. 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.

Edzelf commented 2 years ago

Right arrow is the same as "pio run -t upload".

ilioSS53 commented 2 years ago

Yes and therefore the fs filesystem the webpages didn,t uploaded. Nice to know. Thanks


From: Ed Smallenburg @.> Sent: Thursday, October 28, 2021 9:34:56 PM To: Edzelf/ESP32-Radio @.> Cc: ilioSS53 @.>; Author @.> Subject: Re: [Edzelf/ESP32-Radio] Hanging on starting (Issue #483)

Right arrow is the same as "pio run -t upload".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Edzelf/ESP32-Radio/issues/483#issuecomment-954141063, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV63L46FYKGTY3M4LIQHHUTUJGXXBANCNFSM5GWHDECA. 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.

ilioSS53 commented 2 years ago

Hi Ed,

The latest esp32 radio with search function is a piece from a next level. Realy amazing. With a smile all kind of music at hand. I enjoy it. Regards ilioSS

ilioSS53 commented 2 years ago

Hello Ed, After one night printing here my new ESP32 radio. Greetz ilioSS

Edzelf commented 2 years ago

Where? And please remove Outlook advertisement.

ilioSS53 commented 2 years ago

Hi Ed, Sorry ads. Switched off. Photo didnot come with the e-mail? Here it is. 20211102_134629 IMG-20211102-WA0002 Regards ilioSS

ilioSS53 commented 2 years ago

Hi Ed,

I,am a bit confused. The "old" version appeared to have lost his SD card function? During start-up SD card not displayed. In the menu it is mentioned?

Already some test done no sigh of recognition of the SD card.

Is the SD card no longer in the system?

Like to hear ilioSS

Note: the new radio 3D printed last for just a couple of weeks. For a better sound I filled the casing with demping material. After al a bad ideer. The ESP32 is burn-out.