Nie znam się, czy ten moduł będzie działać z bramką ?

Moderator: vajera

User avatar
Jureq
Posts: 71
Joined: Wed Aug 15, 2018 6:42 am
Location: SE Poland

Post

Dla Was to zapewne proste ale dla mnie nie do końca, zapragnąłem pabawić się w ZigBee a mam taki moduł C6:
Sec8ae6bfc9f74bb598d5d5b5f11b847dM.jpg
Wgrywam do niego skaner: https://github.com/lsroka76/Z2S_Library ... merged.bin

i mam taki log :

Code: Select all

ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x15 (USB_UART_HPSYS),boot:0x6f (SPI_FAST_FLASH_BOOT)
Saved PC:0x408054de
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875730,len:0x12e0
load:0x4086b910,len:0xdc8
load:0x4086e610,len:0x3180
entry 0x4086b910
[     1][V][ZigbeeEP.cpp:22] ZigbeeEP(): Endpoint: 1
[    14][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4201446e
[    26][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x4081abfc
[    36][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4201446e
[    48][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x4081abfc
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.02
  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        :   383212 B ( 374.2 KB)
  Free Bytes        :   326028 B ( 318.4 KB)
  Allocated Bytes   :    44296 B (  43.3 KB)
  Minimum Free Bytes:   326028 B ( 318.4 KB)
  Largest Free Block:   311284 B ( 304.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         : 80 MHz
  Flash Frequency   : 80 MHz (source: 80 MHz, divider: 1)
  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 : Mar 12 2026 18:37:37
  Compile Host OS   : linux
  ESP-IDF Version   : v5.5.2-249-gf56bea3d1f
  Arduino Version   : 3.3.6
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:PartitionScheme=custom,ZigbeeMode=zczr,DebugLevel=verbose,CDCOnBoot=cdc
============ Before Setup End ============
[   170][V][esp32-hal-periman.c:251] perimanClearBusDeinit(): Deinit function for type UART_RX (2) cleared
[   170][V][esp32-hal-periman.c:251] perimanClearBusDeinit(): Deinit function for type UART_TX (3) cleared
[   171][V][esp32-hal-periman.c:251] perimanClearBusDeinit(): Deinit function for type UART_CTS (4) cleared
[   171][V][esp32-hal-periman.c:251] perimanClearBusDeinit(): Deinit function for type UART_RTS (5) cleared
[   172][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x408167c8
[   172][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x4201911a
[   173][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x408167c8
[   174][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42018fe0
[   174][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x420163b2
[   175][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[   176][D][ZigbeeCore.cpp:99] addEndpoint(): Endpoint: 1, Device ID: 0x0050
[   176][D][ZigbeeCore.cpp:182] zigbeeInit(): Initialize Zigbee stack
[   218][D][ZigbeeCore.cpp:189] zigbeeInit(): Register all Zigbee EPs in list
[   225][I][ZigbeeCore.cpp:197] zigbeeInit(): List of registered Zigbee EPs:
[   225][I][ZigbeeCore.cpp:201] zigbeeInit(): Device type: Home Gateway, Endpoint: 1, Device ID: 0x0050
[   232][V][ZigbeeCore.cpp:503] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   233][I][ZigbeeCore.cpp:306] esp_zb_app_signal_handler(): Zigbee stack initialized
[   237][I][ZigbeeCore.cpp:453] esp_zb_app_signal_handler(): Network(0xee0e) closed, devices joining not allowed.
[   238][I][ZigbeeCore.cpp:312] esp_zb_app_signal_handler(): Device started up in non factory-reset mode
[   238][I][ZigbeeCore.cpp:325] esp_zb_app_signal_handler(): Device rebooted
[   239][I][ZigbeeCore.cpp:329] esp_zb_app_signal_handler(): Opening network for joining for 180 seconds
[   239][D][ZigbeeCore.cpp:678] searchBindings(): Requesting binding table for address 0x0000
[   240][D][ZigbeeCore.cpp:515] zb_apsde_data_indication_handler(): APSDE INDICATION - Received APSDE-DATA indication, status: 0
[   241][D][ZigbeeCore.cpp:519] zb_apsde_data_indication_handler(): APSDE INDICATION - dst_endpoint: 0, src_endpoint: 0, dst_addr_mode: 255

APSDE INDICATION - src_addr_mode: 22, cluster_id: 0x0033, asdu_length: 2

APSDE INDICATION - dst_short_addr: 0x0000, src_short_addr: 0x0000

APSDE INDICATION - profile_id: 0x0000, security_status: 0, lqi: 0, rx_time: 0
[   243][D][ZigbeeCore.cpp:515] zb_apsde_data_indication_handler(): APSDE INDICATION - Received APSDE-DATA indication, status: 0
[   243][D][ZigbeeCore.cpp:519] zb_apsde_data_indication_handler(): APSDE INDICATION - dst_endpoint: 0, src_endpoint: 0, dst_addr_mode: 255

APSDE INDICATION - src_addr_mode: 0, cluster_id: 0x8033, asdu_length: 5

APSDE INDICATION - dst_short_addr: 0x0000, src_short_addr: 0x0000

APSDE INDICATION - profile_id: 0x0000, security_status: 0, lqi: 0, rx_time: 0
[   245][D][ZigbeeCore.cpp:607] bindingTableCb(): Binding table callback for address 0x0000 with status 0
[   246][D][ZigbeeCore.cpp:610] bindingTableCb(): Binding table info: total 0, index 0, count 0
[   246][D][ZigbeeCore.cpp:616] bindingTableCb(): No binding table entries found
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   383212 B ( 374.2 KB)
  Free Bytes        :   279424 B ( 272.9 KB)
  Allocated Bytes   :    92460 B (  90.3 KB)
  Minimum Free Bytes:   277080 B ( 270.6 KB)
  Largest Free Block:   262132 B ( 256.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 =============
[   707][I][ZigbeeCore.cpp:447] esp_zb_app_signal_handler(): Network(0xee0e) is open for 180 seconds
[   708][I][ZigbeeCore.cpp:450] esp_zb_app_signal_handler(): channel 20
[180707][I][ZigbeeCore.cpp:453] esp_zb_app_signal_handler(): Network(0xee0e) closed, devices joining not allowed.
Po wgraniu kodu: https://github.com/lsroka76/Z2S_Library ... ersion.bin
mam tylko tyle:

Code: Select all

SP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x15 (USB_UART_HPSYS),boot:0x6f (SPI_FAST_FLASH_BOOT)
Saved PC:0x4080086c
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875730,len:0x12e0
load:0x4086b910,len:0xdc8
load:0x4086e610,len:0x3180
entry 0x4086b910
E (554) esp_littlefs: ./managed_components/joltwallet__littlefs/src/littlefs/lfs.c:1382:error: Corrupted dir pair at {0x0, 0x1}

E (554) esp_littlefs: mount failed,  (-84)
E (558) esp_littlefs: Failed to initialize LittleFS
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x15 (USB_UART_HPSYS),boot:0x6f (SPI_FAST_FLASH_BOOT)
Saved PC:0x40030cde
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875730,len:0x12e0
load:0x4086b910,len:0xdc8
load:0x4086e610,len:0x3180
entry 0x4086b910
To wina tego modułu czy ja coś źle wgrywam.
You do not have the required permissions to view the files attached to this post.
kiler88
Posts: 339
Joined: Sun Jun 21, 2020 10:55 am
Been thanked: 1 time

Post

Nie znam się, ale zrobiłeś erase przed wgraniem full_version?

Edit:
Żart był niezamierzony, poważnie pytam, czy wyczyściłeś pamięć przed wgraniem innej wersji.
User avatar
Jureq
Posts: 71
Joined: Wed Aug 15, 2018 6:42 am
Location: SE Poland

Post

kiler88 wrote: Fri Mar 13, 2026 10:30 am Nie znam się, ale zrobiłeś erase przed wgraniem full_version?

Edit:
Żart był niezamierzony, poważnie pytam, czy wyczyściłeś pamięć przed wgraniem innej wersji.
Fakt, napisałem że się nie znam ale nie sugerowałem że jestem "totalnym lajkonikiem" :mrgreen: bawię się od bardzo dawna nie tylko w Suplę i mam za soba killkaset zaprogramowanych układów ESP więc to nie problem erase.
kiler88
Posts: 339
Joined: Sun Jun 21, 2020 10:55 am
Been thanked: 1 time

Post

Więc to może wina egzotycznej płytki, mnie od razu zdziwiło:
You do not have the required permissions to view the files attached to this post.
zzrr
Posts: 1864
Joined: Wed Oct 26, 2022 7:35 pm
Has thanked: 76 times
Been thanked: 119 times

Post

Jureq wrote: Fri Mar 13, 2026 10:20 am ....

To wina tego modułu czy ja coś źle wgrywam.
Wygląda to jak byś miał zły schemat partycji przy wgrywaniu zachowany. Przed wgraniem Full musisz zrobić Erase całości. Bez tego stare dane partycji sie nie zmieniają mimo że to full. Tak jak Ci podpowiedział @kiler88. Właśnie czasami jak się coś robi już wcześniej 100 razy to się wtedy robi błędy. Sam tak mam. Więc napisz... robiłem Erase i nie pomogło, albo zrób :) ;)
User avatar
Jureq
Posts: 71
Joined: Wed Aug 15, 2018 6:42 am
Location: SE Poland

Post

Zrzut ekranu 2026-03-13 115457.png
You do not have the required permissions to view the files attached to this post.
zzrr
Posts: 1864
Joined: Wed Oct 26, 2022 7:35 pm
Has thanked: 76 times
Been thanked: 119 times

Post

@Jureq no i jeszcze tak na wszelki wypadek ale to raczej obstawiam że wiesz. Merge wgrywasz od 0x000. Tak?
User avatar
Jureq
Posts: 71
Joined: Wed Aug 15, 2018 6:42 am
Location: SE Poland

Post

zzrr wrote: Fri Mar 13, 2026 10:54 am
Jureq wrote: Fri Mar 13, 2026 10:20 am ....

To wina tego modułu czy ja coś źle wgrywam.
Wygląda to jak byś miał zły schemat partycji przy wgrywaniu zachowany. Przed wgraniem Full musisz zrobić Erase całości. Bez tego stare dane partycji sie nie zmieniają mimo że to full. Tak jak Ci podpowiedział @kiler88. Właśnie czasami jak się coś robi już wcześniej 100 razy to się wtedy robi błędy. Sam tak mam. Więc napisz... robiłem Erase i nie pomogło, albo zrób :) ;)
zawsze wgrywając inny soft robię erase flash, wgrywane pod 0x0 ale możliwie że to wina flashera online https://espressif.github.io/esptool-js/
zzrr
Posts: 1864
Joined: Wed Oct 26, 2022 7:35 pm
Has thanked: 76 times
Been thanked: 119 times

Post

Jureq wrote: Fri Mar 13, 2026 11:03 am ...

zawsze wgrywając inny soft robię erase flash, wgrywane pod 0x0 ale możliwie że to wina flashera online https://espressif.github.io/esptool-js/
wgrywaj normalnym flash_download_tool. Z nim nie ma żadnych problemów
User avatar
Jureq
Posts: 71
Joined: Wed Aug 15, 2018 6:42 am
Location: SE Poland

Post

faktycznie, pobrałem https://github.com/Jason2866/ESP_Flashe ... lasher.exe i pomogło ... :roll:

Return to “Bramka ZigBee”