Esp-radio icon indicating copy to clipboard operation
Esp-radio copied to clipboard

Random error while updating web page

Open arlaor opened this issue 8 years ago • 8 comments

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

     }
    }
 

arlaor avatar Jan 24 '17 14:01 arlaor

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.

Edzelf avatar Jan 24 '17 15:01 Edzelf

Adding spi dram will help?

GabeHC avatar Jan 28 '17 00:01 GabeHC

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.

Edzelf avatar Jan 28 '17 09:01 Edzelf

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.

arlaor avatar Feb 01 '17 00:02 arlaor

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.

Edzelf avatar Feb 01 '17 11:02 Edzelf

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?

arlaor avatar Feb 01 '17 13:02 arlaor

radio.ini must be in a form readable bij the sketch. For .gz file you need software to unzip the file in the ESP8266.

Edzelf avatar Feb 09 '17 13:02 Edzelf

Decreasing the size of the .ini file helped in my case. And thanks for your job!

Birdstreet avatar Dec 13 '17 17:12 Birdstreet