Skip to content
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

Support for XIAOMI Mijia Bluetooth Thermometer 3? don't start after battery change #569

Open
dartymath opened this issue Nov 20, 2024 · 12 comments

Comments

@dartymath
Copy link

Dear all,
i successfully flash my XIAOMI Mijia Bluetooth Thermometer 3? but after several month my device show low battery, so i remove old one and change by new one and the screen start normally less than 1 second then nothing and it. I try with another device no issue with the new battery. i have only one ! so may be lost of the firmware ? How can i flash it with wire and usb to ttl with an full flash and which one to take ?

thanks for your advice

Best regards
Mathias

@pvvx
Copy link
Owner

pvvx commented Nov 20, 2024

First, you should try a different battery.

@dartymath
Copy link
Author

Thanks,
Yes for sure I already did it with 3 new battery that work on another device !

@pvvx
Copy link
Owner

pvvx commented Nov 20, 2024

I have never seen such behavior with alternative firmware.
After flashing using a USB-COM adapter, it is always advisable to update the firmware via BLE OTA.
When flashing via BLE OTA, the firmware is checked for checksums twice.
(When flashing using a USB-COM adapter, no checks are performed.)

@dartymath
Copy link
Author

Yes it was running well during several months ! Only issues after removing the battery. Now when I unplug and plug the battery I only see 1 second all digit appear and after stop.
I did same flashing in April on 2 devices only one get this issue
How to flash by usb com ? Any tutorial for flashing it ?
Thanks

@sanschaussure
Copy link

sanschaussure commented Nov 22, 2024

I see the same behavior. After changing battery (old battery was totally empty) the device sometimes starts sometimes not. I also try to reset the device (didn't work). Discharge the internal capacitors by connecting + and - on the battery position.

Model is LYWSD03MMC
Software version 4.6

Regards

ohneschuh

@pvvx
Copy link
Owner

pvvx commented Nov 22, 2024

When the voltage drops below the operating voltage (less than 2.0V), the thermometer switches on the deep-sleep mode for 2 minutes. After 2 minutes, the next check occurs, but the start will be if the voltage is more than 2.2V.
This is necessary at negative temperatures, when the battery voltage drops sharply. And also in cases of power supply from a solar battery - it is necessary to let the battery charge.
Otherwise, the device will never start ( -25..30C) or when operating from a solar battery, but will discharge the battery to zero.

@sanschaussure
Copy link

What does it mean? The battery I used was fresh with 3.4 V. Do I have to put in the battery and wait for 2 Minutes?

@pvvx
Copy link
Owner

pvvx commented Nov 22, 2024

  1. If the battery connection occurred with poor contact - multiple connections/disconnections with a short pause, then most likely the thermometer will go into sleep mode for 2 minutes, waiting for normal contact with the battery.
  2. In thermometers with a normal capacitor installed in the power supply, when the battery is disconnected, the operation continues for 20...60 seconds. But the voltage drops - the capacitor discharges and the thermometer goes into sleep mode for minimum consumption (the best examples - less than 1 μA). In this case, the power supply can drop to 1.8 V in a couple of minutes. Only then will the reset occur.
    Installing a new battery in a thermometer with a normal capacitor first charges the capacitor and the voltage is not enough to start -> deep-sleep is turned on for 2 minutes.
  3. The screen can be disabled in the TelinkMiFlasher.html settings...

@dartymath
Copy link
Author

dear all,
i try several time and get same issue,
i open the sensor, clean contact but no success.
i connect the sensor with stable power supply at 3 and 3.3V with same issue.
i see some times with the battery on it the screen flash again with LOW write on it but didn't understand why as the voltage is at 3V.
Any idea ?
Also how to flash the bin firmware directly with wire connection to Rx, Tx and gnd, V ? and with which tool ?
Thanks in advance

@pvvx
Copy link
Owner

pvvx commented Nov 26, 2024

  1. If you temporarily connect 5V to the thermometer power supply, then the chip fails - it starts to consume a lot or glitch. The limit for TLSR825x is up to 3.6V. After that, the crystal degrades, which leads to an increase in the chip's consumption forever. For this analysis, tests were performed on several chips...
  2. On thermometers and other devices that have been operating for a long time in high humidity, short circuits or oxidation of the leads of chips and parts occur. This leads to the inoperability of the device. Cleaning the board and warming it up sometimes help temporarily, but not for long. I already have 3 such devices (CGPR1, 2 x LYWSD03MMC) in 3 years. Due to only temporary restoration for a few weeks, after several washes in an ultrasonic bath and heating the board with an assembly station, the described devices had to be thrown out.

Also how to flash the bin firmware directly with wire connection to Rx, Tx and gnd, V ? and with which tool ?

README

@dartymath
Copy link
Author

Thanks for the read me I will try to flash it.
The sensor was only use inside the house in main room. I don’t think this was coming from humidity. The issue only occur after several months after the new firmware flash and when I see battery start to be low. I change the battery and the device only show screen test and turn off ! Switch of battery or usage of power supply at 3 or 3,3V didn’t change the state.
The other device didn’t show same issue

@pvvx
Copy link
Owner

pvvx commented Nov 26, 2024

It is quite possible that the settings are incorrect - the screen is off, but the thermometer is working.
You can reset the settings in TelinkMiFlasher.html or find the description in README ->
If you have a smartphone with BT5.0+ and the nRFConnect program, then you can reset all settings to default by connecting to a thermometer and sending the 0x56 command, as shown in the screenshot: ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants