-
Notifications
You must be signed in to change notification settings - Fork 227
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
How to reconnect to adjust config? #265
Comments
Settings for thermometers only work with firmware from this repository. |
Thanks! @atc1441 is referring to the re-worked flasher by @pvvx on the very same site you referred to, |
... However: @pvvx seems to have updated their flasher recently - it looks like it supports much more variants of the sensors. BUT. I can now connect w/o re-flashing, but the transmission of new settings into the sensor does not seem to work ... |
Same problem: Chrome on linux with lenovo t480 bluetooth does not work - the service is not discovered. Chrome on android worked immediately. Any amount of reconnects did not help, battery is full, short circuit current 400 mA. I did not solder capacitors yet, but as it worked on android, I blame my bluetooth adapter... |
I "fixed" this by patching the |
I'm having the same issue, I was using https://github.com/pvvx/ATC_MiThermometer/raw/master/ATC_v39.bin to update the firmware, at https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html I see no config options on desktop (t490s laptop) but connecting via my Android phone I see the possible config options. |
@NerdyProjects I tried your suggestion This issue seems a duplicate of #242 |
If the interval is set to more than 4+ seconds, not all adapters and OS versions will be able to connect. |
I'm also seeing the same problem on Linux (Ubuntu 22.04), I used https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html to flash ATC_v39.bin (suggested by the webpage) onto my LYWSD03MMC module, and using that same page to connect and do "get config", I see the same messages as the original post (though sometimes it needs a couple of tries to succesfully connect as well). In particular, it says "Detected alternative Firmware?", but I do not think I uploaded an alternative firmware (though I am quite new and confused).
This confused me, because TelinkOTA.html only has 300-ish lines. However, https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html does have the line mentioned (at line 1329). Making the change there indeed shows me config options directly after connecting (no need to press get config): No luck with BTHome in Home Assistent yet, but at least this seems to work around the problem reported in this issue. For a proper solution, I suspect this block of code should be modified somehow, to automatically set
Looking in the browser console, these are the uuids detected:
I wanted to link to the github version of these HTML files, but I couldn't find them in the repository anywhere... |
I had a similar issue, I couldn't get to the settings after flashing. The "Get Config" button was only getting me these logs:
I edited the I could then see the settings immediately after connect.
|
This is most likely not a Linux issue. For reliable connection and refirmware on LYWSD03MMC, the battery level must be more than 40%. This is a design feature - a cheaper version of the hardware from Xiaomi: On devices with missing power capacities, do not set 'Connect latency' to more than 1000 ms! Shown how the first request-response after the connection worked, but then it fails and multiple attempts to re-establish the connection, ending with a timeout disconnect. Software fix is not possible. To slightly increase the stability of the connection is obtained by reducing the interval (connect latency). In version 4.1, this value is now limited, which leads to some increase in connection consumption. |
I had the "config missing" problem also with devices that had the capacitor (have some devices with 47uf and some with 100uf) added. My fix, and that is what I have to use, is to add the mentioned line, so this is definitively an issue with my bluetooth chipset or something. |
I'm pretty sure that this issue (edit: the issue as I have observed it at least) is a software issue in the HTML file, not a hardware issue (but maybe the capacitor issue mentioned has the same symptoms, that could very well be). IIRC, while investigating it earlier, I saw some signs that there have been changes to the HTML to refactor the affected code, so that probably broke things for specific devices (end devices, not bluetooth controllers) - though I can't quite recall where I saw this, since I think I could not find the git repository that contains the HTML file... |
To display files as from the web in github used "user.github.io"
The js code is primitive, and the Chrome API does not display the full service UUID table for your device. |
If there is a connection break, then this means that the connection timings have gone astray. |
Why did you close this? It is not fixed. |
Version 4.1 introduced a limitation on connection intervals (up to 1000 ms). This is stated in the README repository. I can't solder a capacitor into your thermometers. Entering "devIdEnabled = true;" disrupts all other options. Without determining which device is connected, users experience even more errors with random firmware until the devices are completely inoperable. Linux has only recently fixed some of the bugs and made additions to work with BLE. But there is still no support for Bluetooth 5.0, released in 2016, and most of the utilities are still unpatched. |
As discussed this is NOT about a capacitor on my device but the issue that not all services are returned in the bluetooth implementation (whatever the reason it). Hmm, I would suggest adding a button/checkbox "force recognition of custom firmware" or something, as otherwise I always have to use a patched version of the web flasher... |
I was seeing the same issue using Chromium on Linux (ubuntu 22.10 currently) - what worked for me was to flash them, then remove the pairing for the devices in bluetooth manager, then from a terminal, run |
@bcc thank you! That also works for me. So |
These are standard actions for most OS (operating system). Pairing is required for BLE devices using security. For example, a pin code. In other cases, this is not required. There is an indication in README.md:
The described is not a solution to the issue, since it refers to another incorrect work of Linux. |
Disabling the display is in the new firmware. |
Sorry, I meant the other device in the picture, officially unsupported, that does not have any display at all :) |
Any thermometers with CR2032 have the same problems - they do not tolerate negative temperatures and high humidity. |
I do understand that, however I liked the no display version for aesthetic purposes, bout would not like it if it is not possible to run with your firmware. Regarding running in negative temperatures - I think with soldered capacitors in c26 and c25 it might be ok for some time, i obviously do not expect it to run for a year in that case. |
СR2016...CR2450... discharges rapidly in the temperature range above +25°C and below 0°C. And at negative temperatures, the output voltage drops significantly. |
Depends a lot on the battery manufacturer. A ceramic capacitor is used. They have no polarity. |
The graph on the main page shows the results of the work of two CR2032 in the LYWSD03MMC thermometer version B1.9 on the street with default settings, no capacitors were soldered, thermometer well protected from precipitation. Firmware versions were updated as they were released. At the end, the thermometer itself deteriorated - the consumption current abruptly became huge - something sprouted on the printed circuit board under the chips. Flushing did not give anything. Warming up with a blow dryer eliminated this, but I threw out this thermometer, because there is no guarantee in its normal subsequent operation. |
@pvvx would it make any difference to use a film capacitor instead of a ceramic one for low leakage current? |
See "MAX. DCL" in the documentation for capacitors. ECW-U1105KCV 1uF 100V Plastic Film Capacitor |
That's useful. Thanks! |
I seem not to be able to reconnect and open the config (e.g. for adjusting an offset) after having successfully flashed and used one of these. The flasher does connect, but just gives:
07:41:58: Searching for devices
07:42:01: Connecting to: ATC
07:42:01: Detected custom Firmware
07:42:01: Detected alternative Firmware? Use: https://pvvx.github.io/ATC_MiThermometer/TelinkOTA.html
07:43:13: Settings 55 was send successful
Using the OTA flasher, I can also connect, but still cannot enter the config. The OTA-flasher misses the button for "Get config".
Is there a wa to re-connect for adjusting w/o to re-flash?
Thx in advance
The text was updated successfully, but these errors were encountered: