jildertviet / TIYCS

This Is Your Captain Speaking
0 stars 0 forks source link

OTA with server #48

Open jildertviet opened 2 years ago

jildertviet commented 2 years ago

For quicker updates

jildertviet commented 2 years ago

Raspberry Pi as OpenWRT-router:

Simple: PlatformIO build -> serve the binary? Shell script: python serve the file @ joniskApp @ port x

jildertviet commented 2 years ago

0e983a1 Test

jildertviet commented 2 years ago

Crashes ...

jildertviet commented 2 years ago

Update: when using same SSID, PW and URL and Python SSL server, it works. So check hardcoded @ Jonisk ESP32.

jildertviet commented 2 years ago

Not the same channel? Edit: works on simple example...

jildertviet commented 2 years ago

.Connected to jildert-Framework Starting OTA Please Wait it takes some time ... Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x00000000 PS : 0x00060b30 A0 : 0x801702c0 A1 : 0x3ffd0a70 A2 : 0x00000000 A3 : 0x3ffcd378 A4 : 0x000001bb A5 : 0x3ffd0e40 A6 : 0x3ffbca28 A7 : 0xff000000 A8 : 0x800d5138 A9 : 0x3ffd0a40 A10 : 0x3ffbc8ac A11 : 0x00000009 A12 : 0x000001bb A13 : 0x3ffbca2c

A14 : 0x3ffd0e40 A15 : 0x3ffcd378 SAR : 0x0000001a EXCCAUSE: 0x00000014 EXCVADDR: 0x00000000 LBEG : 0x400898c4 LEND : 0x400898cf LCOUNT : 0x00000000

Backtrace:0xfffffffd:0x3ffd0a700x401702bd:0x3ffd0a90 0x4010abd2:0x3ffd0ab0 0x4010ae63:0x3ffd0ad 0 0x40103e7c:0x3ffd0af0 0x40104118:0x3ffd0b20 0x4010456f:0x3ffd0b50 0x400d5157:0x3ffd0b90

ELF file SHA256: ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_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:0x3fff0030,len:1184 load:0x40078000,len:13132 load:0x40080400,len:3036 entry 0x400805e4 Serial opened, led pwm channels already configured

Brownout detector was triggered

jildertviet commented 2 years ago

Flash partition size?

jildertviet commented 2 years ago

Needed to set:

HttpsOTA.onHttpEvent(HttpEvent);