Coder Social home page Coder Social logo

Comments (15)

PabloPL avatar PabloPL commented on August 22, 2024 1

@devbis Thank You!
OTA update went without issues and i was able to pair sensor using OpenMQTT over bluetooth.
Thanks again.

For others - to downgrade from latest fw to BT, You need to create local ota index file with following definition, replace url with path to file downloaded from https://github.com/devbis/z03mmc/blob/master/assets/db15-0203-99993001-ATC_v46.zigbee

[
    {
        "force" : true,
        "manufacturerCode": 56085,
        "imageType": 515,
        "url": "/etc/zigbee2mqtt/ota/db15-0203-99993001-ATC_v46.zigbee"
    }
]

from z03mmc.

pbranly avatar pbranly commented on August 22, 2024

Hi
Could you explain how you did this upgrade ?
Thanks
Phil

from z03mmc.

devbis avatar devbis commented on August 22, 2024

@maaad Yes, it is the expected result. I will use Manufacturer ID 0xdb15 from now on to reduce errors because of confusions when using firmware from other forks. Image type should not have changed, should be 0x0203

from z03mmc.

maaad avatar maaad commented on August 22, 2024

Hi Could you explain how you did this upgrade ? Thanks Phil

https://www.zigbee2mqtt.io/guide/usage/ota_updates.html#local-ota-index-and-firmware-files

from z03mmc.

pbranly avatar pbranly commented on August 22, 2024

Thank you but which file did you use ?
I tried one from z2m but it does not generate new OTA for the thermometer
Thanks
Philippe

from z03mmc.

maaad avatar maaad commented on August 22, 2024

this one: https://github.com/devbis/z03mmc/releases/download/1.1.0/1141-0203-11003001-z03mmc.zigbee

from z03mmc.

devbis avatar devbis commented on August 22, 2024

For some reason, image type is 0xff. Investigating

from z03mmc.

pbranly avatar pbranly commented on August 22, 2024

this one: https://github.com/devbis/z03mmc/releases/download/1.1.0/1141-0203-11003001-z03mmc.zigbee

Thanks
I could upgrade 2 devices
One device dead at the end .... no more screen
I will try direct upload
Phil

from z03mmc.

devbis avatar devbis commented on August 22, 2024

@pbranly please wait until i fix the image type issue

from z03mmc.

Soukyuu avatar Soukyuu commented on August 22, 2024

Will updating to the new manufacturer id also fix the issue on the current release of z2m where some functionality for an alternative firmware got merged and now spamming my log with errors?

from z03mmc.

pbranly avatar pbranly commented on August 22, 2024

@pbranly please wait until i fix the image type issue

Hi too late ! 2 of my 3 devices work fine with the latest f/W.
As soon as your new one will be available, I will re-OTA
I will also try to reanimate the third one with direct upload
Thanks for your work
Phil

from z03mmc.

devbis avatar devbis commented on August 22, 2024

My investigation showed that it wasn't an issue. New SDK from Telink works this way. Default value is 0xffff but when update is in progress it shows correct values. Will leave it as is.

from z03mmc.

PabloPL avatar PabloPL commented on August 22, 2024

I have the same issue. After latest update in z2m i'm getting

Read result of 'genOta': {"imageTypeId":65535,"manufacturerId":56085}

And when trying to go back to BT version i can see

Debug 2024-02-20 21:52:18 Received Zigbee message from 'Xiaomi sensor', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":0,"fileVersion":285224961,"imageType":515,"manufacturerCode":56085}' from endpoint 1 with groupID 0
Debug 2024-02-20 21:52:18 Got OTA request '{"fieldControl":0,"manufacturerCode":56085,"imageType":515,"fileVersion":285224961}'
Debug 2024-02-20 21:52:18 ZigbeeOTA: downloaded main index
Debug 2024-02-20 21:52:18 ZigbeeOTA: Loading override index /etc/zigbee2mqtt/ota_xiaomi.json
Debug 2024-02-20 21:52:18 ZigbeeOTA: getting local firmware file /etc/zigbee2mqtt/ota/1141-0203-99993001-ATC_v46.zigbee
Debug 2024-02-20 21:52:18 getNewImage for '0xa4c13849c85d6bd0', meta {"fileVersion":2576953345,"url":"/etc/zigbee2mqtt/ota/1141-0203-99993001-ATC_v46.zigbee","force":true}
Debug 2024-02-20 21:52:18 ZigbeeOTA: getting local firmware file /etc/zigbee2mqtt/ota/1141-0203-99993001-ATC_v46.zigbee
Debug 2024-02-20 21:52:18 getNewImage for '0xa4c13849c85d6bd0', image header {"otaUpgradeFileIdentifier":{"type":"Buffer","data":[30,241,238,11]},"otaHeaderVersion":256,"otaHeaderLength":56,"otaHeaderFieldControl":0,"manufacturerCode":4417,"imageType":515,"fileVersion":2576953345,"zigbeeStackVersion":2,"otaHeaderString":"Telink OTA BLE device\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","totalImageSize":82674}
Debug 2024-02-20 21:52:18 Update of 'Xiaomi sensor' failed (AssertionError [ERR_ASSERTION]: Manufacturer code mismatch)

@devbis Do You have any idea how to fix this issue?
The best would be without flashing by uart - i don't have it yet setup, also i have a few devices to handle.

from z03mmc.

devbis avatar devbis commented on August 22, 2024

@PabloPL Thanks for the report. I uploaded revert OTA firmware with updated manufacturer code: https://github.com/devbis/z03mmc/blob/master/assets/db15-0203-99993001-ATC_v46.zigbee Please, use it to revert to BLE.

from z03mmc.

devbis avatar devbis commented on August 22, 2024

For local ota only url and force are required.

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.