Nowy moduł pozostaje w trybie Config

iM@rek
Posts: 376
Joined: Thu Feb 09, 2023 1:25 pm

Post

Dobry wieczór,
Dość długo mnie nie było i sporo zapomniałem...
Starość nie radość, być może stąd problem:

W GG bilderze zrobiłem konfigurację dla ESP32 i BH1750.
Wgrałem do ESP.
Na stronie konfiguracyjnej podałem dane serwera, mail, dane Wifi.

Niestety po rebootach i powtórnym programowaniu moduł pozostaje w stanie konfiguracji.

W logach pod koniec widać, że nie może się przełączyć w tryb normalny.
Ale nie wiem, jak mam dołączyć brakujące info.
Załączam log i proszę o pomoc:
[18:07:40]Save key: 2 Value: {moja nazwa}
[18:07:40]Save key: 3 Value: {moje hasło}

[18:07:47]Key: 123 Value:
[18:07:47]Button[0] setMulticlickTime: 450
[18:07:47]SD: initial mode: Start in cfg mode (legacy, deprected)
[18:07:47] *** Supla - starting initialization (platform 0)
[18:07:47]Clock not configured, using default clock
[18:07:47]SD: add flag DEVICE_CONFIG_SUPPORTED
[18:07:47]SD: add flag CALCFG_RESTART_DEVICE
[18:07:47]Storage initialization
[18:07:47]readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
[18:07:47]Storage: Number of sections 1
[18:07:47]Reading section: 0
[18:07:47]readStorage: 7; Read: [3 0 0 FF FF FF FF ]
[18:07:47]Section type: 3; size: 0
[18:07:47]storedCRC 65535, CRC calc 65535
[18:07:47]SPIFFSConfig:: config file "/supla-dev.cfg" missing
[18:07:47]SPIFFSConfig:: config file "/supla-dev.cfg.bak" missing
[18:07:47] *** Supla - Config initalization
[18:07:47]SD: add flag CALCFG_ENTER_CFG_MODE
[18:07:47]SD: add flag CALCFG_FACTORY_RESET_SUPPORTED
[18:07:47]Automatic firmware update is disabled
[18:07:47]Device mode: 0
[18:07:47] *** Supla - Config load for elements
[18:07:47]Button[0] don't load config
[18:07:47]RemoteDeviceConfig: Registering field 0x000000010
[18:07:47]Clock: automaticTimeSync: 1
[18:07:47] *** Supla - Config load for elements done
[18:07:47] *** Supla - Load state storage
[18:07:47]Validating storage state section with current device configuration
[18:07:47]Storage state section validation successful
[18:07:47] *** Supla - Load state storage done
[18:07:47] *** Supla - Init elements
[18:07:47]Button[0]: Initialized: pin 0, pullUp 1, invertLogic 1, state 1
[18:07:47] *** Supla - Init elements done
[18:07:47]GUID: 83CCEA3A8B404CA9B42B1168074DC11E
[18:07:48]Device name: GUI Generic
[18:07:48]Device software version: GG v26.04.17
[18:07:48] *** Supla - Initializing network layer
[18:07:48][Wi-Fi] Network AP/hostname: GUI-GENERIC-8813BF23EE58
[18:07:48]Using Supla protocol version 23
[18:07:48]Current status: [5] SuplaDevice initialized

[18:07:48]Enter normal mode
[18:07:48][Wi-Fi] setNormalMode
[18:07:48] *** Supla - Initialization done
[18:07:48] *** Self-test ***
[18:07:48]TEST: ManufacturerID is 0
[18:07:48]TEST failed: ProductID is empty
[18:07:48]TEST failed: storage init result is false
[18:07:48]TEST failed: missing public RSA key
[18:07:48]TEST failed: automatic firmware update is disabled
[18:07:48]TEST failed: config encryption is disabled
[18:07:48]TEST failed: missing web server
[18:07:48]TEST failed: security log is disabled
[18:07:48]TEST failed: initial mode is set to config mode
[18:07:48] *** Self-test done ***
[18:07:48]SD: enableNetwork
[18:07:48][Wi-Fi] setConfigMode
[18:07:48]E (1566) wifi_init_default: netstack cb reg failed with 12308
[18:07:48]WiFi: enter config mode with SSID: "SUPLA-GUI-Generic-8813BF23EE58"
[18:07:48]WiFi: WIFI_AP_STA
[18:07:48]LAST STATE ADDED: Config mode
[18:07:48]Current status: [40] Config mode
[18:07:48]Connected BSSID: 28:87:BA:1D:FD:CC
[18:07:48]local IP: 192.168.111.156
[18:07:48]subnetMask: 255.255.255.0
[18:07:48]gatewayIP: 192.168.111.10
[18:07:48]Signal strength (RSSI): -22 dBm
[18:07:51]Free memory at SendHeaderGUI: 210696 bytes
Last edited by iM@rek on Sat May 16, 2026 11:02 am, edited 1 time in total.
iM@rek
Posts: 376
Joined: Thu Feb 09, 2023 1:25 pm

Post

Tknęło mnie, że może to BH1750 jest martwy.
Podłączyłem drugi - to samo.
Proszę o pomoc, pewnie jakaś głupota.
Klew?
iM@rek
Posts: 376
Joined: Thu Feb 09, 2023 1:25 pm

Post

I jeszcze:
w panelu widać, że zostaje 200kB wolnej pamięci... Chyba trochę mało, zważywszy na to, że w konfiguracji prawie nic nie ma...

Code: Select all

GUI Generic
LAST STATE: Zainicjowany
Firmware: GG v26.04.17
GUID: E94AB956821D8A888B14B43DDB303D21
MAC: 88:13:BF:23:EE:58
Free Mem: 201.47kB
Mode: CONFIG
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

Chyba musisz na @krycha88 poczekać.
Najlepsze suple dla Twojego domu :mrgreen:
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

A jak dodasz jakiś inny kanał np. przekaźnika?
https://gui-generic-builder.supla.io/
iM@rek
Posts: 376
Joined: Thu Feb 09, 2023 1:25 pm

Post

Cześć,
dodałem do konfiguracji przekaźniki.
Zaczęło działać.
Pokazuje się jako kanał pomiarowy ogólny.


Logi wyglądają inaczej:
Button[0] setMulticlickTime: 450
Button[0] setHoldTime: 5000
GPM[0]: DefaultUnitAfterValue "klx"
GPM[0]: DefaultValueDivider 1000000

SD: initial mode: Start in cfg mode (legacy, deprected)
*** Supla - starting initialization (platform 0)
Clock not configured, using default clock
...
Device mode: 0
*** Supla - Config load for elements
Button[0] don't load config
GPM[0]: config loaded successfully
GPM[0]: RefreshIntervalMs 5000 ms

RemoteDeviceConfig: Registering field 0x000000010
Clock: automaticTimeSync: 1
*** Supla - Config load for elements done
*** Supla - Load state storage
Validating storage state section with current device configuration
Storage state section validation successful
*** Supla - Load state storage done
*** Supla - Init elements
Button[0]: Initialized: pin 0, pullUp 1, invertLogic 1, state 1
Channel(0) value changed to 874.16
*** Supla - Init elements done
Zauważyłem przy okazji, że działa bez zasilania, jakby w trybie pasywnym, jak czujniki temp. DS18B20. Tyle, że pokazuje wartości o około 200 większe niż po podaniu zasilania (3V3 albo 5V)
Bez Vcc: około 820
z Vcc około 620.

Dzięki za pomoc ;-)

Return to “GUI Generic”