Skip to content

Conversation

@SolveigLunde
Copy link

Created new sample for showcasing how use of PAwR can give higher throughput in many-to-one communitcation than classical BLE connections. This was done to show customers an alternative way to set up communication with many devices when they got insufficient throughput

@SolveigLunde SolveigLunde requested review from a team as code owners December 3, 2025 13:15
@CLAassistant
Copy link

CLAassistant commented Dec 3, 2025

CLA assistant check
All committers have signed the CLA.

@NordicBuilder NordicBuilder added doc-required PR must not be merged without tech writer approval. changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Dec 3, 2025
@@ -0,0 +1,5 @@
# Copyright (c) 2025 Nordic Semiconductor ASA
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix commit message by splitting into multiple lines (70 char max per line)

bool "Throughput many-to-one Sample Settings"
default y
help
Enable configuration options for throughput many-to-one sample using PAwR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indent

Comment on lines 4 to 6
source "Kconfig.zephyr"

rsource "periodic_adv_rsp/Kconfig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bottom does an include of Kconfig.zephyr

Comment on lines 12 to 13
# Enable floating point printf
target_compile_definitions(app PRIVATE CONFIG_CBPRINTF_FP_SUPPORT=y)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are you doing? use a prj.conf file

#define MSD_HEADER_LEN 4 /* Manufacturer specific data header length */
#define ACK_ENTRY_SIZE 5 /* token (4B) + slot (1B) */
#define ACK_SLOT_OFFSET 4 /* offset of slot in ACK entry */
#define MIN_PAYLOAD_SIZE (MSD_HEADER_LEN + 5) /* MSD header (4B) + protocol version (1B) + protocl flags (1B), open_len (1B), ack_count(1B), rt_len(1B) */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the maximum line length is 100 chars (i.e. put the comment above and split it into multiple lines, if needed).

static bool name_match_cb(struct bt_data *data, void *user_data)
{
bool *matched = user_data;
if (data->type == BT_DATA_NAME_COMPLETE || data->type == BT_DATA_NAME_SHORTENED) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline missing line 46

Comment on lines 47 to 48
const char *target = TARGET_NAME;
size_t target_len = strlen(target);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, no

.num_subevents = 1,
};

uint8_t desired_subevent_id = target_subevent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define variable at top of scope

int err = bt_le_per_adv_sync_subevent(sync_handle, &sync_param);
if (err) {
if (++subevent_retry_tries <= 5U) { /* retry up to 5 times*/
(void)k_work_reschedule(&retry_subevent_sync_work, K_MSEC(10));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tab alignments in C

if (++subevent_retry_tries <= 5U) { /* retry up to 5 times*/
(void)k_work_reschedule(&retry_subevent_sync_work, K_MSEC(10));
} else {
printk("[SYNC] Failed to set subevents after %u tries (err %d)\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use LOG_* for output (without \n)

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jan 9, 2026
Created new sample for showcasing how use
of PAwR can give higher throughput
 in many-to-one communitcation
than classical BLE connections.
 This was done to show customers
an alternative way to set up
 communication with many devices
when they got insufficient throughput

Signed-off-by: Solveig Lunde <[email protected]>
Signed-off-by: Eirin Berget <[email protected]>
@eirget eirget force-pushed the throughput_many_to_one_sample branch from cda6fca to f2ea010 Compare January 9, 2026 15:37
@NordicBuilder NordicBuilder removed the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jan 9, 2026
@github-actions github-actions bot removed the Stale label Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-required PR must not be merged without tech writer approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants