ATC_MiThermometer icon indicating copy to clipboard operation
ATC_MiThermometer copied to clipboard

problem after telinkflasher to pair again with xiaomi app

Open walkercz opened this issue 4 years ago • 23 comments

Hello,

I have Xiaomi Mi Temperature and Humidity Monitor 2 - LYWSD03MMC

and I am using integration https://github.com/custom-components/ble_monitor

and I used this method to get bind key https://atc1441.github.io/TelinkFlasher.html

problem is that now when i try to factory reset and pair again with xiaomi app ( gnd+reset ) I still get an error -29 :slight_frown: .. anyone who solve it?? and sucesfully repair the thermometer with xiaomi app? (I want to use thermometer in xiaomi app and HA so i need to pair it and get the bind key from modded xiaomi app)

walkercz avatar Jan 15 '21 09:01 walkercz

I tried to flash stock firmware using telinkflasher - still got an error "Standard verification failed -29"

walkercz avatar Jan 15 '21 11:01 walkercz

You need to delete the thermometer in the app and re add it.

If that does not solve it try reflashing the newest Custom Firmware and then back to stock

atc1441 avatar Jan 15 '21 11:01 atc1441

Great flash latest custom fw then stock fw worked! Thermometer is connected back in xiaomi app. Thank you for help!

walkercz avatar Jan 15 '21 12:01 walkercz

No problem 👍

Xiaomi locked the custom firmware id from the cloud so i made an update that will erase that id from flash to be able to use the stock firmware again

atc1441 avatar Jan 15 '21 12:01 atc1441

Hey @atc1441 or @pvvx, does that version check mean you cannot pair custom firmware with the Mi Home app? I see that it works with MijiaTemp but it gives an error when pairing in Mi Home (assume the key exchange is the issue?).

sufficientpickle540 avatar Jan 16 '21 02:01 sufficientpickle540

MiHome uses proprietary protocols for connection.

Telink Mijia example https://yadi.sk/d/g5fV7WD1EaUdRQ Requires the "libmijia_std_authen_eclipse_telink_1_0_1.a" library from Xiaomi, obtained by subscription: Connect to Mijia -> https://iot.mi.com/new/doc/embedded-development/ble/standard.html

pvvx avatar Jan 16 '21 07:01 pvvx

(I want to use thermometer in xiaomi app and HA so i need to pair it and get the bind key from modded xiaomi app)

Reading and recovering Mi-Home keys https://github.com/pvvx/ATC_MiThermometer/tree/master/img

pvvx avatar Jan 16 '21 07:01 pvvx

Hi. Are only the lywds03 and mho-c401 use telink (and supported by the page)? I have more types and as i see there are lots of other xiaomi sensors and it would be good to flash original binaries (w/o mi home,) at least.. Thanks

gitkobold avatar Mar 13 '21 14:03 gitkobold

Can somebody Tell can i bind the Customer firmware with the Mia Home App on iOS? I dont Unterstand Reading and recovering Mi-Home keys.

lolax80 avatar Apr 13 '21 20:04 lolax80

(I want to use thermometer in xiaomi app and HA so i need to pair it and get the bind key from modded xiaomi app)

Reading and recovering Mi-Home keys https://github.com/pvvx/ATC_MiThermometer/tree/master/img

Unfortunately, it didn't work for me.

Stratos007 avatar May 05 '21 19:05 Stratos007

After flashing custom, I can't Do activation anymore (so, I can't get further). After pressing Do Activation, it always disconnects. I can't flash back to stock and re-add to Mi Home.

Stooovie avatar Jun 04 '21 00:06 Stooovie

Hey. You only need to Activate on stock firmware.

On custom firmware you can directly flash after connecting

atc1441 avatar Jun 04 '21 04:06 atc1441

Hey. You only need to Activate on stock firmware.

On custom firmware you can directly flash after connecting

no I can't, the option is not there. The custom FW (button straight from the flasher) completed succesfully, no error messages. After Do activation, it disconnects every time. Screenshot 2021-06-04 at 7 49 11

Stooovie avatar Jun 04 '21 05:06 Stooovie

Looks like you are using pvvx version. Use the one from this repo please

atc1441 avatar Jun 04 '21 06:06 atc1441

How if I can't flash anything? I'll probably need to do an UART unbricking, right? Thanks for your time.

Stooovie avatar Jun 04 '21 06:06 Stooovie

No, i am talking about the telink flasher from this repo and not pvvx ones :)

https://atc1441.github.io/TelinkFlasher.html

atc1441 avatar Jun 04 '21 07:06 atc1441

Yes, sorry, thanks :) I have used your flasher to flash the original firmware you link to, it seems to have gone OK, but I can't add the device in the MI Home app no matter what I try. I did do the hardware reset (short gnd and reset for 5-8s) already. Any ideas? Thanks!

Stooovie avatar Jun 04 '21 07:06 Stooovie

Please delete it from the App first and activate it again.

Also before that flash my (not Pvvx) firmware once and then the stock again. This will erase the Old MiKeys.

atc1441 avatar Jun 04 '21 07:06 atc1441

Thanks, I was able to flash stock by repeating the process multiple times.

Stooovie avatar Jun 04 '21 09:06 Stooovie

Also before that flash my (not Pvvx) firmware once and then the stock again. This will erase the Old MiKeys.

image

pvvx avatar Jun 04 '21 19:06 pvvx

Also before that flash my (not Pvvx) firmware once and then the stock again. This will erase the Old MiKeys.

image

Thanks. This method fixed it for me. Now i am able to pair the device with mihome again.

jpdribbler avatar Jun 03 '22 07:06 jpdribbler

Great flash latest custom fw then stock fw worked! Thermometer is connected back in xiaomi app. Thank you for help!

Hello, I am in the same situation - I have updated my thermometer via Mi Home to FW original version 2.1.1_0159, but after this, the was not possible to read data from device via Mi Home. I deleted this device from Mi Home and tried to pair again - but there is not possible, notice "standard verification failed (-29)" is still showing.

Please, any tips how to fix it? Thanks.

SwingCZ avatar Nov 11 '23 12:11 SwingCZ

https://atc1441.github.io/TelinkFlasher.html "Do activation" fails withoput any error message, it just remains in Status 16:00:10: Activating now, please wait... and thus flashing another firmwar is not possible.

https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html at least reports: 16:04:16: Detected Mi device 16:04:16: (!) Version: 2.1.1_0159 is temporarily not supported (!) 16:04:16: Disconnected.

I hope version 2.1.1_0159 will be supported soon - the only task I would like to do, is to flashe another firmware

Alfred99-HA avatar Nov 22 '23 15:11 Alfred99-HA