Problem z wgraniem softu z webinterface ESP8266

nebraska
Posts: 204
Joined: Thu Dec 08, 2022 3:00 pm
Been thanked: 1 time

Post

Witam
Mam taki problem.
Chce na wemosa d1Mini esp8266 wgrac soft. Mam dwa wemosy starsza wersja bez problemu przyjmuje soft z trybem webinterface, a nowszy w wersji v 3.0 wywala

Code: Select all

Scheduling soft restart in 2500 ms
LAST STATE ADDED: Software reset (45)
Current status: [41] Software reset
LittleFsConfig: formatting partition
LittleFsConfig: failed to mount and to format partition
SERVER: get request
LittleFsConfig: formatting partition
LittleFsConfig: failed to mount and to format partition
Reset requested. Reset device
LittleFsConfig: formatting partition
LittleFsConfig: failed to mount and to format partition
Stopping local web server
Resetting in 0.5s...
See you soon!




Code: Select all

#define STATUS_LED_GPIO 2
#define ROLLER_SHUTTER_UP_RELAY_GPIO 4
#define ROLLER_SHUTTER_DOWN_RELAY_GPIO 5
#define RELAY_GPIO 12
#define BUTTON_UP_GPIO 13
#define BUTTON_DOWN_GPIO 14
#define BUTTON_CFG 0

#include <SuplaDevice.h>
#include <supla/network/esp_wifi.h>
#include <supla/control/roller_shutter.h>
#include <supla/control/relay.h>
#include <supla/control/button.h>
#include <supla/control/action_trigger.h>
#include <supla/device/status_led.h>
#include <supla/storage/littlefs_config.h>
#include <supla/network/esp_web_server.h>
#include <supla/network/html/device_info.h>
#include <supla/network/html/protocol_parameters.h>
#include <supla/network/html/status_led_parameters.h>
#include <supla/network/html/wifi_parameters.h>
#include <supla/device/supla_ca_cert.h>
#include <supla/events.h>

// Choose where Supla should store roller shutter data in persistent memory
// We recommend to use external FRAM memory
#include <supla/storage/eeprom.h>
Supla::Eeprom eeprom;
// #include <supla/storage/fram_spi.h>
// Supla::FramSpi fram(STORAGE_OFFSET);

Supla::ESPWifi wifi;
Supla::LittleFsConfig configSupla;

Supla::Device::StatusLed statusLed(STATUS_LED_GPIO, true); // inverted state
Supla::EspWebServer suplaServer;


void setup() {

  Serial.begin(115200);

  // HTML www component
  new Supla::Html::DeviceInfo(&SuplaDevice);
  new Supla::Html::WifiParameters;
  new Supla::Html::ProtocolParameters;
  new Supla::Html::StatusLedParameters;

  // Channels configuration
  // CH 0 - Roller shutter
  auto rs = new Supla::Control::RollerShutter(
      ROLLER_SHUTTER_UP_RELAY_GPIO, ROLLER_SHUTTER_DOWN_RELAY_GPIO, true);
  // CH 1 - Relay
  auto r1 = new Supla::Control::Relay(RELAY_GPIO);
  // CH 2 - Action trigger
  auto at1 = new Supla::Control::ActionTrigger();
  // CH 3 - Action trigger
  auto at2 = new Supla::Control::ActionTrigger();
  // CH 4 - Action trigger
  auto at3 = new Supla::Control::ActionTrigger();

  // Buttons configuration
  auto buttonOpen = new Supla::Control::Button(BUTTON_UP_GPIO, true, true);
  auto buttonClose = new Supla::Control::Button(BUTTON_DOWN_GPIO, true, true);
  auto buttonCfgRelay = new Supla::Control::Button(BUTTON_CFG, true, true);
  buttonCfgRelay->setHoldTime(1000);
  buttonCfgRelay->setMulticlickTime(800);
  buttonCfgRelay->configureAsConfigButton(&SuplaDevice);
  buttonCfgRelay->addAction(Supla::TOGGLE_CONFIG_MODE, SuplaDevice, Supla::ON_CLICK_5);

  buttonOpen->addAction(Supla::OPEN_OR_STOP, *rs, Supla::ON_PRESS);
  buttonOpen->setHoldTime(1000);
  buttonOpen->setMulticlickTime(300);

  buttonClose->addAction(Supla::CLOSE_OR_STOP, *rs, Supla::ON_PRESS);
  buttonClose->setHoldTime(1000);
  buttonClose->setMulticlickTime(300);

  buttonCfgRelay->configureAsConfigButton(&SuplaDevice);
  buttonCfgRelay->addAction(Supla::TOGGLE, r1, Supla::ON_CLICK_1);

  // Action trigger configuration
  at1->setRelatedChannel(rs);
  at1->attach(buttonOpen);

  at2->setRelatedChannel(rs);
  at2->attach(buttonClose);

  at3->setRelatedChannel(r1);
  at3->attach(buttonCfgRelay);

  // configure defualt Supla CA certificate
  SuplaDevice.setSuplaCACert(suplaCACert);
  SuplaDevice.setSupla3rdPartyCACert(supla3rdCACert);

  SuplaDevice.begin();
}

void loop() {
  SuplaDevice.iterate();
}
User avatar
klew
Posts: 13908
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 135 times
Been thanked: 137 times

Post

W logach dość wyraźnie widać, że jest problem z formatowaniem partycji do little fs.
Pewnie masz źle partycje ustawione
Najlepsze suple dla Twojego domu :mrgreen:
nebraska
Posts: 204
Joined: Thu Dec 08, 2022 3:00 pm
Been thanked: 1 time

Post

klew wrote: Sat Oct 11, 2025 2:18 pm W logach dość wyraźnie widać, że jest problem z formatowaniem partycji do little fs.
Pewnie masz źle partycje ustawione
Tak to wiem, tylko nie wiem jak je ustawic?
User avatar
klew
Posts: 13908
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 135 times
Been thanked: 137 times

Post

W ustawieniach boarda w Arduino wybiera się partycję.
Potrzebujesz coś z spifs (na tym też little fs chodzi)
Najlepsze suple dla Twojego domu :mrgreen:
nebraska
Posts: 204
Joined: Thu Dec 08, 2022 3:00 pm
Been thanked: 1 time

Post

klew wrote: Sat Oct 11, 2025 2:29 pm W ustawieniach boarda w Arduino wybiera się partycję.
Potrzebujesz coś z spifs (na tym też little fs chodzi)
chyba jestem ślepy nie widze tego. Jeśli to flash size to przestawiałem, ale nic nie daje :roll:
You do not have the required permissions to view the files attached to this post.
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

Mi się bez problemu ten szkic kompiluje. Ustawienie domyślne dla płytki.
Zrzut ekranu 2025-10-11 164809.png
You do not have the required permissions to view the files attached to this post.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
nebraska
Posts: 204
Joined: Thu Dec 08, 2022 3:00 pm
Been thanked: 1 time

Post

Robert Błaszczak wrote: Sat Oct 11, 2025 2:49 pm Mi się bez problemu ten szkic kompiluje. Ustawienie domyślne dla płytki.

Zrzut ekranu 2025-10-11 164809.png
Robercie u mnie tez się kompiluje tylko kiedy chce wprowadzić do Supli ze strony CFG jak wpisze dane i save&restart to wyrzuca problem z partycją
U ciebie urządzenie rejestruje się w Supli?
Siedze nad tym 3 godz i ciągle to samo bez cfg urządzenie się loguje w Supli a web ciągle ta partycja. :roll:
User avatar
vajera
Posts: 7290
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 289 times
Been thanked: 161 times

Post

nebraska wrote: Sat Oct 11, 2025 2:56 pm
Robert Błaszczak wrote: Sat Oct 11, 2025 2:49 pm Mi się bez problemu ten szkic kompiluje. Ustawienie domyślne dla płytki.

Zrzut ekranu 2025-10-11 164809.png
Robercie u mnie tez się kompiluje tylko kiedy chce wprowadzić do Supli ze strony CFG jak wpisze dane i save&restart to wyrzuca problem z partycją
U ciebie urządzenie rejestruje się w Supli?
Siedze nad tym 3 godz i ciągle to samo bez cfg urządzenie się loguje w Supli a web ciągle ta partycja. :roll:
Jakie masz opcje pod pozycją FLASH SIZE?
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
nebraska
Posts: 204
Joined: Thu Dec 08, 2022 3:00 pm
Been thanked: 1 time

Post

vajera wrote: Sat Oct 11, 2025 3:01 pm
nebraska wrote: Sat Oct 11, 2025 2:56 pm
Robert Błaszczak wrote: Sat Oct 11, 2025 2:49 pm Mi się bez problemu ten szkic kompiluje. Ustawienie domyślne dla płytki.

Zrzut ekranu 2025-10-11 164809.png
Robercie u mnie tez się kompiluje tylko kiedy chce wprowadzić do Supli ze strony CFG jak wpisze dane i save&restart to wyrzuca problem z partycją
U ciebie urządzenie rejestruje się w Supli?
Siedze nad tym 3 godz i ciągle to samo bez cfg urządzenie się loguje w Supli a web ciągle ta partycja. :roll:
Jakie masz opcje pod pozycją FLASH SIZE?
You do not have the required permissions to view the files attached to this post.
Last edited by nebraska on Sat Oct 11, 2025 3:06 pm, edited 1 time in total.
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

nebraska wrote: Sat Oct 11, 2025 2:56 pm Robercie u mnie tez się kompiluje tylko kiedy chce wprowadzić do Supli ze strony CFG jak wpisze dane i save&restart to wyrzuca problem z partycją
U ciebie urządzenie rejestruje się w Supli?
Siedze nad tym 3 godz i ciągle to samo bez cfg urządzenie się loguje w Supli a web ciągle ta partycja. :roll:
Niestety nie mam już żadnego ESP8266 żeby to zweryfikować.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl

Return to “Pomoc”