Skip to content

Commit 8c11102

Browse files
author
Ronny Hansen
committed
Code updated to SDK v2.1
Code refactored to dump more information For details see the updated README.MD
1 parent b4c514a commit 8c11102

File tree

2 files changed

+475
-54
lines changed

2 files changed

+475
-54
lines changed

BLE/scanner/README.md

+48-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,48 @@
1-
WARNING .... This is a VERY EARLY piece of work ... it is far from finished.
1+
# BLE GAP DUMP
2+
3+
Code updated to support SDK v2.1
4+
5+
Supports dumping of Bluetooth GAP frames.
6+
For more information about [Bluetooth Generic Access Profile](https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile)
7+
8+
It will dump the header and then start dumping the payload.
9+
Also added is decoding of some payloads frames
10+
11+
In addition to dumping raw frames, the code supports decoding of some frames.
12+
Frames that support decoding:
13+
* 0x16, Subtype 0x1809 Temperature
14+
* 0x16, Subtype 0x180F Battery
15+
* 0x09, Complete local name
16+
17+
18+
|EXAMPLE FRAME DUMP|
19+
|----|
20+
|I (88679) ble1: Device address (bda): ea:ed:37:7a:0f:34|
21+
|I (88689) ble1: Device type : ESP_BT_DEVICE_TYPE_BLE|
22+
|I (88689) ble1: Search_evt : ESP_GAP_SEARCH_INQ_RES_EVT|
23+
|I (88689) ble1: Addr_type : BLE_ADDR_TYPE_RANDOM|
24+
|I (88699) ble1: RSSI : -85|
25+
|I (88699) ble1: Flag : 4|
26+
|I (88709) ble1: num_resps : 1|
27+
|I (88709) ble1: # Payload type: 0x01 (Flags), length: 2|
28+
|I (88719) ble1: * Payload: 04:09 (..)|
29+
|I (88719) ble1: # Payload type: 0x09 (Complete Local Name), length: 9|
30+
|I (88729) ble1: # Complete local name: 43F0DEAE|
31+
|I (88739) ble1: * Payload: 34:33:46:30:44:45:41:45:07 (43F0DEAE.)|
32+
|I (88739) ble1: # Payload type: 0x16 (Service Data - 16-bit UUID), length: 7|
33+
|I (88749) ble1: @ 0x1809 Temperature 28.540000|
34+
|I (88759) ble1: * Payload: 09:18:26:0B:00:FE:04 (..&....)|
35+
|I (88759) ble1: # Payload type: 0x16 (Service Data - 16-bit UUID), length: 4|
36+
|I (88769) ble1: @ 0x180F Battery 100 %|
37+
|I (88769) ble1: * Payload: 0F:18:64:00 (..d.)|
38+
|I (88779) ble1: Payload total length: 26|
39+
|I (88779) ble1:|
40+
41+
42+
I have added prefix to the payload dump to make it easier to read
43+
44+
|Tag| Description |
45+
|---|--- |
46+
|\# | Payload information on the frame level (typical "Frame type" + "Frame length") |
47+
|\* | Raw frame dump (excluding "Frame type")|
48+
|\@ | 16-BIT UUID frames that are decoded (P.t. only 0x1809 and 0x180F is implemented)|

0 commit comments

Comments
 (0)