Dyskusja ogólna [bramka Zigbee]

Moderator: vajera

local
Posts: 545
Joined: Mon Jan 27, 2020 11:33 am

Post

vajera wrote: Fri Jan 03, 2025 9:12 pm USB CDC on Boot enabled (rozumiem, że wgrywasz przez kabel USB?)
Erase flash enabled.
Ok wgrywa się ale po ustawieniu .direction = ESP_ZB_ZCL_REPORT_DIRECTION_SEND, inaczej wyrzuca błąd.
Logi mam takie:

Code: Select all

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:0x40875720,len:0x1228
load:0x4086c110,len:0xd9c
load:0x4086e610,len:0x2f74
entry 0x4086c110
Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x40031c8a  RA      : 0x4080e0a8  SP      : 0x408201a0  GP      : 0x4080f914  
TP      : 0x40820460  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130  
S0/FP   : 0x00000001  S1      : 0x00000011  A0      : 0x00000000  A1      : 0xffffffff  
A2      : 0x00000001  A3      : 0x7f7f7f7f  A4      : 0x00000000  A5      : 0x00000004  
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x000000b6  S3      : 0x408201d0  
S4      : 0x408201e8  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000005  MTVAL   : 0x00000000  
MHARTID : 0x00000000  

Stack memory:
408201a0: 0x00000001 0x00000804 0x0000005c 0x00000000 0x00000000 0x00000000 0x40826588 0x40800030
408201c0: 0x00000804 0x40811128....

Rebooting...
4xShelly 1, Shelly 1L, 2xShelly 2.5, Sonoff T3, 2xSonoff Basic R2, 4xNeo 16A
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: Fri Jan 03, 2025 4:25 pm @Zibi_007

1. Ten przycisk x4 ma 4 endpointy, ja zrobiłem binding tylko do jednego póki co, więc sprawdź w wolnej chwili, który to i jaki jest czas reakcji (wyśle cmd na klastrze 0x6).

2. gniazdko z pomiarem prądu - czy możesz sparować je z softem a później zresetować ZC i wrzucić odczyt z binding_table - zależy mi na informacji, jakie klastry się zbindowane.
Ad.1.

Nie reaguje na żaden przycisk. Po sparowaniu wyświetla co pewien czas w kółko:

Code: Select all

23:21:58.593> [196978][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x0) callback
23:21:58.593> 
23:21:58.593> [196979][V][ZigbeeHandlers.cpp:42] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x6), attribute(0x0), data s
23:21:58.593> ize(1)
23:21:58.593> 
23:21:59.655> [198034][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x0) callback
23:21:59.655> 
23:21:59.655> [198034][V][ZigbeeHandlers.cpp:42] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x6), attribute(0x0), data s
23:21:59.655> ize(1)
23:21:59.655> 
23:22:03.624> [202001][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x0) callback
23:22:03.624> 
23:22:03.624> [202002][V][ZigbeeHandlers.cpp:42] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x6), attribute(0x0), data s
23:22:03.624> ize(1)
23:22:03.624> 
23:22:04.936> [203320][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x0) callback
23:22:04.936> 
23:22:04.936> [203320][V][ZigbeeHandlers.cpp:42] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x6), attribute(0x0), data s
23:22:04.936> ize(1)
23:22:04.936> 

Ad.2.
Gniazdko po sparowaniu i resecie (przez boot) pokazuje tylko coś takiego:

Code: Select all

