karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
525 stars 155 forks source link

1.5 rev2 upgrade issue #73

Closed RobertSVK closed 5 years ago

RobertSVK commented 5 years ago

Hi, I've experienced serious problem after update to 1.5. My previous version was 0.9 (probably) and it worked ok. After upgrade the audio output doesn't work. I guess it is due to I (6023) main: audio_output_mode 0 but I don't know how to change it. I was trying to change it via web GUI but it's getting free always :( Is it possible to download older versions of Ka-Radio32 binaries ?

This is log output:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:3580
load:0x40078000,len:9300
load:0x40080400,len:5764
entry 0x400806d4
E (121) esp_core_dump: No core dump partition found!
I (123) main: starting app_main()
I (123) main: RAM left: 159656
E (123) main: Running partition type 0 subtype 17 (offset 0x001d0000)
I (163) main: Partition init done...
D (213) eeprom: saveDeviceSettings
Log level is now ESP_LOG_VERBOSE
V (283) addon: LINE: Log level is now ESP_LOG_VERBOSE

E (4213) vs1053: VS1053/VS1003 detected. MP3Status: 30, Version: 3
I (4213) vs1053: SCI_Status  = 0x30
I (4213) vs1053: SCI_Mode (0x4800) = 0x4802
I (4213) vs1053: SCI_ClockF = 0xB000
I (4213) vs1053: VS Version (VS1053 is 4) = 3
device: 3ffcd3ec
volume: 169
I (4323) main: hardware initialized
I (4323) main: Hardware init done...
E (4323) main: LCD Type 0
D (4363) addonu8g2: lcd init BW type: 0
D (4363) u8g2_hal: gpio_and_delay_cb: Received a msg: 40, arg_int: 0, arg_ptr: 0x0
I (4363) u8g2_hal: sda_io_num 13
I (4363) u8g2_hal: scl_io_num 14
I (4373) u8g2_hal: clk_speed 90000
I (4373) u8g2_hal: i2c_param_config 1
I (4373) u8g2_hal: i2c_driver_install 0
D (4383) u8g2_hal: gpio_and_delay_cb: Received a msg: 75, arg_int: 1, arg_ptr: 0x0
D (4383) u8g2_hal: gpio_and_delay_cb: Received a msg: 41, arg_int: 100, arg_ptr: 0x0
D (4493) u8g2_hal: gpio_and_delay_cb: Received a msg: 75, arg_int: 0, arg_ptr: 0x0
D (4493) u8g2_hal: gpio_and_delay_cb: Received a msg: 41, arg_int: 100, arg_ptr: 0x0
D (4593) u8g2_hal: gpio_and_delay_cb: Received a msg: 75, arg_int: 1, arg_ptr: 0x0
D (4593) u8g2_hal: gpio_and_delay_cb: Received a msg: 41, arg_int: 100, arg_ptr: 0x0
X: 128, YY: 64, Y: 9
I (6023) main: audio_output_mode 0
One of I2S=0, I2S_MERUS, DAC_BUILT_IN, PDM, VS1053
I (6023) main: Set baudrate at 115200
I (6023) main: Release 1.5, Revision 2
I (6023) main: SDK v3.3-dev-236-gfa59b1b1c-dirty
I (6023) main: Heap size: 158820
I (6183) main: Volume set to 169
I (6183) main: t0 task: 3ffcd704

and this is console output when I'm trying to load web gui

V (419774) webserver: icy vol
V (419784) webserver: icy start header 3ffb5a68
D (419784) webserver: icy start header 3ffb5a68  len:458 vollen:3 vol:135
V (419794) webserver: server Malloc of 533 544,  Heap size: 4484
V (419794) webserver: server Malloc of 3fff4bec : 533 bytes Heap size: 3944
V (419804) webserver: server free of   3ffec63c,            Heap size: 4148
V (419814) webserver: test: len fmt:266 266
HTTP/1.1 200 OK
Content-Type:application/json
Content-Length:458

{"curst":"1","descr":"","name":" Smooth Jazz Florida HD with Waves of Smooth Music","bitr":" 256","url1":" http:\/\/smoothjazzflorida.com","not1":" <BR>This stream requires <a href=\"http:\/\/www.winamp.com\">Winamp<\/a><BR>","not2":" SHOUTcast DNAS\/posix(linux x86) v2.5.5.733<BR>","genre":" Smooth Jazz, Jazz, Easy Listening, Acid Jazz, Jazz","meta":"Doc Powell - Let's Jam","vol":"135","treb":"0","bass":"0","tfreq":"0","bfreq":"0","spac":"0","auto":"1"}
fmt: HTTP/1.1 200 OK
Content-Type:application/json
Content-Length:%d

{"curst":"%s","descr":"%s","name":"%s","bitr":"%s","url1":"%s","not1":"%s","not2":"%s","genre":"%s","meta":"%s","vol":"%s","treb":"%s","bass":"%s","tfreq":"%s","bfreq":"%s","spac":"%s","auto":"%c"}
V (419884) webserver: server free of   3fff4bec,            Heap size: 3064
D (419894) websocket: websocketbroadcast: {"monitor":"http://usa6.fastcast4u.com:80/proxy/wsjfhd?mp=/1"}
D (419904) decoder: Buffer underflow, need 2148 bytes.
D (419924) webserver: Heap size: 5164
V (419924) webserver: POST socket: 62  buflen: 559
V (419924) webserver: POST Name: /wifi
V (419924) webserver: dstart:

valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&
D (419934) webserver: HandlePost /wifi

V (419944) webserver: server Malloc of 2 32,  Heap size: 4824
V (419944) webserver: server Malloc of 3ffcdfdc : 2 bytes Heap size: 4820
V (419954) webserver: getParameter malloc of 2  for valid=
V (419964) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "0"
V (419974) webserver: server Malloc of 10 32,  Heap size: 4820
V (419984) webserver: server Malloc of 3ffcdfb4 : 10 bytes Heap size: 4804
V (419994) webserver: getParameter malloc of 10  for ssid=
V (419994) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420014) webserver: server Malloc of 10 32,  Heap size: 4804
V (420024) webserver: server Malloc of 3ffce05c : 10 bytes Heap size: 4788
V (420024) webserver: getParameter malloc of 10  for ssid2=
V (420034) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420054) webserver: server Malloc of 10 32,  Heap size: 4788
V (420054) webserver: server Malloc of 3ffce06c : 10 bytes Heap size: 4772
V (420064) webserver: getParameter malloc of 10  for ip=
V (420074) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420084) webserver: server Malloc of 10 32,  Heap size: 4772
V (420094) webserver: server Malloc of 3ffced58 : 10 bytes Heap size: 4756
D (420104) decoder: Buffer underflow, need 2148 bytes.
V (420104) webserver: getParameter malloc of 10  for msk=
V (420114) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420134) webserver: server Malloc of 10 32,  Heap size: 4756
V (420134) webserver: server Malloc of 3ffced68 : 10 bytes Heap size: 4740
V (420144) webserver: getParameter malloc of 10  for gw=
V (420144) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420164) webserver: server Malloc of 10 32,  Heap size: 4740
V (420174) webserver: server Malloc of 3ffced78 : 10 bytes Heap size: 4724
V (420184) webserver: getParameter malloc of 10  for ip2=
V (420184) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420204) webserver: server Malloc of 10 32,  Heap size: 4724
V (420214) webserver: server Malloc of 3ffced9c : 10 bytes Heap size: 4708
V (420214) webserver: getParameter malloc of 10  for msk2=
V (420224) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420244) webserver: server Malloc of 10 32,  Heap size: 4708
V (420244) webserver: server Malloc of 3ffeb07c : 10 bytes Heap size: 4696
V (420254) webserver: getParameter malloc of 10  for gw2=
V (420254) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
V (420274) webserver: server Malloc of 10 32,  Heap size: 4696
V (420284) webserver: server Malloc of 3fff7f04 : 10 bytes Heap size: 4680
V (420294) webserver: getParameter malloc of 10  for ua=
V (420294) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "undefined"
D (420304) decoder: Buffer underflow, need 2148 bytes.
V (420324) webserver: server Malloc of 6 32,  Heap size: 4680
V (420324) webserver: server Malloc of 3ffce07c : 6 bytes Heap size: 4672
V (420334) webserver: getParameter malloc of 6  for dhcp=
V (420334) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "false"
V (420354) webserver: server Malloc of 6 32,  Heap size: 4672
V (420364) webserver: server Malloc of 3ffcedac : 6 bytes Heap size: 4664
V (420364) webserver: getParameter malloc of 6  for dhcp2=
V (420374) webserver: getParam: in: "valid=0&ssid=undefined&pasw=&ssid2=undefined&pasw2=&ip=undefined&msk=undefined&gw=undefined&ip2=undefined&msk2=undefined&gw2=undefined&ua=undefined&dhcp=false&dhcp2=false&"   "false"
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400014fd  PS      : 0x00060630  A0      : 0x800f2ff4  A1      : 0x3ffeb690
A2      : 0x00000000  A3      : 0xfffffffc  A4      : 0x000000ff  A5      : 0x0000ff00
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000000  A9      : 0x3ffeb640
A10     : 0x00000000  A11     : 0x3ffcdfbd  A12     : 0x3ffeb8d4  A13     : 0x3ffae8f8
A14     : 0x00000000  A15     : 0x00000001  SAR     : 0x00000004  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff

Backtrace: 0x400014fd:0x3ffeb690 0x400f2ff1:0x3ffeb6a0 0x400f47f1:0x3ffeb9b0 0x400832de:0x3ffeb9e0 0x400d86dd:0x3ffeba30 0x400d8f31:0x3ffebb80 0x400d90f3:0x3ffebbe0 0x40093325:0x3ffec230

Entering gdb stub now.
$T0b#e6

In older version the GUI and audio worked well. My hardware is the same. I just did update to 1.5 via web GUI.

I'll appreciate any advice.

Thanks Robert

nano111 commented 5 years ago

Try sys.update in console

RobertSVK commented 5 years ago

Thanks for response. Let me explain it: Update process worked ok. Anyway I tried sys.update - just for sure. Now I'm running on ver 1.5 but web GUI doesn't work properly. It will start to read index page but it will not finish it. Probably there is memory problem and device will freeze (doesn't respond anymore until hw restart)

nano111 commented 5 years ago

Hi, I am not a big expert, but I had a problem updating via web gui, only sys.updat worked for me. How dobyou programme board.Via loader tool or esp-idf? Try reprogram from latest git rep.

Pozdrav Goran

On 2 Dec 2018, at 22:13, Robert notifications@github.com<mailto:notifications@github.com> wrote:

Thanks for response. Let me explain it: Update process worked ok. Anyway I tried sys.update - just for sure. Now I'm running on ver 1.5 but web GUI doesn't work properly. It will start to read index page but it will not finish it. Probably there is memory problem and device will freeze (doesn't respond anymore until hw restart)

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/karawin/Ka-Radio32/issues/73#issuecomment-443542568, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ak09hvQqruv5V7ld1VE66PJ9dGAJisboks5u1EJrgaJpZM4Y84sB.

RobertSVK commented 5 years ago

Hi, I haven't experienced any problem with update. Updating procedure worked smoothly via GUI ( I went from 0.9 to 1.5). But current version 1.5 doesn't work correctly for me. So I tried update via console (sys.update) and it worked ok again. My problem is that now (in ver 1.5) I'm not able to reach web GUI. I programmed ESP32 via loader tool with latest binaries from github. I also tried to compile and upload my own bin files. Compilation (make) was with out errors and flashing (make flash) was also ok. But after that ESP32 didn't work. So I uploaded program again via loader tool. Finally I successfully switched audio output via POST request (/hardware?valid=1&coutput=4). Anyway WebGUI doesn't work - I'm not able to control radio (i.e. switch station etc ) via web.

Is it possible to make "downgrade" ? I was looking for older binaries but without any success :(

Robert

Hi, I am not a big expert, but I had a problem updating via web gui, only sys.updat worked for me. How dobyou programme board.Via loader tool or esp-idf? Try reprogram from latest git rep. Pozdrav Goran On 2 Dec 2018, at 22:13, Robert notifications@github.com<mailto:notifications@github.com> wrote: Thanks for response. Let me explain it: Update process worked ok. Anyway I tried sys.update - just for sure. Now I'm running on ver 1.5 but web GUI doesn't work properly. It will start to read index page but it will not finish it. Probably there is memory problem and device will freeze (doesn't respond anymore until hw restart) — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#73 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ak09hvQqruv5V7ld1VE66PJ9dGAJisboks5u1EJrgaJpZM4Y84sB.

nano111 commented 5 years ago

I have some older versions,but I am away from my computer now .I will send you this afternoon ,just give me your email address.

RobertSVK commented 5 years ago

dupcak@gmail.com

THANKS!

karawin commented 5 years ago

RobertSVK, Yes OTA from 0.9 to 1.5 is a problem due to many changes. The best way is to erase the esp32 and start again the all process. Sorry for that but I cannot see an other solution<.

RobertSVK commented 5 years ago

Hi, YES, you are right! I just ERASED the ESP32 (with loader tool) and then I uploaded latest firmware. It was so simple :) Everythink now works perfectly.

Robert

PS: Thanks nano111 for your effort.

nano111 commented 5 years ago

Super, I thougt you did that.I erase board every time I programme it. Happy that it works now :-) Nothing without real expert... Karawin

Pozdrav Goran

On 4 Dec 2018, at 18:42, Robert notifications@github.com<mailto:notifications@github.com> wrote:

Closed #73https://github.com/karawin/Ka-Radio32/issues/73.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/karawin/Ka-Radio32/issues/73#event-2004996383, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ak09hi7NjEmv2F06YT57gCi0viLEOZC3ks5u1rQagaJpZM4Y84sB.