Comments (8)
Firmware Ver 0.8, Advertising data:
struct _packed_ {
uint8_t size; // = 18
uint8_t uid; // = 16, 16-bit UUID
uint16_t UUID; // = 0x181A, GATT Service 0x181A Environmental Sensing
uint8_t mac[6];
int16_t temperature; // x 0.01 degree
int16_t humidity; // x 0.01 %
uint16_t battery_mv; // mV
uint8_t battery_level; // %
uint8_t counter; // measurement number
uint8_t flags;
} adv_custom_t;
from atc_mithermometer.
Thanks - didn't realise that you'd changed the structure of the advertising. Will need to modify my code accordingly
from atc_mithermometer.
does that mean the FW is no longer compatible with Tasmota BLE or similar?
I ask before I update ...
from atc_mithermometer.
Advertising Mi
// 16-bit UUID for Members 0xFE95 Xiaomi Inc. https://btprodspecificationrefs.blob.core.windows.net/assigned-values/16-bit%20UUID%20Numbers%20Document.pdf
typedef struct __attribute__((packed)) _adv_mi_t {
uint8_t size; // = 21
uint8_t uid; // = 0x16, 16-bit UUID https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile/
uint16_t UUID; // = 0xFE95, 16-bit UUID for Members 0xFE95 Xiaomi Inc.
uint16_t flg; //
uint16_t dev_id; //
uint8_t counter; // measurement number
uint8_t MAC[6];
// +15: 0x0A, 0x10, 0x01, t_lv, 0x02, b_lo, b_hi
// +15: 0x0D, 0x10, 0x04, t_lo, t_hi, h_lo, h_hi
uint8_t data_id; // = 0x0A or 0x0D
uint8_t nx10; // ? = 0x10
union {
struct {
uint8_t id1; // = 0x01
uint8_t battery_level; // 0..100 %
uint8_t id2; // = 0x02
uint16_t battery_mv;
}t0a;
struct {
uint8_t id; // = 0x04
int16_t temperature; // x 0.1 degree ?
uint16_t humidity; // x 0.01 % ?
}t0d;
};
} adv_mi_t, * padv_mi_t;
from atc_mithermometer.
does that mean the FW is no longer compatible with Tasmota BLE or similar?
Advertising format 'Tasmota BLE' ?
Data format: little-endian / big-endian ?
Xiaomi used little-endian. Firmware atc1441 - big-endian.
My - little-endian.
from atc_mithermometer.
"tasmota BLE MI ESP32" currently receives either ATC-like or MI-like (original FW, encrypted with KEY or unencrypted for LYWSD02), MI-Like with ATC-FW does not work, no data (4. Sensor in the screenshot).
I therefore assume that your current version no longer works with Tasmota either
from atc_mithermometer.
The firmware revision is not over yet. The Advertising format will change in new versions ...
Current versions have a status - alpha (test only).
from atc_mithermometer.
"tasmota BLE MI ESP32" currently receives ...
Tasmota is Proprietary Software. No spec and open-source. This is not supported. Likewise, there will be no normal support ESP32 - is just another proprietary product.
from atc_mithermometer.
Related Issues (20)
- After flashing LYWSD03MMC to zigbee, how to add it to Mijia?
- Off topic: hacking TLSR8258 based PETKIT water fountain HOT 2
- MJWSD05MMC activating hangs, no response for half an hour HOT 1
- Hardware version number corrupted on og firmware HOT 3
- Battery stucks at 100% for months with LYWSD03MMC HOT 1
- How can Calibrate LYWSD03MMC after flashing zigbee firmware HOT 1
- (Custom firmware for Tuya devices on the PHY622x2 chipse) THB1 жив ли? HOT 1
- Using Bluetooth-Versions as Tracker for Googles Find my Device? HOT 6
- (Zigbee firmware) MHO-C401 - display frozen HOT 7
- LYWSD03MMC flashing HOT 1
- Reed switch not working with BTHome v2. HOT 6
- [feature request] LYWSD03MMC hide bluetooth broadcast device name ?? HOT 2
- Question: How can I reconnect the Xiaomi Mijia (LYWSD03MMC) with Zigbee Firmware HOT 1
- How to restore Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130 on HW: B2 HOT 1
- TS0201 _TZ3000_fllyghyj TH02Z Zigbee TO BLE HOT 1
- Integrate absolute humidity calculation and display it beside temperature and relative humidity HOT 13
- where to purchase LYWSD03MMC with SHT4x
- Failed when using TLSR825x USB-COM Flash Writer v0.4 to flashing TS0201_TZ3000_xr3htd96 HOT 3
- Count/switch not visible in advertisments HOT 2
- LYWSD03MMC-z lost settings after update HOT 1
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.