-
Hi @fanoush, thanks for the link, I initially saw something about: https://github.com/atc1441/ATC_MiThermometer
Then I saw that through Python, without any hacks, you can get the values easily.
Maybe later, I sacrifice one in the name of science :-)
-
Maybe later, I sacrifice one in the name of science :-)
Yes, definitely optional thing for later.
As for sacrifices - it should be possible to restore it either over BLE or at worst it should be always recoverable via SWS interface - pin on board. This is similar debugging/programming interface to ARM SWD but thanks to clever hack you even don't need special HW for recovery, the right data for SWS can be generated in software and sent via serial uart.
Anyway, they are pretty cheap after all (below $4/piece when getting 4 of them https://www.aliexpress.com/item/4001095735569.html ) so even if completely broken it is not that bad :-)
Guess you already know but there is alternative firmware for this thermometer, it is pretty hackable device (Telink 8251 - 32K ram,512K flash). Was started by atc1441 and there is now nice fork here https://github.com/pvvx/ATC_MiThermometer with many additional features like logging data to flash. So if you would have issues with original Xiaomi firmware (like encrypted advertisement data) this one may be easier to work with. Also flashing that Telink chip is easy (both OTA and SWS over serial).