gatttool -b 8C:CE:FD:56:B2:85 -I
[8C:CE:FD:56:B2:85][LE]> connect
Attempting to connect to 8C:CE:FD:56:B2:85
Connection successful
list services:
primary
attr handle: 0x0001, end grp handle: 0x0004 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0005, end grp handle: 0x000d uuid: 00001800-0000-1000-8000-00805f9b34fb
list characteristics:
characteristics
handle: 0x0002, char properties: 0x20, char value handle: 0x0003, uuid: 00002a05-0000-1000-8000-00805f9b34fb
handle: 0x0006, char properties: 0x02, char value handle: 0x0007, uuid: 00002a00-0000-1000-8000-00805f9b34fb
read uuid and get handle and value:
[8C:CE:FD:56:B2:85][LE]> char-read-uuid 00000001-0000-1000-8000-00805f9b34fb
handle: 0x0031 value: 01
read value by handle:
[8C:CE:FD:56:B2:85][LE]> char-read-hnd 0x0031
Characteristic value/descriptor: 01
send characteristic value (request):
char-write-req 0x0016 0000
Characteristic value was written successfully
send characteristic value (no response):
char-write-cmd
bluetoothctl
bluetooth info 8C:CE:FD:56:B2:85
Device 8C:CE:FD:56:B2:85 (public)
Name: Redmi Smart Band 2 B285
Alias: Redmi Smart Band 2 B285
Appearance: 0x00c2
Paired: yes
Bonded: yes
Trusted: no
Blocked: no
Connected: yes
LegacyPairing: no
UUID: SDP (00000001-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Human Interface Device (00001812-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fdab-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fe95-0000-1000-8000-00805f9b34fb)
ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
ServiceData Value:
10 59 82 2a 00 85 b2 56 fd ce 8c .Y.*...V...
ServiceData Key: 0000fdab-0000-1000-8000-00805f9b34fb
ServiceData Value:
01 01 ..
[M585/M590]#
bluetoothctl pair 8C:CE:FD:56:B2:85
Attempting to pair with 8C:CE:FD:56:B2:85
[CHG] Device 8C:CE:FD:56:B2:85 Connected: yes
[CHG] Device 8C:CE:FD:56:B2:85 Bonded: yes
[CHG] Device 8C:CE:FD:56:B2:85 UUIDs: 00000001-0000-1000-8000-00805f9b34fb
[CHG] Device 8C:CE:FD:56:B2:85 UUIDs: 0000fe95-0000-1000-8000-00805f9b34fb
[CHG] Device 8C:CE:FD:56:B2:85 ServicesResolved: yes
[CHG] Device 8C:CE:FD:56:B2:85 Paired: yes
[NEW] Primary Service (Handle 0x0000)
/org/bluez/hci0/dev_8C_CE_FD_56_B2_85/service0001
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
[NEW] Characteristic (Handle 0x0000)
/org/bluez/hci0/dev_8C_CE_FD_56_B2_85/service0001/char0002
00002a05-0000-1000-8000-00805f9b34fb
Service Changed
[NEW] Descriptor (Handle 0x0000)
/org/bluez/hci0/dev_8C_CE_FD_56_B2_85/service0001/char0002/desc0004
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
[NEW] Primary Service (Handle 0x0000)
/org/bluez/hci0/dev_8C_CE_FD_56_B2_85/service000e
0000fe95-0000-1000-8000-00805f9b34fb
Xiaomi Inc.
Pairing successful
[CHG] Device 8C:CE:FD:56:B2:85 Appearance: 0x00c2
useful tools: