Dyskusja ogólna [bramka Zigbee]

Moderator: vajera

User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@klew - mam pytanie dotyczące raportowania stanu baterii. Przy okazji termostatu i czujników BLE zastosowałem takie rozwiązanie:

Code: Select all

class XiaomiThermHygroMeter : public Supla::Sensor::ThermHygroMeter {

Code: Select all

void onInit() override {
    channel.setNewValue(*xiaomi_temperature, *xiaomi_humidity);
    channel.setBatteryLevel(*xiaomi_battery);
  }

Code: Select all

void handleGetChannelState(TDSC_ChannelState *channelState) override {

    channelState->Fields = channelState->Fields | SUPLA_CHANNELSTATE_FIELD_MAC |
                          SUPLA_CHANNELSTATE_FIELD_BATTERYLEVEL |
                          SUPLA_CHANNELSTATE_FIELD_BATTERYPOWERED |
                          SUPLA_CHANNELSTATE_FIELD_WIFIRSSI |
                          SUPLA_CHANNELSTATE_FIELD_WIFISIGNALSTRENGTH;
                           
    channelState->BatteryLevel = *xiaomi_battery;
    channelState->BatteryPowered = true;
    channelState->WiFiRSSI = *xiaomi_rssi;
Ten kod działał, ale wymaga utworzenia klasy pochodnej dla każdego typu czujnika, natomiast coś mi świta, że opisywałeś jakieś prostsze rozwiązanie?
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

andras wrote: Tue Jan 21, 2025 9:43 am Mam problem z taką płytką , wgrywam bina , sieć niby rozgłasza ale nie można się zalogować
Używa ktoś może takiej ?

Screenshot 2025-01-21 at 10-39-22 Płytka rozwojowa ESP32-C6-MiNi ESP32C6 Minimalna płytka systemowa ESP32 Płyta główna RISC-V Espressif IoT WiFi6 Bluetooth Zigbee - AliExpress 502.png[attachment=0]
Ja mam taki. Normalnie działa. Ostatni .bin (testowy) od @vajera normalnie na niego się wgrywa i działa (sprawdzałem wczoraj w nocy).
Czyściłeś ("erase") pamięć przed wgraniem? Jeśli nie, to zrób to. Musi się połączyć z rozgłaszaną siecią.
Jeśli nie idzie na komputerze, to spróbuj na telefonie (albo na odwrót).
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

vajera wrote: Tue Jan 21, 2025 10:03 am
Zibi_007 wrote: Tue Jan 21, 2025 12:17 am
Ja sobie pozwoliłem ściągnąć ten alternatywny .bin z załącznika i spróbować go wgrać na wszystko co miałem pod ręką. Sprawdziłem, działa na C6 N4, N8, N16 i mini. Możesz więc być spokojny publikując swoje kompilacje. Powinny działać u wszystkich. Co ciekawe, po wgraniu tej wersji przełącznik x4 znalazł tylko dwa przekaźniki. W jednym cały czas raportuje, że jest włączony, więc nawet jak w Supli przełączę na off, to po chwili i tak mam on. Próbowałem kilka razy resetować i parować ponownie. Zawsze to samo. Na wszelki wypadek log przesyłam w załączniku.

I jeszcze jedno pytanie. Wgrywałeś nowe boardy (są już 3.1.1)? Jeśli nie, to mogę spróbować i dać znać, czy wszystko działa.
Na bazie tych doświadczeń z Xiaomi przebudowałem kod i strukturę bazy urządzeń. Dla ciekawych wyjaśnienia poniżej:

1. Urządzenie końcowe, które ma tylko 1 endpoint (chyba większość) wpisane jest tak:

Code: Select all

{ .manufacturer_name = "_TZ3000_akqdg6g7", .model_name = "TS0201", 
    .z2s_device_desc_id = Z2S_DEVICE_DESC_TEMPHUMIDITY_SENSOR, .z2s_device_endpoints_count = 1}
To pole .z2s_device_desc_id wskazuje na zestaw klastrów, dla których ma zostać podjęta próba bindowania ZC <=>ZED.

2. Urządzenie końcowe z większą liczbą endpointów ma taką definicję:

Code: Select all

{ .manufacturer_name = "_TZ3000_wkai4ga5", .model_name = "TS0044", 
    .z2s_device_desc_id = Z2S_DEVICE_DESC_ON_OFF, .z2s_device_endpoints_count = 4, 
    .z2s_device_endpoints = { { 1, Z2S_DEVICE_DESC_ON_OFF },
                              { 2, Z2S_DEVICE_DESC_ON_OFF_1 },
                              { 3, Z2S_DEVICE_DESC_ON_OFF_1 },
                              { 4, Z2S_DEVICE_DESC_ON_OFF_1 }}}
W tej sytuacji to pole .z2s_device_desc_id nie jest brane pod uwagę - dla każdego endpointa zdefiniowany jest rekord:
{endpoint_id, .z2s_device_desc_id)

O widzisz! Dziękuję za wyjaśnienie. Mądrego to warto posłuchać (poczytać). Już kilka dni temu się nad tym zastanawiałem... a teraz już wiem :)
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

local wrote: Tue Jan 21, 2025 10:12 am
Zibi_007 wrote: Mon Jan 20, 2025 12:17 pm
local wrote: Mon Jan 20, 2025 12:09 pm @vajera zerkniesz na logi ? Czujnik dodaje się ale nie raportuje w temperatury i wilgotności.
I jeszcze czy można by było dodać przycisk w trybie config do czyszczenia pamięci urządzeń zigbee bez usuwania danych wifi i supla?
[...]
Jak dłużej przytrzymasz BOOT, to usunie Ci dane o urządzeniach, a Supla zostanie.
U mnie to nie działa... jak trzymam boot to po jakimś czasie urządzenie się rozłącza i łączy ponownie ale kanały zostają.
Usuń urządzenie z cloud. Doda się bez albo z nowymi kanałami.
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

vajera wrote: Tue Jan 21, 2025 10:20 am @klew - mam pytanie dotyczące raportowania stanu baterii. Przy okazji termostatu i czujników BLE zastosowałem takie rozwiązanie:

Code: Select all

class XiaomiThermHygroMeter : public Supla::Sensor::ThermHygroMeter {

Code: Select all

void onInit() override {
    channel.setNewValue(*xiaomi_temperature, *xiaomi_humidity);
    channel.setBatteryLevel(*xiaomi_battery);
  }

Code: Select all

void handleGetChannelState(TDSC_ChannelState *channelState) override {

    channelState->Fields = channelState->Fields | SUPLA_CHANNELSTATE_FIELD_MAC |
                          SUPLA_CHANNELSTATE_FIELD_BATTERYLEVEL |
                          SUPLA_CHANNELSTATE_FIELD_BATTERYPOWERED |
                          SUPLA_CHANNELSTATE_FIELD_WIFIRSSI |
                          SUPLA_CHANNELSTATE_FIELD_WIFISIGNALSTRENGTH;
                           
    channelState->BatteryLevel = *xiaomi_battery;
    channelState->BatteryPowered = true;
    channelState->WiFiRSSI = *xiaomi_rssi;
Ten kod działał, ale wymaga utworzenia klasy pochodnej dla każdego typu czujnika, natomiast coś mi świta, że opisywałeś jakieś prostsze rozwiązanie?
A jakby rzutować na Supla::Channel i po prostu tam ustawiać?
andras
Posts: 636
Joined: Fri Dec 30, 2016 5:51 pm
Has thanked: 2 times
Been thanked: 4 times

Post

klew wrote: Tue Jan 21, 2025 9:50 am
andras wrote: Tue Jan 21, 2025 9:43 am Mam problem z taką płytką , wgrywam bina , sieć niby rozgłasza ale nie można się zalogować
Używa ktoś może takiej ?
Ja nie, ale to pewnie nie wina płytki.
Pokaż logi.
Załączam log:

Code: Select all

 
------------------------------------------

ELF file SHA256: 7558d9f24fa92da9

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xcf8
load:0x4086e610,len:0x2e30
load:0x40875728,len:0x113c
entry 0x4086c410
[   706][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   718][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   729][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   740][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   752][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   763][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   774][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   786][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   797][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4202aaf4
[   809][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4202aaf4
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   828][V][WebServer.cpp:55] WebServer(): WebServer::Webserver(port=80)
[   835][V][ZigbeeEP.cpp:21] ZigbeeEP(): Endpoint: 1
[   857][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x40811224
[   867][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x40811224
[   878][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408161f4
[   889][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408161f4
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   362568 B ( 354.1 KB)
  Allocated Bytes   :    31476 B (  30.7 KB)
  Minimum Free Bytes:   362568 B ( 354.1 KB)
    Largest Free Block:   344052 B ( 336.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  2560.0 KB, type:  APP, subtype: OTA_0
             spiffs : addr: 0x00290000, size:  1384.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EA000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EE000, size:     4.0 KB, type: DATA, subtype: FAT
             rcp_fw : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: SPIFFS
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Jan 11 2025 19:23:23
  Compile Host OS   : windows
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=custom,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=zczr
============ Before Setup End ============
[  1011][I][Z2S_Gateway.ino:58] setup(): setup start
[  1011][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4202d114
[  1012][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 0 0 0 0 0 0 ]
Section type: 3; size: 0
storedCRC 0, CRC calc 65535
LittleFsConfig: config file doesn't exist
LittleFsConfig: config file size 90
LittleFsConfig: initializing storage from file...
LittleFsConfig: init result 1
[  1070][I][Z2S_Devices_Table.cpp:75] Z2S_loadDevicesTable(): before get devices table
[  1095][I][Z2S_Devices_Table.cpp:110] Z2S_loadDevicesTable(): Devices table load success!
[  1096][I][Z2S_Devices_Table.cpp:136] Z2S_initSuplaChannels(): iintSuplaChannels starting
[  1096][D][ZigbeeCore.cpp:85] addEndpoint(): Endpoint: 1, Device ID: 0x0050
[  1097][I][Z2S_Gateway.ino:116] setup(): before SuplaDevice begin
Supla - starting initialization (platform 0)
Config incomplete: missing Wi-Fi SSID
LAST STATE ADDED: Missing Wi-Fi SSID
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing email
Security level: Supla CA
Validating storage state section with current device configuration
Storage state section validation successful
Config incomplete: deviceMode = CONFIG
LAST STATE ADDED: Missing server address
Current status: [3] Missing server address
LAST STATE ADDED: Missing email address
Current status: [32] Missing email address
GUID: 927B6B4C9194EEBC5395A75F432C4695
Device name: Zigbee to Supla
Device software version: SDK 24.11.04-dev
Initializing network layer
[Wi-Fi] Network AP/hostname: ZIGBEE-TO-SUPLA-54320432FD58
Using Supla protocol version 23
Current status: [5] SuplaDevice initialized
Wi-Fi SSID missing
WiFi: enter config mode with SSID: "ZIGBEE-TO-SUPLA-54320432FD58"
[  1108][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 9 - WIFI_READY
[  1178][V][AP.cpp:106] _onApEvent(): AP Started
[  1178][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 19 - AP_START
[  1178][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 19 - AP_START
Starting local web server
LAST STATE ADDED: Config mode
Current status: [40] Config mode
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   313260 B ( 305.9 KB)
  Allocated Bytes   :    77664 B (  75.8 KB)
  Minimum Free Bytes:   312648 B ( 305.3 KB)
  Largest Free Block:   294900 B ( 288.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------  
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  2329][V][AP.cpp:123] _onApEvent(): AP Station Connected: MAC: 24:ee:9a:65:0f:db, AID: 1
[  2330][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 21 - AP_STACONNECTED
[  2331][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 21 - AP_STACONNECTED
[  2347][V][NetworkInterface.cpp:146] _onIpEvent(): ap Assigned IP: 192.168.4.2 to MAC: 24:EE:9A:65:0F:DB
[  2347][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 23 - AP_STAIPASSIGNED
[  2348][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 23 - AP_STAIPASSIGNED



User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

andras wrote: Tue Jan 21, 2025 11:13 am
klew wrote: Tue Jan 21, 2025 9:50 am
andras wrote: Tue Jan 21, 2025 9:43 am Mam problem z taką płytką , wgrywam bina , sieć niby rozgłasza ale nie można się zalogować
Używa ktoś może takiej ?
Ja nie, ale to pewnie nie wina płytki.
Pokaż logi.
Załączam log:

Code: Select all

 
------------------------------------------

ELF file SHA256: 7558d9f24fa92da9

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xcf8
load:0x4086e610,len:0x2e30
load:0x40875728,len:0x113c
entry 0x4086c410
[   706][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   718][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   729][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   740][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   752][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   763][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   774][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   786][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   797][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4202aaf4
[   809][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4202aaf4
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   828][V][WebServer.cpp:55] WebServer(): WebServer::Webserver(port=80)
[   835][V][ZigbeeEP.cpp:21] ZigbeeEP(): Endpoint: 1
[   857][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x40811224
[   867][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x40811224
[   878][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408161f4
[   889][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408161f4
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   362568 B ( 354.1 KB)
  Allocated Bytes   :    31476 B (  30.7 KB)
  Minimum Free Bytes:   362568 B ( 354.1 KB)
    Largest Free Block:   344052 B ( 336.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  2560.0 KB, type:  APP, subtype: OTA_0
             spiffs : addr: 0x00290000, size:  1384.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EA000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EE000, size:     4.0 KB, type: DATA, subtype: FAT
             rcp_fw : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: SPIFFS
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Jan 11 2025 19:23:23
  Compile Host OS   : windows
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=custom,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=zczr
============ Before Setup End ============
[  1011][I][Z2S_Gateway.ino:58] setup(): setup start
[  1011][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4202d114
[  1012][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 0 0 0 0 0 0 ]
Section type: 3; size: 0
storedCRC 0, CRC calc 65535
LittleFsConfig: config file doesn't exist
LittleFsConfig: config file size 90
LittleFsConfig: initializing storage from file...
LittleFsConfig: init result 1
[  1070][I][Z2S_Devices_Table.cpp:75] Z2S_loadDevicesTable(): before get devices table
[  1095][I][Z2S_Devices_Table.cpp:110] Z2S_loadDevicesTable(): Devices table load success!
[  1096][I][Z2S_Devices_Table.cpp:136] Z2S_initSuplaChannels(): iintSuplaChannels starting
[  1096][D][ZigbeeCore.cpp:85] addEndpoint(): Endpoint: 1, Device ID: 0x0050
[  1097][I][Z2S_Gateway.ino:116] setup(): before SuplaDevice begin
Supla - starting initialization (platform 0)
Config incomplete: missing Wi-Fi SSID
LAST STATE ADDED: Missing Wi-Fi SSID
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing email
Security level: Supla CA
Validating storage state section with current device configuration
Storage state section validation successful
Config incomplete: deviceMode = CONFIG
LAST STATE ADDED: Missing server address
Current status: [3] Missing server address
LAST STATE ADDED: Missing email address
Current status: [32] Missing email address
GUID: 927B6B4C9194EEBC5395A75F432C4695
Device name: Zigbee to Supla
Device software version: SDK 24.11.04-dev
Initializing network layer
[Wi-Fi] Network AP/hostname: ZIGBEE-TO-SUPLA-54320432FD58
Using Supla protocol version 23
Current status: [5] SuplaDevice initialized
Wi-Fi SSID missing
WiFi: enter config mode with SSID: "ZIGBEE-TO-SUPLA-54320432FD58"
[  1108][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 9 - WIFI_READY
[  1178][V][AP.cpp:106] _onApEvent(): AP Started
[  1178][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 19 - AP_START
[  1178][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 19 - AP_START
Starting local web server
LAST STATE ADDED: Config mode
Current status: [40] Config mode
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   313260 B ( 305.9 KB)
  Allocated Bytes   :    77664 B (  75.8 KB)
  Minimum Free Bytes:   312648 B ( 305.3 KB)
  Largest Free Block:   294900 B ( 288.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------  
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  2329][V][AP.cpp:123] _onApEvent(): AP Station Connected: MAC: 24:ee:9a:65:0f:db, AID: 1
[  2330][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 21 - AP_STACONNECTED
[  2331][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 21 - AP_STACONNECTED
[  2347][V][NetworkInterface.cpp:146] _onIpEvent(): ap Assigned IP: 192.168.4.2 to MAC: 24:EE:9A:65:0F:DB
[  2347][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 23 - AP_STAIPASSIGNED
[  2348][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 23 - AP_STAIPASSIGNED



Zrobiłeś to, co napisałem? Jak nie na telefonie, to na komputerze (i na odwrót).
Wszystko wygląda ok. Powinieneś móc zalogować się do sieci ZIGBEE-TO-SUPLA-54320432FD58 i wejść przez adres 192.168.4.1 - poustawiać wszystko (dane do sieci i Supli).
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

Zibi_007 wrote: Tue Jan 21, 2025 11:21 am
andras wrote: Tue Jan 21, 2025 11:13 am
klew wrote: Tue Jan 21, 2025 9:50 am

Ja nie, ale to pewnie nie wina płytki.
Pokaż logi.
Załączam log:

Code: Select all

 
------------------------------------------

ELF file SHA256: 7558d9f24fa92da9

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xcf8
load:0x4086e610,len:0x2e30
load:0x40875728,len:0x113c
entry 0x4086c410
[   706][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   718][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   729][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   740][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   752][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   763][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   774][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   786][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   797][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4202aaf4
[   809][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4202aaf4
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   828][V][WebServer.cpp:55] WebServer(): WebServer::Webserver(port=80)
[   835][V][ZigbeeEP.cpp:21] ZigbeeEP(): Endpoint: 1
[   857][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x40811224
[   867][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x40811224
[   878][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408161f4
[   889][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408161f4
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   362568 B ( 354.1 KB)
  Allocated Bytes   :    31476 B (  30.7 KB)
  Minimum Free Bytes:   362568 B ( 354.1 KB)
    Largest Free Block:   344052 B ( 336.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  2560.0 KB, type:  APP, subtype: OTA_0
             spiffs : addr: 0x00290000, size:  1384.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EA000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EE000, size:     4.0 KB, type: DATA, subtype: FAT
             rcp_fw : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: SPIFFS
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Jan 11 2025 19:23:23
  Compile Host OS   : windows
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=custom,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=zczr
============ Before Setup End ============
[  1011][I][Z2S_Gateway.ino:58] setup(): setup start
[  1011][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4202d114
[  1012][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 0 0 0 0 0 0 ]
Section type: 3; size: 0
storedCRC 0, CRC calc 65535
LittleFsConfig: config file doesn't exist
LittleFsConfig: config file size 90
LittleFsConfig: initializing storage from file...
LittleFsConfig: init result 1
[  1070][I][Z2S_Devices_Table.cpp:75] Z2S_loadDevicesTable(): before get devices table
[  1095][I][Z2S_Devices_Table.cpp:110] Z2S_loadDevicesTable(): Devices table load success!
[  1096][I][Z2S_Devices_Table.cpp:136] Z2S_initSuplaChannels(): iintSuplaChannels starting
[  1096][D][ZigbeeCore.cpp:85] addEndpoint(): Endpoint: 1, Device ID: 0x0050
[  1097][I][Z2S_Gateway.ino:116] setup(): before SuplaDevice begin
Supla - starting initialization (platform 0)
Config incomplete: missing Wi-Fi SSID
LAST STATE ADDED: Missing Wi-Fi SSID
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing email
Security level: Supla CA
Validating storage state section with current device configuration
Storage state section validation successful
Config incomplete: deviceMode = CONFIG
LAST STATE ADDED: Missing server address
Current status: [3] Missing server address
LAST STATE ADDED: Missing email address
Current status: [32] Missing email address
GUID: 927B6B4C9194EEBC5395A75F432C4695
Device name: Zigbee to Supla
Device software version: SDK 24.11.04-dev
Initializing network layer
[Wi-Fi] Network AP/hostname: ZIGBEE-TO-SUPLA-54320432FD58
Using Supla protocol version 23
Current status: [5] SuplaDevice initialized
Wi-Fi SSID missing
WiFi: enter config mode with SSID: "ZIGBEE-TO-SUPLA-54320432FD58"
[  1108][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 9 - WIFI_READY
[  1178][V][AP.cpp:106] _onApEvent(): AP Started
[  1178][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 19 - AP_START
[  1178][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 19 - AP_START
Starting local web server
LAST STATE ADDED: Config mode
Current status: [40] Config mode
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   313260 B ( 305.9 KB)
  Allocated Bytes   :    77664 B (  75.8 KB)
  Minimum Free Bytes:   312648 B ( 305.3 KB)
  Largest Free Block:   294900 B ( 288.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------  
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  2329][V][AP.cpp:123] _onApEvent(): AP Station Connected: MAC: 24:ee:9a:65:0f:db, AID: 1
[  2330][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 21 - AP_STACONNECTED
[  2331][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 21 - AP_STACONNECTED
[  2347][V][NetworkInterface.cpp:146] _onIpEvent(): ap Assigned IP: 192.168.4.2 to MAC: 24:EE:9A:65:0F:DB
[  2347][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 23 - AP_STAIPASSIGNED
[  2348][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 23 - AP_STAIPASSIGNED



Zrobiłeś to, co napisałem? Jak nie na telefonie, to na komputerze (i na odwrót).
Wszystko wygląda ok. Powinieneś móc zalogować się do sieci ZIGBEE-TO-SUPLA-54320432FD58 i wejść przez adres 192.168.4.1 - poustawiać wszystko (dane do sieci i Supli).
@andras

A zobacz ta linijkę, po mojemu to trzeba by zobaczyć adres 2 a nie 1 [ 2347][V][NetworkInterface.cpp:146] _onIpEvent(): ap Assigned IP: 192.168.4.2 to MAC: 24:EE:9A:65:0F:DB
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

[email protected] wrote: Tue Jan 21, 2025 11:26 am
Zibi_007 wrote: Tue Jan 21, 2025 11:21 am
andras wrote: Tue Jan 21, 2025 11:13 am

Załączam log:

Code: Select all

 
------------------------------------------

ELF file SHA256: 7558d9f24fa92da9

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xcf8
load:0x4086e610,len:0x2e30
load:0x40875728,len:0x113c
entry 0x4086c410
[   706][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   718][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   729][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   740][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   752][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4202f9b8
[   763][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x4202f97c
[   774][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4202f940
[   786][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4202f904
[   797][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4202aaf4
[   809][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4202aaf4
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   820][V][NetworkServer.h:41] NetworkServer(): NetworkServer::NetworkServer(port=80, ...)
[   828][V][WebServer.cpp:55] WebServer(): WebServer::Webserver(port=80)
[   835][V][ZigbeeEP.cpp:21] ZigbeeEP(): Endpoint: 1
[   857][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x40811224
[   867][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x40811224
[   878][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408161f4
[   889][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408161f4
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   362568 B ( 354.1 KB)
  Allocated Bytes   :    31476 B (  30.7 KB)
  Minimum Free Bytes:   362568 B ( 354.1 KB)
    Largest Free Block:   344052 B ( 336.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  2560.0 KB, type:  APP, subtype: OTA_0
             spiffs : addr: 0x00290000, size:  1384.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EA000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EE000, size:     4.0 KB, type: DATA, subtype: FAT
             rcp_fw : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: SPIFFS
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Jan 11 2025 19:23:23
  Compile Host OS   : windows
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
  ESP-IDF Version   : v5.1.4-972-g632e0c2a9f-dirty
  Arduino Version   : 3.0.7
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=custom,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=zczr
============ Before Setup End ============
[  1011][I][Z2S_Gateway.ino:58] setup(): setup start
[  1011][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4202d114
[  1012][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 0 0 0 0 0 0 ]
Section type: 3; size: 0
storedCRC 0, CRC calc 65535
LittleFsConfig: config file doesn't exist
LittleFsConfig: config file size 90
LittleFsConfig: initializing storage from file...
LittleFsConfig: init result 1
[  1070][I][Z2S_Devices_Table.cpp:75] Z2S_loadDevicesTable(): before get devices table
[  1095][I][Z2S_Devices_Table.cpp:110] Z2S_loadDevicesTable(): Devices table load success!
[  1096][I][Z2S_Devices_Table.cpp:136] Z2S_initSuplaChannels(): iintSuplaChannels starting
[  1096][D][ZigbeeCore.cpp:85] addEndpoint(): Endpoint: 1, Device ID: 0x0050
[  1097][I][Z2S_Gateway.ino:116] setup(): before SuplaDevice begin
Supla - starting initialization (platform 0)
Config incomplete: missing Wi-Fi SSID
LAST STATE ADDED: Missing Wi-Fi SSID
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing Wi-Fi password
LAST STATE ADDED: Missing Wi-Fi password
Config incomplete: missing server
Config incomplete: missing email
Security level: Supla CA
Validating storage state section with current device configuration
Storage state section validation successful
Config incomplete: deviceMode = CONFIG
LAST STATE ADDED: Missing server address
Current status: [3] Missing server address
LAST STATE ADDED: Missing email address
Current status: [32] Missing email address
GUID: 927B6B4C9194EEBC5395A75F432C4695
Device name: Zigbee to Supla
Device software version: SDK 24.11.04-dev
Initializing network layer
[Wi-Fi] Network AP/hostname: ZIGBEE-TO-SUPLA-54320432FD58
Using Supla protocol version 23
Current status: [5] SuplaDevice initialized
Wi-Fi SSID missing
WiFi: enter config mode with SSID: "ZIGBEE-TO-SUPLA-54320432FD58"
[  1108][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 9 - WIFI_READY
[  1178][V][AP.cpp:106] _onApEvent(): AP Started
[  1178][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 19 - AP_START
[  1178][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 19 - AP_START
Starting local web server
LAST STATE ADDED: Config mode
Current status: [40] Config mode
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
------------------------------------------
  Total Size        :   403772 B ( 394.3 KB)
  Free Bytes        :   313260 B ( 305.9 KB)
  Allocated Bytes   :    77664 B (  75.8 KB)
  Minimum Free Bytes:   312648 B ( 305.3 KB)
  Largest Free Block:   294900 B ( 288.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------  
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  2329][V][AP.cpp:123] _onApEvent(): AP Station Connected: MAC: 24:ee:9a:65:0f:db, AID: 1
[  2330][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 21 - AP_STACONNECTED
[  2331][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 21 - AP_STACONNECTED
[  2347][V][NetworkInterface.cpp:146] _onIpEvent(): ap Assigned IP: 192.168.4.2 to MAC: 24:EE:9A:65:0F:DB
[  2347][V][NetworkEvents.cpp:119] checkForEvent(): Network Event: 23 - AP_STAIPASSIGNED
[  2348][V][AP.cpp:88] _onApArduinoEvent(): Arduino AP Event: 23 - AP_STAIPASSIGNED



Zrobiłeś to, co napisałem? Jak nie na telefonie, to na komputerze (i na odwrót).
Wszystko wygląda ok. Powinieneś móc zalogować się do sieci ZIGBEE-TO-SUPLA-54320432FD58 i wejść przez adres 192.168.4.1 - poustawiać wszystko (dane do sieci i Supli).
@andras

A zobacz ta linijkę, po mojemu to trzeba by zobaczyć adres 2 a nie 1 [ 2347][V][NetworkInterface.cpp:146] _onIpEvent(): ap Assigned IP: 192.168.4.2 to MAC: 24:EE:9A:65:0F:DB
Warto spróbować, ale zrozumiałem, że Kolega @andras nie potrafi zalogować się do sieci rozgłaszanej przez bramkę. W każdym razie nie zaszkodzi. @andras - jeśli połączysz się z siecią ZIGBEE-TO-SUPLA-54320432FD58 to spróbuj wbić się na 192.168.4.2
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036
andras
Posts: 636
Joined: Fri Dec 30, 2016 5:51 pm
Has thanked: 2 times
Been thanked: 4 times

Post

Z siecią ZIGBEE-TO-SUPLA-54320432FD58 się łącze , ale nie wchodzi na 192.168.4.1 na 192.168.4.2 też po chwili się resetuje i przechodzi na moją domową sieć .
Próbowałem też n a telefonie robi to samo . Zawsze przed wgraniem robię erase :(
Mam bina od Zibi_007 którego robił na moje dane i ten wgrany na tą płytkę czasami dodaje się do clouda ale i tak nic nie można z urządzeń dodać , a po czasie się rozłącza z clouda . Więc chyba coś z tą płytką .

Return to “Bramka ZigBee”