https://github.com/relan/millet
Command line tool for Xiaomi Mi Band
https://github.com/relan/millet
Last synced: about 1 year ago
JSON representation
Command line tool for Xiaomi Mi Band
- Host: GitHub
- URL: https://github.com/relan/millet
- Owner: relan
- License: gpl-3.0
- Archived: true
- Created: 2017-04-04T04:53:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T19:36:10.000Z (over 8 years ago)
- Last Synced: 2025-06-13T16:11:37.087Z (about 1 year ago)
- Size: 12.7 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
About
-----
Millet is a command line tool for
[Xiaomi Mi Band](https://en.wikipedia.org/wiki/Xiaomi_Mi_Band). It was created
to reverse engineer the protocol but can also be useful for end users. Requires
[BlueZ](http://www.bluez.org) and [expect](http://expect.sourceforge.net).
Usage
-----
First of all you need to find out the Bluetooth MAC address of your band:
$ sudo hcitool lescan
LE Scan ...
88:0F:10:EC:70:22 (unknown)
88:0F:10:EC:70:22 MI
Then use it to connect:
$ ./millet 88:0F:10:EC:70:22
spawn gatttool -I -b 88:0F:10:EC:70:22
connect
[88:0F:10:EC:70:22][LE]> connect
Attempting to connect to 88:0F:10:EC:70:22
Connection successful
[88:0F:10:EC:70:22][LE]> char-read-uuid ff01
handle: 0x0012 value: 88 9d 87 b8 00 00 02 8e 00 06 00 02 0e 0a 00 01
[88:0F:10:EC:70:22][LE]> Firmware: 1.0.10.14
char-read-uuid ff0c
handle: 0x002c value: 33 11 0a 19 11 02 34 0c 00 04
[88:0F:10:EC:70:22][LE]> Battery: 51%, 12 cycles, last charge 2017-11-25
char-read-uuid ff06
handle: 0x001d value: b7 30 00 00
[88:0F:10:EC:70:22][LE]> Steps: 12471