Edzelf / ESP32-Radio

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

SSID #126

Open ats3788 opened 6 years ago

ats3788 commented 6 years ago

Hello Simple Question. Where is the SSID and the Wifi Password hidden

Edzelf commented 6 years ago

It's in the preferences. You can change it in the config page of the webinterface. It will be hidden in the display, but you may overwrite it and save it.

ats3788 commented 6 years ago

Hello I think I have more the Problem that nvram will not be read

That is what I have in defaultpref.h

mqqprefix = none

Enter your WiFi network specs here:

wifi_00 = GigisFritzBox2,4GHz/Password wifi_01 = GigisFritzBox2,4GHz/Password # volume = 72

D: Starting ESP32-radio running on CPU 1 at 240 MHz. Version Thu, 29 Nov 2017 16:30:00 GMT. Free memory 176220 D: ir_pin pin set to -1 D: enc_clk pin set to -1 D: enc_dt pin set to -1 D: enc_sw pin set to -1 D: tft_cs pin set to -1 D: tft_dc pin set to -1 D: tft_led pin set to -1 D: sd_cs pin set to -1 D: vs_cs pin set to -1 D: vs_dcs pin set to -1 D: vs_dreq pin set to -1 D: spi_sck pin set to -1 D: spi_miso pin set to -1 D: spi_mosi pin set to -1 ......................... D: Scan Networks D: Scan completed D: Number of available networks: 3 D: 1 - GigisFritzBox2,4GHz Signal: -43 dBm, Encryption WPA2_PSK, // My network D: 2 - Gast_Weindel Signal: -93 dBm, Encryption WPA_WPA2_PSK, D: 3 - EasyBox-589036 Signal: -95 dBm, Encryption WPA_WPA2_PSK, .......

D: endFillByte is 0 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) // How can I Test nvram when I do

Edzelf commented 6 years ago

Did you run the radio-init sketch first?

ats3788 commented 6 years ago

Sorry that I'm so enoying I figured out, we need Esp32_radio_init.ino to write into the nvs but what for is defaultprefs.h and I don't understand the | in this why not end with an ";" preferences.putString ( "tonelf", "0" ) |

ats3788 commented 6 years ago

Hello I think that has to be added in Esp32_radio_init.ino Now my pins are recognized

preferences.putString ( "clk_dst", "1" ); preferences.putString ( "ir_pin", "35" ); // GPIO Pin number for IR receiver VS1838B preferences.putString ( "enc_clk" ,"25" ); // GPIO Pin number for rotary encoder "CLK" preferences.putString ( "enc_dt" , "26" ); // GPIO Pin number for rotary encoder "DT" preferences.putString ( "enc_sw" , "27" ); // GPIO Pin number for rotary encoder "SW"

preferences.putString ( "tft_cs" , "22" ); // GPIO Pin number for TFT "CS" preferences.putString ( "tft_dc" , "17" ); // GPIO Pin number for TFT "DC"

preferences.putString ( "sd_cs" , "21" ); // GPIO Pin number for SD card "CS"

preferences.putString ( "vs_cs" , "5" ); // GPIO Pin number for VS1053 "CS" preferences.putString ( "vs_dcs" , "21" ); // GPIO Pin number for VS1053 "DCS" preferences.putString ( "vs_dreq" , "4" ); // GPIO Pin number for VS1053 "DREQ" preferences.putString ( "tft_led" , "12" ); // GPIO Pin number for TFT LED"

preferences.putString ( "spi_sck" , "18" ); // GPIO Pin number for SPI SCK preferences.putString ( "spi_miso" , "19" ); // GPIO Pin number for SPI MISO preferences.putString ( "spi_mosi" , "23" ); // GPIO Pin number for SPI MOSI

Edzelf commented 6 years ago

There is no need to change defaultprefs.h. You can enter your preferences in the config page of the webinterface. The only thing you may want to edit are the WiFi credentials in the radio-init sketch on order to get access to the webinterface. You may use defaultprefs if your configuration of the I/O pins reflects the default configuration.

The vertical bar in the radio-init sketch is used for an "or"-function and by doing that it is testing the result of all the putString () function calls.

ats3788 commented 6 years ago

Thank you Edzelf I changed it in the Text Files, I'm old fashioned. The ILI9341 is also working . Next step to connect my Blue Tooth loudspeaker. Have a wonderful weekend

some89 commented 5 years ago

Hi

I have a totaly noob question.

Can I enter the wifi name/password in the defaultprefs of the main ESP32_radio? in the "# Enter your WiFi network specs here:" or do I have to enter them in the 2Esp32_radio_init" program? I have tried with the first option and it does not work(it does not connect to my wifi). If I need the secund option, how do I load the init sketch? Simply by uploading it? and in what order do I need to do this, first he Esp32 radio an then the esp32 radio init-

sorry for bothering, but I dont have any experience with esp....

Edzelf commented 5 years ago

You may add your WiFi credentials in the radio-init sketch and run it once. Or: You connect to network "ESP32Radio" wit password "ESP32Radio" and go to 192.168.4.1 in your Internet browser. Then go to the config-page and enter the credentials there.