Open svins01 opened 6 years ago
Notice the first debug line. You have to replace "config_html.h". If that does not help, use the "ESP exception decoder" of the IDE to narrow down the cause of the crash. It looks like the TFT_ILI9163C library crashes on initialize. Try to check it with a separate sketch.
the crash occurs if I connect a LCD or SD config_html.h explain in more English is not my native language
Hold on, I can reproduce it here. I will try to fix it.
Download config_html.h from the github code page.
The problem is probably a weak power supply. I can reproduce the error if I add an extra device to the powersupply. The LCD display starts normally when I use a good power supply. Try to run the radio on a powerbank.
Thanks, tonight will try the voltage is unlikely. on old firmware everything works fine.
if Esp32_radio_init not add preferences.putString ( "vs_cs", "5" ) | preferences.putString ( "vs_dcs", "16" ) | preferences.putString ( "vs_dreq", "4" ) | do not start
did not help all the same
what we found out
//********************************************************************************************
// Initialize the preferences op ESP32-radio. They can be edited later by the webinterface. *
//********************************************************************************************
// 27-04-2017, ES: First set-up, derived from preferences example sketch. *
//********************************************************************************************
// Note: Namespace name is limited to 15 chars. Same name must be used in ESP32-radio.
// Adjust size of buffer to the longest expected string for nvsgetstr
Preferences preferences ; // Instance of Preferences
//** // S E T U P * //** void setup() { String str ;
Serial.begin ( 115200 ) ; Serial.println() ; preferences.begin ( NAME, false ) ; // Open for read/write preferences.clear() ; // Remove all preferences under opened namespace // Store the preferences for ESP32-radio
preferences.putString ( "mqttbroker", "none" ) | preferences.putString ( "mqttport", "1883" ) | preferences.putString ( "mqttuser", "none" ) | preferences.putString ( "mqttpasswd", "none" ) | preferences.putString ( "mqtttpreset", "none" ) | // preferences.putString ( "wifi_00", "HOME/12344321" ) | preferences.putString ( "wifi_01", "Gargoyle/" ) | // preferences.putString ( "volume", "72" ) | preferences.putString ( "toneha", "0" ) | preferences.putString ( "tonehf", "0" ) | preferences.putString ( "tonela", "0" ) | preferences.putString ( "tonelf", "0" ) | preferences.putString ( "vs_cs", "5" ) | preferences.putString ( "vs_dcs", "16" ) | preferences.putString ( "vs_dreq", "4" ) | preferences.putString ( "enc_clk", "25" ) | preferences.putString ( "enc_dt", "26" ) | preferences.putString ( "enc_sw", "27" ) | // preferences.putString ( "preset", "00" ) | preferences.putString ( "preset_00", "ep256.hostingradio.ru:8052/europaplus256.mp3 #Europa +" ) ; // preferences.putString ( "clk_server", "pool.ntp.org" ) ; // Setting for Time Of Day clock on TFT preferences.putString ( "clk_offset", "3" ) ; preferences.putString ( "clk_dst", "0" ) ; preferences.end() ; delay ( 1000 ) ; }
//** // L O O P * //** void loop() { Serial.println ( "ESP32_radio_init completed..." ) ; delay ( 10000 ) ; }
2. download - Esp32_radio.ino
**radio works**
if Esp32_radio_init.ino to add a line to the - preferences.putString ( "sd_cs", "21" ) |- then there is a collapse
Also if the collapse happens in the web browser tab, and manually add pin_sd_cs = 21
I do not understand it completely, but in the preferences the pinnames are changed. New names are:
explain what I'm doing wrong? I Add pin_sd_cs = 21 to activate SD and all at once collapse
Please show me the preferences on the config page, so I can try to reproduce the error. Are you sure GPIO21 is connected correctly?
I managed to download your latest firmware, but the error not found, I only added my settings in your config by default
the GPIO21 connected correct
clk_dst = 0 # Offset during daylight saving time (hours)
#
clk_offset = 3 # Offset with respect to UTC in hours
clk_server = pool.ntp.org # Time server to be used
#
gpio_00 = uppreset = 1
gpio_12 = upvolume = 2
gpio_13 = downvolume = 2
gpio_14 = stop
gpio_17 = downpreset = 1
gpio_21 = station = icecast.omroep.nl:80/radio1-bb-mp3
gpio_22 = mp3track=0
#
ir_40BF = upvolume = 2
ir_C03F = downvolume = 2
#
mqqprefix = none
mqttbroker = none
mqttpasswd = *******
mqttport = 1883
mqttuser = none
#
pin_enc_clk = 25 # GPIO Pin number for rotary encoder "CLK"
pin_enc_dt = 26 # GPIO Pin number for rotary encoder "DT"
pin_enc_sw = 27 # GPIO Pin number for rotary encoder "SW"
pin_ir = 35 # GPIO Pin number for IR receiver VS1838B
pin_sd_cs = 21 # GPIO Pin number for SD card "CS"
pin_tft_cs = 15 # GPIO Pin number for TFT "CS"
pin_tft_dc = 2 # GPIO Pin number for TFT "DC"
pin_vs_cs = 5 # GPIO Pin number for VS1053 "CS"
pin_vs_dcs = 16 # GPIO Pin number for VS1053 "DCS"
pin_vs_dreq = 4 # GPIO Pin number for VS1053 "DREQ"
#
preset = 21
preset_00 = air.radiorecord.ru:805/dc_320 #Record Dancecore
preset_01 = air.radiorecord.ru:805/club_320 #Record Club Radio
preset_02 = air.radiorecord.ru:805/gold_320 #Gold
preset_03 = air.radiorecord.ru:805/fut_320 #Record MEGAMIX
preset_04 = air.radiorecord.ru:805/mix_320 #Record Goa
preset_05 = ic2.101.ru:8000/c6_2 #90's Gold
preset_06 = air.radiorecord.ru:805/sd90_320 #Superdiskoteka_90
preset_07 = 212.98.181.84:8000/novoeradio_128 #NovoeRadio
preset_08 = ic2.101.ru:8000/v3_1 #Auto radio
preset_09 = nostalgia.fm:8000/nostalgiafm.mp3 #Nostalgia
preset_10 = air.radiorecord.ru:805/rock_320 #Rock Radio
preset_11 = air.radiorecord.ru:805/rr_320 #Radio Record
preset_12 = chanson.hostingradio.ru:8041/chanson256.mp3 #Chanson
preset_13 = air.radiorecord.ru:8102/sd90_320 #Discoteka80
preset_14 = pioner.hostingradio.ru:8008/ppr_HD.mp3 #Pioner FM
preset_15 = retroserver.streamr.ru:8043/retro256.mp3 #Retro
preset_16 = air.radiorecord.ru:805/rus_320 #Record Russian Mix
preset_17 = online.carnivalfm.ru:8000/stream #Karnaval
preset_18 = online-kissfm.tavrmedia.ua:80/KissFM #Kiss FM
preset_19 = ep256.hostingradio.ru:8052/europaplus256.mp3 #Europa +
preset_20 = 93.189.147.116:8000/light_stream256.mp3 #Imagine Radio FM (Rock/Blues)
preset_21 = air.radiorecord.ru:805/gop_320 #GOP FM
preset_22 = 93.189.147.116:8000/full_stream256.mp3 #Imagine Radio FM
preset_23 = air.radiorecord.ru:805/deep_320 #Record Deep Radio
#
toneha = 0
tonehf = 0
tonela = 0
tonelf = 0
#
volume = 88
#
wifi_00 = HOME/*******
wifi_01 = Gargoyle/*******
P/S/ if I start to remove the excess. for example pin_ir = 35 # GPIO Pin number for IR receiver VS1838B and associated with this parameter from crash
There is a conflict: gpio_21 = station = icecast.omroep.nl:80/radio1-bb-mp3 and: pin_sd_cs = 21
Please remove "gpio_21 = station = icecast.omroep.nl:80/radio1-bb-mp3" if you want to use pin 21 for SD.
Can't run on new firmware version
from 13-11-2017 everything works