Edzelf / ESP32Radio-V2

New version of the well known ESP32 Radio. Now optional I2S output!
Apache License 2.0
209 stars 50 forks source link

Sound with major interrupts on VS1003 #2

Open skartalov opened 3 years ago

skartalov commented 3 years ago

I am using VS1003 insted of VS1053.

The Terminal shows correct about using VS1003, but when the stream starts it is interrupted a lot. Like 0.5 sec sound, 5 sec - no sound. On every stations.

What could be the issue? Did someone else used VS1003 ?

Also:

When it can not connect to the network and tried to create hotspot ESP32Radio, it reboots with this log:

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 Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x4018d92b PS : 0x00060e30 A0 : 0x800d211b A1 : 0x3ffb1f10
A2 : 0x00000000 A3 : 0xa3a2e1c9 A4 : 0x3f400a96 A5 : 0x3ffb1f30 A6 : 0x3ffb1f00 A7 : 0x00000004 A8 : 0xa3a2e1c9 A9 : 0x3ffb1ea0
A10 : 0x00000001 A11 : 0x00000001 A12 : 0x3ffd75e8 A13 : 0x00000001 A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000

ELF file SHA256: 0000000000000000

Backtrace: 0x4018d92b:0x3ffb1f10 0x400d2118:0x3ffb1f30 0x400d4654:0x3ffb1f50 0x400d7366:0x3ffb1f90 0x400eb2c4:0x3ffb1fb0 0x4008a586:0x3ffb1fd0

0 0x4018d92b:0x3ffb1f10 in AsyncClient::connected() at .pio\libdeps\esp32doit-devkit-v1\AsyncTCP\src/AsyncTCP.cpp:1118

1 0x400d2118:0x3ffb1f30 in stop_mp3client() at src/main.cpp:1323

2 0x400d4654:0x3ffb1f50 in mp3loop() at src/main.cpp:2925

3 0x400d7366:0x3ffb1f90 in loop() at src/main.cpp:3130

4 0x400eb2c4:0x3ffb1fb0 in loopTask(void*) at C:\Users\moni.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:23

5 0x4008a586:0x3ffb1fd0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...

Edzelf commented 3 years ago

I can not check the VS1003 output as I do not have one.

The AP bug is fixed.

skartalov commented 3 years ago

Yes AP now starts but can not load properly the config window. See the image attachedimage

Edzelf commented 3 years ago

You have the wrong files in SPIFFS. In the data directory there should be a file "config.html" without the "MP3 player" tab:

 <ul>
   <li><a class="pull-left" href="/index.html">Control</a></li>
   <li><a class="pull-left" href="/search.html">Search</a></li>
   <li><a class="pull-left active" href="/config.html">Config</a></li>
   <li><a class="pull-left" href="/about.html">About</a></li>
  </ul>
Edzelf commented 3 years ago

See https://randomnerdtutorials.com/esp32-vs-code-platformio-spiffs/

Uploading Filesystem Image

After creating and saving the file or files you want to upload under the data folder, follow the next steps:

Click the PIO icon at the left side bar. The project tasks should open.
Select env:esp32doit-devkit-v1 (it may be slightly different depending on the board you’re using).
Expand the Platform menu.
Select Build Filesystem Image.
Finally, click Upload Filesystem Image.

Or open a PlatformIO terminal and type "pio run -t uploadfs"

skartalov commented 3 years ago

Yes, this is exactly what I did and now it works! Thanks!