ZigBee OTA [bramka ZigBee]

Moderator: vajera

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

Post

lukasz06 wrote: Thu Apr 02, 2026 5:37 pm
LukiSpajder wrote: Thu Apr 02, 2026 5:28 pm Mam to samo z ME167 prawie tak sama głowica , aktualizacja poszła rano bez problemu tzn. plik został przesłany w całości. Po tym głowica nie reagowała na rozkazy z bramki . Próby sparowania z różnymi bramkami nie powidła się , głowica niby zachowuje się normalnie tzn. można ją wprowadzić w tryb parowania. Nie połączy się jednak nawet z oryginalną bramką .
Sprawdziłem w skanerze ver.1.4.115 wygląda jak by nie rozgłaszała sieci zigbee.
Na ten moment jest cegła :D ;)
Odesłać do chińczyka , może wymienią ;)
Swoją drogą zdarzyło mi się przez pomyłkę załadować Ota, chyba termometru Sonofa do włącznika ZbMini R2
Na szczęście szybko się zorientowałem i przerwałem aktualizację. Włącznik działa, ale parować go nie parowałem, bo nie przyszło mi to do głowy. Mam nadzieję , że pójdzie ale na razie nie ruszam jak działa :)
Przydałaby się w bramce opcja zabezpieczająca przed takimi wypadkami
Właśnie w tym rzecz, że urządzenie końcowe nie powinno przyjąć innego softu niż dedykowany i to w wersji wyższej.
Jeśli przyjmuje, to znaczy, że coś z nim jest nie tak, nie z bramką...
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 wrote: Thu Apr 02, 2026 5:13 pm
Uwaga! Nie uaktualniajcie jeszcze softem Sonoffa głowic Avatto!


U mnie wyglądało OK, chciałem zrobić testy (jak prosił @vajera).
Zacząłem od resetu głowicy, aby zobaczyć, jak się przedstawi i... nie chce się sparować.
Usunąłem kanał z cloud, dalej to samo.
Próbowałem z nową, czystą bramką i też nic.
Próbowałem resetować do ustawień fabrycznych (to akurat się udało) ale dalej się nie paruje z bramką.
Dalsze testy trwają...
Te Avatto są różne, przychodzą nawet do nas z różnymi ID, może niektóre będą działać, ale na chwilę obecną doradzam wstrzymanie się z aktualizacją.
The history of cardiac surgery is written in blood, but the 1960s were particularly brutal. Before it became a standard procedure that now saves thousands of lives annually, it was considered by many to be a fool's errand.

The Historical Case: The First Human Heart Transplant (1967)

On December 3, 1967, South African surgeon Dr. Christiaan Barnard performed the world's first human-to-human heart transplant at Groote Schuur Hospital in Cape Town.

The Patient: Louis Washkansky, a 54-year-old grocer suffering from incurable heart failure.

The Surgery: It was a technical masterpiece. Barnard successfully "plumbed" a new heart into Washkansky's chest. When the heart began to beat on its own, it was hailed as a medical miracle.

The Outcome: Death. Washkansky died just 18 days later.

Why it failed (at first)

The problem wasn't the surgery itself; it was the immune system.

The "Double-Edged Sword": To prevent Washkansky’s body from rejecting the "foreign" heart, doctors hit him with massive doses of immunosuppressant drugs and radiation.

The Cause of Death: Because his immune system was completely suppressed, he couldn't fight off common bacteria. He died of double pneumonia, technically killed by the treatment meant to save him.

Following this, heart transplants became a "death sentence" in the late 60s. Between 1967 and 1970, about 100 transplants were performed worldwide, and nearly all patients died within weeks or months. Many hospitals banned the procedure entirely, calling it unethical.

The Turning Point: The "Magic" Drug

The procedure only became "very effective" in the early 1980s due to a single discovery: Cyclosporine.

Found in a soil fungus in Norway, Cyclosporine was a revolutionary immunosuppressant that could stop the body from attacking the new heart without totally destroying the patient's ability to fight off infections like pneumonia.
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 Apr 03, 2026 6:04 am
Zibi_007 wrote: Thu Apr 02, 2026 5:13 pm
Uwaga! Nie uaktualniajcie jeszcze softem Sonoffa głowic Avatto!


U mnie wyglądało OK, chciałem zrobić testy (jak prosił @vajera).
Zacząłem od resetu głowicy, aby zobaczyć, jak się przedstawi i... nie chce się sparować.
Usunąłem kanał z cloud, dalej to samo.
Próbowałem z nową, czystą bramką i też nic.
Próbowałem resetować do ustawień fabrycznych (to akurat się udało) ale dalej się nie paruje z bramką.
Dalsze testy trwają...
Te Avatto są różne, przychodzą nawet do nas z różnymi ID, może niektóre będą działać, ale na chwilę obecną doradzam wstrzymanie się z aktualizacją.
The history of cardiac surgery is written in blood, but the 1960s were particularly brutal. Before it became a standard procedure that now saves thousands of lives annually, it was considered by many to be a fool's errand.

The Historical Case: The First Human Heart Transplant (1967)

On December 3, 1967, South African surgeon Dr. Christiaan Barnard performed the world's first human-to-human heart transplant at Groote Schuur Hospital in Cape Town.

The Patient: Louis Washkansky, a 54-year-old grocer suffering from incurable heart failure.

The Surgery: It was a technical masterpiece. Barnard successfully "plumbed" a new heart into Washkansky's chest. When the heart began to beat on its own, it was hailed as a medical miracle.

The Outcome: Death. Washkansky died just 18 days later.

Why it failed (at first)

The problem wasn't the surgery itself; it was the immune system.

The "Double-Edged Sword": To prevent Washkansky’s body from rejecting the "foreign" heart, doctors hit him with massive doses of immunosuppressant drugs and radiation.

The Cause of Death: Because his immune system was completely suppressed, he couldn't fight off common bacteria. He died of double pneumonia, technically killed by the treatment meant to save him.

Following this, heart transplants became a "death sentence" in the late 60s. Between 1967 and 1970, about 100 transplants were performed worldwide, and nearly all patients died within weeks or months. Many hospitals banned the procedure entirely, calling it unethical.

The Turning Point: The "Magic" Drug

The procedure only became "very effective" in the early 1980s due to a single discovery: Cyclosporine.

Found in a soil fungus in Norway, Cyclosporine was a revolutionary immunosuppressant that could stop the body from attacking the new heart without totally destroying the patient's ability to fight off infections like pneumonia.
Prawda, tylko co będzie naszą cyklosporyną? Ofiary już wcześniej wliczyłem w koszty postępu :ugeek:
Do tej pory to Ty byłeś lekiem na całe zło ;)
Wyciągam dzisiaj z szafy glowicę ME i z nią spróbuję, choć jedną na Forum już poległa...
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

Zbyszek słusznie zwrócił mi uwagę, że bramka nie zeruje tego parametru sw_build_id przed ponownym odczytem, zerowanie ma miejsce tylko bezpośrednio po ponownym uruchomieniu bramki. Wersja 1.4.118-03/04/26 naprawia ten błąd - od tej pory żadne urządzenie nie powinno już przedstawiać się cudzymi danymi - mówimy NIE dla kradzieży tożsamości.
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

Chyba nie tylko Zbyszek zwracał na to uwagę
Aż trudno uwierzyć, że tak długo żyliśmy w błędzie 😉
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 Apr 03, 2026 8:41 pm Chyba nie tylko Zbyszek zwracał na to uwagę
Aż trudno uwierzyć, że tak długo żyliśmy w błędzie 😉
To działo się tylko w bardzo konkretnych okolicznościach, gdy urządzenie A) odpowiadało na rozkaz, ale B) nie zwracało żadnej wartości.
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

lukasz06 wrote: Fri Apr 03, 2026 8:41 pm Chyba nie tylko Zbyszek zwracał na to uwagę
Aż trudno uwierzyć, że tak długo żyliśmy w błędzie 😉
Poprawka jednak w 1.4.119-03/04/26
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

Wiem, wiem. Kilka razy jak odpytywałem Xiaomi dostałem 1.4.4 od Sonoffa. Myślałem że to jakiś bufor.
Fajnie , że to wykryłeś 👍
User avatar
lesny8
Posts: 3132
Joined: Mon Dec 11, 2017 9:43 pm
Has thanked: 10 times
Been thanked: 9 times

Post

Ja też to zauważyłem, ale jak zmieniałem Device na pusty a potem na ten z którego chciałem odczytać, to problemu nie było. Miałem o tym pisać, tak jak miałem kiedyś pytać o możliwość OTA dla podłączonych urządzeń do bramki, no i zanim o to zapytałem to kolega nam dodał ficzer i tak samo błąd naprawił :)
Normalnie pisać nie trzeba, @vajera czyta w naszych myślach :lol:
SOP 2023 :heavy_check_mark:
SOP 2024 :heavy_check_mark:
Czekam na kolejne Supla Offline Party :upside_down_face:
🧩: 🔑cz->b ⛴️+ila
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

Wczoraj dostałem odpowiedź na moje zgłoszenie błędu w obsłudze klastra OTA w bibliotece ZigBee Espressif:
xieqinan
left a comment
(espressif/esp-zigbee-sdk#793)

It looks like for first request ZigBee library is cutting first 56 bytes (OTA header?) but Sonoff (and most other commercial devices) requires sending complete OTA file (including header) and because of that after 30 minutes of sending 300K file I'm getting INVALID OTA IMAGE error.

You are right. In v1.x, the stack checks and filters the OTA header and only outputs the image binary to the application via zb_ota_next_data_handler(). This may not meet certain use cases.

In v2.0, the OTA mechanism has been redesigned to provide the complete OTA file to the application. If you are interested on it, a related example has been provided for reference.

Tym sposobem uzyskałem potwierdzenie mojego rozpoznania problemu a jednocześnie dowiedziałem się o fundamentalnej zmianie w tejże bibliotece - więcej informacji na ten temat zamieszczę w oddzielnym temacie.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277

Return to “Bramka ZigBee”