From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796215979; b=IhSHAmvhxwZW9wK/+czMyNChsxv50EAmylMI/km80eF0D1kkCS423wcLqvyZ0MCuBSlA F3mrTRIIgtD6TYho3X4wLJD+KgRGubpEyPShHuaVaLkNn0TG2axtSt6loq/tM5kBm6DN8 c3Mc5S+/G8Z2ndX0FUa4vuolVt2AWWcKWiFaIo7+hska8mxjNrVw9UmGLGvfepUo+Tdxm XwX2LjvYS2b1vgCE1Z4dyjFrgWBsa3fcxzCDN6Q/kxSS6b/Sim26yLCsZ3ghA5ocKs/x3 OQPlREQngcLAqPNkPpZefTkyqa7S7+qF9Arx7q2xokocY7+lCQoeh7fBjukj36+hKvg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215979; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=LYEZF1hYniDhqBrXBZGP9qMxqFi5c0vOmXixnMqtpUY=; b=5Xv9vr4GGiMDAzrf8Zj4Xzl24XBB4TpKbRfkw1LLwbZyms5zP0MF0pNKS5ZPUxtnwJ9/ H3nn364FU/526C7Brp1m7WlyIG10KKID/u2tA4ynDV1Klb+OpVrixPWbaGnyZoL6faRsV dM61U2vTY2LQeGyBukcTFGNmFjJ+dJWsLYeusMBhgMeNXHH7SoynUIhQEuty8+jLwSuA7 1dAK4Tg0RBomV1+ADmeZHHdVEZ2KpXZNm6BJ85vJGMZ56DwjxPaGh9Utn18gW70qj3ocD 2v7jVLLUpGjqZyRBKRvg0qqnjxLr722g4kFCXXdWrvHh37ZZ+WIO1zWAMGhzg1ax68A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="KQlTDXX/"; arc=none smtp.remote-ip=209.85.128.44 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DC5E606A680 for ; Wed, 2 Dec 2026 12:52:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4DC5E606A680 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=KQlTDXX/ Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4bb6756bb1cso8615275e9.2 for ; Wed, 02 Dec 2026 04:52:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796215978; x=1796820778; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LYEZF1hYniDhqBrXBZGP9qMxqFi5c0vOmXixnMqtpUY=; b=KQlTDXX/bNqkqqszpK27GZrDtfyBxW0FSoPod6hNHYVS1Z/v685PI/WndtpeLTHCd7 +rgI82dPBz01PZPjvdCYclRrhrSTn4kWkThHtancZkiwXNEcRFJTM2rJO0/llnVj48AJ hk9uqGDNmjDxqkMtPpTPmUu7nc85P9HLFLk1joGPlBMhc5Q+X+vLh2q20t5u+BDAQGZv fgT1bYUZ3nmysdUGC28HyCaShAd+OLoqTv9zeK7m63ar5B2HS/I98rOHKBEqYA/yXUV6 /q+w1cRXyRcC6vIhrc2b0dPl7wj3squfUHNOUzqhMgpvJx3WlWXZbM0hkMcwKaWYZES0 l5lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796215978; x=1796820778; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=LYEZF1hYniDhqBrXBZGP9qMxqFi5c0vOmXixnMqtpUY=; b=JZkgttiMrlhUJmUlEs51A+ofp+nuIsb4nxtWGF41yOlmNCmW1n1ZTs2hqOUg+147lS Imhb+2TgkSM7DqXnMzUGKl0Vzi71oQRhCJbH1aw5F1e0XllGitwarE1mdqWeMcxPIfxO cJBUbRjTIYYpRWQY87/2RW0pHg+NsOE9Rl4VS4zO/+dSvyjR0N0zrQgwWQ2KJbKcxGOX igo+aEFraiN88CyRUXBHy5IzczqjrP9yhcoQzUUKimZKjpuLw8mBz8uoqGrhyaYpCMEc bjl92z5dkJvM9aMhPvonNt1sC12VTnaKGs/27k048EEk1EJIOY/GPHiPV8Ftk8MqJe7h PU4g== X-Gm-Message-State: APuU4Z8V+2xgICs8aavacZqqIc1jUZxirWnni9/dt9tTSDedicgcFvMQ Co5FT0etCNvHvdRhhHW6AoAHzsMlNhou03AHpebGWJQtxL/JcKgZZmL2q10VNJkV X-Gm-Gg: AZFdTZdnDKC4EdX9Ltfxj25mPR6kyYMpCfgEiPcWw5wHy+ZFKJ2jfW8dJnlsVePFmJ1 GVGiKqowA6oJsBPf8/0lyudkiC3EXpysAfSFJKw1hEGWa4KxzydRYwoBlu5iLFWgz+Q+gJspDkV majseOnncgXOmF3E++HSIHF8jtjXg/WiP/OcWn7oWSwJ57+4Q2fY0/XxYzv5FZOZ/SN33RYfKt+ yYuN11aWCsN62ngJ1XmeQVK59idPNMNAJXgj+j6W8RgC8rXlaJBxuBcYhC6XEW8vk1CyibptLof GgbDey82Wi+1g75f14MvHNdzZvIm294KYOupdTEJJFGF4I+DDIOTP5S/kOgSuiejwndaFRUvNYn 9IG5cjfpQkEFfckfk+tT1GtVrf4Wr2LUOYLPSblPqNWXZ51ghOECcNmdrXAyK4GppRA/4QSSgrr zouActPPiePIu7P7QqJYRK2tPn2yWO7KmzwFsRpojmDuHB3ChuDR7HcG3FD9XWbd0VLyKR2iizo AB21ABj4gyhGC8ITXlF6sWsD5z0m+Vr4qB+8RrK1DHkyGyFNXKxmhJWj0TCUxdpjiCbp+PXVqXs 9GkdFLbivbNY9nmMOYD3mBlTUFoV4J1YRjY= X-Received: by 2002:a05:600c:1113:b0:4bb:a9f6:8bbe with SMTP id 5b1f17b1804b1-4bba9f68bc2mr296264815e9.0.1796215977631; Wed, 02 Dec 2026 04:52:57 -0800 (PST) Received: from schinder.corp.hoffmann-group.com ([2003:8:2:4::5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbb97e5356sm441538475e9.4.2026.12.02.04.52.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 04:52:57 -0800 (PST) From: Roland Schober To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, Roland Schober Subject: [RFC PATCH BlueZ v2 5/9] client/mgmt: Add pa-params, pa-data and pawr-serve commands Date: Wed, 2 Dec 2026 13:52:37 +0100 Message-ID: <20261202125241.348452-6-rolandschober1968@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261202125241.348452-1-rolandschober1968@gmail.com> References: <20261202125241.348452-1-rolandschober1968@gmail.com> X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit pa-params adds periodic advertising to an instance created with add-ext-adv-params, with the parameters of Periodic Advertising with Responses if subevents are given. pa-data sets the data of a periodic advertising train. pawr-serve answers the subevent data requests of an instance, with the data given or with manufacturer data which carries the subevent and a counter, and prints the response reports. Data which does not fit into one command is sent in several. It runs until it is stopped or replaced by another pawr-serve. Assisted-by: Claude:claude-fable-5-2 --- client/mgmt.c | 367 ++++++++++++++++++++++++++++++++++++++ doc/bluetoothctl-mgmt.rst | 51 ++++++ 2 files changed, 418 insertions(+) diff --git a/client/mgmt.c b/client/mgmt.c index bdf1bbfec..e115654b3 100644 --- a/client/mgmt.c +++ b/client/mgmt.c @@ -2504,6 +2504,359 @@ static void cmd_hci_cmd(int argc, char **argv) } } +static void pa_params_rsp(uint8_t status, uint16_t len, const void *param, + void *user_data) +{ + const struct mgmt_rp_add_periodic_adv_params *rp = param; + + if (status != 0) { + error("Add Periodic Advertising Parameters failed with status " + "0x%02x (%s)", status, mgmt_errstr(status)); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + if (len < sizeof(*rp)) { + error("Too small (%u bytes) reply", len); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + print("Periodic advertising set on instance %u", rp->instance); + + bt_shell_noninteractive_quit(EXIT_SUCCESS); +} + +/* A number for a field of a command: all of the argument, in its range */ +static bool parse_num(const char *str, unsigned long max, unsigned long *val) +{ + char *endptr = NULL; + + *val = strtoul(str, &endptr, 0); + if (!endptr || endptr == str || *endptr != '\0' || *val > max) { + error("Invalid value %s (0-%lu)", str, max); + return false; + } + + return true; +} + +/* The data of a command: the octets of all the arguments which are left */ +static bool parse_data(int argc, char **argv, uint8_t *data, long size, + long *len) +{ + int i; + + *len = 0; + + for (i = 0; i < argc; i++) { + long n = size - *len; + + if (!str2bytearray(argv[i], data + *len, &n)) + return false; + + *len += n; + } + + return true; +} + +static void cmd_pa_params(int argc, char **argv) +{ + struct mgmt_cp_add_periodic_adv_params cp; + unsigned long val[8]; + uint16_t index; + int i; + + if (argc != 4 && argc != 9) { + error("Either none or all five PAwR parameters"); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + /* The two intervals have 16 bits, the other parameters 8 */ + for (i = 1; i < argc; i++) { + if (!parse_num(argv[i], i == 2 || i == 3 ? UINT16_MAX : + UINT8_MAX, &val[i - 1])) + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + memset(&cp, 0, sizeof(cp)); + cp.instance = val[0]; + cp.min_interval = cpu_to_le16(val[1]); + cp.max_interval = cpu_to_le16(val[2]); + + if (argc > 4) { + cp.num_subevents = val[3]; + cp.subevent_interval = val[4]; + cp.response_slot_delay = val[5]; + cp.response_slot_spacing = val[6]; + cp.num_response_slots = val[7]; + } + + index = mgmt_index; + if (index == MGMT_INDEX_NONE) + index = 0; + + if (mgmt_send(mgmt, MGMT_OP_ADD_PERIODIC_ADV_PARAMS, index, + sizeof(cp), &cp, pa_params_rsp, NULL, NULL) == 0) { + error("Unable to send Add Periodic Advertising Parameters"); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } +} + +static void pa_data_rsp(uint8_t status, uint16_t len, const void *param, + void *user_data) +{ + const struct mgmt_rp_add_periodic_adv_data *rp = param; + + if (status != 0) { + error("Add Periodic Advertising Data failed with status " + "0x%02x (%s)", status, mgmt_errstr(status)); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + if (len < sizeof(*rp)) { + error("Too small (%u bytes) reply", len); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + print("Periodic advertising data set on instance %u", rp->instance); + + bt_shell_noninteractive_quit(EXIT_SUCCESS); +} + +static void cmd_pa_data(int argc, char **argv) +{ + uint8_t buf[sizeof(struct mgmt_cp_add_periodic_adv_data) + 252]; + struct mgmt_cp_add_periodic_adv_data *cp = (void *) buf; + unsigned long instance; + long data_len; + uint16_t index; + + memset(buf, 0, sizeof(buf)); + + if (!parse_num(argv[1], UINT8_MAX, &instance) || + !parse_data(argc - 2, argv + 2, cp->data, 252, + &data_len)) + return bt_shell_noninteractive_quit(EXIT_FAILURE); + + cp->instance = instance; + cp->data_len = data_len; + + index = mgmt_index; + if (index == MGMT_INDEX_NONE) + index = 0; + + if (mgmt_send(mgmt, MGMT_OP_ADD_PERIODIC_ADV_DATA, index, + sizeof(*cp) + data_len, cp, pa_data_rsp, NULL, + NULL) == 0) { + error("Unable to send Add Periodic Advertising Data"); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } +} + +/* + * One command has room for 255 octets of parameters and for 15 subevents, + * like the HCI command the kernel makes of it. + */ +#define PAWR_CMD_SIZE 255 +#define PAWR_CMD_SUBEVENTS 15 +#define PAWR_DATA_SIZE (PAWR_CMD_SIZE - \ + sizeof(struct mgmt_cp_set_pa_subevent_data) - \ + sizeof(struct mgmt_pa_subevent_data)) + +/* What pawr-serve answers the subevent data requests with */ +static struct { + uint8_t instance; + uint8_t num_subevents; + uint8_t num_response_slots; + bool has_data; + uint8_t data[PAWR_DATA_SIZE]; + long data_len; + uint8_t counter; + unsigned int request_id; + unsigned int report_id; +} pawr; + +static void pawr_data_rsp(uint8_t status, uint16_t len, const void *param, + void *user_data) +{ + if (status != 0) + error("Set Periodic Advertising Subevent Data failed with " + "status 0x%02x (%s)", status, mgmt_errstr(status)); +} + +/* + * Not mgmt_send(): it holds a command back until the one before it has its + * reply, and the commands which answer one request cannot wait that long. + */ +static void pawr_send_data(uint16_t index, const void *buf, size_t len) +{ + if (mgmt_send_nowait(mgmt, MGMT_OP_SET_PA_SUBEVENT_DATA, index, len, + buf, pawr_data_rsp, NULL, NULL) == 0) + error("Unable to send Set Periodic Advertising Subevent Data"); +} + +static void pawr_data_request(uint16_t index, uint16_t len, const void *param, + void *user_data) +{ + const struct mgmt_ev_pa_subevent_data_request *ev = param; + uint8_t buf[PAWR_CMD_SIZE]; + struct mgmt_cp_set_pa_subevent_data *cp = (void *) buf; + size_t pos = sizeof(*cp); + uint8_t i; + + if (len < sizeof(*ev)) { + error("Too small (%u bytes) pa_subevent_data_request event", + len); + return; + } + + if (ev->instance != pawr.instance) + return; + + print("hci%u pa_subevent_data_request: instance %u start %u count %u", + index, ev->instance, ev->subevent_start, + ev->subevent_data_count); + + cp->instance = ev->instance; + cp->num_subevents = 0; + + for (i = 0; i < ev->subevent_data_count; i++) { + struct mgmt_pa_subevent_data *subevent; + uint8_t data[sizeof(pawr.data)]; + uint8_t data_len = pawr.data_len; + uint8_t nr = (ev->subevent_start + i) % pawr.num_subevents; + + /* Without data from the command line: manufacturer data + * with the subevent and a counter. + */ + if (pawr.has_data) { + memcpy(data, pawr.data, data_len); + } else { + data[0] = 0x05; + data[1] = 0xff; + data[2] = 0x59; + data[3] = 0x00; + data[4] = nr; + data[5] = pawr.counter++; + data_len = 6; + } + + /* The command is full: send it and go on with a new one */ + if (pos + sizeof(*subevent) + data_len > sizeof(buf) || + cp->num_subevents == PAWR_CMD_SUBEVENTS) { + pawr_send_data(index, buf, pos); + pos = sizeof(*cp); + cp->num_subevents = 0; + } + + subevent = (void *) (buf + pos); + subevent->subevent = nr; + subevent->response_slot_start = 0; + subevent->response_slot_count = pawr.num_response_slots; + subevent->data_len = data_len; + memcpy(subevent->data, data, data_len); + + pos += sizeof(*subevent) + data_len; + cp->num_subevents++; + } + + if (cp->num_subevents) + pawr_send_data(index, buf, pos); +} + +static void pawr_response_report(uint16_t index, uint16_t len, + const void *param, void *user_data) +{ + const struct mgmt_ev_pa_response_report *ev = param; + const uint8_t *ptr; + uint8_t i; + + if (len < sizeof(*ev)) { + error("Too small (%u bytes) pa_response_report event", len); + return; + } + + if (ev->instance != pawr.instance) + return; + + ptr = ev->responses; + len -= sizeof(*ev); + + for (i = 0; i < ev->num_responses; i++) { + const struct mgmt_pa_response *rsp = (const void *) ptr; + char str[2 * UINT8_MAX + 1]; + uint8_t j; + + if (len < sizeof(*rsp) || len < sizeof(*rsp) + rsp->data_len) { + error("Truncated pa_response_report event"); + return; + } + + for (j = 0; j < rsp->data_len; j++) + sprintf(str + 2 * j, "%02x", rsp->data[j]); + str[2 * rsp->data_len] = '\0'; + + print("hci%u pa_response_report: instance %u subevent %u " + "tx_status %u slot %u rssi %d status 0x%02x data %s", + index, ev->instance, ev->subevent, ev->tx_status, + rsp->response_slot, rsp->rssi, rsp->data_status, str); + + ptr += sizeof(*rsp) + rsp->data_len; + len -= sizeof(*rsp) + rsp->data_len; + } +} + +/* Runs until it is stopped */ +static void cmd_pawr_serve(int argc, char **argv) +{ + unsigned long instance, num_subevents, num_response_slots; + uint8_t data[sizeof(pawr.data)]; + long data_len; + uint16_t index; + + if (!parse_num(argv[1], UINT8_MAX, &instance) || + !parse_num(argv[2], 128, &num_subevents) || + !parse_num(argv[3], UINT8_MAX, &num_response_slots) || + !parse_data(argc - 4, argv + 4, data, sizeof(data), + &data_len)) + return bt_shell_noninteractive_quit(EXIT_FAILURE); + + if (!num_subevents) { + error("Invalid number of subevents"); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + /* A second pawr-serve replaces the first */ + if (pawr.request_id) + mgmt_unregister(mgmt, pawr.request_id); + + if (pawr.report_id) + mgmt_unregister(mgmt, pawr.report_id); + + memset(&pawr, 0, sizeof(pawr)); + pawr.instance = instance; + pawr.num_subevents = num_subevents; + pawr.num_response_slots = num_response_slots; + pawr.has_data = argc > 4; + pawr.data_len = data_len; + memcpy(pawr.data, data, data_len); + + index = mgmt_index; + if (index == MGMT_INDEX_NONE) + index = 0; + + pawr.request_id = mgmt_register(mgmt, MGMT_EV_PA_SUBEVENT_DATA_REQUEST, + index, pawr_data_request, NULL, NULL); + pawr.report_id = mgmt_register(mgmt, MGMT_EV_PA_RESPONSE_REPORT, index, + pawr_response_report, NULL, NULL); + if (!pawr.request_id || !pawr.report_id) { + error("Unable to register for the PAwR events"); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + print("Serving subevent data of instance %u", pawr.instance); +} + /* Wrapper to get the index and opcode to the response callback */ struct command_data { uint16_t id; @@ -6354,6 +6707,20 @@ static const struct bt_shell_menu mgmt_menu = { cmd_conn_subrate, "Load Connection Subrate" }, { "hci-cmd", " [event] [timeout] [param...]", cmd_hci_cmd, "Send HCI Command and wait for Event" }, + { "pa-params", " " + "[num_subevents] [subevent_interval] " + "[response_slot_delay] [response_slot_spacing] " + "[num_response_slots]", + cmd_pa_params, + "Add periodic advertising to an instance, with " + "responses if it has subevents" }, + { "pa-data", " [data...]", + cmd_pa_data, + "Set the periodic advertising data of an instance" }, + { "pawr-serve", " " + " [data...]", + cmd_pawr_serve, + "Answer subevent data requests, print responses" }, {} }, }; diff --git a/doc/bluetoothctl-mgmt.rst b/doc/bluetoothctl-mgmt.rst index 91406041c..8e27389ef 100644 --- a/doc/bluetoothctl-mgmt.rst +++ b/doc/bluetoothctl-mgmt.rst @@ -1314,6 +1314,57 @@ Load Connection Subrate :Example Load subrate for LE random address device: | **> conn-subrate -t 2 AA:BB:CC:DD:EE:FF 16 1600 2 8 0 4 100** +pa-params +--------- + +Add periodic advertising to an advertising instance. With the five optional +parameters it is Periodic Advertising with Responses (PAwR). + +:Usage: **> pa-params [num_subevents] + [subevent_interval] [response_slot_delay] [response_slot_spacing] + [num_response_slots]** +:: Advertising instance, added with add-ext-adv-params before +:: Minimum periodic advertising interval (units of 1.25 ms) +:: Maximum periodic advertising interval (units of 1.25 ms) +:[num_subevents]: Number of subevents of a periodic advertising event +:[subevent_interval]: Time between two subevents (units of 1.25 ms) +:[response_slot_delay]: Time from the start of a subevent to its first + response slot (units of 1.25 ms) +:[response_slot_spacing]: Time between two response slots (units of 0.125 ms) +:[num_response_slots]: Number of response slots of a subevent +:Example Add periodic advertising with an interval of 100 ms to instance 1: + | **> pa-params 1 80 80** +:Example Add PAwR with 5 subevents of 60 ms and 5 response slots of 10 ms: + | **> pa-params 1 255 255 5 48 8 80 5** + +pa-data +------- + +Set the periodic advertising data of an advertising instance. + +:Usage: **> pa-data [data...]** +:: Advertising instance with periodic advertising +:[data...]: Octets of the data, none for no data +:Example Set a manufacturer specific AD structure as data of instance 1: + | **> pa-data 1 0x05 0xff 0x59 0x00 0x01 0x02** + +pawr-serve +---------- + +Answer the subevent data requests of an advertising instance with PAwR, and +print the responses which are received. It runs until btmgmt is ended, or +until another pawr-serve replaces it. + +:Usage: **> pawr-serve + [data...]** +:: Advertising instance with PAwR +:: Number of subevents of the instance (1 to 128) +:: Number of response slots to listen to in a subevent +:[data...]: Octets of the data of every subevent (up to 249). Without it, a + manufacturer specific AD structure with the subevent and a counter +:Example Serve instance 1 with 5 subevents and 5 response slots: + | **> pawr-serve 1 5 5** + RESOURCES ========= -- 2.47.3