atc1441 / ATC_MiThermometer

Custom firmware for the Xiaomi Thermometer LYWSD03MMC and Telink Flasher via USB to Serial converter
2.84k stars 476 forks source link

Display no longer working after battery replacement #256

Open dasrecht opened 2 years ago

dasrecht commented 2 years ago

Hi there,

I've been running the custom firmware for a while and noticed that one of my devices stopped sending data, so I replaced the battery on it. Interestingly it didn't start to send data, but I was able to flash the newest firmware onto the device.

I could reproduce the display not returning to life on two other sensors. They all work sending data via Bluetooth, but the display stays off. Did anyone else run into similar issues with their Mi Thermometers?

I'm puzzled that the display wouldn't work, but the rest of the functionality is not suffering any issues.

ShadNex commented 2 years ago

I’m experiencing the same on my devices (2 out of 3) after battery replacement. I don’t know if it has anything to do with the custom firmware though. Might be a hardware issue?

Edit: Installing the original Firmware and then the most recent custom firmware fixed the issue for me. The displays on both devices work again.

dasrecht commented 2 years ago

Whoo confirmed flashing the stock firmware brought back the display.

dasrecht commented 2 years ago

I was able to reproduce the issue with the latest firmware - if the battery powercycles the display stays off. but connectivity still works. If the battery is changed quickly (within 2-3 seconds) the display comes back to life.

OniLink57 commented 2 years ago

Got the same problem today. The screen went off and stayed off after the battery change. I had to flash the stock firmware then the latest version. Thank you all for your feedback which helped me :)

pvvx commented 2 years ago

For version B1.9 in the ATC firmware, the I2C frequency is too high for the display controller. If the temperature or battery voltage is not normal, then the display will fail. Basically, this manifests itself as a lack of readings on the display and re-initialization does not help. Remove and insert the battery for a long time. This may help in the short term. But in the software it is required to reduce the speed of the CLK I2C...

atc1441 commented 2 years ago

Just updated the repo to your speed victor, hope that helps

pvvx commented 2 years ago

https://github.com/pvvx/ATC_MiThermometer/blob/master/src/lcd.c#L147

luizrrocha commented 2 years ago

Tried with Release 78, no change. Had to install the original firmware and then flash release 78. After quick battery change, display did not return as before.

marxus4 commented 2 years ago

I have the same on 3 sensors

arepih commented 2 years ago

Same here. I have about 30 sensors. Flashed with release 78, all of them lost display after battery change.

nguyenmanhthao996tn commented 1 year ago

Hi, this issue isn't solved yet, right? I had the same problem with my devices (B1.9 & Release 78) this week.

mslio commented 1 year ago

Hi, I must confirm, it is not solved yet. I have used release 76 instead.

the78mole commented 1 year ago

I had a sensor that had an empty display. I took out the battery, placed it again, but nothing happended. I took it out over night and today it showed wired behaviour. I put in a new battery and the display began to get crazy. The LCD segments were dancing around. It was not a random sequence, instead it repeated somehow. I then reflashed the firmware (4.3) and it was dancing to another "song". I again reflashed the firmware, now with the 4.4 Beta and it shows a static screen, but with no useful information. BT still works. I can connect, it sends out updates with BThome, but the screen still shows the same segments. BTW: According to the last transmits a few days ago, it showed only ~2.1...2.2V battery voltage.

mslio commented 1 year ago

The display stopped working for me after uploading the last custom release. Uploading the original fw only helped. Then I uploaded a custom release one older and it still works.