From b8b4083c179e93e1a0ee1c3f784313a3f60ad6fe Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 2 Apr 2024 16:16:22 -0400 Subject: [PATCH] monitor: Decode PA data This attempts to decode the PA data content: Before: > HCI Event: LE Meta Event (0x3e) plen 46 LE Periodic Advertising Report (0x0f) Sync handle: 1 TX power: 127 dbm (0x7f) RSSI: not available (0x7f) CTE Type: No Constant Tone Extension (0xff) Data status: Complete Data length: 0x26 25 16 51 18 28 00 00 01 01 06 00 00 00 00 11 02 %.Q.(........... 01 03 02 02 01 05 03 01 00 00 00 03 04 28 00 04 .............(.. 03 02 02 00 01 00 After: > HCI Event: LE Meta Event (0x3e) plen 46 LE Periodic Advertising Report (0x0f) Sync handle: 1 TX power: 127 dbm (0x7f) RSSI: not available (0x7f) CTE Type: No Constant Tone Extension (0xff) Data status: Complete Data length: 0x26 Service Data: Basic Audio Announcement (0x1851) Presetation Delay: 40 Number of Subgroups: 1 Subgroup #0: Number of BIS(s): 1 Codec: LC3 (0x06) Codec Specific Configuration: #0: len 0x02 type 0x01 Codec Specific Configuration: Sampling Frequency: 16 Khz (0x03) Codec Specific Configuration: #1: len 0x02 type 0x02 Codec Specific Configuration: Frame Duration: 10 ms (0x01) Codec Specific Configuration: #2: len 0x05 type 0x03 Codec Specific Configuration: Location: 0x00000001 Codec Specific Configuration: Location: Front Left (0x00000001) Codec Specific Configuration: #3: len 0x03 type 0x04 Codec Specific Configuration: Frame Length: 40 (0x0028) Metadata: #0: len 0x03 type 0x02 Metadata: Context: 0x0002 Metadata: Context Conversational (0x0002) BIS #0: Index: 1 --- monitor/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/packet.c b/monitor/packet.c index 3c32735b7..d1d0c79b3 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -11520,7 +11520,7 @@ static void le_pa_report_evt(struct timeval *tv, uint16_t index, print_field("Data status: %s%s%s", color_on, str, COLOR_OFF); print_field("Data length: 0x%2.2x", evt->data_len); - packet_hexdump(evt->data, evt->data_len); + print_eir(evt->data, evt->data_len, true); } static void le_pa_sync_lost_evt(struct timeval *tv, uint16_t index, -- 2.47.3