@adrian
oto log z putty:
(połączenie putty z esp wymusiło restart i espk z AFE się uruchomił 😐
Próbowałem zasilać esp z innych źródeł niż port USB komputera niestety nie pomogło)
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_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:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
E (18) psram: PSRAM ID read error: 0xffffffff
▒
################################ BOOTING ################################
INFO: All classes and global variables initialized
INFO: Initializing device
INFO: ESP: Chip Model ESP32-D0WDQ5
INFO: ESP: Cores: 2
INFO: ESP: CPU Frequency: 240Mhz
INFO: ESP: Flesh size: 4 Mbits
INFO: ESP: Speed 40 MHz
INFO: ESP: Mode 3
INFO: ESP: Firmware size: 1088912
INFO: ESP: Firmware free space size: 1310720INFO: FILES SYSTEM: Mounted. Perform s a quick garbage collection operation on SPIFFS
INFO: Opening file: /cfg-device-mode.json ... success
INFO: JSON: {"mode":0}
INFO: JSON: Buffer size: 41, actual JSON size: 24
INFO: Opening file: /cfg-device.json ... success
INFO: JSON: {"name":"AFE-Device","timeToAutoLogOff":10,"api":{"http":true,"mqtt" :false},"noOfLEDs":1,"noOfSwitches":1,"noOfRelays":0,"noOfAnalogInputs":0,"noOfD S18B20s":0,"noOfBinarySensors":0,"noOfI2Cs":0,"noOfMCP23xxx":0}
INFO: JSON: Buffer size: 712, actual JSON size: 224
INFO: FIRMWARE: Checking if first time launch ... NO
INFO: Firmware rebooted:
INFO: Opening file: /cfg-reboots_counter.json ... success
INFO: JSON: {"reboots":8}
INFO: JSON: Buffer size: 43, actual JSON size: 24
INFO: Opening file: /cfg-reboots_counter.json ... success
INFO: Writing JSON: {"reboots":9}
INFO: JSON: Buffer size: 43, actual JSON size: 248 times
INFO: Opening file: /cfg-system-led.json ... success
INFO: JSON: {"id":0}
INFO: JSON: Buffer size: 35, actual JSON size: 24
INFO: LED: Reference added to MCP23017
INFO: Opening file: /cfg-led-0.json ... success
INFO: JSON: {"gpio":2,"changeToOppositeValue":false,"mcp23017":{"id":255,"gpio": 255}}
INFO: JSON: Buffer size: 156, actual JSON size: 96
INFO: BOOT: System LED initialized
INFO: WIFI: Checking, if WiFi was configured: YES
INFO: FIRMWARE: Checking if firmware should be upgraded?
INFO: Opening file: /cfg-firmware.json ... success
INFO: JSON: {"type":4,"api":2,"version":"3.5.0"}
INFO: JSON: Buffer size: 145, actual JSON size: 56
INFO: Firmware version (stored) T4-3.5.0-HomeAssistant
INFO: FIRMWARE: up2date
INFO: BOOT: Relay initialized
INFO: Opening file: /cfg-network.json ... success
INFO: JSON: {"ssid":"*******","password":"*********","ssidBackup":"","passwordBa ckup":"","isDHCP":0,"ip":"10.0.0.145","gateway":"10.0.0.1","subnet":"255.255.255 .0","isDHCPBackup":1,"ipBackup":"","gatewayBackup":"","subnetBackup":"","noConne ctionAttempts":20,"waitTimeConnections":1,"waitTimeSeries":20,"noFailuresToSwitc hNetwork":2}
INFO: JSON: Buffer size: 764, actual JSON size: 264
INFO: WIFI: Bakcup configuration does NOT exist
INFO: WIFI: Device is in mode: 0
INFO: WIFI: Setting fixed IP (10.0.0.145) address for primary WiFi configuratio n
INFO: WIFI: Fixed IP set
INFO: WIFI: Primary configuration set
INFO: BOOT: Network initialized
INFO: BOOT: Starting network
INFO: WIFI: Starting establishing WiFi connection to: barthez
INFO: WIFI: Parameters:
- getAutoConnect=0
- getAutoReconnect=1
- getMode=1
INFO: API REST: Initialized
INFO: Opening file: /cfg-pro-version.json ... success
INFO: JSON: {"valid":false,"serial":""}
INFO: JSON: Buffer size: 78, actual JSON size: 40
INFO: Opening file: /cfg-firmware.json ... success
INFO: JSON: {"type":4,"api":2,"version":"3.5.0"}
INFO: JSON: Buffer size: 145, actual JSON size: 56
INFO: BOOT: HTTP Server initialized
INFO: Opening file: /cfg-switch-0.json ... success
INFO: JSON: {"gpio":0,"type":0,"sensitiveness":50,"functionality":1,"relayID":0, "MQTTTopic":"","mcp23017":{"id":255,"gpio":255}}
INFO: JSON: Buffer size: 238, actual JSON size: 160
INFO: BOOT: Switch(es) initialized
INFO: BOOT: Binary sensors initialized
INFO: BOOT: API: Initializing MQTT
INFO: BOOT: API: HTTP init completed
########################################################################
# BOOTING COMPLETED #
# STARTING DEVICE #
########################################################################
INFO: RAM: 177kB: Booting completed
INFO: EVENTS: Diconnected from WiFi
INFO: WAN ACCESS: No access to WAN
INFO: WIFI: Connection to primary router. Attempt: 1/20, IP(10.0.0.145) WL-Statu s=6
INFO: WIFI: Connection to primary router. Attempt: 2/20, IP(10.0.0.145) WL-Statu s=6
INFO: WiFi: Disconnected from Wi-Fi
INFO: WiFi: Disconnected from Wi-Fi
INFO: WIFI: Setting hostname to: AFE-Device ... Success
INFO: WIFI: Connection established, MAC: 30:C9:22:32:F7:7C, IP: 10.0.0.145
INFO: EVENT: Connected to WiFi triggered
INFO: WAN ACCESS: checking access to : 8.8.8.8
- connected to WAN
- average time: 23.35
INFO: EVENTS: Post WiFi Connection actions completed