23:11:47.527> [ 86879][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x2735) is open for 180 seconds
23:11:47.527> 
23:12:23.340> [122689][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
23:12:23.340> 
23:12:23.340> [122690][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:12:23.340> 
23:12:23.340> [122690][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:12:23.340> 
23:12:23.340> [122691][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:12:23.340> 
23:12:23.340> [122692][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:12:23.340> 
23:12:23.340> [122692][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:12:23.340> 
23:12:23.340> [122693][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:12:23.340> 
23:12:23.340> [122693][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:12:23.340> 
23:12:57.967> [157330][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:12:57.967> 
23:12:57.967> [157331][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x91c5) src endpoint(1) to dst e
23:12:57.967> ndpoint(1) cluster(0x6)
23:12:57.967> 
23:12:57.967> [157331][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:12:57.967> 
23:12:57.967> [157332][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:12:57.967> 
23:12:59.478> [158841][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:12:59.478> 
23:12:59.478> [158841][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x91c5) src endpoint(1) to dst e
23:12:59.478> ndpoint(1) cluster(0x6)
23:12:59.479> 
23:12:59.479> [158842][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:12:59.479> 
23:12:59.479> [158842][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:12:59.480> 
23:13:23.375> [182743][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
23:13:23.375> 
23:13:23.375> [182744][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:13:23.375> 
23:13:23.506> [182745][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:13:23.506> 
23:13:23.506> [182745][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:13:23.506> 
23:13:23.506> [182746][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:13:23.506> 
23:13:23.506> [182746][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:13:23.506> 
23:13:23.506> [182747][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x91c5
23:13:23.506> 
23:13:23.506> [182748][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:13:23.506> 
23:13:25.822> [185182][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:13:25.822> 
23:13:25.822> [185183][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x91c5) src endpoint(1) to dst e
23:13:25.823> ndpoint(1) cluster(0x6)
23:13:25.823> 
23:13:25.823> [185183][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:13:25.823> 
23:13:25.823> [185184][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:13:25.824> 
23:13:27.277> [186632][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:13:27.277> 
23:13:27.277> [186633][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x91c5) src endpoint(1) to dst e
23:13:27.277> ndpoint(1) cluster(0x6)
23:13:27.277> 
23:13:27.277> [186633][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:13:27.277> 
23:13:27.277> [186634][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:13:27.277> 
Ostatnie linie, to reakcja na przycisk (włącz/wyłącz).
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

Teraz widzę, że zmieniłeś coś jeszcze w kodzie. Ściągnąłem aktualne wersje plików. Po podmianie ZigbeeHandlers.cpp nie kompiluje się. Po powrocie do poprzedniej wersji normalnie się wgrywa, ale efekt, jak wyżej...
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
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@Zibi_007 Miałem na myśli scenariusz, w którym parujesz urządzenie z C6 a później resetujesz bramkę a nie gniazdko.
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
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

local wrote: Fri Jan 03, 2025 8:45 pm
Zibi_007 wrote: Fri Jan 03, 2025 7:47 pm
[email protected] wrote: Fri Jan 03, 2025 7:11 pm

Masz układ partycji niezgodny z zigbee . Po ustawieniu tak jak w Arduino ide byłem w stanie wgrać kod z githuba
Właśnie wgrałem gotowy .bin z mojego poprzedniego posta na "dziewiczy" C6 (N4). Poszło bez problemu i działa. Ten .bin (4MB) wgrany od 0x0 nadpisuje wszystko. Razem z partycjami. Tak myślę, no chyba, że się mylę, to proszę mnie uświadomić. W temacie ESP jestem raczej początkujący.
Jak skonfigurować pod ESP32-C6 N16 ?

ide_c6.png
Jeszcze core debug level na verbose.
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

vajera wrote: Fri Jan 03, 2025 10:44 pm @Zibi_007 Miałem na myśli scenariusz, w którym parujesz urządzenie z C6 a później resetujesz bramkę a nie gniazdko.
No i tak właśnie zrobiłem. Reset bramki przez naciśnięcie krótko boot, bo jak wcisnę RST, to nic nie widzi i na nic nie reaguje.
Tutaj pełen log:

Code: Select all

23:45:31.421> [  3518][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x709f) is open for 180 seconds
23:45:31.421> 
23:45:31.421> [  3520][I][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Network steering started
23:45:31.421> 
23:45:50.134> [ 22311][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: NWK Device Associated (0x12), status: ESP_OK
23:45:50.134> 
23:45:50.134> [ 22313][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Update (0x30), status: ESP_OK
23:45:50.134> 
23:45:50.281> [ 22389][I][ZigbeeCore.cpp:299] esp_zb_app_signal_handler(): New device commissioned or rejoined (short: 0x48ae)
23:45:50.281> 
23:45:50.281> [ 22389][V][ZigbeeCore.cpp:303] esp_zb_app_signal_handler(): Device capabilities: 0x8e
23:45:50.281> 
23:45:50.281> [ 22394][I][ZigbeeCore.cpp:299] esp_zb_app_signal_handler(): New device commissioned or rejoined (short: 0x48ae)
23:45:50.281> 
23:45:50.281> [ 22394][V][ZigbeeCore.cpp:303] esp_zb_app_signal_handler(): Device capabilities: 0x8e
23:45:50.281> 
23:45:50.507> [ 22480][I][ZigbeeGateway.cpp:91] find_Cb(): Found sensor
23:45:50.507> 
23:45:50.507> [ 22481][D][ZigbeeGateway.cpp:100] find_Cb(): Sensor found: short address(0x48ae), endpoint(1)
23:45:50.507> 
23:45:50.508> [ 22505][I][ZigbeeGateway.cpp:91] find_Cb(): Found sensor
23:45:50.508> 
23:45:50.508> [ 22505][D][ZigbeeGateway.cpp:100] find_Cb(): Sensor found: short address(0x48ae), endpoint(1)
23:45:50.508> 
23:45:50.508> [ 22570][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:45:50.508> 
23:45:50.509> [ 22571][I][ZigbeeGateway.cpp:166] printJoinedDevices(): Device on endpoint 1, short address: 0x48ae
23:45:50.509> 
23:45:50.509> [ 22571][I][ZigbeeGateway.cpp:166] printJoinedDevices(): Device on endpoint 1, short address: 0x48ae
23:45:50.509> 
23:45:50.509> [ 22572][D][Zigbee_Gateway_2.ino:161] loop(): getJoinedDEvices 0 1 357913941 before
23:45:50.510> 
23:45:50.510> [ 22573][D][Zigbee_Gateway_2.ino:164] loop(): getJoinedDEvices 0 1 357913941 after
23:45:50.510> 
23:45:50.510> [ 22573][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:45:50.510> 
23:45:50.510> [ 22574][I][ZigbeeGateway.cpp:166] printJoinedDevices(): Device on endpoint 1, short address: 0x48ae
23:45:50.510> 
23:45:50.510> [ 22612][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x1000) callback
23:45:50.510> 
23:45:50.511> [ 22612][V][ZigbeeHandlers.cpp:87] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x48ae) src endpoint(1) 
23:45:50.511> to dst endpoint(1) cluster(0x0)
23:45:50.511> 
23:45:50.511> [ 22613][V][ZigbeeHandlers.cpp:96] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x
23:45:50.511> 4), type(0x42), value(16)
23:45:50.511> 
23:45:50.511> [ 22614][I][ZigbeeEP.cpp:223] zbReadBasicCluster(): Peer Manufacturer is "_TZ3000_5f43h46b"
23:45:50.511> 
23:45:50.511> [ 22574][I][Zigbee_Gateway_2.ino:167] loop(): manufacturer _TZ3000_5f43h46b 
23:45:50.511> 
23:45:50.511> [ 22660][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x1000) callback
23:45:50.511> 
23:45:50.511> [ 22661][V][ZigbeeHandlers.cpp:87] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x48ae) src endpoint(1) 
23:45:50.511> to dst endpoint(1) cluster(0x0)
23:45:50.511> 
23:45:50.511> [ 22661][V][ZigbeeHandlers.cpp:96] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x
23:45:50.511> 5), type(0x42), value(6)
23:45:50.511> 
23:45:50.511> [ 22662][I][ZigbeeEP.cpp:232] zbReadBasicCluster(): Peer Model is "TS011F"
23:45:50.511> 
23:45:50.511> [ 22664][I][Zigbee_Gateway_2.ino:169] loop(): model TS011F 
23:45:50.512> 
23:45:50.512> [ 22664][D][ZigbeeGateway.cpp:112] bindDeviceCluster(): Request sensor to bind us
23:45:50.512> 
23:45:50.512> [ 22665][D][ZigbeeGateway.cpp:112] bindDeviceCluster(): Request sensor to bind us
23:45:50.512> 
23:45:50.512> [ 22665][D][ZigbeeGateway.cpp:112] bindDeviceCluster(): Request sensor to bind us
23:45:50.512> 
23:45:50.512> [ 22675][V][ZigbeeGateway.cpp:73] bindCb(): Binding success (ZC side)
23:45:50.512> 
23:45:50.512> [ 22675][V][ZigbeeGateway.cpp:73] bindCb(): Binding success (ZC side)
23:45:50.512> 
23:45:50.512> [ 22675][V][ZigbeeGateway.cpp:73] bindCb(): Binding success (ZC side)
23:45:50.512> 
23:45:50.512> [ 22676][D][Zigbee_Gateway_2.ino:161] loop(): getJoinedDEvices 1 0 357913941 before
23:45:50.512> 
23:45:50.512> [ 22677][D][Zigbee_Gateway_2.ino:164] loop(): getJoinedDEvices 1 0 357913941 after
23:45:50.512> 
23:45:50.512> [ 22677][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:45:50.512> 
23:45:52.381> [ 22782][V][ZigbeeGateway.cpp:75] bindCb(): Binding success (ED side
23:45:52.381> 
23:45:52.381> [ 22817][V][ZigbeeGateway.cpp:75] bindCb(): Binding success (ED side
23:45:52.381> 
23:45:52.381> [ 22861][V][ZigbeeGateway.cpp:75] bindCb(): Binding success (ED side
23:45:52.381> 
23:45:52.381> [ 22897][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x1000) callback
23:45:52.381> 
23:45:52.381> [ 22897][V][ZigbeeHandlers.cpp:87] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x48ae) src endpoint(1) 
23:45:52.381> to dst endpoint(1) cluster(0x0)
23:45:52.381> 
23:45:52.381> [ 22898][V][ZigbeeHandlers.cpp:96] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x
23:45:52.381> 4), type(0x42), value(16)
23:45:52.381> 
23:45:52.381> [ 22899][I][ZigbeeEP.cpp:223] zbReadBasicCluster(): Peer Manufacturer is "_TZ3000_5f43h46b"
23:45:52.381> 
23:45:52.381> [ 22679][I][Zigbee_Gateway_2.ino:167] loop(): manufacturer _TZ3000_5f43h46b 
23:45:52.381> 
23:45:52.381> [ 23018][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x1000) callback
23:45:52.381> 
23:45:52.381> [ 23018][V][ZigbeeHandlers.cpp:87] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x48ae) src endpoint(1) 
23:45:52.381> to dst endpoint(1) cluster(0x0)
23:45:52.381> 
23:45:52.382> [ 23019][V][ZigbeeHandlers.cpp:96] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x
23:45:52.382> 5), type(0x42), value(6)
23:45:52.382> 
23:45:52.382> [ 23019][I][ZigbeeEP.cpp:232] zbReadBasicCluster(): Peer Model is "TS011F"
23:45:52.382> 
23:45:52.382> [ 23022][I][Zigbee_Gateway_2.ino:169] loop(): model TS011F 
23:45:52.382> 
23:45:52.382> [ 23022][D][ZigbeeGateway.cpp:112] bindDeviceCluster(): Request sensor to bind us
23:45:52.382> 
23:45:52.382> [ 23023][D][ZigbeeGateway.cpp:112] bindDeviceCluster(): Request sensor to bind us
23:45:52.382> 
23:45:52.382> [ 23023][D][ZigbeeGateway.cpp:112] bindDeviceCluster(): Request sensor to bind us
23:45:52.382> 
23:45:52.382> [ 23033][V][ZigbeeGateway.cpp:73] bindCb(): Binding success (ZC side)
23:45:52.382> 
23:45:52.382> [ 23033][V][ZigbeeGateway.cpp:73] bindCb(): Binding success (ZC side)
23:45:52.382> 
23:45:52.382> [ 23033][V][ZigbeeGateway.cpp:73] bindCb(): Binding success (ZC side)
23:45:52.382> 
23:45:52.382> [ 23096][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Authorized (0x2f), status: ESP_OK
23:45:52.382> 
23:45:52.382> [ 23152][V][ZigbeeGateway.cpp:75] bindCb(): Binding success (ED side
23:45:52.382> 
23:45:52.382> [ 23213][V][ZigbeeGateway.cpp:75] bindCb(): Binding success (ED side
23:45:52.382> 
23:45:52.382> [ 23224][V][ZigbeeGateway.cpp:75] bindCb(): Binding success (ED side
23:45:52.382> 
23:45:52.382> [ 23264][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x709f) is open for 180 seconds
23:45:52.382> 
23:45:56.902> [ 29068][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:45:56.902> 
23:45:56.902> [ 29068][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x48ae) src endpoint(1) to dst e
23:45:56.902> ndpoint(1) cluster(0x6)
23:45:56.902> 
23:45:56.902> [ 29069][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:45:56.902> 
23:45:56.902> [ 29069][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:45:56.902> 
23:45:56.902> [ 29074][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:45:56.902> 
23:45:56.902> [ 29074][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x48ae) src endpoint(1) to dst e
23:45:56.902> ndpoint(1) cluster(0xe001)
23:45:56.902> 
23:45:56.902> [ 29075][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 57345 
23:45:56.902> 
23:45:56.902> [ 29075][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 53264 
23:45:56.902> 
23:45:56.902> [ 29080][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:45:56.902> 
23:45:56.902> [ 29081][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x48ae) src endpoint(1) to dst e
23:45:56.903> ndpoint(1) cluster(0xe001)
23:45:56.903> 
23:45:56.903> [ 29081][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 57345 
23:45:56.903> 
23:45:56.903> [ 29082][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 53296 
23:45:56.903> 
23:46:00.532> [ 32702][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
23:46:00.532> 
23:46:28.704> [ 60629][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
23:46:28.704> 
23:46:28.704> [ 60630][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:46:28.704> 
23:46:28.704> [ 60630][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:46:28.704> 
23:46:28.704> [ 60631][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:46:28.704> 
23:46:28.704> [ 60632][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:46:28.704> 
23:46:28.704> [ 60632][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:46:28.704> 
23:46:28.704> [ 60633][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:46:28.704> 
23:46:28.704> [ 60633][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:46:28.704> 
23:47:28.508> [120683][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
23:47:28.508> 
23:47:28.508> [120684][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:47:28.508> 
23:47:28.508> [120684][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:47:28.508> 
23:47:28.508> [120685][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:47:28.508> 
23:47:28.508> [120686][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:47:28.508> 
23:47:28.508> [120686][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:47:28.508> 
23:47:28.508> [120687][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:47:28.508> 
23:47:28.508> [120687][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:47:28.508> 
23:48:08.123> [160287][V][ZigbeeCore.cpp:200] openNetwork(): Opening network for joining for 180 seconds
23:48:08.123> 
23:48:08.210> [160371][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x709f) is open for 180 seconds
23:48:08.210> 
23:48:22.698> [174876][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:48:22.698> 
23:48:22.698> [174877][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x48ae) src endpoint(1) to dst e
23:48:22.698> ndpoint(1) cluster(0x6)
23:48:22.698> 
23:48:22.698> [174877][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:48:22.698> 
23:48:22.698> [174878][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:48:22.698> 
23:48:24.496> [176671][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
23:48:24.496> 
23:48:24.496> [176671][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x48ae) src endpoint(1) to dst e
23:48:24.496> ndpoint(1) cluster(0x6)
23:48:24.496> 
23:48:24.497> [176672][I][ZigbeeGateway.cpp:174] zbAttributeRead(): cluster_id 6 
23:48:24.497> 
23:48:24.497> [176672][I][ZigbeeGateway.cpp:175] zbAttributeRead(): attribute->id 0 
23:48:24.497> 
23:48:28.563> [180737][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
23:48:28.563> 
23:48:28.563> [180738][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:48:28.563> 
23:48:28.563> [180738][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:48:28.563> 
23:48:28.563> [180739][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:48:28.563> 
23:48:28.564> [180740][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:48:28.564> 
23:48:28.564> [180740][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:48:28.564> 
23:48:28.564> [180741][I][ZigbeeGateway.cpp:157] printGatewayDevices(): Device on endpoint 1, short address: 0x48ae
23:48:28.564> 
23:48:28.564> [180742][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
23:48:28.564> 
O 23:48:08 masz reset bramki (przez boot). Chyba, że mam to jeszcze jakoś inaczej zrobić, to nie ma sprawy. Napisz tylko jak.
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
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@Zibi_007 zmieniłem fragment kodu w ZigbeeHandlers, ZigbeeEP.h (katalog lib) i w ZigbeeGateway.h+cpp, ale znowu z komórki, więc mogłem coś zamieszać. Ten kod jest na przyszłość, więc do poniższego testu nie jest niezbędny.

To inaczej - skompiluj kod z core debug level Verbose, powiąż czujnik z bramką a później nie ruszając czujnika odetnij na kilka sekund zasilanie od bramki i uruchom ją pomownie pod kontrolą Serial Monitor.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

Zibi_007 wrote: Fri Jan 03, 2025 1:44 pm
lukasz06 wrote: Fri Jan 03, 2025 1:08 pm Ja mam taki procek
https://a.aliexpress.com/_EQl22cY
Wgraj mojego bina i sprawdź czy zadziała. Minuta i będziesz wiedział.
Wgrałem, logi są poprawne, niestety czujnika Xiaomi ( przerobiony soft z bt na zigbee) nie znalazł

Code: Select all

[/code
]00:01:27.577 -> zbInit
00:01:27.577 -> [   611][D][ZigbeeCore.cpp:124] zigbeeInit(): Initialize Zigbee stack
00:01:27.671 -> [   692][D][ZigbeeCore.cpp:131] zigbeeInit(): Register all Zigbee EPs in list
00:01:27.671 -> [   694][I][ZigbeeCore.cpp:139] zigbeeInit(): List of registered Zigbee EPs:
00:01:27.671 -> [   695][I][ZigbeeCore.cpp:141] zigbeeInit(): Device type: Home Gateway, Endpoint: 1, Device ID: 0x0050
00:01:27.671 -> [   698][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
00:01:27.671 -> [   699][I][ZigbeeCore.cpp:220] esp_zb_app_signal_handler(): Zigbee stack initialized
00:01:27.671 -> [   701][I][ZigbeeCore.cpp:226] esp_zb_app_signal_handler(): Device started up in  factory-reset mode
00:01:27.671 -> [   701][I][ZigbeeCore.cpp:230] esp_zb_app_signal_handler(): Start network formation
00:01:30.044 -> [  3069][I][ZigbeeCore.cpp:329] esp_zb_app_signal_handler(): Network(0x37b4) closed, devices joining not allowed.
00:01:30.044 -> [  3070][I][ZigbeeCore.cpp:261] esp_zb_app_signal_handler(): Formed network successfully (Extended PAN ID: 54:32:04:ff:fe:33:53:58, PAN ID: 0x37b4, Channel:15, Short Address: 0x0000)
00:01:30.512 -> [  3539][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x37b4) is open for 180 seconds
00:01:30.512 -> [  3540][I][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Network steering started
00:02:27.628 -> [ 60685][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
00:02:27.628 -> [ 60686][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

lukasz06 wrote: Fri Jan 03, 2025 11:29 pm
Zibi_007 wrote: Fri Jan 03, 2025 1:44 pm
lukasz06 wrote: Fri Jan 03, 2025 1:08 pm Ja mam taki procek
https://a.aliexpress.com/_EQl22cY
Wgraj mojego bina i sprawdź czy zadziała. Minuta i będziesz wiedział.
Wgrałem, logi są poprawne, niestety czujnika Xiaomi ( przerobiony soft z bt na zigbee) nie znalazł

Code: Select all

[/code
]00:01:27.577 -> zbInit
00:01:27.577 -> [   611][D][ZigbeeCore.cpp:124] zigbeeInit(): Initialize Zigbee stack
00:01:27.671 -> [   692][D][ZigbeeCore.cpp:131] zigbeeInit(): Register all Zigbee EPs in list
00:01:27.671 -> [   694][I][ZigbeeCore.cpp:139] zigbeeInit(): List of registered Zigbee EPs:
00:01:27.671 -> [   695][I][ZigbeeCore.cpp:141] zigbeeInit(): Device type: Home Gateway, Endpoint: 1, Device ID: 0x0050
00:01:27.671 -> [   698][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
00:01:27.671 -> [   699][I][ZigbeeCore.cpp:220] esp_zb_app_signal_handler(): Zigbee stack initialized
00:01:27.671 -> [   701][I][ZigbeeCore.cpp:226] esp_zb_app_signal_handler(): Device started up in  factory-reset mode
00:01:27.671 -> [   701][I][ZigbeeCore.cpp:230] esp_zb_app_signal_handler(): Start network formation
00:01:30.044 -> [  3069][I][ZigbeeCore.cpp:329] esp_zb_app_signal_handler(): Network(0x37b4) closed, devices joining not allowed.
00:01:30.044 -> [  3070][I][ZigbeeCore.cpp:261] esp_zb_app_signal_handler(): Formed network successfully (Extended PAN ID: 54:32:04:ff:fe:33:53:58, PAN ID: 0x37b4, Channel:15, Short Address: 0x0000)
00:01:30.512 -> [  3539][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x37b4) is open for 180 seconds
00:01:30.512 -> [  3540][I][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Network steering started
00:02:27.628 -> [ 60685][I][ZigbeeGateway.cpp:154] printGatewayDevices(): gateway devices:
00:02:27.628 -> [ 60686][I][ZigbeeGateway.cpp:163] printJoinedDevices(): joined devices:
[/quote]

A przełączyłeś czujnik w tryb parowania po uruchomieniu bramki?
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

Nie ma na nim przycisku parowania, wyciagałem tylko baterię.
Ciekawe, bo Nspanel Pro go wykrywał

Return to “Bramka ZigBee”