Esp-radio
Esp-radio copied to clipboard
Random error while updating web page
Hi @Edzelf Sometimes happens that when you update the web page this does not reload the sp-radio page and sends the following code to the web page After this does not reload the page, until you press the reset button
}
}
Yes, this is probably the case when there is no buffer space left for the TCP data. I have the idea that it happens more when listening to mp3-files. mp3 streams works better. I will try to find a solution, but its not so easy.
Adding spi dram will help?
There is plenty of RAM in the ESP8266 for this project. It's the lack of TCP-buffers in the the "BIOS" that has problem with multiple TCP connections.
When making a change directly in the CONFIG page, such as removing or increasing a radio station and saving the changes, with the SAVE and RESTART buttons, upon restarting the ESP-12E module can not be connected again until the file " Radio.ini "again via arduino IDE.
D: New preset/file requested (-1/0) from D: New preset/file requested (-1/0) from D: New preset/file requested (-1/0) from D: New preset/file requested (-1/0) from D: New preset/file requested (-1/0) from D: New preset/file requested (-1/0) from
If more than 20 radio stations are added, the INDEX page is not displayed in the PRESET drop-down list and displays incorrect information on the "config" web page.
The size of the radio.ini file is limited to about 3292 bytes, due to limited free memory space . If you want more, you have to lower the size of the RINGBUF. You can check the size of radio.ini by entering "testfile=radio.ini" in the serial monitor. You may also uses TABs instead of multiple spaces in radio.ini and remove commentlines in order to preserve space. This way I managed to have a list of 30 presets in my radio.ini (RINGUFSIZE=20000), 80 presets with RINGBUFSIZE=10000. Tip: use STOP before changing the configuration.
Hi @Edzelf I have seen in some projects that use FS, they upload compressed files in ".gz", to gain space in memory. Is there any possibility of doing the same with the file radio.ini, to be able to obtain a greater number of stations?
radio.ini must be in a form readable bij the sketch. For .gz file you need software to unzip the file in the ESP8266.
Decreasing the size of the .ini file helped in my case. And thanks for your job!