-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As soon as I try to connect the webbrowser I got the following Exception (29) #1831
Comments
Sorry I was to fast. |
I like to debug my firmware on my own, because I detected some different behaviour when |
Like this proposal: #1823 (comment) you can decode your stack trace. |
Depending on the parameter I use for the EMON_ADX1X15 there are differne behaviour. |
When I use my own parameters for the EMON_ADX1X15 which displays more web data in the |
There are a couple of issues, but I still don't quite understand why this is happening specifically because of reload (ref: #1824)
At first I thought this was something wrong with ADX sensor specifically, but my guess it is a more generic issue. |
The reload error is quit clear for me. |
Right. And the main point is that sensor firmware + energy sensor, json buffer is like 6K (all those keys) + json string 3K. Fixed-size buffer is no problem as some brief tests show, but it needs a middle ground solution between sending each callback (which can be either 1 key-value or giant monster like sensor one) separately and sending all at once (which is what it is right now and kind of broken). And I'll correct myself about the realloc part - the algorithm used by Dynamic json buffer is to start with 256 bytes and add a double-size block each time something does not fit. Manually specifying the size still does this though, unless the buffer is Static / is in the stack. |
Sorry, does not work for me. Maybe there is something wrong in the configuration. But I missing a lot from the old platformio.ini file e.g.: I believe my configuration is wrong. Here is the status output of my board: Hope you could enlight my dark brain. |
[env:nodemcu-lolin-eg-power] config is fine, latest update to .ini file removed a lot of duplicated strings per env. Instead, they are inherited from the [env] block at the top #1843 does not work? I am running the config you provided in the first post, with BMX280 & ADS1X15 giving out dummy values and WebUI loads fine with Firefox on Windows machine.
Have you tried connecting to the device directly, via SoftAP mode? |
Please find attached all by traces and opinions: |
Thank you!
The proposed fix is in the
|
Sorry my error. |
As soon as I try to connect the webbrowser I got the following Exception (29):
hardware.h configuration:
Serial terminal output:
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
[000449]
---8<-------
[000449] [MAIN] ESPURNA 1.13.6-dev
[000449] [MAIN] xose.perez@gmail.com
[000449] [MAIN] http://tinkerman.cat
[000450] [MAIN] CPU chip ID: 0x5B8CCF
[000453] [MAIN] CPU frequency: 80 MHz
[000456] [MAIN] SDK version: 1.5.3(aec24ac9)
[000460] [MAIN] Core version: 2.3.0
[000463] [MAIN] Core revision: 9826c6d
[000467] [MAIN] Build time: 1563724357
[000470]
[000471] [MAIN] Flash chip ID: 0x1640EF
[000474] [MAIN] Flash speed: 40000000 Hz
[000478] [MAIN] Flash mode: DOUT
[000481]
[000482] [MAIN] Flash size (CHIP) : 4194304 bytes / 1024 sectors ( 0 to 1023)
[000489] [MAIN] Flash size (SDK) : 4194304 bytes / 1024 sectors ( 0 to 1023)
[000496] [MAIN] Reserved : 4096 bytes / 1 sectors ( 0 to 0)
[000503] [MAIN] Firmware size : 502016 bytes / 123 sectors ( 1 to 123)
[000511] [MAIN] Max OTA size : 2637824 bytes / 644 sectors ( 124 to 767)
[000518] [MAIN] SPIFFS size : 1015808 bytes / 248 sectors ( 768 to 1015)
[000525] [MAIN] EEPROM size : 16384 bytes / 4 sectors (1016 to 1019)
[000532] [MAIN] Reserved : 16384 bytes / 4 sectors (1020 to 1023)
[000539]
[000540] [MAIN] EEPROM sectors: 1019, 1018, 1017, 1016
[000545] [MAIN] EEPROM current: 1017
[000548]
[000549] [MAIN] EEPROM: 4096 bytes initially | 272 bytes used ( 6%) | 3824 bytes free (93%)
[000558] [MAIN] Heap : 32840 bytes initially | 5408 bytes used (16%) | 27432 bytes free (83%)
[000566] [MAIN] Stack : 4096 bytes initially | 816 bytes used (19%) | 3280 bytes free (80%)
[000574]
[000575] [MAIN] Boot version: 31
[000578] [MAIN] Boot mode: 1
[000580] [MAIN] Last reset reason: Reboot from terminal
[000585]
[000586] [MAIN] Board: NODEMCU_LOLIN_EG_POWER
[000590] [MAIN] Support: ALEXA API BROKER BUTTON DEBUG_SERIAL DEBUG_TELNET DEBUG_WEB DOMOTICZ HOMEASSISTANT I2C LED MDNS_SERVER MQTT NTP SCHEDULER SENSOR TELNET TERMINAL THINGSPEAK WEB
[000606] [MAIN] Sensors: BMX280 EMON_ADX1X15
[000610] [MAIN] WebUI image: SENSOR
[000613]
[000841] [MAIN] Firmware MD5: cefc7773ebc73bf1e45bee6ebccae691
[000842] [MAIN] Power: 2788 mV
[000842] [MAIN] WiFi Sleep Mode: MODEM
[000843]
---8<-------
[000852] [TELNET] Listening on port 23
[000853] [WEBSERVER] Webserver running on port 80
[000855] [RELAY] Retrieving mask: 0
[000855] [RELAY] Relay #0 boot mode 0
[000858] [RELAY] #0 set to OFF
[000862] [RELAY] Number of relays: 1
[000864] [BUTTON] Number of buttons: 1
[000868] [LED] Number of leds: 1
[000871] [MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[000876] [MQTT] Client DISABLED, DISCONNECTED
[000880] [MQTT] Retry WAITING (Now 880, Last 0, Delay 5000, Step 5000)
[000891] [NTP] Update intervals: 81s / 2745s
[000892] [I2C] Using GPIO4 for SDA and GPIO5 for SCL
[000904] [I2C] Device found at address 0x48
[000909] [I2C] Device found at address 0x76
[FAUXMO] Device 'EGPOWER1' added as #0
[000912] [THINGSPEAK] Async ENABLED, SSL DISABLED
[000914] [SENSOR] Initializing BMP280 @ I2C (0x00)
[000924] [I2C] Address 0x76 locked
[000939] [SENSOR] -> temperature:0
[000939] [SENSOR] -> pressure:0
[000939] [SENSOR] -> humidity:0
[000940] [SENSOR] Initializing EMON @ ADS1115 @ I2C (0x00)
[000942] [I2C] Address 0x48 locked
[002123] [RELAY] Setting relay mask: 0
[002908] [SENSOR] -> current:0
[002909] [SENSOR] -> current:1
[002909] [SENSOR] -> current:2
[002909] [SENSOR] -> current:3
[002909] [SENSOR] -> apparent:0
[002911] [SENSOR] -> apparent:1
[002914] [SENSOR] -> apparent:2
[002917] [SENSOR] -> apparent:3
[002920] [SENSOR] -> energy:0
[002923] [SENSOR] -> energy:1
[002925] [SENSOR] -> energy:2
[002928] [SENSOR] -> energy:3
[003076] [WIFI] Scanning
[005209] [WIFI] BSSID: 0E:41:58:00:C5:7A CH: 1 RSSI: -90 SEC: WPA2 SSID: UPC7590224
[005209] [WIFI] --> BSSID: F8:1A:67:A5:CB:FC CH: 7 RSSI: -42 SEC: WPA2 SSID: TEKENER
[005213] [WIFI] BSSID: 14:CC:20:0C:91:95 CH: 4 RSSI: -82 SEC: WPA2 SSID: GUCKI
[005220] [WIFI] BSSID: 44:AA:F5:DA:41:5B CH: 9 RSSI: -78 SEC: WPA2 SSID: EGHORIZON
[005228] [WIFI] BSSID: 34:2C:C4:93:7B:B7 CH: 11 RSSI: -61 SEC: AUTO SSID: WLAN12415220
[005236] [WIFI] BSSID: 36:2C:94:93:7B:B7 CH: 11 RSSI: -61 SEC: OPEN SSID: UPC Wi-Free
[005244] [WIFI] BSSID: 64:7C:34:AF:C7:FF CH: 11 RSSI: -79 SEC: AUTO SSID: UPC3045006
[005251] [WIFI] BSSID: 06:7C:34:AF:C7:FF CH: 11 RSSI: -80 SEC: OPEN SSID: UPC Wi-Free
[005271] [WIFI] Connecting to BSSID: F8:1A:67:A5:CB:FC CH: 07, RSSI: -42, SEC: WPA2, SSID: TEKENER
[005418] [WIFI] Captive portal disabled
[005418] [WIFI] ------------------------------------- MODE STA
[005418] [WIFI] SSID TEKENER
[005419] [WIFI] IP 192.168.2.41
[005422] [WIFI] MAC CC:50:E3:5B:8C:CF
[005425] [WIFI] GW 192.168.2.1
[005428] [WIFI] DNS 192.168.2.4
[005431] [WIFI] MASK 255.255.255.0
[005434] [WIFI] HOST http://EGPOWER1.local
[005438] [WIFI] BSSID F8:1A:67:A5:CB:FC
[005441] [WIFI] CH 7
[005443] [WIFI] RSSI -44
[005446] [WIFI] ----------------------------------------------
[005453] [MDNS] OK
[006454] [MQTT] MQTT brokers found: 0
[FAUXMO] Enabled
[FAUXMO] UDP server started
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[020448] [NTP] UTC Time : 2019-07-21 13:57:21
[020449] [NTP] Local Time: 2019-07-21 15:57:21
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[060004] [MAIN] System OK
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[198094] [WEBSERVER] Request: GET /index.html
[198477] [WEBSERVER] Request: GET /auth
[198927] [WEBSOCKET] #1 connected, ip: 192.168.2.105, url: /ws
Exception (29):
epc1=0x4020eec2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: sys
sp: 3ffffb80 end: 3fffffb0 offset: 01a0
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
[000373]
---8<-------
[000373] [MAIN] ESPURNA 1.13.6-dev
[000373] [MAIN] xose.perez@gmail.com
[000373] [MAIN] http://tinkerman.cat
[000373] [MAIN] CPU chip ID: 0x5B8CCF
[000377] [MAIN] CPU frequency: 80 MHz
[000380] [MAIN] SDK version: 1.5.3(aec24ac9)
[000384] [MAIN] Core version: 2.3.0
[000387] [MAIN] Core revision: 9826c6d
[000390] [MAIN] Build time: 1563724357
[000394]
[000395] [MAIN] Flash chip ID: 0x1640EF
[000398] [MAIN] Flash speed: 40000000 Hz
[000402] [MAIN] Flash mode: DOUT
[000405]
[000406] [MAIN] Flash size (CHIP) : 4194304 bytes / 1024 sectors ( 0 to 1023)
[000413] [MAIN] Flash size (SDK) : 4194304 bytes / 1024 sectors ( 0 to 1023)
[000420] [MAIN] Reserved : 4096 bytes / 1 sectors ( 0 to 0)
[000427] [MAIN] Firmware size : 502016 bytes / 123 sectors ( 1 to 123)
[000434] [MAIN] Max OTA size : 2637824 bytes / 644 sectors ( 124 to 767)
[000442] [MAIN] SPIFFS size : 1015808 bytes / 248 sectors ( 768 to 1015)
[000449] [MAIN] EEPROM size : 16384 bytes / 4 sectors (1016 to 1019)
[000456] [MAIN] Reserved : 16384 bytes / 4 sectors (1020 to 1023)
[000463]
[000464] [MAIN] EEPROM sectors: 1019, 1018, 1017, 1016
[000469] [MAIN] EEPROM current: 1019
[000472]
[000473] [MAIN] EEPROM: 4096 bytes initially | 305 bytes used ( 7%) | 3791 bytes free (92%)
[000481] [MAIN] Heap : 32840 bytes initially | 5408 bytes used (16%) | 27432 bytes free (83%)
[000490] [MAIN] Stack : 4096 bytes initially | 864 bytes used (21%) | 3232 bytes free (78%)
[000498]
[000499] [MAIN] Boot version: 31
[000501] [MAIN] Boot mode: 1
[000504] [MAIN] Last reset reason: Exception
[000508] [MAIN] Last reset info: Fatal exception:29 flag:2 (EXCEPTION) epc1:0x4020eec2 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000
[000521]
[000522] [MAIN] Board: NODEMCU_LOLIN_EG_POWER
[000526] [MAIN] Support: ALEXA API BROKER BUTTON DEBUG_SERIAL DEBUG_TELNET DEBUG_WEB DOMOTICZ HOMEASSISTANT I2C LED MDNS_SERVER MQTT NTP SCHEDULER SENSOR TELNET TERMINAL THINGSPEAK WEB
[000542] [MAIN] Sensors: BMX280 EMON_ADX1X15
[000546] [MAIN] WebUI image: SENSOR
[000549]
[000778] [MAIN] Firmware MD5: cefc7773ebc73bf1e45bee6ebccae691
[000779] [MAIN] Power: 2789 mV
[000779] [MAIN] WiFi Sleep Mode: MODEM
[000779]
---8<-------
[000788] [TELNET] Listening on port 23
[000790] [WEBSERVER] Webserver running on port 80
[000791] [RELAY] Retrieving mask: 0
[000791] [RELAY] Relay #0 boot mode 0
[000795] [RELAY] #0 set to OFF
[000798] [RELAY] Number of relays: 1
[000801] [BUTTON] Number of buttons: 1
[000804] [LED] Number of leds: 1
[000807] [MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[000812] [MQTT] Client DISABLED, DISCONNECTED
[000816] [MQTT] Retry WAITING (Now 816, Last 0, Delay 5000, Step 5000)
[000827] [NTP] Update intervals: 81s / 2532s
[000828] [I2C] Using GPIO4 for SDA and GPIO5 for SCL
[000840] [I2C] Device found at address 0x48
[000846] [I2C] Device found at address 0x76
[FAUXMO] Device 'EGPOWER1' added as #0
[000848] [THINGSPEAK] Async ENABLED, SSL DISABLED
[000850] [SENSOR] Initializing BMP280 @ I2C (0x00)
[000862] [I2C] Address 0x76 locked
[000877] [SENSOR] -> temperature:0
[000877] [SENSOR] -> pressure:0
[000877] [SENSOR] -> humidity:0
[000877] [SENSOR] Initializing EMON @ ADS1115 @ I2C (0x00)
[000880] [I2C] Address 0x48 locked
[002062] [RELAY] Setting relay mask: 0
[002848] [SENSOR] -> current:0
[002848] [SENSOR] -> current:1
[002849] [SENSOR] -> current:2
[002849] [SENSOR] -> current:3
[002849] [SENSOR] -> apparent:0
[002851] [SENSOR] -> apparent:1
[002854] [SENSOR] -> apparent:2
[002857] [SENSOR] -> apparent:3
[002860] [SENSOR] -> energy:0
[002862] [SENSOR] -> energy:1
[002865] [SENSOR] -> energy:2
[002868] [SENSOR] -> energy:3
[003015] [WIFI] Scanning
[005150] [WIFI] BSSID: 0E:41:58:00:C5:7A CH: 1 RSSI: -90 SEC: WPA2 SSID: UPC7590224
[005150] [WIFI] BSSID: 14:CC:20:0C:91:95 CH: 4 RSSI: -78 SEC: WPA2 SSID: GUCKI
[005154] [WIFI] --> BSSID: F8:1A:67:A5:CB:FC CH: 7 RSSI: -40 SEC: WPA2 SSID: TEKENER
[005161] [WIFI] BSSID: 44:AA:F5:DA:41:5B CH: 9 RSSI: -79 SEC: WPA2 SSID: EGHORIZON
[005169] [WIFI] BSSID: 34:2C:C4:93:7B:B7 CH: 11 RSSI: -63 SEC: AUTO SSID: WLAN12415220
[005177] [WIFI] BSSID: 36:2C:94:93:7B:B7 CH: 11 RSSI: -66 SEC: OPEN SSID: UPC Wi-Free
[005184] [WIFI] BSSID: 64:7C:34:AF:C7:FF CH: 11 RSSI: -76 SEC: AUTO SSID: UPC3045006
[005192] [WIFI] BSSID: 06:7C:34:AF:C7:FF CH: 11 RSSI: -74 SEC: OPEN SSID: UPC Wi-Free
[005212] [WIFI] Connecting to BSSID: F8:1A:67:A5:CB:FC CH: 07, RSSI: -40, SEC: WPA2, SSID: TEKENER
[005379] [WIFI] Captive portal disabled
[005379] [WIFI] ------------------------------------- MODE STA
[005380] [WIFI] SSID TEKENER
[005380] [WIFI] IP 192.168.2.41
[005383] [WIFI] MAC CC:50:E3:5B:8C:CF
[005386] [WIFI] GW 192.168.2.1
[005389] [WIFI] DNS 192.168.2.4
[005392] [WIFI] MASK 255.255.255.0
[005395] [WIFI] HOST http://EGPOWER1.local
[005399] [WIFI] BSSID F8:1A:67:A5:CB:FC
[005403] [WIFI] CH 7
[005405] [WIFI] RSSI -44
[005407] [WIFI] ----------------------------------------------
[005413] [MDNS] OK
[006415] [MQTT] MQTT brokers found: 0
[FAUXMO] Enabled
[FAUXMO] UDP server started
[011005] [NTP] UTC Time : 2019-07-21 14:00:31
[011006] [NTP] Local Time: 2019-07-21 16:00:31
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
[FAUXMO] Responding to M-SEARCH request
keys:
[180224] Current settings:
[180224] > adminPass => "xxxxxxxxx"
[180224] > boardName => "NODEMCU_LOLIN_EG_POWER"
[180224] > cfg => "3"
[180225] > dns0 => "192.168.2.4"
[180227] > dns1 => "192.168.2.4"
[180230] > gw0 => "192.168.2.1"
[180233] > gw1 => "192.168.2.1"
[180236] > hostname => "EGPOWER1"
[180239] > ip0 => "192.168.2.41"
[180242] > ip1 => "192.168.2.41"
[180244] > ledMode0 => "1"
[180247] > ledRelay0 => "0"
[180249] > mask0 => "255.255.255.0"
[180252] > mask1 => "255.255.255.0"
[180255] > mqttEnabled => "1"
[180258] > mqttServer => "192.168.2.19"
[180261] > ntpServer0 => "192.168.2.4"
[180265] > pass0 => "xxxxxxxxxxxxxxxxxxxxxx"
[180269] > pass1 => "xxxxxxxxxxxxxxxxxxxxxx"
[180273] > snsReport => "10"
[180275] > snsResetTS => "2019-07-21 15:57:01"
[180279] > ssid0 => "TEKENER"
[180282] > ssid1 => "GUCKI"
[180284] > sysScTraceMax => "128"
[180287] > tmpCorrection => "-0.5"
[180290] Number of keys: 25
[180293] Current EEPROM sector: 1016
[180296] Free EEPROM: 3565 bytes (87%)
[180299] +OK
info:
[225802] [MAIN] ESPURNA 1.13.6-dev
[225802] [MAIN] xose.perez@gmail.com
[225802] [MAIN] http://tinkerman.cat
[225803] [MAIN] CPU chip ID: 0x5B8CCF
[225807] [MAIN] CPU frequency: 80 MHz
[225809] [MAIN] SDK version: 1.5.3(aec24ac9)
[225813] [MAIN] Core version: 2.3.0
[225816] [MAIN] Core revision: 9826c6d
[225820] [MAIN] Build time: 1563724357
[225823]
[225824] [MAIN] Flash chip ID: 0x1640EF
[225828] [MAIN] Flash speed: 40000000 Hz
[225831] [MAIN] Flash mode: DOUT
[225834]
[225835] [MAIN] Flash size (CHIP) : 4194304 bytes / 1024 sectors ( 0 to 1023)
[225842] [MAIN] Flash size (SDK) : 4194304 bytes / 1024 sectors ( 0 to 1023)
[225849] [MAIN] Reserved : 4096 bytes / 1 sectors ( 0 to 0)
[225856] [MAIN] Firmware size : 502016 bytes / 123 sectors ( 1 to 123)
[225864] [MAIN] Max OTA size : 2637824 bytes / 644 sectors ( 124 to 767)
[225871] [MAIN] SPIFFS size : 1015808 bytes / 248 sectors ( 768 to 1015)
[225878] [MAIN] EEPROM size : 16384 bytes / 4 sectors (1016 to 1019)
[225885] [MAIN] Reserved : 16384 bytes / 4 sectors (1020 to 1023)
[225892]
[225894] [MAIN] EEPROM sectors: 1019, 1018, 1017, 1016
[225898] [MAIN] EEPROM current: 1016
[225901]
[225902] [MAIN] EEPROM: 4096 bytes initially | 531 bytes used (12%) | 3565 bytes free (87%)
[225912] [MAIN] Heap : 32840 bytes initially | 16728 bytes used (50%) | 16112 bytes free (49%)
[225919] [MAIN] Stack : 4096 bytes initially | 1456 bytes used (35%) | 2640 bytes free (64%)
[225927]
[225928] [MAIN] Boot version: 31
[225931] [MAIN] Boot mode: 1
[225933] [MAIN] Last reset reason: Exception
[225937] [MAIN] Last reset info: Fatal exception:29 flag:2 (EXCEPTION) epc1:0x4020eec2 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000
[225951]
[225952] [MAIN] Board: NODEMCU_LOLIN_EG_POWER
[225956] [MAIN] Support: ALEXA API BROKER BUTTON DEBUG_SERIAL DEBUG_TELNET DEBUG_WEB DOMOTICZ HOMEASSISTANT I2C LED MDNS_SERVER MQTT NTP SCHEDULER SENSOR TELNET TERMINAL THINGSPEAK WEB
[225972] [MAIN] Sensors: BMX280 EMON_ADX1X15
[225976] [MAIN] WebUI image: SENSOR
[225979]
[225980] [MAIN] Firmware MD5: cefc7773ebc73bf1e45bee6ebccae691
[225986] [MAIN] Power: 2788 mV
[225988] [MAIN] Power saving delay value: 10 ms
The text was updated successfully, but these errors were encountered: