Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.82 KB

File metadata and controls

54 lines (31 loc) · 1.82 KB

Air Detector Lite

About CGDN1

  • Qingping 'Air Monitor Lite' CGDN1
  • Has sensors to relay temperature, humidity, CO2 and PM 2.5/10
  • Uses WiFi once setup through the official application (either Qingping+ or Xiaomi Home)
  • Uses Bluetooth Low Energy (BLE) once enabled through Xiaomi Home (> "additional settings" > "BLE Gateway")
  • A 18650 battery is used as internal power source

Protocol

The device uses BLE GATT for communication.
Sensor values are immediately available for reading.

BLE & GATT

The basic technologies behind the sensors communication are Bluetooth Low Energy (BLE) and GATT. They allow the devices and the app to share data in a defined manner and define the way you can discover the devices and their services. In general you have to know about services and characteristics to talk to a BLE device.

Endianness

Data structure

Bluetooth payload data typically uses little-endian byte order.
This means that the data is represented with the least significant byte first.

To understand multi-byte integer representation, you can read the endianness Wikipedia page.

Services, characteristics and handles

The name advertised by the devices is Qingping Air Monitor Lite.

TODO

Historical data

TODO

Advertisement data

CGDN1 broadcast sensor values over service data with the 0xFDCD 16 bits service UUID.

Check out the Qingping protocol page to get more information on advertisement data for this device.

Reference

[1] -

License

MIT