Mi Home BLE Device Development Guide

Mi Home BLE Device Development Guide

This article will describe the development process of Mi Home BLE devices from three aspects: the Xiaomi Developer Platform, embedded software, and extension programs. The focus here is mainly on introducing the core development steps, while the content that can be completed independently by referring to the documentation will not be elaborated upon.1. Developer Platform … Read more

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

01Introduction: The DSPS (Dialog Serial Port Service) protocol stack is based on the BLE GATT protocol to implement serial data transmission. The core process is divided into four stages: initialization, connection management, data transmission, and low power control. Initialization → Broadcasting/Scanning → Establishing Connection → Data Transmission → Sleep/Wake → Disconnect → Loop 02Detailed Flowchart … Read more

Significant Update on CCC Digital Key Certification! Now Includes UWB and BLE

Significant Update on CCC Digital Key Certification! Now Includes UWB and BLE

[Image] Source: Smart Communication and Positioning Circle [Image] As an authoritative organization that enhances consumer experience through standardized, secure, and convenient interconnected solutions, the Car Connectivity Consortium (CCC) has recently announced that its CCC Digital Key™ certification program now encompasses Low Energy Bluetooth (BLE) and Ultra-Wideband (UWB) technologies…

Learning BLE from Scratch: Connection (Part 2)

Learning BLE from Scratch: Connection (Part 2)

Although our article is titled “Connection”, we are still within the scope of broadcast packets. Why is that?Do you remember the types of broadcasts we introduced?Among them, CONNECT_REQ, also known as CONNECT_IND, is the initiator’s connection request.Broadcast Packet TypesCONNECT_IND PacketDo you remember what this header means?Broadcast Packet HeaderBroadcast Packet Structure When introducing broadcasts, the following … Read more

Cat-Localizer: Build Your Cat Tracker with BLE Beacons, ESP32, and Machine Learning

Cat-Localizer: Build Your Cat Tracker with BLE Beacons, ESP32, and Machine Learning

Is your cat always elusive at home, driving you crazy? Don’t worry! Today, we will unveil a powerful cat localization system based on BLE beacons, ESP32, and machine learning—Cat-Localizer! It can help you track your cat’s location in real-time, putting an end to the troubles of “cat searching”! How Cat-Localizer Works The core idea of … Read more

Understanding Mi Home BLE Devices

Understanding Mi Home BLE Devices

With the opening of the Mi Home platform, many BLE devices have been integrated, such as sensors (temperature and humidity meters, door/window sensors, water immersion sensors, etc.), toothbrushes, water cups, fascia guns, and more. BLE devices typically have several notable characteristics: battery-powered/low power consumption, and direct communication with mobile phones over short distances. When integrating … Read more

Learning BLE from Scratch: Controlling Devices

Learning BLE from Scratch: Controlling Devices

Previously, we introduced the process of discovering services and characteristics. Today, let’s take a look at what happens next.In the software, we click to control the light to turn it on and off. The data sent by the host is as follows:Captured dataOperation codeOperation code 0x12: write request.Write requestWriting the value 0x0001 to the attribute … Read more

A Reverse Engineering Journey of the Xiaomi Mi Band BLE Communication Protocol

A Reverse Engineering Journey of the Xiaomi Mi Band BLE Communication Protocol

AuthorForum Account:FinchK 0x0 Introduction As a pure beginner in reverse engineering, I have been involved in it for about two months. I have a Xiaomi Mi Band 4 NFC version, which has the built-in Xiao Ai assistant that can engage in voice conversations to control smart home devices and perform operations such as setting alarms. … Read more

Learning BLE from Scratch: Discovering Services and Characteristics

Learning BLE from Scratch: Discovering Services and Characteristics

Through previous studies, we learned that BLE devices act as servers, storing some data, while clients achieve corresponding functions by reading, writing, and configuring this data. Previously, we learned about broadcasting and connections; today, let’s take a look at what happens after a connection is established.Discovery of Services and CharacteristicsAfter a device establishes a connection, … Read more

Comparison of BLE and SparkLink SLE Protocols

Comparison of BLE and SparkLink SLE Protocols

The BLE protocol is established by the Bluetooth Special Interest Group and is widely used in short-range communication fields with low power requirements, such as smartwatches, fitness bands, smart lighting, and mice. The protocol is relatively mature. The SparkLink technology, introduced by Huawei, is a new wireless communication standard, with the SLE (SparkLink Low Energy) … Read more