Coder Social home page Coder Social logo

Two-stage firmware? about z03mmc HOT 3 OPEN

devbis avatar devbis commented on July 21, 2024 1
Two-stage firmware?

from z03mmc.

Comments (3)

devbis avatar devbis commented on July 21, 2024

The size for the firmware is almost 128kb that makes impossible to flash it with you flashing tool after adding more features and spilling over 129kb (due to restrictions in the web UI). In this case bluetooth firmware should be able to write a firmware to 0x40000 address, what is intermediate firmware does.

ota_40000 is literally doing what you've said (it's your code modified). It looks for the boot flag in 0x20000, moves itself to 0x40000, and changes its segments to let next zigbee firmware be written to 0 or 0x40000.

from z03mmc.

pvvx avatar pvvx commented on July 21, 2024

For double flashing, you need to use a random MAC.
Otherwise, there will be problems described in this issue

Для двойной перепрошивки требуется использовать случайный MAC.
Иначе будут проблемы, описанные в этом issue

from z03mmc.

pvvx avatar pvvx commented on July 21, 2024

Starting from firmware version v4.6, all thermometers in TelinkMiFlasher.html (v6.9) support BigOTA.

BigOTA is enabled if the OTA file is larger than 128 kilobytes.
BigOTA download occurs at address 0x40000.
BigOTA size limit is 221184 bytes. The MAC of the device is written at address 0x76000.

If the battery is low, the connection may be interrupted. Then you will need to download again.
For example, MiHome does not allow OTA when the battery charge is less than 50%.


Начиная с версии прошивки v4.6, все термометры в TelinkMiFlasher.html (v6.9) поддерживают BigOTA.

BigOTA включается, если файл OTA более 128 килобайт.
Загрузка BigOTA происходит по адресу 0x40000.
Ограничение размера BigOTA в 221184 байт. По адресу 0x76000 записан MAC устройства.

При слабой батарее возможен разрыв связи. Тогда потребуется повторить загрузку.
Например, MiHome не разрешает ОТА при заряде батареи менее 50%.

from z03mmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.