Skip to content

Instantly share code, notes, and snippets.

@chbeer
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chbeer/a59b655b25962dccfe02 to your computer and use it in GitHub Desktop.
Save chbeer/a59b655b25962dccfe02 to your computer and use it in GitHub Desktop.
Examining Avea via gatttool

Find Avea

pi@raspberrypi ~ $ sudo hcitool lescan
LE Scan ...
…
B4:99:4C:49:4D:7B Avea_7B4D
…

Get Info about Avea

pi@raspberrypi ~ $ sudo gatttool -b B4:99:4C:49:4D:7B -I
[B4:99:4C:49:4D:7B][LE]> connect
Attempting to connect to B4:99:4C:49:4D:7B
Connection successful
[B4:99:4C:49:4D:7B][LE]> primary
attr handle: 0x0001, end grp handle: 0x000b uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000f uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0010, end grp handle: 0x0020 uuid: 0000180a-0000-1000-8000-00805f9b34fb
attr handle: 0x0021, end grp handle: 0x0025 uuid: f815e600-456c-6761-746f-4d756e696368
attr handle: 0x0026, end grp handle: 0x002a uuid: f815e500-456c-6761-746f-4d756e696368
attr handle: 0x002b, end grp handle: 0x0032 uuid: f815e810-456c-6761-746f-4d756e696368
attr handle: 0x0033, end grp handle: 0xffff uuid: f815e900-456c-6761-746f-4d756e696368
[B4:99:4C:49:4D:7B][LE]> char-desc
handle: 0x0001, uuid: 2800
handle: 0x0002, uuid: 2803
handle: 0x0003, uuid: 2a00
handle: 0x0004, uuid: 2803
handle: 0x0005, uuid: 2a01
handle: 0x0006, uuid: 2803
handle: 0x0007, uuid: 2a02
handle: 0x0008, uuid: 2803
handle: 0x0009, uuid: 2a03
handle: 0x000a, uuid: 2803
handle: 0x000b, uuid: 2a04
handle: 0x000c, uuid: 2800
handle: 0x000d, uuid: 2803
handle: 0x000e, uuid: 2a05
handle: 0x000f, uuid: 2902
handle: 0x0010, uuid: 2800
handle: 0x0011, uuid: 2803
handle: 0x0012, uuid: 2a23
handle: 0x0013, uuid: 2803
handle: 0x0014, uuid: 2a24
handle: 0x0015, uuid: 2803
handle: 0x0016, uuid: 2a25
handle: 0x0017, uuid: 2803
handle: 0x0018, uuid: 2a26
handle: 0x0019, uuid: 2803
handle: 0x001a, uuid: 2a27
handle: 0x001b, uuid: 2803
handle: 0x001c, uuid: 2a28
handle: 0x001d, uuid: 2803
handle: 0x001e, uuid: 2a29
handle: 0x001f, uuid: 2803
handle: 0x0020, uuid: 2a50
handle: 0x0021, uuid: 2800
handle: 0x0022, uuid: 2803
handle: 0x0023, uuid: f815e601-456c-6761-746f-4d756e696368
handle: 0x0024, uuid: 2902
handle: 0x0025, uuid: 2901
handle: 0x0026, uuid: 2800
handle: 0x0027, uuid: 2803
handle: 0x0028, uuid: f815e501-456c-6761-746f-4d756e696368
handle: 0x0029, uuid: 2902
handle: 0x002a, uuid: 2901
handle: 0x002b, uuid: 2800
handle: 0x002c, uuid: 2803
handle: 0x002d, uuid: f815e811-456c-6761-746f-4d756e696368
handle: 0x002e, uuid: 2902
handle: 0x002f, uuid: 2901
handle: 0x0030, uuid: 2803
handle: 0x0031, uuid: f815e812-456c-6761-746f-4d756e696368
handle: 0x0032, uuid: 2901
handle: 0x0033, uuid: 2800
handle: 0x0034, uuid: 2803
handle: 0x0035, uuid: f815e901-456c-6761-746f-4d756e696368
handle: 0x0036, uuid: 2902
handle: 0x0037, uuid: 2901
handle: 0x0038, uuid: 2803
handle: 0x0039, uuid: f815e902-456c-6761-746f-4d756e696368
handle: 0x003a, uuid: 2902
handle: 0x003b, uuid: 2901
Discover descriptors finished: No attribute found within the given range

Read Data

pi@raspberrypi ~ $ sudo gatttool -b B4:99:4C:49:4D:7B --char-read --handle <handle-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment