This patch adds decoding for following commands:
LE Set Periodic Advertising Parameters
LE Set Periodic Advertising Data
LE Set Periodic Advertising Enable
< HCI Command: LE Set Periodic Advertising Parameters (0x08|0x003e) plen 7
Handle: 1
Min interval: 2.50 msec (0x0002)
Max interval: 318.75 msec (0x00ff)
Properties: 0x00ff
Include TxPower
Unknown advertising properties (0x00bf)
< HCI Command: LE Set Periodic Advertising Data (0x08|0x003f) plen 7
Handle: 1
Operation: Last fragment (0x02)
Data length: 0x04
ff 00 ff 00 ....
< HCI Command: LE Set Periodic Advertising Enable (0x08|0x0040) plen 2
Periodic advertising: Enabled (0x01)
Handle: 2
This patch adds decoding for following commands:
LE Set Advertising Set Random Address
LE Set Extended Advertising Parameters
LE Set Extended Advertising Data
LE Set Extended Scan Response Data
LE Set Extended Advertising Enable
LE Read Maximum Advertising Data Length
LE Read Number of Supported Advertising Sets
LE Remove Advertising Set
LE Clear Advertising Sets
LE Advertising Set Terminated Event
LE Scan Request Received Event
< HCI Command: LE Set Advertising Set Random Address (0x08|0x0035) plen 7
Advertising handle: 0x00
Advertising random address: 0A:0B:0C:0D:0E:0F (OUI 0A-0B-0C)
< HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen 25
Handle: 0x00
Properties: 0x0005
Connectable
Directed
Min advertising interval: 30.000 msec (0x0030)
Max advertising interval: 60.000 msec (0x0060)
Channel map: 37, 38, 39 (0x07)
Own address type: Public (0x00)
Peer address type: Public (0x00)
Peer address: 00:11:22:33:44:55 (CIMSYS Inc)
Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
TX power: 127 dbm (0x7f)
Primary PHY: LE Coded (0x03)
Secondary max skip: 0x00
Secondary PHY: LE Coded (0x03)
SID: 0x00
Scan request notifications: Disabled (0x00)
< HCI Command: LE Set Extended Advertising Data (0x08|0x0037) plen 39
Handle: 0x00
Operation: Complete extended advertising data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x23
16-bit Service UUIDs (partial): 1 entry
Unknown (0x1234)
128-bit Service UUIDs (partial): 1 entry
Vendor specific (0f0e0d0c-0b0a-0908-0706-050403020100)
Name (short): device-name
< HCI Command: LE Set Extended Scan Response Data (0x08|0x0037) plen 39
Handle: 0x00
Operation: Complete extended advertising data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x23
16-bit Service UUIDs (partial): 1 entry
Unknown (0x1234)
128-bit Service UUIDs (partial): 1 entry
Vendor specific (0f0e0d0c-0b0a-0908-0706-050403020100)
Name (short): device-name
< HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 24
Extended advertising: Enabled (0x01)
Number of sets: 2 (0x02)
Entry 0
Handle: 0xff
Duration: 0 ms (0x00)
Max ext adv events: 0
Entry 1
Handle: 0x00
Duration: 0 ms (0x00)
Max ext adv events: 1
< HCI Command: LE Remove Advertising Set (0x08|0x003c) plen 1
Handle: 1
This patch adds decoding for following commands:
LE Enhanced Receiver Test
LE Enhanced Transmitter Test
< HCI Command: LE Enhanced Receiver Test (0x08|0x0033) plen 3
RX channel: 0x01
PHY: LE 1M (0x01)
Modulation index: Stable (0x01)
< HCI Command: LE Enhanced Transmitter Test (0x08|0x0034) plen 4
TX channel frequency: 2402 MHz (0x00)
Test data length: 255 bytes
Packet payload: 0x01
PHY: LE Coded with S=8 (0x03)
This adds basic decoding for Mesh Data packets such as:
> HCI Event: LE Meta Event (0x3e) plen 43
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 29:3C:CE:85:C7:3D (Non-Resolvable)
Data length: 31
Mesh Data: 37cb3a2bdfca0783b10833cfbdc9e691b0d58b2dada00269181477c901
IV: 1
NID: 0x1b
RSSI: -28 dBm (0xe4)
This adds basic decoding for Mesh Provisioning packets such as:
< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32
Length: 24
Mesh Provision: 024874cb0003dddd0000000000000000000000000000
Link ID: 0x024874cb
Transaction Number: 0
Provisioning Bearer Control (0x03)
Link Open (0x00)
Device UUID: 03dddd00000000000000000000000000
> HCI Event: LE Meta Event (0x3e) plen 20
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 34:11:85:DC:41:39 (Non-Resolvable)
Data length: 8
Mesh Provision: 024874cb0007
Link ID: 0x024874cb
Transaction Number: 0
Provisioning Bearer Control (0x03)
Link Ack (0x01)
RSSI: -28 dBm (0xe4)
Print out mesh type and payload:
> HCI Event: LE Meta Event (0x3e) plen 33
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 29:D0:F2:61:17:B0 (Non-Resolvable)
Data length: 21
Mesh Data: 59a7ddee2e1f580463521b98c40c2a3b5086c6
RSSI: -72 dBm (0xb8)
This is similar to SCO which disable audio dumping by default so only
signalling data is shown:
< ACL Data TX: Handle 256 flags 0x02 dlen 850 #6041 11:32:29.299212
Channel: 451 len 846 [PSM 25 mode 0] {chan 2}
In order to enable decoding control frames packet_monitor needs to check
if the index is set to HCI_DEV_NONE since that will call packet_ctrl_open
which setups the ctrl and assign it a cookie.
< HCI Command: LE Set PHY (0x08|0x0032) plen 7
Handle: 1
All PHYs preference: 0x00
TX PHYs preference: 0x07
LE 1M
LE 2M
LE Coded
RX PHYs preference: 0x07
LE 1M
LE 2M
LE Coded
PHY options preference: S8 coding (0x0002)
< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3
All PHYs preference: 0x00
TX PHYs preference: 0x07
LE 1M
LE 2M
LE Coded
RX PHYs preference: 0x0e
LE 2M
LE Coded
Reserved (0x08)
< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3
All PHYs preference: 0x03
No TX PHY preference
No RX PHY preference
TX PHYs preference: 0x00
RX PHYs preference: 0x00
This makes btmon print friendly names for UUID 128 bits if they exists:
> HCI Event: LE Meta Event (0x3e) plen 33
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: 00:1B:DC:07:31:88 (Vencer Co., Ltd.)
Data length: 21
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
128-bit Service UUIDs (complete): 1 entry
Eddystone Configuration Service (a3c87500-8ed3-4bdf-8a39-a01bebede295)
RSSI: -30 dBm (0xe2)