ZigBee OTA [bramka ZigBee]

Moderator: vajera

lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

vajera wrote: Fri Apr 24, 2026 8:50 am 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.
I super :)
Mam przy okazji propozycję, jeśli chodzi o Ota urządzeń Zigbee.
Fajnie by było, gdyby dioda Led z c6 również zmieniała kolor , gdy następuję aktualizacja urządzenia.
Mógłby to być ten sam kolor, tylko np pulsująca
User avatar
george1255
Posts: 426
Joined: Fri Sep 02, 2022 8:48 pm
Location: Włodawa
Has thanked: 12 times
Been thanked: 7 times

Post

@vajera czy dla urządzeń DIY też można robić OTA za pośrednictwem bramki ?
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

george1255 wrote: Sat Apr 25, 2026 8:14 am @vajera czy dla urządzeń DIY też można robić OTA za pośrednictwem bramki ?
Teoretycznie tak, ale musiałbyś po stronie urządzenia samemu zapewnić całą logikę przetwarzania i wgrywania pliku OTA.
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
george1255
Posts: 426
Joined: Fri Sep 02, 2022 8:48 pm
Location: Włodawa
Has thanked: 12 times
Been thanked: 7 times

Post

vajera wrote: Sat Apr 25, 2026 9:04 am
Teoretycznie tak, ale musiałbyś po stronie urządzenia samemu zapewnić całą logikę przetwarzania i wgrywania pliku OTA.
Podejmuje rękawice :)
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

george1255 wrote: Sat Apr 25, 2026 9:22 am
vajera wrote: Sat Apr 25, 2026 9:04 am
Teoretycznie tak, ale musiałbyś po stronie urządzenia samemu zapewnić całą logikę przetwarzania i wgrywania pliku OTA.
Podejmuje rękawice :)
Brawo Ty!

Może się przyda:

https://we.tl/t-h2weaqGx3KPCh7Ap
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
george1255
Posts: 426
Joined: Fri Sep 02, 2022 8:48 pm
Location: Włodawa
Has thanked: 12 times
Been thanked: 7 times

Post

vajera wrote: Sat Apr 25, 2026 9:46 am
george1255 wrote: Sat Apr 25, 2026 9:22 am
vajera wrote: Sat Apr 25, 2026 9:04 am
Teoretycznie tak, ale musiałbyś po stronie urządzenia samemu zapewnić całą logikę przetwarzania i wgrywania pliku OTA.
Podejmuje rękawice :)
Brawo Ty!

Może się przyda:

https://we.tl/t-h2weaqGx3KPCh7Ap
Dzieki!

Return to “Bramka ZigBee”