nrf5415-dk pawr

Hi,Team,

I am developing pawr using nrf54l15-dk. I wanted to set the parameters of pawr with 128 sub-events and 8 response intervals, but the setting Failed and the error "Failed to set periodic adv params (err -22)" was returned. The following are the parameters for setting bt_le_per_adv_param. Please review them.

struct bt_le_per_adv_param per_adv_params = {
	.interval_min = 1408, 
	.interval_max = 1408,
	.options = 0,
	.num_subevents = NUM_SUBEVENTS,//128
	.subevent_interval = 11,
	.response_slot_delay = 8,
	.response_slot_spacing = 3,
	.num_response_slots = NUM_RSP_SLOTS,//8
};

The above parameters are based on the reference document "2-Nordic-Bluetooth 5.4 and Bluetooth ESL-Training.pdf".

How can I achieve setting the desired parameters?

Thanks.

Parents
  • Hello,

    Please have a look at my colleague's blog post regarding PAwR:

     Periodic Advertising with Responses (PAwR): A practical guide 

    Particularly section "3.1 Advertising" is relevant here:

    The first one seems to hold, but according to the second statement, the subevent interval should be greater than or equal to response_slot_delay + response_slot_spacing*NUM_RSP_SLOT.

    You have a subevent interval of 11, and the response slot delay is 8, while the response_slot_spacing * NUM_RSP_SLOT = 3*8 = 24, and 11 is definitely not <= 8+24=32. This is probably why you are seeing -22 = INVALID_PARAMS.

    Try adjusting your advertising parameters, and let me know if it doesn't help.

    Best regards,

    Edvin

Reply
  • Hello,

    Please have a look at my colleague's blog post regarding PAwR:

     Periodic Advertising with Responses (PAwR): A practical guide 

    Particularly section "3.1 Advertising" is relevant here:

    The first one seems to hold, but according to the second statement, the subevent interval should be greater than or equal to response_slot_delay + response_slot_spacing*NUM_RSP_SLOT.

    You have a subevent interval of 11, and the response slot delay is 8, while the response_slot_spacing * NUM_RSP_SLOT = 3*8 = 24, and 11 is definitely not <= 8+24=32. This is probably why you are seeing -22 = INVALID_PARAMS.

    Try adjusting your advertising parameters, and let me know if it doesn't help.

    Best regards,

    Edvin

Children
No Data
Related