-
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
LYWSD03MMC freezes after random time #573
Comments
It looks like a connection is being made and something is being entered into the thermometer configuration.
I had more during tests. For example, ESP32 with BLE connection and active data reading can drain the battery of any BLE device in a short time. The reason is that ESP32 does not have time to process BLE communication and the device has to repeat transmissions many times before confirmation. Consumption increases 50 times, compared to a regular BT adapter. |
Oki, I will try pin code idea, will report back. Though I would expect that small bluetooth sign on frozen screen, if something would make connection before freeze, so frozen screen would have that sign. But I do not have it, screen shows just temperature and humidity or battery reading. And I would expect atc1441 freeze the same then. |
Hello! |
When the voltage drops below the operating level, the thermometer enters sleep mode for 2..3 minutes. |
The capacitor capacity is not enough to maintain power when starting a BLE connection. But if the supply voltage drops sharply, the processor will not have time to switch all its components to sleep mode, but will turn off according to the internal sensor... Then the battery is no longer able to charge the capacitor and the spontaneously turned off chip... The normal process looks like this: The same applies when powered by a solar battery... The firmware from atc1441 has a smaller information table of services, which is read by the external adapter when connected. And here there is a direct dependence on the external adapter - on its settings of connection timings at the initial stage of connection. If they are short, then this is a large load on the thermometer battery. Since it requires the thermometer to transfer all the indices of available services in a short period of time. And this is a requirement from the external adapter. The thermometer itself transmits other connection timing settings to it, and they are also described in a special UUID service. But switching to long intervals in the external adapter occurs significantly later and everything depends on external adapter... I will not fully retell the Bluetooth standards here... |
I have some 12 LYWSD03MMC sensors around the house. 2 of them do freeze at random intervals, it might be week working or just some hours. Display is set to show humidity and battery, and while frozen values do not alternate any more. I take out battery, put it back and sensor works again. Battery is drained (level depends how fast I notice outage) and slowly recovers (can see on the graph). If I flash sensor with atc1441 image, it works for years without problem (setup and sensors working since 2020, wanted to move to more advanced image). I have v1.4 and v1.5 hw, both show the same behaviour. It seems location related, I would expect drops in readings, but cannot understand why sensor should freeze. Gateway is openmqttgateway if that matters, both active and passive modes are same. May be some ideas what could be the issue?
The text was updated successfully, but these errors were encountered: