IOT SDK

Patryk
Posty: 2677
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

@pzygmunt.
Dawno nic nie kompilowałem w IOT SDK.
Więc postanowiłam sobie "przypomnieć"
Zaktualizowałem z v2.8.1 do v2.8.8.
Soft się skompilował poprawnie.
Wgrałem.
Dodałem urządzenie z apki - wszystko przebiegało sprawnie.
I teraz.
Ręcznie wchodzę w tryb konfiguracji naciskając "przycisk" przez 5 sekund.
Moduł przechodzi w tryb konfiguracji, czyli dalej jest ok.
Łączę się z siecią emitowaną przez moduł - dalej jest ok.
Wpisuje 192.168.4.1 w przeglądarce.
I w tym momencie jak wyświetla mi się strona konfiguracja, moduł przestaje rozgłaszać sieć ( tak jakbym go zresetował ).
Mógłbyś to zweryfikować ???
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Jaką płytkę kompilujesz ?
W nowej wersji trochę się pozmieniała obsługa strony konfiguracyjnej. Najpewniej coś tam się wysypuje. Zerknij co leci na konsolę.
Patryk
Posty: 2677
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

Soft na podstawie plytki sonoff basic:

sonoff_s20.c

Kod: Zaznacz cały

/*
 Copyright (C) AC SOFTWARE SP. Z O.O.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

const uint8_t rsa_public_key_bytes[512] = {
 };

#define B_RELAY1_PORT    12
#define B_CFG_PORT        0

void ICACHE_FLASH_ATTR supla_esp_board_set_device_name(char *buffer, uint8 buffer_size) {
	
		ets_snprintf(buffer, buffer_size, "S20_T v2.8");
}
char *ICACHE_FLASH_ATTR supla_esp_board_cfg_html_template(
    char dev_name[25], const char mac[6], const char data_saved) {
  static char html_template_header[] =
      "<!DOCTYPE html><meta http-equiv=\"content-type\" content=\"text/html; "
      "charset=UTF-8\"><meta name=\"viewport\" "
      "content=\"width=device-width,initial-scale=1,maximum-scale=1,user-"
      "scalable=no\"><style>body{font-size:14px;font-family:HelveticaNeue,"
      "\"Helvetica Neue\",HelveticaNeueRoman,HelveticaNeue-Roman,\"Helvetica "
      "Neue "
      "Roman\",TeXGyreHerosRegular,Helvetica,Tahoma,Geneva,Arial,sans-serif;"
      "font-weight:400;font-stretch:normal;background:#00d151;color:#fff;line-"
      "height:20px;padding:0}.s{width:460px;margin:0 auto;margin-top:calc(50vh "
      "- 340px);border:solid 3px #fff;padding:0 10px "
      "10px;border-radius:3px}#l{display:block;max-width:150px;height:155px;"
      "margin:-80px auto 20px;background:#00d151;padding-right:5px}#l "
      "path{fill:#000}.w{margin:3px 0 16px;padding:5px "
      "0;border-radius:3px;background:#fff;box-shadow:0 1px 3px "
      "rgba(0,0,0,.3)}h1,h3{margin:10px "
      "8px;font-family:HelveticaNeueLight,HelveticaNeue-Light,\"Helvetica Neue "
      "Light\",HelveticaNeue,\"Helvetica "
      "Neue\",TeXGyreHerosRegular,Helvetica,Tahoma,Geneva,Arial,sans-serif;"
      "font-weight:300;font-stretch:normal;color:#000;font-size:23px}h1{margin-"
      "bottom:14px;color:#fff}span{display:block;margin:10px 7px "
      "14px}i{display:block;font-style:normal;position:relative;border-bottom:"
      "solid 1px "
      "#00d151;height:42px}i:last-child{border:none}label{position:absolute;"
      "display:inline-block;top:0;left:8px;color:#00d151;line-height:41px;"
      "pointer-events:none}input,select{width:calc(100% - "
      "145px);border:none;font-size:16px;line-height:40px;border-radius:0;"
      "letter-spacing:-.5px;background:#fff;color:#000;padding-left:144px;-"
      "webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0!"
      "important;height:40px}select{padding:0;float:right;margin:1px 3px 1px "
      "2px}button{width:100%;border:0;background:#000;padding:5px "
      "10px;font-size:16px;line-height:40px;color:#fff;border-radius:3px;box-"
      "shadow:0 1px 3px "
      "rgba(0,0,0,.3);cursor:pointer}.c{background:#ffe836;position:fixed;"
      "width:100%;line-height:80px;color:#000;top:0;left:0;box-shadow:0 1px "
      "3px rgba(0,0,0,.3);text-align:center;font-size:26px;z-index:100}@media "
      "all and (max-height:920px){.s{margin-top:80px}}@media all and "
      "(max-width:900px){.s{width:calc(100% - "
      "20px);margin-top:40px;border:none;padding:0 "
      "8px;border-radius:0}#l{max-width:80px;height:auto;margin:10px auto "
      "20px}h1,h3{font-size:19px}i{border:none;height:auto}label{display:block;"
      "margin:4px 0 "
      "12px;color:#00d151;font-size:13px;position:relative;line-height:18px}"
      "input,select{width:calc(100% - "
      "10px);font-size:16px;line-height:28px;padding:0 5px;border-bottom:solid "
      "1px #00d151}select{width:100%;float:none;margin:0}}</style><script "
      "type=\"text/javascript\">setTimeout(function(){var element =  "
      "document.getElementById('msg');if ( element != null ) "
      "element.style.visibility = \"hidden\";},3200);</script>";
  static char html_template[] =
      "%s%s<div class=\"s\"><svg version=\"1.1\" id=\"l\" x=\"0\" y=\"0\" "
      "viewBox=\"0 0 200 200\" xml:space=\"preserve\"><path "
      "d=\"M59.3,2.5c18.1,0.6,31.8,8,40.2,23.5c3.1,5.7,4.3,11.9,4.1,18.3c-0.1,"
      "3.6-0.7,7.1-1.9,10.6c-0.2,0.7-0.1,1.1,0.6,1.5c12.8,7.7,25.5,15.4,38.3,"
      "23c2.9,1.7,5.8,3.4,8.7,5.3c1,0.6,1.6,0.6,2.5-0.1c4.5-3.6,9.8-5.3,15.7-5."
      "4c12.5-0.1,22.9,7.9,25.2,19c1.9,9.2-2.9,19.2-11.8,23.9c-8.4,4.5-16.9,4."
      "5-25.5,0.2c-0.7-0.3-1-0.2-1.5,0.3c-4.8,4.9-9.7,9.8-14.5,14.6c-5.3,5.3-"
      "10.6,10.7-15.9,16c-1.8,1.8-3.6,3.7-5.4,5.4c-0.7,0.6-0.6,1,0,1.6c3.6,3.4,"
      "5.8,7.5,6.2,12.2c0.7,7.7-2.2,14-8.8,18.5c-12.3,8.6-30.3,3.5-35-10.4c-2."
      "8-8.4,0.6-17.7,8.6-22.8c0.9-0.6,1.1-1,0.8-2c-2-6.2-4.4-12.4-6.6-18.6c-6."
      "3-17.6-12.7-35.1-19-52.7c-0.2-0.7-0.5-1-1.4-0.9c-12.5,0.7-23.6-2.6-33-"
      "10.4c-8-6.6-12.9-15-14.2-25c-1.5-11.5,1.7-21.9,9.6-30.7C32.5,8.9,42.2,4."
      "2,53.7,2.7c0.7-0.1,1.5-0.2,2.2-0.2C57,2.4,58.2,2.5,59.3,2.5z "
      "M76.5,81c0,0.1,0.1,0.3,0.1,0.6c1.6,6.3,3.2,12.6,4.7,18.9c4.5,17.7,8.9,"
      "35.5,13.3,53.2c0.2,0.9,0.6,1.1,1.6,0.9c5.4-1.2,10.7-0.8,15.7,1.6c0.8,0."
      "4,1.2,0.3,1.7-0.4c11.2-12.9,22.5-25.7,33.4-38.7c0.5-0.6,0.4-1,0-1.6c-5."
      "6-7.9-6.1-16.1-1.3-24.5c0.5-0.8,0.3-1.1-0.5-1.6c-9.1-4.7-18.1-9.3-27.2-"
      "14c-6.8-3.5-13.5-7-20.3-10.5c-0.7-0.4-1.1-0.3-1.6,0.4c-1.3,1.8-2.7,3.5-"
      "4.3,5.1c-4.2,4.2-9.1,7.4-14.7,9.7C76.9,80.3,76.4,80.3,76.5,81z "
      "M89,42.6c0.1-2.5-0.4-5.4-1.5-8.1C83,23.1,74.2,16.9,61.7,15.8c-10-0.9-18."
      "6,2.4-25.3,9.7c-8.4,9-9.3,22.4-2.2,32.4c6.8,9.6,19.1,14.2,31.4,11.9C79."
      "2,67.1,89,55.9,89,42.6z "
      "M102.1,188.6c0.6,0.1,1.5-0.1,2.4-0.2c9.5-1.4,15.3-10.9,11.6-19.2c-2.6-5."
      "9-9.4-9.6-16.8-8.6c-8.3,1.2-14.1,8.9-12.4,16.6C88.2,183.9,94.4,188.6,"
      "102.1,188.6z "
      "M167.7,88.5c-1,0-2.1,0.1-3.1,0.3c-9,1.7-14.2,10.6-10.8,18.6c2.9,6.8,11."
      "4,10.3,19,7.8c7.1-2.3,11.1-9.1,9.6-15.9C180.9,93,174.8,88.5,167.7,88."
      "5z\"/></svg><h1>%s</h1><span>LAST STATE: %s<br>Firmware: %s<br>GUID: "
      "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X<br>MAC:"
      " %02X:%02X:%02X:%02X:%02X:%02X</span><form method=\"post\"><div "
      "class=\"w\"><h3>Wi-Fi Settings</h3><i><input name=\"sid\" "
      "value=\"%s\"><label>Network name</label></i><i><input "
      "name=\"wpw\"><label>Password</label></i></div><div "
      "class=\"w\"><h3>Supla Settings</h3><i><input name=\"svr\" "
      "value=\"%s\"><label>Server</label></i><i><input name=\"eml\" "
      "value=\"%s\"><label>E-mail</label></i></div><div "
      "class=\"w\"><h3>Additional Settings</h3><i><select name=\"led\"><option "
      "value=\"0\" %s>LED "
      "ON<option value=\"1\" %s>LED OFF</select><label>Status - " 
    //  "connected</label></i><i><select name=\"upd\"><option value=\"0\" "
   //   "%s>NO<option value=\"1\" %s>YES</select><label>Firmware "
      "LED</label></i></div><button "
      "type=\"submit\">SAVE</button></form></div><br><br>";

  int bufflen = strlen(supla_esp_devconn_laststate()) + strlen(dev_name) +
                strlen(SUPLA_ESP_SOFTVER) + strlen(supla_esp_cfg.WIFI_SSID) +
                strlen(supla_esp_cfg.Server) + strlen(supla_esp_cfg.Email) +
                strlen(html_template_header) + strlen(html_template) + 200;

  char *buffer = (char *)malloc(bufflen);

  ets_snprintf(
      buffer, bufflen, html_template, html_template_header,
      data_saved == 1 ? "<div id=\"msg\" class=\"c\">Data saved</div>" : "",
      dev_name, supla_esp_devconn_laststate(), SUPLA_ESP_SOFTVER,
      (unsigned char)supla_esp_cfg.GUID[0],
      (unsigned char)supla_esp_cfg.GUID[1],
      (unsigned char)supla_esp_cfg.GUID[2],
      (unsigned char)supla_esp_cfg.GUID[3],
      (unsigned char)supla_esp_cfg.GUID[4],
      (unsigned char)supla_esp_cfg.GUID[5],
      (unsigned char)supla_esp_cfg.GUID[6],
      (unsigned char)supla_esp_cfg.GUID[7],
      (unsigned char)supla_esp_cfg.GUID[8],
      (unsigned char)supla_esp_cfg.GUID[9],
      (unsigned char)supla_esp_cfg.GUID[10],
      (unsigned char)supla_esp_cfg.GUID[11],
      (unsigned char)supla_esp_cfg.GUID[12],
      (unsigned char)supla_esp_cfg.GUID[13],
      (unsigned char)supla_esp_cfg.GUID[14],
      (unsigned char)supla_esp_cfg.GUID[15], (unsigned char)mac[0],
      (unsigned char)mac[1], (unsigned char)mac[2], (unsigned char)mac[3],
      (unsigned char)mac[4], (unsigned char)mac[5], supla_esp_cfg.WIFI_SSID,
      supla_esp_cfg.Server, supla_esp_cfg.Email,
      supla_esp_cfg.StatusLedOff == 0 ? "selected" : "",
      supla_esp_cfg.StatusLedOff == 1 ? "selected" : ""); 
  

  return buffer;
}

void ICACHE_FLASH_ATTR supla_esp_board_gpio_init(void) {

	supla_input_cfg[0].type = INPUT_TYPE_BTN_MONOSTABLE;
	supla_input_cfg[0].gpio_id = B_CFG_PORT;
	supla_input_cfg[0].flags = INPUT_FLAG_PULLUP | INPUT_FLAG_CFG_BTN;
	supla_input_cfg[0].relay_gpio_id = B_RELAY1_PORT;
	supla_input_cfg[0].channel = 0;

	// ---------------------------------------
	// ---------------------------------------

    supla_relay_cfg[0].gpio_id = B_RELAY1_PORT;
    supla_relay_cfg[0].flags = RELAY_FLAG_RESTORE_FORCE;
    supla_relay_cfg[0].channel = 0;
    

}

void ICACHE_FLASH_ATTR supla_esp_board_set_channels(TDS_SuplaDeviceChannel_C *channels, unsigned char *channel_count) {

	*channel_count = 1;

	channels[0].Number = 0;
	channels[0].Type = SUPLA_CHANNELTYPE_RELAY;

	channels[0].FuncList = SUPLA_BIT_FUNC_POWERSWITCH \
								| SUPLA_BIT_FUNC_LIGHTSWITCH;

	channels[0].Default = SUPLA_CHANNELFNC_POWERSWITCH;
        
        channels[0].Flags |= SUPLA_CHANNEL_FLAG_COUNTDOWN_TIMER_SUPPORTED; // Nowy Timer
	channels[0].Flags |= SUPLA_CHANNEL_FLAG_CHANNELSTATE; // Nowy poziom ...
	
        channels[0].value[0] = supla_esp_gpio_relay_on(B_RELAY1_PORT);

}

void ICACHE_FLASH_ATTR supla_esp_board_send_channel_values_with_delay(void *srpc) {

	supla_esp_channel_value_changed(0, supla_esp_gpio_relay_on(B_RELAY1_PORT));

}
void ICACHE_FLASH_ATTR supla_esp_board_on_connect(void) {     // LED CFG zgaszona podczas normalnej pracy
  supla_esp_gpio_set_led(supla_esp_cfg.StatusLedOff, 0, 0);  // LED CFG zgaszona podczas normalnej pracy
  }                                                            // LED CFG zgaszona podczas normalnej pracy
// makro dla zbocza narastajcego - start
void ICACHE_FLASH_ATTR supla_esp_board_gpio_relay_switch(void* _input_cfg,
    char hi)
{

    supla_input_cfg_t* input_cfg = (supla_input_cfg_t*)_input_cfg;

    if (input_cfg->relay_gpio_id != 255) {

        // supla_log(LOG_DEBUG, "RELAY");

        supla_esp_gpio_relay_hi(input_cfg->relay_gpio_id, hi, 0);

        if (input_cfg->channel != 255)
            supla_esp_channel_value_changed(
                input_cfg->channel,
                supla_esp_gpio_relay_is_hi(input_cfg->relay_gpio_id));
    }
}

void ICACHE_FLASH_ATTR supla_esp_board_gpio_on_input_active(void* _input_cfg)
{

    supla_input_cfg_t* input_cfg = (supla_input_cfg_t*)_input_cfg;

  if ( input_cfg->type == INPUT_TYPE_BTN_MONOSTABLE 	//wlaczanie przy zboczu narastajacym
		|| input_cfg->type == INPUT_TYPE_BTN_BISTABLE ) {

		supla_log(LOG_DEBUG, "RELAY");
		supla_esp_board_gpio_relay_switch(input_cfg, 255);
		
		} else if ( input_cfg->type == INPUT_TYPE_SENSOR
				&&  input_cfg->channel != 255 ) {

		supla_esp_channel_value_changed(input_cfg->channel, 1);

	}

    input_cfg->last_state = 1;
}

void ICACHE_FLASH_ATTR
supla_esp_board_gpio_on_input_inactive(void* _input_cfg)
{

    supla_input_cfg_t* input_cfg = (supla_input_cfg_t*)_input_cfg;

    if ( input_cfg->type == INPUT_TYPE_BTN_BISTABLE ) {		//wlaczanie przy zboczu narastajacym

		supla_esp_board_gpio_relay_switch(input_cfg, 255);

    } else if ( input_cfg->type == INPUT_TYPE_SENSOR
			    &&  input_cfg->channel != 255 ) {
		supla_esp_channel_value_changed(input_cfg->channel, 0);

	}

    input_cfg->last_state = 0;
}
// makro dla zbocza narastajcego - stop
sonoff_s20.h

Kod: Zaznacz cały

/*
 Copyright (C) AC SOFTWARE SP. Z O.O.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifndef P_SONOFF_S20_H_
#define P_SONOFF_S20_H_

// #define ESP8285
#define ESP8266_SUPLA_PROTO_VERSION 12 // 7
#define LED_RED_PORT    13
// #define AP_SSID "S_S20/26" // nowy, ale wtedy nie dziala kreator dodawania z apki

#define BOARD_ON_CONNECT  // LED CFG zgaszona przy normalnej pracy
#define BOARD_CFG_HTML_TEMPLATE // nowy config z LED ON/OFF

#define INPUT_MIN_CYCLE_COUNT 6 // nowy czas
#define INPUT_CYCLE_TIME 21 // nowy czas

char *ICACHE_FLASH_ATTR supla_esp_board_cfg_html_template(
char dev_name[25], const char mac[6], const char data_saved); // nowy config z LED ON/OFF
void ICACHE_FLASH_ATTR supla_esp_board_on_connect(void); //LED CFG zgaszona podczas normalnej pracy
void ICACHE_FLASH_ATTR supla_esp_board_send_channel_values_with_delay(void *srpc);
// makro zbocze narastajce - start
#define BOARD_ON_INPUT_ACTIVE                        \
    supla_esp_board_gpio_on_input_active(input_cfg); \
    return;
void ICACHE_FLASH_ATTR supla_esp_board_gpio_on_input_active(void* _input_cfg);

#define BOARD_ON_INPUT_INACTIVE                        \
    supla_esp_board_gpio_on_input_inactive(input_cfg); \
    return;
void ICACHE_FLASH_ATTR supla_esp_board_gpio_on_input_inactive(void* _input_cfg);
// makro zbocze narastajce - stop

#endif
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Z jakimi parametrami to kompilujesz ? (build.sh)
Masz gdzieś całe repo ?
Patryk
Posty: 2677
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

Mam tylko na kompie.
Parametry są następujące:

Kod: Zaznacz cały

;;
   "p_sonoff_s26")
    SPI_MODE="DOUT"
    FOTA=1
;;
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

To wrzuć całość na swojego githuba
Patryk
Posty: 2677
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

I tu jest problem, bo nie mam github-a.
Mogę skopiować i udostępnić całą zawartość, ale parę plików nie chce się skopiować.
Jedyna "większa" zmiana to dodanie:
viewtopic.php?p=86020#p86020
żeby można było kompilować dla 1M.
Patryk
Posty: 2677
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

A tak to wygląda w konsoli.
Coś sie sypie w 0:52:20.221 ( a nawet chyba od 0:52:20.186 ).
( W chwili połączenia się "modułu" za pomocą 192.168.4.1 ).
Nawet tego nie potrafiłem skopiować.
Musiałem kopiować każdą linijkę osobno, a i tak nie skopiowało się identycznie ( dziwne ).
Ps.
Moje dane zmieniłem na xx.

Kod: Zaznacz cały

00:51:22.152 -> 
00:51:22.152 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
00:51:22.152 -> 
00:51:22.187 -> load 0x40100000, len 2408, room 16 
00:51:22.187 -> tail 8
00:51:22.187 -> chksum 0xe5
00:51:22.187 -> load 0x3ffe8000, len 776, room 0 
00:51:22.187 -> tail 8
00:51:22.220 -> chksum 0x84
00:51:22.220 -> load 0x3ffe8310, len 632, room 0 
00:51:22.220 -> tail 8
00:51:22.220 -> chksum 0xd8
00:51:22.220 -> csum 0xd8
00:51:22.220 -> 
00:51:22.220 -> 2nd boot version : 1.6
00:51:22.220 ->   SPI Speed      : 40MHz
00:51:22.220 ->   SPI Mode       : DOUT
00:51:22.220 ->   SPI Flash Size & Map: 8Mbit(512KB+512KB)
00:51:22.220 -> jump to run user1 @ 1000
00:51:22.220 -> 
00:51:22.324 -> V2
00:51:22.324 -> Mo
00:51:22.358 -> ⸮rf cal sector: 251
00:51:22.358 -> freq trace enable 0
00:51:22.358 -> rf[112] : 00
00:51:22.358 -> rf[113] : 00
00:51:22.358 -> rf[114] : 01
00:51:22.358 -> 
00:51:22.358 -> SDK ver: 3.0.4(9532ceb) compiled @ May 22 2020 16:26:04
00:51:22.358 -> phy ver: 1156_0, pp ver: 10.2
00:51:22.393 -> 
00:51:22.393 -> RST reason: 6
00:51:22.393 -> CFG READ SUCCESS!
00:51:22.393 -> STATE READ SUCCESS!
00:51:22.393 -> Starting 158144
00:51:22.393 -> WiFi Status: 255
00:51:22.393 -> Disconnected
00:51:22.393 -> WiFi - Connecting...
00:51:22.393 -> data  : 0x3ffe8000 ~ 0x3ffe9dee, len: 7662
00:51:22.393 -> rodata: 0x3ffe9df0 ~ 0x3ffec230, len: 9280
00:51:22.393 -> bss   : 0x3ffec230 ~ 0x3fff3420, len: 29168
00:51:22.427 -> heap  : 0x3fff3420 ~ 0x3fffc000, len: 35808
00:51:22.427 -> mode : sta(xx:xx:xx:xx:xx:xx) // zmieniłem na x
00:51:22.427 -> add if0
00:51:22.528 -> scandone
00:51:22.528 -> state: 0 -> 2 (b0)
00:51:22.528 -> state: 2 -> 3 (0)
00:51:22.563 -> state: 3 -> 5 (10)
00:51:22.563 -> add 0
00:51:22.563 -> aid 6
00:51:22.563 -> cnt 
00:51:22.563 -> 
00:51:22.563 -> connected with xxxxxx, channel 8 // zmieniłem na x
00:51:22.563 -> dhcp client start...
00:51:22.597 -> WiFi Status: 1
00:51:23.350 -> ip:192.168.0.125,mask:255.255.255.0,gw:192.168.0.1
00:51:23.384 -> WiFi Status: 5
00:51:23.384 -> Resolv svrXX.supla.org // zmieniłem na XX
00:51:23.418 -> please start sntp first !
00:51:23.418 -> client handshake start.
00:51:23.555 -> client handshake ok!
00:51:23.692 -> Registered and ready.
00:51:23.692 -> Free heap size: 19032
00:51:32.549 -> pm open,type:2 0
00:51:51.989 -> RELAY
00:51:53.052 -> STATE WRITE SUCCESS
00:51:57.085 -> ENTER CFG MODE
00:51:57.085 -> vPortFree 517 line assert fail
00:51:57.085 -> state: 5 -> 0 (0)
00:51:57.085 -> rm 0
00:51:57.085 -> pm close 7
00:51:57.119 -> del if0
00:51:57.119 -> usl
00:51:57.119 -> mode : softAP(xx:xx:xx:xx:xx:xx) // zmieniłem na xx
00:51:57.119 -> add if1
00:51:57.119 -> dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
00:51:57.119 -> bcn 100
00:52:08.144 -> add 1
00:52:08.144 -> aid 1
00:52:08.144 -> station: 3e:68:0e:04:c5:cb join, AID = 1
00:52:19.499 -> Free heap size: 29808
00:52:19.499 -> REQUEST LEN: 452
00:52:19.499 -> HTTP OK (1) Free heap size: 24272
00:52:19.945 -> Disconnect
00:52:20.151 -> Free heap size: 30336
00:52:20.151 -> REQUEST LEN: 392
00:52:20.186 -> Disconnect
00:52:20.186 -> Fatal exception 9(LoadStoreAlignmentCause):
00:52:20.186 -> epc1=0x40100f60, epc2=0x00000000, epc3=0x00000000, excvaddr=0x3ffeb02e, depc=0x00000000
⸮@ǃIT⸮D  ⸮%⸮⸮u⸮B⸮Y+S
00:52:20.221 -> 	⸮E	p⸮⸮r\))⸮
00:52:20.255 -> 1⸮-⸮[⸮P9⸮⸮X	)d⸮%
00:52:20.255 -> 	I⸮~X⸮L
00:52:20.255 -> NRA⸮
00:52:20.255 -> 	I⸮~T⸮⸮
00:52:20.255 -> 1T-⸮[=⸮ӋA
)
00:52:20.346 -> V2
00:52:20.346 -> Mo
00:52:20.346 -> rf cal sector: 251
00:52:20.356 -> freq trace enable 0
00:52:20.356 -> rf[112] : 00
00:52:20.356 -> rf[113] : 00
00:52:20.356 -> rf[114] : 01
00:52:20.356 -> 
00:52:20.356 -> SDK ver: 3.0.4(9532ceb) compiled @ May 22 2020 16:26:04
00:52:20.390 -> phy ver: 1156_0, pp ver: 10.2
00:52:20.390 -> 
00:52:20.390 -> RST reason: 2
00:52:20.390 -> CFG READ SUCCESS!
00:52:20.390 -> STATE READ SUCCESS!
00:52:20.390 -> Starting 165336
00:52:20.390 -> WiFi Status: 255
00:52:20.390 -> Disconnected
00:52:20.390 -> WiFi - Connecting...
00:52:20.459 -> data  : 0x3ffe8000 ~ 0x3ffe9dee, len: 7662
00:52:20.493 -> rodata: 0x3ffe9df0 ~ 0x3ffec230, len: 9280
00:52:20.493 -> bss   : 0x3ffec230 ~ 0x3fff3420, len: 29168
00:52:20.493 -> heap  : 0x3fff3420 ~ 0x3fffc000, len: 35808
00:52:20.493 -> mode : sta(xx:xx:xx:xx:xx:xx) // zmieniłem na xx
00:52:20.493 -> add if0
00:52:20.595 -> scandone
00:52:20.595 -> state: 0 -> 2 (b0)
00:52:20.629 -> state: 2 -> 3 (0)
00:52:20.629 -> state: 3 -> 5 (10)
00:52:20.629 -> add 0
00:52:20.629 -> aid 6
00:52:20.629 -> cnt 
00:52:20.662 -> 
00:52:20.662 -> connected with xxxxxx, channel 8 // zmieniłem na xx
00:52:20.662 -> dhcp client start...
00:52:20.662 -> WiFi Status: 1
00:52:23.394 -> ip:192.168.0.125,mask:255.255.255.0,gw:192.168.0.1
00:52:23.463 -> WiFi Status: 5
00:52:23.463 -> Resolv svrXX.supla.org // zmieniłem na XX
00:52:23.497 -> please start sntp first !
00:52:23.566 -> client handshake start.
00:52:23.668 -> client handshake ok!
00:52:23.804 -> Registered and ready.
00:52:23.804 -> Free heap size: 19032
00:52:30.637 -> pm open,type:2 0
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

To załóż. Jest bezpłatny.
Patryk
Posty: 2677
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

Z tym github-em, to może kiedyś się nauczę ...
Ale.
Zainstalowałem "czyste" źródła v 2.8.9
Jedyną płytką z przykładów, którą można było jeszcze skompilować był "impulse_counter".
Ale problem tu też jest identyczny.
Jak już "moduł" jest skonfigurowany, ponowne wejście po 192.168.4.1 powoduje restart "modułu".
ODPOWIEDZ

Wróć do „Zagadnienia ogólne”