huangxz的笔记 https://bbs.21ic.com/?73035 [收藏] [复制] [RSS]

日志

gatttool memory

已有 337 次阅读2020-11-11 09:55 |系统分类:兴趣爱好


goooooo@narcissus:/home/daisy/bluepy_association$ gatttool -b 68:0A:E2:28:81:1E -I
[68:0A:E2:28:81:1E][LE]> connect
Attempting to connect to 68:0A:E2:28:81:1E
Connection successful
[68:0A:E2:28:81:1E][LE]> primary
attr handle: 0x0001, end grp handle: 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0x0011 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0012, end grp handle: 0x0016 uuid: 0000180a-0000-1000-8000-00805f9b34fb
attr handle: 0x0017, end grp handle: 0x0023 uuid: 00001809-0000-1000-8000-00805f9b34fb
attr handle: 0x0024, end grp handle: 0xffff uuid: 1d14d6ee-fd63-4fa1-bfa4-8f47b42119f0
[68:0A:E2:28:81:1E][LE]> characteristics 0x9 0x11
handle: 0x000a, char properties: 0x0a, char value handle: 0x000b, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x000c, char properties: 0x02, char value handle: 0x000d, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x000e, char properties: 0x18, char value handle: 0x000f, uuid: f08ee173-8e93-4cba-c104-e2b59eee79aa
[68:0A:E2:28:81:1E][LE]> char-write-req 0xf 99339933
Characteristic value was written successfully
[68:0A:E2:28:81:1E][LE]> char-read-hnd 0xf
Error: Characteristic value/descriptor read failed: Attribute can't be read
[68:0A:E2:28:81:1E][LE]> char-read-hnd 0x10
Characteristic value/descriptor: 00 00
[68:0A:E2:28:81:1E][LE]> char-write-req 0x10 0100
Characteristic value was written successfully
[68:0A:E2:28:81:1E][LE]> char-write-req 0xf 11223344
Characteristic value was written successfully
Notification handle = 0x000f value: 6f 6b
[68:0A:E2:28:81:1E][LE]> disconnect

(gatttool:25052): GLib-WARNING **: 09:44:52.365: Invalid file descriptor.
[68:0A:E2:28:81:1E][LE]>

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)