New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaomi has released new 2.1.1 firmware #298
Comments
Thank you for the hint. |
Thanks Victor, I would expect them to sign the activation on the server side with an unknown private key but lets hope not |
Can i downgrade via Uart? With correct key/token cannot downgrade or change fw. Even if login is correct and OTA seems to work, it doesn't . |
I haven't clarified the whole process yet. It is quite possible that because of these "security worries" Xiaomi has changed the activation and "OTA": PS: I can't clarify because I adhere to the "user agreement" in "MiHome". It is forbidden to view their code and other manipulations with it. And no one wants to publish the binary file of the new official firmware for public access :) |
is this going to get fixed please? thank you |
And I just updated the firmware without checking in here 😞 |
I've made the same mistake by updating to the latest firmware. Hope this will be fixed soon. |
So for those of us who updated to the latest firmware, is there any way to downgrade when the flasher does not connect due to being on unsupported firmware? Catch 22 situation! |
I also can't flat on 2.1.1_0159 version, let me know please it if possible or not. Thanks! |
At the moment, you can only write another firmware using a hardware programmer. |
How would I go about doing that? |
damn, got it with the new firmware so cant install the custom also :( |
A hint may occur when a new version is released. When it will be possible to upgrade version 2.1.1_0159 in Mi Home to the next one. |
To go back to the old version (Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130.bin );
|
|
I have no idea about this. https://github.com/atc1441/ATC_MiThermometer/blob/master/Mi_SWS_Connection.jpg |
The very name of the utility describes: TLSR825x USB-COM Flash Writer v0.4 (TX-SWS only!) :) The picture is from another version of the programmer - https://github.com/pvvx/TlsrComSwireWriter - does not work on FTDI chips! Comment edited: Fixed a link error. |
Are you saying that I am enough like this? |
Yes |
Why didn't this method work? https://pvvx.github.io/ATC_MiThermometer/USBCOMFlashTx.html This method worked. Thank you very much for your sharing. |
https://github.com/pvvx/TlsrComSwireWriter - does not work on FTDI chips! (Only Chinese USB-COM chips) On FTDI chips, reception is performed by checking bitwise synchronization with the removal of bad characters from the buffer with error generation, which does not allow emulating "Telink Swire". https://github.com/pvvx/TlsrComProg825x - this programmer uses a loader that switches to work with the RX and TX chip UART pins. |
Hi, So, after sharing my disgrace... How hard is to get one of this USB-COM board and use it to downgrade? any link from Aliexpress? |
Hi. Downgraded using this ch340 usb to ttl rs232 converter: |
Maybe I can't differently, but flash by site only works on Windows "machine". On MacBook I bricked by flash. On Windows "machine" I recovery firmware without problems :) |
Hi Guys, However I didn't used the board referenced by @tharzo, I got with a Friend the FTDI 232 and followed the steps passed by tarzho. I did the downgrade of my firmware from v2 to v1 and then flashed it with the custom firmware v4.5 successfully!! |
I'm not that familiar with soldering and boards, so I decided to buy a new one from Ali, from the same shop as my previous one. It was shipped very fast and fortunately the firmware version of the new device was still on v1.0. |
Is there any expected date when soft 2.1.1 will be supported by Telink Mi Flasher? I was not able to downgrade by Serial |
So far no one is doing this or it is unknown. Disassembling or otherwise viewing codes from Xiaomi is prohibited in the MiHome user agreement. For this reason, other methods that are not prohibited will be used. And this requires the next new version of OTA from MiHome. |
did you entered the BLE key in Telink flasher? i tried to enter manually values from Token Extractor, but it did not wanted to do flash because "do activation" (2.1.1) |
@kr3st1k no, I only have one device and when it connected to HA I didn't want it to disconnect. I am waiting for another one so I can tinker with it later. |
When you enter the keys from MiHome in TelinkMiFlasher.html, the login is processed. But the firmware will not work, although it will be transferred. The check occurs after transferring and recording the new firmware in Flash. The firmware verification keys are not included, but only the login is entered. After transferring and recording the new firmware, a check occurs and the compliance flag is set. But the criteria are not met and the successful OTA flag is not set. The new flashed fw will not start, but will be erased upon startup. And version 2.xx will start The MiHome firmware works in HA if you enter the bindkey into the MiHome integration. |
@pvvx i had problems with bind key from TelinkFlasher or token extractor. This was the only way it worked for me. |
Hello, Unfortunately I made the same mistake - updating the FW right away to V 2.x... I use a FT232RL-based USB-COM Adapter, set to 3.3V. Then I flashed it using and FW file The output looked promising: But when connecting to the telink flasher (or the Xiaomi app) it's showing that it still has the 2.x FW: (I tried several other things as well, but I don't want to bore you :)) What am I doing wrong? |
Please correct me if I'm wrong :
|
Xiaomi LYWSD03MMC with firmware 2.x.x simply will not update to any OTA version. At the moment, firmware update version 2.x.x is only available via USB-UART. You can flash any version via USB-UART. |
@vdende No soldering necessary. I connected it like this. |
@Macsim51 You can use any usb-uart dongle. For the image above there is a usb-ttl converter (square one). Potentially, you can short EN-GND to disable the chip and use tx0/rx0 as UART pins. This approach works for arduino boards and could work for your board. |
This method how to perform the OTA with 2.1.1_0159. Tested on two units HW 1.4 and FW 2.1.1._0159 successfully
|
Dear Friend, how did you do that? In my case the activation progress won't complete...
|
The method provided by Moaner2 does not work. |
Guys, just successfully downgraded using ch340g (no jumper, or resistor. just 2 wires). UPD UPD 2 Step-by-step
|
do your "Step-by-step" work for rev 1.5 ?
|
Yep. Downgraded one 1.4 and four 1.5 devices |
Had no luck on macOS. |
Awesome! Thank you very much! Works well. Edit: Edit2: |
Amazing, I received 10 unicorns today - hardware B1.5 and still on the 1.0.0_0130 firmware. Sticker on the box suggests 2024.01 manufacture date. They’re still out there, I guess! I was prepared to go this route - thanks for all the tips above. |
Hello, just in case someone is attempting flash the firmware with a ESP8266/ESP32, some feedback:
|
My pack of LYWSD03MMC came brand new with 2.11 installed, date code 2023.11. However, it is pretty easy to resolve, I saw some people flashing older OG firmware a few times then doing the custom OTA... not sure why. But I am able to just use a CH340 (worth just picking it up, 5 Pack for $10 USD on Amazon 2Day) and flash the ATC_v47.bin firmware directly, works first time (3 sensors done so far). I found just the 3 pins (3V, GND, P14) were all that I needed, I used clips on the 3V and GND since you can directly go to the battery leads, but I ended up soldering P14 since that was easier and less annoying then trying to keep it perfectly held on by hand. Flashed using the web flasher. In case someone just wants to flash a 2.1.1 sensor with the custom PVVX firmware, this is what I did:
Extra details: |
Hi, can you elaborate how to connect and flash esp32 to sensor? Thank you |
It seems that the way to update firmware using telink flasher has been forbidden.
The text was updated successfully, but these errors were encountered: