Coder Social home page Coder Social logo

Strange readings about atc_mithermometer HOT 8 CLOSED

pvvx avatar pvvx commented on August 22, 2024
Strange readings

from atc_mithermometer.

Comments (8)

pvvx avatar pvvx commented on August 22, 2024

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.

rjblake avatar rjblake commented on August 22, 2024

Thanks - didn't realise that you'd changed the structure of the advertising. Will need to modify my code accordingly

from atc_mithermometer.

ralf-e avatar ralf-e commented on August 22, 2024

does that mean the FW is no longer compatible with Tasmota BLE or similar?
I ask before I update ...

from atc_mithermometer.

pvvx avatar pvvx commented on August 22, 2024

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.

pvvx avatar pvvx commented on August 22, 2024

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.

ralf-e avatar ralf-e commented on August 22, 2024

"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

Screenshot_2021-01-02 tasmota-BLE-3 - Main Menu

from atc_mithermometer.

pvvx avatar pvvx commented on August 22, 2024

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.

pvvx avatar pvvx commented on August 22, 2024

"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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.