GUI Generic - Błąd generowania

proxxon
Posts: 124
Joined: Wed Nov 22, 2017 2:42 pm
Has thanked: 4 times
Been thanked: 2 times

Post

Potwierdzam problem - ESP07S 4MB z GG v7.5.23 (dzisiaj ograny). Free Mem: 22.97KB (przekaźnik, przycisk, krańcówka, bez wyzwalaczy). Włączenie SSL'a powoduje rozłączenie z serwerem. W logach urządzenia:

Code: Select all

Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
LAST STATE ADDED: Not connected to Supla server
Current status: [6] Not connected to Supla server
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Network layer restart requested. Trying to setup network interface again
WiFi: resetting WiFi connection
WiFi station disconnected
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

To jest związane z tym, że GG zaczeło używać klasy "Config". Przy połączeniu szyfrowanym domyślnie jest sprawdzany certyfikat serwera.

Aby działało to bez weryfikacji certyfikatu, to klasa Config powinna zwrócić wartość 2 dla parametru "security_level":

Code: Select all

      cfg->getUInt8("security_level", &securityLevel);
Najlepsze suple dla Twojego domu :mrgreen:
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

klew wrote: Mon Oct 30, 2023 9:23 am To jest związane z tym, że GG zaczeło używać klasy "Config". Przy połączeniu szyfrowanym domyślnie jest sprawdzany certyfikat serwera.

Aby działało to bez weryfikacji certyfikatu, to klasa Config powinna zwrócić wartość 2 dla parametru "security_level":

Code: Select all

      cfg->getUInt8("security_level", &securityLevel);
Czyli rozumiem, że wystarczy rozszerzyć tą metodę po swojej stronie?

Code: Select all

    bool getUInt8(const char* key, uint8_t* result) override {
        if (strcmp(key, "security_level") == 0) {
            *result = 2;
            return true;
        }
               return KeyValue::getUInt8(key, result);
    }
https://gui-generic-builder.supla.io/
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

krycha88 wrote: Mon Oct 30, 2023 12:06 pm
klew wrote: Mon Oct 30, 2023 9:23 am To jest związane z tym, że GG zaczeło używać klasy "Config". Przy połączeniu szyfrowanym domyślnie jest sprawdzany certyfikat serwera.

Aby działało to bez weryfikacji certyfikatu, to klasa Config powinna zwrócić wartość 2 dla parametru "security_level":

Code: Select all

      cfg->getUInt8("security_level", &securityLevel);
Czyli rozumiem, że wystarczy rozszerzyć tą metodę po swojej stronie?

Code: Select all

    bool getUInt8(const char* key, uint8_t* result) override {
        if (strcmp(key, "security_level") == 0) {
            *result = 2;
            return true;
        }
               return KeyValue::getUInt8(key, result);
    }
Tak, albo dodać obsługę tych certyfikatów
Najlepsze suple dla Twojego domu :mrgreen:
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

proxxon wrote: Mon Oct 30, 2023 8:43 am Potwierdzam problem - ESP07S 4MB z GG v7.5.23 (dzisiaj ograny). Free Mem: 22.97KB (przekaźnik, przycisk, krańcówka, bez wyzwalaczy). Włączenie SSL'a powoduje rozłączenie z serwerem. W logach urządzenia:

Code: Select all

Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
LAST STATE ADDED: Not connected to Supla server
Current status: [6] Not connected to Supla server
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Establishing encrypted connection with: svr10.supla.org (port: 2016)
Waiting for NTP time sync
SSL error: 62, Chain could not be linked to a trust anchor.
Connection fail (0). Server: svr10.supla.org
Network layer restart requested. Trying to setup network interface again
WiFi: resetting WiFi connection
WiFi station disconnected
Wrzuciłem poprawkę.
https://gui-generic-builder.supla.io/
myszektbg
Posts: 207
Joined: Sat Jun 17, 2023 3:42 pm

Post

Kiedyś bez problemu szły mi aktualizacje, a teraz co rusz mam problem.
Zrobiłem z bólem, bo poszło za 3-4 razem aktualizację termometrów do GG v7.5.16 i nie wiedzieć czemu przestały przychodzić mi powiadomienia o przekroczonej temperaturze. Myślę może coś z wersją, ok jest teraz 7.5.25 zrobię aktualizację i ... "sprawdź aktualizację", a tu błąd aktualizacji.
You do not have the required permissions to view the files attached to this post.
MaG
Posts: 65
Joined: Wed Oct 25, 2023 10:08 pm

Post

Potwierdzam. W wersji 7.5.26 został rozwiązany problem SSL

Mam natomiast inny problem od kilku aktualizacji.
Używam modułu WT32-ETH01 (z gniazdkiem LAN) na module WT32-S1
Od kilku wersji nie jestem w stanie wygenerować sofftu w GUI.
Zauważyłem że gdy dodam ETH01 i expander MCP, to podczas generowania po osiągnięciu 100% wyskakuje błąd (fotka w załączniku)
Wygląda mi to na zbyt małą pamięć, ale może się mylę.
Ciekawe jest to, że mam wygenerowane (dokładnie te same opcje) kilka dni temu v7.5.18 i wygenerowało się bez problemu.
W tej wersji nie działa SSL.

W czym jest problem?
W najnowszej wersji bez expanedra generuje się i działa.
Testowałem też wersję v7.5.22 - też wyskakuje błąd.

Proszę o pomoc
Pozdrawiam

To chyba nie jest problem braku pamięci.
Obecnie jakakolwiek kompilacja z expanderem MCP kończy się błędem.
Nie sprawdzałem jak z PCF
You do not have the required permissions to view the files attached to this post.
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

MaG wrote: Mon Oct 30, 2023 9:16 pm Potwierdzam. W wersji 7.5.26 został rozwiązany problem SSL

Mam natomiast inny problem od kilku aktualizacji.
Używam modułu WT32-ETH01 (z gniazdkiem LAN) na module WT32-S1
Od kilku wersji nie jestem w stanie wygenerować sofftu w GUI.
Zauważyłem że gdy dodam ETH01 i expander MCP, to podczas generowania po osiągnięciu 100% wyskakuje błąd (fotka w załączniku)
Wygląda mi to na zbyt małą pamięć, ale może się mylę.
Ciekawe jest to, że mam wygenerowane (dokładnie te same opcje) kilka dni temu v7.5.18 i wygenerowało się bez problemu.
W tej wersji nie działa SSL.

W czym jest problem?
W najnowszej wersji bez expanedra generuje się i działa.
Testowałem też wersję v7.5.22 - też wyskakuje błąd.

Proszę o pomoc
Pozdrawiam

To chyba nie jest problem braku pamięci.
Obecnie jakakolwiek kompilacja z expanderem MCP kończy się błędem.
Nie sprawdzałem jak z PCF
Poprawiłem to przy okazji innych zmian.
https://gui-generic-builder.supla.io/
MaG
Posts: 65
Joined: Wed Oct 25, 2023 10:08 pm

Post

Oooo teraz działa wszystko. Expander i SLL
Super.

Jest jeszcze jeden mały mankament:
Jak przyciskiem wchodzi się w tryb konfiguracji, to po 5sec wychodzi samoczynnie.
Nie jest to uciążliwe, ale może by poprawić przy okazji.
Jak wprowadza się moduł w tryb konfiguracji przez www (supla), to działa poprawnie.
Pozdrawiam
Konrad01
Posts: 11
Joined: Tue Oct 31, 2023 2:30 pm

Post

Panowie pytanko, dlaczego w wersji v7.5.30 dla czujnika ds18b20 nie ma możliwości wyboru GPIO2-D4?
Czujniki podpięte mam pod ten pin a nie da się go wybrać albo robię coś źle. Kolejna sprawa to OLED 0,66 niektóre napisy są poucinene tzn. nie mieszczą się na ekranie. Czy ma to znaczenie, że na wyświetlaczu nie mam zrobionej czwórki na adresie?

Return to “GUI Generic”