Comments (5)
That is a good catch, also here the stock firmware does advertise the service uuid all the time so it cant be that bad, they send about 8 bytes less when not sending the Sensor data so yes its not so much but still the rest.
What i could imagine what draws a lot is the measuring of the battery voltage. did set that to only do on advertising interval on even less, like every 5 minutes or so for now.
Just added it
from atc_mithermometer.
Also added to display the battery level as percent on the LCD indicated via the battery symbol
from atc_mithermometer.
There is already an closed issue ablut that topic.
The thing is that BLE is way more often active. For the Stock firmware every 1700ms and for the custom firmware every 1900ms in that period it will advertise its name and additional data like the advertising data.
On stock firmware the advertising data is only once every ten minutes the Sensor data and all the other time it is just 0x08 so even then it will be transmitted. Hope its understandable.
So in theory even changeing the advertising data every 5 seconds should not drain more power but i am not 100% shure about it
from atc_mithermometer.
Sorry about sort of a duplicate ticket. I indeed didn't check that out.
Wow, I didn't expect it was that active by default. It's insane that it could work for 6 months or more by stock firmware. With only deep sleep it could reach 4 years I check, according to your tweets 😂
I guess really sending a lot of updates would drain the battery more, but that is only a feeling, as I don't have any experience with all of this.
from atc_mithermometer.
Well there is one thing to consider: Sending more data in the advertisment means the transmitter has to send more data, which means more power consumption. So even if the adv frequency is the same, it might be bad for the battery if more data is sent.
from atc_mithermometer.
Related Issues (20)
- Can't activate Mijia thermometer, connection established, got data HOT 1
- battery life expectation HOT 1
- "Not found Telink UUID service!" when connecting HOT 2
- MHO-C201 (2019) is it possible to support?
- Problem detected with negative temperature (data send via bluetooth)
- GATT Server is disconnected. Cannot retrieve services. (Re)connect first with `device.gatt.connect`. Detected custom Firmware HOT 6
- Extented temperature range possible for Xiaomi Mi sensor?
- Not supported on new device HOT 1
- "Advertising interval" term is missused? HOT 4
- Compatibility with TH05? HOT 2
- CGG1-M 2022 shows 0,0°C temperature and 0% humidity
- LCD Refresh interval longer than 12.x seconds
- Qingping CGDK2 zigbee fw shows wrong temp HOT 1
- New device from Xiaomi: XMWSDJ04MMC HOT 1
- Problem activating LYWSD03MMC v2.1.1_0159 HOT 2
- Lost Advertising Type after Battery change HOT 1
- ad interval setting seems to not work HOT 2
- lywsd03mmc not flashing with new firmware HOT 1
- Random bind key
- Force into pairing mode. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atc_mithermometer.