pvvx / ATC_MiThermometer

Custom firmware for the Xiaomi Thermometers and Telink Flasher
https://github.com/pvvx/pvvx.github.io/tree/master/ATC_MiThermometer
Other
2.9k stars 202 forks source link

(ATC_ota_40000.bin firmware) Cannot connect to ATC_xxxxx #422

Closed phellarv closed 10 months ago

phellarv commented 10 months ago

After flashing the ATC_ota_40000.bin firmware successfully, I cannot connect to the device. Device is a LYWSD03MMC. I have tried to reboot, taken out the battery for a minute, disabled and enabled bluetooth on the laptop. Nothing in the log.

phellarv commented 10 months ago

I have now tried 2 different PC's. Same result. 2023-11-28_15-26 And there it just hangs.

dgoadby commented 10 months ago

Is this your first time trying to connect with BLE or do you already have working devices?

If this is your first time then your problem might be the Bluetooth hardware. i had laptops with Bluetooth and thay didn't seem to work and I was pulling my hair out until I bought a recommended BLE dongle and, since then, all has been well. The dongle is: tp-link Bluetooth 5.0 Nano USB adaptor.

pvvx commented 10 months ago

Regarding the operation of the ATC_ota_40000.bin firmware, please contact https://github.com/devbis/z03mmc. I don't know how it works.

phellarv commented 10 months ago

I tried everything on 2 different Linux PC's, but when I booted into windows it worked right away. Painful, but if it works, it works.

pvvx commented 10 months ago

Linux only works with older versions of Bluetooth released before 2016. All subsequent versions of BT require patchs and/or changes option to Bluez and kernel parameters.

phellarv commented 10 months ago

It did work with 3 out of 4 devices which I flashed today, so it is not consistent. All bought from the same vendor at the same time. And they had the same firmware before I flashed them. But noted. I have a drive with windows on which I can boot when needed.